# HG changeset patch # User atmos4 # Date 1023404298 0 # Node ID d14ae909f8555b33697b4cb5a09b22f31269c8a9 # Parent 0ed18ccf8a84587eaa55a4baabc4f6feb589d399 10l fix for cpuinfo exec after G3 changes and beatify cc check. diff -r 0ed18ccf8a84 -r d14ae909f855 configure --- a/configure Thu Jun 06 22:21:58 2002 +0000 +++ b/configure Thu Jun 06 22:58:18 2002 +0000 @@ -388,6 +388,9 @@ echocheck "$_cc version" cc_name=`( $_cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1` cc_version=`( $_cc -dumpversion ) 2>&1` + if test "$?" -gt 0; then + cc_version="not found" + fi case $cc_version in '') cc_version="v. ?.??, bad" @@ -397,6 +400,9 @@ cc_version="$cc_version, ok" cc_verc_fail=no ;; + 'not found') + cc_verc_fail=yes + ;; *) cc_version="$cc_version, bad" cc_verc_fail=yes @@ -470,7 +476,7 @@ # FreeBSD with linux emulation /proc mounted, # extract cpu information from it _cpuinfo="cat /compat/linux/proc/cpuinfo" - else + elif x86; then # all other OS try to extract cpu information from a small helper # program TOOLS/cpuinfo instead $_cc -o TOOLS/cpuinfo TOOLS/cpuinfo.c