summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-27 04:25:12 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-02-27 04:25:12 +0000
commit81cbdce6aa3597074c9ad33c22d85e8124374fb5 (patch)
tree7bc0de43e003d33bc1644f8bcc0686188f9e3980 /configure
parente80d264f49ee0ae1398fbfcc81cfc94272e2923e (diff)
downloadmpv-81cbdce6aa3597074c9ad33c22d85e8124374fb5.tar.bz2
mpv-81cbdce6aa3597074c9ad33c22d85e8124374fb5.tar.xz
added a stream module for the vstream client library
allows MPlayer to stream video from a properly equipped Tivo git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14837 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure29
1 files changed, 28 insertions, 1 deletions
diff --git a/configure b/configure
index 20491f490d..76e275a247 100755
--- a/configure
+++ b/configure
@@ -189,6 +189,7 @@ Optional features:
--disable-gethostbyname2 gethostbyname() function is not provided by the C
library [autodetect]
--disable-ftp Disable ftp support [enabled]
+ --disable-vstream Disable tivo vstream client support [autodetect]
Codecs:
--enable-gif enable gif support [autodetect]
@@ -1407,6 +1408,7 @@ _enca=auto
_inet6=auto
_gethostbyname2=auto
_ftp=yes
+_vstream=auto
for ac_option do
case "$ac_option" in
# Skip 1st pass
@@ -1650,6 +1652,8 @@ for ac_option do
--disable-unrarlib) _unrarlib=no ;;
--enable-ftp) _ftp=yes ;;
--disable-ftp) _ftp=no ;;
+ --enable-vstream) _vstream=yes ;;
+ --disable-vstream) _vstream=no ;;
--enable-fribidi) _fribidi=yes ;;
--disable-fribidi) _fribidi=no ;;
@@ -6191,6 +6195,26 @@ else
fi
echores "$_ftp"
+echocheck "vstream client"
+if test "$_vstream" = auto ; then
+ _vstream=no
+ cat > $TMPC <<EOF
+#include <vstream-client.h>
+void vstream_error(const char *format, ... ) {}
+int main(void) { vstream_start(); return 0; }
+EOF
+ cc_check -lvstream-client && _vstream=yes
+fi
+if test "$_vstream" = yes ; then
+ _def_vstream='#define HAVE_VSTREAM 1'
+ _inputmodules="vstream $_inputmodules"
+ _ld_vstream='-lvstream-client'
+else
+ _noinputmodules="vstream $_noinputmodules"
+ _def_vstream='#undef HAVE_VSTREAM'
+fi
+echores "$_vstream"
+
# endian testing
echocheck "byte order"
if test "$_big_endian" = auto ; then
@@ -6664,7 +6688,7 @@ $_live_libs_def
MPLAYER_NETWORK = $_network
STREAMING_LIVE_DOT_COM = $_live
-MPLAYER_NETWORK_LIB = $_ld_live $_ld_network
+MPLAYER_NETWORK_LIB = $_ld_live $_ld_vstream $_ld_network
DVBIN = $_dvbin
VIDIX = $_vidix
SHARED_PP = $_shared_pp
@@ -7342,6 +7366,9 @@ $_def_network
/* enable ftp support */
$_def_ftp
+/* enable vstream support */
+$_def_vstream
+
/* enable winsock2 instead of Unix functions*/
$_def_winsock2