summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-10 18:38:23 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-09-10 18:38:23 +0000
commit4655eb77878502d8718173de63bbeb10c01d5636 (patch)
treed93761cb4abb444be27a48b284f3af278a0858c6 /configure
parent8a2a84dc516eb03dfa5fe6db49d844dbe77da65a (diff)
downloadmpv-4655eb77878502d8718173de63bbeb10c01d5636.tar.bz2
mpv-4655eb77878502d8718173de63bbeb10c01d5636.tar.xz
- remove useless /dev/video* checks
- add a proper configure check for v4l2 - prepare for videodev2.h removal git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16443 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure24
1 files changed, 11 insertions, 13 deletions
diff --git a/configure b/configure
index 6619d2f416..4a12331d3e 100755
--- a/configure
+++ b/configure
@@ -6370,17 +6370,13 @@ echocheck "Video 4 Linux TV interface"
if test "$_tv_v4l" = auto ; then
_tv_v4l=no
if test "$_tv" = yes && linux ; then
- for I in /dev/video /dev/video? ; do
- if test -c $I ; then
- cat > $TMPC <<EOF
+ cat > $TMPC <<EOF
#include <stdlib.h>
#include <linux/videodev.h>
int main(void) { return 0; }
EOF
- cc_check && _tv_v4l=yes
- break
- fi
- done
+ cc_check && _tv_v4l=yes
+ break
fi
fi
if test "$_tv_v4l" = yes ; then
@@ -6397,12 +6393,14 @@ echocheck "Video 4 Linux 2 TV interface"
if test "$_tv_v4l2" = auto ; then
_tv_v4l2=no
if test "$_tv" = yes && linux ; then
- for I in /dev/video /dev/video? ; do
- if test -c $I ; then
- _tv_v4l2=yes
- break
- fi
- done
+ cat > $TMPC <<EOF
+#include <stdlib.h>
+#include <linux/types.h>
+#include <linux/videodev2.h>
+int main(void) { return 0; }
+EOF
+ cc_check && _tv_v4l2=yes
+ break
fi
fi
if test "$_tv_v4l2" = yes ; then