From e51225dc3135e69d3f0fe6a5502c0c0e77952056 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sun, 2 Nov 2008 11:19:43 +0200 Subject: [PATCH] configure: Fix FAST_CMOV detection on AMD64 The code that enabled FAST_CMOV by default was only executed in the 32-bit case. As a result FAST_CMOV was never automatically enabled on AMD64. Fix this by moving the code out of the arch-specific section so it's executed on both x86 and AMD64; it's harmless on architectures that do not support CMOV. --- configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 29e79470d8..43a125bf6b 100755 --- a/configure +++ b/configure @@ -1870,12 +1870,6 @@ EOF esac fi - if test $_cmov = "yes" && test $_fast_cmov = "auto" ; then - _fast_cmov="yes" - else - _fast_cmov="no" - fi - echores "$proc" ;; @@ -2223,6 +2217,12 @@ EOF ;; esac # case "$host_arch" in +if test $_cmov = "yes" && test $_fast_cmov = "auto" ; then + _fast_cmov="yes" +else + _fast_cmov="no" +fi + if test "$_runtime_cpudetection" = yes ; then if x86 ; then test "$_cmov" != no && _cmov=yes