From 7e38b1aefb5997932c1012a3ed8487a64800ffad Mon Sep 17 00:00:00 2001 From: henry Date: Thu, 7 Aug 2003 12:24:35 +0000 Subject: v4l2 support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10538 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 2294583dd4..497931b9c6 100755 --- a/configure +++ b/configure @@ -151,6 +151,7 @@ Optional features: --enable-joystick enable joystick support [disable] --disable-tv disable TV Interface (tv/dvb grabbers) [enable] --disable-tv-v4l disable Video4Linux TV Interface support [autodetect] + --disable-tv-v4l2 disable Video4Linux2 TV Interface support [autodetect] --disable-tv-bsdbt848 disable BSD BT848 Interface support [autodetect] --disable-edl disable EDL (edit decision list) support [enable] --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] @@ -1093,6 +1094,7 @@ _dshow=yes _select=yes _tv=yes _tv_v4l=auto +_tv_v4l2=auto _tv_bsdbt848=auto _edl=yes _network=yes @@ -1271,6 +1273,8 @@ for ac_option do --disable-tv-bsdbt848) _tv_bsdbt848=no ;; --enable-tv-v4l) _tv_v4l=yes ;; --disable-tv-v4l) _tv_v4l=no ;; + --enable-tv-v4l2) _tv_v4l2=yes ;; + --disable-tv-v4l2) _tv_v4l2=no ;; --enable-fastmemcpy) _fastmemcpy=yes ;; --disable-fastmemcpy) _fastmemcpy=no ;; --enable-network) _network=yes ;; @@ -4902,6 +4906,28 @@ fi echores "$_tv_v4l" +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 + fi +fi +if test "$_tv_v4l2" = yes ; then + _def_tv_v4l2='#define HAVE_TV_V4L2 1' + _inputmodules="tv-v4l2 $_inputmodules" +else + _noinputmodules="tv-v4l2 $_noinputmodules" + _def_tv_v4l='#undef HAVE_TV_V4L2' +fi +echores "$_tv_v4l2" + + echocheck "audio select()" if test "$_select" = no ; then _def_select='#undef HAVE_AUDIO_SELECT' @@ -5779,6 +5805,9 @@ $_def_edl /* Enable Video 4 Linux TV interface support */ $_def_tv_v4l +/* Enable Video 4 Linux 2 TV interface support */ +$_def_tv_v4l2 + /* Enable *BSD BrookTree TV interface support */ $_def_tv_bsdbt848 -- cgit v1.2.3