[MPlayer-users] [PATCH] _altivec setting lost on OS/X

Steven M. Schultz sms at 2BSD.COM
Fri Jun 13 23:39:12 CEST 2003


Hi -

	Normally _altivec means that the G4/Altivec instructions are
	supported and on a OS/X system _altivec is "yes" UNTIL line ~1995
	in ./configure.   Then _altivec is set to "no" and is used to mean
	that "altivec.h" was (or was not) found.

	I wondered why _altivec was "no" on a G4 OS/X system ;)

	The patch below works by saving and restoring _altivec around the
	one test.   If there's a better way that's fine too but this I believe
	preserves the intent of _altivec

	Cheers,
	Steven Schultz

-----------------------snip--------------------
--- configure.dist	Thu Jun 12 22:03:50 2003
+++ configure	Fri Jun 13 14:28:53 2003
@@ -1995,6 +1995,7 @@
 #include <altivec.h>
 int main(void) { return 0; }
 EOF
+save_altivec=$_altivec
 _altivec=no
 cc_check && _altivec=yes
 if test "$_altivec" = yes ; then
@@ -2006,6 +2007,7 @@
 else
   _def_altivec_h='#undef HAVE_ALTIVEC_H'
 fi
+_altivec=$save_altivec
 
 echocheck "dynamic loader"
 cat > $TMPC << EOF



More information about the MPlayer-users mailing list