[FFmpeg-cvslog] configure: add pkg-config support for libx264

Benoit Fouet git at videolan.org
Sat Oct 18 03:01:11 CEST 2014


ffmpeg | branch: master | Benoit Fouet <benoit.fouet at free.fr> | Fri Oct 17 16:35:58 2014 +0200| [e06263ef1e0e172b2c76070b3dc739411af08e82] | committer: Michael Niedermayer

configure: add pkg-config support for libx264

Reviewed-by: Carl Eugen Hoyos <cehoyos at ag.or.at>
Tested-by: Carl Eugen Hoyos <cehoyos at ag.or.at>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e06263ef1e0e172b2c76070b3dc739411af08e82
---

 configure |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index 3e7143c..5b16af9 100755
--- a/configure
+++ b/configure
@@ -4880,7 +4880,10 @@ enabled libvpx            && {
     enabled libvpx_vp9_encoder && { check_lib2 "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VP9E_SET_AQ_MODE" -lvpx || disable libvpx_vp9_encoder; } }
 enabled libwavpack        && require libwavpack wavpack/wavpack.h WavpackOpenFileOutput  -lwavpack
 enabled libwebp           && require_pkg_config "libwebp >= 0.2.0" webp/encode.h WebPGetEncoderVersion
-enabled libx264           && require libx264 x264.h x264_encoder_encode -lx264 &&
+enabled libx264           && { { check_pkg_config x264 "stdint.h x264.h" x264_encoder_encode &&
+                                 require_pkg_config x264 "stdint.h x264.h" x264_encoder_encode; } ||
+                               { require libx264 x264.h x264_encoder_encode -lx264 &&
+                                 warn "using libx264 without pkg-config"; } } &&
                              { check_cpp_condition x264.h "X264_BUILD >= 118" ||
                                die "ERROR: libx264 must be installed and version must be >= 0.118."; }
 enabled libx265           && require_pkg_config x265 x265.h x265_encoder_encode &&



More information about the ffmpeg-cvslog mailing list