diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-12-13 22:29:45 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-12-13 22:29:45 (GMT) |
commit | 2d2522f666628f45a49b2033d7324a1443884604 (patch) | |
tree | 912cc397999ac885673601645806f65582f92a51 | |
parent | f61ad8556593ae97e58768f0b610a0179730092b (diff) | |
download | hdf5-2d2522f666628f45a49b2033d7324a1443884604.zip hdf5-2d2522f666628f45a49b2033d7324a1443884604.tar.gz hdf5-2d2522f666628f45a49b2033d7324a1443884604.tar.bz2 |
[svn-r9662] 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.
-rw-r--r-- | config/irix6.x | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/config/irix6.x b/config/irix6.x index 2221b3f..2481e1e 100644 --- a/config/irix6.x +++ b/config/irix6.x @@ -8,8 +8,12 @@ # Use SGI supplied C compiler by default. There is no ranlib if test "X-" = "X-$CC"; then - CC='cc' - CC_BASENAME=cc + CC='cc' + CC_BASENAME=cc + # use c99 compiler if available. + if `c99 -version >/dev/null 2>&1` ; then + CC='c99' + fi fi RANLIB=: @@ -61,13 +65,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 |