2 # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 # Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
4 # Copyright (C) DIGITEO - 2009-2011 - Sylvestre Ledru
5 # Copyright (C) DIGITEO - 2009 - Pierre MARECHAL <pierre.marechal@scilab.org>
7 # This file must be used under the terms of the CeCILL.
8 # This source file is licensed as described in the file COPYING, which
9 # you should have received as part of this distribution. The terms
10 # are also available at
11 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14 dnl Process this file with autoconf to produce a configure script.
17 AC_REVISION($Revision$)dnl
18 AC_INIT([Scilab],[5],[http://bugzilla.scilab.org/])
20 AC_CONFIG_MACRO_DIR([m4/])
24 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
26 SCILAB_VERSION_MAJOR=5
27 SCILAB_VERSION_MINOR=4
28 SCILAB_VERSION_MAINTENANCE=0
29 AC_SUBST(SCILAB_VERSION_MAJOR)
30 AC_SUBST(SCILAB_VERSION_MINOR)
31 AC_SUBST(SCILAB_VERSION_MAINTENANCE)
34 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
35 AC_SUBST(SCILAB_LIBRARY_VERSION)
37 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
38 AC_SUBST(SCILAB_BINARY_VERSION)
40 #shared library versioning
41 #GENERIC_LIBRARY_VERSION=1:2:0
45 # current:revision:age
47 # | | +- increment if interfaces have been added
48 # | | set to zero if interfaces have been removed
50 # | +- increment if source code has changed
51 # | set to zero if current is incremented
52 # +- increment if interfaces have been added, removed or changed
54 # Check if we have a space in the path to the source tree
55 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
56 if test "$SPACE_IN_PATH" = "0"; then
57 AC_MSG_WARN([=====================================])
58 AC_MSG_WARN([Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things...])
59 AC_MSG_WARN([=====================================])
63 AC_CONFIG_AUX_DIR(config)
64 AC_CONFIG_HEADERS([modules/core/includes/machine.h])
72 # In order to be able to change the scilab directory
73 # See http://wiki.debian.org/RpathIssue
75 AC_RELOCATABLE_LIBRARY
78 # If configure detect that timestamp changed,
79 # it tries to rebuild configure & makefile which can be a painmaker
80 # if the version is different
83 AM_INIT_AUTOMAKE([-Wall foreign]) # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
87 #################################
88 ## all the --with-* argument help
89 #################################
93 AC_HELP_STRING([--enable-debug],[Do not optimize and print warning messages (C/C++/Fortran/Java code)]))
95 AC_ARG_ENABLE(debug-C,
96 AC_HELP_STRING([--enable-debug-C],[Do not optimize and print warning messages (C code)]))
98 AC_ARG_ENABLE(debug-CXX,
99 AC_HELP_STRING([--enable-debug-CXX],[Do not optimize and print warning messages (C++ code)]))
101 AC_ARG_ENABLE(debug-java,
102 AC_HELP_STRING([--enable-debug-java],[Print warning messages and line numbers (Java code)]))
104 AC_ARG_ENABLE(debug-fortran,
105 AC_HELP_STRING([--enable-debug-fortran],[Do not optimize and print warning messages (Fortran code)]))
107 AC_ARG_ENABLE(debug-linker,
108 AC_HELP_STRING([--enable-debug-linker],[Print warning messages from the linker (ld)]))
110 AC_ARG_ENABLE(code-coverage,
111 AC_HELP_STRING([--enable-code-coverage],[Enable code coverage]))
113 AC_ARG_ENABLE(stop-on-warning,
114 AC_HELP_STRING([--enable-stop-on-warning],[Stop the compilation on the first warning found in the C/C++ code]))
117 AC_HELP_STRING([--with-gcc],[Use gcc C compiler ]))
119 AC_ARG_WITH(gfortran,
120 AC_HELP_STRING([--with-gfortran],[Use gfortran, GNU Fortran 95 compiler]))
122 AC_ARG_WITH(intelcompilers,
123 AC_HELP_STRING([--with-intelcompilers],[Use Intel C (icc) and Fortran (ifort) proprietary compilers (GNU/Linux only) ]))
126 AC_HELP_STRING([--without-tk],[Disable the interface to Tcl/Tk ]))
129 AC_HELP_STRING([--without-javasci],[Disable the Java/Scilab interface (javasci)]))
131 AC_ARG_ENABLE(compilation-tests,
132 AC_HELP_STRING([--enable-compilation-tests],[Enable unitary tests and checks at compilation time]))
135 AC_HELP_STRING([--without-gui],[Disable the Scilab Graphical User Interface (GUI). Intended for embedded/clustering/grid Scilab ]))
137 AC_ARG_ENABLE(build-swig,
138 AC_HELP_STRING([--enable-build-swig],[Regenerate Java => C wrappers produces by Swig (A Java Development Kit (JDK) is mandatory for this option)]))
140 AC_ARG_ENABLE(build-giws,
141 AC_HELP_STRING([--enable-build-giws],[Regenerate C/C++ => Java wrappers produces by Giws (A Java Development Kit (JDK) is mandatory for this option)]))
144 ################################################
145 ########## compilator & misc programs detection
146 ################################################
152 #### Mac OS X set of fink path with provided
155 AC_ARG_WITH(fink_prefix,
156 AC_HELP_STRING([--with-fink-prefix],[Provide a fink prefix. Default: /sw/ ]))
157 # Need MacosX Version to specify some path.
160 AC_GET_MACOSX_VERSION
166 if test -n "$with_fink_prefix"; then
167 # If with-fink-prefix is provided, use the provided path to make sure that we will
168 # use it to detect dependencies (for example, gfortran is not provided in xcode.
169 # Therefor, we use the one in fink)
170 FINK_PREFIX="$with_fink_prefix/"
172 # Exec the init script of fink to make sure that the env is set
173 if test -f $with_fink_prefix/bin/init.sh; then
174 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
175 source $with_fink_prefix/bin/init.sh
177 AC_MSG_WARN([Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh])
183 #Append to the default flags on Apple machines
184 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
185 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
189 AC_ARG_WITH(min_macosx_version,
190 AC_HELP_STRING([--with-min-macosx-version],[Force compilers to generate binaries compatible with MacOSX minimal version.]))
193 if test -n "$with_min_macosx_version"; then
194 MIN_MACOSX_VERSION=$with_min_macosx_version
195 #Append to the default flags on Apple machines
196 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
197 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
198 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
199 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
200 # We need this to be passed to all linker commands
201 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
207 #####################################################
208 ## Look for pkg-config
209 #####################################################
212 #####################################################
213 ## check if options are correct (or not)
214 #####################################################
216 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
217 AC_MSG_ERROR([Conflicting options : you specified two compiler series])
220 ######## fortran ########
222 if test "$with_gfortran" = yes; then
223 AC_PROG_F77(gfortran)
224 if test -z "$F77"; then
225 AC_MSG_ERROR([You asked me to use gfortran but i haven't been able to find it])
229 if test "$with_intelcompilers" = yes; then
230 AC_PROG_F77(ifc ifort)
231 if test -z "$F77"; then
232 AC_MSG_ERROR([You asked me to use ifc (intel fortran compiler) but i haven't been able to find it])
236 if test -z "$F77"; then
237 ## No Fortran compiler specified... Prefer gfortran and intel compilers
238 AC_PROG_F77([gfortran ifc ifort])
239 if test -z "$F77"; then
240 # Best effort to find a compiler (might be g77)
246 # case statements were introduced in fortran 90 so we can use that
247 # as a test to see if our compiler is fortran 90 compatible.
249 if test -z "$F77"; then
250 AC_MSG_ERROR([No fortran compiler found. Cannot compile scilab without a fortran compiler])
253 AC_MSG_CHECKING([if $F77 is a fortran 90 compatible compiler])
255 AC_LANG_PUSH([Fortran 77])
261 print*, "case is 1, i is ", i
263 print*, "case is 2 to 3, i is ", i
265 print*, "default case, i is ", i
270 [AC_MSG_RESULT([yes])
271 AC_DEFINE([G95_FORTRAN],[],[uses G95 fortran])
274 [AC_MSG_RESULT([no])]
276 AC_LANG_POP([Fortran 77])
278 ############ C ###############
281 if test "$with_gcc" = yes; then
283 if test -z "$CC"; then
284 AC_MSG_ERROR([You asked me to use gcc but i haven't been able to find it])
288 if test "$with_intelcompilers" = yes; then
290 if test -z "$CC"; then
291 AC_MSG_ERROR([You asked me to use icc (intel C compiler) but I haven't been able to find it])
295 if test -z "$CC"; then
296 # No C compiler specified... We rely on Autoconf to find the best
300 if test -z "$CC"; then
301 AC_MSG_ERROR([No C Compiler found. Cannot compile Scilab without a C compiler])
304 AC_CHECK_SIZEOF([int])
305 AC_CHECK_SIZEOF([long])
309 # we can't just do something like
310 # AC_CHECK_PROG(cxx_present, $CXX, "yes", "no")
311 # because if the user has specified the full path of the desired C++ compiler then AC_CHECK_PROG
312 # will fail. If AC_PROG_CXX fails to find a c++ compiler it will set CXX=g++ so just run AC_CHECK_PROG
313 # in this special case
316 AC_CHECK_PROG([cxx_present], [$CXX], [yes], [no])
317 if test "x$cxx_present" != "xyes"; then
318 AC_MSG_ERROR([No C++ compiler found. Cannot compile scilab without a C++ compiler])
323 # for "subdir-objects"
329 # If this option is provided, enable the debug on C & C++
330 if test "$enable_stop_on_warning" = yes; then
335 if test "$enable_debug" = yes; then
336 enable_debug_fortran=yes
339 enable_debug_java=yes
344 if test "$enable_debug_fortran" = yes; then
345 FFLAGS="`echo "$FFLAGS"| sed -e 's|-O[0-9+]|-O0|'`"
347 enable_debug_fortran=no
350 if test "$enable_debug_C" = yes; then
351 CFLAGS="`echo "$CFLAGS"| sed -e 's|-O[0-9+]|-O0|'`"
356 if test "$enable_debug_CXX" = yes; then
357 CXXFLAGS="`echo "$CXXFLAGS"| sed -e 's|-O[0-9+]|-O0|'`"
362 if test "$enable_debug_java" = yes; then
365 LOGGING_LEVEL="SEVERE"
367 AC_SUBST(LOGGING_LEVEL)
369 if test "x${prefix}" = "xNONE"; then
370 prefix="${ac_default_prefix}"
373 ###############################
375 ###############################
377 SCIVERSION=`cat $SCI_SRCDIR/Version.incl | sed -e "s/SCIVERSION=//" `
379 #############################################
380 ## Compilers and options according to machine
381 #############################################
383 ######################
384 ######## Set compilation options for intel C/Fortran compilers
385 ######################
387 if test "$with_intelcompilers" = yes; then
391 ########### FORTRAN ######################
394 ######################
395 ######## With gfortran ...
396 ######################
397 if test -n "$F77"; then
400 ## With GNU Compiler enable the code coverage
401 if test "$enable_code_coverage" = yes; then
402 CODE_COVERAGE_FFLAGS="-fprofile-arcs -ftest-coverage"
406 AC_MSG_ERROR([g77 is no longer supported. Please consider switching to gfortran])
410 if test "$enable_debug_fortran" = yes; then
411 AC_LANG_PUSH([Fortran 77])
412 for flag in -g -Wall -Wsurprising; do
413 case " ${FFLAGS} " in
415 # flag is already present
419 AC_MSG_CHECKING([if the Fortran compiler accepts ${flag}])
420 ac_save_FFLAGS="$FFLAGS"
421 FFLAGS="$FFLAGS ${flag}"
422 AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
423 [AC_MSG_RESULT([yes])
424 DEBUG_FFLAGS="${flag}"
426 [AC_MSG_RESULT([no])]
431 AC_LANG_POP([Fortran 77])
433 DEBUG_FFLAGS="-DNDEBUG"
437 ARCH_FFLAGS="-m64 -fPIC"
444 ARCH_FFLAGS="-fpe3 -switch nosqrt_recip"
447 ARCH_FFLAGS="-qcharlen=4096"
450 ARCH_FFLAGS="-O0 -fpe1"
453 ARCH_FFLAGS="+Obb1200 +E4 -Dhpux"
456 if test "$enable_debug_fortran" = yes; then
457 ARCH_FFLAGS="+E4 +Z +DAportable -Dhpux"
459 ARCH_FFLAGS="+O2 +E4 +Z +DAportable -Dhpux"
461 # ARCH_LDFLAGS="-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl"
465 if test "$enable_debug_fortran" = yes; then
466 ARCH_FFLAGS=" +Z +DAportable -Dhpux"
468 ARCH_FFLAGS="+O2 +Z +DAportable -Dhpux"
470 ARCH_LDFLAGS="-ldld -lnsl -lU77 -lm"
477 #########################
478 # setting parameters according to system types
479 #########################
482 *-*-hpux9.*|*-*-hpux10.*|*-*-hpux11.*)
499 AM_CONDITIONAL(IS_MACOSX, test -n "$MACOSX")
500 AM_CONDITIONAL(IS_HPUX, test -n "$HPUX")
501 AM_CONDITIONAL(IS_SPARC, test -n "$SPARC")
502 AM_CONDITIONAL(IS_SOLARIS, test -n "$SOLARIS")
503 AM_CONDITIONAL(IS_MIPS_SGI_IRIX, test -n "$MIPS_SGI_IRIX")
512 if test -z "$CXX"; then
513 AC_MSG_ERROR([No C++ compiler found. Cannot compile scilab without a C++ compiler])
517 g++-* | g++ | ccache*g++ | ccache*g++-* )
518 ## With GNU C++ Compiler
520 # enable the code coverage
521 if test "$enable_code_coverage" = yes; then
522 CODE_COVERAGE_CXXFLAGS="-fprofile-arcs -ftest-coverage"
525 if test "$enable_debug_CXX" = yes; then
526 DEBUG_CXXFLAGS="-pipe -Wshadow -Wpointer-arith -Wcast-align -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -Wno-strict-aliasing -Wextra -Wall -g3 -Wunsafe-loop-optimizations"
529 # Only doing that under Linux
530 DEBUG_CXXFLAGS="$DEBUG_CXXFLAGS -fdiagnostics-show-option -Werror=format-security"
534 DEBUG_CXXFLAGS="-DNDEBUG"
536 COMPILER_CXXFLAGS="-fno-stack-protector " # bug 3131
537 COMPILER_LDFLAGS="-lstdc++"
541 # clang linker expect an explict declaration
542 #Â until the http://libcxx.llvm.org/ release, we select the GNU one.
543 COMPILER_LDFLAGS="-lstdc++"
547 #### 64 bits detection
550 x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd*)
558 gcc-* | gcc | ccache*gcc | ccache*gcc-* )
561 # enable the code coverage
562 if test "$enable_code_coverage" = yes; then
563 CODE_COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage"
566 if test "$enable_debug_C" = yes; then
567 DEBUG_CFLAGS="-pipe -Wformat -Wshadow -Wfloat-equal -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-noreturn -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wwrite-strings -Winline -Wredundant-decls -Wall -Wchar-subscripts -Wextra -Wuninitialized -Wno-format-y2k -Wmissing-format-attribute -Wno-missing-field-initializers -Wno-strict-aliasing -Wold-style-definition -g3 -Wunsafe-loop-optimizations"
569 # -D_FORTIFY_SOURCE=2
572 # Only doing that under Linux
573 if test "$enable_debug_linker" = yes; then
574 LDFLAGS="$LDFLAGS -Wl,--warn-common,-x"
576 DEBUG_CFLAGS="$DEBUG_CFLAGS -fdiagnostics-show-option -Werror=format-security"
580 DEBUG_CFLAGS="-DNDEBUG"
583 COMPILER_CFLAGS="-fno-stack-protector " # bug 3131
584 # Explictly disable the as needed. It was disable by default but Ubuntu
585 # activated it by default since release 11.04. See bug #8961.
586 # Once all cyclic dependencies have been dropped, this line could be removed.
587 # Check if linker supports --as-needed and --no-as-needed options
588 if $LD --help 2>/dev/null | grep no-as-needed > /dev/null; then
589 COMPILER_LDFLAGS="$COMPILER_LDFLAGS -Wl,--no-as-needed"
594 x86_64-*-linux-gnu | x86_64-linux-gnu)
598 ARCH_CFLAGS="-mieee-with-inexact"
599 ARCH_LDFLAGS="-mieee-with-inexact"
602 ARCH_CFLAGS="-D_GNU_SOURCE"
605 ARCH_CFLAGS="-DSVR4 -DSYSV -Dsolaris"
608 ARCH_CFLAGS="-Dfreebsd"
613 ARCH_CFLAGS="-Dnetbsd -mieee"
614 ARCH_FFLAGS="-Dnetbsd -mieee"
618 ARCH_CFLAGS="-Dnetbsd"
622 ARCH_CFLAGS="$ARCH_CFLAGS -no_compact_linkedit"
623 ARCH_CXXFLAGS="$ARCH_CXXFLAGS -no_compact_linkedit"
624 ARCH_LDFLAGS="$ARCH_LDFLAGS -no_compact_linkedit"
625 # We need this to be passed to all linker commands
626 LDFLAGS="$LDFLAGS -no_compact_linkedit"
630 # Extract from gfortran -v the version it has been built for
631 MAC_DETECTED_ARCH="`$F77 -v 2>&1|grep "Target:"|sed -e "s/Target: \([[a-z0-9A-Z_]]*\).*/\1/g"`"
634 AC_MSG_WARN([gfortran not used. Could not detect the architecture. Switch to the default case: x86_64])
635 MAC_DETECTED_ARCH="x86_64"
638 CC="$CC -arch $MAC_DETECTED_ARCH"
639 CXX="$CXX -arch $MAC_DETECTED_ARCH"
642 ;; # end of the gcc case on the $CC
645 ## CC compiler (not GCC)
646 if test "$enable_debug_C" != yes; then
647 ARCH_CFLAGS="-DNDEBUG"
653 ARCH_CFLAGS="-std -ieee_with_inexact"
654 ARCH_LDFLAGS="-ieee_with_inexact"
657 ARCH_CFLAGS="-ieee_with_inexact"
658 ARCH_LDFLAGS="-ieee_with_inexact"
660 rs6000-*-*) # IBM AIX RS 6000 (NO LONGER SUPPORTED)
661 ARCH_CFLAGS="-Daix -DSYSV"
663 mips-sgi-irix*) # SGI
664 ARCH_CFLAGS="-DSYSV -DSVR4"
667 ARCH_CFLAGS="-DSYSV -Dhpux"
669 *-*-hpux10.*) # HP 10
670 if test "$enable_debug_C" = yes; then
671 ARCH_CFLAGS="-DSYSV -Dhpux"
673 ARCH_CFLAGS="-DSYSV -Dhpux +Z +DAportable"
677 *-*-hpux11.*) # HP 11
678 ARCH_CFLAGS="-DSYSV -Dhpux -Dhppa +Z +DAportable"
680 *-*-solaris*) # SUN SOLARIS
681 ARCH_CFLAGS="-DSVR4 -DSYSV -Dsolaris -I/usr/local/include/"
682 ARCH_LDFLAGS="-L/usr/local/lib/"
685 ;; # end of not a gcc compiler
689 # enable the code coverage
690 if test "$enable_code_coverage" = yes; then
691 AC_PATH_PROG(LCOV, lcov)
692 if test -z "$LCOV" ; then
693 AC_MSG_ERROR([Cannot find lcov. Please install it (package lcov under Debian) or remove the option --enable-code-coverage])
695 AC_PATH_PROG(GENHTML, genhtml)
696 if test -z "$GENHTML" ; then
697 AC_MSG_ERROR([Cannot find genhtml. Please install it (package lcov under Debian) or remove the option --enable-code-coverage])
699 CODE_COVERAGE_LDFLAGS="-coverage"
701 AM_CONDITIONAL(CODE_COVERAGE, test "$enable_code_coverage" = yes)
703 # flag for possible compilations in configure
708 if test $IS_64_BITS_CPU = true -o "$MACOSX" = "1"; then
709 if test $f90compatible = false; then
710 AC_MSG_ERROR([64 bits support needs a fortran 90 compiler (try --with-gfortran).])
712 AC_DEFINE([USE_DYNAMIC_STACK], [], [If we are building a 64 bits version])
715 AM_CONDITIONAL(IS_64_BITS_CPU, test $IS_64_BITS_CPU = true)
716 AM_CONDITIONAL(USE_DYNAMIC_STACK, test $IS_64_BITS_CPU = true -o "$MACOSX" = "1")
720 ## By default, for x86 CPU, enable the SSE.
721 ## Note that it is already the case with 64 bits CPU
722 ## (these extensions are enabled by default by gcc)
726 i*86-linux-gnu|i*86-*-linux-gnu)
733 #######################
734 ## test for underscores (name mangling issues between C and fortran)
735 #######################
736 AC_CHECK_UNDERSCORE_FORTRAN()
744 # The Java detection is done after in this file.
751 AC_HELP_STRING([--without-xcos],[Disable Xcos]))
753 AC_ARG_WITH(modelica,
754 AC_HELP_STRING([--without-modelica],[Disable the OCaml module (modelica)]))
757 if test "$with_gui" = no; then
758 AC_MSG_WARN([GUI is disabled. Disabling then xcos])
764 if test "$with_xcos" != no -a "$with_gui" != no; then
765 AC_DEFINE([WITH_XCOS], [], [With XCOS])
769 AC_CHECK_LIB([rt], [clock_gettime],
771 AC_DEFINE([HAVE_CLOCK_GETTIME], [1],[Whether clock_gettime is available]) ],
772 [AC_MSG_WARN([librt: library missing (Cannot find symbol clock_gettime). Check if librt is installed (it is usually provided by the libc) and if the version is correct])]
779 ## ocaml which only called when using Xcos
782 if test "$with_modelica" != no; then
783 AC_CHECK_PROG_OCAML()
789 AC_SUBST(XCOS_ENABLE)
791 AM_CONDITIONAL(OCAML, test "$with_modelica" != no -a "$OCAMLC" != no -a "$OCAMLOPT" != no)
792 AM_CONDITIONAL(XCOS, test "$XCOS_ENABLE" != no)
794 ###########################
795 ## test for JAVA compiler
796 ###########################
798 if test "$with_javasci" != no -o "$with_gui" != no -o "$enable_build_help" != no; then
800 # See if --with-jdk command line argument is given
801 # Try to detect the installed JVM, this could be controlled
802 # by the above --with options
805 case "$ac_java_jvm_version" in
809 AC_MSG_ERROR([Wrong version of Java. Expected at least 1.6. Found $ac_java_jvm_version])
813 if test "$ac_java_jvm_name" = "jdk"; then
814 JAVA_HOME=$ac_java_jvm_dir
815 JAVA_VERSION=$ac_java_jvm_version
818 JAVA_JNI_INCLUDE=$ac_java_jvm_jni_include_flags
822 # Mac OS X does not link against the lib but uses -framework
823 JAVA_JNI_LIBS="-framework JavaVM"
827 JAVA_JNI_LIBS=$ac_java_jvm_jni_lib_flags
828 JAVA_JNI_LIBS_PRELOAD=$ac_java_jvm_ld_preload
833 JAVA_CLASSPATH=$ac_java_classpath
844 if test "$with_gui" != no; then
846 if test $XCOS_ENABLE = yes; then
848 AC_JAVA_CHECK_PACKAGE([jgraphx],[com.mxgraph.model.mxCell],[Diagram design])
849 JGRAPHX=$PACKAGE_JAR_FILE
852 AC_JAVA_CHECK_VERSION_PACKAGE([jgraphx],[import com.mxgraph.view.mxGraph;],$JGRAPHX,[1.8.0.0],[mxGraph.VERSION],[],[])
854 # Java HDF5 is only needed for Xcos. Should be dropped in 5.4.X (with X > 0)
855 if test "$with_xcos" != no -a "$with_gui" != no; then
857 if test "$MACOSX" = 1; then
858 echo "Check of the presence of libjhdf5.jnilib disabled under Mac OS X"
868 AC_JAVA_CHECK_PACKAGE([scirenderer],[org.scilab.forge.scirenderer.PackageInfo],[Scilab Renderer])
869 SCIRENDERER=$PACKAGE_JAR_FILE
870 AC_SUBST(SCIRENDERER)
872 AC_JAVA_CHECK_VERSION_PACKAGE([scirenderer],[import org.scilab.forge.scirenderer.PackageInfo;],$SCIRENDERER,[0.5.6],[PackageInfo.VERSION])
875 AC_JAVA_CHECK_PACKAGE([flexdock],[org.flexdock.docking.DockingManager],[Scilab Gui])
876 FLEXDOCK=$PACKAGE_JAR_FILE
879 AC_JAVA_CHECK_VERSION_PACKAGE([flexdock],[import org.flexdock.util.Utilities;],$FLEXDOCK,[1.2.0],[Utilities.VERSION])
881 # Swing look&feel implementations
882 AC_JAVA_CHECK_PACKAGE([looks],[com.jgoodies.looks.common.MenuItemRenderer],[Scilab Gui - Look and feel],"yes")
883 LOOKS=$PACKAGE_JAR_FILE
885 # Named differently under ArchLinux or Fedora
886 if test -z "$LOOKS"; then
887 AC_JAVA_CHECK_PACKAGE([jgoodies-looks],[com.jgoodies.looks.common.MenuItemRenderer],[Scilab Gui - Look and feel])
888 LOOKS=$PACKAGE_JAR_FILE
893 AC_JAVA_CHECK_PACKAGE([skinlf],[com.l2fprod.util.AccessUtils],[Scilab Gui - Skin Look and Feel])
894 SKINLF=$PACKAGE_JAR_FILE
898 AC_JAVA_CHECK_PACKAGE([jogl2],[javax.media.opengl.glu.GLUnurbs],[Scilab 3D rendering - Version 2.0])
899 JOGL2=$PACKAGE_JAR_FILE
902 if test "$MACOSX" = 1; then
903 echo "Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X"
905 LDFLAGS_save=$LDFLAGS
906 # Provide known paths where distribs/OS can store JNI libs
907 LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
908 LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
909 LDFLAGS="$LDFLAGS -L/usr/lib/jogl -L/usr/lib64/jogl" # RedHat
910 LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
911 AC_CHECK_LIB([jogl_desktop], [glTexParameterf], [JOGL2_LIBS="-ljogl"],[AC_MSG_WARN([Could not link against -ljogl_desktop. Will try against -ljogl2 -lGL])])
912 if test -z "$JOGL2_LIBS"; then # The previous test failed add more options to the LDFLAGS
913 # the space after "jogl" in the following line is on
914 # purpose to disable the cache
915 AC_CHECK_LIB([jogl_desktop ], [glTexParameterf],
916 [JOGL2_LIBS="-ljogl_desktop -lGL"],
917 [AC_MSG_ERROR(["libjogl: Library
918 missing (Cannot find symbol glTexParameterf). Check if libjogl - C/Java (JNI)
919 interface for JOGL - or libGL are installed and if the version is correct. Note
920 that you might have to update etc/librarypath.xml to provide the actual path
921 the the JNI libraries."])],
925 LDFLAGS=$LDFLAGS_save
928 # JoGL Native <=> Java connector
929 AC_JAVA_CHECK_PACKAGE([gluegen2-rt],[jogamp.common.os.MachineDescriptionRuntime],[Scilab 3D rendering])
930 GLUEGEN2_RT=$PACKAGE_JAR_FILE
931 AC_SUBST(GLUEGEN2_RT)
933 if test "$MACOSX" = 1; then
934 echo "Check of the presence of libgluegen-rt.jnilib disabled under Mac OS X"
936 LDFLAGS_save=$LDFLAGS
937 # Provide known paths where distribs/OS can store JNI libs
938 LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
939 LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
940 LDFLAGS="$LDFLAGS -L/usr/lib/gluegen -L/usr/lib64/gluegen" # RedHat
941 LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
942 symbol="Java_jogamp_common_jvm_JVMUtil_initialize"
943 AC_CHECK_LIB([gluegen2-rt], [$symbol], [GLUEGEN_RT_LIBS="-lgluegen-rt"],
944 [AC_MSG_ERROR([libgluegen2-rt: Library missing (Cannot find symbol $symbol). Check if libgluegen-rt - C/Java (JNI) interface for GLUEGEN2 - is installed and if the version is correct. Note that you might have to update etc/librarypath.xml to provide the actual path the the JNI libraries.])],
946 LDFLAGS=$LDFLAGS_save
950 AC_JAVA_CHECK_PACKAGE([jhall],[javax.help.JHelp],[Scilab Help Browser],"yes")
951 JHALL=$PACKAGE_JAR_FILE
953 # Named differently under Mandriva or Fedora
954 if test -z "$JHALL"; then
955 AC_JAVA_CHECK_PACKAGE([javahelp2],[javax.help.JHelp],[Scilab Help Browser])
956 JHALL=$PACKAGE_JAR_FILE
961 AC_JAVA_CHECK_PACKAGE([jrosetta-API],[com.artenum.rosetta.interfaces.core.ConsoleConfiguration],[JRosetta : Console API Artenum / Scilab],"yes")
962 JROSETTA_API=$PACKAGE_JAR_FILE
963 if test -z "$JROSETTA_API"; then
964 AC_JAVA_CHECK_PACKAGE([jrosetta-api],[com.artenum.rosetta.interfaces.core.ConsoleConfiguration],[JRosetta : Console API Artenum / Scilab])
965 JROSETTA_API=$PACKAGE_JAR_FILE
967 AC_SUBST(JROSETTA_API)
970 AC_JAVA_CHECK_PACKAGE([jrosetta-engine],[com.artenum.rosetta.core.action.AbstractConsoleAction],[JRosetta : Console Core Artenum / Scilab])
971 JROSETTA_ENGINE=$PACKAGE_JAR_FILE
972 AC_SUBST(JROSETTA_ENGINE)
973 AC_JAVA_CHECK_VERSION_PACKAGE([jrosetta-engine],[import com.artenum.rosetta.util.ConfigurationBuilder;],$JROSETTA_ENGINE,[1.0.4],[ConfigurationBuilder.getVersion()])
976 # MathML rendering solution
977 # Used in both graphic & help
978 AC_JAVA_CHECK_PACKAGE([jeuclid-core],[net.sourceforge.jeuclid.LayoutContext],[MathML rendering solution (at least version 3.1.X)])
979 JEUCLID_CORE=$PACKAGE_JAR_FILE
980 AC_SUBST(JEUCLID_CORE)
983 ################ Mandatory for graphic_export features #####
984 # XML to PDF/other Translator
985 AC_JAVA_CHECK_PACKAGE([fop],[org.apache.fop.pdf.PDFInfo],[XML to PDF Translator (fop)])
986 FOP=$PACKAGE_JAR_FILE
989 # xml.apache.org SVG Library (under mandriva for example)
990 AC_JAVA_CHECK_PACKAGE([batik-all],[org.apache.batik.parser.Parser],[Apache SVG Library],"yes")
991 BATIK=$PACKAGE_JAR_FILE
993 if test -z "$BATIK"; then
994 # Other other distribs
995 AC_JAVA_CHECK_PACKAGE([batik],[org.apache.batik.parser.Parser],[Apache SVG Library])
996 BATIK=$PACKAGE_JAR_FILE
999 AC_JAVA_CHECK_VERSION_PACKAGE([batik],[import org.apache.batik.Version;],$BATIK,[1.7],[Version.getVersion()])
1001 # Commons I/O library
1002 AC_JAVA_CHECK_PACKAGE([commons-io],[org.apache.commons.io.output.CountingOutputStream],[Commons I/O library])
1003 COMMONS_IO=$PACKAGE_JAR_FILE
1004 AC_SUBST(COMMONS_IO)
1006 # XML graphics common
1007 AC_JAVA_CHECK_PACKAGE([xmlgraphics-commons],[org.apache.xmlgraphics.util.Service],[Commons graphics library])
1008 XMLGRAPHICS_COMMONS=$PACKAGE_JAR_FILE
1009 AC_SUBST(XMLGRAPHICS_COMMONS)
1011 # Avalon Framework (PDF)
1012 AC_JAVA_CHECK_PACKAGE([avalon-framework],[org.apache.avalon.framework.configuration.ConfigurationException],[Common framework for Java server application])
1013 AVALON_FRAMEWORK=$PACKAGE_JAR_FILE
1014 AC_SUBST(AVALON_FRAMEWORK)
1016 # XML API EXT (conversion of a SVG => PNG)
1017 AC_JAVA_CHECK_PACKAGE([xml-apis-ext],[org.w3c.dom.svg.SVGDocument],[XML Commons external code],"yes")
1018 XML_APIS_EXT=$PACKAGE_JAR_FILE
1020 if test -z "$XML_APIS_EXT"; then
1021 # Other other distribs (Ex: Fedora/Redhat)
1022 AC_JAVA_CHECK_PACKAGE([xml-commons-apis-ext],[org.w3c.dom.svg.SVGDocument],[XML Commons external code])
1023 XML_APIS_EXT=$PACKAGE_JAR_FILE
1025 AC_SUBST(XML_APIS_EXT)
1027 ################ END Mandatory for graphic_export features #####
1030 # Logging (flexdock dep)
1031 AC_JAVA_CHECK_PACKAGE([commons-logging],[org.apache.commons.logging.LogFactory],[Apache logging])
1032 COMMONS_LOGGING=$PACKAGE_JAR_FILE
1033 AC_SUBST(COMMONS_LOGGING)
1036 AC_JAVA_CHECK_PACKAGE([jlatexmath],[org.scilab.forge.jlatexmath.TeXFormula],[LaTex Rendering])
1037 JLATEXMATH=$PACKAGE_JAR_FILE
1038 AC_SUBST(JLATEXMATH)
1040 AC_JAVA_CHECK_VERSION_PACKAGE([jlatexmath],[import org.scilab.forge.jlatexmath.TeXFormula;],$JLATEXMATH,[0.9.7],[TeXFormula.VERSION])
1042 AC_DEFINE([WITH_GUI],[],[With the JAVA stuff (GUI, Console, JOGL...)])
1046 # Checkstyle (code checking)
1047 AC_JAVA_CHECK_PACKAGE([checkstyle],[com.puppycrawl.tools.checkstyle.CheckStyleTask],[Checkstyle - code checking],"yes")
1048 CHECKSTYLE=$PACKAGE_JAR_FILE
1049 AC_SUBST(CHECKSTYLE)
1051 # Commons beanutils (dependency of checkstyle)
1052 AC_JAVA_CHECK_PACKAGE([commons-beanutils],[org.apache.commons.beanutils.Converter],[Bean utility],"yes")
1053 COMMONS_BEANUTILS=$PACKAGE_JAR_FILE
1054 AC_SUBST(COMMONS_BEANUTILS)
1056 # antlr (dependency of checkstyle)
1057 AC_JAVA_CHECK_PACKAGE([antlr],[antlr.TokenStreamException],[language tool for constructing recognizers],"yes")
1058 ANTLR=$PACKAGE_JAR_FILE
1061 # Junit 4 (java unitary test)
1062 AC_JAVA_CHECK_PACKAGE([junit4],[org.junit.Assert],[Junit4 - Unit tests],"yes")
1063 JUNIT4=$PACKAGE_JAR_FILE
1066 # Cobertura (java code coverage)
1067 AC_JAVA_CHECK_PACKAGE([cobertura],[net.sourceforge.cobertura.merge.Main],[cobertura - Java code coverage],"yes")
1068 COBERTURA=$PACKAGE_JAR_FILE
1071 # ASM (a dependency of Cobertura)
1072 AC_JAVA_CHECK_PACKAGE([asm3],[org.objectweb.asm.Type],[Java bytecode manipulation (dep of cobertura)],"yes")
1073 ASM3=$PACKAGE_JAR_FILE
1075 if test -z "$ASM3"; then
1076 AC_JAVA_CHECK_PACKAGE([asm],[org.objectweb.asm.Type],[Java bytecode manipulation (dep of cobertura)],"yes")
1077 ASM3=$PACKAGE_JAR_FILE
1081 AC_MSG_WARN([Sun javac not found: I will not build the java interface])
1082 if test "$ac_java_jvm_name" != ""; then
1083 AC_MSG_WARN([We do not support $ac_java_jvm_name yet])
1086 AC_SUBST(JAVA_JNI_INCLUDE)
1087 AC_SUBST(JAVA_JNI_LIBS)
1091 if test "$enable_debug_java" = yes; then
1096 AC_SUBST(JAVAC_DEBUG)
1098 if test "$enable_build_swig" != no -a "$enable_build_swig" != ""; then
1106 # Giws is the equivalent of Swig developed by the Scilab team
1107 # in order to provide a wrapper to Java from C/C++
1108 if test "$enable_build_giws" != no -a "$enable_build_giws" != ""; then
1115 if test -z "$JAVAC"; then
1119 AC_SUBST(JAVA_ENABLE)
1121 # Xcos is not checked here because gui=no disables it
1122 AM_CONDITIONAL(NEED_JAVA, test "$with_javasci" != no -o "$with_gui" != no -o "$enable_build_help" != no)
1123 AM_CONDITIONAL(GUI, test "$with_gui" != no)
1124 AM_CONDITIONAL(JAVASCI, test "$with_javasci" != no)
1125 AM_CONDITIONAL(SWIG, test "$enable_build_swig" != no -a "$enable_build_swig" != "")
1126 AM_CONDITIONAL(GIWS, test "$enable_build_giws" != no -a "$enable_build_giws" != "")
1128 ##############################################################
1130 ##############################################################
1134 if test "$JAVA_ENABLE" != no; then
1138 if test "$with_gui" != no; then
1142 AC_SUBST(GUI_ENABLE)
1144 ##############################################################
1145 ## test for functions in standard C library and C math library
1146 ##############################################################
1148 # Provided by unistd.h
1149 AC_CHECK_FUNCS([sleep] [usleep] [dup2] [getcwd] [getpagesize] [getpass])
1150 AC_CHECK_FUNCS([rmdir])
1152 AC_CHECK_FUNC([getwd],AC_DEFINE([HAVE_GETWD],[1],[Define to 1 if you have the `getwd' function.]),[AC_DEFINE([getwd(x)],[getcwd(x,1024)],[Don't use getwd but getcwd])])
1154 # Provided by <regex.h>
1155 AC_CHECK_FUNCS([regcomp])
1157 # Provided by stdlib.h
1158 AC_CHECK_FUNCS([atexit] [putenv] [setenv])
1160 # Provided by String.h
1161 AC_CHECK_FUNCS([bzero] [memmove] [memset] [strcasecmp] [strerror] [strchr] [strdup] [strpbrk] [strrchr] [strstr] [strtol])
1163 # Provided by select.h
1164 AC_CHECK_FUNCS([select])
1167 AC_CHECK_FUNCS([endpwent])
1169 # Provided by netdb.h
1170 AC_CHECK_FUNCS([gethostbyaddr] [gethostbyname] [gethostname])
1172 # Provided by time.h
1173 AC_CHECK_FUNCS([gettimeofday])
1175 # Provided by ctype.h
1176 AC_CHECK_FUNCS([isascii])
1178 # Provided by wctype.h
1179 AC_CHECK_FUNCS([iswprint])
1181 # Provided by types.h
1182 AC_CHECK_FUNCS([mkdir])
1184 # Provided by mman.h
1185 AC_CHECK_FUNCS([munmap])
1187 # Provided by signal.h
1188 AC_CHECK_FUNCS([strsignal])
1191 # Check of the libm (lib math). Macro provided by libtool.
1192 save_LDFLAGS="$LDFLAGS"
1195 # Provided by math.h
1197 LDFLAGS="$LDFLAGS $LIBM"
1198 AC_CHECK_FUNCS([pow] [sqrt] [finite] [floor] [exp10])
1200 ### If isinf exists or not (used to not be the case under Solaris)
1202 AC_CHECK_FUNC([isinf],,[
1203 AC_DEFINE([isinf(x)],[(!finite(x) && x==x)],[Provide a macro to do isinf])
1206 LDFLAGS="$save_LDFLAGS"
1208 # Provided by regex.h
1209 AC_CHECK_FUNCS([re_comp])
1211 # Provided by socket.h
1212 AC_CHECK_FUNCS([socket])
1214 # Provided by utsname.h
1215 AC_CHECK_FUNCS([uname])
1217 # Provided by wtloop.c
1218 AC_CHECK_FUNCS([setlocale])
1220 # Function memcmp used in modules/fileio/src/c/xls.c
1223 # function stat used in modules/core/src/c/link_std.c
1226 # function strtod used in modules/core/src/c/getval.c
1229 ########################
1230 ## test for header files
1231 ########################
1233 AC_CHECK_HEADERS([limits.h values.h])
1235 AC_CHECK_HEADERS([fcntl.h float.h libintl.h locale.h malloc.h netdb.h netinet/in.h nlist.h sgtty.h stddef.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h sys/timeb.h sys/utsname.h syslog.h term.h termcap.h termio.h termios.h wchar.h wctype.h time.h])
1237 # check header dirent
1240 # static struct timeval defined or not | used in modules/core/src/c/timer.c
1243 # check if the specific header is available or not | used in modules/core/src/c/link_SYSV.c
1247 #######################
1248 ## Test for structures ##
1249 #######################
1250 AC_CHECK_MEMBERS([struct stat.st_blksize])
1251 AC_CHECK_MEMBERS([struct stat.st_rdev])
1254 #######################
1256 #######################
1258 # gettext. See http://www.gnu.org/software/hello/manual/gettext/AM_005fGNU_005fGETTEXT.html
1259 AM_GNU_GETTEXT([external])
1260 AM_GNU_GETTEXT_VERSION([0.16])
1262 # function closedir used in modules/metanet/src/c/files.c
1263 AC_FUNC_CLOSEDIR_VOID
1265 # Signals used in modules/core/src/c/realmain.c
1268 # struct tm used in modules/core/src/c/history.c
1271 # st_blocks in the struct in modules/io/sci_gateway/c/intfilestat.c
1279 # some systems may have a system curses implementation as well as ncurses
1280 # installed. We need to be consistent in making sure we get the correct
1281 # library to go with the correct header and also provide a way for the user
1282 # to have some control over which is picked when both are available.
1284 # For now, just check for -lcurses and then -lncurses. The user control
1285 # may need to be revisited
1289 # Various observations:
1292 # - installs ncurses.h and possibly curses.h as a link to ncurses.h
1293 # - installs -lncurses.
1294 # - need to include term.h for tgetent() but tgetent() is in -lncurses.a
1296 # curses as found in NetBSD-4 and NetBSD-5
1297 # - installs curses.h
1298 # - need to include termcap.h and link with -ltermcap for tgetent()
1301 AC_CHECK_LIB([curses],[main])
1302 if test $ac_cv_lib_curses_main = no ; then
1303 AC_CHECK_LIB([ncurses],[main])
1306 # make sure we have what we need for tgetent
1307 AC_SEARCH_LIBS([tgetent],[termcap])
1309 AC_CHECK_HEADERS([ncurses.h curses.h])
1311 if test "x$ac_cv_lib_curses_main" = "xyes" -o "x$ac_cv_lib_ncurses_main" = "xyes" ; then
1312 AC_DEFINE([HAVE_TERMCAP],[],[Have Term Cap])
1314 AC_MSG_ERROR([No termcap library detected. Please install ncurses dev library (or termcap library)])
1321 AC_CHECK_LIB(dl, dlopen)
1323 AC_SEARCH_LIBS([pthread_join],[pthread])
1330 AC_HELP_STRING([--without-fftw],[Disable the interface to the FFTW 3 library]))
1333 if test "$with_fftw" != no; then
1338 AC_SUBST(FFTW_ENABLE)
1339 AM_CONDITIONAL(FFTW, test "$with_fftw" != no)
1348 # [ --with-mpi compile with MPI library])
1350 #if test "$with_mpi" = yes; then
1352 # # We will have to detect other implementation of OpenMPI
1354 #AM_CONDITIONAL(MPI, test "$with_mpi" = yes)
1361 AC_HELP_STRING([--without-openmp],[Disable the usage of OpenMP (parallelization of some algoritms)]))
1364 if test "$with_openmp" != no; then
1366 OPENMP_CFLAGS="-fopenmp"
1367 OPENMP_CXXFLAGS="-fopenmp"
1368 OPENMP_LIBS="-lgomp"
1370 AC_CHECK_HEADERS([omp.h], [],
1371 [AC_MSG_ERROR([Could not find omp.h])])
1375 AC_SUBST(OPENMP_ENABLE)
1376 AC_SUBST(OPENMP_CFLAGS)
1377 AC_SUBST(OPENMP_CXXFLAGS)
1378 AC_SUBST(OPENMP_LIBS)
1380 AM_CONDITIONAL(OPENMP, test "$with_openmp" != no)
1383 #######################
1385 #######################
1389 #######################
1391 #######################
1393 ALL_LINGUAS="en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ"
1394 ALL_LINGUAS_DOC="en_US fr_FR pt_BR ja_JP ru_RU"
1396 AC_ARG_ENABLE(build-localization,
1397 AC_HELP_STRING([--disable-build-localization],[Disable the localization build])
1399 BUILD_LOCALIZATION_ENABLE=no
1401 if test "$enable_build_localization" != no; then
1403 AC_SUBST(ALL_LINGUAS)
1404 AC_SUBST(ALL_LINGUAS_DOC)
1405 AC_CHECK_FUNCS([bind_textdomain_codeset])
1407 AC_PATH_PROG(MSGCAT, msgcat, no)
1408 # AC_PATH_PROG(MSGFMT, msgfmt, no)
1409 # AC_PATH_PROG(XGETTEXT, xgettext, no)
1411 if test x$MSGFMT = xno; then
1412 AC_ERROR([The msgfmt command is required to build Scilab. If it is installed on your system, ensure that it is in your path. If it is not, install GNU gettext to continue or use the option --disable-build-localization ])
1414 if test x$MSGCAT = xno; then
1415 AC_ERROR([The msgcat command is required to build Scilab. If it is installed on your system, ensure that it is in your path. If it is not, install GNU gettext to continue or use the option --disable-build-localization ])
1417 BUILD_LOCALIZATION_ENABLE=yes
1419 AM_CONDITIONAL(GENERATE_LOCALIZATION_FILES, test "$BUILD_LOCALIZATION_ENABLE" = yes)
1421 #######################
1422 ## Test for blas/Atlas and lapack
1423 #######################
1424 AC_MSG_CHECKING([if BLAS, ATLAS or MKL is available])
1427 [AC_MSG_RESULT([$BLAS_TYPE found])]
1429 AC_MSG_ERROR([Impossible to find a BLAS compatible library (see BLAS or ATLAS).])
1432 AC_MSG_CHECKING([if LAPACK is available])
1435 [AC_MSG_RESULT([$LAPACK_TYPE found])],
1436 AC_MSG_ERROR([Impossible to find the LAPACK library.])
1440 AC_ARG_WITH(arpack-ng,
1441 AC_HELP_STRING([--without-arpack-ng],[Disable the interface to ARPACK-NG]))
1444 if test "$with_arpack_ng" != no; then
1446 AC_MSG_CHECKING([if ARPACK-NG is available])
1449 [AC_MSG_RESULT([ARPACK-NG library found])],
1450 AC_MSG_ERROR([Impossible to find the ARPACK library. Please note that arpack was bundled with version prior to 5.4.0 and Scilab requires arpack-ng ( http://forge.scilab.org/index.php/p/arpack-ng/ ).])
1454 [AC_MSG_RESULT([Working ARPACK-NG library found (probably ARPACK-NG or a patched version of ARPACK)])],
1455 [AC_MSG_ERROR([ARPACK library found, but seems not to work properly. Please make sure you are using arpack-ng])
1458 AC_MSG_CHECKING([Skip ARPACK-NG detection])
1461 AM_CONDITIONAL(ARPACK_NG, test "$ARPACK_NG" != "no")
1468 AC_ARG_WITH(umfpack,
1469 AC_HELP_STRING([--without-umfpack],[Disable the interface to the UMFPACK library]))
1472 if test "$with_umfpack" != no; then
1473 AC_UMFPACK([$BLAS_LIBS])
1477 AC_SUBST(UMFPACK_ENABLE)
1478 AM_CONDITIONAL(UMFPACK, test "$with_umfpack" != no)
1480 #######################
1482 #######################
1491 if test "$with_tk" != no; then
1492 if test "$MACOSX" = "1"; then
1493 AC_MSG_ERROR([Due to technical constraints, Tcl/Tk must be disabled under Mac OS X (--without-tk)])
1496 # check user arguments
1497 USER_TCL_LIB_PATH=""
1498 USER_TCL_INC_PATH=""
1499 AC_ARG_WITH(tcl-library,
1500 AC_HELP_STRING([--with-tcl-library=DIR],[Set the path to the TCL library]),
1501 [ USER_TCL_LIB_PATH=$withval
1503 AC_ARG_WITH(tcl-include,
1504 AC_HELP_STRING([--with-tcl-include=DIR],[Set the path to the TCL headers]),
1505 [ USER_TCL_INC_PATH=$withval
1508 USER_TK_LIB_PATH=$USER_TCL_LIB_PATH
1509 USER_TK_INC_PATH=$USER_TCL_INC_PATH
1511 AC_ARG_WITH(tk-library,
1512 AC_HELP_STRING([--with-tk-library=DIR],[Set the path to the TK library]),
1513 [ USER_TK_LIB_PATH=$withval
1516 AC_ARG_WITH(tk-include,
1517 AC_HELP_STRING([--with-tk-include=DIR],[Set the path to the TK headers]),
1518 [ USER_TK_INC_PATH=$withval
1521 ###########################
1522 ########## X11 checks
1523 ###########################
1524 ## This check is mandatory since tk needs Xlib headers and libs
1528 saved_cflags="$CFLAGS"
1529 saved_ldflags="$LDFLAGS"
1530 saved_cppflags="$CXXFLAGS"
1532 AC_CHECK_LIB([dl], [main], [TCLTK_LIBS=" -ldl"])
1536 if test "$WITH_TKSCI" = yes; then
1537 AC_DEFINE([WITH_TK], [], [With TK])
1539 AC_MSG_ERROR([TCL/TK not found. Use --without-tk or specify the librairies and include paths manually])
1542 AC_SUBST(TCLTK_LIBS)
1543 AC_SUBST(TCL_INC_PATH)
1544 AC_SUBST(TK_INC_PATH)
1547 AC_SUBST(WITH_TKSCI)
1548 AM_CONDITIONAL(TCLTK, test "$WITH_TKSCI" = yes)
1551 ## MATIO LIBRARY (MAT File I/O Library)
1556 AC_HELP_STRING([--without-matio],[Disable the interface to Matio (MAT File I/O library)]))
1558 AC_ARG_WITH(matio_include,
1559 AC_HELP_STRING([--with-matio-include=DIR],[Set the path to the MATIO headers]),
1560 [with_matio_include="-I$withval"], [])
1562 AC_ARG_WITH(matio_library,
1563 AC_HELP_STRING([--with-matio-library=DIR],[Set the path to the MATIO libraries]),
1564 [with_matio_library="-L$withval"], [])
1568 if test "$with_matio" != no; then
1569 if test -n "$with_matio_include" -o -n "$with_matio_library" ; then
1570 MATIO_CFLAGS="$with_matio_include"
1571 MATIO_LIBS="$with_matio_library -lm -lz -lmatio"
1573 PKG_CHECK_MODULES(MATIO, [matio >= 1.3.3])
1576 save_CFLAGS="$CFLAGS"
1579 CFLAGS="$CFLAGS $MATIO_CFLAGS"
1580 LIBS="$LIBS $MATIO_LIBS"
1582 AC_CHECK_HEADERS([matio.h matioConfig.h], [],
1583 [AC_MSG_ERROR([Invalid MATIO_CFLAGS returned by pkg-config. Try to define MATIO_CFLAGS.])])
1584 AC_CHECK_LIB([matio], [Mat_Open], [],
1585 [AC_MSG_ERROR([Invalid MATIO_LIBS returned by pkg-config. Try to define MATIO_LIBS.])])
1588 CFLAGS="$save_CFLAGS"
1590 AC_DEFINE([WITH_MATIO], [], [With the MATIO library])
1595 AC_SUBST(MATIO_ENABLE)
1596 AM_CONDITIONAL(MATIO, test "$with_matio" != no)
1598 #############################
1599 ## Documentation management #
1600 #############################
1604 AC_ARG_ENABLE(build-help,
1605 AC_HELP_STRING([--disable-build-help],[Disable the help build])
1608 if test "$enable_build_help" != no; then
1614 if test "$JAVA_ENABLE" = no; then
1618 AC_SUBST(HELP_ENABLE)
1620 AM_CONDITIONAL(BUILD_HELP, test $HELP_ENABLE = yes)
1622 ## Install XML help files ###
1624 AC_ARG_WITH(install-help-xml,
1625 AC_HELP_STRING([--with-install-help-xml],[make install will install XML files])
1627 HELP_INSTALL_ENABLE=no
1628 if test "$with_install_help_xml" != no -a "$with_install_help_xml" != ""; then
1629 HELP_INSTALL_ENABLE=yes
1631 AM_CONDITIONAL(INSTALL_HELP_XML, test "$HELP_INSTALL_ENABLE" != "")
1633 ##############################################################
1635 ##############################################################
1639 if test "$JAVA_ENABLE" = no -o "$JAVASCI" = no; then
1643 AC_SUBST(JAVASCI_ENABLE)
1646 ##############################################################
1647 ## Enable test a compilation time
1648 ##############################################################
1650 COMPILATION_TESTS=no
1651 if test "$enable_compilation_tests" != no -a "$enable_compilation_tests" != ""; then
1652 COMPILATION_TESTS=yes
1655 if test COMPILATION_TESTS=yes -a "$JUNIT4" == ""; then
1656 AC_MSG_WARN([--enable-compilation-tests deactivated: Could not find Junit4"])
1657 COMPILATION_TESTS=no
1660 AM_CONDITIONAL(COMPILATION_TESTS, test "$COMPILATION_TESTS" != "no")
1662 ##############################################################
1663 ## demo_tools module
1664 ##############################################################
1666 DEMOTOOLS_ENABLE=yes
1668 if test "$GUI_ENABLE" = no; then
1672 AC_SUBST(DEMOTOOLS_ENABLE)
1674 ##############################################################
1675 ## graphics/renderer/graphic_export module
1676 ##############################################################
1680 if test "$GUI_ENABLE" = no; then
1684 AC_SUBST(GRAPHICS_ENABLE)
1686 #########################
1688 #########################
1692 AC_PROG_LIBTOOL([shared dlopen])
1696 # Avoid to link all the dep from others libraries (*.la included by LIBADD)
1699 # Check to see if building shared libraries
1700 libtool_build_shared_libs=no
1701 if test "$enable_shared" = "yes"; then
1702 libtool_build_shared_libs=yes
1705 # Check to see if building static libraries
1706 libtool_build_static_libs=no
1707 if test "$enable_static" = "yes"; then
1708 libtool_build_static_libs=yes
1711 # AM_CONDITIONAL(ENABLE_STATIC, test "$libtool_build_static_libs" = yes)
1712 # Fake to disable the static build
1713 AM_CONDITIONAL(ENABLE_STATIC, test "$libtool_build_static_libs" = xxxx)
1723 AC_PATH_PROG(SPLINT, splint, no)
1726 ##### Detect ccache and use it by default if available
1729 AC_ARG_ENABLE(ccache,
1730 AC_HELP_STRING([--disable-ccache],[Disable the use of ccache])
1732 AC_PATH_PROG(CCACHE, ccache)
1733 if test x"$CCACHE" != x -a "$enable_ccache" != no; then
1738 #######################
1739 ###### Creation of the header file (machine.h)
1740 #######################
1742 AC_DEFINE_UNQUOTED([PATH_SEPARATOR], ["$PATH_SEPARATOR"],
1743 [The default path separator character.])
1745 AH_TOP([#ifndef MACHINE_H
1747 /* This file defines global element configuration of the build host */
1752 #ifdef DIR_SEPARATOR
1753 #undef DIR_SEPARATOR
1755 #define DIR_SEPARATOR "/"
1757 #endif /* MACHINE_H */
1760 # Define the standard extension of a dynamic library
1761 AC_DEFINE_UNQUOTED([SHARED_LIB_EXT],["$shrext_cmds"],[Extension of a shared library])
1767 # Stop to compile scilab when a warning is found ...
1768 # This stuff is at the end of the configure.ac because it causes some
1769 # problem with AC_COMPILE (the -Werror is added to the test)
1771 dnl @TODO : -O0 is only to bypass Stack shit... Must be removed.
1772 if test "$enable_stop_on_warning" = yes; then
1773 WARNING_CFLAGS="-Werror=implicit-function-declaration -O0"
1774 WARNING_CXXFLAGS="-Werror=implicit-function-declaration -O0"
1777 # SCI_*FLAGS contains all defaults values detected on configure
1778 SCI_CFLAGS=$(echo $LARGEFILE_CFLAGS $CODECOVERAGE_CFLAGS $DEBUG_CFLAGS $ARCH_CFLAGS $COMPILER_CFLAGS $SCILIBS_CFLAGS $SSE_CFLAGS $BACKTRACE_CFLAGS $WARNING_CFLAGS)
1779 SCI_CXXFLAGS=$(echo $LARGEFILE_CXXFLAGS $CODECOVERAGE_CXXFLAGS $DEBUG_CXXFLAGS $ARCH_CXXFLAGS $COMPILER_CXXFLAGS $SCILIBS_CXXFLAGS $SSE_CXXFLAGS $BACKTRACE_CXXFLAGS $WARNING_CXXFLAGS)
1780 SCI_FFLAGS=$(echo $LARGEFILE_FFLAGS $CODECOVERAGE_FFLAGS $DEBUG_FFLAGS $ARCH_FFLAGS $COMPILER_FFLAGS $SCILIBS_FFLAGS $SSE_FFLAGS $BACKTRACE_FFLAGS $WARNING_FFLAGS)
1781 SCI_LDFLAGS=$(echo $LARGEFILE_LDFLAGS $CODECOVERAGE_LDFLAGS $DEBUG_LDFLAGS $ARCH_LDFLAGS $COMPILER_LDFLAGS $SCILIBS_LDFLAGS $SSE_LDFLAGS $BACKTRACE_LDFLAGS $WARNING_LDFLAGS)
1782 AC_SUBST(SCI_CFLAGS)
1783 AC_SUBST(SCI_CXXFLAGS)
1784 AC_SUBST(SCI_FFLAGS)
1785 AC_SUBST(SCI_LDFLAGS)
1788 libs/MALLOC/Makefile
1789 libs/dynamiclibrary/Makefile
1790 libs/doublylinkedlist/Makefile
1791 libs/hashtable/Makefile
1794 desktop/images/icons/Makefile
1796 modules/helptools/Makefile
1797 modules/data_structures/Makefile
1798 modules/differential_equations/Makefile
1799 modules/optimization/Makefile
1800 modules/elementary_functions/Makefile
1801 modules/special_functions/Makefile
1803 modules/completion/Makefile
1804 modules/history_manager/Makefile
1805 modules/jvm/Makefile
1806 modules/commons/Makefile
1807 modules/sound/Makefile
1808 modules/statistics/Makefile
1809 modules/mexlib/Makefile
1810 modules/sparse/Makefile
1811 modules/linear_algebra/Makefile
1812 modules/polynomials/Makefile
1813 modules/symbolic/Makefile
1814 modules/signal_processing/Makefile
1815 modules/arnoldi/Makefile
1816 modules/interpolation/Makefile
1817 modules/intersci/Makefile
1818 modules/localization/Makefile
1819 modules/cacsd/Makefile
1820 modules/boolean/Makefile
1821 modules/integer/Makefile
1822 modules/double/Makefile
1823 modules/fileio/Makefile
1824 modules/spreadsheet/Makefile
1825 modules/string/Makefile
1826 modules/time/Makefile
1827 modules/graphics/Makefile
1828 modules/graphic_export/Makefile
1829 modules/graphic_objects/Makefile
1830 modules/renderer/Makefile
1831 modules/action_binding/Makefile
1832 modules/gui/Makefile
1833 modules/randlib/Makefile
1834 modules/tclsci/Makefile
1835 modules/windows_tools/Makefile
1836 modules/core/Makefile
1837 modules/prebuildjava/Makefile
1838 modules/api_scilab/Makefile
1839 modules/call_scilab/Makefile
1840 modules/types/Makefile
1841 modules/hdf5/Makefile
1842 modules/fftw/Makefile
1843 modules/umfpack/Makefile
1844 modules/scicos/Makefile
1845 modules/scicos_blocks/Makefile
1846 modules/functions/Makefile
1847 modules/dynamic_link/Makefile
1848 modules/overloading/Makefile
1849 modules/javasci/Makefile
1850 modules/m2sci/Makefile
1851 modules/compatibility_functions/Makefile
1852 modules/development_tools/Makefile
1853 modules/output_stream/Makefile
1854 modules/console/Makefile
1855 modules/demo_tools/Makefile
1856 modules/genetic_algorithms/Makefile
1857 modules/simulated_annealing/Makefile
1858 modules/parameters/Makefile
1859 modules/matio/Makefile
1860 modules/atoms/Makefile
1861 modules/xcos/Makefile
1862 modules/scinotes/Makefile
1863 modules/ui_data/Makefile
1864 modules/graph/Makefile
1865 modules/parallel/Makefile
1866 modules/modules_manager/Makefile
1867 modules/history_browser/Makefile
1868 modules/preferences/Makefile
1869 modules/xml/Makefile
1870 modules/external_objects/Makefile
1878 etc/logging.properties
1880 scilab-lib.properties
1881 scilab-lib-doc.properties
1882 modules/helptools/etc/SciDocConf.xml
1883 modules/core/includes/version.h
1886 # Detection of the module for the future version of Scilab 6
1887 # ie we detect module which ends with _yasp
1889 if test "$enable_yasp" = yes; then
1891 modules/development_tools/src/fake/Makefile
1895 # This script is used by Xcos in order to regenerate the function/block list
1896 AC_CONFIG_COMMANDS_POST([chmod +x $SCI_SRCDIR_FULL/modules/scicos_blocks/src/scripts/GenBlocks.sh $SCI_SRCDIR_FULL/modules/dynamic_link/src/scripts/scicompile.sh $SCI_SRCDIR_FULL/modules/dynamic_link/src/scripts/compilerDetection.sh $SCI_SRCDIR_FULL/modules/dynamic_link/src/scripts/configure])
1900 #modules/mpi/Makefile
1901 #for top_builddir in . .. ../.. $ac_auxdir $ac_auxdir/..; do
1902 # test -f $top_builddir/configure && break
1906 #if test "$with_mpi" = yes; then
1907 #AC_CONFIG_FILES([modules/mpi/Makefile])
1911 if test "$IS_64_BITS_CPU" = true -o "$MACOSX" = "1"; then
1912 stack_h_cpp_flags=-DUSE_DYNAMIC_STACK
1917 AC_CONFIG_COMMANDS([modules/core/includes/stack.h],
1918 [if ! $CPP $stack_h_cpp_flags - < $srcdir/modules/core/includes/stack.h.in |\
1919 $GREP -v '^#' > $srcdir/modules/core/includes/stack.h ; then
1920 AC_MSG_ERROR([stack.h generation failed])
1924 stack_h_cpp_flags="$stack_h_cpp_flags"
1929 # To distribution packager, you can uncomment this stuff is you want to
1930 # disable the rpath issue
1931 # However, you will have to set all the LD_LIBRARY_PATH to .libs/ directory
1932 # since scilab is compiling macros and help into the source tree (ie before
1933 # the "make install")
1934 # You should consider using chrpath:
1935 # http://directory.fsf.org/project/chrpath/
1936 # to remove it before the make install
1940 # AC_MSG_RESULT([Fixing libtool for -rpath problems.])
1941 # sed < libtool > libtool-2 \
1942 # 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1943 # mv libtool-2 libtool
1951 echo "Scilab is configured as follows. Please verify that this configuration"
1952 echo "matches your expectations."
1954 echo "Host system type : $host"
1956 echo " Option Value"
1957 echo "-------------------------------------------------------------------------"
1958 echo "Shared libraries....... --enable-shared=$libtool_build_shared_libs"
1959 echo "Static libraries....... --enable-static=$libtool_build_static_libs"
1960 echo "GNU ld................. --with-gnu-ld=$with_gnu_ld"
1961 echo "Enable debug .......... --enable-debug=$enable_debug"
1962 echo "Enable debug C......... --enable-debug-C=$enable_debug_C"
1963 echo "Enable debug C++....... --enable-debug-CXX=$enable_debug_CXX"
1964 echo "Enable debug Java...... --enable-debug-java=$enable_debug_java"
1965 echo "Enable debug Fortran... --enable-debug-fortran=$enable_debug_fortran"
1966 echo "Enable stop on warning. --enable-stop-on-warning=$enable_stop_on_warning"
1969 echo "Compiler Configuration:"
1970 echo " Intel (--with-intelcompilers) .... = $with_intelcompilers"
1971 echo " GNU gcc (--with-gcc) ............. = $with_gcc"
1972 echo " GNU Fortran 95 (--with-gfortran) . = $with_gfortran"
1975 echo " Do not use TCL/TK (--without-tk) ................. = $with_tk"
1976 echo " TCL include (--with-tcl-include) ................. = $USER_TCL_INC_PATH"
1977 echo " TCL library (--with-tcl-library) ................. = $USER_TCL_LIB_PATH"
1978 echo " TK include (--with-tk-include) ................... = $USER_TK_INC_PATH"
1979 echo " TK library (--with-tk-library) ................... = $USER_TK_LIB_PATH"
1980 echo " Install XML Help (--with-install-help-xml) ....... = $with_install_help_xml"
1981 echo " Compilation tests (--enable-compilation-tests) ... = $COMPILATION_TESTS"
1982 echo " Make the package relocatable (--enable-relocatable)= $RELOCATABLE"
1983 echo " Use FFTW (--without-fftw) ........................ = $with_fftw"
1984 echo " Use MATIO (--without-matio) ...................... = $with_matio"
1987 if test "$with_gui" = no; then
1988 echo "Not using Xcos because of the option --without-gui"
1990 if test $XCOS_ENABLE = yes; then
1992 echo "Build modelica compiler (--without-modelica) ....... = $with_modelica"
1994 if test "$with_ocaml" != no -a "$OCAMLC" != no -a "$OCAMLOPT" != no; then
1995 echo "Ocaml Configuration (for Modelica compiler):"
1996 echo " OCAMLC ............. = $OCAMLC"
1997 echo " OCAMLOPT ........... = $OCAMLOPT"
1998 echo " OCAMLDEP ........... = $OCAMLDEP"
2000 echo "Will not build Modelica compiler"
2003 echo "Not using Xcos"
2008 if test "$enable_code_coverage" = yes; then
2009 echo "Code coverage configuration:"
2010 echo " LCOV .............. = $LCOV"
2011 echo " GENHTML ........... = $GENHTML"
2013 echo "Not using code coverage"
2017 if test $OPENMP_ENABLE = yes; then
2018 echo "OpenMP Configuration:"
2019 echo "OpenMP CFLAGS ...... = $OPENMP_CFLAGS"
2020 echo "OpenMP CXXFLAGS .... = $OPENMP_CXXFLAGS"
2021 echo "OpenMP LIBS ........ = $OPENMP_LIBS"
2022 echo "OpenMP FFLAGS ...... = $OPENMP_LDFLAGS"
2024 echo "Not using OpenMP"
2028 if test $FFTW_ENABLE = yes; then
2029 echo "FFTW Configuration:"
2030 echo " FFTW LIBS .......... = $FFTW3_LIB"
2031 echo " FFTW CFLAGS ........ = $FFTW3_CFLAGS"
2033 echo "Not using FFTW"
2037 if test $MATIO_ENABLE = yes; then
2038 echo "MATIO Configuration:"
2039 echo " MATIO LIBS .......... = $MATIO_LIBS"
2040 echo " MATIO CFLAGS ........ = $MATIO_CFLAGS"
2042 echo "Not using MATIO"
2046 if test $UMFPACK_ENABLE = yes; then
2047 echo "UMFPACK Configuration:"
2048 echo " UMFPACK LIBS ....... = $UMFPACK_LIB"
2049 echo " UMFPACK CFLAGS ..... = $UMFPACK_CFLAGS"
2050 if test $SUITESPARSE = yes; then
2051 echo " UMFPACK SUITESPARSE = Yes"
2053 echo " UMFPACK SUITESPARSE = No"
2056 echo "Not using UMFPACK"
2061 echo "BLAS/LAPACK/ATLAS Configuration:"
2062 echo " BLAS LIBS ............. = $BLAS_LIBS"
2063 echo " BLAS TYPE ............. = $BLAS_TYPE"
2064 echo " LAPACK LIBS ........... = $LAPACK_LIBS"
2065 echo " LAPACK TYPE ........... = $LAPACK_TYPE"
2066 echo " ARPACK LIBS ........... = $ARPACK_LIBS"
2069 #if test "$with_mpi" = yes; then
2070 # echo "MPI Configuration:"
2071 # echo " MPI LIBS ........... = $MPILIBS"
2072 # echo " MPI C Compiler ..... = $MPICC"
2073 # echo " MPI C++ Compiler ... = $MPICXX"
2074 # echo " MPI F77 Compiler ... = $MPIF77"
2076 # echo "Not using MPI"
2079 #if test "$with_openmpi" != "no"; then
2080 # echo "OpenMPI Configuration:"
2081 # echo " OpenMPI LIBS ........... = $OPENMPI_LIBS"
2082 # echo " OpenMPI C Compiler ..... = $OPENMPI_CC"
2083 # echo " OpenMPI F77 Compiler ... = $MPIF77"
2085 # echo "Not using MPI"
2089 if test $BUILD_LOCALIZATION_ENABLE != no; then
2090 echo "Gettext/localization configuration:"
2091 echo " xgettext ............... = $XGETTEXT"
2092 echo " msgfmt ................ = $MSGFMT"
2093 echo " msgfmt_opts ............ = $MSGFMT_OPTS"
2094 echo " msgcat ................ = $MSGCAT"
2096 echo "Won't generate localization files"
2100 if test $HELP_ENABLE = yes; then
2101 echo "Documentation building configuration:"
2102 echo " Docbook XSL path ....... = $DOCBOOK_ROOT"
2103 echo " Saxon XSLT ............. = $SAXON"
2104 echo " XML commons external ... = $XML_APIS_EXT"
2106 echo "No documentation generated"
2110 echo "Java Configuration:"
2111 if test ! -z "$JAVAC"; then
2112 echo " JAVA_HOME ........... = $JAVA_HOME"
2113 echo " JAVAC ............... = $JAVAC"
2114 echo " JAVA_CLASSPATH ...... = $JAVA_CLASSPATH"
2115 echo " JAVA_VERSION ........ = $JAVA_VERSION"
2116 echo " JAVAC_FLAGS ......... = $JAVAC_FLAGS"
2117 echo " JAVA_JNI_INCLUDE .... = $JAVA_JNI_INCLUDE"
2118 echo " JAVA_JNI_LIBS ....... = $JAVA_JNI_LIBS"
2119 echo " JAVA_JNI_LIBS_PRELOAD = $JAVA_JNI_LIBS_PRELOAD"
2120 echo " JAVA ................ = $JAVA"
2121 echo " JAVADOC ............. = $JAVADOC"
2122 echo " JAR ................. = $JAR"
2123 echo " ANT ................. = $ANT"
2125 echo " JAVA disabled"
2130 echo "Java dependencies:"
2131 if test ! -z "$JAVAC"; then
2132 echo " Flexdock ............ = $FLEXDOCK"
2133 echo " JOGL 2............... = $JOGL2"
2134 echo " JOGL 2 LIBS (JNI) ... = $JOGL2_LIBS"
2135 echo " Gluegen 2 ........... = $GLUEGEN2_RT"
2136 echo " Gluegen 2 LIBS (JNI) = $GLUEGEN2_RT_LIBS"
2137 echo " Jeuclid (MathML) .... = $JEUCLID_CORE"
2138 echo " Jhall .............. = $JHALL"
2139 echo " Jrosetta (API) ...... = $JROSETTA_API"
2140 echo " Jrosetta (Engine) ... = $JROSETTA_ENGINE"
2141 echo " Commons Logging ..... = $COMMONS_LOGGING"
2142 echo " JGraph X ............ = $JGRAPHX"
2143 echo " SciRenderer ......... = $SCIRENDERER"
2144 echo " JLaTeXMath .......... = $JLATEXMATH"
2148 if test ! -z "$JAVAC"; then
2149 echo "Documentation, graphic export:"
2150 echo " FOP (XML => PDF) .... = $FOP"
2151 echo " JLaTeXMath Fop ...... = $JLATEXMATH_FOP"
2152 echo " Batik (SVG) ......... = $BATIK"
2153 echo " Avalon Framework .... = $AVALON_FRAMEWORK"
2154 echo " Commons I/O ......... = $COMMONS_IO"
2155 echo " XML graphics commons = $XMLGRAPHICS_COMMONS"
2160 echo "Code quality (optional):"
2161 echo " Checkstyle .......... = $CHECKSTYLE"
2162 echo " Commons-beanutils ... = $COMMONS_BEANUTILS"
2163 echo " Antlr ............... = $ANTLR"
2164 echo " Junit4 .............. = $JUNIT4"
2165 echo " Cobertura ........... = $COBERTURA"
2166 echo " splint .............. = $SPLINT"
2169 echo "TCL/TK configuration:"
2170 echo " TK_INC_PATH ........ = $TK_INC_PATH"
2171 echo " TCL_INC_PATH ....... = $TCL_INC_PATH"
2172 echo " TCLTK_LIBS ......... = $TCLTK_LIBS"
2173 echo " TCL_SERIAL_VERSION . = $TCL_SERIAL_VERSION"
2174 echo " TK_SERIAL_VERSION .. = $TK_SERIAL_VERSION"
2177 echo "XML configuration:"
2178 echo " XML_FLAGS .......... = $XML_FLAGS"
2179 echo " XML_LIBS ........... = $XML_LIBS"
2180 echo " XML_VERSION ........ = $XML_VERSION"
2183 if test $HDF5_ENABLE = yes; then
2184 echo "HDF5 configuration:"
2185 echo " HDF5 CFLAGS ......... = $HDF5_CFLAGS"
2186 echo " HDF5 LIBS ........... = $HDF5_LIBS"
2187 echo " HDF5 Java ........... = $JHDF5"
2188 echo " JHDF5 LIBS (JNI) .... = $JHDF5_LIBS"
2190 echo "Not using HDF5"
2194 echo "PCRE configuration:"
2195 echo " PCRE_CFLAGS ........ = $PCRE_CFLAGS"
2196 echo " PCRE_LIBS .......... = $PCRE_LIBS"
2197 echo " PCRE_VERSION ....... = $PCRE_VERSION"
2201 echo "SWIG Configuration:"
2202 if test ! -z "$SWIG_BIN"; then
2203 echo " SWIG_BIN ........... = $SWIG_BIN"
2204 echo " SWIG_JAVA .......... = $SWIG_JAVA"
2206 echo " SWIG generation disabled"
2210 echo "GIWS Configuration:"
2211 if test ! -z "$GIWS_BIN"; then
2212 echo " GIWS_BIN ........... = $GIWS_BIN"
2214 echo " GIWS generation disabled"
2218 echo "Libtool config:"
2219 echo " objext .............. = $objext"
2220 echo " libext (static) ..... = $libext"
2221 echo " shrext_cmds ......... = $shrext_cmds"
2222 echo " exeext .............. = $exeext"
2226 echo "Compilation paths:"
2227 echo " srcdir .............. = $SCI_SRCDIR"
2228 echo " srcdir_full ......... = $SCI_SRCDIR_FULL"
2229 echo " builddir ............ = $SCI_BUILDDIR"
2230 if test "$SCI_SRCDIR_FULL" != "$SCI_BUILDDIR"; then
2231 echo " VPATH build ......... = Activated"
2235 echo "Platform informations:"
2236 echo " host ........... = $host"
2237 echo " host_cpu ....... = $host_cpu"
2238 echo " host_vendor .... = $host_vendor"
2239 echo " host_os ... .... = $host_os"
2240 echo " hostname ....... = $ac_hostname"
2241 echo " CPU 64 bits .... = $IS_64_BITS_CPU"
2242 if test -n "$MAC_DETECTED_ARCH"; then
2243 echo " Mac OS X arch .. = $MAC_DETECTED_ARCH"
2244 echo " Mac OS X version = $macosx_version"
2248 echo "Options used to compile and link:"
2249 echo " prefix ......... = $prefix"
2250 echo " localedir ...... = $localedir"
2251 echo " VERSION ........ = $PACKAGE_VERSION"
2252 echo " CC ............. = $CC"
2253 echo " CFLAGS ......... = $CFLAGS"
2254 echo " SCI_CFLAGS ..... = $SCI_CFLAGS"
2255 echo " DEFS ........... = $DEFS"
2256 echo " LD ............. = $LD"
2257 echo " LDFLAGS ........ = $LDFLAGS"
2258 echo " SCI_LDFLAGS .... = $SCI_LDFLAGS"
2259 echo " LIBS ........... = $LIBS"
2260 echo " CXX ............ = $CXX"
2261 echo " CXXFLAGS ....... = $CXXFLAGS"
2262 echo " SCI_CXXFLAGS ... = $SCI_CXXFLAGS"
2263 echo " F77 ............ = $F77"
2264 echo " FFLAGS ......... = $FFLAGS"
2265 echo " SCI_FFLAGS ..... = $SCI_FFLAGS"
2266 echo " F77_LDFLAGS .... = $F77_LDFLAGS"
2267 echo " TERMCAP_LIB .... = $TERMCAP_LIB"