OpenAL.framework doesn't provide 'alext.h'.
Thus, openal is enabled only if the dependency
is set by pkg-config.
fixes: #852
#include <al.h>
#include <alc.h>
#include <alext.h>
-#elif defined(__APPLE__)
-#include <OpenAL/al.h>
-#include <OpenAL/alc.h>
-#include <OpenAL/alext.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
#include <al.h>
#include <alc.h>
#include <alext.h>
-#elif defined(__APPLE__)
-#include <OpenAL/al.h>
-#include <OpenAL/alc.h>
-#include <OpenAL/alext.h>
#else
#include <AL/al.h>
#include <AL/alc.h>
-openal_dep = dependency('openal', version: '>= 1.14', required: get_option('openal'))
+openal_dep = dependency('openal', method: 'pkg-config', version: '>= 1.14', required: get_option('openal'))
if openal_dep.found()
gstopenal = library('gstopenal',