summaryrefslogtreecommitdiffstats
path: root/config/irix5.3
diff options
context:
space:
mode:
Diffstat (limited to 'config/irix5.3')
-rw-r--r--config/irix5.358
1 files changed, 26 insertions, 32 deletions
diff --git a/config/irix5.3 b/config/irix5.3
index acc375e..cba1bbd 100644
--- a/config/irix5.3
+++ b/config/irix5.3
@@ -3,6 +3,11 @@
# This file is part of the HDF5 build script. It is processed shortly
# after configure starts and defines, among other things, flags for
# the various compile modes.
+#
+# Modifications:
+# Robb Matzke, 1998-08-31
+# Removed `-ansi' from the CFLAGS because it caused sigaction()
+# to not be compiled.
#----------------------------------------------------------------------------
@@ -13,38 +18,27 @@
# Sometimes a particular compiler must be used. If that's the case
# then uncomment the following line. Otherwise the main configure
# script will try to detect the compiler automatically.
-CC=cc
+CC=${CC:-cc}
RANLIB=:
-# What must *always* be present for things to compile correctly?
-CFLAGS="$CFLAGS -ansi -fullwarn -woff 799"
-#CPPFLAGS="$CPPFLAGS -I."
-
-# What compiler flags should be used for code development?
-DEBUG_CFLAGS=-g
-DEBUG_CPPFLAGS=
-
-# What compiler flags should be used for building a production
-# library?
-PROD_CFLAGS=-O
-PROD_CPPFLAGS=
-
-# What compiler flags enable code profiling?
-PROFILE_CFLAGS=-pg
-PROFILE_CPPFLAGS=
-
-
-#----------------------------------------------------------------------------
-# Values for overriding configuration tests when cross compiling.
-# This includes compiling on some machines where the serial front end
-# compiles for a parallel back end.
-
-# Set this to `yes' or `no' depending on whether the target is big
-# endian or little endian.
-#ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}
-
-# Set this to the width required by printf() to print type `long
-# long'. For instance, if the format would be `%lld' then set it to
-# `ll' or if the format would be `%qd' set it to `q'.
-#hdf5_cv_printf_ll=${hdf5_cv_printf_ll='ll'}
+case $CC in
+ *gcc*)
+ CFLAGS="$CFLAGS -ansi"
+ DEBUG_CFLAGS="-g -fverbose-asm"
+ DEBUG_CPPFLAGS="-DH5F_LOW_DFLT=H5F_LOW_SEC2"
+ PROD_CFLAGS="-O3 -finline-functions"
+ PROD_CPPFLAGS=
+ PROFILE_CFLAGS=-pg
+ PROFILE_CPPFLAGS=
+ ;;
+ *)
+ CFLAGS="$CFLAGS -fullwarn -prototypes -woff 799"
+ DEBUG_CFLAGS=-g
+ DEBUG_CPPFLAGS=
+ PROD_CFLAGS=-O
+ PROD_CPPFLAGS=
+ PROFILE_CFLAGS=-pg
+ PROFILE_CPPFLAGS=
+ ;;
+esac