[MPlayer-dev-eng] [PATCH] _altivec forced to no during check for altivec.h
Steven M. Schultz
sms at 2BSD.COM
Tue Jun 17 19:21:07 CEST 2003
The _altivec variable is clobbered (forced to 'no') during the
check for <altivec.h>. This causes G4 based systems which do
have Altivec instructions (but lack altivec.h - OS/X systems for
example) to not use them
Defining another flag "have_altivec_h" would seem to be a solution
to the problem. The small patch is attached. If there is a
better way to handle PPC machines without altivec.h (OS/X is
one such system) that's fine too ;)
Cheers,
Steven Schultz
-------------- next part --------------
--- configure.dist Tue Jun 17 09:18:30 2003
+++ configure Tue Jun 17 09:22:41 2003
@@ -1995,14 +1995,15 @@
#include <altivec.h>
int main(void) { return 0; }
EOF
-_altivec=no
-cc_check && _altivec=yes
-if test "$_altivec" = yes ; then
+
+have_altivec_h=no
+cc_check && have_altivec_h=yes
+if test "$have_altivec_h" = yes ; then
_def_altivec_h='#define HAVE_ALTIVEC_H 1'
else
_def_altivec_h='#undef HAVE_ALTIVEC_H'
fi
-echores "$_altivec"
+echores "$have_altivec_h"
else
_def_altivec_h='#undef HAVE_ALTIVEC_H'
fi
More information about the MPlayer-dev-eng
mailing list