comparison configure @ 28373:f4edd950737e

Make sure HAVE_ALTIVEC_H is always #defined.
author diego
date Sat, 31 Jan 2009 22:37:53 +0000
parents 48a33df51c5f
children abadeea0b4a3
comparison
equal deleted inserted replaced
28372:48a33df51c5f 28373:f4edd950737e
2504 echores "$bswap" 2504 echores "$bswap"
2505 fi #if x86 2505 fi #if x86
2506 2506
2507 2507
2508 #FIXME: This should happen before the check for CFLAGS.. 2508 #FIXME: This should happen before the check for CFLAGS..
2509 def_altivec_h='#define HAVE_ALTIVEC_H 0'
2509 if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then 2510 if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then
2510 2511
2511 # check if AltiVec is supported by the compiler, and how to enable it 2512 # check if AltiVec is supported by the compiler, and how to enable it
2512 echocheck "GCC AltiVec flags" 2513 echocheck "GCC AltiVec flags"
2513 cat > $TMPC << EOF 2514 cat > $TMPC << EOF
2514 int main(void) { return 0; } 2515 int main(void) { return 0; }
2515 EOF 2516 EOF
2516 if $(cc_check -maltivec -mabi=altivec) ; then 2517 if $(cc_check -maltivec -mabi=altivec) ; then
2517 _altivec_gcc_flags="-maltivec -mabi=altivec" 2518 _altivec_gcc_flags="-maltivec -mabi=altivec"
2518 # check if <altivec.h> should be included 2519 # check if <altivec.h> should be included
2519 def_altivec_h='#undef HAVE_ALTIVEC_H'
2520 cat > $TMPC << EOF 2520 cat > $TMPC << EOF
2521 #include <altivec.h> 2521 #include <altivec.h>
2522 int main(void) { return 0; } 2522 int main(void) { return 0; }
2523 EOF 2523 EOF
2524 if $(cc_check $_altivec_gcc_flags) ; then 2524 if $(cc_check $_altivec_gcc_flags) ; then