]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug of check lam BR_UT_V310a2
authorsecher <secher>
Tue, 29 Nov 2005 15:35:01 +0000 (15:35 +0000)
committersecher <secher>
Tue, 29 Nov 2005 15:35:01 +0000 (15:35 +0000)
salome_adm/unix/config_files/check_lam.m4

index 3d8d9d8b6cb54bfac7465c7fb7fd821295fc8003..7363237a39fa0a60df2a25446a8dc6e72897cffa 100644 (file)
@@ -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