# HG changeset patch # User alex # Date 1007219108 0 # Node ID a5f693377e234f0081864ecec39135565869d376 # Parent 71075e783b0456bd9c5d25557c8afe56df4df098 added auto detection of tv v4l and changed tv to enabled diff -r 71075e783b04 -r a5f693377e23 configure --- a/configure Sat Dec 01 14:41:54 2001 +0000 +++ b/configure Sat Dec 01 15:05:08 2001 +0000 @@ -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 < +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 @@ -2744,6 +2769,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). */ $_def_words_endian