/scilab-master-1333395999/configure.matio
Shell | 16138 lines | 15338 code | 387 blank | 413 comment | 564 complexity | 1a11ab322c2a256b643c3ec8ab025af6 MD5 | raw file
Possible License(s): LGPL-3.0, BSD-3-Clause
- #! /bin/sh
- # From configure.ac Revision.
- # Guess values for system-dependent variables and create Makefiles.
- # Generated by GNU Autoconf 2.68 for Scilab 5.
- #
- # Report bugs to <http://bugzilla.scilab.org/>.
- #
- #
- # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
- # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
- # Foundation, Inc.
- #
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- ## -------------------- ##
- ## M4sh Initialization. ##
- ## -------------------- ##
- # Be more Bourne compatible
- DUALCASE=1; export DUALCASE # for MKS sh
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
- else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- as_nl='
- '
- export as_nl
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
- # Prefer a ksh shell builtin over an external printf program on Solaris,
- # but without wasting forks for bash or zsh.
- if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
- elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
- else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
- fi
- # The user is always right.
- if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
- fi
- # IFS
- # We need space, tab and new line, in precisely that order. Quoting is
- # there to prevent editors from complaining about space-tab.
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
- # splitting by setting IFS to empty value.)
- IFS=" "" $as_nl"
- # Find who we are. Look in the path if we contain no directory separator.
- as_myself=
- case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
- IFS=$as_save_IFS
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
- fi
- # Unset variables that we do not need and which cause bugs (e.g. in
- # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
- # suppresses any "Segmentation fault" message there. '((' could
- # trigger a bug in pdksh 5.2.14.
- for as_var in BASH_ENV ENV MAIL MAILPATH
- do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
- done
- PS1='$ '
- PS2='> '
- PS4='+ '
- # NLS nuisances.
- LC_ALL=C
- export LC_ALL
- LANGUAGE=C
- export LANGUAGE
- # CDPATH.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
- else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- "
- as_required="as_fn_return () { (exit \$1); }
- as_fn_success () { as_fn_return 0; }
- as_fn_failure () { as_fn_return 1; }
- as_fn_ret_success () { return 0; }
- as_fn_ret_failure () { return 1; }
- exitcode=0
- as_fn_success || { exitcode=1; echo as_fn_success failed.; }
- as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
- as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
- as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
- if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
- else
- exitcode=1; echo positional parameters were not saved.
- fi
- test x\$exitcode = x0 || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
- test \$(( 1 + 1 )) = 2 || exit 1
- test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
- ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
- ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
- ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
- PATH=/empty FPATH=/empty; export PATH FPATH
- test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
- || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
- if (eval "$as_required") 2>/dev/null; then :
- as_have_required=yes
- else
- as_have_required=no
- fi
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_found=false
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- as_found=:
- case $as_dir in #(
- /*)
- for as_base in sh bash ksh sh5; do
- # Try only shells that exist, to save several forks.
- as_shell=$as_dir/$as_base
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
- CONFIG_SHELL=$as_shell as_have_required=yes
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
- break 2
- fi
- fi
- done;;
- esac
- as_found=false
- done
- $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
- CONFIG_SHELL=$SHELL as_have_required=yes
- fi; }
- IFS=$as_save_IFS
- if test "x$CONFIG_SHELL" != x; then :
- # We cannot yet assume a decent shell, so we have to provide a
- # neutralization value for shells without unset; and this also
- # works around shells that cannot unset nonexistent variables.
- # Preserve -v and -x to the replacement shell.
- BASH_ENV=/dev/null
- ENV=/dev/null
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
- export CONFIG_SHELL
- case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
- esac
- exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
- fi
- if test x$as_have_required = xno; then :
- $as_echo "$0: This script requires a shell more modern than all"
- $as_echo "$0: the shells that I found on your system."
- if test x${ZSH_VERSION+set} = xset ; then
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
- else
- $as_echo "$0: Please tell bug-autoconf@gnu.org and
- $0: http://bugzilla.scilab.org/ about your system,
- $0: including any error possibly output before this
- $0: message. Then install a modern shell, or manually run
- $0: the script under such a shell if you do have one."
- fi
- exit 1
- fi
- fi
- fi
- SHELL=${CONFIG_SHELL-/bin/sh}
- export SHELL
- # Unset more variables known to interfere with behavior of common tools.
- CLICOLOR_FORCE= GREP_OPTIONS=
- unset CLICOLOR_FORCE GREP_OPTIONS
- ## --------------------- ##
- ## M4sh Shell Functions. ##
- ## --------------------- ##
- # as_fn_unset VAR
- # ---------------
- # Portably unset VAR.
- as_fn_unset ()
- {
- { eval $1=; unset $1;}
- }
- as_unset=as_fn_unset
- # as_fn_set_status STATUS
- # -----------------------
- # Set $? to STATUS, without forking.
- as_fn_set_status ()
- {
- return $1
- } # as_fn_set_status
- # as_fn_exit STATUS
- # -----------------
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
- as_fn_exit ()
- {
- set +e
- as_fn_set_status $1
- exit $1
- } # as_fn_exit
- # as_fn_mkdir_p
- # -------------
- # Create "$as_dir" as a directory, including parents if necessary.
- as_fn_mkdir_p ()
- {
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
- } # as_fn_mkdir_p
- # as_fn_append VAR VALUE
- # ----------------------
- # Append the text in VALUE to the end of the definition contained in VAR. Take
- # advantage of any shell optimizations that allow amortized linear growth over
- # repeated appends, instead of the typical quadratic growth present in naive
- # implementations.
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
- else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
- fi # as_fn_append
- # as_fn_arith ARG...
- # ------------------
- # Perform arithmetic evaluation on the ARGs, and store the result in the
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
- # must be portable across $(()) and expr.
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
- else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
- fi # as_fn_arith
- # as_fn_error STATUS ERROR [LINENO LOG_FD]
- # ----------------------------------------
- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
- # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
- # script with STATUS, using 1 if that was 0.
- as_fn_error ()
- {
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
- } # as_fn_error
- if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
- else
- as_expr=false
- fi
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
- else
- as_basename=false
- fi
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
- else
- as_dirname=false
- fi
- as_me=`$as_basename -- "$0" ||
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- # Avoid depending upon Character Ranges.
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
- as_cr_digits='0123456789'
- as_cr_alnum=$as_cr_Letters$as_cr_digits
- as_lineno_1=$LINENO as_lineno_1a=$LINENO
- as_lineno_2=$LINENO as_lineno_2a=$LINENO
- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
- t loop
- s/-\n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
- }
- ECHO_C= ECHO_N= ECHO_T=
- case `echo -n x` in #(((((
- -n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
- *)
- ECHO_N='-n';;
- esac
- rm -f conf$$ conf$$.exe conf$$.file
- if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
- else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
- fi
- if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -p'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -p'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -p'
- fi
- else
- as_ln_s='cp -p'
- fi
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
- rmdir conf$$.dir 2>/dev/null
- if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
- else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
- fi
- if test -x / >/dev/null 2>&1; then
- as_test_x='test -x'
- else
- if ls -dL / >/dev/null 2>&1; then
- as_ls_L_option=L
- else
- as_ls_L_option=
- fi
- as_test_x='
- eval sh -c '\''
- if test -d "$1"; then
- test -d "$1/.";
- else
- case $1 in #(
- -*)set "./$1";;
- esac;
- case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
- ???[sx]*):;;*)false;;esac;fi
- '\'' sh
- '
- fi
- as_executable_p=$as_test_x
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
- # Sed expression to map a string onto a valid variable name.
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
- SHELL=${CONFIG_SHELL-/bin/sh}
- test -n "$DJDIR" || exec 7<&0 </dev/null
- exec 6>&1
- # Name of the host.
- # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
- # so uname gets run too.
- ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
- #
- # Initializations.
- #
- ac_default_prefix=/usr/local
- ac_clean_files=
- ac_config_libobj_dir=.
- LIBOBJS=
- cross_compiling=no
- subdirs=
- MFLAGS=
- MAKEFLAGS=
- # Identity of this package.
- PACKAGE_NAME='Scilab'
- PACKAGE_TARNAME='scilab'
- PACKAGE_VERSION='5'
- PACKAGE_STRING='Scilab 5'
- PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
- PACKAGE_URL=''
- # Factoring default headers for most tests.
- ac_includes_default="\
- #include <stdio.h>
- #ifdef HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- #ifdef HAVE_SYS_STAT_H
- # include <sys/stat.h>
- #endif
- #ifdef STDC_HEADERS
- # include <stdlib.h>
- # include <stddef.h>
- #else
- # ifdef HAVE_STDLIB_H
- # include <stdlib.h>
- # endif
- #endif
- #ifdef HAVE_STRING_H
- # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
- # include <memory.h>
- # endif
- # include <string.h>
- #endif
- #ifdef HAVE_STRINGS_H
- # include <strings.h>
- #endif
- #ifdef HAVE_INTTYPES_H
- # include <inttypes.h>
- #endif
- #ifdef HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif"
- gt_needs=
- ac_subst_vars='am__EXEEXT_FALSE
- am__EXEEXT_TRUE
- LTLIBOBJS
- CCACHE
- SPLINT
- ENABLE_STATIC_FALSE
- ENABLE_STATIC_TRUE
- CXXCPP
- OTOOL64
- OTOOL
- LIPO
- NMEDIT
- DSYMUTIL
- RANLIB
- AR
- OBJDUMP
- ac_ct_DUMPBIN
- DUMPBIN
- LD
- FGREP
- SED
- LIBTOOL
- GRAPHICS_ENABLE
- DEMOTOOLS_ENABLE
- COMPILATION_TESTS_FALSE
- COMPILATION_TESTS_TRUE
- JAVASCI_ENABLE
- INSTALL_HELP_XML_FALSE
- INSTALL_HELP_XML_TRUE
- BUILD_HELP_FALSE
- BUILD_HELP_TRUE
- HELP_ENABLE
- DOCBOOK_ROOT
- JLATEXMATH_FOP
- SAXON
- MATIO_FALSE
- MATIO_TRUE
- MATIO_ENABLE
- MATIO_LIBS
- MATIO_CFLAGS
- TCLTK_FALSE
- TCLTK_TRUE
- WITH_TKSCI
- TK_INC_PATH
- TCL_INC_PATH
- TCLTK_LIBS
- X_EXTRA_LIBS
- X_LIBS
- X_PRE_LIBS
- X_CFLAGS
- XMKMF
- PCRE_VERSION
- PCRE_LIBS
- PCRE_CFLAGS
- PCRE_CONFIG
- UMFPACK_FALSE
- UMFPACK_TRUE
- UMFPACK_ENABLE
- UMFPACK_LIB
- ARPACK_NG_FALSE
- ARPACK_NG_TRUE
- ARPACK_LIBS
- LAPACK_LIBS
- BLAS_LIBS
- FLIBS
- GENERATE_LOCALIZATION_FILES_FALSE
- GENERATE_LOCALIZATION_FILES_TRUE
- MSGCAT
- ALL_LINGUAS_DOC
- ALL_LINGUAS
- XML_VERSION
- XML_LIBS
- XML_FLAGS
- XML_CONFIG
- OPENMP_FALSE
- OPENMP_TRUE
- OPENMP_LIBS
- OPENMP_CXXFLAGS
- OPENMP_CFLAGS
- OPENMP_ENABLE
- FFTW_FALSE
- FFTW_TRUE
- FFTW_ENABLE
- FFTW3_LIB
- POSUB
- LTLIBINTL
- LIBINTL
- INTLLIBS
- LTLIBICONV
- LIBICONV
- INTL_MACOSX_LIBS
- XGETTEXT_EXTRA_OPTIONS
- MSGMERGE
- XGETTEXT_015
- XGETTEXT
- GMSGFMT_015
- MSGFMT_015
- GMSGFMT
- MSGFMT
- GETTEXT_MACRO_VERSION
- USE_NLS
- POW_LIB
- LIBM
- GUI_ENABLE
- GIWS_FALSE
- GIWS_TRUE
- SWIG_FALSE
- SWIG_TRUE
- JAVASCI_FALSE
- JAVASCI_TRUE
- GUI_FALSE
- GUI_TRUE
- NEED_JAVA_FALSE
- NEED_JAVA_TRUE
- JAVA_ENABLE
- GIWS_BIN
- PYTHON
- SWIG_JAVA
- SWIG_RUNTIME_LIBS_DIR
- SWIG_BIN
- JAVAC_DEBUG
- JAVA_HOME
- JAVA_JNI_LIBS
- JAVA_JNI_INCLUDE
- JUNIT
- BSH
- QDOX
- JCOMMANDER
- TESTNG
- ANTLR
- COMMONS_BEANUTILS
- CHECKSTYLE
- JLATEXMATH
- COMMONS_LOGGING
- XML_APIS_EXT
- AVALON_FRAMEWORK
- XMLGRAPHICS_COMMONS
- COMMONS_IO
- BATIK
- FOP
- JEUCLID_CORE
- JROSETTA_ENGINE
- JROSETTA_API
- JHALL
- GLUEGEN_RT
- JOGL
- SKINLF
- LOOKS
- FLEXDOCK
- JHDF5
- JGRAPHX
- ANT
- JDB
- JAVADOC
- JAR
- JAVAH
- JAVA_G
- JAVA
- JAVAC
- XCOS_FALSE
- XCOS_TRUE
- OCAML_FALSE
- OCAML_TRUE
- XCOS_ENABLE
- WITH_OCAML
- OCAMLLEX
- OCAMLYACC
- OCAMLDEP
- OCAMLOPT
- OCAMLC
- RT_LIB
- HDF5_FALSE
- HDF5_TRUE
- HDF5_ENABLE
- HDF5_CFLAGS
- HDF5_LIBS
- NM
- USE_DYNAMIC_STACK_FALSE
- USE_DYNAMIC_STACK_TRUE
- IS_64_BITS_CPU_FALSE
- IS_64_BITS_CPU_TRUE
- CODE_COVERAGE_FALSE
- CODE_COVERAGE_TRUE
- GENHTML
- LCOV
- IS_MIPS_SGI_IRIX_FALSE
- IS_MIPS_SGI_IRIX_TRUE
- IS_SOLARIS_FALSE
- IS_SOLARIS_TRUE
- IS_SPARC_FALSE
- IS_SPARC_TRUE
- IS_HPUX_FALSE
- IS_HPUX_TRUE
- IS_MACOSX_FALSE
- IS_MACOSX_TRUE
- LOGGING_LEVEL
- cxx_present
- am__fastdepCXX_FALSE
- am__fastdepCXX_TRUE
- CXXDEPMODE
- ac_ct_CXX
- CXXFLAGS
- CXX
- ac_ct_F77
- FFLAGS
- F77
- PKG_CONFIG
- am__fastdepCC_FALSE
- am__fastdepCC_TRUE
- CCDEPMODE
- am__nodep
- AMDEPBACKSLASH
- AMDEP_FALSE
- AMDEP_TRUE
- am__quote
- am__include
- DEPDIR
- am__untar
- am__tar
- AMTAR
- am__leading_dot
- SET_MAKE
- AWK
- mkdir_p
- MKDIR_P
- MAKEINFO
- AUTOHEADER
- AUTOMAKE
- AUTOCONF
- ACLOCAL
- VERSION
- PACKAGE
- CYGPATH_W
- am__isrc
- MAINT
- MAINTAINER_MODE_FALSE
- MAINTAINER_MODE_TRUE
- LIBOBJS
- RELOCATABLE_VIA_LD_FALSE
- RELOCATABLE_VIA_LD_TRUE
- SET_RELOCATABLE
- EGREP
- GREP
- CPP
- RELOCATABLE
- host_os
- host_vendor
- host_cpu
- host
- build_os
- build_vendor
- build_cpu
- build
- INSTALL_DATA
- INSTALL_SCRIPT
- INSTALL_PROGRAM
- OBJEXT
- EXEEXT
- ac_ct_CC
- CPPFLAGS
- LDFLAGS
- CFLAGS
- CC
- LN_S
- INSTALL_STRIP_PROGRAM
- STRIP
- install_sh
- SCILAB_BINARY_VERSION
- SCILAB_LIBRARY_VERSION
- SCILAB_VERSION_MAINTENANCE
- SCILAB_VERSION_MINOR
- SCILAB_VERSION_MAJOR
- target_alias
- host_alias
- build_alias
- LIBS
- ECHO_T
- ECHO_N
- ECHO_C
- DEFS
- mandir
- localedir
- libdir
- psdir
- pdfdir
- dvidir
- htmldir
- infodir
- docdir
- oldincludedir
- includedir
- localstatedir
- sharedstatedir
- sysconfdir
- datadir
- datarootdir
- libexecdir
- sbindir
- bindir
- program_transform_name
- prefix
- exec_prefix
- PACKAGE_URL
- PACKAGE_BUGREPORT
- PACKAGE_STRING
- PACKAGE_VERSION
- PACKAGE_TARNAME
- PACKAGE_NAME
- PATH_SEPARATOR
- SHELL'
- ac_subst_files=''
- ac_user_opts='
- enable_option_checking
- enable_largefile
- with_gnu_ld
- enable_relocatable
- enable_rpath
- enable_maintainer_mode
- enable_dependency_tracking
- enable_debug
- enable_debug_C
- enable_debug_CXX
- enable_debug_java
- enable_debug_fortran
- enable_debug_linker
- enable_code_coverage
- enable_stop_on_warning
- with_gcc
- with_gfortran
- with_intelcompilers
- with_tk
- with_javasci
- enable_compilation_tests
- with_gui
- enable_build_swig
- enable_build_giws
- with_fink_prefix
- with_hdf5
- with_hdf5_include
- with_hdf5_library
- with_xcos
- with_modelica
- with_jdk
- with_ant
- enable_nls
- with_libiconv_prefix
- with_libintl_prefix
- with_fftw
- with_fftw_include
- with_fftw_library
- with_openmp
- with_libxml2
- enable_build_localization
- with_blas_library
- with_lapack_library
- with_arpack_ng
- with_arpack_library
- with_umfpack
- with_umfpack_library
- with_umfpack_include
- with_pcre
- with_tcl_library
- with_tcl_include
- with_tk_library
- with_tk_include
- with_x
- with_matio
- with_matio_include
- with_matio_library
- enable_build_help
- with_docbook
- with_install_help_xml
- enable_static
- enable_shared
- with_pic
- enable_fast_install
- enable_libtool_lock
- '
- ac_precious_vars='build_alias
- host_alias
- target_alias
- CC
- CFLAGS
- LDFLAGS
- LIBS
- CPPFLAGS
- CPP
- PKG_CONFIG
- F77
- FFLAGS
- CXX
- CXXFLAGS
- CCC
- PCRE_CFLAGS
- PCRE_LIBS
- XMKMF
- MATIO_CFLAGS
- MATIO_LIBS
- CXXCPP'
- # Initialize some variables set by options.
- ac_init_help=
- ac_init_version=false
- ac_unrecognized_opts=
- ac_unrecognized_sep=
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- cache_file=/dev/null
- exec_prefix=NONE
- no_create=
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- verbose=
- x_includes=NONE
- x_libraries=NONE
- # Installation directory options.
- # These are left unexpanded so users can "make install exec_prefix=/foo"
- # and all the variables that are supposed to be based on exec_prefix
- # by default will actually change.
- # Use braces instead of parens because sh, perl, etc. also accept them.
- # (The list follows the same order as the GNU Coding Standards.)
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datarootdir='${prefix}/share'
- datadir='${datarootdir}'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
- infodir='${datarootdir}/info'
- htmldir='${docdir}'
- dvidir='${docdir}'
- pdfdir='${docdir}'
- psdir='${docdir}'
- libdir='${exec_prefix}/lib'
- localedir='${datarootdir}/locale'
- mandir='${datarootdir}/man'
- ac_prev=
- ac_dashdash=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
- case $ac_option in
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *=) ac_optarg= ;;
- *) ac_optarg=yes ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
- --config-cache | -C)
- cache_file=config.cache ;;
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
- ac_prev=pdfdir ;;
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
- pdfdir=$ac_optarg ;;
- -psdir | --psdir | --psdi | --psd | --ps)
- ac_prev=psdir ;;
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
- psdir=$ac_optarg ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
- -with-* | --with-*)
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=\$ac_optarg ;;
- -without-* | --without-*)
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=no ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
- Try \`$0 --help' for more information"
- ;;
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- case $ac_envvar in #(
- '' | [0-9]* | *[!_$as_cr_alnum]* )
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
- esac
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
- *)
- # FIXME: should be removed in autoconf 3.0.
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- as_fn_error $? "missing argument to $ac_option"
- fi
- if test -n "$ac_unrecognized_opts"; then
- case $enable_option_checking in
- no) ;;
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
- esac
- fi
- # Check all directory arguments for consistency.
- for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
- datadir sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir
- do
- eval ac_val=\$$ac_var
- # Remove trailing slashes.
- case $ac_val in
- */ )
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
- eval $ac_var=\$ac_val;;
- esac
- # Be sure to have absolute directory names.
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
- done
- # There might be people who depend on the old broken behavior: `$host'
- # used to hold the argument of --host etc.
- # FIXME: To remove some day.
- build=$build_alias
- host=$host_alias
- target=$target_alias
- # FIXME: To remove some day.
- if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
- If a cross compiler is detected then cross compile mode will be used" >&2
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
- fi
- ac_tool_prefix=
- test -n "$host_alias" && ac_tool_prefix=$host_alias-
- test "$silent" = yes && exec 6>/dev/null
- ac_pwd=`pwd` && test -n "$ac_pwd" &&
- ac_ls_di=`ls -di .` &&
- ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
- as_fn_error $? "working directory cannot be determined"
- test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- as_fn_error $? "pwd does not report name of working directory"
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then the parent directory.
- ac_confdir=`$as_dirname -- "$as_myself" ||
- $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_myself" : 'X\(//\)[^/]' \| \
- X"$as_myself" : 'X\(//\)$' \| \
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_myself" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r "$srcdir/$ac_unique_file"; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r "$srcdir/$ac_unique_file"; then
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
- fi
- ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
- ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
- pwd)`
- # When building in place, set srcdir=.
- if test "$ac_abs_confdir" = "$ac_pwd"; then
- srcdir=.
- fi
- # Remove unnecessary trailing slashes from srcdir.
- # Double slashes in file names in object file debugging info
- # mess up M-x gdb in Emacs.
- case $srcdir in
- */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
- esac
- for ac_var in $ac_precious_vars; do
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_env_${ac_var}_value=\$${ac_var}
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
- done
- #
- # Report the --help message.
- #
- if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
- \`configure' configures Scilab 5 to adapt to many kinds of systems.
- Usage: $0 [OPTION]... [VAR=VALUE]...
- To assign environment variables (e.g., CC, CFLAGS...), specify them as
- VAR=VALUE. See below for descriptions of some of the useful variables.
- Defaults for the options are specified in brackets.
- Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking ...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
- Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
- By default, \`make install' will install all the files in
- \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
- an installation prefix other than \`$ac_default_prefix' using \`--prefix',
- for instance \`--prefix=\$HOME'.
- For better control, use the options below.
- Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
- --htmldir=DIR html documentation [DOCDIR]
- --dvidir=DIR dvi documentation [DOCDIR]
- --pdfdir=DIR pdf documentation [DOCDIR]
- --psdir=DIR ps documentation [DOCDIR]
- _ACEOF
- cat <<\_ACEOF
- Program names:
- --program-prefix=PREFIX prepend PREFIX to installed program names
- --program-suffix=SUFFIX append SUFFIX to installed program names
- --program-transform-name=PROGRAM run sed PROGRAM on installed program names
- X features:
- --x-includes=DIR X include files are in DIR
- --x-libraries=DIR X library files are in DIR
- System types:
- --build=BUILD configure for building on BUILD [guessed]
- --host=HOST cross-compile to build programs to run on HOST [BUILD]
- _ACEOF
- fi
- if test -n "$ac_init_help"; then
- case $ac_init_help in
- short | recursive ) echo "Configuration of Scilab 5:";;
- esac
- cat <<\_ACEOF
- Optional Features:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --disable-largefile omit support for large files
- --enable-relocatable install a package that can be moved in the filesystem
- --disable-rpath do not hardcode runtime library paths
- --enable-maintainer-mode enable make rules and dependencies not useful
- (and sometimes confusing) to the casual installer
- --disable-dependency-tracking speeds up one-time build
- --enable-dependency-tracking do not reject slow dependency extractors
- --enable-debug Do not optimize and print warning messages
- (C/C++/Fortran/Java code)
- --enable-debug-C Do not optimize and print warning messages (C code)
- --enable-debug-CXX Do not optimize and print warning messages (C++
- code)
- --enable-debug-java Print warning messages and line numbers (Java code)
- --enable-debug-fortran Do not optimize and print warning messages (Fortran
- code)
- --enable-debug-linker Print warning messages from the linker (ld)
- --enable-code-coverage Enable code coverage
- --enable-stop-on-warning
- Stop the compilation on the first warning found in
- the C/C++ code
- --enable-compilation-tests
- Enable unitary tests and checks at compilation time
- --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
- Java Development Kit (JDK) is mandatory for this
- option)
- --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
- (A Java Development Kit (JDK) is mandatory for this
- option)
- --disable-nls do not use Native Language Support
- --disable-build-localization
- Disable the localization build
- --disable-build-help Disable the help build
- --enable-static[=PKGS] build static libraries [default=no]
- --enable-shared[=PKGS] build shared libraries [default=yes]
- --enable-fast-install[=PKGS]
- optimize for fast installation [default=yes]
- --disable-libtool-lock avoid locking (might break parallel builds)
- Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-gnu-ld assume the C compiler uses GNU ld default=no
- --with-gcc Use gcc C compiler
- --with-gfortran Use gfortran, GNU Fortran 95 compiler
- --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
- compilers (GNU/Linux only)
- --without-tk Disable the interface to Tcl/Tk
- --without-javasci Disable the Java/Scilab interface (javasci)
- --without-gui Disable the Scilab Graphical User Interface (GUI).
- Intended for embedded/clustering/grid Scilab
- --with-fink-prefix Provide a fink prefix. Default: /sw/
- --without-hdf5 Disable the interface to the HDF5 library
- --with-hdf5-include=DIR Set the path to the HDF5 headers
- --with-hdf5-library=DIR Set the path to the HDF5 libraries
- --without-xcos Disable Xcos
- --without-modelica Disable the OCaml module (modelica)
- --with-jdk=DIR use JDK from DIR
- --with-ant=DIR Use ant from DIR
- --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
- --without-libiconv-prefix don't search for libiconv in includedir and libdir
- --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
- --without-libintl-prefix don't search for libintl in includedir and libdir
- --without-fftw Disable the interface to the FFTW 3 library
- --with-fftw-include=DIR Set the path to the FFTW headers
- --with-fftw-library=DIR Set the path to the FFTW libraries
- --without-openmp Disable the usage of OpenMP (parallelization of some
- algoritms)
- --with-libxml2=PREFIX Set the path to your libxml2 installation
- --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
- library
- --with-lapack-library=DIR
- set the path to the LAPACK library
- --without-arpack-ng Disable the interface to ARPACK-NG
- --with-arpack-library=DIR
- set the path to the ARPACK library
- --without-umfpack Disable the interface to the UMFPACK library
- --with-umfpack-library=DIR
- Set the path to the UMFPACK libraries
- --with-umfpack-include=DIR
- Set the path to the UMFPACK headers
- --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
- Expression Library) installation
- --with-tcl-library=DIR Set the path to the TCL library
- --with-tcl-include=DIR Set the path to the TCL headers
- --with-tk-library=DIR Set the path to the TK library
- --with-tk-include=DIR Set the path to the TK headers
- --with-x use the X Window System
- --without-matio Disable the interface to Matio (MAT File I/O
- library)
- --with-matio-include=DIR
- Set the path to the MATIO headers
- --with-matio-library=DIR
- Set the path to the MATIO libraries
- --with-docbook=DIR Set the path to the docbook package
- --with-install-help-xml make install will install XML files
- --with-pic try to use only PIC/non-PIC objects [default=use
- both]
- --with-gnu-ld assume the C compiler uses GNU ld [default=no]
- Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
- you have headers in a nonstandard directory <include dir>
- CPP C preprocessor
- PKG_CONFIG path to pkg-config utility
- F77 Fortran 77 compiler command
- FFLAGS Fortran 77 compiler flags
- CXX C++ compiler command
- CXXFLAGS C++ compiler flags
- PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
- PCRE_LIBS linker flags for PCRE, overriding pkg-config
- XMKMF Path to xmkmf, Makefile generator for X Window System
- MATIO_CFLAGS
- C compiler flags for MATIO, overriding pkg-config
- MATIO_LIBS linker flags for MATIO, overriding pkg-config
- CXXCPP C++ preprocessor
- Use these variables to override the choices made by `configure' or to help
- it to find libraries and programs with nonstandard names/locations.
- Report bugs to <http://bugzilla.scilab.org/>.
- _ACEOF
- ac_status=$?
- fi
- if test "$ac_init_help" = "recursive"; then
- # If there are subdirs, report their specific --help.
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d "$ac_dir" ||
- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
- continue
- ac_builddir=.
- case "$ac_dir" in
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
- esac
- ac_abs_top_builddir=$ac_pwd
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
- # for backward compatibility:
- ac_top_builddir=$ac_top_build_prefix
- case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
- esac
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
- cd "$ac_dir" || { ac_status=$?; continue; }
- # Check for guested configure.
- if test -f "$ac_srcdir/configure.gnu"; then
- echo &&
- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
- elif test -f "$ac_srcdir/configure"; then
- echo &&
- $SHELL "$ac_srcdir/configure" --help=recursive
- else
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
- fi || ac_status=$?
- cd "$ac_pwd" || { ac_status=$?; break; }
- done
- fi
- test -n "$ac_init_help" && exit $ac_status
- if $ac_init_version; then
- cat <<\_ACEOF
- Scilab configure 5
- generated by GNU Autoconf 2.68
- Copyright (C) 2010 Free Software Foundation, Inc.
- This configure script is free software; the Free Software Foundation
- gives unlimited permission to copy, distribute and modify it.
- _ACEOF
- exit
- fi
- ## ------------------------ ##
- ## Autoconf initialization. ##
- ## ------------------------ ##
- # ac_fn_c_try_compile LINENO
- # --------------------------
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_compile
- # ac_fn_c_try_cpp LINENO
- # ----------------------
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_cpp ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_cpp
- # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
- # -------------------------------------------------------
- # Tests whether HEADER exists, giving a warning if it cannot be compiled using
- # the include files in INCLUDES and setting the cache variable VAR
- # accordingly.
- ac_fn_c_check_header_mongrel ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if eval \${$3+:} false; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
- $as_echo_n "checking $2 usability... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- #include <$2>
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_header_compiler=yes
- else
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
- $as_echo_n "checking $2 presence... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$2>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- ac_header_preproc=yes
- else
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
- yes:no: )
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
- ;;
- no:yes:* )
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
- $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
- ( $as_echo "## ------------------------------------------ ##
- ## Report this to http://bugzilla.scilab.org/ ##
- ## ------------------------------------------ ##"
- ) | sed "s/^/$as_me: WARNING: /" >&2
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- eval "$3=\$ac_header_compiler"
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_header_mongrel
- # ac_fn_c_try_run LINENO
- # ----------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
- # that executables *can* be run.
- ac_fn_c_try_run ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=$ac_status
- fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_run
- # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
- # -------------------------------------------------------
- # Tests whether HEADER exists and can be compiled using the include files in
- # INCLUDES, setting the cache variable VAR accordingly.
- ac_fn_c_check_header_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- #include <$2>
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$3=yes"
- else
- eval "$3=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_header_compile
- # ac_fn_c_try_link LINENO
- # -----------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_link ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_link
- # ac_fn_c_check_func LINENO FUNC VAR
- # ----------------------------------
- # Tests whether FUNC exists, setting the cache variable VAR accordingly
- ac_fn_c_check_func ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $2 innocuous_$2
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $2 (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $2
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $2 ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined __stub_$2 || defined __stub___$2
- choke me
- #endif
- int
- main ()
- {
- return $2 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$3=yes"
- else
- eval "$3=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_func
- # ac_fn_f77_try_compile LINENO
- # ----------------------------
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
- ac_fn_f77_try_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_f77_try_compile
- # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
- # --------------------------------------------
- # Tries to find the compile-time value of EXPR in a program that includes
- # INCLUDES, setting VAR accordingly. Returns whether the value could be
- # computed
- ac_fn_c_compute_int ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) >= 0)];
- test_array [0] = 0
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=0 ac_mid=0
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid; break
- else
- as_fn_arith $ac_mid + 1 && ac_lo=$as_val
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) < 0)];
- test_array [0] = 0
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=-1 ac_mid=-1
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) >= $ac_mid)];
- test_array [0] = 0
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=$ac_mid; break
- else
- as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- else
- ac_lo= ac_hi=
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- # Binary search between lo and hi bounds.
- while test "x$ac_lo" != "x$ac_hi"; do
- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid
- else
- as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- case $ac_lo in #((
- ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
- '') ac_retval=1 ;;
- esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- static long int longval () { return $2; }
- static unsigned long int ulongval () { return $2; }
- #include <stdio.h>
- #include <stdlib.h>
- int
- main ()
- {
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- return 1;
- if (($2) < 0)
- {
- long int i = longval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%ld", i);
- }
- else
- {
- unsigned long int i = ulongval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%lu", i);
- }
- /* Do not output a trailing newline, as this causes \r\n confusion
- on some platforms. */
- return ferror (f) || fclose (f) != 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- echo >>conftest.val; read $3 <conftest.val; ac_retval=0
- else
- ac_retval=1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- rm -f conftest.val
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_compute_int
- # ac_fn_cxx_try_compile LINENO
- # ----------------------------
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_try_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_compile
- # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
- # ----------------------------------------------------
- # Tries to find if the field MEMBER exists in type AGGR, after including
- # INCLUDES, setting cache variable VAR accordingly.
- ac_fn_c_check_member ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
- $as_echo_n "checking for $2.$3... " >&6; }
- if eval \${$4+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $5
- int
- main ()
- {
- static $2 ac_aggr;
- if (ac_aggr.$3)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $5
- int
- main ()
- {
- static $2 ac_aggr;
- if (sizeof ac_aggr.$3)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
- else
- eval "$4=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$4
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_member
- # ac_fn_cxx_try_run LINENO
- # ------------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
- # that executables *can* be run.
- ac_fn_cxx_try_run ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=$ac_status
- fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_run
- # ac_fn_cxx_try_cpp LINENO
- # ------------------------
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_try_cpp ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_cpp
- # ac_fn_cxx_try_link LINENO
- # -------------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_try_link ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_link
- # ac_fn_f77_try_link LINENO
- # -------------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_f77_try_link ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_f77_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- $as_test_x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_f77_try_link
- cat >config.log <<_ACEOF
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- It was created by Scilab $as_me 5, which was
- generated by GNU Autoconf 2.68. Invocation command line was
- $ $0 $@
- _ACEOF
- exec 5>>config.log
- {
- cat <<_ASUNAME
- ## --------- ##
- ## Platform. ##
- ## --------- ##
- hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
- uname -m = `(uname -m) 2>/dev/null || echo unknown`
- uname -r = `(uname -r) 2>/dev/null || echo unknown`
- uname -s = `(uname -s) 2>/dev/null || echo unknown`
- uname -v = `(uname -v) 2>/dev/null || echo unknown`
- /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
- /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
- /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
- /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
- /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
- /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
- /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
- /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
- /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
- _ASUNAME
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- $as_echo "PATH: $as_dir"
- done
- IFS=$as_save_IFS
- } >&5
- cat >&5 <<_ACEOF
- ## ----------- ##
- ## Core tests. ##
- ## ----------- ##
- _ACEOF
- # Keep a trace of the command line.
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Strip out --silent because we don't want to record it for future runs.
- # Also quote any args containing shell meta-characters.
- # Make two passes to allow for proper duplicate-argument suppression.
- ac_configure_args=
- ac_configure_args0=
- ac_configure_args1=
- ac_must_keep_next=false
- for ac_pass in 1 2
- do
- for ac_arg
- do
- case $ac_arg in
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- continue ;;
- *\'*)
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
- 2)
- as_fn_append ac_configure_args1 " '$ac_arg'"
- if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
- else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
- fi
- as_fn_append ac_configure_args " '$ac_arg'"
- ;;
- esac
- done
- done
- { ac_configure_args0=; unset ac_configure_args0;}
- { ac_configure_args1=; unset ac_configure_args1;}
- # When interrupted or exit'd, cleanup temporary files, and complete
- # config.log. We remove comments because anyway the quotes in there
- # would cause problems or look ugly.
- # WARNING: Use '\'' to represent an apostrophe within the trap.
- # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
- trap 'exit_status=$?
- # Save into config.log some information that might help in debugging.
- {
- echo
- $as_echo "## ---------------- ##
- ## Cache variables. ##
- ## ---------------- ##"
- echo
- # The following way of writing the cache mishandles newlines in values,
- (
- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- sed -n \
- "s/'\''/'\''\\\\'\'''\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
- ;; #(
- *)
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
- )
- echo
- $as_echo "## ----------------- ##
- ## Output variables. ##
- ## ----------------- ##"
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- if test -n "$ac_subst_files"; then
- $as_echo "## ------------------- ##
- ## File substitutions. ##
- ## ------------------- ##"
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- fi
- if test -s confdefs.h; then
- $as_echo "## ----------- ##
- ## confdefs.h. ##
- ## ----------- ##"
- echo
- cat confdefs.h
- echo
- fi
- test "$ac_signal" != 0 &&
- $as_echo "$as_me: caught signal $ac_signal"
- $as_echo "$as_me: exit $exit_status"
- } >&5
- rm -f core *.core core.conftest.* &&
- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
- exit $exit_status
- ' 0
- for ac_signal in 1 2 13 15; do
- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
- done
- ac_signal=0
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -f -r conftest* confdefs.h
- $as_echo "/* confdefs.h */" > confdefs.h
- # Predefined preprocessor variables.
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_NAME "$PACKAGE_NAME"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_VERSION "$PACKAGE_VERSION"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_STRING "$PACKAGE_STRING"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_URL "$PACKAGE_URL"
- _ACEOF
- # Let the site file select an alternate cache file if it wants to.
- # Prefer an explicitly selected file to automatically selected ones.
- ac_site_file1=NONE
- ac_site_file2=NONE
- if test -n "$CONFIG_SITE"; then
- # We do not want a PATH search for config.site.
- case $CONFIG_SITE in #((
- -*) ac_site_file1=./$CONFIG_SITE;;
- */*) ac_site_file1=$CONFIG_SITE;;
- *) ac_site_file1=./$CONFIG_SITE;;
- esac
- elif test "x$prefix" != xNONE; then
- ac_site_file1=$prefix/share/config.site
- ac_site_file2=$prefix/etc/config.site
- else
- ac_site_file1=$ac_default_prefix/share/config.site
- ac_site_file2=$ac_default_prefix/etc/config.site
- fi
- for ac_site_file in "$ac_site_file1" "$ac_site_file2"
- do
- test "x$ac_site_file" = xNONE && continue
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
- $as_echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file" \
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "failed to load site script $ac_site_file
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- done
- if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special files
- # actually), so we avoid doing that. DJGPP emulates it as a regular file.
- if test /dev/null != "$cache_file" && test -f "$cache_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
- $as_echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
- *) . "./$cache_file";;
- esac
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
- $as_echo "$as_me: creating cache $cache_file" >&6;}
- >$cache_file
- fi
- gt_needs="$gt_needs "
- # Check that the precious variables saved in the cache have kept the same
- # value.
- ac_cache_corrupted=false
- for ac_var in $ac_precious_vars; do
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
- eval ac_new_set=\$ac_env_${ac_var}_set
- eval ac_old_val=\$ac_cv_env_${ac_var}_value
- eval ac_new_val=\$ac_env_${ac_var}_value
- case $ac_old_set,$ac_new_set in
- set,)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
- $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
- $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,);;
- *)
- if test "x$ac_old_val" != "x$ac_new_val"; then
- # differences in whitespace do not lead to failure.
- ac_old_val_w=`echo x $ac_old_val`
- ac_new_val_w=`echo x $ac_new_val`
- if test "$ac_old_val_w" != "$ac_new_val_w"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
- $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- ac_cache_corrupted=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
- $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
- eval $ac_var=\$ac_old_val
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
- $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
- $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
- *) ac_arg=$ac_var=$ac_new_val ;;
- esac
- case " $ac_configure_args " in
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
- *) as_fn_append ac_configure_args " '$ac_arg'" ;;
- esac
- fi
- done
- if $ac_cache_corrupted; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
- $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
- fi
- ## -------------------- ##
- ## Main body of script. ##
- ## -------------------- ##
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- SCI_BUILDDIR="`pwd`"
- SCI_SRCDIR="$srcdir"
- SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
- SCILAB_VERSION_MAJOR=5
- SCILAB_VERSION_MINOR=4
- SCILAB_VERSION_MAINTENANCE=0
- SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
- SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
- #shared library versioning
- #GENERIC_LIBRARY_VERSION=1:2:0
- # | | |
- # +------+ | +---+
- # | | |
- # current:revision:age
- # | | |
- # | | +- increment if interfaces have been added
- # | | set to zero if interfaces have been removed
- # or changed
- # | +- increment if source code has changed
- # | set to zero if current is incremented
- # +- increment if interfaces have been added, removed or changed
- # Check if we have a space in the path to the source tree
- SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
- if test "$SPACE_IN_PATH" = "0"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
- $as_echo "$as_me: WARNING: =====================================" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&5
- $as_echo "$as_me: WARNING: Configure thinks that there is a space in the path to the source. This may cause problem with libtool and some other things..." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
- $as_echo "$as_me: WARNING: =====================================" >&2;}
- sleep 180
- fi
- ac_aux_dir=
- for ac_dir in config "$srcdir"/config; do
- if test -f "$ac_dir/install-sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f "$ac_dir/install.sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
- fi
- # These three variables are undocumented and unsupported,
- # and are intended to be withdrawn in a future Autoconf release.
- # They can cause serious problems if a builder's source tree is in a directory
- # whose full name contains unusual characters.
- ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
- ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
- ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
- ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
- # strip executable
- # expand $ac_aux_dir to an absolute path
- am_aux_dir=`cd $ac_aux_dir && pwd`
- if test x"${install_sh}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
- *)
- install_sh="\${SHELL} $am_aux_dir/install-sh"
- esac
- fi
- # Installed binaries are usually stripped using `strip' when the user
- # run `make install-strip'. However `strip' might not be the right
- # tool to use in cross-compilation environments, therefore Automake
- # will honor the `STRIP' environment variable to overrule this program.
- if test "$cross_compiling" != no; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
- set dummy ${ac_tool_prefix}strip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- STRIP=$ac_cv_prog_STRIP
- if test -n "$STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
- $as_echo "$STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
- set dummy strip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_STRIP="strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
- if test -n "$ac_ct_STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
- $as_echo "$ac_ct_STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- STRIP=$ac_ct_STRIP
- fi
- else
- STRIP="$ac_cv_prog_STRIP"
- fi
- fi
- INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
- $as_echo_n "checking whether ln -s works... " >&6; }
- LN_S=$as_ln_s
- if test "$LN_S" = "ln -s"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
- $as_echo "no, using $LN_S" >&6; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}gcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- else
- CC="$ac_cv_prog_CC"
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- ac_prog_rejected=no
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
- fi
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- ac_clean_files_save=$ac_clean_files
- ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
- # Try to create an executable without -o first, disregard a.out.
- # It will help us diagnose broken compilers, and finding out an intuition
- # of exeext.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
- $as_echo_n "checking whether the C compiler works... " >&6; }
- ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
- # The possible output files:
- ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
- ac_rmfiles=
- for ac_file in $ac_files
- do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
- esac
- done
- rm -f $ac_rmfiles
- if { { ac_try="$ac_link_default"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link_default") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
- # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
- # in a Makefile. We should not override ac_cv_exeext if it was cached,
- # so that the user can short-circuit this test for compilers unknown to
- # Autoconf.
- for ac_file in $ac_files ''
- do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
- then :; else
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- fi
- # We set ac_cv_exeext here because the later test for it is not
- # safe: cross compilers may not add the suffix if given an `-o'
- # argument, so we may need to know it at that point already.
- # Even if this section looks crufty: it has the advantage of
- # actually working.
- break;;
- * )
- break;;
- esac
- done
- test "$ac_cv_exeext" = no && ac_cv_exeext=
- else
- ac_file=''
- fi
- if test -z "$ac_file"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "C compiler cannot create executables
- See \`config.log' for more details" "$LINENO" 5; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
- $as_echo_n "checking for C compiler default output file name... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
- $as_echo "$ac_file" >&6; }
- ac_exeext=$ac_cv_exeext
- rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
- ac_clean_files=$ac_clean_files_save
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
- $as_echo_n "checking for suffix of executables... " >&6; }
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
- # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
- # work properly (i.e., refer to `conftest.exe'), while it won't with
- # `rm'.
- for ac_file in conftest.exe conftest conftest.*; do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- break;;
- * ) break;;
- esac
- done
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot compute suffix of executables: cannot compile and link
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- rm -f conftest conftest$ac_cv_exeext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
- $as_echo "$ac_cv_exeext" >&6; }
- rm -f conftest.$ac_ext
- EXEEXT=$ac_cv_exeext
- ac_exeext=$EXEEXT
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int
- main ()
- {
- FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
- ;
- return 0;
- }
- _ACEOF
- ac_clean_files="$ac_clean_files conftest.out"
- # Check that the compiler produces executables we can run. If not, either
- # the compiler is broken, or we cross compile.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
- $as_echo_n "checking whether we are cross compiling... " >&6; }
- if test "$cross_compiling" != yes; then
- { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if { ac_try='./conftest$ac_cv_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot run C compiled programs.
- If you meant to cross compile, use \`--host'.
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
- $as_echo "$cross_compiling" >&6; }
- rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
- ac_clean_files=$ac_clean_files_save
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
- $as_echo_n "checking for suffix of object files... " >&6; }
- if ${ac_cv_objext+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.o conftest.obj
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- for ac_file in conftest.o conftest.obj conftest.*; do
- test -f "$ac_file" || continue;
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
- done
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot compute suffix of object files: cannot compile
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- rm -f conftest.$ac_cv_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
- $as_echo "$ac_cv_objext" >&6; }
- OBJEXT=$ac_cv_objext
- ac_objext=$OBJEXT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
- if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
- if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
- $as_echo "$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
- if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- # Check whether --enable-largefile was given.
- if test "${enable_largefile+set}" = set; then :
- enableval=$enable_largefile;
- fi
- if test "$enable_largefile" != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
- $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
- if ${ac_cv_sys_largefile_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_sys_largefile_CC=no
- if test "$GCC" != yes; then
- ac_save_CC=$CC
- while :; do
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- break
- fi
- rm -f core conftest.err conftest.$ac_objext
- CC="$CC -n32"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_largefile_CC=' -n32'; break
- fi
- rm -f core conftest.err conftest.$ac_objext
- break
- done
- CC=$ac_save_CC
- rm -f conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
- $as_echo "$ac_cv_sys_largefile_CC" >&6; }
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC=$CC$ac_cv_sys_largefile_CC
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
- if ${ac_cv_sys_file_offset_bits+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _FILE_OFFSET_BITS 64
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=64; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_file_offset_bits=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
- $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
- case $ac_cv_sys_file_offset_bits in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- if test $ac_cv_sys_file_offset_bits = unknown; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
- $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
- if ${ac_cv_sys_large_files+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _LARGE_FILES 1
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=1; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_large_files=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
- $as_echo "$ac_cv_sys_large_files" >&6; }
- case $ac_cv_sys_large_files in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- fi
- fi
- echo "ac: $ac_cv_sys_file_offset_bits"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
- $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
- if ${largefile64_cv_source+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- int
- main ()
- {
- int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- largefile64_source="no"
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _LARGEFILE64_SOURCE
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- int
- main ()
- {
- int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- largefile64_source="yes"
- else
- largefile64_source="unknown"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
- $as_echo "$largefile64_cv_source" >&6; }
- if test "x$largefile64_source" = "xyes"; then
- LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
- enable_largefile="yes"
- elif test "x$largefile64_source" = "xunknown"; then
- $as_echo "#define O_LARGEFILE 0" >>confdefs.h
- fi
- if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
- LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
- enable_largefile="yes"
- fi
- if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
- LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
- enable_largefile="yes"
- fi
- # In order to be able to change the scilab directory
- # See http://wiki.debian.org/RpathIssue
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AmigaOS /C/install, which installs bootblocks on floppy discs
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # OS/2's system install, which has a completely different semantic
- # ./install, which can be erroneously created by make from ./install.sh.
- # Reject install programs that cannot install multiple files.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
- $as_echo_n "checking for a BSD-compatible install... " >&6; }
- if test -z "$INSTALL"; then
- if ${ac_cv_path_install+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- # Account for people who put trailing slashes in PATH elements.
- case $as_dir/ in #((
- ./ | .// | /[cC]/* | \
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
- /usr/ucb/* ) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- rm -rf conftest.one conftest.two conftest.dir
- echo one > conftest.one
- echo two > conftest.two
- mkdir conftest.dir
- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
- test -s conftest.one && test -s conftest.two &&
- test -s conftest.dir/conftest.one &&
- test -s conftest.dir/conftest.two
- then
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- fi
- done
- done
- ;;
- esac
- done
- IFS=$as_save_IFS
- rm -rf conftest.one conftest.two conftest.dir
- fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- INSTALL=$ac_install_sh
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
- $as_echo "$INSTALL" >&6; }
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- # Make sure we can run config.sub.
- $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
- $as_echo_n "checking build system type... " >&6; }
- if ${ac_cv_build+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_build_alias=$build_alias
- test "x$ac_build_alias" = x &&
- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
- test "x$ac_build_alias" = x &&
- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
- ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
- $as_echo "$ac_cv_build" >&6; }
- case $ac_cv_build in
- *-*-*) ;;
- *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
- esac
- build=$ac_cv_build
- ac_save_IFS=$IFS; IFS='-'
- set x $ac_cv_build
- shift
- build_cpu=$1
- build_vendor=$2
- shift; shift
- # Remember, the first character of IFS is used to create $*,
- # except with old shells:
- build_os=$*
- IFS=$ac_save_IFS
- case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
- $as_echo_n "checking host system type... " >&6; }
- if ${ac_cv_host+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "x$host_alias" = x; then
- ac_cv_host=$ac_cv_build
- else
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
- $as_echo "$ac_cv_host" >&6; }
- case $ac_cv_host in
- *-*-*) ;;
- *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
- esac
- host=$ac_cv_host
- ac_save_IFS=$IFS; IFS='-'
- set x $ac_cv_host
- shift
- host_cpu=$1
- host_vendor=$2
- shift; shift
- # Remember, the first character of IFS is used to create $*,
- # except with old shells:
- host_os=$*
- IFS=$ac_save_IFS
- case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
- # Check whether --with-gnu-ld was given.
- if test "${with_gnu_ld+set}" = set; then :
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
- else
- with_gnu_ld=no
- fi
- # Prepare PATH_SEPARATOR.
- # The user is always right.
- if test "${PATH_SEPARATOR+set}" != set; then
- echo "#! /bin/sh" >conf$$.sh
- echo "exit 0" >>conf$$.sh
- chmod +x conf$$.sh
- if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
- PATH_SEPARATOR=';'
- else
- PATH_SEPARATOR=:
- fi
- rm -f conf$$.sh
- fi
- ac_prog=ld
- if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
- $as_echo_n "checking for ld used by GCC... " >&6; }
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | [A-Za-z]:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the path of ld
- ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
- elif test "$with_gnu_ld" = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
- $as_echo_n "checking for GNU ld... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
- $as_echo_n "checking for non-GNU ld... " >&6; }
- fi
- if ${acl_cv_path_LD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$LD"; then
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- acl_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some GNU ld's only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break ;;
- *)
- test "$with_gnu_ld" != yes && break ;;
- esac
- fi
- done
- IFS="$ac_save_ifs"
- else
- acl_cv_path_LD="$LD" # Let the user override the test with a path.
- fi
- fi
- LD="$acl_cv_path_LD"
- if test -n "$LD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
- $as_echo "$LD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
- $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
- if ${acl_cv_prog_gnu_ld+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # I'd rather use --version here, but apparently some GNU ld's only accept -v.
- case `$LD -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- acl_cv_prog_gnu_ld=yes ;;
- *)
- acl_cv_prog_gnu_ld=no ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
- $as_echo "$acl_cv_prog_gnu_ld" >&6; }
- with_gnu_ld=$acl_cv_prog_gnu_ld
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
- $as_echo_n "checking for shared library path variable... " >&6; }
- if ${acl_cv_libpath+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- LD="$LD" \
- ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
- . ./conftest.sh
- rm -f ./conftest.sh
- acl_cv_libpath=${acl_cv_shlibpath_var:-none}
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
- $as_echo "$acl_cv_libpath" >&6; }
- shlibpath_var="$acl_cv_shlibpath_var"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
- $as_echo_n "checking whether to activate relocatable installation... " >&6; }
- # Check whether --enable-relocatable was given.
- if test "${enable_relocatable+set}" = set; then :
- enableval=$enable_relocatable; if test "$enableval" != no; then
- RELOCATABLE=yes
- else
- RELOCATABLE=no
- fi
- else
- RELOCATABLE=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
- $as_echo "$RELOCATABLE" >&6; }
- if test "X$prefix" = "XNONE"; then
- reloc_final_prefix="$ac_default_prefix"
- else
- reloc_final_prefix="$prefix"
- fi
- cat >>confdefs.h <<_ACEOF
- #define INSTALLPREFIX "${reloc_final_prefix}"
- _ACEOF
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CPP=$CPP
- fi
- CPP=$ac_cv_prog_CPP
- else
- ac_cv_prog_CPP=$CPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
- $as_echo "$CPP" >&6; }
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
- $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
- if ${ac_cv_path_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$GREP"; then
- ac_path_GREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in grep ggrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
- # Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
- case `"$ac_path_GREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_GREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_GREP=$GREP
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
- $as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
- $as_echo_n "checking for egrep... " >&6; }
- if ${ac_cv_path_EGREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- if test -z "$EGREP"; then
- ac_path_EGREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in egrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
- { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
- # Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
- case `"$ac_path_EGREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_EGREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_EGREP=$EGREP
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
- $as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
- $as_echo_n "checking for ANSI C header files... " >&6; }
- if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
- else
- ac_cv_header_stdc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ctype.h>
- #include <stdlib.h>
- #if ((' ' & 0x0FF) == 0x020)
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #else
- # define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
- #endif
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int
- main ()
- {
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
- $as_echo "$ac_cv_header_stdc" >&6; }
- if test $ac_cv_header_stdc = yes; then
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
- fi
- # On IRIX 5.3, sys/types and inttypes.h are conflicting.
- for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- is_noop=no
- use_elf_origin_trick=no
- if test $RELOCATABLE = yes; then
- # --enable-relocatable implies --disable-rpath
- enable_rpath=no
- $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
- for ac_header in unistd.h mach-o/dyld.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in _NSGetExecutablePath
- do :
- ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
- if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE__NSGETEXECUTABLEPATH 1
- _ACEOF
- fi
- done
- case "$host_os" in
- mingw*) is_noop=yes ;;
- linux*) use_elf_origin_trick=yes ;;
- esac
- if test $is_noop = yes; then
- SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
- else
- if test $use_elf_origin_trick = yes; then
- case "$ac_aux_dir" in
- /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
- *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
- esac
- SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
- else
- SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
- case "$ac_aux_dir" in
- /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
- *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
- esac
- fi
- fi
- else
- SET_RELOCATABLE=
- fi
- if test $is_noop = yes || test $use_elf_origin_trick = yes; then
- RELOCATABLE_VIA_LD_TRUE=
- RELOCATABLE_VIA_LD_FALSE='#'
- else
- RELOCATABLE_VIA_LD_TRUE='#'
- RELOCATABLE_VIA_LD_FALSE=
- fi
- if test $RELOCATABLE = yes; then
- case " $LIBOBJS " in
- *" relocatable.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
- ;;
- esac
- fi
- if test "X$prefix" = "XNONE"; then
- reloc_final_prefix="$ac_default_prefix"
- else
- reloc_final_prefix="$prefix"
- fi
- cat >>confdefs.h <<_ACEOF
- #define INSTALLPREFIX "${reloc_final_prefix}"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
- $as_echo_n "checking for shared library run path origin... " >&6; }
- if ${acl_cv_rpath+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
- ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
- . ./conftest.sh
- rm -f ./conftest.sh
- acl_cv_rpath=done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
- $as_echo "$acl_cv_rpath" >&6; }
- wl="$acl_cv_wl"
- acl_libext="$acl_cv_libext"
- acl_shlibext="$acl_cv_shlibext"
- acl_libname_spec="$acl_cv_libname_spec"
- acl_library_names_spec="$acl_cv_library_names_spec"
- acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
- acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
- acl_hardcode_direct="$acl_cv_hardcode_direct"
- acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
- # Check whether --enable-rpath was given.
- if test "${enable_rpath+set}" = set; then :
- enableval=$enable_rpath; :
- else
- enable_rpath=yes
- fi
- # If configure detect that timestamp changed,
- # it tries to rebuild configure & makefile which can be a painmaker
- # if the version is different
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
- $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
- # Check whether --enable-maintainer-mode was given.
- if test "${enable_maintainer_mode+set}" = set; then :
- enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
- else
- USE_MAINTAINER_MODE=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
- $as_echo "$USE_MAINTAINER_MODE" >&6; }
- if test $USE_MAINTAINER_MODE = yes; then
- MAINTAINER_MODE_TRUE=
- MAINTAINER_MODE_FALSE='#'
- else
- MAINTAINER_MODE_TRUE='#'
- MAINTAINER_MODE_FALSE=
- fi
- MAINT=$MAINTAINER_MODE_TRUE
- am__api_version='1.11'
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
- $as_echo_n "checking whether build environment is sane... " >&6; }
- # Just in case
- sleep 1
- echo timestamp > conftest.file
- # Reject unsafe characters in $srcdir or the absolute working directory
- # name. Accept space and tab only in the latter.
- am_lf='
- '
- case `pwd` in
- *[\\\"\#\$\&\'\`$am_lf]*)
- as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
- esac
- case $srcdir in
- *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
- as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
- esac
- # Do `set' in a subshell so we don't clobber the current shell's
- # arguments. Must try -L first in case configure is actually a
- # symlink; some systems play weird games with the mod time of symlinks
- # (eg FreeBSD returns the mod time of the symlink's containing
- # directory).
- if (
- set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
- if test "$*" = "X"; then
- # -L didn't work.
- set X `ls -t "$srcdir/configure" conftest.file`
- fi
- rm -f conftest.file
- if test "$*" != "X $srcdir/configure conftest.file" \
- && test "$*" != "X conftest.file $srcdir/configure"; then
- # If neither matched, then we have a broken ls. This can happen
- # if, for instance, CONFIG_SHELL is bash and it inherits a
- # broken ls alias from the environment. This has actually
- # happened. Such a system could not be considered "sane".
- as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
- alias in your environment" "$LINENO" 5
- fi
- test "$2" = conftest.file
- )
- then
- # Ok.
- :
- else
- as_fn_error $? "newly created file is older than distributed files!
- Check your system clock" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- test "$program_prefix" != NONE &&
- program_transform_name="s&^&$program_prefix&;$program_transform_name"
- # Use a double $ so make ignores it.
- test "$program_suffix" != NONE &&
- program_transform_name="s&\$&$program_suffix&;$program_transform_name"
- # Double any \ or $.
- # By default was `s,x,x', remove it if useless.
- ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
- program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
- if test x"${MISSING+set}" != xset; then
- case $am_aux_dir in
- *\ * | *\ *)
- MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
- *)
- MISSING="\${SHELL} $am_aux_dir/missing" ;;
- esac
- fi
- # Use eval to expand $SHELL
- if eval "$MISSING --run true"; then
- am_missing_run="$MISSING --run "
- else
- am_missing_run=
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
- $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
- $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
- if test -z "$MKDIR_P"; then
- if ${ac_cv_path_mkdir+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in mkdir gmkdir; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
- case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
- 'mkdir (GNU coreutils) '* | \
- 'mkdir (coreutils) '* | \
- 'mkdir (fileutils) '4.1*)
- ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
- break 3;;
- esac
- done
- done
- done
- IFS=$as_save_IFS
- fi
- test -d ./--version && rmdir ./--version
- if test "${ac_cv_path_mkdir+set}" = set; then
- MKDIR_P="$ac_cv_path_mkdir -p"
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for MKDIR_P within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- MKDIR_P="$ac_install_sh -d"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
- $as_echo "$MKDIR_P" >&6; }
- mkdir_p="$MKDIR_P"
- case $mkdir_p in
- [\\/$]* | ?:[\\/]*) ;;
- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
- esac
- for ac_prog in gawk mawk nawk awk
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_AWK+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- AWK=$ac_cv_prog_AWK
- if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
- $as_echo "$AWK" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$AWK" && break
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
- $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
- set x ${MAKE-make}
- ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
- if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat >conftest.make <<\_ACEOF
- SHELL = /bin/sh
- all:
- @echo '@@@%%%=$(MAKE)=@@@%%%'
- _ACEOF
- # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
- case `${MAKE-make} -f conftest.make 2>/dev/null` in
- *@@@%%%=?*=@@@%%%*)
- eval ac_cv_prog_make_${ac_make}_set=yes;;
- *)
- eval ac_cv_prog_make_${ac_make}_set=no;;
- esac
- rm -f conftest.make
- fi
- if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- SET_MAKE=
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- SET_MAKE="MAKE=${MAKE-make}"
- fi
- rm -rf .tst 2>/dev/null
- mkdir .tst 2>/dev/null
- if test -d .tst; then
- am__leading_dot=.
- else
- am__leading_dot=_
- fi
- rmdir .tst 2>/dev/null
- DEPDIR="${am__leading_dot}deps"
- ac_config_commands="$ac_config_commands depfiles"
- am_make=${MAKE-make}
- cat > confinc << 'END'
- am__doit:
- @echo this is the am__doit target
- .PHONY: am__doit
- END
- # If we don't find an include directive, just comment out the code.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
- $as_echo_n "checking for style of include used by $am_make... " >&6; }
- am__include="#"
- am__quote=
- _am_result=none
- # First try GNU make style include.
- echo "include confinc" > confmf
- # Ignore all kinds of additional output from `make'.
- case `$am_make -s -f confmf 2> /dev/null` in #(
- *the\ am__doit\ target*)
- am__include=include
- am__quote=
- _am_result=GNU
- ;;
- esac
- # Now try BSD make style include.
- if test "$am__include" = "#"; then
- echo '.include "confinc"' > confmf
- case `$am_make -s -f confmf 2> /dev/null` in #(
- *the\ am__doit\ target*)
- am__include=.include
- am__quote="\""
- _am_result=BSD
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
- $as_echo "$_am_result" >&6; }
- rm -f confinc confmf
- # Check whether --enable-dependency-tracking was given.
- if test "${enable_dependency_tracking+set}" = set; then :
- enableval=$enable_dependency_tracking;
- fi
- if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
- am__nodep='_no'
- fi
- if test "x$enable_dependency_tracking" != xno; then
- AMDEP_TRUE=
- AMDEP_FALSE='#'
- else
- AMDEP_TRUE='#'
- AMDEP_FALSE=
- fi
- if test "`cd $srcdir && pwd`" != "`pwd`"; then
- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
- # is not polluted with repeated "-I."
- am__isrc=' -I$(srcdir)'
- # test to see if srcdir already configured
- if test -f $srcdir/config.status; then
- as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
- fi
- fi
- # test whether we have cygpath
- if test -z "$CYGPATH_W"; then
- if (cygpath --version) >/dev/null 2>/dev/null; then
- CYGPATH_W='cygpath -w'
- else
- CYGPATH_W=echo
- fi
- fi
- # Define the identity of the package.
- PACKAGE='scilab'
- VERSION='5'
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE "$PACKAGE"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define VERSION "$VERSION"
- _ACEOF
- # Some tools Automake needs.
- ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
- AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
- AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
- AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
- MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
- # We need awk for the "check" target. The system "awk" is bad on
- # some platforms.
- # Always define AMTAR for backward compatibility. Yes, it's still used
- # in the wild :-( We should find a proper way to deprecate it ...
- AMTAR='$${TAR-tar}'
- am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
- depcc="$CC" am_compiler_list=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
- $as_echo_n "checking dependency style of $depcc... " >&6; }
- if ${am_cv_CC_dependencies_compiler_type+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named `D' -- because `-MD' means `put the output
- # in D'.
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
- am_cv_CC_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- am__universal=false
- case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
- # Solaris 8's {/usr,}/bin/sh.
- touch sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle `-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # after this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok `-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
- cd ..
- rm -rf conftest.dir
- else
- am_cv_CC_dependencies_compiler_type=none
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
- $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
- CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
- am__fastdepCC_TRUE=
- am__fastdepCC_FALSE='#'
- else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
- fi
- # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
- #################################
- ## all the --with-* argument help
- #################################
- # Check whether --enable-debug was given.
- if test "${enable_debug+set}" = set; then :
- enableval=$enable_debug;
- fi
- # Check whether --enable-debug-C was given.
- if test "${enable_debug_C+set}" = set; then :
- enableval=$enable_debug_C;
- fi
- # Check whether --enable-debug-CXX was given.
- if test "${enable_debug_CXX+set}" = set; then :
- enableval=$enable_debug_CXX;
- fi
- # Check whether --enable-debug-java was given.
- if test "${enable_debug_java+set}" = set; then :
- enableval=$enable_debug_java;
- fi
- # Check whether --enable-debug-fortran was given.
- if test "${enable_debug_fortran+set}" = set; then :
- enableval=$enable_debug_fortran;
- fi
- # Check whether --enable-debug-linker was given.
- if test "${enable_debug_linker+set}" = set; then :
- enableval=$enable_debug_linker;
- fi
- # Check whether --enable-code-coverage was given.
- if test "${enable_code_coverage+set}" = set; then :
- enableval=$enable_code_coverage;
- fi
- # Check whether --enable-stop-on-warning was given.
- if test "${enable_stop_on_warning+set}" = set; then :
- enableval=$enable_stop_on_warning;
- fi
- # Check whether --with-gcc was given.
- if test "${with_gcc+set}" = set; then :
- withval=$with_gcc;
- fi
- # Check whether --with-gfortran was given.
- if test "${with_gfortran+set}" = set; then :
- withval=$with_gfortran;
- fi
- # Check whether --with-intelcompilers was given.
- if test "${with_intelcompilers+set}" = set; then :
- withval=$with_intelcompilers;
- fi
- # Check whether --with-tk was given.
- if test "${with_tk+set}" = set; then :
- withval=$with_tk;
- fi
- # Check whether --with-javasci was given.
- if test "${with_javasci+set}" = set; then :
- withval=$with_javasci;
- fi
- # Check whether --enable-compilation-tests was given.
- if test "${enable_compilation_tests+set}" = set; then :
- enableval=$enable_compilation_tests;
- fi
- # Check whether --with-gui was given.
- if test "${with_gui+set}" = set; then :
- withval=$with_gui;
- fi
- # Check whether --enable-build-swig was given.
- if test "${enable_build_swig+set}" = set; then :
- enableval=$enable_build_swig;
- fi
- # Check whether --enable-build-giws was given.
- if test "${enable_build_giws+set}" = set; then :
- enableval=$enable_build_giws;
- fi
- ################################################
- ########## compilator & misc programs detection
- ################################################
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CPP=$CPP
- fi
- CPP=$ac_cv_prog_CPP
- else
- ac_cv_prog_CPP=$CPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
- $as_echo "$CPP" >&6; }
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
- $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
- if ${ac_cv_path_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$GREP"; then
- ac_path_GREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in grep ggrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
- # Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
- case `"$ac_path_GREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_GREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_GREP=$GREP
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
- $as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
- ######
- #### Mac OS X set of fink path with provided
- ######
- # Check whether --with-fink_prefix was given.
- if test "${with_fink_prefix+set}" = set; then :
- withval=$with_fink_prefix;
- fi
- case "$host" in
- *darwin*)
- if test -n "$with_fink_prefix"; then
- # If with-fink-prefix is provided, use the provided path to make sure that we will
- # use it to detect dependencies (for example, gfortran is not provided in xcode.
- # Therefor, we use the one in fink)
- FINK_PREFIX="$with_fink_prefix/"
- # Exec the init script of fink to make sure that the env is set
- if test -f $with_fink_prefix/bin/init.sh; then
- echo "source $with_fink_prefix/bin/init.sh executed to set the env"
- source $with_fink_prefix/bin/init.sh
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
- $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
- fi
- else
- FINK_PREFIX="/sw/"
- fi
- ;;
- esac
- #####################################################
- ## Look for pkg-config
- #####################################################
- if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
- if test -n "$ac_pt_PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
- $as_echo "$ac_pt_PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PKG_CONFIG" = x; then
- PKG_CONFIG=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- PKG_CONFIG=$ac_pt_PKG_CONFIG
- fi
- else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
- fi
- fi
- if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
- $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PKG_CONFIG=""
- fi
- fi
- #####################################################
- ## check if options are correct (or not)
- #####################################################
- if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
- as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
- fi
- ######## fortran ########
- if test "$with_gfortran" = yes; then
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in gfortran
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- F77=$ac_cv_prog_F77
- if test -n "$F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
- $as_echo "$F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$F77" && break
- done
- fi
- if test -z "$F77"; then
- ac_ct_F77=$F77
- for ac_prog in gfortran
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_F77"; then
- ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_F77="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_F77=$ac_cv_prog_ac_ct_F77
- if test -n "$ac_ct_F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
- $as_echo "$ac_ct_F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_F77" && break
- done
- if test "x$ac_ct_F77" = x; then
- F77=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- F77=$ac_ct_F77
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- rm -f a.out
- # If we don't use `.F' as extension, the preprocessor is not run on the
- # input file. (Note that this only needs to work for GNU compilers.)
- ac_save_ext=$ac_ext
- ac_ext=F
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
- $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
- if ${ac_cv_f77_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat > conftest.$ac_ext <<_ACEOF
- program main
- #ifndef __GNUC__
- choke me
- #endif
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_f77_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
- $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
- ac_ext=$ac_save_ext
- ac_test_FFLAGS=${FFLAGS+set}
- ac_save_FFLAGS=$FFLAGS
- FFLAGS=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
- $as_echo_n "checking whether $F77 accepts -g... " >&6; }
- if ${ac_cv_prog_f77_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- FFLAGS=-g
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_cv_prog_f77_g=yes
- else
- ac_cv_prog_f77_g=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
- $as_echo "$ac_cv_prog_f77_g" >&6; }
- if test "$ac_test_FFLAGS" = set; then
- FFLAGS=$ac_save_FFLAGS
- elif test $ac_cv_prog_f77_g = yes; then
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-g -O2"
- else
- FFLAGS="-g"
- fi
- else
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-O2"
- else
- FFLAGS=
- fi
- fi
- if test $ac_compiler_gnu = yes; then
- G77=yes
- else
- G77=
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -z "$F77"; then
- as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
- fi
- fi
- if test "$with_intelcompilers" = yes; then
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in ifc ifort
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- F77=$ac_cv_prog_F77
- if test -n "$F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
- $as_echo "$F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$F77" && break
- done
- fi
- if test -z "$F77"; then
- ac_ct_F77=$F77
- for ac_prog in ifc ifort
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_F77"; then
- ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_F77="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_F77=$ac_cv_prog_ac_ct_F77
- if test -n "$ac_ct_F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
- $as_echo "$ac_ct_F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_F77" && break
- done
- if test "x$ac_ct_F77" = x; then
- F77=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- F77=$ac_ct_F77
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- rm -f a.out
- # If we don't use `.F' as extension, the preprocessor is not run on the
- # input file. (Note that this only needs to work for GNU compilers.)
- ac_save_ext=$ac_ext
- ac_ext=F
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
- $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
- if ${ac_cv_f77_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat > conftest.$ac_ext <<_ACEOF
- program main
- #ifndef __GNUC__
- choke me
- #endif
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_f77_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
- $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
- ac_ext=$ac_save_ext
- ac_test_FFLAGS=${FFLAGS+set}
- ac_save_FFLAGS=$FFLAGS
- FFLAGS=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
- $as_echo_n "checking whether $F77 accepts -g... " >&6; }
- if ${ac_cv_prog_f77_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- FFLAGS=-g
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_cv_prog_f77_g=yes
- else
- ac_cv_prog_f77_g=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
- $as_echo "$ac_cv_prog_f77_g" >&6; }
- if test "$ac_test_FFLAGS" = set; then
- FFLAGS=$ac_save_FFLAGS
- elif test $ac_cv_prog_f77_g = yes; then
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-g -O2"
- else
- FFLAGS="-g"
- fi
- else
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-O2"
- else
- FFLAGS=
- fi
- fi
- if test $ac_compiler_gnu = yes; then
- G77=yes
- else
- G77=
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -z "$F77"; then
- as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
- fi
- fi
- if test -z "$F77"; then
- ## No Fortran compiler specified... Prefer gfortran and intel compilers
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in gfortran ifc ifort
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- F77=$ac_cv_prog_F77
- if test -n "$F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
- $as_echo "$F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$F77" && break
- done
- fi
- if test -z "$F77"; then
- ac_ct_F77=$F77
- for ac_prog in gfortran ifc ifort
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_F77"; then
- ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_F77="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_F77=$ac_cv_prog_ac_ct_F77
- if test -n "$ac_ct_F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
- $as_echo "$ac_ct_F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_F77" && break
- done
- if test "x$ac_ct_F77" = x; then
- F77=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- F77=$ac_ct_F77
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- rm -f a.out
- # If we don't use `.F' as extension, the preprocessor is not run on the
- # input file. (Note that this only needs to work for GNU compilers.)
- ac_save_ext=$ac_ext
- ac_ext=F
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
- $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
- if ${ac_cv_f77_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat > conftest.$ac_ext <<_ACEOF
- program main
- #ifndef __GNUC__
- choke me
- #endif
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_f77_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
- $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
- ac_ext=$ac_save_ext
- ac_test_FFLAGS=${FFLAGS+set}
- ac_save_FFLAGS=$FFLAGS
- FFLAGS=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
- $as_echo_n "checking whether $F77 accepts -g... " >&6; }
- if ${ac_cv_prog_f77_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- FFLAGS=-g
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_cv_prog_f77_g=yes
- else
- ac_cv_prog_f77_g=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
- $as_echo "$ac_cv_prog_f77_g" >&6; }
- if test "$ac_test_FFLAGS" = set; then
- FFLAGS=$ac_save_FFLAGS
- elif test $ac_cv_prog_f77_g = yes; then
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-g -O2"
- else
- FFLAGS="-g"
- fi
- else
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-O2"
- else
- FFLAGS=
- fi
- fi
- if test $ac_compiler_gnu = yes; then
- G77=yes
- else
- G77=
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -z "$F77"; then
- # Best effort to find a compiler (might be g77)
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$F77"; then
- ac_cv_prog_F77="$F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- F77=$ac_cv_prog_F77
- if test -n "$F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
- $as_echo "$F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$F77" && break
- done
- fi
- if test -z "$F77"; then
- ac_ct_F77=$F77
- for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_F77+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_F77"; then
- ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_F77="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_F77=$ac_cv_prog_ac_ct_F77
- if test -n "$ac_ct_F77"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
- $as_echo "$ac_ct_F77" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_F77" && break
- done
- if test "x$ac_ct_F77" = x; then
- F77=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- F77=$ac_ct_F77
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- rm -f a.out
- # If we don't use `.F' as extension, the preprocessor is not run on the
- # input file. (Note that this only needs to work for GNU compilers.)
- ac_save_ext=$ac_ext
- ac_ext=F
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
- $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
- if ${ac_cv_f77_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat > conftest.$ac_ext <<_ACEOF
- program main
- #ifndef __GNUC__
- choke me
- #endif
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_f77_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
- $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
- ac_ext=$ac_save_ext
- ac_test_FFLAGS=${FFLAGS+set}
- ac_save_FFLAGS=$FFLAGS
- FFLAGS=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
- $as_echo_n "checking whether $F77 accepts -g... " >&6; }
- if ${ac_cv_prog_f77_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- FFLAGS=-g
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- ac_cv_prog_f77_g=yes
- else
- ac_cv_prog_f77_g=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
- $as_echo "$ac_cv_prog_f77_g" >&6; }
- if test "$ac_test_FFLAGS" = set; then
- FFLAGS=$ac_save_FFLAGS
- elif test $ac_cv_prog_f77_g = yes; then
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-g -O2"
- else
- FFLAGS="-g"
- fi
- else
- if test "x$ac_cv_f77_compiler_gnu" = xyes; then
- FFLAGS="-O2"
- else
- FFLAGS=
- fi
- fi
- if test $ac_compiler_gnu = yes; then
- G77=yes
- else
- G77=
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- fi
- # case statements were introduced in fortran 90 so we can use that
- # as a test to see if our compiler is fortran 90 compatible.
- f90compatible=false
- if test -z "$F77"; then
- as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
- $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
- f90compatible=false
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- cat > conftest.$ac_ext <<_ACEOF
- PROGRAM hello
- do 50 i = 1, 5
- select case ( i )
- case (1)
- print*, "case is 1, i is ", i
- case ( 2 : 3 )
- print*, "case is 2 to 3, i is ", i
- case default
- print*, "default case, i is ", i
- end select
- 50 continue
- END
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
- f90compatible=true
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ############ C ###############
- if test "$with_gcc" = yes; then
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in gcc
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in gcc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
- if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
- if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
- $as_echo "$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
- if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -z "$CC"; then
- as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
- fi
- fi
- if test "$with_intelcompilers" = yes; then
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in icc ecc
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in icc ecc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
- if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
- if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
- $as_echo "$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
- if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -z "$CC"; then
- as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
- fi
- fi
- if test -z "$CC"; then
- # No C compiler specified... We rely on Autoconf to find the best
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}gcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="gcc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- else
- CC="$ac_cv_prog_CC"
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="${ac_tool_prefix}cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- fi
- if test -z "$CC"; then
- # Extract the first word of "cc", so it can be a program name with args.
- set dummy cc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- ac_prog_rejected=no
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
- ac_prog_rejected=yes
- continue
- fi
- ac_cv_prog_CC="cc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- if test $ac_prog_rejected = yes; then
- # We found a bogon in the path, so make sure we never use it.
- set dummy $ac_cv_prog_CC
- shift
- if test $# != 0; then
- # We chose a different compiler from the bogus one.
- # However, it has the same basename, so the bogon will be chosen
- # first if we set CC to just the basename; use the full file name.
- shift
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
- fi
- fi
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$CC"; then
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl.exe
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
- if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
- if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
- $as_echo "$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
- if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- #include <stdio.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- if test -z "$CC"; then
- as_fn_error $? "No C Compiler found. Cannot compile Scilab without a C compiler" "$LINENO" 5
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- ### C++ ###
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- if test -z "$CXX"; then
- if test -n "$CCC"; then
- CXX=$CCC
- else
- if test -n "$ac_tool_prefix"; then
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CXX=$ac_cv_prog_CXX
- if test -n "$CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
- $as_echo "$CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CXX" && break
- done
- fi
- if test -z "$CXX"; then
- ac_ct_CXX=$CXX
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CXX"; then
- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_ac_ct_CXX="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
- if test -n "$ac_ct_CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
- $as_echo "$ac_ct_CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CXX" && break
- done
- if test "x$ac_ct_CXX" = x; then
- CXX="g++"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CXX=$ac_ct_CXX
- fi
- fi
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
- $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
- if ${ac_cv_cxx_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
- $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GXX=yes
- else
- GXX=
- fi
- ac_test_CXXFLAGS=${CXXFLAGS+set}
- ac_save_CXXFLAGS=$CXXFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
- $as_echo_n "checking whether $CXX accepts -g... " >&6; }
- if ${ac_cv_prog_cxx_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_cxx_werror_flag=$ac_cxx_werror_flag
- ac_cxx_werror_flag=yes
- ac_cv_prog_cxx_g=no
- CXXFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_cv_prog_cxx_g=yes
- else
- CXXFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- else
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
- CXXFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_cv_prog_cxx_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
- $as_echo "$ac_cv_prog_cxx_g" >&6; }
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS=$ac_save_CXXFLAGS
- elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O2"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- else
- CXXFLAGS=
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- depcc="$CXX" am_compiler_list=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
- $as_echo_n "checking dependency style of $depcc... " >&6; }
- if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
- # We make a subdir and do the tests there. Otherwise we can end up
- # making bogus files that we don't know about and never remove. For
- # instance it was reported that on HP-UX the gcc test will end up
- # making a dummy file named `D' -- because `-MD' means `put the output
- # in D'.
- rm -rf conftest.dir
- mkdir conftest.dir
- # Copy depcomp to subdir because otherwise we won't find it if we're
- # using a relative directory.
- cp "$am_depcomp" conftest.dir
- cd conftest.dir
- # We will build objects and dependencies in a subdirectory because
- # it helps to detect inapplicable dependency modes. For instance
- # both Tru64's cc and ICC support -MD to output dependencies as a
- # side effect of compilation, but ICC will put the dependencies in
- # the current directory while Tru64 will put them in the object
- # directory.
- mkdir sub
- am_cv_CXX_dependencies_compiler_type=none
- if test "$am_compiler_list" = ""; then
- am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
- fi
- am__universal=false
- case " $depcc " in #(
- *\ -arch\ *\ -arch\ *) am__universal=true ;;
- esac
- for depmode in $am_compiler_list; do
- # Setup a source with many dependencies, because some compilers
- # like to wrap large dependency lists on column 80 (with \), and
- # we should not choose a depcomp mode which is confused by this.
- #
- # We need to recreate these files for each test, as the compiler may
- # overwrite some of them when testing with obscure command lines.
- # This happens at least with the AIX C compiler.
- : > sub/conftest.c
- for i in 1 2 3 4 5 6; do
- echo '#include "conftst'$i'.h"' >> sub/conftest.c
- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
- # Solaris 8's {/usr,}/bin/sh.
- touch sub/conftst$i.h
- done
- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
- # mode. It turns out that the SunPro C++ compiler does not properly
- # handle `-M -o', and we need to detect this. Also, some Intel
- # versions had trouble with output in subdirs
- am__obj=sub/conftest.${OBJEXT-o}
- am__minus_obj="-o $am__obj"
- case $depmode in
- gcc)
- # This depmode causes a compiler race in universal mode.
- test "$am__universal" = false || continue
- ;;
- nosideeffect)
- # after this tag, mechanisms are not by side-effect, so they'll
- # only be used when explicitly requested
- if test "x$enable_dependency_tracking" = xyes; then
- continue
- else
- break
- fi
- ;;
- msvc7 | msvc7msys | msvisualcpp | msvcmsys)
- # This compiler won't grok `-c -o', but also, the minuso test has
- # not run yet. These depmodes are late enough in the game, and
- # so weak that their functioning should not be impacted.
- am__obj=conftest.${OBJEXT-o}
- am__minus_obj=
- ;;
- none) break ;;
- esac
- if depmode=$depmode \
- source=sub/conftest.c object=$am__obj \
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
- $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
- >/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- # icc doesn't choke on unknown options, it will just issue warnings
- # or remarks (even with -Werror). So we grep stderr for any message
- # that says an option was ignored or not supported.
- # When given -MP, icc 7.0 and 7.1 complain thusly:
- # icc: Command line warning: ignoring option '-M'; no argument required
- # The diagnosis changed in icc 8.0:
- # icc: Command line remark: option '-MP' not supported
- if (grep 'ignoring option' conftest.err ||
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
- am_cv_CXX_dependencies_compiler_type=$depmode
- break
- fi
- fi
- done
- cd ..
- rm -rf conftest.dir
- else
- am_cv_CXX_dependencies_compiler_type=none
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
- $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
- CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
- if
- test "x$enable_dependency_tracking" != xno \
- && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
- am__fastdepCXX_TRUE=
- am__fastdepCXX_FALSE='#'
- else
- am__fastdepCXX_TRUE='#'
- am__fastdepCXX_FALSE=
- fi
- # we can't just do something like
- # AC_CHECK_PROG(cxx_present, $CXX, "yes", "no")
- # because if the user has specified the full path of the desired C++ compiler then AC_CHECK_PROG
- # will fail. If AC_PROG_CXX fails to find a c++ compiler it will set CXX=g++ so just run AC_CHECK_PROG
- # in this special case
- case $CXX in
- g++)
- # Extract the first word of "$CXX", so it can be a program name with args.
- set dummy $CXX; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_cxx_present+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$cxx_present"; then
- ac_cv_prog_cxx_present="$cxx_present" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_cxx_present="yes"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_cxx_present" && ac_cv_prog_cxx_present="no"
- fi
- fi
- cxx_present=$ac_cv_prog_cxx_present
- if test -n "$cxx_present"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_present" >&5
- $as_echo "$cxx_present" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$cxx_present" != "xyes"; then
- as_fn_error $? "No C++ compiler found. Cannot compile scilab without a C++ compiler" "$LINENO" 5
- fi
- ;;
- esac
- # for "subdir-objects"
- if test "x$CC" != xcc; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
- $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
- $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
- fi
- set dummy $CC; ac_cc=`$as_echo "$2" |
- sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
- if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- # Make sure it works both with $CC and with simple cc.
- # We do the test twice because some compilers refuse to overwrite an
- # existing .o file with -o, though they will create one.
- ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } &&
- test -f conftest2.$ac_objext && { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; };
- then
- eval ac_cv_prog_cc_${ac_cc}_c_o=yes
- if test "x$CC" != xcc; then
- # Test first that cc exists at all.
- if { ac_try='cc -c conftest.$ac_ext >&5'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } &&
- test -f conftest2.$ac_objext && { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; };
- then
- # cc works too.
- :
- else
- # cc exists but doesn't like -o.
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
- fi
- fi
- fi
- else
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
- fi
- rm -f core conftest*
- fi
- if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
- fi
- # FIXME: we rely on the cache variable name because
- # there is no other way.
- set dummy $CC
- am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
- eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
- if test "$am_t" != yes; then
- # Losing compiler, so override with the script.
- # FIXME: It is wrong to rewrite CC.
- # But if we don't then we get into trouble of one sort or another.
- # A longer-term fix would be to have automake use am__CC in this case,
- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
- CC="$am_aux_dir/compile $CC"
- fi
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 understands -c and -o together" >&5
- $as_echo_n "checking whether $F77 understands -c and -o together... " >&6; }
- if ${ac_cv_prog_f77_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- # We test twice because some compilers refuse to overwrite an existing
- # `.o' file with `-o', although they will create one.
- ac_try='$F77 $FFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } &&
- test -f conftest2.$ac_objext &&
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- ac_cv_prog_f77_c_o=yes
- else
- ac_cv_prog_f77_c_o=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_c_o" >&5
- $as_echo "$ac_cv_prog_f77_c_o" >&6; }
- if test $ac_cv_prog_f77_c_o = no; then
- $as_echo "#define F77_NO_MINUS_C_MINUS_O 1" >>confdefs.h
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- # If this option is provided, enable the debug on C & C++
- if test "$enable_stop_on_warning" = yes; then
- enable_debug_C=yes
- enable_debug_CXX=yes
- fi
- if test "$enable_debug" = yes; then
- enable_debug_fortran=yes
- enable_debug_C=yes
- enable_debug_CXX=yes
- enable_debug_java=yes
- else
- enable_debug=no
- fi
- if test "$enable_debug_fortran" = yes; then
- FFLAGS="`echo "$FFLAGS"| sed -e 's|-O0-9+|-O0|'`"
- else
- enable_debug_fortran=no
- fi
- if test "$enable_debug_C" = yes; then
- CFLAGS="`echo "$CFLAGS"| sed -e 's|-O0-9+|-O0|'`"
- else
- enable_debug_C=no
- fi
- if test "$enable_debug_CXX" = yes; then
- CXXFLAGS="`echo "$CXXFLAGS"| sed -e 's|-O0-9+|-O0|'`"
- else
- enable_debug_CXX=no
- fi
- if test "$enable_debug_java" = yes; then
- LOGGING_LEVEL="ALL"
- else
- LOGGING_LEVEL="INFO"
- fi
- if test "x${prefix}" = "xNONE"; then
- prefix="${ac_default_prefix}"
- fi
- if test "$enable_largefile" = "yes"; then
- CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
- CXXFLAGS="$CXXFLAGS $LARGEFILE_CFLAGS"
- FFLAGS="$FFLAGS $LARGEFILE_CFLAGS"
- fi
- ###############################
- ## get the version
- ###############################
- SCIVERSION=`cat $SCI_SRCDIR/Version.incl | sed -e "s/SCIVERSION=//" `
- #############################################
- ## Compilers and options according to machine
- #############################################
- ######################
- ######## Set compilation options for intel C/Fortran compilers
- ######################
- if test "$with_intelcompilers" = yes; then
- CFLAGS=" $CFLAGS -DNARROWPROTO -mp"
- # -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard
- FFLAGS=" $FFLAGS -cm -w90 -w95 -mp"
- case "$host" in
- i*86-*-linux-gnu | *-pc-linux-gnu )
- # -pc64 : double precision
- EXTRA_OPTIONS=" -pc64 -ffnalias -falias"
- ;;
- esac
- if test "$enable_debug_C" = yes; then
- CFLAGS="-g $CFLAGS $EXTRA_OPTIONS"
- else
- CFLAGS="-O -DNDEBUG $CFLAGS "
- fi
- if test "$enable_debug_fortran" = yes; then
- FFLAGS="-g $FFLAGS $EXTRA_OPTIONS"
- else
- FFLAGS="-O $FFLAGS "
- fi
- # TODO : voir si obligatoire vu que c'est en partie le boulot de AC_PROG_C
- fi
- ########### FORTRAN ######################
- ######################
- ######## With gfortran ...
- ######################
- if test -n "$F77"; then
- case "$F77" in
- gfortran*)
- ## With GNU Compiler enable the code coverage
- if test "$enable_code_coverage" = yes; then
- FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
- fi
- ;;
- g77*)
- as_fn_error $? "g77 is no longer supported. Please consider switching to gfortran" "$LINENO" 5
- ;;
- esac
- if test "$enable_debug_fortran" = yes; then
- ac_ext=f
- ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
- ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_f77_compiler_gnu
- for flag in -g -Wall -Wsurprising; do
- case " ${FFLAGS} " in
- *\ ${flag}\ *)
- # flag is already present
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Fortran compiler accepts ${flag}" >&5
- $as_echo_n "checking if the Fortran compiler accepts ${flag}... " >&6; }
- ac_save_FFLAGS="$FFLAGS"
- FFLAGS="$FFLAGS ${flag}"
- cat > conftest.$ac_ext <<_ACEOF
- program main
- end
- _ACEOF
- if ac_fn_f77_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- FFLAGS="$ac_save_FFLAGS"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ;;
- esac
- done
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- else
- FFLAGS="$FFLAGS -DNDEBUG"
- fi
- case "$host" in
- x86_64-*-linux*)
- FFLAGS="$FFLAGS -m64 -fPIC"
- ;;
- # Dec Alpha OSF 4
- alpha*-dec-osf4.*)
- FFLAGS="$FFLAGS -fpe3"
- ;;
- alpha*-dec-osf*)
- FFLAGS="$FFLAGS -fpe3 -switch nosqrt_recip"
- ;;
- rs6000-*-*)
- FFLAGS="$FFLAGS -qcharlen=4096"
- ;;
- mips-*-ultrix*)
- FFLAGS="-O0 -fpe1"
- ;;
- *-*-hpux9.*)
- FFLAGS="$FFLAGS +Obb1200 +E4 -Dhpux"
- ;;
- *-*-hpux10.*)
- if test "$enable_debug_fortran" = yes; then
- FFLAGS="+E4 +Z +DAportable -Dhpux"
- else
- FFLAGS="+O2 +E4 +Z +DAportable -Dhpux"
- fi
- # F77_LDFLAGS="-Wl,+vnocompatwarnings,-E /usr/lib/libdld.sl"
- ;;
- *-*-hpux11.*)
- if test "$enable_debug_fortran" = yes; then
- FFLAGS=" +Z +DAportable -Dhpux"
- else
- FFLAGS="+O2 +Z +DAportable -Dhpux"
- fi
- FLIBS="-ldld -lnsl -lU77 -lm"
- ;;
- esac
- fi
- #########################
- # setting parameters according to system types
- #########################
- case "$host" in
- *-*-hpux9.*|*-*-hpux10.*|*-*-hpux11.*)
- HPUX=1
- ;;
- sparc-*)
- SPARC=1
- ;;
- mips-sgi-irix*)
- MIPS_SGI_IRIX=1
- ;;
- *-*-solaris*)
- SOLARIS=1
- ;;
- *darwin*)
- MACOSX=1
- ;;
- esac
- if test -n "$MACOSX"; then
- IS_MACOSX_TRUE=
- IS_MACOSX_FALSE='#'
- else
- IS_MACOSX_TRUE='#'
- IS_MACOSX_FALSE=
- fi
- if test -n "$HPUX"; then
- IS_HPUX_TRUE=
- IS_HPUX_FALSE='#'
- else
- IS_HPUX_TRUE='#'
- IS_HPUX_FALSE=
- fi
- if test -n "$SPARC"; then
- IS_SPARC_TRUE=
- IS_SPARC_FALSE='#'
- else
- IS_SPARC_TRUE='#'
- IS_SPARC_FALSE=
- fi
- if test -n "$SOLARIS"; then
- IS_SOLARIS_TRUE=
- IS_SOLARIS_FALSE='#'
- else
- IS_SOLARIS_TRUE='#'
- IS_SOLARIS_FALSE=
- fi
- if test -n "$MIPS_SGI_IRIX"; then
- IS_MIPS_SGI_IRIX_TRUE=
- IS_MIPS_SGI_IRIX_FALSE='#'
- else
- IS_MIPS_SGI_IRIX_TRUE='#'
- IS_MIPS_SGI_IRIX_FALSE=
- fi
- ############
- ## C++
- ############
- if test -z "$CXX"; then
- as_fn_error $? "No C++ compiler found. Cannot compile scilab without a C++ compiler" "$LINENO" 5
- fi
- case "$CXX" in
- g++-* | g++ | ccache*g++ | ccache*g++-* )
- ## With GNU C++ Compiler
- # enable the code coverage
- if test "$enable_code_coverage" = yes; then
- CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
- fi
- if test "$enable_debug_CXX" = yes; then
- CXXFLAGS="$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"
- case "$host" in
- *-linux-gnu )
- # Only doing that under Linux
- CXXFLAGS="$CXXFLAGS -fdiagnostics-show-option -Werror=format-security"
- ;;
- esac
- else
- CXXFLAGS="$CXXFLAGS -DNDEBUG"
- fi
- CXXFLAGS="$CXXFLAGS -fno-stack-protector" # bug 3131
- ;;
- clang-* | clang)
- # clang expect an explict declaration
- LDFLAGS="$LDFLAGS -lstdc++"
- ;;
- esac
- #### 64 bits detection
- IS_64_BITS_CPU=false
- case "$host" in
- x86_64-*-linux-gnu | x86_64-linux-gnu | ia64-*-linux-gnu | alpha-*-linux-gnu | alpha-*-netbsd* | x86_64-*-netbsd* | sparc64-*-netbsd*)
- IS_64_BITS_CPU=true
- ;;
- esac
- ##########"
- case "$CC" in
- gcc-* | gcc | ccache*gcc | ccache*gcc-* )
- ## With GNU Compiler
- # enable the code coverage
- if test "$enable_code_coverage" = yes; then
- CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- fi
- if test "$enable_debug_C" = yes; then
- CFLAGS="$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"
- # used to be -O
- # -D_FORTIFY_SOURCE=2
- case "$host" in
- *-linux-gnu )
- # Only doing that under Linux
- if test "$enable_debugLinker" = yes; then
- LDFLAGS="$LDFLAGS -Wl,--warn-common,-x"
- fi
- CFLAGS="$CFLAGS -fdiagnostics-show-option -Werror=format-security"
- ;;
- esac
- else
- CFLAGS="$CFLAGS -DNDEBUG"
- fi
- CFLAGS="$CFLAGS -fno-stack-protector" # bug 3131
- # Explictly disable the as needed. It was disable by default but Ubuntu
- # activated it by default since release 11.04. See bug #8961.
- # Once all cyclic dependencies have been dropped, this line could be removed.
- # Check if linker supports --as-needed and --no-as-needed options
- if $LD --help 2>/dev/null | grep no-as-needed > /dev/null; then
- LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
- fi
- case "$host" in
- x86_64-*-linux-gnu | x86_64-linux-gnu)
- CFLAGS="$CFLAGS -DNARROWPROTO -m64"
- ;;
- i*86-*-linux-gnu | *-pc-linux-gnu | i*86-*-linux )
- CFLAGS="$CFLAGS -DNARROWPROTO"
- ;;
- ia64-*-linux-gnu )
- CFLAGS="$CFLAGS -DNARROWPROTO"
- ;;
- alpha-*-linux-gnu)
- CFLAGS="$CFLAGS -mieee-with-inexact"
- LDFLAGS="$LDFLAGS -mieee-with-inexact"
- ;;
- powerpc-*-linux-gnu)
- CFLAGS="$CFLAGS -D_GNU_SOURCE"
- ;;
- *-*-solaris*)
- CFLAGS="$CFLAGS -DSVR4 -DSYSV -Dsolaris"
- ;;
- *-*-freebsd*)
- CFLAGS="$CFLAGS -Dfreebsd"
- LDFLAGS="$LDFLAGS -lm"
- ;;
- alpha-*-netbsd*)
- CFLAGS="$CFLAGS -Dnetbsd -mieee"
- FFLAGS="$FFLAGS -Dnetbsd -mieee"
- ;;
- *-*-netbsd*)
- CFLAGS="$CFLAGS -Dnetbsd"
- ;;
- *-*-darwin*)
- CFLAGS="$CFLAGS -no_compact_linkedit -mmacosx-version-min=10.5"
- CXXFLAGS="$CXXFLAGS -no_compact_linkedit -mmacosx-version-min=10.5"
- FFLAGS="$FFLAGS -mmacosx-version-min=10.5"
- case "$F77" in
- gfortran-*|gfortran)
- # Extract from gfortran -v the version it has been built for
- MAC_DETECTED_ARCH="`$F77 -v 2>&1|grep "Target:"|sed -e "s/Target: \([a-z0-9A-Z_]*\).*/\1/g"`"
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gfortran not used. Could not detect the architecture. Switch to the default case: x86_64" >&5
- $as_echo "$as_me: WARNING: gfortran not used. Could not detect the architecture. Switch to the default case: x86_64" >&2;}
- MAC_DETECTED_ARCH="x86_64"
- ;;
- esac
- CC="$CC -arch $MAC_DETECTED_ARCH"
- CXX="$CXX -arch $MAC_DETECTED_ARCH"
- LDFLAGS="-L$FINK_PREFIX/lib/ $LDFLAGS"
- CFLAGS=" $CFLAGS -I$FINK_PREFIX/include "
- CXXFLAGS=" $CXXFLAGS -I$FINK_PREFIX/include "
- ;;
- esac
- ;; # end of the gcc case on the $CC
- *)
- ## CC compiler (not GCC)
- if test "$enable_debug_C" != yes; then
- CFLAGS="$CFLAGS -DNDEBUG"
- fi
- case "$host" in
- # Dec Alpha OSF 4
- alpha*-dec-osf4.*)
- CFLAGS="$CFLAGS -std -ieee_with_inexact"
- LDFLAGS="$LDFLAGS -ieee_with_inexact"
- ;;
- alpha*-dec-osf*)
- CFLAGS="$CFLAGS -ieee_with_inexact"
- LDFLAGS="$LDFLAGS -ieee_with_inexact"
- ;;
- rs6000-*-*) # IBM AIX RS 6000 (NO LONGER SUPPORTED)
- CFLAGS="-Daix -DSYSV"
- ;;
- mips-sgi-irix*) # SGI
- CFLAGS="$CFLAGS -DSYSV -DSVR4"
- ;;
- *-*-hpux9.*)
- CFLAGS="$CFLAGS -DSYSV -Dhpux"
- ;;
- *-*-hpux10.*) # HP 10
- if test "$enable_debug_C" = yes; then
- CFLAGS="$CFLAGS -DSYSV -Dhpux"
- else
- CFLAGS="$CFLAGS -DSYSV -Dhpux +Z +DAportable"
- fi
- ;;
- *-*-hpux11.*) # HP 11
- CFLAGS="$CFLAGS -DSYSV -Dhpux -Dhppa +Z +DAportable"
- ;;
- *-*-solaris*) # SUN SOLARIS
- CFLAGS="$CFLAGS -DSVR4 -DSYSV -Dsolaris -I/usr/local/include/"
- LDFLAGS="$LDFLAGS -L/usr/local/lib/"
- ;;
- esac
- ;; # end of not a gcc compiler
- esac
- # enable the code coverage
- if test "$enable_code_coverage" = yes; then
- # Extract the first word of "lcov", so it can be a program name with args.
- set dummy lcov; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_LCOV+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $LCOV in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- LCOV=$ac_cv_path_LCOV
- if test -n "$LCOV"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
- $as_echo "$LCOV" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -z "$LCOV" ; then
- as_fn_error $? "Cannot find lcov. Please install it (package lcov under Debian) or remove the option --enable-code-coverage" "$LINENO" 5
- fi
- # Extract the first word of "genhtml", so it can be a program name with args.
- set dummy genhtml; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_GENHTML+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $GENHTML in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- GENHTML=$ac_cv_path_GENHTML
- if test -n "$GENHTML"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
- $as_echo "$GENHTML" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -z "$GENHTML" ; then
- as_fn_error $? "Cannot find genhtml. Please install it (package lcov under Debian) or remove the option --enable-code-coverage" "$LINENO" 5
- fi
- LDFLAGS="$LDFLAGS -coverage"
- fi
- if test "$enable_code_coverage" = yes; then
- CODE_COVERAGE_TRUE=
- CODE_COVERAGE_FALSE='#'
- else
- CODE_COVERAGE_TRUE='#'
- CODE_COVERAGE_FALSE=
- fi
- # flag for possible compilations in configure
- CFLAGS="$CFLAGS "'-I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/'
- CXXFLAGS="$CXXFLAGS "'-I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/'
- FFLAGS="$FFLAGS "'-I$(top_srcdir)/modules/core/includes/'
- if test $IS_64_BITS_CPU = true -o "$MACOSX" = "1"; then
- if test $f90compatible = false; then
- as_fn_error $? "64 bits support needs a fortran 90 compiler (try --with-gfortran)." "$LINENO" 5
- fi
- $as_echo "#define USE_DYNAMIC_STACK /**/" >>confdefs.h
- fi
- if test $IS_64_BITS_CPU = true; then
- IS_64_BITS_CPU_TRUE=
- IS_64_BITS_CPU_FALSE='#'
- else
- IS_64_BITS_CPU_TRUE='#'
- IS_64_BITS_CPU_FALSE=
- fi
- if test $IS_64_BITS_CPU = true -o "$MACOSX" = "1"; then
- USE_DYNAMIC_STACK_TRUE=
- USE_DYNAMIC_STACK_FALSE='#'
- else
- USE_DYNAMIC_STACK_TRUE='#'
- USE_DYNAMIC_STACK_FALSE=
- fi
- ################
- ## SSE
- ## By default, for x86 CPU, enable the SSE.
- ## Note that it is already the case with 64 bits CPU
- ## (these extensions are enabled by default by gcc)
- ################
- case "$host" in
- i*86-linux-gnu|i*86-*-linux-gnu)
- CFLAGS="$CFLAGS -msse"
- FFLAGS="$FFLAGS -msse"
- CPPFLAGS="$CPPFLAGS -msse"
- ;;
- esac
- #######################
- ## test for underscores (name mangling issues between C and fortran)
- #######################
- for ac_prog in nm
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_NM+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$NM"; then
- ac_cv_prog_NM="$NM" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_NM="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- NM=$ac_cv_prog_NM
- if test -n "$NM"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
- $as_echo "$NM" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$NM" && break
- done
- test -n "$NM" || NM="no"
- if test "x$NM" = "xno"; then
- as_fn_error $? "Unable to find nm in the path. nm is used to list all the symbol from a lib" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for leading underscores with Fortran (name-mangling scheme)" >&5
- $as_echo_n "checking for leading underscores with Fortran (name-mangling scheme)... " >&6; }
- cat << EOF > pipof.f
- subroutine pipof
- end
- EOF
- eval "$F77 -c pipof.f > /dev/null 2>&1"
- FC_LEADING_UNDERSCORE=no
- FC_TRAILING_UNDERSCORE=no
- output=`$NM $NMOPT pipof.o|grep _pipof 2>&1`
- if test ! -z "$output"; then
- FC_LEADING_UNDERSCORE=yes
- FC_TRAILING_UNDERSCORE=no
- fi
- output=`$NM $NMOPT pipof.o|grep pipof_ 2>&1`
- if test ! -z "$output"; then
- FC_LEADING_UNDERSCORE=no
- FC_TRAILING_UNDERSCORE=yes
- fi
- output=`$NM $NMOPT pipof.o|grep _pipof_ 2>&1`
- if test ! -z "$output"; then
- FC_LEADING_UNDERSCORE=yes
- FC_TRAILING_UNDERSCORE=yes
- fi
- if test "$FC_LEADING_UNDERSCORE" = yes; then
- $as_echo "#define WLU /**/" >>confdefs.h
- fi
- if test "$FC_TRAILING_UNDERSCORE" = yes; then
- $as_echo "#define WTU /**/" >>confdefs.h
- fi
- rm -f pipof.f pipof.o
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_LEADING_UNDERSCORE" >&5
- $as_echo "$FC_LEADING_UNDERSCORE" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trailing underscores with Fortran (name-mangling scheme)" >&5
- $as_echo_n "checking for trailing underscores with Fortran (name-mangling scheme)... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_TRAILING_UNDERSCORE" >&5
- $as_echo "$FC_TRAILING_UNDERSCORE" >&6; }
- #####################
- ## test for sharpsign
- #####################
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking use of the sharpsign in CPP" >&5
- $as_echo_n "checking use of the sharpsign in CPP... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define C2F(name) name##_
- int
- main ()
- {
- C2F(toto)()
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define CNAME(name1,name2) name1##name2" >>confdefs.h
- USE_SHARP_SIGN=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- $as_echo "#define CNAME(name1,name2) name1/**/name2" >>confdefs.h
- USE_SHARP_SIGN=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ## Define C2F and F2C entry point conversion ##
- if test "$FC_TRAILING_UNDERSCORE" = yes; then
- if test "$USE_SHARP_SIGN" = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F with Trailing Underscore and Sharp Sign" >&5
- $as_echo "Define C2F with Trailing Underscore and Sharp Sign" >&6; }
- $as_echo "#define C2F(name) name##_" >>confdefs.h
- $as_echo "#define F2C(name) name##_" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F with Trailing Underscore and without Sharp Sign" >&5
- $as_echo "Define C2F with Trailing Underscore and without Sharp Sign" >&6; }
- $as_echo "#define C2F(name) name/**/_" >>confdefs.h
- $as_echo "#define F2C(name) name/**/_" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Define C2F without Trailing Underscore" >&5
- $as_echo "Define C2F without Trailing Underscore" >&6; }
- $as_echo "#define C2F(name) name" >>confdefs.h
- $as_echo "#define F2C(name) name" >>confdefs.h
- fi
- #################
- ## HDF5
- #################
- # Check whether --with-hdf5 was given.
- if test "${with_hdf5+set}" = set; then :
- withval=$with_hdf5;
- fi
- HDF5_ENABLE=no
- if test "$with_hdf5" != no; then
- # Check whether --with-hdf5_include was given.
- if test "${with_hdf5_include+set}" = set; then :
- withval=$with_hdf5_include; with_hdf5_include=$withval
- else
- with_hdf5_include='yes'
- fi
- # Check whether --with-hdf5_library was given.
- if test "${with_hdf5_library+set}" = set; then :
- withval=$with_hdf5_library; with_hdf5_library=$withval
- else
- with_hdf5_library='yes'
- fi
- if test "x$with_hdf5_include" != "xyes"; then
- save_CFLAGS="$CFLAGS"
- CFLAGS="-I$with_hdf5_include"
- ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
- if test "x$ac_cv_header_hdf5_h" = xyes; then :
- HDF5_CFLAGS="$CFLAGS"
- else
- as_fn_error $? "Cannot find headers (hdf5.h) of the library HDF5 in $with_hdf5_include. Please install the dev package" "$LINENO" 5
- fi
- CFLAGS="$save_CFLAGS"
- else
- HDF5_CFLAGS=""
- ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
- if test "x$ac_cv_header_hdf5_h" = xyes; then :
- HDF5_CFLAGS=""
- else
- as_fn_error $? "Cannot find headers (hdf5.h) of the library HDF5. Please install the dev package" "$LINENO" 5
- fi
- fi
- save_LIBS="$LIBS"
- # --with-hdf5-library set then check in this dir
- if test "x$with_hdf5_library" != "xyes"; then
- HDF5_LIBS="-L$with_hdf5_library -lhdf5"
- LIBS="$LIBS $HDF5_LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
- $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
- if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lhdf5 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char H5Fopen ();
- int
- main ()
- {
- return H5Fopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_hdf5_H5Fopen=yes
- else
- ac_cv_lib_hdf5_H5Fopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
- $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
- if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBHDF5 1
- _ACEOF
- LIBS="-lhdf5 $LIBS"
- else
- as_fn_error $? "libhdf5 : library missing. (Cannot find symbol H5Fopen) in $with_hdf5_library. Check if libhdf5 is installed and if the version is correct" "$LINENO" 5
- fi
- else
- HDF5_LIBS="-lhdf5"
- LIBS="$LIBS $HDF5_LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fopen in -lhdf5" >&5
- $as_echo_n "checking for H5Fopen in -lhdf5... " >&6; }
- if ${ac_cv_lib_hdf5_H5Fopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lhdf5 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char H5Fopen ();
- int
- main ()
- {
- return H5Fopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_hdf5_H5Fopen=yes
- else
- ac_cv_lib_hdf5_H5Fopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fopen" >&5
- $as_echo "$ac_cv_lib_hdf5_H5Fopen" >&6; }
- if test "x$ac_cv_lib_hdf5_H5Fopen" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBHDF5 1
- _ACEOF
- LIBS="-lhdf5 $LIBS"
- else
- as_fn_error $? "libhdf5 : library missing. (Cannot find symbol H5Fopen). Check if libhdf5 is installed and if the version is correct" "$LINENO" 5
- fi
- fi
- LIBS="$save_LIBS"
- $as_echo "#define WITH_HDF5 /**/" >>confdefs.h
- # Gets compilation and library flags
- # TODO: check if the JNI JHDF5 library are available
- HDF5_ENABLE=yes
- fi
- if test "$with_hdf5" != no; then
- HDF5_TRUE=
- HDF5_FALSE='#'
- else
- HDF5_TRUE='#'
- HDF5_FALSE=
- fi
- #################
- ## XCOS
- #################
- # Check whether --with-xcos was given.
- if test "${with_xcos+set}" = set; then :
- withval=$with_xcos;
- fi
- # Check whether --with-modelica was given.
- if test "${with_modelica+set}" = set; then :
- withval=$with_modelica;
- fi
- if test "$with_gui" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GUI is disabled. Disabling then xcos" >&5
- $as_echo "$as_me: WARNING: GUI is disabled. Disabling then xcos" >&2;}
- with_xcos=no
- fi
- XCOS_ENABLE=no
- if test "$with_xcos" != no -a "$with_gui" != no; then
- $as_echo "#define WITH_XCOS /**/" >>confdefs.h
- save_LIBS="$LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
- $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
- if ${ac_cv_lib_rt_clock_gettime+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char clock_gettime ();
- int
- main ()
- {
- return clock_gettime ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_clock_gettime=yes
- else
- ac_cv_lib_rt_clock_gettime=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
- $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
- if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
- RT_LIB="-lrt";
- $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 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" >&5
- $as_echo "$as_me: WARNING: 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" >&2;}
- fi
- LIBS="$save_LIBS"
- #################
- ## ocaml which only called when using Xcos
- #################
- if test "$with_modelica" != no; then
- # checking for ocamlc
- OCAMLC=
- OCAMLOPT=
- OCAMLDEP=
- # Extract the first word of "ocamlc", so it can be a program name with args.
- set dummy ocamlc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_OCAMLC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$OCAMLC"; then
- ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OCAMLC="ocamlc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_OCAMLC" && ac_cv_prog_OCAMLC="no"
- fi
- fi
- OCAMLC=$ac_cv_prog_OCAMLC
- if test -n "$OCAMLC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
- $as_echo "$OCAMLC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$OCAMLC" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-ocaml to disable the Modelica compiler)." >&5
- $as_echo "$as_me: WARNING: ocamlc not found. Mandatory to build the Scicos modelica compiler (Use --without-ocaml to disable the Modelica compiler)." >&2;}
- fi
- # Extract the first word of "ocamlopt", so it can be a program name with args.
- set dummy ocamlopt; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_OCAMLOPT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$OCAMLOPT"; then
- ac_cv_prog_OCAMLOPT="$OCAMLOPT" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OCAMLOPT="ocamlopt"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_OCAMLOPT" && ac_cv_prog_OCAMLOPT="no"
- fi
- fi
- OCAMLOPT=$ac_cv_prog_OCAMLOPT
- if test -n "$OCAMLOPT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
- $as_echo "$OCAMLOPT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$OCAMLOPT" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlopt not found. Mandatory to build the Scicos modelica compiler." >&5
- $as_echo "$as_me: WARNING: ocamlopt not found. Mandatory to build the Scicos modelica compiler." >&2;}
- fi
- # Extract the first word of "ocamldep", so it can be a program name with args.
- set dummy ocamldep; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_OCAMLDEP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$OCAMLDEP"; then
- ac_cv_prog_OCAMLDEP="$OCAMLDEP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OCAMLDEP="ocamldep"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_OCAMLDEP" && ac_cv_prog_OCAMLDEP="no"
- fi
- fi
- OCAMLDEP=$ac_cv_prog_OCAMLDEP
- if test -n "$OCAMLDEP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
- $as_echo "$OCAMLDEP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$OCAMLDEP" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamldep not found. Mandatory to build the Scicos modelica compiler." >&5
- $as_echo "$as_me: WARNING: ocamldep not found. Mandatory to build the Scicos modelica compiler." >&2;}
- fi
- # Extract the first word of "ocamlyacc", so it can be a program name with args.
- set dummy ocamlyacc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_OCAMLYACC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$OCAMLYACC"; then
- ac_cv_prog_OCAMLYACC="$OCAMLYACC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OCAMLYACC="ocamlyacc"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_OCAMLYACC" && ac_cv_prog_OCAMLYACC="no"
- fi
- fi
- OCAMLYACC=$ac_cv_prog_OCAMLYACC
- if test -n "$OCAMLYACC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLYACC" >&5
- $as_echo "$OCAMLYACC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$OCAMLYACC" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamlyacc not found. Mandatory to build the Scicos modelica compiler." >&5
- $as_echo "$as_me: WARNING: ocamlyacc not found. Mandatory to build the Scicos modelica compiler." >&2;}
- fi
- # Extract the first word of "ocamllex", so it can be a program name with args.
- set dummy ocamllex; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_OCAMLLEX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$OCAMLLEX"; then
- ac_cv_prog_OCAMLLEX="$OCAMLLEX" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_prog_OCAMLLEX="ocamllex"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_prog_OCAMLLEX" && ac_cv_prog_OCAMLLEX="no"
- fi
- fi
- OCAMLLEX=$ac_cv_prog_OCAMLLEX
- if test -n "$OCAMLLEX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLLEX" >&5
- $as_echo "$OCAMLLEX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$OCAMLLEX" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ocamllex not found. Mandatory to build the Scicos modelica compiler." >&5
- $as_echo "$as_me: WARNING: ocamllex not found. Mandatory to build the Scicos modelica compiler." >&2;}
- fi
- $as_echo "#define WITH_OCAML /**/" >>confdefs.h
- fi
- XCOS_ENABLE=yes
- fi
- if test "$with_modelica" != no -a "$OCAMLC" != no -a "$OCAMLOPT" != no; then
- OCAML_TRUE=
- OCAML_FALSE='#'
- else
- OCAML_TRUE='#'
- OCAML_FALSE=
- fi
- if test "$XCOS_ENABLE" != no; then
- XCOS_TRUE=
- XCOS_FALSE='#'
- else
- XCOS_TRUE='#'
- XCOS_FALSE=
- fi
- ###########################
- ## test for JAVA compiler
- ###########################
- if test "$with_javasci" != no -o "$with_gui" != no -o "$enable_build_help" != no; then
- # Need MacosX Version to specify some path.
- case "$host_os" in
- *Darwin* | *darwin*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking MacOSX Version" >&5
- $as_echo_n "checking MacOSX Version... " >&6; }
- if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.7" > /dev/null; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.7 - Lion." >&5
- $as_echo "MacOSX 10.7 - Lion." >&6; }
- macosx_version="10.7"
- else
- if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.6" > /dev/null; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.6 - Snow Leopard." >&5
- $as_echo "MacOSX 10.6 - Snow Leopard." >&6; }
- macosx_version="10.6"
- else
- if eval system_profiler SPSoftwareDataType | grep "System Version" | grep "10\.5" > /dev/null; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: MacOSX 10.5 - Leopard." >&5
- $as_echo "MacOSX 10.5 - Leopard." >&6; }
- macosx_version="10.5"
- else
- as_fn_error $? "MacOSX 10.5,10.6 or 10.7 is needed." "$LINENO" 5
- fi
- fi
- fi
- ;;
- esac
- # See if --with-jdk command line argument is given
- # Try to detect the installed JVM, this could be controlled
- # by the above --with options
- # Check whether --with-jdk was given.
- if test "${with_jdk+set}" = set; then :
- withval=$with_jdk; ok=$withval
- else
- ok=no
- fi
- if test "$ok" = "no" ; then
- NO=op
- elif test "$ok" = "yes" || test ! -d "$ok"; then
- as_fn_error $? "--with-jdk=DIR option, must pass a valid DIR" "$LINENO" 5
- elif test "$ok" != "no" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use JDK path specified ($ok)" >&5
- $as_echo "Use JDK path specified ($ok)" >&6; }
- ac_java_jvm_dir=$ok
- ac_java_jvm_name=jdk
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking JAVA_HOME variable" >&5
- $as_echo_n "checking JAVA_HOME variable... " >&6; }
- # check if JAVA_HOME is set. If it is the case, try to use if first
- if test ! -z "$JAVA_HOME" && test "x$ac_java_jvm_dir" = "x"; then
- if test -x $JAVA_HOME/bin/javac${EXEEXT}; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAVA_HOME variable found, use it as JVM root directory" >&5
- $as_echo "JAVA_HOME variable found, use it as JVM root directory" >&6; }
- ac_java_jvm_dir=`cd $JAVA_HOME ; pwd`
- JAVAC=$ac_java_jvm_dir/bin/javac${EXEEXT}
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAVA_HOME variable found, but unable to find javac
- Maybe JAVA_HOME is pointing to a JRE (Java Runtime Environment) instead of a JDK (Java Developement Kit) ? )" >&5
- $as_echo "JAVA_HOME variable found, but unable to find javac
- Maybe JAVA_HOME is pointing to a JRE (Java Runtime Environment) instead of a JDK (Java Developement Kit) ? )" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defined" >&5
- $as_echo "not defined" >&6; }
- fi
- # Mac OS default path
- if test "x$JAVAC" = "x" && test "x$ac_java_jvm_dir" != "x"; then
- case "$host_os" in
- *darwin* )
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin (Mac OS X) found. Use the standard paths." >&5
- $as_echo "Darwin (Mac OS X) found. Use the standard paths." >&6; }
- # See: http://developer.apple.com/mac/library/qa/qa2001/qa1170.html
- ac_java_jvm_dir=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)
- JAVAC=$ac_java_jvm_dir/bin/javac
- ;;
- esac
- fi
- # if we do not know the jvm dir, javac will be found on the PATH
- if test "x$JAVAC" = "x" && test "x$ac_java_jvm_dir" != "x"; then
- ac_java_jvm_dir=`cd $ac_java_jvm_dir ; pwd`
- JAVAC=$ac_java_jvm_dir/bin/javac${EXEEXT}
- fi
- # Search for and test the javac compiler
- # Mac OS X
- if test "x$JAVAC" = "x" ; then
- case "$host_os" in
- *darwin* )
- # Don't follow the symlink since Java under MacOS is messy
- # Uses the wrapper providing by Apple to retrieve the path
- # See: http://developer.apple.com/mac/library/qa/qa2001/qa1170.html
- JAVAC=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/bin/javac
- DONT_FOLLOW_SYMLINK=yes
- ;;
- esac
- fi
- if test "x$JAVAC" = "x" ; then
- # Extract the first word of "javac", so it can be a program name with args.
- set dummy javac; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVAC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVAC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVAC=$ac_cv_path_JAVAC
- if test -n "$JAVAC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
- $as_echo "$JAVAC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$JAVAC" = "x" ; then
- as_fn_error $? "javac not found on PATH ... did you try with --with-jdk=DIR" "$LINENO" 5
- fi
- fi
- if test ! -f "$JAVAC" ; then
- as_fn_error $? "javac '$JAVAC' does not exist.
- Perhaps Java is not installed or you passed a bad dir to a --with option." "$LINENO" 5
- fi
- # Check for installs which uses a symlink. If it is the case, try to resolve JAVA_HOME from it
- if test -h "$JAVAC" -a "x$DONT_FOLLOW_SYMLINK" != "xyes"; then
- _cur="$JAVAC"
- if test ! -z ""javac""; then
- _fileNameWanted="javac"
- else
- _fileNameWanted=$JAVAC
- fi
- while ls -ld "$_cur" 2>/dev/null | grep " -> " >/dev/null; do
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Symlink for $_cur" >&5
- $as_echo_n "checking Symlink for $_cur... " >&6; }
- _slink=`ls -ld "$_cur" | sed 's/.* -> //'`
- if test "$_fileNameWanted" != "`basename $_slink`"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Filename changed... Keeping the one found before" >&5
- $as_echo "Filename changed... Keeping the one found before" >&6; }
- break
- fi
- case "$_slink" in
- /*)
- _cur="$_slink";;
- # 'X' avoids triggering unwanted echo options.
- *)
- _cur=`echo "X$_cur" | sed -e 's/^X//' -e 's:[^/]*$::'`"$_slink";;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cur" >&5
- $as_echo "$_cur" >&6; }
- done
- SYMLINK_FOLLOWED_TO="$_cur"
- JAVAC=$SYMLINK_FOLLOWED_TO
- TMP=`dirname $SYMLINK_FOLLOWED_TO`
- TMP=`dirname $TMP`
- ac_java_jvm_dir=$TMP
- echo "Java base directory (probably) available here : $ac_java_jvm_dir"
- fi
- # If we were searching for javac, then set ac_java_jvm_dir
- if test "x$ac_java_jvm_dir" = "x"; then
- TMP=`dirname $JAVAC`
- TMP=`dirname $TMP`
- ac_java_jvm_dir=$TMP
- fi
- # Look for a setting for the CLASSPATH, we might need one to run JAVAC
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip or jar files to include on CLASSPATH" >&5
- $as_echo_n "checking for zip or jar files to include on CLASSPATH... " >&6; }
- if test "x$ac_java_jvm_dir" = "x" ; then
- as_fn_error $? "jvm directory not set" "$LINENO" 5
- fi
- # GNU gcj does not need to set the CLASSPATH.
- # Assume that JDK 1.4 and newer systems will
- # not need to explicitly set the CLASSPATH.
- # Append CLASSPATH if env var is set. Avoid append
- # under msys because CLASSPATH is in Win32 format
- # and we can't combine it with a msys path.
- if test "x$CLASSPATH" != "x" && test "$ac_cv_tcl_win32" != "yes" ; then
- echo Adding user supplied CLASSPATH env var >&5
- echo Adding user supplied CLASSPATH env var
- ac_java_classpath="${ac_java_classpath}:${CLASSPATH}"
- fi
- echo Using CLASSPATH=$ac_java_classpath >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_classpath" >&5
- $as_echo "$ac_java_classpath" >&6; }
- # FIXME : add detection of command line arguments for JAVAC
- JAVAC_FLAGS=-g
- JAVAC_D_FLAG=-d
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the java compiler works" >&5
- $as_echo_n "checking to see if the java compiler works... " >&6; }
- cat << \EOF > conftest.java
- // #line 10575 "configure"
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- works=yes
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- if test "$works" = "yes" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5
- $as_echo "$works" >&6; }
- else
- as_fn_error $? "Could not compile simple Java program with '$JAVAC'. Try with the Sun JDK (1.5 or 6)." "$LINENO" 5
- fi
- echo Using JAVAC=$JAVAC >&5
- echo Using JAVAC=$JAVAC
- echo Java found in $ac_java_jvm_dir >&5
- echo Java found in $ac_java_jvm_dir
- # Try to detect non JDK JVMs. If we can't, then just assume a jdk
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of jvm" >&5
- $as_echo_n "checking type of jvm... " >&6; }
- if test "x$ac_java_jvm_name" = "x" ; then
- cat << \EOF > conftest.java
- // #line 10641 "configure"
- import gnu.java.io.EncodingManager;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- ac_java_jvm_name=gcj
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- ac_java_jvm_name=gcj
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test "x$ac_java_jvm_name" = "x" ; then
- ac_java_jvm_name=jdk
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_jvm_name" >&5
- $as_echo "$ac_java_jvm_name" >&6; }
- case "$ac_java_jvm_name" in
- gcj) DO=nothing ;;
- jdk) DO=nothing ;;
- *) as_fn_error $? "'$ac_java_jvm_name' is not a supported JVM" "$LINENO" 5 ;;
- esac
- # Try to detect the version of java that is installed
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking java API version" >&5
- $as_echo_n "checking java API version... " >&6; }
- # The class java.nio.charset.Charset is new to 1.4
- cat << \EOF > conftest.java
- // #line 10704 "configure"
- import java.nio.charset.Charset;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- ac_java_jvm_version=1.4
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- ac_java_jvm_version=1.4
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- # The class java.lang.StringBuilder is new to 1.5
- cat << \EOF > conftest.java
- // #line 10748 "configure"
- import java.lang.StringBuilder;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- ac_java_jvm_version=1.5
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- ac_java_jvm_version=1.5
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- # The class java.util.ArrayDeque is new to 1.6
- cat << \EOF > conftest.java
- // #line 10792 "configure"
- import java.util.ArrayDeque;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- ac_java_jvm_version=1.6
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- ac_java_jvm_version=1.6
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- # The class java.nio.file.Path is new to 1.7
- cat << \EOF > conftest.java
- // #line 10836 "configure"
- import java.nio.file.Path;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- ac_java_jvm_version=1.7
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- ac_java_jvm_version=1.7
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- fi
- if test "x$ac_java_jvm_version" = "x" ; then
- as_fn_error $? "Could not detect Java version, 1.4 or newer is required" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_jvm_version" >&5
- $as_echo "$ac_java_jvm_version" >&6; }
- case "$ac_java_jvm_version" in
- 1.6 | 1.7)
- ;;
- *)
- as_fn_error $? "Wrong version of Java. Expected at least 1.6. Found $ac_java_jvm_version" "$LINENO" 5
- ;;
- esac
- if test "$ac_java_jvm_name" = "jdk"; then
- JAVA_HOME=$ac_java_jvm_dir
- JAVA_VERSION=$ac_java_jvm_version
- # AC_JAVA_TOOLS
- # JAVA_HOME specificed, check if we can find jni.h in this path
- if test ! -z "$JAVA_HOME"; then
- ac_java_jvm_dir=$JAVA_HOME
- fi
- # Look for jni.h in the subdirectory $ac_java_jvm_dir/include
- F=$ac_java_jvm_dir/include/jni.h
- if test -f "$F" ; then
- ac_java_jvm_jni_include_flags="-I`dirname $F`"
- else
- F=`ls $ac_java_jvm_dir/include/*/jni.h 2>/dev/null`
- if test -f "$F" ; then
- ac_java_jvm_jni_include_flags="-I`dirname $F`"
- else
- case "$host_os" in
- *darwin* )
- ac_java_jvm_jni_include_flags="-I/Developer/SDKs/MacOSX${macosx_version}.sdk/System/Library/Frameworks/JavaVM.framework/Headers -I$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/include/"
- ;;
- *)
- as_fn_error $? "Could not locate Java's jni.h include file" "$LINENO" 5
- ;;
- esac
- fi
- fi
- # Look for jni_md.h in an arch specific subdirectory
- # we assume that there is only one arch subdirectory,
- # if that is not the case we would need to use $host
- F=`ls $ac_java_jvm_dir/include/*/jni_md.h 2>/dev/null`
- if test -f "$F" ; then
- ac_java_jvm_jni_include_flags="$ac_java_jvm_jni_include_flags -I`dirname $F`"
- fi
- echo Using the following JNI include flags $ac_java_jvm_jni_include_flags >&5
- echo Using the following JNI include flags $ac_java_jvm_jni_include_flags
- # Make sure a simple #include <jni.h> will compile.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jni.h can be included" >&5
- $as_echo_n "checking if jni.h can be included... " >&6; }
- if ${ac_cv_java_jvm_jni_working+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_saved_cflags=$CFLAGS
- CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <jni.h>
- int
- main ()
- {
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_java_jvm_jni_working=yes
- else
- as_fn_error $? "could not compile file that includes jni.h. If you run Mac OS X please make sure you have 'Java developer package'. This is available on http://connect.apple.com/ " "$LINENO" 5
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CFLAGS=$ac_saved_cflags
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_java_jvm_jni_working" >&5
- $as_echo "$ac_cv_java_jvm_jni_working" >&6; }
- # FIXME: should we look for or require a include/native_threads dir?
- JAVA_JNI_INCLUDE=$ac_java_jvm_jni_include_flags
- case "$host_os" in
- *Darwin* | *darwin*)
- # Mac OS X does not link against the lib but uses -framework
- JAVA_JNI_LIBS="-framework JavaVM"
- ;;
- *)
- machine=`uname -m`
- case "$machine" in
- i?86)
- machine=i386
- ;;
- i86pc)
- # Solaris 10 x86
- machine=i386
- ;;
- sun*|sparc64)
- # Sun
- machine=sparc
- ;;
- powerpc|ppc64)
- machine=ppc
- ;;
- armv*)
- machine=arm
- ;;
- s390x) # s390 arch can also returns s390x
- machine=s390
- ;;
- sh*)
- machine=sh
- ;;
- mips64)
- machine=mips
- ;;
- esac
- echo Looking for JNI libs with $machine as machine hardware name >&5
- echo Looking for JNI libs with $machine as machine hardware name
- # Check for known JDK installation layouts
- # Gives the name of the symbol we want to look for.
- # Mac OS X add a trailing _Impl
- libSymbolToTest="JNI_GetCreatedJavaVMs"
- if test "$ac_java_jvm_name" = "jdk"; then
- # Sun/Blackdown 1.4 for Linux (client JVM)
- F=jre/lib/$machine/libjava.so
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D=`dirname $ac_java_jvm_dir/$F`
- ac_java_jvm_jni_lib_runtime_path=$D
- ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
- D=$ac_java_jvm_dir/jre/lib/$machine/client
- if test ! -f $D/libjvm.so; then # Check if it is in the client or server directory
- # Try the server directory
- D=$ac_java_jvm_dir/jre/lib/$machine/server
- if test ! -f $D/libjvm.so; then
- as_fn_error $? "Could not find libjvm.so in
- jre/lib/$machine/client/ or in jre/lib/$machine/server/.
- Please report to http://bugzilla.scilab.org/" "$LINENO" 5
- fi
- fi
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/$machine/native_threads
- if test -d $D; then
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D"
- fi
- fi
- fi
- # Sun JDK 1.5 for AMD64 Linux (server JVM)
- F=jre/lib/amd64/libjava.so
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D=`dirname $ac_java_jvm_dir/$F`
- ac_java_jvm_jni_lib_runtime_path=$D
- ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
- D=$ac_java_jvm_dir/jre/lib/amd64/server
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- fi
- fi
- # Eclipse/IBM Java Compiler
- F=jre/lib/i386/client/libjvm.so
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D=`dirname $ac_java_jvm_dir/$F`
- ac_java_jvm_jni_lib_runtime_path=$D
- ac_java_jvm_jni_lib_flags="-L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/i386/server
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- fi
- fi
- # IBM Java Compiler under Suse (and probably others)
- F=jre/bin/classic/libjvm.so
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D=`dirname $ac_java_jvm_dir/$F`
- ac_java_jvm_jni_lib_runtime_path=$D
- ac_java_jvm_jni_lib_flags="-L$D -ljvm"
- D=$ac_java_jvm_dir/bin/
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljava"
- fi
- fi
- # Sun JDK 1.4 and 1.5 for Win32 (client JVM)
- F=lib/jvm.lib
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- # jre/bin/client must contain jvm.dll
- # jre/bin/server directory could also contain jvm.dll,
- # just assume the user wants to use the client JVM.
- DLL=jre/bin/client/jvm.dll
- if test -f $ac_java_jvm_dir/$DLL ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D1=$ac_java_jvm_dir/jre/bin
- D2=$ac_java_jvm_dir/jre/bin/client
- ac_java_jvm_jni_lib_runtime_path="${D1}:${D2}"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_dir/$F"
- fi
- fi
- fi
- fi
- # Under GNU/Debian on a mipsel CPU, uname -m is still returning mips
- # causing a confusion with mips... Therefor, I have to hardcode this
- # test
- # Note that most of the code is duplicated from
- # Sun/Blackdown 1.4 for Linux (client JVM) tests
- F=jre/lib/mipsel/libjava.so
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- echo Looking for $ac_java_jvm_dir/$F >&5
- echo Looking for $ac_java_jvm_dir/$F
- if test -f $ac_java_jvm_dir/$F ; then
- echo Found $ac_java_jvm_dir/$F >&5
- echo Found $ac_java_jvm_dir/$F
- D=`dirname $ac_java_jvm_dir/$F`
- ac_java_jvm_jni_lib_runtime_path=$D
- ac_java_jvm_jni_lib_flags="-L$D -ljava -lverify"
- D=$ac_java_jvm_dir/jre/lib/mipsel/client
- if test ! -f $D/libjvm.so; then # Check if it is in the client or server directory
- # Try the server directory
- D=$ac_java_jvm_dir/jre/lib/mipsel/server
- fi
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/mipsel/native_threads
- if test -d $D; then
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D"
- fi
- fi
- fi
- # Generate error for unsupported JVM layout
- if test "x$ac_java_jvm_jni_lib_flags" = "x" ; then
- as_fn_error $? "Could not detect the location of the Java
- shared library. You will need to update java.m4
- to add support for this JVM configuration." "$LINENO" 5
- fi
- echo Using the following JNI library flags $ac_java_jvm_jni_lib_flags >&5
- echo Using the following JNI library flags $ac_java_jvm_jni_lib_flags
- echo Using the following runtime library path $ac_java_jvm_jni_lib_runtime_path >&5
- echo Using the following runtime library path $ac_java_jvm_jni_lib_runtime_path
- echo Using LD_PRELOAD=$ac_java_jvm_ld_preload >&5
- echo Using LD_BIND_NOW=$ac_java_jvm_ld_bind_now >&5
- # Make sure we can compile and link a trivial JNI program
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can link a JNI application" >&5
- $as_echo_n "checking to see if we can link a JNI application... " >&6; }
- if ${ac_cv_java_jvm_working_jni_link+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_saved_cflags=$CFLAGS
- ac_saved_libs=$LIBS
- CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
- LIBS="$LIBS $ac_java_jvm_jni_lib_flags"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <jni.h>
- int
- main ()
- {
- $libSymbolToTest(NULL,0,NULL);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_java_jvm_working_jni_link=yes
- else
- ac_cv_java_jvm_working_jni_link=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CFLAGS=$ac_saved_cflags
- LIBS=$ac_saved_libs
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_java_jvm_working_jni_link" >&5
- $as_echo "$ac_cv_java_jvm_working_jni_link" >&6; }
- # gcc can't link with some JDK .lib files under Win32.
- # Work around this problem by linking with win/libjvm.dll.a
- if test "$ac_cv_java_jvm_working_jni_link" != "yes" &&
- test "$ac_cv_tcl_win32" = "yes"; then
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_saved_cflags=$CFLAGS
- ac_saved_libs=$LIBS
- CFLAGS="$CFLAGS $ac_java_jvm_jni_include_flags"
- LIBS="$LIBS -L$srcdir/win -ljvm"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <jni.h>
- int
- main ()
- {
- $libSymbolToTest(NULL,0,NULL);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_java_jvm_working_jni_link=yes
- else
- ac_cv_java_jvm_working_jni_link=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CFLAGS=$ac_saved_cflags
- LIBS=$ac_saved_libs
- if test "$ac_cv_java_jvm_working_jni_link" = "yes"; then
- echo Using custom JNI link lib >&5
- echo Using custom JNI link lib
- ac_java_jvm_jni_lib_flags="-L$srcdir/win -ljvm"
- fi
- fi
- if test "$ac_cv_java_jvm_working_jni_link" != "yes"; then
- as_fn_error $? "could not link file that includes jni.h
- Either the configure script does not know how to deal with
- this JVM configuration or the JVM install is broken or corrupted." "$LINENO" 5
- fi
- JAVA_JNI_LIBS=$ac_java_jvm_jni_lib_flags
- JAVA_JNI_LIBS_PRELOAD=$ac_java_jvm_ld_preload
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip or jar files to include on CLASSPATH" >&5
- $as_echo_n "checking for zip or jar files to include on CLASSPATH... " >&6; }
- if test "x$ac_java_jvm_dir" = "x" ; then
- as_fn_error $? "jvm directory not set" "$LINENO" 5
- fi
- # GNU gcj does not need to set the CLASSPATH.
- # Assume that JDK 1.4 and newer systems will
- # not need to explicitly set the CLASSPATH.
- # Append CLASSPATH if env var is set. Avoid append
- # under msys because CLASSPATH is in Win32 format
- # and we can't combine it with a msys path.
- if test "x$CLASSPATH" != "x" && test "$ac_cv_tcl_win32" != "yes" ; then
- echo Adding user supplied CLASSPATH env var >&5
- echo Adding user supplied CLASSPATH env var
- ac_java_classpath="${ac_java_classpath}:${CLASSPATH}"
- fi
- echo Using CLASSPATH=$ac_java_classpath >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_java_classpath" >&5
- $as_echo "$ac_java_classpath" >&6; }
- JAVA_CLASSPATH=$ac_java_classpath
- case "$host_os" in
- *darwin*)
- ac_java_jvm_bin_dir=$(/usr/libexec/java_home --arch x86_64 --failfast --version 1.6+)/bin/
- ;;
- *)
- ac_java_jvm_bin_dir=$ac_java_jvm_dir/bin;;
- esac
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "java", so it can be a program name with args.
- set dummy java; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVA+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVA in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVA=$ac_cv_path_JAVA
- if test -n "$JAVA"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
- $as_echo "$JAVA" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "java", so it can be a program name with args.
- set dummy java; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVA+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVA in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVA=$ac_cv_path_JAVA
- if test -n "$JAVA"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
- $as_echo "$JAVA" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JAVA could not be found
- if test "x$JAVA" = "x" ; then
- as_fn_error $? "Cannot find java" "$LINENO" 5
- fi
- # Don't error if java_g can not be found
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "java_g", so it can be a program name with args.
- set dummy java_g; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVA_G+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVA_G in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVA_G="$JAVA_G" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVA_G="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVA_G=$ac_cv_path_JAVA_G
- if test -n "$JAVA_G"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_G" >&5
- $as_echo "$JAVA_G" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "java_g", so it can be a program name with args.
- set dummy java_g; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVA_G+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVA_G in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVA_G="$JAVA_G" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVA_G="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVA_G=$ac_cv_path_JAVA_G
- if test -n "$JAVA_G"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_G" >&5
- $as_echo "$JAVA_G" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JAVA_G could not be found
- if test "x$JAVA_G" = "x" ; then
- JAVA_G=$JAVA
- fi
- TOOL=javah
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "$TOOL", so it can be a program name with args.
- set dummy $TOOL; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVAH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVAH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVAH=$ac_cv_path_JAVAH
- if test -n "$JAVAH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
- $as_echo "$JAVAH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "$TOOL", so it can be a program name with args.
- set dummy $TOOL; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVAH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVAH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVAH=$ac_cv_path_JAVAH
- if test -n "$JAVAH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5
- $as_echo "$JAVAH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JAVAH could not be found
- if test "x$JAVAH" = "x" ; then
- as_fn_error $? "Cannot find $TOOL" "$LINENO" 5
- fi
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "jar", so it can be a program name with args.
- set dummy jar; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAR+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAR in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAR=$ac_cv_path_JAR
- if test -n "$JAR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
- $as_echo "$JAR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "jar", so it can be a program name with args.
- set dummy jar; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAR+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAR in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAR=$ac_cv_path_JAR
- if test -n "$JAR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
- $as_echo "$JAR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JAR could not be found
- if test "x$JAR" = "x" ; then
- as_fn_error $? "Cannot find jar" "$LINENO" 5
- fi
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "javadoc", so it can be a program name with args.
- set dummy javadoc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVADOC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVADOC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVADOC=$ac_cv_path_JAVADOC
- if test -n "$JAVADOC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
- $as_echo "$JAVADOC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "javadoc", so it can be a program name with args.
- set dummy javadoc; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JAVADOC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JAVADOC in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JAVADOC=$ac_cv_path_JAVADOC
- if test -n "$JAVADOC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
- $as_echo "$JAVADOC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JAVADOC could not be found
- if test "x$JAVADOC" = "x" ; then
- as_fn_error $? "Cannot find javadoc" "$LINENO" 5
- fi
- # Don't error if jdb can not be found
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "jdb", so it can be a program name with args.
- set dummy jdb; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JDB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JDB in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JDB="$JDB" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JDB="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JDB=$ac_cv_path_JDB
- if test -n "$JDB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDB" >&5
- $as_echo "$JDB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "jdb", so it can be a program name with args.
- set dummy jdb; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_JDB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $JDB in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_JDB="$JDB" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ac_java_jvm_bin_dir
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_JDB="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- JDB=$ac_cv_path_JDB
- if test -n "$JDB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDB" >&5
- $as_echo "$JDB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if JDB could not be found
- case "$ac_java_jvm_version" in
- *)
- # JDK on Win32 does not allow connection with suspend=n
- if test "$ac_cv_tcl_win32" = "yes"; then
- suspend="y"
- else
- suspend="n"
- fi
- JDB_ATTACH_FLAGS="-attach 8757"
- JAVA_G_FLAGS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8757,server=y,suspend=$suspend"
- JDB_ATTACH_FLAGS="-attach 8757"
- ;;
- esac
- # Check whether --with-ant was given.
- if test "${with_ant+set}" = set; then :
- withval=$with_ant; ANTPATH=$withval
- else
- ANTPATH=no
- fi
- if test "$ANTPATH" = "no" ; then
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "ant", so it can be a program name with args.
- set dummy ant; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ANT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ANT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ANT=$ac_cv_path_ANT
- if test -n "$ANT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
- $as_echo "$ANT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "ant", so it can be a program name with args.
- set dummy ant; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ANT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ANT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ANT=$ac_cv_path_ANT
- if test -n "$ANT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
- $as_echo "$ANT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if ANT could not be found
- if test "x$ANT" = "x" ; then
- as_fn_error $? "Cannot find ant" "$LINENO" 5
- fi
- elif test ! -d "$ANTPATH"; then
- as_fn_error $? "--with-ant=DIR option, must pass a valid DIR" "$LINENO" 5
- else
- if test "$cross_compiling" = "yes" ; then
- # Extract the first word of "ant", so it can be a program name with args.
- set dummy ant; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ANT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ANT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ANT=$ac_cv_path_ANT
- if test -n "$ANT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
- $as_echo "$ANT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "ant", so it can be a program name with args.
- set dummy ant; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ANT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ANT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $ANTPATH/bin $ANTPATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
- ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- ANT=$ac_cv_path_ANT
- if test -n "$ANT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5
- $as_echo "$ANT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- # Check to see if ANT could not be found
- if test "x$ANT" = "x" ; then
- as_fn_error $? "Cannot find ant" "$LINENO" 5
- fi
- fi
- case "$host_os" in
- *Darwin* | *darwin*)
- JAVA_HOME=""
- ;;
- esac
- if test "$with_gui" != no; then
- if test $XCOS_ENABLE = yes; then
- # jgraphx
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jgraphx" >&5
- $as_echo_n "checking jgraphx... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jgraphx.jar" "$jardir/libjgraphx.jar" "$jardir/libjgraphx-java.jar" "$jardir/jgraphx*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 12202 "configure"
- import com.mxgraph.model.mxCell;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jgraphx used by Diagram design (looking for package com.mxgraph.model.mxCell)" "$LINENO" 5
- fi
- fi
- JGRAPHX=$PACKAGE_JAR_FILE
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.8.0.0) of jgraphx" >&5
- $as_echo_n "checking minimal version (1.8.0.0) of jgraphx... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$JGRAPHX:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 12288 "configure"
- import com.mxgraph.view.mxGraph;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.8.0.0";
- System.out.println(mxGraph.VERSION);
- if (minVersion.compareTo(mxGraph.VERSION) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jgraphx. Expected at least 1.8.0.0. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jgraphx. Expected at least 1.8.0.0. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 12339 "configure"
- import com.mxgraph.view.mxGraph;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.8.0.0";
- System.out.println(mxGraph.VERSION);
- if (minVersion.compareTo(mxGraph.VERSION) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jgraphx. Expected exact version 1.8.0.0. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jgraphx. Expected exact version 1.8.0.0. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- # Java HDF5 is only needed for Xcos
- if test $HDF5_ENABLE = yes -a "$with_xcos" != no -a "$with_gui" != no; then
- # HDF5 java lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jhdf5" >&5
- $as_echo_n "checking jhdf5... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jhdf5.jar" "$jardir/libjhdf5.jar" "$jardir/libjhdf5-java.jar" "$jardir/jhdf5*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 12413 "configure"
- import ncsa.hdf.hdf5lib.HDF5Constants;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)" "$LINENO" 5
- fi
- fi
- JHDF5=$PACKAGE_JAR_FILE
- if test "$MACOSX" = 1; then
- echo "Check of the presence of libjhdf5.jnilib disabled under Mac OS X"
- else
- LDFLAGS_save=$LDFLAGS
- # Provide known paths where distribs/OS can store JNI libs
- LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
- LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
- LDFLAGS="$LDFLAGS -L/usr/lib/jhdf5 -L/usr/lib64/jhdf5" # RedHat
- LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab
- # -lpthread because of packaging bug in jhdf5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h5JNIFatalError in -ljhdf5" >&5
- $as_echo_n "checking for h5JNIFatalError in -ljhdf5... " >&6; }
- if ${ac_cv_lib_jhdf5_h5JNIFatalError+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljhdf5 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char h5JNIFatalError ();
- int
- main ()
- {
- return h5JNIFatalError ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jhdf5_h5JNIFatalError=yes
- else
- ac_cv_lib_jhdf5_h5JNIFatalError=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jhdf5_h5JNIFatalError" >&5
- $as_echo "$ac_cv_lib_jhdf5_h5JNIFatalError" >&6; }
- if test "x$ac_cv_lib_jhdf5_h5JNIFatalError" = xyes; then :
- JHDF5_LIBS="-ljhdf5"
- else
- as_fn_error $? "libjhdf5: Library missing (Cannot find symbol h5JNIFatalError). Check if libjhdf5 - C/Java (JNI) interface for HDF5 - 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." "$LINENO" 5
- fi
- LDFLAGS=$LDFLAGS_save
- LD_LIBRARY_PATH_save=$LD_LIBRARY_PATH
- LD_LIBRARY_PATH="/usr/lib/jni:/usr/lib64/jni:"
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/java:/usr/lib64/java:"
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/jhdf5:/usr/lib64/jhdf5:"
- LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SCI_SRCDIR/bin/:$SCI_SRCDIR/thirdparty/:$with_hdf5_library"
- export LD_LIBRARY_PATH
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.8.4) of hdf5" >&5
- $as_echo_n "checking minimal version (1.8.4) of hdf5... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$JHDF5:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 12560 "configure"
- import ncsa.hdf.hdf5lib.H5;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.8.4";
- int[] vers = new int[3];
- try { H5.H5get_libversion(vers); }
- catch (Throwable ex) {System.exit(-1);}
- String ver = vers[0] + "."+ vers[1] +"."+vers[2];
- System.out.println(ver);
- if (minVersion.compareTo(ver) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of hdf5. Expected at least 1.8.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of hdf5. Expected at least 1.8.4. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 12615 "configure"
- import ncsa.hdf.hdf5lib.H5;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.8.4";
- int[] vers = new int[3];
- try { H5.H5get_libversion(vers); }
- catch (Throwable ex) {System.exit(-1);}
- String ver = vers[0] + "."+ vers[1] +"."+vers[2];
- System.out.println(ver);
- if (minVersion.compareTo(ver) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of hdf5. Expected exact version 1.8.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of hdf5. Expected exact version 1.8.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- unset LD_LIBRARY_PATH
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH_save
- fi
- fi #HDF5_ENABLE
- fi
- # Docking system
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking flexdock" >&5
- $as_echo_n "checking flexdock... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/flexdock.jar" "$jardir/libflexdock.jar" "$jardir/libflexdock-java.jar" "$jardir/flexdock*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 12696 "configure"
- import org.flexdock.docking.DockingManager;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar flexdock used by Scilab Gui (looking for package org.flexdock.docking.DockingManager)" "$LINENO" 5
- fi
- fi
- FLEXDOCK=$PACKAGE_JAR_FILE
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.1.1) of flexdock" >&5
- $as_echo_n "checking minimal version (1.1.1) of flexdock... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$FLEXDOCK:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 12782 "configure"
- import org.flexdock.util.Utilities;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.1.1";
- System.out.println(Utilities.VERSION);
- if (minVersion.compareTo(Utilities.VERSION) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of flexdock. Expected at least 1.1.1. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of flexdock. Expected at least 1.1.1. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 12833 "configure"
- import org.flexdock.util.Utilities;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.1.1";
- System.out.println(Utilities.VERSION);
- if (minVersion.compareTo(Utilities.VERSION) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of flexdock. Expected exact version 1.1.1. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of flexdock. Expected exact version 1.1.1. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- # Swing look&feel implementations
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking looks" >&5
- $as_echo_n "checking looks... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/looks.jar" "$jardir/liblooks.jar" "$jardir/liblooks-java.jar" "$jardir/looks*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 12903 "configure"
- import com.jgoodies.looks.common.MenuItemRenderer;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" "$LINENO" 5
- fi
- fi
- LOOKS=$PACKAGE_JAR_FILE
- # Named differently under ArchLinux or Fedora
- if test -z "$LOOKS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jgoodies-looks" >&5
- $as_echo_n "checking jgoodies-looks... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jgoodies-looks.jar" "$jardir/libjgoodies-looks.jar" "$jardir/libjgoodies-looks-java.jar" "$jardir/jgoodies-looks*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 12999 "configure"
- import com.jgoodies.looks.common.MenuItemRenderer;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jgoodies-looks used by Scilab Gui - Look and feel (looking for package com.jgoodies.looks.common.MenuItemRenderer)" "$LINENO" 5
- fi
- fi
- LOOKS=$PACKAGE_JAR_FILE
- fi
- # Skin Look and Feel
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking skinlf" >&5
- $as_echo_n "checking skinlf... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/skinlf.jar" "$jardir/libskinlf.jar" "$jardir/libskinlf-java.jar" "$jardir/skinlf*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13096 "configure"
- import com.l2fprod.util.AccessUtils;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar skinlf used by Scilab Gui - Skin Look and Feel (looking for package com.l2fprod.util.AccessUtils)" "$LINENO" 5
- fi
- fi
- SKINLF=$PACKAGE_JAR_FILE
- # JOGL
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jogl" >&5
- $as_echo_n "checking jogl... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jogl.jar" "$jardir/libjogl.jar" "$jardir/libjogl-java.jar" "$jardir/jogl*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13192 "configure"
- import javax.media.opengl.glu.GLUnurbs;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jogl used by Scilab 3D rendering - Version 1.1.1 (looking for package javax.media.opengl.glu.GLUnurbs)" "$LINENO" 5
- fi
- fi
- JOGL=$PACKAGE_JAR_FILE
- if test "$MACOSX" = 1; then
- echo "Check of the presence of libjogl.jnilib and libjogl_awt.jnilib disabled under Mac OS X"
- else
- LDFLAGS_save=$LDFLAGS
- # Provide known paths where distribs/OS can store JNI libs
- LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
- LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
- LDFLAGS="$LDFLAGS -L/usr/lib/jogl -L/usr/lib64/jogl" # RedHat
- LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexParameterf in -ljogl" >&5
- $as_echo_n "checking for glTexParameterf in -ljogl... " >&6; }
- if ${ac_cv_lib_jogl_glTexParameterf+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljogl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char glTexParameterf ();
- int
- main ()
- {
- return glTexParameterf ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jogl_glTexParameterf=yes
- else
- ac_cv_lib_jogl_glTexParameterf=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jogl_glTexParameterf" >&5
- $as_echo "$ac_cv_lib_jogl_glTexParameterf" >&6; }
- if test "x$ac_cv_lib_jogl_glTexParameterf" = xyes; then :
- JOGL_LIBS="-ljogl"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not link against -ljogl. Will try against -ljogl -lGL" >&5
- $as_echo "$as_me: WARNING: Could not link against -ljogl. Will try against -ljogl -lGL" >&2;}
- fi
- if test -z "$JOGL_LIBS"; then # The previous test failed add more options to the LDFLAGS
- # the space after "jogl" in the following line is on
- # purpose to disable the cache
- as_ac_Lib=`$as_echo "ac_cv_lib_jogl ''_glTexParameterf" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glTexParameterf in -ljogl " >&5
- $as_echo_n "checking for glTexParameterf in -ljogl ... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljogl -lGL $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char glTexParameterf ();
- int
- main ()
- {
- return glTexParameterf ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- JOGL_LIBS="-ljogl -lGL"
- else
- as_fn_error $? "\"libjogl: Library
- missing (Cannot find symbol glTexParameterf). Check if libjogl - C/Java (JNI)
- interface for JOGL - or libGL are 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.\"" "$LINENO" 5
- fi
- fi
- LDFLAGS=$LDFLAGS_save
- fi
- # JoGL Native <=> Java connector
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking gluegen-rt" >&5
- $as_echo_n "checking gluegen-rt... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/gluegen-rt.jar" "$jardir/libgluegen-rt.jar" "$jardir/libgluegen-rt-java.jar" "$jardir/gluegen-rt*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13396 "configure"
- import com.sun.gluegen.runtime.CPU;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar gluegen-rt used by Scilab 3D rendering (looking for package com.sun.gluegen.runtime.CPU)" "$LINENO" 5
- fi
- fi
- GLUEGEN_RT=$PACKAGE_JAR_FILE
- if test "$MACOSX" = 1; then
- echo "Check of the presence of libgluegen-rt.jnilib disabled under Mac OS X"
- else
- LDFLAGS_save=$LDFLAGS
- # Provide known paths where distribs/OS can store JNI libs
- LDFLAGS="$LDFLAGS -L/usr/lib/jni -L/usr/lib64/jni" # Debian
- LDFLAGS="$LDFLAGS -L/usr/lib/java -L/usr/lib64/java" # jpackage.org
- LDFLAGS="$LDFLAGS -L/usr/lib/gluegen -L/usr/lib64/gluegen" # RedHat
- LDFLAGS="$LDFLAGS -L$SCI_SRCDIR/thirdparty -L$SCI_SRCDIR/bin" # Scilab thirdparties
- symbol="Java_com_sun_gluegen_runtime_UnixDynamicLinkerImpl_dlclose__J"
- as_ac_Lib=`$as_echo "ac_cv_lib_gluegen-rt_$symbol" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $symbol in -lgluegen-rt" >&5
- $as_echo_n "checking for $symbol in -lgluegen-rt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgluegen-rt -ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $symbol ();
- int
- main ()
- {
- return $symbol ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- GLUEGEN_RT_LIBS="-lgluegen-rt"
- else
- as_fn_error $? "libgluegen-rt: Library missing (Cannot find symbol glTexParameterf). Check if libgluegen-rt - C/Java (JNI) interface for GLUEGEN - 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." "$LINENO" 5
- fi
- LDFLAGS=$LDFLAGS_save
- fi
- # Jhall
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jhall" >&5
- $as_echo_n "checking jhall... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jhall.jar" "$jardir/libjhall.jar" "$jardir/libjhall-java.jar" "$jardir/jhall*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13549 "configure"
- import javax.help.JHelp;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jhall used by Scilab Help Browser (looking for package javax.help.JHelp)" "$LINENO" 5
- fi
- fi
- JHALL=$PACKAGE_JAR_FILE
- # Named differently under Mandriva or Fedora
- if test -z "$JHALL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking javahelp2" >&5
- $as_echo_n "checking javahelp2... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/javahelp2.jar" "$jardir/libjavahelp2.jar" "$jardir/libjavahelp2-java.jar" "$jardir/javahelp2*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13645 "configure"
- import javax.help.JHelp;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar javahelp2 used by Scilab Help Browser (looking for package javax.help.JHelp)" "$LINENO" 5
- fi
- fi
- JHALL=$PACKAGE_JAR_FILE
- fi
- # Console API
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-API" >&5
- $as_echo_n "checking jrosetta-API... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jrosetta-API.jar" "$jardir/libjrosetta-API.jar" "$jardir/libjrosetta-API-java.jar" "$jardir/jrosetta-API*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13742 "configure"
- import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jrosetta-API used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" "$LINENO" 5
- fi
- fi
- JROSETTA_API=$PACKAGE_JAR_FILE
- if test -z "$JROSETTA_API"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-api" >&5
- $as_echo_n "checking jrosetta-api... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jrosetta-api.jar" "$jardir/libjrosetta-api.jar" "$jardir/libjrosetta-api-java.jar" "$jardir/jrosetta-api*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13836 "configure"
- import com.artenum.rosetta.interfaces.core.ConsoleConfiguration;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jrosetta-api used by JRosetta : Console API Artenum / Scilab (looking for package com.artenum.rosetta.interfaces.core.ConsoleConfiguration)" "$LINENO" 5
- fi
- fi
- JROSETTA_API=$PACKAGE_JAR_FILE
- fi
- # Console Core
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jrosetta-engine" >&5
- $as_echo_n "checking jrosetta-engine... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jrosetta-engine.jar" "$jardir/libjrosetta-engine.jar" "$jardir/libjrosetta-engine-java.jar" "$jardir/jrosetta-engine*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 13933 "configure"
- import com.artenum.rosetta.core.action.AbstractConsoleAction;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jrosetta-engine used by JRosetta : Console Core Artenum / Scilab (looking for package com.artenum.rosetta.core.action.AbstractConsoleAction)" "$LINENO" 5
- fi
- fi
- JROSETTA_ENGINE=$PACKAGE_JAR_FILE
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.0.4) of jrosetta-engine" >&5
- $as_echo_n "checking minimal version (1.0.4) of jrosetta-engine... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$JROSETTA_ENGINE:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 14018 "configure"
- import com.artenum.rosetta.util.ConfigurationBuilder;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.0.4";
- System.out.println(ConfigurationBuilder.getVersion());
- if (minVersion.compareTo(ConfigurationBuilder.getVersion()) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jrosetta-engine. Expected at least 1.0.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jrosetta-engine. Expected at least 1.0.4. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 14069 "configure"
- import com.artenum.rosetta.util.ConfigurationBuilder;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.0.4";
- System.out.println(ConfigurationBuilder.getVersion());
- if (minVersion.compareTo(ConfigurationBuilder.getVersion()) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jrosetta-engine. Expected exact version 1.0.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jrosetta-engine. Expected exact version 1.0.4. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- # MathML rendering solution
- # Used in both graphic & help
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jeuclid-core" >&5
- $as_echo_n "checking jeuclid-core... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jeuclid-core.jar" "$jardir/libjeuclid-core.jar" "$jardir/libjeuclid-core-java.jar" "$jardir/jeuclid-core*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14141 "configure"
- import net.sourceforge.jeuclid.LayoutContext;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jeuclid-core used by MathML rendering solution (at least version 3.1.X) (looking for package net.sourceforge.jeuclid.LayoutContext)" "$LINENO" 5
- fi
- fi
- JEUCLID_CORE=$PACKAGE_JAR_FILE
- ################ Mandatory for graphic_export features #####
- # XML to PDF/other Translator
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking fop" >&5
- $as_echo_n "checking fop... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/fop.jar" "$jardir/libfop.jar" "$jardir/libfop-java.jar" "$jardir/fop*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14239 "configure"
- import org.apache.fop.pdf.PDFInfo;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar fop used by XML to PDF Translator (fop) (looking for package org.apache.fop.pdf.PDFInfo)" "$LINENO" 5
- fi
- fi
- FOP=$PACKAGE_JAR_FILE
- # xml.apache.org SVG Library (under mandriva for example)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking batik-all" >&5
- $as_echo_n "checking batik-all... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/batik-all.jar" "$jardir/libbatik-all.jar" "$jardir/libbatik-all-java.jar" "$jardir/batik-all*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14335 "configure"
- import org.apache.batik.parser.Parser;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar batik-all used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" "$LINENO" 5
- fi
- fi
- BATIK=$PACKAGE_JAR_FILE
- if test -z "$BATIK"; then
- # Other other distribs
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking batik" >&5
- $as_echo_n "checking batik... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/batik.jar" "$jardir/libbatik.jar" "$jardir/libbatik-java.jar" "$jardir/batik*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14431 "configure"
- import org.apache.batik.parser.Parser;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar batik used by Apache SVG Library (looking for package org.apache.batik.parser.Parser)" "$LINENO" 5
- fi
- fi
- BATIK=$PACKAGE_JAR_FILE
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (1.7) of batik" >&5
- $as_echo_n "checking minimal version (1.7) of batik... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$BATIK:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 14517 "configure"
- import org.apache.batik.Version;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.7";
- System.out.println(Version.getVersion());
- if (minVersion.compareTo(Version.getVersion()) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of batik. Expected at least 1.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of batik. Expected at least 1.7. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 14568 "configure"
- import org.apache.batik.Version;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="1.7";
- System.out.println(Version.getVersion());
- if (minVersion.compareTo(Version.getVersion()) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of batik. Expected exact version 1.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of batik. Expected exact version 1.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- # Commons I/O library
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-io" >&5
- $as_echo_n "checking commons-io... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/commons-io.jar" "$jardir/libcommons-io.jar" "$jardir/libcommons-io-java.jar" "$jardir/commons-io*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14638 "configure"
- import org.apache.commons.io.output.CountingOutputStream;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar commons-io used by Commons I/O library (looking for package org.apache.commons.io.output.CountingOutputStream)" "$LINENO" 5
- fi
- fi
- COMMONS_IO=$PACKAGE_JAR_FILE
- # XML graphics common
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking xmlgraphics-commons" >&5
- $as_echo_n "checking xmlgraphics-commons... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/xmlgraphics-commons.jar" "$jardir/libxmlgraphics-commons.jar" "$jardir/libxmlgraphics-commons-java.jar" "$jardir/xmlgraphics-commons*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14734 "configure"
- import org.apache.xmlgraphics.util.Service;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar xmlgraphics-commons used by Commons graphics library (looking for package org.apache.xmlgraphics.util.Service)" "$LINENO" 5
- fi
- fi
- XMLGRAPHICS_COMMONS=$PACKAGE_JAR_FILE
- # Avalon Framework (PDF)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking avalon-framework" >&5
- $as_echo_n "checking avalon-framework... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/avalon-framework.jar" "$jardir/libavalon-framework.jar" "$jardir/libavalon-framework-java.jar" "$jardir/avalon-framework*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14830 "configure"
- import org.apache.avalon.framework.configuration.ConfigurationException;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar avalon-framework used by Common framework for Java server application (looking for package org.apache.avalon.framework.configuration.ConfigurationException)" "$LINENO" 5
- fi
- fi
- AVALON_FRAMEWORK=$PACKAGE_JAR_FILE
- # XML API EXT (conversion of a SVG => PNG)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml-apis-ext" >&5
- $as_echo_n "checking xml-apis-ext... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/xml-apis-ext.jar" "$jardir/libxml-apis-ext.jar" "$jardir/libxml-apis-ext-java.jar" "$jardir/xml-apis-ext*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 14926 "configure"
- import org.w3c.dom.svg.SVGDocument;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar xml-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" "$LINENO" 5
- fi
- fi
- XML_APIS_EXT=$PACKAGE_JAR_FILE
- if test -z "$XML_APIS_EXT"; then
- # Other other distribs (Ex: Fedora/Redhat)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking xml-commons-apis-ext" >&5
- $as_echo_n "checking xml-commons-apis-ext... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/xml-commons-apis-ext.jar" "$jardir/libxml-commons-apis-ext.jar" "$jardir/libxml-commons-apis-ext-java.jar" "$jardir/xml-commons-apis-ext*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15022 "configure"
- import org.w3c.dom.svg.SVGDocument;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar xml-commons-apis-ext used by XML Commons external code (looking for package org.w3c.dom.svg.SVGDocument)" "$LINENO" 5
- fi
- fi
- XML_APIS_EXT=$PACKAGE_JAR_FILE
- fi
- ################ END Mandatory for graphic_export features #####
- # Logging (flexdock dep)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-logging" >&5
- $as_echo_n "checking commons-logging... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/commons-logging.jar" "$jardir/libcommons-logging.jar" "$jardir/libcommons-logging-java.jar" "$jardir/commons-logging*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15122 "configure"
- import org.apache.commons.logging.LogFactory;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar commons-logging used by Apache logging (looking for package org.apache.commons.logging.LogFactory)" "$LINENO" 5
- fi
- fi
- COMMONS_LOGGING=$PACKAGE_JAR_FILE
- # JLaTeXMath
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jlatexmath" >&5
- $as_echo_n "checking jlatexmath... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jlatexmath.jar" "$jardir/libjlatexmath.jar" "$jardir/libjlatexmath-java.jar" "$jardir/jlatexmath*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15218 "configure"
- import org.scilab.forge.jlatexmath.TeXFormula;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jlatexmath used by LaTex Rendering (looking for package org.scilab.forge.jlatexmath.TeXFormula)" "$LINENO" 5
- fi
- fi
- JLATEXMATH=$PACKAGE_JAR_FILE
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking minimal version (0.9.7) of jlatexmath" >&5
- $as_echo_n "checking minimal version (0.9.7) of jlatexmath... " >&6; }
- saved_ac_java_classpath=$ac_java_classpath
- export ac_java_classpath="$JLATEXMATH:$ac_java_classpath"
- if test "x" == "x"; then
- cat << \EOF > conftest.java
- // #line 15304 "configure"
- import org.scilab.forge.jlatexmath.TeXFormula;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="0.9.7";
- System.out.println(TeXFormula.VERSION);
- if (minVersion.compareTo(TeXFormula.VERSION) > 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jlatexmath. Expected at least 0.9.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jlatexmath. Expected at least 0.9.7. Found $STDOUT" "$LINENO" 5
- fi
- else
- cat << \EOF > conftest.java
- // #line 15355 "configure"
- import org.scilab.forge.jlatexmath.TeXFormula;
- public class conftest {
- public static void main(String[] argv) {
- String minVersion="0.9.7";
- System.out.println(TeXFormula.VERSION);
- if (minVersion.compareTo(TeXFormula.VERSION) != 0) {
- System.exit(-1);
- }
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""yes"" = "no"; then
- echo "yes" >&5
- echo "yes"
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- echo "yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jlatexmath. Expected exact version 0.9.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- as_fn_error $? "Wrong version of jlatexmath. Expected exact version 0.9.7. Found $STDOUT" "$LINENO" 5
- fi
- fi
- ac_java_classpath=$saved_ac_java_classpath
- $as_echo "#define WITH_GUI /**/" >>confdefs.h
- fi
- # Checkstyle (code checking)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking checkstyle" >&5
- $as_echo_n "checking checkstyle... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/checkstyle.jar" "$jardir/libcheckstyle.jar" "$jardir/libcheckstyle-java.jar" "$jardir/checkstyle*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15431 "configure"
- import com.puppycrawl.tools.checkstyle.CheckStyleTask;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar checkstyle used by Checkstyle - code checking (looking for package com.puppycrawl.tools.checkstyle.CheckStyleTask)" "$LINENO" 5
- fi
- fi
- CHECKSTYLE=$PACKAGE_JAR_FILE
- # Commons beanutils (dependency of checkstyle)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking commons-beanutils" >&5
- $as_echo_n "checking commons-beanutils... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/commons-beanutils.jar" "$jardir/libcommons-beanutils.jar" "$jardir/libcommons-beanutils-java.jar" "$jardir/commons-beanutils*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15527 "configure"
- import org.apache.commons.beanutils.Converter;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar commons-beanutils used by Bean utility (looking for package org.apache.commons.beanutils.Converter)" "$LINENO" 5
- fi
- fi
- COMMONS_BEANUTILS=$PACKAGE_JAR_FILE
- # antlr (dependency of checkstyle)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking antlr" >&5
- $as_echo_n "checking antlr... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/antlr.jar" "$jardir/libantlr.jar" "$jardir/libantlr-java.jar" "$jardir/antlr*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15623 "configure"
- import antlr.TokenStreamException;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar antlr used by language tool for constructing recognizers (looking for package antlr.TokenStreamException)" "$LINENO" 5
- fi
- fi
- ANTLR=$PACKAGE_JAR_FILE
- # Test NG (java unitary test)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking testng" >&5
- $as_echo_n "checking testng... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/testng.jar" "$jardir/libtestng.jar" "$jardir/libtestng-java.jar" "$jardir/testng*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15719 "configure"
- import org.testng.TestNG;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar testng used by TestNG - Unit tests (looking for package org.testng.TestNG)" "$LINENO" 5
- fi
- fi
- TESTNG=$PACKAGE_JAR_FILE
- # JCommander - dependency of TestNG >= 6
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking beust-jcommander" >&5
- $as_echo_n "checking beust-jcommander... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/beust-jcommander.jar" "$jardir/libbeust-jcommander.jar" "$jardir/libbeust-jcommander-java.jar" "$jardir/beust-jcommander*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15815 "configure"
- import com.beust.jcommander.JCommander;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar beust-jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" "$LINENO" 5
- fi
- fi
- JCOMMANDER=$PACKAGE_JAR_FILE
- if test -z "$JCOMMANDER"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking jcommander" >&5
- $as_echo_n "checking jcommander... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/jcommander.jar" "$jardir/libjcommander.jar" "$jardir/libjcommander-java.jar" "$jardir/jcommander*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 15910 "configure"
- import com.beust.jcommander.JCommander;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar jcommander used by JCommander - Parse java options (looking for package com.beust.jcommander.JCommander)" "$LINENO" 5
- fi
- fi
- JCOMMANDER=$PACKAGE_JAR_FILE
- fi
- # Qdox (parses declarations and Javadoc) - dependency of TestNG
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking qdox" >&5
- $as_echo_n "checking qdox... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/qdox.jar" "$jardir/libqdox.jar" "$jardir/libqdox-java.jar" "$jardir/qdox*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 16007 "configure"
- import com.thoughtworks.qdox.tools.QDoxTester;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- if test -s conftest.java.output; then
- STDOUT=`cat conftest.java.output`
- fi
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- if test -f conftest.java.output; then
- rm conftest.java.output
- fi
- else
- echo "configure: failed program was:" >&5
- cat conftest.java >&5
- echo "configure: CLASSPATH was $CLASSPATH" >&5
- ac_java_classpath=$saved_ac_java_classpath
- fi
- fi
- done
- done
- done
- if test "$found_jar" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test ""yes"" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" >&5
- $as_echo "$as_me: WARNING: Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" >&2;}
- else
- as_fn_error $? "Could not find or use the Java package/jar qdox used by Parses declarations and Javadoc (looking for package com.thoughtworks.qdox.tools.QDoxTester)" "$LINENO" 5
- fi
- fi
- QDOX=$PACKAGE_JAR_FILE
- # bsh (Java scripting environment) - dependency of TestNG
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking bsh" >&5
- $as_echo_n "checking bsh... " >&6; }
- PACKAGE_JAR_FILE=
- found_jar=no
- saved_ac_java_classpath=$ac_java_classpath
- 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 $(find /usr/share/java/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib64/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/lib/ -maxdepth 1 -type d 2>/dev/null) $(find /usr/share/*/lib -maxdepth 1 -type d 2>/dev/null)"
- for jardir in "`pwd`/thirdparty" "`pwd`/jar" $DEFAULT_JAR_DIR; do
- for jar in "$jardir/bsh.jar" "$jardir/libbsh.jar" "$jardir/libbsh-java.jar" "$jardir/bsh*.jar"; do
- # TODO check the behaviour when spaces
- jars_resolved=`ls $jar 2>/dev/null`
- for jar_resolved in $jars_resolved; do # If several jars matches
- if test -e "$jar_resolved"; then
- export ac_java_classpath="$jar_resolved:$ac_java_classpath"
- cat << \EOF > conftest.java
- // #line 16103 "configure"
- import bsh.Console;
- public class conftest {
- public static void main(String[] argv) {
- }
- }
- EOF
- CLASSPATH=$ac_java_classpath
- export CLASSPATH
- cmd="$JAVAC ${JAVAC_FLAGS} conftest.java"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5) ; then
- if test ""no"" = "no"; then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
- cmd="$JAVA conftest"
- if (echo $cmd >&5 ; eval $cmd >conftest.java.output 2>&5); then
- echo "yes" >&5
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jar_resolved" >&5
- $as_echo "$jar_resolved" >&6; }
- found_jar=yes
- PACKAGE_JAR_FILE=$jar_resolved
- break 3
- else
-