Mercurial > mplayer.hg
diff configure @ 18997:73b8f5ff772d
added new pvr:// input for ivtv based cards
author | ben |
---|---|
date | Mon, 10 Jul 2006 21:32:19 +0000 |
parents | 494e8de479aa |
children | b9b99fa6cb46 |
line wrap: on
line diff
--- a/configure Mon Jul 10 18:36:50 2006 +0000 +++ b/configure Mon Jul 10 21:32:19 2006 +0000 @@ -221,6 +221,7 @@ --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-pvr disable Video4Linux2/IVTV PVR support [autodetect] --disable-rtc disable RTC (/dev/rtc) on Linux [autodetect] --disable-network disable network support (for: http/mms/rtp) [enable] --enable-winsock2 enable winsock2 usage [autodetect] @@ -1642,6 +1643,7 @@ _tv_v4l=auto _tv_v4l2=auto _tv_bsdbt848=auto +_pvr=auto _network=yes _winsock2=auto _smbsupport=auto @@ -1877,6 +1879,8 @@ --disable-tv-v4l) _tv_v4l=no ;; --enable-tv-v4l2) _tv_v4l2=yes ;; --disable-tv-v4l2) _tv_v4l2=no ;; + --enable-pvr) _pvr=yes ;; + --disable-pvr) _pvr=no ;; --enable-fastmemcpy) _fastmemcpy=yes ;; --disable-fastmemcpy) _fastmemcpy=no ;; --enable-network) _network=yes ;; @@ -6802,6 +6806,31 @@ echores "$_tv_v4l2" +echocheck "Video 4 Linux 2/IVTV PVR interface" +if test "$_pvr" = auto ; then + _pvr=no + if test "$_tv_v4l2" = yes && linux ; then + cat > $TMPC <<EOF +#include <stdlib.h> +#include <inttypes.h> +#include <linux/types.h> +#include <linux/videodev2.h> +#include <linux/ivtv.h> +int main(void) { return 0; } +EOF + cc_check && _pvr=yes + fi +fi +if test "$_pvr" = yes ; then + _def_pvr='#define HAVE_PVR 1' + _inputmodules="pvr $_inputmodules" +else + _noinputmodules="pvr $_noinputmodules" + _def_pvr='#undef HAVE_PVR' +fi +echores "$_pvr" + + echocheck "audio select()" if test "$_select" = no ; then _def_select='#undef HAVE_AUDIO_SELECT' @@ -7507,6 +7536,7 @@ TV_V4L = $_tv_v4l TV_V4L2 = $_tv_v4l2 TV_BSDBT848 = $_tv_bsdbt848 +PVR = $_pvr VCD = $_vcd HAVE_DVD = $_have_dvd DVDREAD = $_dvdread @@ -8047,6 +8077,9 @@ /* Enable *BSD BrookTree TV interface support */ $_def_tv_bsdbt848 +/* Enable Video 4 Linux 2/IVTV PVR support */ +$_def_pvr + /* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ $_def_words_endian