[FFmpeg-devel] [PATCH 1/2] configure: add pkg-config detection for twolame
Stephen Hutchinson
qyot27 at gmail.com
Wed Nov 29 22:39:40 EET 2017
---
configure | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 4e7254eaeb..3c08125da3 100755
--- a/configure
+++ b/configure
@@ -5888,7 +5888,9 @@ enabled libssh && require_pkg_config libssh libssh libssh/sftp.h sftp
enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init
enabled libtesseract && require_pkg_config libtesseract tesseract tesseract/capi.h TessBaseAPICreate
enabled libtheora && require libtheora theora/theoraenc.h th_info_init -ltheoraenc -ltheoradec -logg
-enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame &&
+enabled libtwolame && { check_pkg_config libtwolame "twolame >= 0.3.10" twolame.h twolame_init ||
+ require libtwolame twolame.h twolame_init -ltwolame &&
+ warn "using libtwolame without pkg-config"; } &&
{ check_lib libtwolame twolame.h twolame_encode_buffer_float32_interleaved -ltwolame ||
die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; }
enabled libv4l2 && require_pkg_config libv4l2 libv4l2 libv4l2.h v4l2_ioctl
--
2.14.1
More information about the ffmpeg-devel
mailing list