summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-27 21:24:31 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-01-27 21:24:31 (GMT)
commit06587c6e91e234229d2c00274aae9312df282d3f (patch)
tree6e31b7c6029e95a5ce9e82c609e37d12c0d1aafd /m4
parent4a10dbe01136ec99ff776a3ba677db959a465924 (diff)
downloadhdf5-06587c6e91e234229d2c00274aae9312df282d3f.zip
hdf5-06587c6e91e234229d2c00274aae9312df282d3f.tar.gz
hdf5-06587c6e91e234229d2c00274aae9312df282d3f.tar.bz2
[svn-r26057] Fix for: HDFFV-9094
change include 'mpif.h' to module in tests Solution: changed to 'USE mpi' and moved the tests to m4/aclocal_fc.m4 Tested: jam (mpicc, mpif90)
Diffstat (limited to 'm4')
-rw-r--r--m4/aclocal_fc.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/aclocal_fc.m4 b/m4/aclocal_fc.m4
index 7e909ba..04bcf5f 100644
--- a/m4/aclocal_fc.m4
+++ b/m4/aclocal_fc.m4
@@ -249,3 +249,30 @@ rm -rf conftest*
AC_LANG_POP(Fortran)
])
+dnl ----------------------
+dnl Parallel Test Programs
+dnl ----------------------
+
+dnl Try link a simple MPI program.
+
+AC_DEFUN([PAC_PROG_FC_MPI_CHECK],[
+
+dnl Change to the Fortran 90 language
+ AC_LANG_PUSH(Fortran)
+
+dnl Try link a simple MPI program.
+ AC_MSG_CHECKING([whether a simple MPI-IO Fortran program can be linked])
+ AC_LINK_IFELSE([
+ PROGRAM main
+ USE mpi
+ INTEGER :: ierr
+ call mpi_file_open( ierr )
+ END],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ AC_MSG_ERROR([unable to link a simple MPI-IO Fortran program])])
+
+dnl Change to the C language
+ AC_LANG_POP(Fortran)
+])
+