comparison configure @ 26684:45d4ce126ce7

Replace some if constructs with && in the AltiVec test.
author diego
date Sat, 10 May 2008 13:40:36 +0000
parents 57ee6b0e465d
children 5b9a13fb7357
comparison
equal deleted inserted replaced
26683:57ee6b0e465d 26684:45d4ce126ce7
2455 && _def_altivec_h='#define HAVE_ALTIVEC_H 1' 2455 && _def_altivec_h='#define HAVE_ALTIVEC_H 1'
2456 echores "$_have_altivec_h" 2456 echores "$_have_altivec_h"
2457 2457
2458 # Disable runtime cpudetection if we cannot generate AltiVec code or 2458 # Disable runtime cpudetection if we cannot generate AltiVec code or
2459 # AltiVec is disabled by the user. 2459 # AltiVec is disabled by the user.
2460 if test "$_runtime_cpudetection" = yes -a "$_altivec" = no ; then 2460 test "$_runtime_cpudetection" = yes && test "$_altivec" = no \
2461 _runtime_cpudetection=no 2461 && _runtime_cpudetection=no
2462 fi
2463 2462
2464 # Show that we are optimizing for AltiVec (if enabled and supported). 2463 # Show that we are optimizing for AltiVec (if enabled and supported).
2465 if test "$_runtime_cpudetection" = no -a "$_altivec" = yes ; then 2464 test "$_runtime_cpudetection" = no && test "$_altivec" = yes \
2466 _optimizing="$_optimizing altivec" 2465 && _optimizing="$_optimizing altivec"
2467 fi
2468 2466
2469 # If AltiVec is enabled, make sure the correct flags turn up in CFLAGS. 2467 # If AltiVec is enabled, make sure the correct flags turn up in CFLAGS.
2470 if test "$_altivec" = yes ; then 2468 test "$_altivec" = yes && CFLAGS="$CFLAGS $_altivec_gcc_flags"
2471 CFLAGS="$CFLAGS $_altivec_gcc_flags"
2472 fi
2473 fi 2469 fi
2474 2470
2475 if arm ; then 2471 if arm ; then
2476 echocheck "ARMv5TE (Enhanced DSP Extensions)" 2472 echocheck "ARMv5TE (Enhanced DSP Extensions)"
2477 if test $_armv5te = "auto" ; then 2473 if test $_armv5te = "auto" ; then