aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAlessandro Sappia <a.sappia@ngi.it>2008-01-11 01:59:05 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2008-01-11 01:59:05 +0000
commit0b4a18218ef83dce94e64aac06f6cc1262fbed60 (patch)
tree832cd859218db06ffdf812af29c2113f5a4e2ebb /configure
parente71b0534f25f45c01f6306f51631edba85d881d6 (diff)
downloadffmpeg-0b4a18218ef83dce94e64aac06f6cc1262fbed60.tar.gz
Adding support for libdc1394 v.2, patch by Alessandro Sappia a dot sappia at ngi dot it
Originally committed as revision 11501 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure b/configure
index 21da64841a..b6a17b1c5a 100755
--- a/configure
+++ b/configure
@@ -725,6 +725,8 @@ HAVE_LIST="
getrusage
imlib2
inet_aton
+ libdc1394_1
+ libdc1394_2
llrint
lrint
lrintf
@@ -1633,7 +1635,6 @@ enabled avisynth && require2 vfw32 "windows.h vfw.h" AVIFileInit -lvfw32
enabled liba52 && require liba52 a52dec/a52.h a52_init -la52
enabled libamr_nb && require libamrnb amrnb/interf_dec.h Speech_Decode_Frame_init -lamrnb -lm
enabled libamr_wb && require libamrwb amrwb/dec_if.h D_IF_init -lamrwb -lm
-enabled libdc1394 && require libdc1394 libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394
enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
enabled libfaad && require2 libfaad faad.h faacDecOpen -lfaad
enabled libgsm && require libgsm gsm.h gsm_create -lgsm
@@ -1648,6 +1649,16 @@ enabled mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -
# disable the native AC-3 decoder if liba52 is enabled
enabled liba52 && disable ac3_decoder
+# libdc1394 check
+if enabled libdc1394; then
+ { check_lib dc1394/dc1394.h dc1394_new -ldc1394 -lraw1394 &&
+ enable libdc1394_2; } ||
+ { check_lib libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 &&
+ enable libdc1394_1; } ||
+ die "ERROR: No version of libdc1394 found "
+fi
+
+
_restrict=
for restrict_keyword in restrict __restrict__ __restrict; do
check_cc <<EOF && _restrict=$restrict_keyword && break