comparison configure @ 16442:11331109ecad

- remove useless /dev/video* checks - add a proper configure check for v4l2 - prepare for videodev2.h removal
author henry
date Sat, 10 Sep 2005 18:38:23 +0000
parents 2e0c2f65b81c
children d4355ddee12e
comparison
equal deleted inserted replaced
16441:2e0c2f65b81c 16442:11331109ecad
6368 6368
6369 echocheck "Video 4 Linux TV interface" 6369 echocheck "Video 4 Linux TV interface"
6370 if test "$_tv_v4l" = auto ; then 6370 if test "$_tv_v4l" = auto ; then
6371 _tv_v4l=no 6371 _tv_v4l=no
6372 if test "$_tv" = yes && linux ; then 6372 if test "$_tv" = yes && linux ; then
6373 for I in /dev/video /dev/video? ; do 6373 cat > $TMPC <<EOF
6374 if test -c $I ; then
6375 cat > $TMPC <<EOF
6376 #include <stdlib.h> 6374 #include <stdlib.h>
6377 #include <linux/videodev.h> 6375 #include <linux/videodev.h>
6378 int main(void) { return 0; } 6376 int main(void) { return 0; }
6379 EOF 6377 EOF
6380 cc_check && _tv_v4l=yes 6378 cc_check && _tv_v4l=yes
6381 break 6379 break
6382 fi
6383 done
6384 fi 6380 fi
6385 fi 6381 fi
6386 if test "$_tv_v4l" = yes ; then 6382 if test "$_tv_v4l" = yes ; then
6387 _def_tv_v4l='#define HAVE_TV_V4L 1' 6383 _def_tv_v4l='#define HAVE_TV_V4L 1'
6388 _inputmodules="tv-v4l $_inputmodules" 6384 _inputmodules="tv-v4l $_inputmodules"
6395 6391
6396 echocheck "Video 4 Linux 2 TV interface" 6392 echocheck "Video 4 Linux 2 TV interface"
6397 if test "$_tv_v4l2" = auto ; then 6393 if test "$_tv_v4l2" = auto ; then
6398 _tv_v4l2=no 6394 _tv_v4l2=no
6399 if test "$_tv" = yes && linux ; then 6395 if test "$_tv" = yes && linux ; then
6400 for I in /dev/video /dev/video? ; do 6396 cat > $TMPC <<EOF
6401 if test -c $I ; then 6397 #include <stdlib.h>
6402 _tv_v4l2=yes 6398 #include <linux/types.h>
6403 break 6399 #include <linux/videodev2.h>
6404 fi 6400 int main(void) { return 0; }
6405 done 6401 EOF
6402 cc_check && _tv_v4l2=yes
6403 break
6406 fi 6404 fi
6407 fi 6405 fi
6408 if test "$_tv_v4l2" = yes ; then 6406 if test "$_tv_v4l2" = yes ; then
6409 _def_tv_v4l2='#define HAVE_TV_V4L2 1' 6407 _def_tv_v4l2='#define HAVE_TV_V4L2 1'
6410 _inputmodules="tv-v4l2 $_inputmodules" 6408 _inputmodules="tv-v4l2 $_inputmodules"