CPPFLAGS_old="$CPPFLAGS"
CPPFLAGS="$MPI_INCLUDES $CPPFLAGS"
AC_CHECK_HEADER(mpi.h,WITHLAM="yes",WITHLAM="no")
- CPPFLAGS="$CPPFLAGS_old"
if test "$WITHLAM" = "yes";then
AC_CHECK_LIB(util,openpty,,WITHLAM="no")
if test "$WITHLAM" = "yes";then
- CPPFLAGS="$MPI_INCLUDES $CPPFLAGS"
LIBS="$LIBS -lmpi++"
AC_MSG_CHECKING(for MPI_Init in -lmpi++)
AC_TRY_LINK([
], [int argc=0; char **argv=0; MPI_Init(&argc,&argv);],
WITHLAM="yes",WITHLAM="no")
- CPPFLAGS="$CPPFLAGS_old"
if test "$WITHLAM" = "yes";then
AC_MSG_RESULT(yes)
fi
fi
+ CPPFLAGS="$CPPFLAGS_old"
LDFLAGS="$LDFLAGS_old"
LIBS="$LIBS_old"