[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)
This commit is contained in:
James Laird 2006-03-31 13:51:49 -05:00
parent 92178e5fff
commit 1c7d12a769
2 changed files with 10 additions and 2 deletions

4
configure vendored
View File

@ -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

View File

@ -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