summaryrefslogtreecommitdiffstats
path: root/scilab/configure
diff options
context:
space:
mode:
Diffstat (limited to 'scilab/configure')
-rwxr-xr-xscilab/configure412
1 files changed, 368 insertions, 44 deletions
diff --git a/scilab/configure b/scilab/configure
index cae11dc..10b6b07 100755
--- a/scilab/configure
+++ b/scilab/configure
@@ -738,6 +738,9 @@ JAVA_DEBUG_OPTIONS
738JAVA_HOME 738JAVA_HOME
739JAVA_JNI_LIBS 739JAVA_JNI_LIBS
740JAVA_JNI_INCLUDE 740JAVA_JNI_INCLUDE
741JAVA_CUP
742SIMULINK
743CCSM
741JUNIT 744JUNIT
742BSH 745BSH
743QDOX 746QDOX
@@ -9889,7 +9892,7 @@ $as_echo "$ac_java_classpath" >&6; }
9889$as_echo_n "checking to see if the java compiler works... " >&6; } 9892$as_echo_n "checking to see if the java compiler works... " >&6; }
9890 9893
9891 cat << \EOF > conftest.java 9894 cat << \EOF > conftest.java
9892// #line 9892 "configure" 9895// #line 9895 "configure"
9893 9896
9894 9897
9895public class conftest { 9898public class conftest {
@@ -9955,7 +9958,7 @@ $as_echo_n "checking type of jvm... " >&6; }
9955 if test "x$ac_java_jvm_name" = "x" ; then 9958 if test "x$ac_java_jvm_name" = "x" ; then
9956 9959
9957 cat << \EOF > conftest.java 9960 cat << \EOF > conftest.java
9958// #line 9958 "configure" 9961// #line 9961 "configure"
9959import gnu.java.io.EncodingManager; 9962import gnu.java.io.EncodingManager;
9960 9963
9961public class conftest { 9964public class conftest {
@@ -10019,7 +10022,7 @@ $as_echo_n "checking java API version... " >&6; }
10019 10022
10020 10023
10021 cat << \EOF > conftest.java 10024 cat << \EOF > conftest.java
10022// #line 10022 "configure" 10025// #line 10025 "configure"
10023import java.nio.charset.Charset; 10026import java.nio.charset.Charset;
10024 10027
10025public class conftest { 10028public class conftest {
@@ -10064,7 +10067,7 @@ EOF
10064 10067
10065 10068
10066 cat << \EOF > conftest.java 10069 cat << \EOF > conftest.java
10067// #line 10067 "configure" 10070// #line 10070 "configure"
10068import java.lang.StringBuilder; 10071import java.lang.StringBuilder;
10069 10072
10070public class conftest { 10073public class conftest {
@@ -11323,7 +11326,7 @@ $as_echo_n "checking jgraphx... " >&6; }
11323 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11326 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11324 11327
11325 cat << \EOF > conftest.java 11328 cat << \EOF > conftest.java
11326// #line 11326 "configure" 11329// #line 11329 "configure"
11327import com.mxgraph.model.mxCell; 11330import com.mxgraph.model.mxCell;
11328 11331
11329public class conftest { 11332public class conftest {
@@ -11416,7 +11419,7 @@ $as_echo_n "checking minimal version (1.4.0.2) of jgraphx... " >&6; }
11416 export ac_java_classpath="$JGRAPHX:$ac_java_classpath" 11419 export ac_java_classpath="$JGRAPHX:$ac_java_classpath"
11417 11420
11418 cat << \EOF > conftest.java 11421 cat << \EOF > conftest.java
11419// #line 11419 "configure" 11422// #line 11422 "configure"
11420import com.mxgraph.view.mxGraph; 11423import com.mxgraph.view.mxGraph;
11421 11424
11422public class conftest { 11425public class conftest {
@@ -11488,7 +11491,7 @@ $as_echo_n "checking flexdock... " >&6; }
11488 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11491 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11489 11492
11490 cat << \EOF > conftest.java 11493 cat << \EOF > conftest.java
11491// #line 11491 "configure" 11494// #line 11494 "configure"
11492import org.flexdock.docking.DockingManager; 11495import org.flexdock.docking.DockingManager;
11493 11496
11494public class conftest { 11497public class conftest {
@@ -11595,7 +11598,7 @@ $as_echo_n "checking looks... " >&6; }
11595 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11598 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11596 11599
11597 cat << \EOF > conftest.java 11600 cat << \EOF > conftest.java
11598// #line 11598 "configure" 11601// #line 11601 "configure"
11599import com.jgoodies.looks.common.RenderingUtils; 11602import com.jgoodies.looks.common.RenderingUtils;
11600 11603
11601public class conftest { 11604public class conftest {
@@ -11702,7 +11705,7 @@ $as_echo_n "checking jgoodies-looks... " >&6; }
11702 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11705 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11703 11706
11704 cat << \EOF > conftest.java 11707 cat << \EOF > conftest.java
11705// #line 11705 "configure" 11708// #line 11708 "configure"
11706import com.jgoodies.looks.common.RenderingUtils; 11709import com.jgoodies.looks.common.RenderingUtils;
11707 11710
11708public class conftest { 11711public class conftest {
@@ -11810,7 +11813,7 @@ $as_echo_n "checking skinlf... " >&6; }
11810 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11813 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11811 11814
11812 cat << \EOF > conftest.java 11815 cat << \EOF > conftest.java
11813// #line 11813 "configure" 11816// #line 11816 "configure"
11814import com.l2fprod.util.AccessUtils; 11817import com.l2fprod.util.AccessUtils;
11815 11818
11816public class conftest { 11819public class conftest {
@@ -11917,7 +11920,7 @@ $as_echo_n "checking jogl... " >&6; }
11917 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 11920 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
11918 11921
11919 cat << \EOF > conftest.java 11922 cat << \EOF > conftest.java
11920// #line 11920 "configure" 11923// #line 11923 "configure"
11921import javax.media.opengl.glu.GLUnurbs; 11924import javax.media.opengl.glu.GLUnurbs;
11922 11925
11923public class conftest { 11926public class conftest {
@@ -12127,7 +12130,7 @@ $as_echo_n "checking gluegen-rt... " >&6; }
12127 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12130 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12128 12131
12129 cat << \EOF > conftest.java 12132 cat << \EOF > conftest.java
12130// #line 12130 "configure" 12133// #line 12133 "configure"
12131import com.sun.gluegen.runtime.CPU; 12134import com.sun.gluegen.runtime.CPU;
12132 12135
12133public class conftest { 12136public class conftest {
@@ -12289,7 +12292,7 @@ $as_echo_n "checking jhall... " >&6; }
12289 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12292 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12290 12293
12291 cat << \EOF > conftest.java 12294 cat << \EOF > conftest.java
12292// #line 12292 "configure" 12295// #line 12295 "configure"
12293import javax.help.JHelp; 12296import javax.help.JHelp;
12294 12297
12295public class conftest { 12298public class conftest {
@@ -12396,7 +12399,7 @@ $as_echo_n "checking javahelp2... " >&6; }
12396 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12399 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12397 12400
12398 cat << \EOF > conftest.java 12401 cat << \EOF > conftest.java
12399// #line 12399 "configure" 12402// #line 12402 "configure"
12400import javax.help.JHelp; 12403import javax.help.JHelp;
12401 12404
12402public class conftest { 12405public class conftest {
@@ -12504,7 +12507,7 @@ $as_echo_n "checking jrosetta-API... " >&6; }
12504 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12507 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12505 12508
12506 cat << \EOF > conftest.java 12509 cat << \EOF > conftest.java
12507// #line 12507 "configure" 12510// #line 12510 "configure"
12508import com.artenum.rosetta.interfaces.core.ConsoleConfiguration; 12511import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
12509 12512
12510public class conftest { 12513public class conftest {
@@ -12611,7 +12614,7 @@ $as_echo_n "checking jrosetta-engine... " >&6; }
12611 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12614 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12612 12615
12613 cat << \EOF > conftest.java 12616 cat << \EOF > conftest.java
12614// #line 12614 "configure" 12617// #line 12617 "configure"
12615import com.artenum.rosetta.core.action.AbstractConsoleAction; 12618import com.artenum.rosetta.core.action.AbstractConsoleAction;
12616 12619
12617public class conftest { 12620public class conftest {
@@ -12720,7 +12723,7 @@ $as_echo_n "checking jeuclid-core... " >&6; }
12720 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12723 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12721 12724
12722 cat << \EOF > conftest.java 12725 cat << \EOF > conftest.java
12723// #line 12723 "configure" 12726// #line 12726 "configure"
12724import net.sourceforge.jeuclid.LayoutContext; 12727import net.sourceforge.jeuclid.LayoutContext;
12725 12728
12726public class conftest { 12729public class conftest {
@@ -12829,7 +12832,7 @@ $as_echo_n "checking fop... " >&6; }
12829 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12832 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12830 12833
12831 cat << \EOF > conftest.java 12834 cat << \EOF > conftest.java
12832// #line 12832 "configure" 12835// #line 12835 "configure"
12833import org.apache.fop.pdf.PDFInfo; 12836import org.apache.fop.pdf.PDFInfo;
12834 12837
12835public class conftest { 12838public class conftest {
@@ -12936,7 +12939,7 @@ $as_echo_n "checking batik-all... " >&6; }
12936 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 12939 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
12937 12940
12938 cat << \EOF > conftest.java 12941 cat << \EOF > conftest.java
12939// #line 12939 "configure" 12942// #line 12942 "configure"
12940import org.apache.batik.parser.Parser; 12943import org.apache.batik.parser.Parser;
12941 12944
12942public class conftest { 12945public class conftest {
@@ -13043,7 +13046,7 @@ $as_echo_n "checking batik... " >&6; }
13043 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13046 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13044 13047
13045 cat << \EOF > conftest.java 13048 cat << \EOF > conftest.java
13046// #line 13046 "configure" 13049// #line 13049 "configure"
13047import org.apache.batik.parser.Parser; 13050import org.apache.batik.parser.Parser;
13048 13051
13049public class conftest { 13052public class conftest {
@@ -13136,7 +13139,7 @@ $as_echo_n "checking minimal version (1.7) of batik... " >&6; }
13136 export ac_java_classpath="$BATIK:$ac_java_classpath" 13139 export ac_java_classpath="$BATIK:$ac_java_classpath"
13137 13140
13138 cat << \EOF > conftest.java 13141 cat << \EOF > conftest.java
13139// #line 13139 "configure" 13142// #line 13142 "configure"
13140import org.apache.batik.Version; 13143import org.apache.batik.Version;
13141 13144
13142public class conftest { 13145public class conftest {
@@ -13208,7 +13211,7 @@ $as_echo_n "checking commons-io... " >&6; }
13208 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13211 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13209 13212
13210 cat << \EOF > conftest.java 13213 cat << \EOF > conftest.java
13211// #line 13211 "configure" 13214// #line 13214 "configure"
13212import org.apache.commons.io.output.CountingOutputStream; 13215import org.apache.commons.io.output.CountingOutputStream;
13213 13216
13214public class conftest { 13217public class conftest {
@@ -13315,7 +13318,7 @@ $as_echo_n "checking xmlgraphics-commons... " >&6; }
13315 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13318 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13316 13319
13317 cat << \EOF > conftest.java 13320 cat << \EOF > conftest.java
13318// #line 13318 "configure" 13321// #line 13321 "configure"
13319import org.apache.xmlgraphics.util.Service; 13322import org.apache.xmlgraphics.util.Service;
13320 13323
13321public class conftest { 13324public class conftest {
@@ -13422,7 +13425,7 @@ $as_echo_n "checking avalon-framework... " >&6; }
13422 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13425 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13423 13426
13424 cat << \EOF > conftest.java 13427 cat << \EOF > conftest.java
13425// #line 13425 "configure" 13428// #line 13428 "configure"
13426import org.apache.avalon.framework.configuration.ConfigurationException; 13429import org.apache.avalon.framework.configuration.ConfigurationException;
13427 13430
13428public class conftest { 13431public class conftest {
@@ -13529,7 +13532,7 @@ $as_echo_n "checking xml-apis-ext... " >&6; }
13529 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13532 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13530 13533
13531 cat << \EOF > conftest.java 13534 cat << \EOF > conftest.java
13532// #line 13532 "configure" 13535// #line 13535 "configure"
13533import org.w3c.dom.svg.SVGDocument; 13536import org.w3c.dom.svg.SVGDocument;
13534 13537
13535public class conftest { 13538public class conftest {
@@ -13636,7 +13639,7 @@ $as_echo_n "checking xml-commons-apis-ext... " >&6; }
13636 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13639 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13637 13640
13638 cat << \EOF > conftest.java 13641 cat << \EOF > conftest.java
13639// #line 13639 "configure" 13642// #line 13642 "configure"
13640import org.w3c.dom.svg.SVGDocument; 13643import org.w3c.dom.svg.SVGDocument;
13641 13644
13642public class conftest { 13645public class conftest {
@@ -13747,7 +13750,7 @@ $as_echo_n "checking commons-logging... " >&6; }
13747 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13750 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13748 13751
13749 cat << \EOF > conftest.java 13752 cat << \EOF > conftest.java
13750// #line 13750 "configure" 13753// #line 13753 "configure"
13751import org.apache.commons.logging.LogFactory; 13754import org.apache.commons.logging.LogFactory;
13752 13755
13753public class conftest { 13756public class conftest {
@@ -13854,7 +13857,7 @@ $as_echo_n "checking jlatexmath... " >&6; }
13854 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 13857 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
13855 13858
13856 cat << \EOF > conftest.java 13859 cat << \EOF > conftest.java
13857// #line 13857 "configure" 13860// #line 13860 "configure"
13858import org.scilab.forge.jlatexmath.TeXFormula; 13861import org.scilab.forge.jlatexmath.TeXFormula;
13859 13862
13860public class conftest { 13863public class conftest {
@@ -13947,7 +13950,7 @@ $as_echo_n "checking minimal version (0.8.8) of jlatexmath... " >&6; }
13947 export ac_java_classpath="$JLATEXMATH:$ac_java_classpath" 13950 export ac_java_classpath="$JLATEXMATH:$ac_java_classpath"
13948 13951
13949 cat << \EOF > conftest.java 13952 cat << \EOF > conftest.java
13950// #line 13950 "configure" 13953// #line 13953 "configure"
13951import org.scilab.forge.jlatexmath.TeXFormula; 13954import org.scilab.forge.jlatexmath.TeXFormula;
13952 13955
13953public class conftest { 13956public class conftest {
@@ -14025,7 +14028,7 @@ $as_echo_n "checking checkstyle... " >&6; }
14025 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14028 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14026 14029
14027 cat << \EOF > conftest.java 14030 cat << \EOF > conftest.java
14028// #line 14028 "configure" 14031// #line 14031 "configure"
14029import com.puppycrawl.tools.checkstyle.CheckStyleTask; 14032import com.puppycrawl.tools.checkstyle.CheckStyleTask;
14030 14033
14031public class conftest { 14034public class conftest {
@@ -14132,7 +14135,7 @@ $as_echo_n "checking commons-beanutils... " >&6; }
14132 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14135 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14133 14136
14134 cat << \EOF > conftest.java 14137 cat << \EOF > conftest.java
14135// #line 14135 "configure" 14138// #line 14138 "configure"
14136import org.apache.commons.beanutils.Converter; 14139import org.apache.commons.beanutils.Converter;
14137 14140
14138public class conftest { 14141public class conftest {
@@ -14239,7 +14242,7 @@ $as_echo_n "checking antlr... " >&6; }
14239 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14242 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14240 14243
14241 cat << \EOF > conftest.java 14244 cat << \EOF > conftest.java
14242// #line 14242 "configure" 14245// #line 14245 "configure"
14243import antlr.TokenStreamException; 14246import antlr.TokenStreamException;
14244 14247
14245public class conftest { 14248public class conftest {
@@ -14346,7 +14349,7 @@ $as_echo_n "checking testng... " >&6; }
14346 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14349 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14347 14350
14348 cat << \EOF > conftest.java 14351 cat << \EOF > conftest.java
14349// #line 14349 "configure" 14352// #line 14352 "configure"
14350import org.testng.TestNG; 14353import org.testng.TestNG;
14351 14354
14352public class conftest { 14355public class conftest {
@@ -14453,7 +14456,7 @@ $as_echo_n "checking qdox... " >&6; }
14453 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14456 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14454 14457
14455 cat << \EOF > conftest.java 14458 cat << \EOF > conftest.java
14456// #line 14456 "configure" 14459// #line 14459 "configure"
14457import com.thoughtworks.qdox.tools.QDoxTester; 14460import com.thoughtworks.qdox.tools.QDoxTester;
14458 14461
14459public class conftest { 14462public class conftest {
@@ -14560,7 +14563,7 @@ $as_echo_n "checking bsh... " >&6; }
14560 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14563 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14561 14564
14562 cat << \EOF > conftest.java 14565 cat << \EOF > conftest.java
14563// #line 14563 "configure" 14566// #line 14566 "configure"
14564import bsh.Console; 14567import bsh.Console;
14565 14568
14566public class conftest { 14569public class conftest {
@@ -14667,7 +14670,7 @@ $as_echo_n "checking junit... " >&6; }
14667 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 14670 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14668 14671
14669 cat << \EOF > conftest.java 14672 cat << \EOF > conftest.java
14670// #line 14670 "configure" 14673// #line 14673 "configure"
14671import junit.framework.Assert; 14674import junit.framework.Assert;
14672 14675
14673public class conftest { 14676public class conftest {
@@ -14753,6 +14756,327 @@ $as_echo "$as_me: WARNING: Could not find or use the Java package/jar junit used
14753 JUNIT=$PACKAGE_JAR_FILE 14756 JUNIT=$PACKAGE_JAR_FILE
14754 14757
14755 14758
14759 # CCSM Commons
14760
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ccsm-commons" >&5
14762$as_echo_n "checking ccsm-commons... " >&6; }
14763 PACKAGE_JAR_FILE=
14764 found_jar=no
14765 saved_ac_java_classpath=$ac_java_classpath
14766 DEFAULT_JAR_DIR="/usr/share/java/ /usr/lib/java/ /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(ls -d /usr/share/java/*/ 2>/dev/null) $(ls -d /usr/lib64/*/ 2>/dev/null) $(ls -d /usr/lib/*/ 2>/dev/null) $(ls -d /usr/share/*/lib/ 2>/dev/null)"
14767 for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR "$_user_libdir"; do
14768 for jar in "$jardir/ccsm-commons.jar" "$jardir/libccsm-commons.jar" "$jardir/libccsm-commons-java.jar" "$jardir/ccsm-commons*.jar"; do
14769# jar=`echo $jar|sed -e 's/ /\\ /'`
14770# echo "protected $jar"
14771# jar_resolved=`ls $jar 2>/dev/null`
14772# echo "looking for $jar_resolved"
14773# TODO check the behaviour when spaces
14774 jars_resolved=`ls $jar 2>/dev/null`
14775 for jar_resolved in $jars_resolved; do # If several jars matches
14776 if test -e "$jar_resolved"; then
14777 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14778
14779 cat << \EOF > conftest.java
14780// #line 14780 "configure"
14781import edu.tum.cs.commons.logging.*;
14782
14783public class conftest {
14784 public static void main(String[] argv) {
14785
14786 }
14787}
14788EOF
14789
14790 CLASSPATH=$ac_java_classpath
14791 export CLASSPATH
14792 cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
14793 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5) ; then
14794 if test ""no"" = "no"; then
14795 echo "yes" >&5
14796
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
14798$as_echo "$jar_resolved" >&6; }
14799 found_jar=yes
14800 PACKAGE_JAR_FILE=$jar_resolved
14801 break
14802
14803 else
14804 cmd="$JAVA conftest"
14805 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5); then
14806 echo "yes" >&5
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
14809$as_echo "$jar_resolved" >&6; }
14810 found_jar=yes
14811 PACKAGE_JAR_FILE=$jar_resolved
14812 break
14813
14814 else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.java >&5
14817 if test -s conftest.java.output; then
14818 STDOUT=`cat conftest.java.output`
14819 fi
14820 echo "configure: CLASSPATH was $CLASSPATH" >&5
14821
14822 ac_java_classpath=$saved_ac_java_classpath
14823
14824
14825 fi
14826 fi
14827 if test -f conftest.java.output; then
14828 rm conftest.java.output
14829 fi
14830 else
14831 echo "configure: failed program was:" >&5
14832 cat conftest.java >&5
14833 echo "configure: CLASSPATH was $CLASSPATH" >&5
14834
14835 ac_java_classpath=$saved_ac_java_classpath
14836
14837
14838 fi
14839
14840 fi
14841 done
14842 # If ls returns several results and the first one is OK, stop the search
14843 if test "$found_jar" = "yes"; then
14844 break
14845 fi
14846 done
14847 # If found, no need to search in other directory
14848 if test "$found_jar" = "yes"; then
14849 break
14850 fi
14851 done
14852 if test "$found_jar" = "no"; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14854$as_echo "no" >&6; }
14855 if test ""yes"" = "yes"; then
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar ccsm-commons used by CCSM Commons (looking for package edu.tum.cs.commons.logging.*)" >&5
14857$as_echo "$as_me: WARNING: Could not find or use the Java package/jar ccsm-commons used by CCSM Commons (looking for package edu.tum.cs.commons.logging.*)" >&2;}
14858 else
14859 as_fn_error "Could not find or use the Java package/jar ccsm-commons used by CCSM Commons (looking for package edu.tum.cs.commons.logging.*)" "$LINENO" 5
14860 fi
14861 fi
14862
14863 CCSM=$PACKAGE_JAR_FILE
14864
14865
14866 # CCSM Simulink
14867
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking simulink" >&5
14869$as_echo_n "checking simulink... " >&6; }
14870 PACKAGE_JAR_FILE=
14871 found_jar=no
14872 saved_ac_java_classpath=$ac_java_classpath
14873 DEFAULT_JAR_DIR="/usr/share/java/ /usr/lib/java/ /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(ls -d /usr/share/java/*/ 2>/dev/null) $(ls -d /usr/lib64/*/ 2>/dev/null) $(ls -d /usr/lib/*/ 2>/dev/null) $(ls -d /usr/share/*/lib/ 2>/dev/null)"
14874 for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR "$_user_libdir"; do
14875 for jar in "$jardir/simulink.jar" "$jardir/libsimulink.jar" "$jardir/libsimulink-java.jar" "$jardir/simulink*.jar"; do
14876# jar=`echo $jar|sed -e 's/ /\\ /'`
14877# echo "protected $jar"
14878# jar_resolved=`ls $jar 2>/dev/null`
14879# echo "looking for $jar_resolved"
14880# TODO check the behaviour when spaces
14881 jars_resolved=`ls $jar 2>/dev/null`
14882 for jar_resolved in $jars_resolved; do # If several jars matches
14883 if test -e "$jar_resolved"; then
14884 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14885
14886 cat << \EOF > conftest.java
14887// #line 14887 "configure"
14888import edu.tum.cs.simulink.model.*;
14889
14890public class conftest {
14891 public static void main(String[] argv) {
14892
14893 }
14894}
14895EOF
14896
14897 CLASSPATH=$ac_java_classpath
14898 export CLASSPATH
14899 cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
14900 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5) ; then
14901 if test ""no"" = "no"; then
14902 echo "yes" >&5
14903
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
14905$as_echo "$jar_resolved" >&6; }
14906 found_jar=yes
14907 PACKAGE_JAR_FILE=$jar_resolved
14908 break
14909
14910 else
14911 cmd="$JAVA conftest"
14912 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5); then
14913 echo "yes" >&5
14914
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
14916$as_echo "$jar_resolved" >&6; }
14917 found_jar=yes
14918 PACKAGE_JAR_FILE=$jar_resolved
14919 break
14920
14921 else
14922 echo "configure: failed program was:" >&5
14923 cat conftest.java >&5
14924 if test -s conftest.java.output; then
14925 STDOUT=`cat conftest.java.output`
14926 fi
14927 echo "configure: CLASSPATH was $CLASSPATH" >&5
14928
14929 ac_java_classpath=$saved_ac_java_classpath
14930
14931
14932 fi
14933 fi
14934 if test -f conftest.java.output; then
14935 rm conftest.java.output
14936 fi
14937 else
14938 echo "configure: failed program was:" >&5
14939 cat conftest.java >&5
14940 echo "configure: CLASSPATH was $CLASSPATH" >&5
14941
14942 ac_java_classpath=$saved_ac_java_classpath
14943
14944
14945 fi
14946
14947 fi
14948 done
14949 # If ls returns several results and the first one is OK, stop the search
14950 if test "$found_jar" = "yes"; then
14951 break
14952 fi
14953 done
14954 # If found, no need to search in other directory
14955 if test "$found_jar" = "yes"; then
14956 break
14957 fi
14958 done
14959 if test "$found_jar" = "no"; then
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961$as_echo "no" >&6; }
14962 if test ""yes"" = "yes"; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar simulink used by CCSM Simulink model (looking for package edu.tum.cs.simulink.model.*)" >&5
14964$as_echo "$as_me: WARNING: Could not find or use the Java package/jar simulink used by CCSM Simulink model (looking for package edu.tum.cs.simulink.model.*)" >&2;}
14965 else
14966 as_fn_error "Could not find or use the Java package/jar simulink used by CCSM Simulink model (looking for package edu.tum.cs.simulink.model.*)" "$LINENO" 5
14967 fi
14968 fi
14969
14970 SIMULINK=$PACKAGE_JAR_FILE
14971
14972
14973 # CCSM Cup runtime
14974
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cup-runtime" >&5
14976$as_echo_n "checking cup-runtime... " >&6; }
14977 PACKAGE_JAR_FILE=
14978 found_jar=no
14979 saved_ac_java_classpath=$ac_java_classpath
14980 DEFAULT_JAR_DIR="/usr/share/java/ /usr/lib/java/ /usr/share/java /usr/share/java/jar /opt/java/lib /usr/local/java /usr/local/java/jar /usr/local/share/java /usr/local/share/java/jar /usr/local/lib/java $(ls -d /usr/share/java/*/ 2>/dev/null) $(ls -d /usr/lib64/*/ 2>/dev/null) $(ls -d /usr/lib/*/ 2>/dev/null) $(ls -d /usr/share/*/lib/ 2>/dev/null)"
14981 for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR "$_user_libdir"; do
14982 for jar in "$jardir/cup-runtime.jar" "$jardir/libcup-runtime.jar" "$jardir/libcup-runtime-java.jar" "$jardir/cup-runtime*.jar"; do
14983# jar=`echo $jar|sed -e 's/ /\\ /'`
14984# echo "protected $jar"
14985# jar_resolved=`ls $jar 2>/dev/null`
14986# echo "looking for $jar_resolved"
14987# TODO check the behaviour when spaces
14988 jars_resolved=`ls $jar 2>/dev/null`
14989 for jar_resolved in $jars_resolved; do # If several jars matches
14990 if test -e "$jar_resolved"; then
14991 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
14992
14993 cat << \EOF > conftest.java
14994// #line 14994 "configure"
14995import java_cup.runtime.*;
14996
14997public class conftest {
14998 public static void main(String[] argv) {
14999
15000 }
15001}
15002EOF
15003
15004 CLASSPATH=$ac_java_classpath
15005 export CLASSPATH
15006 cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
15007 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5) ; then
15008 if test ""no"" = "no"; then
15009 echo "yes" >&5
15010
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
15012$as_echo "$jar_resolved" >&6; }
15013 found_jar=yes
15014 PACKAGE_JAR_FILE=$jar_resolved
15015 break
15016
15017 else
15018 cmd="$JAVA conftest"
15019 if (echo $cmd >&5 ; eval $cmd >&conftest.java.output 2>&5); then
15020 echo "yes" >&5
15021
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
15023$as_echo "$jar_resolved" >&6; }
15024 found_jar=yes
15025 PACKAGE_JAR_FILE=$jar_resolved
15026 break
15027
15028 else
15029 echo "configure: failed program was:" >&5
15030 cat conftest.java >&5
15031 if test -s conftest.java.output; then
15032 STDOUT=`cat conftest.java.output`
15033 fi
15034 echo "configure: CLASSPATH was $CLASSPATH" >&5
15035
15036 ac_java_classpath=$saved_ac_java_classpath
15037
15038
15039 fi
15040 fi
15041 if test -f conftest.java.output; then
15042 rm conftest.java.output
15043 fi
15044 else
15045 echo "configure: failed program was:" >&5
15046 cat conftest.java >&5
15047 echo "configure: CLASSPATH was $CLASSPATH" >&5
15048
15049 ac_java_classpath=$saved_ac_java_classpath
15050
15051
15052 fi
15053
15054 fi
15055 done
15056 # If ls returns several results and the first one is OK, stop the search
15057 if test "$found_jar" = "yes"; then
15058 break
15059 fi
15060 done
15061 # If found, no need to search in other directory
15062 if test "$found_jar" = "yes"; then
15063 break
15064 fi
15065 done
15066 if test "$found_jar" = "no"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068$as_echo "no" >&6; }
15069 if test ""yes"" = "yes"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar cup-runtime used by Cup runtime (looking for package java_cup.runtime.*)" >&5
15071$as_echo "$as_me: WARNING: Could not find or use the Java package/jar cup-runtime used by Cup runtime (looking for package java_cup.runtime.*)" >&2;}
15072 else
15073 as_fn_error "Could not find or use the Java package/jar cup-runtime used by Cup runtime (looking for package java_cup.runtime.*)" "$LINENO" 5
15074 fi
15075 fi
15076
15077 JAVA_CUP=$PACKAGE_JAR_FILE
15078
15079
14756 15080
14757 else 15081 else
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sun javac not found: I will not build the java interface" >&5 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sun javac not found: I will not build the java interface" >&5
@@ -18580,7 +18904,7 @@ $as_echo_n "checking jhdf5... " >&6; }
18580 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 18904 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
18581 18905
18582 cat << \EOF > conftest.java 18906 cat << \EOF > conftest.java
18583// #line 18583 "configure" 18907// #line 18907 "configure"
18584import ncsa.hdf.hdf5lib.HDF5Constants; 18908import ncsa.hdf.hdf5lib.HDF5Constants;
18585 18909
18586public class conftest { 18910public class conftest {
@@ -18728,7 +19052,7 @@ $as_echo_n "checking minimal version (1.8.4) of hdf5... " >&6; }
18728 export ac_java_classpath="$JHDF5:$ac_java_classpath" 19052 export ac_java_classpath="$JHDF5:$ac_java_classpath"
18729 19053
18730 cat << \EOF > conftest.java 19054 cat << \EOF > conftest.java
18731// #line 18731 "configure" 19055// #line 19055 "configure"
18732import ncsa.hdf.hdf5lib.H5; 19056import ncsa.hdf.hdf5lib.H5;
18733 19057
18734public class conftest { 19058public class conftest {
@@ -23262,7 +23586,7 @@ CPPFLAGS="$CPPFLAGS -I$CHK_TCL_INCLUDE_PATH"
23262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later" >&5 23586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later" >&5
23263$as_echo_n "checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later... " >&6; } 23587$as_echo_n "checking if tcl is version $CHK_TCL_MAJOR.$CHK_TCL_MINOR or later... " >&6; }
23264cat > conftest.$ac_ext <<EOF 23588cat > conftest.$ac_ext <<EOF
23265#line 23265 "configure" 23589#line 23589 "configure"
23266#include "confdefs.h" 23590#include "confdefs.h"
23267 23591
23268#include "$CHK_TCL_INCLUDE_PATH/$CHK_TCL_INC_NAME" 23592#include "$CHK_TCL_INCLUDE_PATH/$CHK_TCL_INC_NAME"
@@ -23574,7 +23898,7 @@ CPPFLAGS="$CPPFLAGS $TCL_INC_PATH -I$CHK_TK_INCLUDE_PATH $X_CFLAGS"
23574$as_echo_n "checking if tk is version $CHK_TK_MAJOR.$CHK_TK_MINOR or later... " >&6; } 23898$as_echo_n "checking if tk is version $CHK_TK_MAJOR.$CHK_TK_MINOR or later... " >&6; }
23575 23899
23576cat > conftest.$ac_ext <<EOF 23900cat > conftest.$ac_ext <<EOF
23577#line 23577 "configure" 23901#line 23901 "configure"
23578#include "confdefs.h" 23902#include "confdefs.h"
23579 23903
23580#include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME" 23904#include "$CHK_TK_INCLUDE_PATH/$CHK_TK_INC_NAME"
@@ -24158,7 +24482,7 @@ $as_echo_n "checking saxon... " >&6; }
24158 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 24482 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
24159 24483
24160 cat << \EOF > conftest.java 24484 cat << \EOF > conftest.java
24161// #line 24161 "configure" 24485// #line 24485 "configure"
24162import com.icl.saxon.Loader; 24486import com.icl.saxon.Loader;
24163 24487
24164public class conftest { 24488public class conftest {
@@ -24265,7 +24589,7 @@ $as_echo_n "checking jlatexmath-fop... " >&6; }
24265 export ac_java_classpath="$jar_resolved:$ac_java_classpath" 24589 export ac_java_classpath="$jar_resolved:$ac_java_classpath"
24266 24590
24267 cat << \EOF > conftest.java 24591 cat << \EOF > conftest.java
24268// #line 24268 "configure" 24592// #line 24592 "configure"
24269import org.scilab.forge.jlatexmath.fop.JLaTeXMathObj; 24593import org.scilab.forge.jlatexmath.fop.JLaTeXMathObj;
24270 24594
24271public class conftest { 24595public class conftest {
@@ -30566,7 +30890,7 @@ else
30566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 30890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30567 lt_status=$lt_dlunknown 30891 lt_status=$lt_dlunknown
30568 cat > conftest.$ac_ext <<_LT_EOF 30892 cat > conftest.$ac_ext <<_LT_EOF
30569#line 30569 "configure" 30893#line 30893 "configure"
30570#include "confdefs.h" 30894#include "confdefs.h"
30571 30895
30572#if HAVE_DLFCN_H 30896#if HAVE_DLFCN_H
@@ -30672,7 +30996,7 @@ else
30672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 30996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30673 lt_status=$lt_dlunknown 30997 lt_status=$lt_dlunknown
30674 cat > conftest.$ac_ext <<_LT_EOF 30998 cat > conftest.$ac_ext <<_LT_EOF
30675#line 30675 "configure" 30999#line 30999 "configure"
30676#include "confdefs.h" 31000#include "confdefs.h"
30677 31001
30678#if HAVE_DLFCN_H 31002#if HAVE_DLFCN_H