From 605055819a8d5c6c22c78adcaac8051f38b89780 Mon Sep 17 00:00:00 2001 From: secher Date: Tue, 29 Nov 2005 15:35:01 +0000 Subject: [PATCH] debug of check lam --- salome_adm/unix/config_files/check_lam.m4 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/salome_adm/unix/config_files/check_lam.m4 b/salome_adm/unix/config_files/check_lam.m4 index 3d8d9d8b6..7363237a3 100644 --- a/salome_adm/unix/config_files/check_lam.m4 +++ b/salome_adm/unix/config_files/check_lam.m4 @@ -59,8 +59,15 @@ if test "$WITHLAM" = yes; then LIBS_old="$LIBS" LDFLAGS_old="$LDFLAGS" LDFLAGS="$MPI_LIBS $LDFLAGS" - AC_CHECK_LIB(lam,lam_mp_init,,WITHLAM="no") + AC_CHECK_LIB(lam,lam_mp_init,WITHLAM="yes",WITHLAM="no") + if test "$WITHLAM" = "yes";then + MPI_LIBS="-llam $MPI_LIBS" + LIBS="$LIBS -llam" + fi AC_CHECK_LIB(mpi,MPI_Init,WITHLAM="yes",WITHLAM="no") + if test "$WITHLAM" = "yes";then + MPI_LIBS="-lmpi $MPI_LIBS" + fi AC_CHECK_LIB(mpi,MPI_Publish_name,WITHMPI2="yes",WITHMPI2="no") LDFLAGS="$LDFLAGS_old" LIBS="$LIBS_old" @@ -69,7 +76,6 @@ if test "$WITHLAM" = yes; then if test "$WITHLAM" = "yes";then WITHMPI="yes" mpi_ok=yes - MPI_LIBS="$MPI_LIBS -lmpi -llam" CPPFLAGS="-DWITHLAM $CPPFLAGS" else mpi_ok=no -- 2.39.2