summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRichard Henderson2012-12-28 23:17:02 +0100
committerBlue Swirl2012-12-29 13:21:16 +0100
commit76a347e1cd0c2d6959461c89dda15ef5c4140da6 (patch)
tree6f409224cb177c5aaba1871e0c82b9b179329913 /configure
parenttcg: Add TCGV_IS_UNUSED_* (diff)
downloadqemu-76a347e1cd0c2d6959461c89dda15ef5c4140da6.tar.gz
qemu-76a347e1cd0c2d6959461c89dda15ef5c4140da6.tar.xz
qemu-76a347e1cd0c2d6959461c89dda15ef5c4140da6.zip
tcg-i386: Perform cmov detection at runtime for 32-bit.
Existing compile-time detection is spotty at best. Convert it all to runtime detection instead. Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index 99c1ec3467..b0c7e542c6 100755
--- a/configure
+++ b/configure
@@ -3086,6 +3086,21 @@ if compile_prog "" "" ; then
has_environ=yes
fi
+########################################
+# check if cpuid.h is usable.
+
+cpuid_h=no
+cat > $TMPC << EOF
+#include <cpuid.h>
+int main(void) {
+ return 0;
+}
+EOF
+if compile_prog "" "" ; then
+ cpuid_h=yes
+fi
+
+
##########################################
# End of CC checks
# After here, no more $cc or $ld runs
@@ -3611,6 +3626,10 @@ if test "$has_environ" = "yes" ; then
echo "CONFIG_HAS_ENVIRON=y" >> $config_host_mak
fi
+if test "$cpuid_h" = "yes" ; then
+ echo "CONFIG_CPUID_H=y" >> $config_host_mak
+fi
+
if test "$glusterfs" = "yes" ; then
echo "CONFIG_GLUSTERFS=y" >> $config_host_mak
fi