OCAML_TRUE
XCOS_ENABLE
WITH_OCAML
+OCAMLOPTFLAGS
+OCAMLCFLAGS
OCAMLLEX
OCAMLYACC
OCAMLDEP
if test "$with_modelica" != no; then
# checking for ocamlc
- OCAMLC=
- OCAMLOPT=
- OCAMLDEP=
+
# Extract the first word of "ocamlc", so it can be a program name with args.
set dummy ocamlc; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
if test "$OCAMLC" = no; then
as_fn_error $? "ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler)." "$LINENO" 5
fi
+ # since ocaml 4.06, unsafe string is no more the default parameter ; enforce it
+ "$OCAMLC" -unsafe-string
+ if test "$?" -ne "0"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlc does not support \"-unsafe-string\". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler)." >&5
+$as_echo "$as_me: WARNING: ocamlc does not support \"-unsafe-string\". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler)." >&2;}
+ fi
+ OCAMLCFLAGS="$OCAMLCFLAGS -unsafe-string"
# Extract the first word of "ocamlopt", so it can be a program name with args.
set dummy ocamlopt; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
if test "$OCAMLOPT" = no; then
as_fn_error $? "ocamlopt not found. Mandatory to build the Scicos modelica compiler." "$LINENO" 5
fi
+ # since ocaml 4.06, unsafe string is no more the default parameter ; enforce it
+ "$OCAMLOPT" -unsafe-string
+ if test "$?" -ne "0"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlc does not support \"-unsafe-string\". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler)." >&5
+$as_echo "$as_me: WARNING: ocamlc does not support \"-unsafe-string\". Needed to build the Scicos modelica compiler (Use --without-modelica to disable the Modelica compiler)." >&2;}
+ fi
+ OCAMLOPTFLAGS="$OCAMLOPTFLAGS -unsafe-string"
# Extract the first word of "ocamldep", so it can be a program name with args.
set dummy ocamldep; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+
+
fi
XCOS_ENABLE=yes
$as_echo_n "checking to see if the java compiler works... " >&6; }
cat << \EOF > conftest.java
-// #line 12458 "configure"
+// #line 12474 "configure"
import java.util.regex.Pattern;
if test "x$ac_java_jvm_name" = "x" ; then
cat << \EOF > conftest.java
-// #line 12545 "configure"
+// #line 12561 "configure"
import java.util.regex.Pattern;
import gnu.java.io.EncodingManager;
# The class java.nio.charset.Charset is new to 1.4
cat << \EOF > conftest.java
-// #line 12629 "configure"
+// #line 12645 "configure"
import java.util.regex.Pattern;
import java.nio.charset.Charset;
# The class java.lang.StringBuilder is new to 1.5
cat << \EOF > conftest.java
-// #line 12694 "configure"
+// #line 12710 "configure"
import java.util.regex.Pattern;
import java.lang.StringBuilder;
# The class java.util.ArrayDeque is new to 1.6
cat << \EOF > conftest.java
-// #line 12759 "configure"
+// #line 12775 "configure"
import java.util.regex.Pattern;
import java.util.ArrayDeque;
# The class java.nio.file.Path is new to 1.7
cat << \EOF > conftest.java
-// #line 12824 "configure"
+// #line 12840 "configure"
import java.util.regex.Pattern;
import java.nio.file.Path;
# The class java.util.stream.DoubleStream is new to 1.8
cat << \EOF > conftest.java
-// #line 12889 "configure"
+// #line 12905 "configure"
import java.util.regex.Pattern;
import java.util.stream.DoubleStream;
# The class java.lang.ProcessHandle is new to 1.9
cat << \EOF > conftest.java
-// #line 12954 "configure"
+// #line 12970 "configure"
import java.util.regex.Pattern;
import java.lang.ProcessHandle;
# jgraphx
cat << \EOF > conftestSharedChecker.java
-// #line 14357 "configure"
+// #line 14373 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 14558 "configure"
+// #line 14574 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 14794 "configure"
+// #line 14810 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 15036 "configure"
+// #line 15052 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 15270 "configure"
+// #line 15286 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 15504 "configure"
+// #line 15520 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 15739 "configure"
+// #line 15755 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 15973 "configure"
+// #line 15989 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 16313 "configure"
+// #line 16329 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 16604 "configure"
+// #line 16620 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 16836 "configure"
+// #line 16852 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 17071 "configure"
+// #line 17087 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 17305 "configure"
+// #line 17321 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 17539 "configure"
+// #line 17555 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 17773 "configure"
+// #line 17789 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 18004 "configure"
+// #line 18020 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 18239 "configure"
+// #line 18255 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 18475 "configure"
+// #line 18491 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 18711 "configure"
+// #line 18727 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 18952 "configure"
+// #line 18968 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 19186 "configure"
+// #line 19202 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 19420 "configure"
+// #line 19436 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 19654 "configure"
+// #line 19670 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 19888 "configure"
+// #line 19904 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 20123 "configure"
+// #line 20139 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 20357 "configure"
+// #line 20373 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 20592 "configure"
+// #line 20608 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 20826 "configure"
+// #line 20842 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 21060 "configure"
+// #line 21076 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 21294 "configure"
+// #line 21310 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 21528 "configure"
+// #line 21544 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 21766 "configure"
+// #line 21782 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 22000 "configure"
+// #line 22016 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 22234 "configure"
+// #line 22250 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 22474 "configure"
+// #line 22490 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 22708 "configure"
+// #line 22724 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 22942 "configure"
+// #line 22958 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 23176 "configure"
+// #line 23192 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 23407 "configure"
+// #line 23423 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 23645 "configure"
+// #line 23661 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 23876 "configure"
+// #line 23892 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 24111 "configure"
+// #line 24127 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 24345 "configure"
+// #line 24361 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 24576 "configure"
+// #line 24592 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 24810 "configure"
+// #line 24826 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Eigen is version $CHK_EIGEN_WORLD.$CHK_EIGEN_MAJOR.$CHK_EIGEN_MINOR or later" >&5
$as_echo_n "checking if Eigen is version $CHK_EIGEN_WORLD.$CHK_EIGEN_MAJOR.$CHK_EIGEN_MINOR or later... " >&6; }
cat > conftest.$ac_ext <<EOF
-#line 29200 "configure"
+#line 29216 "configure"
#include "confdefs.h"
#include "$PATH_TO_EIGEN/Eigen/Sparse"
{ $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 33877 "configure"
+#line 33893 "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 34188 "configure"
+#line 34204 "configure"
#include "confdefs.h"
#include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME"
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 34778 "configure"
+// #line 34794 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 35010 "configure"
+// #line 35026 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test ! -f conftestSharedChecker.class ; then
cat << \EOF > conftestSharedChecker.java
-// #line 35243 "configure"
+// #line 35259 "configure"
import java.util.regex.Pattern;
import java.io.File;
import java.io.IOException;
if test "$with_modelica" != no -a "$OCAMLC" != no -a "$OCAMLOPT" != no; then
echo "Ocaml Configuration (for Modelica compiler):"
echo " OCAMLC ............. = $OCAMLC"
+ echo " OCAMLCFLAGS ........ = $OCAMLCFLAGS"
echo " OCAMLOPT ........... = $OCAMLOPT"
+ echo " OCAMLOPTFLAGS ...... = $OCAMLOPTFLAGS"
echo " OCAMLDEP ........... = $OCAMLDEP"
else
echo "Will not build Modelica compiler"