[Mplayer-cvslog] CVS: main configure,1.783,1.784

Alex Beregszaszi alex at mplayerhq.hu
Tue Oct 14 11:41:56 CEST 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv5387

Modified Files:
	configure 
Log Message:
some darwin patches (hostinfo,xmms), based on patch by Chris Zubrzycki <beren at mac.com>

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.783
retrieving revision 1.784
diff -u -r1.783 -r1.784
--- configure	11 Oct 2003 19:31:29 -0000	1.783
+++ configure	14 Oct 2003 09:41:08 -0000	1.784
@@ -573,6 +573,9 @@
   # FreeBSD with Linux emulation /proc mounted,
   # extract CPU information from it
   _cpuinfo="cat /compat/linux/proc/cpuinfo"
+elif darwin ; then
+  # use hostinfo on Darwin
+  _cpuinfo="hostinfo"
 elif x86; then
   # all other OSes try to extract CPU information from a small helper
   # program TOOLS/cpuinfo instead
@@ -844,9 +847,13 @@
 	fi
     fi
     if darwin ; then
+	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
+	    _altivec=yes
+	fi
     fi
     if test "$_altivec" = yes; then
         echores "$proc altivec"
@@ -1977,6 +1984,7 @@
 cc_check -lsocket && _ld_sock="-lsocket"
 cc_check -lnsl && _ld_sock="-lnsl"
 cc_check -lsocket -lnsl && _ld_sock="-lsocket -lnsl"
+cc_check -lsocket -ldnet && _ld_sock="-lsocket -ldnet"
 if test $_winsock2 = auto && not cygwin ; then
   _winsock2=no
   cat > $TMPC << EOF
@@ -5239,7 +5247,11 @@
   fi
 
   _def_xmms='#define HAVE_XMMS 1'
-  _xmms_lib="${_xmmslibdir}/libxmms.so.1 -export-dynamic"
+  if darwin ; then
+     _xmms_lib="${_xmmslibdir}/libxmms.dylib"
+  else
+     _xmms_lib="${_xmmslibdir}/libxmms.so.1 -export-dynamic"
+  fi
 else
   _def_xmms='#undef HAVE_XMMS'
 fi
@@ -5474,7 +5486,7 @@
 fi
 if darwin ; then
   # use gnu style cpp on Darwin
-  CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN"
+  CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN -Wl,-bind_at_load"
   # libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX
   test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN"
 fi



More information about the MPlayer-cvslog mailing list