changeset 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
files configure
diffstat 1 files changed, 5 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat May 10 13:23:05 2008 +0000
+++ b/configure	Sat May 10 13:40:36 2008 +0000
@@ -2457,19 +2457,15 @@
 
     # Disable runtime cpudetection if we cannot generate AltiVec code or
     # AltiVec is disabled by the user.
-    if test "$_runtime_cpudetection" = yes -a "$_altivec" = no ; then
-        _runtime_cpudetection=no
-    fi
+    test "$_runtime_cpudetection" = yes && test "$_altivec" = no \
+        && _runtime_cpudetection=no
 
     # Show that we are optimizing for AltiVec (if enabled and supported).
-    if test "$_runtime_cpudetection" = no -a "$_altivec" = yes ; then
-	_optimizing="$_optimizing altivec"
-    fi
+    test "$_runtime_cpudetection" = no && test "$_altivec" = yes \
+        && _optimizing="$_optimizing altivec"
 
     # If AltiVec is enabled, make sure the correct flags turn up in CFLAGS.
-    if test "$_altivec" = yes ; then
-        CFLAGS="$CFLAGS $_altivec_gcc_flags"
-    fi
+    test "$_altivec" = yes && CFLAGS="$CFLAGS $_altivec_gcc_flags"
 fi
 
 if arm ; then