This reverts
b5123e05cce4be4c6c8c822fad0f0df4c053da06 and replaces it
with a nice simple change, namely to change test ... -a ... with
test ... && test ... . That provides shortcut evaluation.
Thanks to Andre Przywara who provided this one-line change as an
update to the previous commit.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
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"
+ if test -n "$gcc3minver" && test $gcc3minver -gt 3
then
- 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=true" >> $config_mak
+ else
+ echo "HAVE_GT_GCC_3_3=false" >> $config_mak
fi
;;
x86_64)