From 1c7d12a7699faad5283b53f6d95a1b7be59d99af Mon Sep 17 00:00:00 2001 From: James Laird Date: Fri, 31 Mar 2006 13:51:49 -0500 Subject: [svn-r12186] Purpose: Bug fix Description: Made parallel fortran configuration happier on modi4 Solution: The old configure macro, AC_TRY_LINK, added a couple of extra lines to the Fortran test program which the new macro doesn't. Added those lines manually. Platforms tested: modi4, copper (change should affect only parallel fortran) --- configure | 4 ++++ configure.in | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 7328199..1d965fa 100755 --- a/configure +++ b/configure @@ -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 -- cgit v0.12