summaryrefslogtreecommitdiffstats
path: root/config/irix6.x
diff options
context:
space:
mode:
Diffstat (limited to 'config/irix6.x')
-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