changeset 6347:e42a9f3dbdc8

realplayer dll support autodetected (requires linux && -ldl)
author arpi
date Sun, 09 Jun 2002 01:19:48 +0000
parents f9b044b3aca1
children c5859db5e457
files configure
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Jun 09 01:09:09 2002 +0000
+++ b/configure	Sun Jun 09 01:19:48 2002 +0000
@@ -140,6 +140,7 @@
   --disable-win32        disable Win32 DLL support [autodetect]
   --disable-dshow        disable DirectShow support [autodetect]
   --disable-xanim        disable XAnim DLL support [autodetect]
+  --disable-real         disable RealPlayer8 DLL support [autodetect]
   --disable-xvid         disable XviD codec [autodetect]
   --disable-divx4linux   disable DivX4linux codec [autodetect]
   --enable-opendivx      enable _old_ OpenDivx codec [disable]
@@ -864,6 +865,7 @@
 _dvdread=auto
 _dvdkit=auto
 _xanim=auto
+_real=auto
 _xinerama=auto
 _mga=auto
 _xmga=auto
@@ -984,6 +986,8 @@
   --disable-dvdnav)	_dvdnav=no	;;
   --enable-xanim)	_xanim=yes	;;
   --disable-xanim)	_xanim=no	;;
+  --enable-real)	_real=yes	;;
+  --disable-real)	_real=no	;;
   --enable-xinerama)	_xinerama=yes	;;
   --disable-xinerama)	_xinerama=no	;;
   --enable-mga)		_mga=yes	;;
@@ -3216,6 +3220,30 @@
   _nocodecmodules="xanim $_nocodecmodules"
 fi
 
+echocheck "RealPlayer8 DLL"
+if test "$_real" = auto ; then
+  _real=no
+  if test "$_dl" = yes ; then
+    if linux ; then
+      _real=yes
+      echores "yes"
+    else
+      echores "no (untested on non-linux arch)"
+    fi
+  else
+    echores "no (dynamic loader support needed)"
+  fi
+else
+  echores "$_real"
+fi
+if test "$_real" = yes ; then
+  _def_real='#define USE_REALCODECS 1'
+  _codecmodules="real $_codecmodules"
+else
+  _def_real='#undef USE_REALCODECS'
+  _nocodecmodules="real $_nocodecmodules"
+fi
+
 
 echocheck "iconv"
 if test "$_iconv" = auto ; then
@@ -3774,6 +3802,7 @@
 _ld_dl_dynamic=''
 bsd && _ld_dl_dynamic='-rdynamic'
 test "$_xanim" = yes && _ld_dl_dynamic='-rdynamic'
+test "$_real" = yes && _ld_dl_dynamic='-rdynamic'
 
 _ld_arch="$_ld_arch $_ld_pthread $_ld_dl $_ld_dl_dynamic"
 bsdos && _ld_arch="$_ld_arch -ldvd"
@@ -4150,6 +4179,9 @@
 /* Default search path */
 $_def_xanim_path
 
+/* RealPlayer DLL support */
+$_def_real
+
 /* Use 3dnow/mmxext/sse/mmx optimized fast memcpy() [maybe buggy... signal 4]*/
 $_def_fastmemcpy