summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-07-29 22:14:42 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-07-29 22:14:42 (GMT)
commit2a07e56c0522aa3ff86005ad923b9bd96c05689e (patch)
tree054ade86c41c7f763fee67c2ae9b7551e9dbad67 /config
parenta7372ec352b6485a466157e70929cc5f0973fba8 (diff)
downloadhdf5-2a07e56c0522aa3ff86005ad923b9bd96c05689e.zip
hdf5-2a07e56c0522aa3ff86005ad923b9bd96c05689e.tar.gz
hdf5-2a07e56c0522aa3ff86005ad923b9bd96c05689e.tar.bz2
[svn-r17263] Description:
Bring r17244:17262 from trunk to revise_chunks branch Tested on: Mac OS X/32 10.5.7 (amazon) w/debug & production FreeBSD/32 6.3 (duty) w/debug h5committest not needed on this branch
Diffstat (limited to 'config')
-rw-r--r--config/gnu-flags6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index fe3eba3..c1990e0 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -26,8 +26,10 @@
# cc_version: Version number: 2.91.60, 2.7.2.1
#
if test X = "X$cc_flags_set"; then
- cc_version="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 |grep 'gcc version' |\
- sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"
+ # PathScale compiler spits out gcc version string too. Need to
+ # filter it out.
+ cc_version="`$CC $CFLAGS $H5_CFLAGS -v 2>&1 | grep -v 'PathScale' |\
+ 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