From b5123e05cce4be4c6c8c822fad0f0df4c053da06 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 15 Jul 2008 17:15:12 +0100 Subject: [PATCH] With --disable-gcc-check, do not produce spurious errors if no GCC3 at all. Small patch thanks to Prashanth.Mundkur@citrix.com. Signed-off-by: Ian Jackson --- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c1ab8506..99bb935d 100755 --- 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) -- 2.39.5