[Mplayer-cvslog] CVS: main configure,1.309,1.310
Alex Beregszaszi
alex at mplayer.dev.hu
Sat Dec 1 16:05:11 CET 2001
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv591
Modified Files:
configure
Log Message:
added auto detection of tv v4l and changed tv to enabled
Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -r1.309 -r1.310
--- configure 1 Dec 2001 14:41:54 -0000 1.309
+++ configure 1 Dec 2001 15:05:08 -0000 1.310
@@ -113,7 +113,8 @@
--enable-termcap use termcap database for key codes [autodetect]
--enable-lirc enable LIRC (remote control) support [autodetect]
--enable-gui enable GUI [disable]
- --enable-tv enable TV Interface (tv/dvb grabbers) [disable]
+ --disable-tv disable TV Interface (tv/dvb grabbers) [enable]
+ --disable-tv-v4l disable Video 4 Linux TV Interface support [autodetect]
--disable-win32 disable Win32 DLL support [autodetect]
--disable-dshow disable DirectShow support (if no C++ compiler and
libs are available or find the dshow codecs slower
@@ -670,7 +671,8 @@
_win32=auto
_dshow=auto
_select=yes
-_tv=no
+_tv=yes
+_tv_v4l=auto
_streaming=no
_divx4linux=auto
_lirc=auto
@@ -759,6 +761,8 @@
--disable-alsa) _alsa=no ;;
--enable-tv) _tv=yes ;;
--disable-tv) _tv=no ;;
+ --enable-tv-v4l) _tv_v4l=yes ;;
+ --disable-tv-v4l) _tv_v4l=no ;;
--enable-fastmemcpy) _fastmemcpy=yes ;;
--disable-fastmemcpy) _fastmemcpy=no ;;
--enable-streaming) _streaming=yes ;;
@@ -1738,6 +1742,7 @@
fi
echores "$_sdl (with $_sdlconfig)"
+
echocheck "DXR3/H+"
if test "$_dxr3" = auto ; then
cat > $TMPC << EOF
@@ -2313,7 +2318,6 @@
echocheck "TV interface"
-# FIXME tv check
if test "$_tv" = yes ; then
_def_tv='#define USE_TV 1'
_inputmodules="tv $_inputmodules"
@@ -2322,6 +2326,27 @@
fi
echores "$_tv"
+echocheck "Video 4 Linux TV interface"
+if test "$_tv_v4l" = auto && test "$_tv" = yes && linux ; then
+ _tv_v4l=no
+ if test -c /dev/video0 ; then
+ cat > $TMPC <<EOF
+#include <linux/videodev.h>
+int main(void) { return 0; }
+EOF
+ cc_check && _tv_v4l=yes
+ fi
+else
+ _tv_v4l=no
+fi
+if test "$_tv_v4l" = yes ; then
+ _def_tv_v4l='#define HAVE_TV_V4L 1'
+ _inputmodules="tv-v4l $_inputmodules"
+else
+ _def_tv_v4l='#undef HAVE_TV_V4L'
+fi
+echores "$_tv_v4l"
+
echocheck "select"
if test "$_select" = no ; then
@@ -2743,6 +2768,9 @@
/* Enable TV Interface support */
$_def_tv
+
+/* Enable Video 4 Linux TV interface support */
+$_def_tv_v4l
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
More information about the MPlayer-cvslog
mailing list