summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAshish Singh <ashk43712@gmail.com>2017-08-01 20:44:18 +0530
committerRonald S. Bultje <rsbultje@gmail.com>2017-08-30 09:19:16 -0400
commit1dc33c123715e195f7f19b2dca8f192a550f047c (patch)
tree10e2918fda8b0d89f8d7220bccbef757932e9ea7 /configure
parent2a4a26fa4f3c9310cd8cf6a0d093c927f64ef8a7 (diff)
configure: require pkg-config for libvmaf
This patch makes the libvmaf filter use pkg-config to detect and link to libvmaf. Signed-off-by: Ashish Singh <ashk43712@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index 172ff3fc07..4f1c172333 100755
--- a/configure
+++ b/configure
@@ -5920,8 +5920,7 @@ enabled libtwolame && require libtwolame twolame.h twolame_init -ltwolame
die "ERROR: libtwolame must be installed and version must be >= 0.3.10"; }
enabled libv4l2 && require_pkg_config libv4l2 libv4l2.h v4l2_ioctl
enabled libvidstab && require_pkg_config "vidstab >= 0.98" vid.stab/libvidstab.h vsMotionDetectInit
-enabled libvmaf && { check_lib libvmaf "libvmaf.h" "compute_vmaf" -lvmaf -lstdc++ -lpthread -lm ||
- die "ERROR: libvmaf must be installed"; }
+enabled libvmaf && require_pkg_config libvmaf libvmaf.h compute_vmaf
enabled libvo_amrwbenc && require libvo_amrwbenc vo-amrwbenc/enc_if.h E_IF_init -lvo-amrwbenc
enabled libvorbis && require_pkg_config vorbis vorbis/codec.h vorbis_info_init &&
require_pkg_config vorbisenc vorbis/vorbisenc.h vorbis_encode_init