X-Git-Url: http://gitweb.scilab.org/?p=scilab.git;a=blobdiff_plain;f=scilab%2Fconfigure.ac;h=be45204b9e4f6524d554d3baad73100396c64cb8;hp=60fb230010f4e8a14012648bb899933dd8b97788;hb=d65c6a978f0e93da53a6813f2a56158b17f95ee6;hpb=1c956672c8556c535bb93ace3c3df624c2672f9d diff --git a/scilab/configure.ac b/scilab/configure.ac index 60fb230..be45204 100644 --- a/scilab/configure.ac +++ b/scilab/configure.ac @@ -1109,14 +1109,18 @@ AM_CONDITIONAL(FFTW, test "$with_fftw" != no) ################# # Not in Scilab 5.0 -#AC_ARG_WITH(mpi, -# [ --with-mpi compile with MPI library]) -# -#if test "$with_mpi" = yes; then -# AC_OPENMPI() -# # We will have to detect other implementation of OpenMPI -#fi -#AM_CONDITIONAL(MPI, test "$with_mpi" = yes) +AC_ARG_WITH(mpi, + AC_HELP_STRING([--without-mpi],[compile with MPI library])) + +MPI_ENABLE=no +if test "$with_mpi" != no; then + AC_OPENMPI() + # We will have to detect other implementation of OpenMPI + MPI_ENABLE=yes +fi +AC_SUBST(MPI_ENABLE) + +AM_CONDITIONAL(MPI, test "$with_mpi" = yes) ################# ## PVM @@ -1514,6 +1518,7 @@ modules/renderer/Makefile modules/action_binding/Makefile modules/gui/Makefile modules/pvm/Makefile +modules/mpi/Makefile modules/randlib/Makefile modules/tclsci/Makefile modules/windows_tools/Makefile @@ -1569,7 +1574,7 @@ AC_CONFIG_COMMANDS_POST([chmod +x $SCI_SRCDIR_FULL/modules/scicos_blocks/src/scr #MAN_FR MAN_ENG -#modules/mpi/Makefile + #for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do # test -f $top_builddir/configure && break #done @@ -1741,14 +1746,14 @@ echo "" # echo "Not using MPI" #fi -#if test "$with_openmpi" != "no"; then -# echo "OpenMPI Configuration:" -# echo " OpenMPI LIBS ........... = $OPENMPI_LIBS" -# echo " OpenMPI C Compiler ..... = $OPENMPI_CC" -# echo " OpenMPI F77 Compiler ... = $MPIF77" -#else -# echo "Not using MPI" -#fi +if test "$with_openmpi" != "no"; then + echo "OpenMPI Configuration:" + echo "OpenMPI LIBS ........... = $OPENMPI_LIBS" + echo "OpenMPI C Compiler ..... = $OPENMPI_CC" + echo "OpenMPI F77 Compiler ... = $MPIF77" +else + echo "Not using MPI" +fi echo "" if test $BUILD_LOCALIZATION_ENABLE != no; then