diff options
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.in | 8 |
2 files changed, 10 insertions, 2 deletions
@@ -48492,9 +48492,11 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu cat >conftest.$ac_ext <<_ACEOF + program main include 'mpif.h' integer:: ierr call mpi_file_open( ierr ) + end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 @@ -48598,9 +48600,11 @@ rm -f conftest.err conftest.$ac_objext \ if test "X$PARALLEL" = "Xyes"; then cat >conftest.$ac_ext <<_ACEOF + program main include 'mpif.h' integer:: ierr call mpi_file_open( ierr ) + end _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 diff --git a/configure.in b/configure.in index 8f32823..2235b97 100644 --- a/configure.in +++ b/configure.in @@ -2161,9 +2161,11 @@ case "X-$enable_parallel" in dnl Try link a simple MPI program. If fail, try again with -lmpi. AC_LINK_IFELSE([ + program main include 'mpif.h' integer:: ierr - call mpi_file_open( ierr )],, + call mpi_file_open( ierr ) + end],, AC_CHECK_LIB(mpi, [ include 'mpif.h' integer:: ierr @@ -2173,9 +2175,11 @@ case "X-$enable_parallel" in dnl -lmpio. if test "X$PARALLEL" = "Xyes"; then AC_LINK_IFELSE([ + program main include 'mpif.h' integer:: ierr - call mpi_file_open( ierr )],, + call mpi_file_open( ierr ) + end],, AC_CHECK_LIB(mpio, [ include 'mpif.h' integer:: ierr |