[FFmpeg-devel] [PATCH 2/2] configure: use pkg-config to detect openal
Stephen Hutchinson
qyot27 at gmail.com
Thu Dec 14 18:18:46 EET 2017
---
configure | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/configure b/configure
index ec6e570472..059eae7b39 100755
--- a/configure
+++ b/configure
@@ -288,7 +288,7 @@ External library support:
--enable-libndi_newtek enable Newteck NDI I/O support [no]
--enable-mediacodec enable Android MediaCodec support [no]
--enable-libmysofa enable libmysofa, needed for sofalizer filter [no]
- --enable-openal enable OpenAL 1.1 capture support [no]
+ --enable-openal enable OpenAL 1.1-compatible capture support via OpenAL-soft [no]
--enable-opencl enable OpenCL processing [no]
--enable-opengl enable OpenGL rendering [no]
--enable-openssl enable openssl, needed for https support
@@ -5949,11 +5949,7 @@ enabled mmal && { check_lib mmal interface/mmal/mmal.h mmal_port_co
check_lib mmal interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host; } ||
die "ERROR: mmal not found" &&
check_func_headers interface/mmal/mmal.h "MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS"; }
-enabled openal && { { for al_extralibs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32"; do
- check_lib openal 'AL/al.h' alGetError "${al_extralibs}" && break; done } ||
- die "ERROR: openal not found"; } &&
- { check_cpp_condition "AL/al.h" "defined(AL_VERSION_1_1)" ||
- die "ERROR: openal must be installed and version must be 1.1 or compatible"; }
+enabled openal && require_pkg_config openal "openal >= 1.12" AL/al.h alGetError
enabled opencl && { check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
die "ERROR: opencl not found"; } &&
--
2.14.1
More information about the ffmpeg-devel
mailing list