aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-02-22 20:33:24 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-02-22 22:30:35 +0000
commitf7cc6627c01ad3f5bc6ea2d0e6f8adb3a0b490d7 (patch)
treee16e40ab59522316142575b3114199d54636e51c
parenta388e72d1a6b0888cc1591cb699f61a9c1089cf4 (diff)
downloadffmpeg-f7cc6627c01ad3f5bc6ea2d0e6f8adb3a0b490d7.tar.gz
configure: Use pkg-config for libdc1394 discovery
Since not all systems need the libraw1394 dependency, let pkg-config provide the list of libraries actually needed. The libdc1394-2.pc file has been included since version 2 (2008-01-05), so it should be safe to use.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 8c618be64e..4543b00bdc 100755
--- a/configure
+++ b/configure
@@ -4248,7 +4248,7 @@ fi
# libdc1394 check
if enabled libdc1394; then
- { check_lib dc1394/dc1394.h dc1394_new -ldc1394 -lraw1394 &&
+ { require_pkg_config libdc1394-2 dc1394/dc1394.h dc1394_new &&
enable libdc1394_2; } ||
{ check_lib libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 &&
enable libdc1394_1; } ||