diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-01-27 21:24:31 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2015-01-27 21:24:31 (GMT) |
commit | 06587c6e91e234229d2c00274aae9312df282d3f (patch) | |
tree | 6e31b7c6029e95a5ce9e82c609e37d12c0d1aafd /m4 | |
parent | 4a10dbe01136ec99ff776a3ba677db959a465924 (diff) | |
download | hdf5-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.m4 | 27 |
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) +]) + |