diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-03-03 19:39:10 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-03-03 19:39:10 (GMT) |
commit | 965fef45d984b2ca0767fe5048e97a065254c3a1 (patch) | |
tree | 49daffb3f0e43797df345c4d3a0220931647ddcb /configure | |
parent | f5c24bc9a46b989892e946bb6f440a88bb2f06af (diff) | |
download | hdf5-965fef45d984b2ca0767fe5048e97a065254c3a1.zip hdf5-965fef45d984b2ca0767fe5048e97a065254c3a1.tar.gz hdf5-965fef45d984b2ca0767fe5048e97a065254c3a1.tar.bz2 |
[svn-r10132] Purpose:
Bug fix
Description:
When C flags are passed in using $CC variable, this can confuse test
commands in configure (for instance, CC='pgcc -tp k8-32').
Solution:
Previous solution didn't entirely solve problem. Wrote a sed snippit
to strip flags from $CC for purposes of test in configure.
Platforms tested:
mir (just a configure bug)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -47580,12 +47580,14 @@ fi PARALLEL=${PARALLEL:-no} -if `echo $CC | grep / >/dev/null 2>&1`; then +CC_NOFLAGS=`echo $CC | sed 's/ -.*//'` + +if `echo $CC_NOFLAGS | grep ^/ >/dev/null 2>&1`; then CC_VERSION="$CC" else CC_VERSION="$CC"; for x in `echo $PATH | sed -e 's/:/ /g'`; do - if test -x $x/$CC; then + if test -x $x/$CC_NOFLAG; then CC_VERSION="$x/$CC" break fi |