From 48bd8da2d62fc9d3ec63254619a4a7182b9a47fa Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 24 Jun 2004 10:25:05 +0000 Subject: support for realvideo codecs under macosx, original patch by Donnie Smith (together with an altivec patch by Dan Christiansen) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12631 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 5361f72c73..65f0cd11dd 100755 --- a/configure +++ b/configure @@ -191,6 +191,7 @@ Codecs: --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 @@ EOF 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 @@ _sunaudio=auto _alsa=auto _fastmemcpy=yes _unrarlib=yes +_macshlb=auto _win32=auto _dshow=yes _select=yes @@ -1584,6 +1585,8 @@ for ac_option do --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 @@ else _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 @@ fi 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 @@ $_def_dshow /* Mac OS X specific features */ $_def_macosx +/* Mac OS X SHLB support */ +$_def_macshlb + /* Build our Win32-loader */ $_def_win32_loader -- cgit v1.2.3