| 69 |
|
echo 'void f(){}' > conftest.cc |
| 70 |
|
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
| 71 |
|
AC_MSG_RESULT(yes) |
| 72 |
+ |
|
| 73 |
+ |
|
| 74 |
|
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
| 75 |
|
else |
| 76 |
|
AC_MSG_RESULT(no) |
| 83 |
|
|
| 84 |
|
AC_PROG_F90([ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95]) |
| 85 |
|
dnl Check the flag for Fortran90 preprocessing |
| 86 |
< |
ACX_PROG_F90_PREPFLAG |
| 86 |
> |
dnl ACX_PROG_F90_PREPFLAG |
| 87 |
|
dnl Check to see if a flag is required for preprocessing defines |
| 88 |
|
ACX_PROG_F90_PREPDEFFLAG |
| 89 |
|
AC_LANG_PUSH(Fortran 90) |
| 173 |
|
AC_MSG_RESULT(found $MPI_LIB) |
| 174 |
|
;; |
| 175 |
|
*) dnl All other machines |
| 176 |
< |
if test -f "$MPI_LIBDIR/libmpi.a" ; then |
| 177 |
< |
MPI_LIB="-lmpi" |
| 176 |
> |
if test -f "$MPI_LIBDIR/libmpich.a" ; then |
| 177 |
> |
MPI_LIB="-lmpich" |
| 178 |
|
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
| 179 |
|
MPI_LIB="-lmpi" |
| 180 |
< |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
| 181 |
< |
MPI_LIB="-lmpich" |
| 180 |
> |
elif test -f "$MPI_LIBDIR/libmpi.a" ; then |
| 181 |
> |
MPI_LIB="-lmpi" |
| 182 |
|
else |
| 183 |
|
AC_MSG_ERROR([neither libmpi nor libmpich found; check path for MPI package first...]) |
| 184 |
|
fi |