clean up makefile

This commit is contained in:
Vitor Santos Costa
2014-02-10 23:31:33 +00:00
parent 00f0d449ec
commit 9a46cdac9b
11 changed files with 736 additions and 1115 deletions

View File

@@ -34,7 +34,7 @@ fi
dnl LAM/MPI interface
if test "$yap_cv_mpi" != "no"; then
if test "$yap_cv_mpi" != "no" -a "$INSTALL_DLLS" != "no"; then
if test "$yap_cv_mpi" != "yes"; then
AC_PATH_PROG(MPI_CC,mpicc,true,$PATH:/sbin:/usr/sbin:/usr/etc:/usr/local/sbin)
else
@@ -43,7 +43,7 @@ if test "$yap_cv_mpi" != "no"; then
MPILDF=`"$MPI_CC" --showme:link`
MPICF=`"$MPI_CC" --showme:compile`
LIBS="$LIBS $MPILDF"
INSTALL_MPI=""
PKG_MPI="library/mpi"
OLD_CC=${CC}
CC=${MPI_CC}
AC_CHECK_HEADERS(mpi.h)
@@ -64,11 +64,14 @@ if test "$yap_cv_mpi" != "no"; then
CC=${OLD_CC}
fi
else
INSTALL_MPI="# "
PKG_MPI=""
MPI_CC=${CC}
fi
AC_SUBST(PKG_MPI)
AC_SUBST(YAPMPILIB)
AC_SUBST(MPILDF)
AC_SUBST(MPICF)
mkdir -p library/lammpi