# HG changeset patch # User alex # Date 1088072705 0 # Node ID 47dbe356085cfaf68b760e72e3e148f2b8a6d066 # Parent 4bbc58806c90730576ae9b4dad2140351af98c2e support for realvideo codecs under macosx, original patch by Donnie Smith (together with an altivec patch by Dan Christiansen) diff -r 4bbc58806c90 -r 47dbe356085c configure --- a/configure Thu Jun 24 09:23:00 2004 +0000 +++ b/configure Thu Jun 24 10:25:05 2004 +0000 @@ -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