mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[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:
parent
92178e5fff
commit
1c7d12a769
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user