[Mplayer-cvslog] CVS: main configure,1.493,1.494

Atmosfear atmos4 at mplayerhq.hu
Thu Jun 6 18:46:16 CEST 2002


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

Modified Files:
	configure 
Log Message:
Setup better cflags for PPC G3 patch by Colin Leroy <colin at colino.net>. IMHO needs improvements for other ppc cpus, too.


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.493
retrieving revision 1.494
diff -u -r1.493 -r1.494
--- configure	4 Jun 2002 20:11:14 -0000	1.493
+++ configure	6 Jun 2002 16:46:05 -0000	1.494
@@ -76,6 +76,13 @@
   esac
 }
 
+ppc() {
+  case "$host_arch" in
+    ppc) return 0;;
+    *) return 1;;
+  esac
+}
+
 # Use this before starting a check
 echocheck() {
   echo "============ Checking for $@ ============" >> "$TMPLOG"
@@ -455,7 +462,7 @@
 fi
 
 # Try to find the available options for the current CPU
-if x86 ; then
+if x86 || ppc; then
   if test -r /proc/cpuinfo ; then
     # linux with /proc mounted, extract cpu information from it
     _cpuinfo="cat /proc/cpuinfo"
@@ -707,6 +714,11 @@
     proc=''
     _march=''
     _mcpu=''
+    cpu750=`$_cpuinfo | grep "cpu.*750"`
+    if test -n "$cpu750"; then
+	_march=''
+	_mcpu='-mcpu=750'
+    fi
     ;;
 
   alpha)




More information about the MPlayer-cvslog mailing list