aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-08-08 16:06:10 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-08-08 16:06:10 +0200
commite4d983e2db0e73e711ae63dc9495316e121ec3da (patch)
treefac8d90c0165d1294dca952d253c414b72be7351
parentd34ec64a22907173c13e687b815d94618d2dc85b (diff)
downloadffmpeg-e4d983e2db0e73e711ae63dc9495316e121ec3da.tar.gz
configure: Check if libwebp compilation will succeed.
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index b6c7c79b42..65fdd15b5e 100755
--- a/configure
+++ b/configure
@@ -4810,7 +4810,9 @@ enabled libvpx && {
enabled libvpx_vp9_decoder && { check_lib2 "vpx/vpx_decoder.h vpx/vp8dx.h" "vpx_codec_vp9_dx" -lvpx || disable libvpx_vp9_decoder; }
enabled libvpx_vp9_encoder && { check_lib2 "vpx/vpx_encoder.h vpx/vp8cx.h" "vpx_codec_vp9_cx VP9E_SET_SVC" -lvpx || disable libvpx_vp9_encoder; } }
enabled libwavpack && require libwavpack wavpack/wavpack.h WavpackOpenFileOutput -lwavpack
-enabled libwebp && require_pkg_config libwebp webp/encode.h WebPGetEncoderVersion
+enabled libwebp && require_pkg_config libwebp webp/encode.h WebPGetEncoderVersion &&
+ { check_code cc webp/encode.h "WebPPicture wp; wp.use_argb++" ||
+ die "ERROR: libwebp too old."; }
enabled libx264 && require libx264 x264.h x264_encoder_encode -lx264 &&
{ check_cpp_condition x264.h "X264_BUILD >= 118" ||
die "ERROR: libx264 must be installed and version must be >= 0.118."; }