aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2006-02-01 11:31:33 +0000
committerDiego Biurrun <diego@biurrun.de>2006-02-01 11:31:33 +0000
commit0a7b514f13baddda8641ab365aa2f9c218839c47 (patch)
treefbfc6d5fd2691800880de6b3884d617e4679490c /configure
parentb5bba45905c074d9c8a9388589fda3f48cb08437 (diff)
downloadffmpeg-0a7b514f13baddda8641ab365aa2f9c218839c47.tar.gz
video4linux2 input support
patch by Luca Abeni, lucabe72 $$at$$ email $$dot$$ it Originally committed as revision 4916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure b/configure
index db058bd678..d5f3b2cc7b 100755
--- a/configure
+++ b/configure
@@ -66,6 +66,7 @@ echo " --disable-altivec disable AltiVec usage"
echo " --disable-audio-oss disable OSS audio support [default=no]"
echo " --disable-audio-beos disable BeOS audio support [default=no]"
echo " --disable-v4l disable video4linux grabbing [default=no]"
+echo " --disable-v4l2 disable video4linux2 grabbing [default=no]"
echo " --disable-bktr disable bktr video grabbing [default=no]"
echo " --disable-dv1394 disable DV1394 grabbing [default=no]"
echo " --disable-network disable network support [default=no]"
@@ -183,6 +184,7 @@ case "$cpu" in
esac
gprof="no"
v4l="yes"
+v4l2="yes"
bktr="no"
audio_oss="yes"
audio_beos="no"
@@ -276,6 +278,7 @@ SHFLAGS=-nostart
# disable Linux things
audio_oss="no"
v4l="no"
+v4l2="no"
dv1394="no"
# enable BeOS things
audio_beos="yes"
@@ -290,6 +293,7 @@ extralibs="-lnet"
fi ;;
SunOS)
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
make="gmake"
@@ -300,6 +304,7 @@ extralibs="$extralibs -lsocket -lnsl"
;;
NetBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
@@ -312,6 +317,7 @@ esac
;;
OpenBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
@@ -323,6 +329,7 @@ extralibs="$extralibs -lossaudio"
;;
FreeBSD)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
@@ -332,6 +339,7 @@ LDFLAGS="$LDFLAGS -export-dynamic -pthread"
;;
BSD/OS)
v4l="no"
+v4l2="no"
bktr="yes"
audio_oss="yes"
dv1394="no"
@@ -343,6 +351,7 @@ installstrip=""
Darwin)
cc="cc"
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
ffserver="no"
@@ -364,6 +373,7 @@ mingw32="yes"
;;
CYGWIN*)
v4l="no"
+v4l2="no"
audio_oss="yes"
dv1394="no"
vhook="no"
@@ -377,6 +387,7 @@ LDFLAGS="$LDFLAGS -rdynamic"
IRIX*)
ranlib="echo ignoring ranlib"
v4l="no"
+v4l2="no"
audio_oss="no"
make="gmake"
;;
@@ -397,6 +408,7 @@ EXESUF=".exe"
extralibs=""
pkg_requires=""
v4l="no"
+v4l2="no"
audio_oss="no"
dv1394="no"
network="no"
@@ -486,6 +498,8 @@ for opt do
;;
--disable-v4l) v4l="no"
;;
+ --disable-v4l2) v4l2="no"
+ ;;
--disable-bktr) bktr="no"
;;
--disable-audio-oss) audio_oss="no"
@@ -900,6 +914,7 @@ EOF
exit 1
fi
v4l="no"
+ v4l2="no"
bktr="no"
audio_oss="no"
dv1394="no"
@@ -1613,6 +1628,11 @@ if test "$v4l" = "yes" ; then
echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
fi
+if test "$v4l2" = "yes" ; then
+ echo "#define CONFIG_VIDEO4LINUX2 1" >> $TMPH
+ echo "CONFIG_VIDEO4LINUX2=yes" >> config.mak
+fi
+
if test "$bktr" = "yes" ; then
echo "#define CONFIG_BKTR 1" >> $TMPH
echo "CONFIG_BKTR=yes" >> config.mak