summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-06-01 23:20:22 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-06-01 23:20:22 (GMT)
commitaa048ea6ff2db746828a7cea3a3a1962a5b4f23d (patch)
tree752e0c725474ec62b7a29ba4a0a0931e11273d7e /config
parent45bbf45250734eda45794d5fc5bcfde4454d734b (diff)
downloadhdf5-aa048ea6ff2db746828a7cea3a3a1962a5b4f23d.zip
hdf5-aa048ea6ff2db746828a7cea3a3a1962a5b4f23d.tar.gz
hdf5-aa048ea6ff2db746828a7cea3a3a1962a5b4f23d.tar.bz2
[svn-r10839] Purpose:
improvement. Description: hdf5_mpi_complex_derived_datatype_works is hardset to no but newer IRIX64 systems have it working. Changed the code to detect the compiler version and set hdf5_mpi_complex_derived_datatype_works to no for older compilers only. Platforms tested: modi4 for the no effect. Misc. update:
Diffstat (limited to 'config')
-rw-r--r--config/irix6.x18
1 files changed, 15 insertions, 3 deletions
diff --git a/config/irix6.x b/config/irix6.x
index 8696021..2bc87c0 100644
--- a/config/irix6.x
+++ b/config/irix6.x
@@ -172,7 +172,19 @@ hdf5_cv_sw_ulong_to_fp_bottom_bit_works=${hdf5_cv_sw_ulong_to_fp_bottom_bit_work
# (1/5/05 - SLU)
hdf5_cv_sw_ldouble_to_integer_works=${hdf5_cv_sw_ldouble_to_integer_works='no'}
hdf5_cv_sw_integer_to_ldouble_works=${hdf5_cv_sw_integer_to_ldouble_works='no'}
-# For IRIX 6.5, any version that is older than MIPSpro 7.3.1.3m,
-#the MPI derived datatype is not working.
-hdf5_mpi_complex_derived_datatype_works=${hdf5_mpi_complex_derived_datatype_works='no'}
+# For IRIX 6.5, any version that is older than MIPSpro 7.3.1.3m,
+# the MPI derived datatype is not working.
+# Versions 7.4.2m or newer work.
+# Fix $hdf5_mpi_complex_derived_datatype_works if it is not set and is using cc.
+if [ -z "$hdf5_mpi_complex_derived_datatype_works" -a $CC_BASENAME = cc ]; then
+ ccversion=`$CC -version 2>&1 | sed -e 's/.*Version //p'`
+ ccversion1=`echo $ccversion | cut -f1 -d.`
+ ccversion2=`echo $ccversion | cut -f2 -d.`
+ # Assume all versions 7.4.* or newer are okay
+ # and assume ccversion2 is never larger than 99.
+ ccversionval=`expr $ccversion1 \* 100 + $ccversion2`
+ if [ $ccversionval -lt 704 ]; then
+ hdf5_mpi_complex_derived_datatype_works='no'
+ fi
+fi