summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-05-04 16:32:58 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-05-04 16:32:58 (GMT)
commite49d4fd62f1f27d9dd5a41fc77013df858ff9ed8 (patch)
treecc4ecb594f86826a24f9250e2ad93ad569a7cf8d /m4
parenta4553b35e1e2dae2e5f99cfd2286b1c89f84b43d (diff)
downloadhdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.zip
hdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.tar.gz
hdf5-e49d4fd62f1f27d9dd5a41fc77013df858ff9ed8.tar.bz2
Fix ifort warning flag.
Restore AC_DEFUN([PAC_PROG_FC_DEFAULT_REALisDBLE] in m4/aclocal_fc.m4. Add --enable-symbols, --enable-profiling, and --enable-optimization options to autotools configure; all configure flags for --enable-production and --disable-production should match HDF5 1.10 and 1.12 production and debug default flags.
Diffstat (limited to 'm4')
-rw-r--r--m4/aclocal_fc.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/m4/aclocal_fc.m4 b/m4/aclocal_fc.m4
index ab45bbc..a35cc7e 100644
--- a/m4/aclocal_fc.m4
+++ b/m4/aclocal_fc.m4
@@ -131,6 +131,39 @@ AC_DEFUN([PAC_PROG_FC_C_LONG_DOUBLE_EQ_C_DOUBLE],[
])
fi
+dnl Check to see if -r8 was specified to determine if we need to
+dnl compile the DOUBLE PRECISION interfaces.
+
+AC_DEFUN([PAC_PROG_FC_DEFAULT_REALisDBLE],[
+ FORTRAN_DEFAULT_REALisDBLE="no"
+ AC_MSG_CHECKING([if Fortran default REAL is DOUBLE PRECISION])
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+ MODULE type_mod
+ INTERFACE h5t
+ MODULE PROCEDURE h5t_real
+ MODULE PROCEDURE h5t_dble
+ END INTERFACE
+ CONTAINS
+ SUBROUTINE h5t_real(r)
+ REAL :: r
+ END SUBROUTINE h5t_real
+ SUBROUTINE h5t_dble(d)
+ DOUBLE PRECISION :: d
+ END SUBROUTINE h5t_dble
+ END MODULE type_mod
+ PROGRAM main
+ USE type_mod
+ REAL :: r
+ DOUBLE PRECISION :: d
+ CALL h5t(r)
+ CALL h5t(d)
+ END PROGRAM main
+ ])], [AC_MSG_RESULT([no])],
+ [AC_MSG_RESULT([yes])
+ FORTRAN_DEFAULT_REALisDBLE="yes"])
+])
+
dnl Checking if the compiler supports the required Fortran 2003 features and
dnl disable Fortran 2003 if it does not.