diff mbox

[FFmpeg-devel,1/2] configure: use pkg-config to detect twolame

Message ID 20171214161846.1935-2-qyot27@gmail.com
State New
Headers show

Commit Message

Stephen Hutchinson Dec. 14, 2017, 4:18 p.m. UTC
---
 configure | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

diff --git a/configure b/configure
index d5bbb5b7a9..ec6e570472 100755
--- a/configure
+++ b/configure
@@ -5889,9 +5889,7 @@  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 &&
-                             { 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 libtwolame        && require_pkg_config libtwolame "twolame >= 0.3.10" twolame.h twolame_init
 enabled libv4l2           && require_pkg_config libv4l2 libv4l2 libv4l2.h v4l2_ioctl
 enabled libvidstab        && require_pkg_config libvidstab "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit
 enabled libvmaf           && require_pkg_config libvmaf libvmaf libvmaf.h compute_vmaf