changeset 23563:0348714047be

Allow to disable x86 cpu extensions (e.g, via --disable-sse) even with runtime cpudetection.
author reimar
date Tue, 19 Jun 2007 13:37:31 +0000
parents 5b28053ba249
children 8b7d62452ebd
files configure
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jun 19 13:24:16 2007 +0000
+++ b/configure	Tue Jun 19 13:37:31 2007 +0000
@@ -2208,16 +2208,16 @@
 
 if test "$_runtime_cpudetection" = yes ; then
   if x86 ; then
-    _cmov=yes
+    test "$_cmov"     != no && _cmov=yes
     x86_32 && _cmov=no
-    _mmx=yes
-    _3dnow=yes
-    _3dnowext=yes
-    _mmxext=yes
-    _sse=yes
-    _sse2=yes
-    _ssse3=yes
-    _mtrr=yes
+    test "$_mmx"      != no && _mmx=yes
+    test "$_3dnow"    != no && _3dnow=yes
+    test "$_3dnowext" != no && _3dnowext=yes
+    test "$_mmxext"   != no && _mmxext=yes
+    test "$_sse"      != no && _sse=yes
+    test "$_sse2"     != no && _sse2=yes
+    test "$_ssse3"    != no && _ssse3=yes
+    test "$_mtrr"     != no && _mtrr=yes
   fi
   if ppc; then
     _altivec=yes