[MPlayer-dev-eng] new Altivec patches and G3

Alan Curry pacman at TheWorld.com
Sun Feb 19 22:56:34 CET 2006


Tim writes the following:
>
>I have a Powerbook G3/500 (Pismo) running MacOS X here, so I went  
>ahead and tested this.  Configuring it without --enable-altivec seems  
>to work fine.  Mplayer runs like normal with no crashes.  If you do  
>pass --enable-altivec, configure shows:

If you use --enable-altivec in this case, you're lying to configure,
preventing it from doing the right thing... crashes are to be expected. Did
any past versions work if configured this way?

>On another, sorta related note, configure gives me this when it tries  
>to detect my CPU type:
>
>Checking for CPU type ... ./configure: line 1182: [: : integer  
>expression expected

Sounds like maybe the first sysctl should have quotes, like the second one
does, and possibly 2>/dev/null to keep it quiet, like this:

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1134
diff -u -r1.1134 configure
--- configure	16 Feb 2006 20:45:24 -0000	1.1134
+++ configure	19 Feb 2006 21:54:30 -0000
@@ -1179,7 +1179,7 @@
         ;;
       Darwin)
 	proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'`
-	if [ `sysctl -n hw.vectorunit` -eq 1 -o \
+	if [ "`sysctl -n hw.vectorunit 2>/dev/null`" -eq 1 -o \
 	    "`sysctl -n hw.optional.altivec 2>/dev/null`" -eq 1 ]; then
 	    _altivec=yes
 	fi




More information about the MPlayer-dev-eng mailing list