summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorhyc <hyc@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-30 05:16:29 +0000
committerhyc <hyc@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-30 05:16:29 +0000
commit76f5a308545fc4299bbf4d548e3fa5d64b0fdca8 (patch)
tree36e93ea58bc1e457c3febb319abc4b43c01c8cca /configure
parent5007aa845fe155fd5cb492ec6f71a1985eb205a9 (diff)
downloadmpv-76f5a308545fc4299bbf4d548e3fa5d64b0fdca8.tar.bz2
mpv-76f5a308545fc4299bbf4d548e3fa5d64b0fdca8.tar.xz
Add librtmp support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31277 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 30 insertions, 2 deletions
diff --git a/configure b/configure
index 71af892bf3..6c65a819b7 100755
--- a/configure
+++ b/configure
@@ -252,6 +252,7 @@ Optional features:
--enable-smb enable Samba (SMB) input [autodetect]
--enable-live enable LIVE555 Streaming Media [autodetect]
--enable-nemesi enable Nemesi Streaming Media [autodetect]
+ --enable-librtmp enable RTMPDump Streaming Media [autodetect]
--disable-vcd disable VCD support [autodetect]
--disable-dvdnav disable libdvdnav [autodetect]
--disable-dvdread disable libdvdread [autodetect]
@@ -651,6 +652,7 @@ _xanim=auto
_real=auto
_live=auto
_nemesi=auto
+_librtmp=auto
_native_rtsp=yes
_xinerama=auto
_mga=auto
@@ -1065,6 +1067,8 @@ for ac_option do
--disable-live) _live=no ;;
--enable-nemesi) _nemesi=yes ;;
--disable-nemesi) _nemesi=no ;;
+ --enable-librtmp) _librtmp=yes ;;
+ --disable-librtmp) _librtmp=no ;;
--enable-xinerama) _xinerama=yes ;;
--disable-xinerama) _xinerama=no ;;
--enable-mga) _mga=yes ;;
@@ -7212,6 +7216,30 @@ else
fi
echores "$_live"
+echocheck "RTMPDump Streaming Media library"
+if test "$_librtmp" = auto && test "$_network" = yes ; then
+ cat > $TMPC << EOF
+#include <librtmp/rtmp.h>
+int main(void) { RTMP r; RTMP_Init(&r); return 0; }
+EOF
+ cc_check -lrtmp && _librtmp=yes && extra_ldflags="$extra_ldflags -lrtmp"
+ if test "$_librtmp" != yes && $_pkg_config --exists librtmp ; then
+ _inc_tmp=$($_pkg_config --cflags librtmp)
+ _ld_tmp=$($_pkg_config --libs librtmp)
+ cc_check $_inc_tmp $_ld_tmp && _librtmp=yes && \
+ extra_ldflags="$extra_ldflags $_ld_tmp" && \
+ extra_cflags="$extra_cflags $_inc_tmp"
+ fi
+fi
+if test "$_librtmp" = yes && test "$_network" = yes; then
+ def_librtmp='#define CONFIG_LIBRTMP 1'
+ inputmodules="librtmp $inputmodules"
+else
+ _librtmp=no
+ def_librtmp='#undef CONFIG_LIBRTMP'
+ noinputmodules="librtmp $noinputmodules"
+fi
+echores "$_librtmp"
echocheck "FFmpeg libavutil"
if test "$_libavutil_a" = auto ; then
@@ -8762,7 +8790,7 @@ CONFIG_RDFT = yes
$mak_hardcoded_tables
$mak_libavcodec_mpegaudio_hp
-!CONFIG_LIBRTMP = yes
+CONFIG_LIBRTMP = $_librtmp
CONFIG_BZLIB = $bzlib
CONFIG_ENCODERS = yes
@@ -9248,7 +9276,6 @@ $def_yasm
#define CONFIG_FFSERVER 0
#define CONFIG_GPL 1
#define CONFIG_GRAY 0
-#define CONFIG_LIBRTMP 0
#define CONFIG_LIBVORBIS 0
#define CONFIG_POWERPC_PERF 0
#define CONFIG_SMALL 0
@@ -9299,6 +9326,7 @@ $def_libdirac_lavc
$def_libopencore_amrnb
$def_libopencore_amrwb
$def_libopenjpeg
+$def_librtmp
$def_libschroedinger_lavc
$def_mp3lame_lavc
$def_x264_lavc