Lines 26-36
Link Here
|
26 |
|
26 |
|
27 |
AC_ARG_WITH(mpich, |
27 |
AC_ARG_WITH(mpich, |
28 |
[AC_HELP_STRING([--with-mpich=DIR],[root directory path of MPICH installation])], |
28 |
[AC_HELP_STRING([--with-mpich=DIR],[root directory path of MPICH installation])], |
29 |
WITHMPICH="yes",WITHMPICH="no") |
29 |
MPICHREQUESTED="yes",MPICHREQUESTED="no") |
30 |
|
30 |
|
31 |
MPI_INCLUDES="" |
31 |
MPI_INCLUDES="" |
32 |
MPI_LIBS="" |
32 |
MPI_LIBS="" |
33 |
if test "$WITHMPICH" = yes; then |
33 |
WITHMPICH=no |
|
|
34 |
if test x"$MPICHREQUESTED" = xyes; then |
34 |
|
35 |
|
35 |
MPIREQUESTED="yes" |
36 |
MPIREQUESTED="yes" |
36 |
echo |
37 |
echo |
Lines 38-46
Link Here
|
38 |
echo testing mpich |
39 |
echo testing mpich |
39 |
echo --------------------------------------------- |
40 |
echo --------------------------------------------- |
40 |
echo |
41 |
echo |
41 |
MPICH_HOME=$withval |
|
|
42 |
|
42 |
|
43 |
if test "$MPICH_HOME"; then |
43 |
if test "x$withval" != "xyes"; then |
|
|
44 |
MPICH_HOME=$withval |
44 |
MPI_INCLUDES="-I$MPICH_HOME/include" |
45 |
MPI_INCLUDES="-I$MPICH_HOME/include" |
45 |
if test "x$MPICH_HOME" = "x/usr" |
46 |
if test "x$MPICH_HOME" = "x/usr" |
46 |
then |
47 |
then |
Lines 67-76
Link Here
|
67 |
WITHMPI="yes" |
68 |
WITHMPI="yes" |
68 |
mpi_ok=yes |
69 |
mpi_ok=yes |
69 |
MPI_LIBS="$MPI_LIBS -lmpich" |
70 |
MPI_LIBS="$MPI_LIBS -lmpich" |
|
|
71 |
dnl We're doing this here because MPI_LIBS doesn't appear to be |
72 |
dnl being used within the Makefile structure |
73 |
LDFLAGS="$MPI_LIBS $LDFLAGS" |
70 |
else |
74 |
else |
71 |
mpi_ok=no |
75 |
mpi_ok=no |
72 |
fi |
76 |
fi |
73 |
|
|
|
74 |
fi |
77 |
fi |
75 |
|
78 |
|
|
|
79 |
AC_SUBST(WITHMPICH) |
80 |
AC_SUBST(MPI_INCLUDES) |
81 |
AC_SUBST(MPI_LIBS) |
82 |
AC_SUBST(mpi_ok) |
76 |
])dnl |
83 |
])dnl |