# HG changeset patch # User atmosfear # Date 991656082 0 # Node ID 21475b2da242d54b53f63a6cb54c7a82b652b60a # Parent 1be1647ebd7dd38bc38e9d329756183cf5f49886 Fixed gcc version detect. diff -r 1be1647ebd7d -r 21475b2da242 configure --- a/configure Mon Jun 04 11:27:42 2001 +0000 +++ b/configure Mon Jun 04 12:01:22 2001 +0000 @@ -175,13 +175,15 @@ fi fi +_skip_cc_check=no + for ac_option do case "$ac_option" in --cc=*) _cc=`echo $ac_option | cut -d '=' -f 2` ;; - --disable-gcc-checking=*) + --disable-gcc-checking) _skip_cc_check=yes ;; --with-x11libdir=*) @@ -196,9 +198,9 @@ esac done -# Checking CC version... -if ! test -z "$_skip_cc_check"; then -echo "checking version of $CC""... $_cc" +# Checking CC version... what's with egcs, pgcc? - Atmos +if test "$_skip_cc_check" != "yes"; then +echo -n "Checking version of $_cc ... " cc_version=`$_cc -v 2>&1 | sed -n 's/^.*version \([aegcygnustp-]*[0-9.]*\).*$/\1/p'` case $cc_version in '') cc_version="v. ?.??, bad"; cc_verc_fail=yes;; @@ -212,7 +214,7 @@ exit fi fi -if test -z "$_skip_cc_check"; then +if test "$_skip_cc_check" = "yes"; then echo "YOU'VE SELECTED '--disable-gcc-checking'. PLEASE DON'T SEND US ANY BUGREPORTS!" fi # --- @@ -758,6 +760,7 @@ done # Checking as compatibility... +echo -n "Checking assembler (as) ... " cat > astest.S < /dev/null || as_verc_fail=yes rm -f astest.S astest.o fi -if test -z "$as_verc_fail"; then -echo "checking assembler...o'k" -fi -if ! test -z "$as_verc_fail"; then -echo "Please upgrade binutils..." -exit +if test "$as_verc_fail" != "yes"; then + echo "ok" +else + echo "failed" + echo "Please upgrade binutils..." # to which version? - Atmos + exit fi