From dd4163f3ab7e076cca9652c7856b92148579ac30 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 15 Jul 2004 16:51:43 -0500 Subject: [svn-r8884] Purpose: Bug fix Description: It uses the value of $ARCH as a gcc option but the linux clusters at NCSA define $ARCH as environment variable with values that are not a valid compiler option. That caused the configure to fail because it was not able to compile at all. Solution: Change ARCH to lower case $arch (convention dictates environment variables are upper cases.) Also preset $arch to null and do not honor any pass it values. Platforms tested: Attempted to run h5committest but sol was failing due to /tmp filled. Copper and verbena passed. Also passed in TG-NCSA. Misc. update: --- config/gnu-flags | 140 +++++++++++++++++++++++++++---------------------------- 1 file changed, 68 insertions(+), 72 deletions(-) diff --git a/config/gnu-flags b/config/gnu-flags index e59d6ef..5568d24 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -12,40 +12,40 @@ # cc_version: Version number: 2.91.60, 2.7.2.1 # if test X = "X$cc_flags_set"; then - cc_version="`$CC $CFLAGS -v 2>&1 |grep 'gcc version' |\ - sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`" - cc_vendor=`echo $cc_version |sed 's/\([a-z]*\).*/\1/'` - cc_version=`echo $cc_version |sed 's/[-a-z]//g'` - if test X = "X$cc_vendor" -a X != "X$cc_version"; then - cc_vendor=gcc - fi - if test "-" != "$cc_vendor-$cc_version"; then - echo "compiler '$CC' is GNU $cc_vendor-$cc_version" - fi - - # Some version numbers - cc_vers_major=`echo $cc_version | cut -f1 -d.` - cc_vers_minor=`echo $cc_version | cut -f2 -d.` - cc_vers_patch=`echo $cc_version | cut -f3 -d.` - test -n "$cc_vers_major" || cc_vers_major=0 - test -n "$cc_vers_minor" || cc_vers_minor=0 - test -n "$cc_vers_patch" || cc_vers_patch=0 - cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch` + cc_version="`$CC $CFLAGS -v 2>&1 |grep 'gcc version' |\ + sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`" + cc_vendor=`echo $cc_version |sed 's/\([a-z]*\).*/\1/'` + cc_version=`echo $cc_version |sed 's/[-a-z]//g'` + if test X = "X$cc_vendor" -a X != "X$cc_version"; then + cc_vendor=gcc + fi + if test "-" != "$cc_vendor-$cc_version"; then + echo "compiler '$CC' is GNU $cc_vendor-$cc_version" + fi + + # Some version numbers + cc_vers_major=`echo $cc_version | cut -f1 -d.` + cc_vers_minor=`echo $cc_version | cut -f2 -d.` + cc_vers_patch=`echo $cc_version | cut -f3 -d.` + test -n "$cc_vers_major" || cc_vers_major=0 + test -n "$cc_vers_minor" || cc_vers_minor=0 + test -n "$cc_vers_patch" || cc_vers_patch=0 + cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch` fi # GCC compilers before gcc-2.8.1 have problems with `long long'. if test gcc = "$cc_vendor" -a "$cc_vers_all" -lt 2008001; then - cat < `double' conversions. elif test gcc = "$cc_vendor" -a "$cc_vers_all" -eq 2096000; then @@ -63,70 +63,66 @@ EOF # Current EGCS compilers have problems with `long long' and register # allocation when optimizations are turned on for x86 systems. elif test egcs = "$cc_vendor" -a "$cc_vers_all" -le 2091066; then - if test "$HSIZET" != "large"; then - cat <