PVM_LIB
PVM_ARCH
PVMGETARCH
+MPI_FALSE
+MPI_TRUE
+MPI_ENABLE
+OPENMPI_LIBS
+OPENMPI_FLAGS
+OPENMPI_CC
FFTW_FALSE
FFTW_TRUE
FFTW_ENABLE
with_fftw
with_fftw_include
with_fftw_library
+with_mpi
with_pvm
with_pvm_include
with_pvm_library
--without-fftw Disable the interface to the FFTW 3 library
--with-fftw-include=DIR Set the path to the FFTW headers
--with-fftw-library=DIR Set the path to the FFTW libraries
+ --without-mpi compile with MPI library
--without-pvm Disable the interface to the PVM library
--with-pvm-include=DIR Set the path to the PVM headers
--with-pvm-library=DIR Set the path to the PVM library directory
$as_echo_n "checking to see if the java compiler works... " >&6; }
cat << \EOF > conftest.java
-// #line 9842 "configure"
+// #line 9850 "configure"
public class conftest {
if test "x$ac_java_jvm_name" = "x" ; then
cat << \EOF > conftest.java
-// #line 9902 "configure"
+// #line 9910 "configure"
import gnu.java.io.EncodingManager;
public class conftest {
cat << \EOF > conftest.java
-// #line 9960 "configure"
+// #line 9968 "configure"
import java.nio.charset.Charset;
public class conftest {
cat << \EOF > conftest.java
-// #line 9999 "configure"
+// #line 10007 "configure"
import java.lang.StringBuilder;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11248 "configure"
+// #line 11256 "configure"
import com.mxgraph.model.mxCell;
public class conftest {
export ac_java_classpath="$JGRAPHX:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11329 "configure"
+// #line 11337 "configure"
import com.mxgraph.view.mxGraph;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11392 "configure"
+// #line 11400 "configure"
import org.flexdock.docking.DockingManager;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11486 "configure"
+// #line 11494 "configure"
import com.jgoodies.looks.common.RenderingUtils;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11580 "configure"
+// #line 11588 "configure"
import com.jgoodies.looks.common.RenderingUtils;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11675 "configure"
+// #line 11683 "configure"
import com.l2fprod.util.AccessUtils;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11769 "configure"
+// #line 11777 "configure"
import javax.media.opengl.glu.GLUnurbs;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 11963 "configure"
+// #line 11971 "configure"
import com.sun.gluegen.runtime.CPU;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12112 "configure"
+// #line 12120 "configure"
import javax.help.JHelp;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12206 "configure"
+// #line 12214 "configure"
import javax.help.JHelp;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12301 "configure"
+// #line 12309 "configure"
import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12395 "configure"
+// #line 12403 "configure"
import com.artenum.rosetta.core.action.AbstractConsoleAction;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12490 "configure"
+// #line 12498 "configure"
import ncsa.hdf.hdf5lib.HDF5Constants;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12585 "configure"
+// #line 12593 "configure"
import org.apache.commons.logging.LogFactory;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12679 "configure"
+// #line 12687 "configure"
import org.scilab.forge.jlatexmath.TeXFormula;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12779 "configure"
+// #line 12787 "configure"
import com.puppycrawl.tools.checkstyle.CheckStyleTask;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12873 "configure"
+// #line 12881 "configure"
import org.apache.commons.beanutils.Converter;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 12967 "configure"
+// #line 12975 "configure"
import antlr.TokenStreamException;
public class conftest {
#################
# 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
+
+# Check whether --with-mpi was given.
+if test "${with_mpi+set}" = set; then :
+ withval=$with_mpi;
+fi
+
+
+MPI_ENABLE=no
+if test "$with_mpi" != no; then
+
+#"$with_openmpi_path" != 'yes' -a "$with_openmpi_path" != 'no'
+#if test false != true; then
+ # Look if mpicc (which provides cflags and ldflags) is available
+# AC_MSG_CHECKING([openmpi, for mpicc])
+# OPENMPI_FOUND=0
+# MPICC="$with_openmpi/bin/mpicc"
+# if test -x "$MPICC"; then
+# AC_MSG_RESULT([$MPICC])
+# OPENMPI_CC=$MPICC
+# OPENMPI_FOUND=1
+# fi
+# if test $OPENMPI_FOUND -eq 0; then
+# MPICC="$with_openmpi/mpicc"
+# if test -x "$MPICC"; then
+# OPENMPI_FOUND=1
+# OPENMPI_CC=$MPICC
+# AC_MSG_RESULT([$MPICC])
+# fi
+# fi
+# if test $OPENMPI_FOUND -eq 0; then
+# AC_MSG_ERROR([Unable to find $MPICC. Please check the path you provided])
+# else
+# unset OPENMPI_FOUND
+# fi
+#else
+ for ac_prog in mpicc
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OPENMPI_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OPENMPI_CC"; then
+ ac_cv_prog_OPENMPI_CC="$OPENMPI_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OPENMPI_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OPENMPI_CC=$ac_cv_prog_OPENMPI_CC
+if test -n "$OPENMPI_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENMPI_CC" >&5
+$as_echo "$OPENMPI_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$OPENMPI_CC" && break
+done
+test -n "$OPENMPI_CC" || OPENMPI_CC="no"
+
+ if test "x$MPICC" = "xno"; then
+ as_fn_error "Unable to find mpicc in the path. Please check your installation of openmpi (example : openmpi & openmpi-dev with Debian)" "$LINENO" 5
+ fi
#fi
-#AM_CONDITIONAL(MPI, test "$with_mpi" = yes)
+saved_cflags=$CFLAGS
+saved_LIBS="$LIBS"
+
+CFLAGS=`$OPENMPI_CC --showme:compile`
+LIBS=`$OPENMPI_CC --showme:link`
+
+ac_fn_c_check_header_mongrel "$LINENO" "mpi.h" "ac_cv_header_mpi_h" "$ac_includes_default"
+if test "x$ac_cv_header_mpi_h" = x""yes; then :
+ OPENMPI_CFLAGS=$CFLAGS
+else
+ as_fn_error "Cannot find headers of the library OpenMPI. Please install the dev package (Debian : openmpi-dev)" "$LINENO" 5
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
+$as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
+if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmpi $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char MPI_Init ();
+int
+main ()
+{
+return MPI_Init ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_mpi_MPI_Init=yes
+else
+ ac_cv_lib_mpi_MPI_Init=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
+$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
+if test "x$ac_cv_lib_mpi_MPI_Init" = x""yes; then :
+ OPENMPI_LIBS=$LIBS
+else
+ as_fn_error "openmpi : library missing. (Cannot find symbol MPI_Init in -lmpi). Check if OpenMPI is installed" "$LINENO" 5
+
+fi
+
+
+#OPENMPI_CPPFLAGS="-I$openmpi_dir/include"
+#OPENMPI_LDFLAGS="-L$openmpi_dir/lib/"
+
+#OPENMPI_HEADER="$openmpi_dir/include/mpi.h"
+#OPENMPI_DIR="$openmpi_dir"
+
+LIBS="$saved_LIBS"
+CFLAGS=$saved_cflags
+
+
+
+
+#CFLAGS="$CFLAGS $OPENMPI_FLAGS"
+#AC_CHECK_LIB(xml2,xmlInitParserCtxt,,[AC_MSG_ERROR([pcre : library missing])])
+
+
+#AC_CHECK_HEADERS([pcre/tree.h],,[AC_MSG_ERROR([pcre : library missing missing])])
+
+# Gets compilation and library flags
+
+ # We will have to detect other implementation of OpenMPI
+ MPI_ENABLE=yes
+fi
+
+
+ if test "$with_mpi" = yes; then
+ MPI_TRUE=
+ MPI_FALSE='#'
+else
+ MPI_TRUE='#'
+ MPI_FALSE=
+fi
+
#################
## PVM
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later" >&5
$as_echo_n "checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later... " >&6; }
cat > conftest.$ac_ext <<EOF
-#line 21014 "configure"
+#line 21188 "configure"
#include "confdefs.h"
#include "$CHK_TCL_INCLUDE_PATH/$CHK_TCL_INC_NAME"
$as_echo_n "checking if tk is version $CHK_TK_MAJOR.$CHK_TK_MINOR or later... " >&6; }
cat > conftest.$ac_ext <<EOF
-#line 21326 "configure"
+#line 21500 "configure"
#include "confdefs.h"
#include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME"
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 21907 "configure"
+// #line 22081 "configure"
import org.apache.batik.parser.Parser;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22001 "configure"
+// #line 22175 "configure"
import org.apache.batik.parser.Parser;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22097 "configure"
+// #line 22271 "configure"
import com.icl.saxon.Loader;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22191 "configure"
+// #line 22365 "configure"
import org.apache.fop.pdf.PDFInfo;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22285 "configure"
+// #line 22459 "configure"
import net.sourceforge.jeuclid.LayoutContext;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22379 "configure"
+// #line 22553 "configure"
import org.apache.commons.io.output.CountingOutputStream;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22473 "configure"
+// #line 22647 "configure"
import org.apache.xmlgraphics.util.Service;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22567 "configure"
+// #line 22741 "configure"
import org.w3c.dom.svg.SVGDocument;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22661 "configure"
+// #line 22835 "configure"
import org.w3c.dom.svg.SVGDocument;
public class conftest {
export ac_java_classpath="$jar_resolved:$ac_java_classpath"
cat << \EOF > conftest.java
-// #line 22759 "configure"
+// #line 22933 "configure"
import org.apache.avalon.framework.configuration.ConfigurationException;
public class conftest {
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 29024 "configure"
+#line 29198 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 29130 "configure"
+#line 29304 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
CXXFLAGS="$CXXFLAGS -Werror -O0"
fi
-ac_config_files="$ac_config_files libs/MALLOC/Makefile libs/dynamiclibrary/Makefile libs/doublylinkedlist/Makefile libs/hashtable/Makefile libs/libst/Makefile contrib/Makefile modules/helptools/Makefile modules/helptools/macros/xmlfiletohtml.sci modules/data_structures/Makefile modules/differential_equations/Makefile modules/optimization/Makefile modules/elementary_functions/Makefile modules/special_functions/Makefile modules/io/Makefile modules/shell/Makefile modules/completion/Makefile modules/history_manager/Makefile modules/jvm/Makefile modules/sound/Makefile modules/statistics/Makefile modules/mexlib/Makefile modules/sparse/Makefile modules/linear_algebra/Makefile modules/polynomials/Makefile modules/symbolic/Makefile modules/signal_processing/Makefile modules/arnoldi/Makefile modules/interpolation/Makefile modules/intersci/Makefile modules/localization/Makefile modules/cacsd/Makefile modules/boolean/Makefile modules/integer/Makefile modules/double/Makefile modules/fileio/Makefile modules/spreadsheet/Makefile modules/string/Makefile modules/time/Makefile modules/graphics/Makefile modules/graphic_export/Makefile modules/renderer/Makefile modules/action_binding/Makefile modules/gui/Makefile modules/pvm/Makefile modules/randlib/Makefile modules/tclsci/Makefile modules/windows_tools/Makefile modules/core/Makefile modules/api_scilab/Makefile modules/call_scilab/Makefile modules/hdf5/Makefile modules/fftw/Makefile modules/umfpack/Makefile modules/scicos/Makefile modules/scicos_blocks/Makefile modules/functions/Makefile modules/dynamic_link/Makefile modules/overloading/Makefile modules/javasci/Makefile modules/maple2scilab/Makefile modules/m2sci/Makefile modules/compatibility_functions/Makefile modules/texmacs/Makefile modules/development_tools/Makefile modules/output_stream/Makefile modules/console/Makefile modules/demo_tools/Makefile modules/genetic_algorithms/Makefile modules/simulated_annealing/Makefile modules/parameters/Makefile modules/matio/Makefile modules/atoms/Makefile modules/xcos/Makefile modules/xpad/Makefile modules/Makefile libs/Makefile Makefile scilab.pc etc/modules.xml etc/classpath.xml etc/jvm_options.xml scilab-lib.properties scilab-lib-doc.properties"
+ac_config_files="$ac_config_files libs/MALLOC/Makefile libs/dynamiclibrary/Makefile libs/doublylinkedlist/Makefile libs/hashtable/Makefile libs/libst/Makefile contrib/Makefile modules/helptools/Makefile modules/helptools/macros/xmlfiletohtml.sci modules/data_structures/Makefile modules/differential_equations/Makefile modules/optimization/Makefile modules/elementary_functions/Makefile modules/special_functions/Makefile modules/io/Makefile modules/shell/Makefile modules/completion/Makefile modules/history_manager/Makefile modules/jvm/Makefile modules/sound/Makefile modules/statistics/Makefile modules/mexlib/Makefile modules/sparse/Makefile modules/linear_algebra/Makefile modules/polynomials/Makefile modules/symbolic/Makefile modules/signal_processing/Makefile modules/arnoldi/Makefile modules/interpolation/Makefile modules/intersci/Makefile modules/localization/Makefile modules/cacsd/Makefile modules/boolean/Makefile modules/integer/Makefile modules/double/Makefile modules/fileio/Makefile modules/spreadsheet/Makefile modules/string/Makefile modules/time/Makefile modules/graphics/Makefile modules/graphic_export/Makefile 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 modules/core/Makefile modules/api_scilab/Makefile modules/call_scilab/Makefile modules/hdf5/Makefile modules/fftw/Makefile modules/umfpack/Makefile modules/scicos/Makefile modules/scicos_blocks/Makefile modules/functions/Makefile modules/dynamic_link/Makefile modules/overloading/Makefile modules/javasci/Makefile modules/maple2scilab/Makefile modules/m2sci/Makefile modules/compatibility_functions/Makefile modules/texmacs/Makefile modules/development_tools/Makefile modules/output_stream/Makefile modules/console/Makefile modules/demo_tools/Makefile modules/genetic_algorithms/Makefile modules/simulated_annealing/Makefile modules/parameters/Makefile modules/matio/Makefile modules/atoms/Makefile modules/xcos/Makefile modules/xpad/Makefile modules/Makefile libs/Makefile Makefile scilab.pc etc/modules.xml etc/classpath.xml etc/jvm_options.xml scilab-lib.properties scilab-lib-doc.properties"
# Detection of the module for the future version of Scilab 6
#MAN_FR MAN_ENG
-#modules/mpi/Makefile
+
#for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
# test -f $top_builddir/configure && break
#done
as_fn_error "conditional \"FFTW\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
+if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
+ as_fn_error "conditional \"MPI\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${PVM_TRUE}" && test -z "${PVM_FALSE}"; then
as_fn_error "conditional \"PVM\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
"modules/action_binding/Makefile") CONFIG_FILES="$CONFIG_FILES modules/action_binding/Makefile" ;;
"modules/gui/Makefile") CONFIG_FILES="$CONFIG_FILES modules/gui/Makefile" ;;
"modules/pvm/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pvm/Makefile" ;;
+ "modules/mpi/Makefile") CONFIG_FILES="$CONFIG_FILES modules/mpi/Makefile" ;;
"modules/randlib/Makefile") CONFIG_FILES="$CONFIG_FILES modules/randlib/Makefile" ;;
"modules/tclsci/Makefile") CONFIG_FILES="$CONFIG_FILES modules/tclsci/Makefile" ;;
"modules/windows_tools/Makefile") CONFIG_FILES="$CONFIG_FILES modules/windows_tools/Makefile" ;;
# 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