changeset 6714:be17a987e0a1

fix tv bazze
author atmos4
date Fri, 12 Jul 2002 03:26:46 +0000
parents cc917a581b6e
children 8c1f9e05dd5a
files configure
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Fri Jul 12 00:53:26 2002 +0000
+++ b/configure	Fri Jul 12 03:26:46 2002 +0000
@@ -3762,14 +3762,17 @@
 if test "$_tv_v4l" = auto ; then
  _tv_v4l=no
  if test "$_tv" = yes && linux ; then
-  if test -c /dev/video? || test -c /dev/video ; then
-    cat > $TMPC <<EOF
+  for I in /dev/video /dev/video? ; do
+    if test -c $I ; then
+      cat > $TMPC <<EOF
 #include <stdlib.h>
 #include <linux/videodev.h>
 int main(void) { return 0; }
 EOF
-    cc_check && _tv_v4l=yes
-  fi
+      cc_check && _tv_v4l=yes
+      break
+    fi
+  done
  fi
 fi
 if test "$_tv_v4l" = yes ; then