summaryrefslogtreecommitdiffstats
path: root/config/dec-flags
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-11-25 19:24:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-11-25 19:24:16 (GMT)
commitd0b29413fcaab14fdb8e1a86322197fe880c4749 (patch)
treea27909550804d0999875f5d3bb7f04174ca9db9e /config/dec-flags
parent55f78f7baa9bc755a38bedc0b285781267526224 (diff)
downloadhdf5-d0b29413fcaab14fdb8e1a86322197fe880c4749.zip
hdf5-d0b29413fcaab14fdb8e1a86322197fe880c4749.tar.gz
hdf5-d0b29413fcaab14fdb8e1a86322197fe880c4749.tar.bz2
[svn-r7881] Purpose:
Update DEC compiler support Description: Updated DEC/Compaq compiler detection to handle DEC->Compaq switchover in compiler version string. Also, copied v5.x compiler flags to V6.x compiler flags and included the -ieee and -misalign flags necessary for correct floating-point support. Platforms tested: Pittsburgh Alpha Cluster (lemieux.psc.edu)
Diffstat (limited to 'config/dec-flags')
-rw-r--r--config/dec-flags37
1 files changed, 32 insertions, 5 deletions
diff --git a/config/dec-flags b/config/dec-flags
index 7b2b182..9945bdb 100644
--- a/config/dec-flags
+++ b/config/dec-flags
@@ -12,8 +12,18 @@
#
if test X = "X$cc_flags_set"; then
cc_vendor=DEC
- cc_version="`$CC $CFLAGS -V 2>&1 |head -1 |\
- sed 's/.*DEC C \(V[0-9][-\.0-9]*\).*/\1/'`"
+ cc_version="`$CC $CFLAGS -V 2>&1 |head -1`"
+ case "$cc_version" in
+ DEC*)
+ cc_version="`echo $cc_version |\
+ sed 's/.*DEC C \(V[0-9][-\.0-9]*\).*/\1/'`"
+ ;;
+ Compaq*)
+ cc_version="`echo $cc_version |\
+ sed 's/.*Compaq C \(V[0-9][-\.0-9]*\).*/\1/'`"
+ ;;
+ esac
+
if test X != "$gcc_version"; then
echo "compiler '$CC' is $cc_vendor-$cc_version"
else
@@ -39,15 +49,32 @@ esac
case "$cc_vendor-$cc_version" in
DEC-V5.*)
# Production
- PROD_CFLAGS="-g0 -verbose -warnprotos -std -O4 $ARCH -ansi_args -fp_reorder -readonly_strings -inline speed"
+ PROD_CFLAGS="-std -verbose -warnprotos -ieee -misalign -O4 $ARCH -ansi_args -fp_reorder -readonly_strings -inline speed"
+ PROD_CPPFLAGS="-D_INTRINSICS -D_INLINE_INTRINSICS"
+
+ # Debug
+ DEBUG_CFLAGS="-g -std -verbose -warnprotos -ieee -misalign"
+ DEBUG_CPPFLAGS=
+
+ # Profile
+ PROFILE_CFLAGS="-pg -std -verbose -warnprotos -ieee -misalign"
+ PROFILE_CPPFLAGS=
+
+ # Flags are set
+ cc_flags_set=yes
+ ;;
+
+ DEC-V6.*)
+ # Production
+ PROD_CFLAGS="-std1 -verbose -warnprotos -ieee -misalign -O4 $ARCH -fp_reorder -readonly_strings -inline speed"
PROD_CPPFLAGS="-D_INTRINSICS -D_INLINE_INTRINSICS"
# Debug
- DEBUG_CFLAGS="-g -std -verbose -warnprotos"
+ DEBUG_CFLAGS="-g -std1 -verbose -warnprotos -ieee -misalign"
DEBUG_CPPFLAGS=
# Profile
- PROFILE_CFLAGS="-pg -std -verbose -warnprotos"
+ PROFILE_CFLAGS="-pg -std1 -verbose -warnprotos -ieee -misalign"
PROFILE_CPPFLAGS=
# Flags are set