[Mplayer-cvslog] CVS: main configure,1.872,1.873

Alex Beregszaszi syncmail at mplayerhq.hu
Thu Jun 24 12:25:07 CEST 2004


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv24875

Modified Files:
	configure 
Log Message:
support for realvideo codecs under macosx, original patch by Donnie Smith (together with an altivec patch by Dan Christiansen)

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.872
retrieving revision 1.873
diff -u -r1.872 -r1.873
--- configure	21 Jun 2004 19:54:48 -0000	1.872
+++ configure	24 Jun 2004 10:25:05 -0000	1.873
@@ -191,6 +191,7 @@
   --enable-jpeg		 enable jpeg input/output support [autodetect]
   --enable-liblzo	 enable external liblzo support [autodetect]
   --disable-win32        disable Win32 DLL support [autodetect]
+  --disable-macshlb      disable Mac OS X SHLB support [autodetect]
   --disable-dshow        disable Win32/DirectShow support [autodetect]
   --disable-qtx          disable Quicktime codecs [autodetect]
   --disable-xanim        disable XAnim DLL support [autodetect]
@@ -880,8 +881,7 @@
 	proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'`
 	if [ `sysctl -n hw.vectorunit` -eq 1 ]; then
 	    _altivec=yes
- 	fi
-	if [ `sysctl -n hw.optional.altivec` -eq 1 ]; then
+	elif [ "`sysctl -n hw.optional.altivec 2>/dev/null`" = 1 ]; then
 	    _altivec=yes
 	fi
     fi
@@ -1201,6 +1201,7 @@
 _alsa=auto
 _fastmemcpy=yes
 _unrarlib=yes
+_macshlb=auto
 _win32=auto
 _dshow=yes
 _select=yes
@@ -1584,6 +1585,8 @@
   --disable-mmx) # 3Dnow! and MMX2 require MMX
         _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;;
 
+  --enable-macshlb) _macshlb=yes ;;
+  --disable-macshlb) _macshlb=no ;;
   --enable-win32) _win32=yes ;;
   --disable-win32) _win32=no _dshow=no ;;
   --enable-dshow) _win32=yes _dshow=yes ;;
@@ -4853,7 +4856,20 @@
   _ld_faad=
 fi
 
-
+echocheck "MacOS X SHLB (shared lib) support"
+if test "$_macshlb" = auto ; then
+  if test "$_macosx" = yes ; then
+    _macshlb=yes
+  else
+    _macshlb=no
+  fi
+fi
+echores "$_macshlb"
+if test "$_macshlb" = yes ; then
+  _def_macshlb='#define USE_MACSHLB 1'
+else
+  _def_macshlb='#undef USE_MACSHLB'
+fi
 
 if test "$_win32" = auto ; then
   if x86 ; then
@@ -5001,18 +5017,19 @@
 echocheck "RealPlayer DLL"
 if test "$_real" = auto ; then
   _real=no
-  if test "$_dl" = yes || test "$_win32" = yes ; then
+  if test "$_dl" = yes || test "$_win32" = yes || test "$_macshlb" = yes ; then
 #  if test "$_dl" = yes  ; then
-    if linux || freebsd || netbsd || win32 ; then
+    if linux || freebsd || netbsd || win32 || darwin ; then
       _real=yes
     else
-      echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW)"
+      echores "no (tested only on Linux/FreeBSD/NetBSD/Cygwin/MinGW/Darwin)"
     fi
     if test "$_real" = yes ; then
       if test -z "$_reallibdir" ; then
 	for I in "$_libdir/codecs" "$_libdir/real" /usr/lib/real \
 	  /usr/lib/RealPlayer{9,8,}/Codecs /usr/local/RealPlayer{9,8,}/Codecs \
 	  /usr/local/lib/RealPlayer{9,8,}/Codecs /opt/RealPlayer{9,8,}/{Real/,}Codecs \
+	  {~,}/Applications/RealOne\ Player.app/Contents/MacOS/Library/Codecs \
 	  "$_win32libdir"; do
           if test -d "$I" ; then
             _reallibdir="$I"
@@ -6369,6 +6386,9 @@
 /* Mac OS X specific features */
 $_def_macosx
 
+/* Mac OS X SHLB support */
+$_def_macshlb
+
 /* Build our Win32-loader */
 $_def_win32_loader
 




More information about the MPlayer-cvslog mailing list