| 28 |
|
AC_DEFINE(MPI_MOD, 1, [have mpi module]) |
| 29 |
|
MPI_F90_MODS="-I${mpi_f90_mods}" |
| 30 |
|
AC_SUBST(MPI_F90_MODS) |
| 31 |
+ |
# The library name: |
| 32 |
+ |
if test -z "$MPI_LIB" ; then |
| 33 |
+ |
MPI_LIBNAME=-lmpich |
| 34 |
+ |
else |
| 35 |
+ |
MPI_LIBNAME="$MPI_LIB" |
| 36 |
+ |
fi |
| 37 |
+ |
if test -z "$MPIMODLIBNAME" ; then |
| 38 |
+ |
MPIMODLIBNAME="${MPI_LIBNAME}f90" |
| 39 |
+ |
fi |
| 40 |
+ |
AC_SUBST(MPIMODLIBNAME) |
| 41 |
|
else |
| 42 |
|
AC_MSG_RESULT(no) |
| 43 |
|
AC_MSG_ERROR([Couldn't locate MPI F90 Modules]) |
| 538 |
|
|
| 539 |
|
# Try to determine "good" native compiler flags if none specified on command |
| 540 |
|
# line |
| 541 |
+ |
|
| 542 |
|
if test "$ac_test_F90FLAGS" != "set"; then |
| 543 |
|
F90FLAGS="" |
| 544 |
|
case "${host_cpu}-${host_os}" in |