Commit d4af3de224fbb4677744e9d0661a6296fca791ba

Authored by balrog
1 parent 73221b12

gcc32 may well be a 4.x version for a 32bit target, so add an additional check, …

…hopefully not too strict.
Probe also gcc-3.3.6 to make Gentoo users happy.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3087 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
configure
@@ -23,7 +23,7 @@ static="no" @@ -23,7 +23,7 @@ static="no"
23 cross_prefix="" 23 cross_prefix=""
24 cc="gcc" 24 cc="gcc"
25 gcc3_search="yes" 25 gcc3_search="yes"
26 -gcc3_list="gcc-3.4 gcc34 gcc-3.3 gcc33 gcc-3.2 gcc32" 26 +gcc3_list="gcc-3.4 gcc34 gcc-3.3.6 gcc-3.3 gcc33 gcc-3.2 gcc32"
27 host_cc="gcc" 27 host_cc="gcc"
28 ar="ar" 28 ar="ar"
29 make="make" 29 make="make"
@@ -413,7 +413,7 @@ EOF @@ -413,7 +413,7 @@ EOF
413 if test "$gcc3_search" = "yes" ; then 413 if test "$gcc3_search" = "yes" ; then
414 echo "Looking for gcc 3.x" 414 echo "Looking for gcc 3.x"
415 for compat_cc in $gcc3_list ; do 415 for compat_cc in $gcc3_list ; do
416 - if "$cross_prefix$compat_cc" --version > /dev/null 2>&1 ; then 416 + if "$cross_prefix$compat_cc" --version 2> /dev/null | fgrep '(GCC) 3.' > /dev/null 2>&1 ; then
417 echo "Found \"$compat_cc\"" 417 echo "Found \"$compat_cc\""
418 cc="$cross_prefix$compat_cc" 418 cc="$cross_prefix$compat_cc"
419 found_compat_cc="yes" 419 found_compat_cc="yes"