changeset 6196:f01f6fd93ce8

gcc -dumpversion seems less error prone (tested with 2.95.4 3.0.4 and 3.1) Suggested by Okki <okki666@nerim.net> Added gcc-3.1 and gcc-3.0 in the find-a-sane-compiler loop
author pl
date Sun, 26 May 2002 13:41:08 +0000
parents 39805251ef61
children 48d0e89e8b21
files configure
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun May 26 12:50:58 2002 +0000
+++ b/configure	Sun May 26 13:41:08 2002 +0000
@@ -376,12 +376,12 @@
 
 
 # Checking CC version...
-# gcc-3.0 merges optimizations coming from egcs, pgcc, agcc, ...
 if test "$_skip_cc_check" != yes ; then
- for _cc in $_cc gcc3 cc; do
+ for _cc in $_cc gcc-3.1 gcc3 gcc-3.0 cc ; do
   echocheck "$_cc version"
   cc_name=`$_cc -v 2>&1 | tail -1 | cut -d ' ' -f 1`
-  cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
+  #cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'`
+  cc_version=`$_cc -dumpversion`
   case $cc_version in
     '')
       cc_version="v. ?.??, bad"