]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commitdiff
With --disable-gcc-check, do not produce spurious errors if no GCC3 at all.
authorIan Jackson <iwj@mariner.uk.xensource.com>
Tue, 15 Jul 2008 16:15:12 +0000 (17:15 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 15 Jul 2008 16:15:12 +0000 (17:15 +0100)
Small patch thanks to Prashanth.Mundkur@citrix.com.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
configure

index c1ab8506b5ea5dbe465f0b0adafc55704d012a93..99bb935dc828f1b3d5246ba1dbf28017668716f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -1202,11 +1202,16 @@ case "$target_cpu" in
     fi
     echo "#define CONFIG_DYNGEN_OP 1" >> $config_h
     gcc3minver=`$cc --version 2> /dev/null| fgrep "(GCC) 3." | awk '{ print $3 }' | cut -f2 -d.`
-    if test -n "$gcc3minver" -a $gcc3minver -gt 3
+    if test -n "$gcc3minver"
     then
-      echo "HAVE_GT_GCC_3_3=true" >> $config_mak
+      if test -a $gcc3minver -gt 3;
+      then
+        echo "HAVE_GT_GCC_3_3=true" >> $config_mak
+      else
+        echo "HAVE_GT_GCC_3_3=false" >> $config_mak
+      fi
     else
-      echo "HAVE_GT_GCC_3_3=false" >> $config_mak
+      echo "HAVE_GT_GCC_3_3=true" >> $config_mak
     fi
   ;;
   x86_64)