--- configure.in 2003-12-23 10:14:56.000000000 +0100 +++ /root/configure.in 2004-06-06 02:13:29.182121072 +0200 @@ -71,9 +71,19 @@ AC_CHECK_HEADER([altivec.h], [TRY_CFLAGS="$ARCH_OPT_CFLAGS -maltivec"], [TRY_CFLAGS="$ARCH_OPT_CFLAGS -faltivec"]) - AC_TRY_CFLAGS([$OPT_CFLAGS $TRY_CFLAGS $CFLAGS], - [ARCH_OPT_CFLAGS="$TRY_CFLAGS" - AC_DEFINE([ARCH_PPC],,[ppc architecture])]);; + CFLAGS="$OPT_CFLAGS" + AC_TRY_COMPILE([ + #ifdef HAVE_ALTIVEC_H + #include <altivec.h> + #endif + ], [ + vector float v = (vector float) { 0.0, 0.0, 0.0, 0.0 }; + vec_andc((vector float)v, (vector float)v); + ], [ AC_TRY_CFLAGS([$OPT_CFLAGS $TRY_CFLAGS $CFLAGS], + [ARCH_OPT_CFLAGS="$TRY_CFLAGS" + AC_DEFINE([ARCH_PPC],,[ppc architecture])]) + ] ) + ;; sparc-* | sparc64-*) AC_DEFINE([ARCH_SPARC],,[sparc architecture]) TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"