diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-12-13 21:47:43 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-12-13 21:47:43 (GMT) |
commit | 8c8d5ce80a6aef76ad44494097fc32e20d6816d5 (patch) | |
tree | 02504c14cb72b2f4547bac69f183fd1db36a630a /config | |
parent | 1f0aa2059f423f8f9e5583ac004bf385eb7df91a (diff) | |
download | hdf5-8c8d5ce80a6aef76ad44494097fc32e20d6816d5.zip hdf5-8c8d5ce80a6aef76ad44494097fc32e20d6816d5.tar.gz hdf5-8c8d5ce80a6aef76ad44494097fc32e20d6816d5.tar.bz2 |
[svn-r9660] Purpose:
Bug fix.
Description:
MIPSpro Compiler 7.4.x starts to support C99 features
but stdint.h has a "guard" in it that will #error if
cc is invoked without asking for C99 standard. But it
does not result with a non-zero compiler exit code, thus
configure thought it is okay to use header file stdint.h.
This causes problems later.
Solution:
Default to use the C99 compiler if available.
Platforms tested:
Tested in Sandia tesla machine which is a new SGI machine.
Diffstat (limited to 'config')
-rw-r--r-- | config/irix6.x | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/config/irix6.x b/config/irix6.x index 44785c0..e9bb680 100644 --- a/config/irix6.x +++ b/config/irix6.x @@ -10,6 +10,10 @@ if test "X-" = "X-$CC"; then CC='cc' CC_BASENAME=cc + # use c99 compiler if available. + if `c99 -version >/dev/null 2>&1` ; then + CC='c99' + fi fi RANLIB=: @@ -63,13 +67,10 @@ case "X-$CC_BASENAME" in # 85: duplicate definition preemption (from -lnsl) # 134: duplicate weak definition preemption (from -lnsl) CFLAGS="$CFLAGS -Wl,-woff,47,-woff,84,-woff,85,-woff,134" - - # Always turn on full warnings - CFLAGS="$CFLAGS -fullwarn" fi # Extra debugging flags - DEBUG_CFLAGS="-g" + DEBUG_CFLAGS="-g -fullwarn" DEBUG_CPPFLAGS= # Extra production flags |