2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugzilla.scilab.org/ about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='Scilab'
593 PACKAGE_TARNAME='scilab'
595 PACKAGE_STRING='Scilab 5'
596 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
666 COMPILATION_TESTS_FALSE
667 COMPILATION_TESTS_TRUE
672 INSTALL_HELP_XML_FALSE
673 INSTALL_HELP_XML_TRUE
713 GENERATE_LOCALIZATION_FILES_FALSE
714 GENERATE_LOCALIZATION_FILES_TRUE
739 XGETTEXT_EXTRA_OPTIONS
747 GETTEXT_MACRO_VERSION
766 SWIG_RUNTIME_LIBS_DIR
819 EXTERNAL_SCIRENDERER_FALSE
820 EXTERNAL_SCIRENDERER_TRUE
824 USE_DYNAMIC_STACK_FALSE
825 USE_DYNAMIC_STACK_TRUE
832 IS_MIPS_SGI_IRIX_FALSE
833 IS_MIPS_SGI_IRIX_TRUE
882 MAINTAINER_MODE_FALSE
885 RELOCATABLE_VIA_LD_FALSE
886 RELOCATABLE_VIA_LD_TRUE
911 INSTALL_STRIP_PROGRAM
914 SCILAB_BINARY_VERSION
915 SCILAB_LIBRARY_VERSION
916 SCILAB_VERSION_MAINTENANCE
946 program_transform_name
959 enable_option_checking
964 enable_maintainer_mode
965 enable_dependency_tracking
973 enable_stop_on_warning
979 enable_compilation_tests
984 with_min_macosx_version
987 with_external_scirenderer
1000 enable_build_localization
1006 with_umfpack_library
1007 with_umfpack_include
1020 with_install_help_xml
1021 enable_build_doxygen
1022 enable_force_full_link
1030 ac_precious_vars='build_alias
1055 # Initialize some variables set by options.
1057 ac_init_version=false
1058 ac_unrecognized_opts=
1059 ac_unrecognized_sep=
1060 # The variables have the same names as the options, with
1061 # dashes changed to underlines.
1062 cache_file=/dev/null
1069 program_transform_name=s,x,x,
1077 # Installation directory options.
1078 # These are left unexpanded so users can "make install exec_prefix=/foo"
1079 # and all the variables that are supposed to be based on exec_prefix
1080 # by default will actually change.
1081 # Use braces instead of parens because sh, perl, etc. also accept them.
1082 # (The list follows the same order as the GNU Coding Standards.)
1083 bindir='${exec_prefix}/bin'
1084 sbindir='${exec_prefix}/sbin'
1085 libexecdir='${exec_prefix}/libexec'
1086 datarootdir='${prefix}/share'
1087 datadir='${datarootdir}'
1088 sysconfdir='${prefix}/etc'
1089 sharedstatedir='${prefix}/com'
1090 localstatedir='${prefix}/var'
1091 includedir='${prefix}/include'
1092 oldincludedir='/usr/include'
1093 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1094 infodir='${datarootdir}/info'
1099 libdir='${exec_prefix}/lib'
1100 localedir='${datarootdir}/locale'
1101 mandir='${datarootdir}/man'
1107 # If the previous option needs an argument, assign it.
1108 if test -n "$ac_prev"; then
1109 eval $ac_prev=\$ac_option
1115 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120 # Accept the important Cygnus configure options, so we can diagnose typos.
1122 case $ac_dashdash$ac_option in
1126 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1129 bindir=$ac_optarg ;;
1131 -build | --build | --buil | --bui | --bu)
1132 ac_prev=build_alias ;;
1133 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1134 build_alias=$ac_optarg ;;
1136 -cache-file | --cache-file | --cache-fil | --cache-fi \
1137 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1138 ac_prev=cache_file ;;
1139 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1140 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1141 cache_file=$ac_optarg ;;
1143 --config-cache | -C)
1144 cache_file=config.cache ;;
1146 -datadir | --datadir | --datadi | --datad)
1148 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1149 datadir=$ac_optarg ;;
1151 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1152 | --dataroo | --dataro | --datar)
1153 ac_prev=datarootdir ;;
1154 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1155 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1156 datarootdir=$ac_optarg ;;
1158 -disable-* | --disable-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid feature name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval enable_$ac_useropt=no ;;
1174 -docdir | --docdir | --docdi | --doc | --do)
1176 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1177 docdir=$ac_optarg ;;
1179 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1181 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1182 dvidir=$ac_optarg ;;
1184 -enable-* | --enable-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid feature name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1193 "enable_$ac_useropt"
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1198 eval enable_$ac_useropt=\$ac_optarg ;;
1200 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1201 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1202 | --exec | --exe | --ex)
1203 ac_prev=exec_prefix ;;
1204 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1205 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1206 | --exec=* | --exe=* | --ex=*)
1207 exec_prefix=$ac_optarg ;;
1209 -gas | --gas | --ga | --g)
1210 # Obsolete; use --with-gas.
1213 -help | --help | --hel | --he | -h)
1214 ac_init_help=long ;;
1215 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1216 ac_init_help=recursive ;;
1217 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1218 ac_init_help=short ;;
1220 -host | --host | --hos | --ho)
1221 ac_prev=host_alias ;;
1222 -host=* | --host=* | --hos=* | --ho=*)
1223 host_alias=$ac_optarg ;;
1225 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1227 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1229 htmldir=$ac_optarg ;;
1231 -includedir | --includedir | --includedi | --included | --include \
1232 | --includ | --inclu | --incl | --inc)
1233 ac_prev=includedir ;;
1234 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1235 | --includ=* | --inclu=* | --incl=* | --inc=*)
1236 includedir=$ac_optarg ;;
1238 -infodir | --infodir | --infodi | --infod | --info | --inf)
1240 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1241 infodir=$ac_optarg ;;
1243 -libdir | --libdir | --libdi | --libd)
1245 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1246 libdir=$ac_optarg ;;
1248 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1249 | --libexe | --libex | --libe)
1250 ac_prev=libexecdir ;;
1251 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1252 | --libexe=* | --libex=* | --libe=*)
1253 libexecdir=$ac_optarg ;;
1255 -localedir | --localedir | --localedi | --localed | --locale)
1256 ac_prev=localedir ;;
1257 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1258 localedir=$ac_optarg ;;
1260 -localstatedir | --localstatedir | --localstatedi | --localstated \
1261 | --localstate | --localstat | --localsta | --localst | --locals)
1262 ac_prev=localstatedir ;;
1263 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1264 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1265 localstatedir=$ac_optarg ;;
1267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1270 mandir=$ac_optarg ;;
1272 -nfp | --nfp | --nf)
1273 # Obsolete; use --without-fp.
1276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1277 | --no-cr | --no-c | -n)
1280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1286 | --oldin | --oldi | --old | --ol | --o)
1287 ac_prev=oldincludedir ;;
1288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1291 oldincludedir=$ac_optarg ;;
1293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1296 prefix=$ac_optarg ;;
1298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1299 | --program-pre | --program-pr | --program-p)
1300 ac_prev=program_prefix ;;
1301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1303 program_prefix=$ac_optarg ;;
1305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1306 | --program-suf | --program-su | --program-s)
1307 ac_prev=program_suffix ;;
1308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1310 program_suffix=$ac_optarg ;;
1312 -program-transform-name | --program-transform-name \
1313 | --program-transform-nam | --program-transform-na \
1314 | --program-transform-n | --program-transform- \
1315 | --program-transform | --program-transfor \
1316 | --program-transfo | --program-transf \
1317 | --program-trans | --program-tran \
1318 | --progr-tra | --program-tr | --program-t)
1319 ac_prev=program_transform_name ;;
1320 -program-transform-name=* | --program-transform-name=* \
1321 | --program-transform-nam=* | --program-transform-na=* \
1322 | --program-transform-n=* | --program-transform-=* \
1323 | --program-transform=* | --program-transfor=* \
1324 | --program-transfo=* | --program-transf=* \
1325 | --program-trans=* | --program-tran=* \
1326 | --progr-tra=* | --program-tr=* | --program-t=*)
1327 program_transform_name=$ac_optarg ;;
1329 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1331 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1332 pdfdir=$ac_optarg ;;
1334 -psdir | --psdir | --psdi | --psd | --ps)
1336 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1340 | -silent | --silent | --silen | --sile | --sil)
1343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1347 sbindir=$ac_optarg ;;
1349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1351 | --sharedst | --shareds | --shared | --share | --shar \
1353 ac_prev=sharedstatedir ;;
1354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1358 sharedstatedir=$ac_optarg ;;
1360 -site | --site | --sit)
1362 -site=* | --site=* | --sit=*)
1365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1368 srcdir=$ac_optarg ;;
1370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1371 | --syscon | --sysco | --sysc | --sys | --sy)
1372 ac_prev=sysconfdir ;;
1373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1375 sysconfdir=$ac_optarg ;;
1377 -target | --target | --targe | --targ | --tar | --ta | --t)
1378 ac_prev=target_alias ;;
1379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1380 target_alias=$ac_optarg ;;
1382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1385 -version | --version | --versio | --versi | --vers | -V)
1386 ac_init_version=: ;;
1389 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error $? "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1402 eval with_$ac_useropt=\$ac_optarg ;;
1404 -without-* | --without-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error $? "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1418 eval with_$ac_useropt=no ;;
1421 # Obsolete; use --with-x.
1424 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1425 | --x-incl | --x-inc | --x-in | --x-i)
1426 ac_prev=x_includes ;;
1427 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1428 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1429 x_includes=$ac_optarg ;;
1431 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1432 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1433 ac_prev=x_libraries ;;
1434 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1435 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1436 x_libraries=$ac_optarg ;;
1438 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1439 Try \`$0 --help' for more information"
1443 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1444 # Reject names that are not valid shell variable names.
1445 case $ac_envvar in #(
1446 '' | [0-9]* | *[!_$as_cr_alnum]* )
1447 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1449 eval $ac_envvar=\$ac_optarg
1450 export $ac_envvar ;;
1453 # FIXME: should be removed in autoconf 3.0.
1454 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1455 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1456 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1457 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1463 if test -n "$ac_prev"; then
1464 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1465 as_fn_error $? "missing argument to $ac_option"
1468 if test -n "$ac_unrecognized_opts"; then
1469 case $enable_option_checking in
1471 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1472 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1476 # Check all directory arguments for consistency.
1477 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1478 datadir sysconfdir sharedstatedir localstatedir includedir \
1479 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1480 libdir localedir mandir
1482 eval ac_val=\$$ac_var
1483 # Remove trailing slashes.
1486 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1487 eval $ac_var=\$ac_val;;
1489 # Be sure to have absolute directory names.
1491 [\\/$]* | ?:[\\/]* ) continue;;
1492 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1494 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1497 # There might be people who depend on the old broken behavior: `$host'
1498 # used to hold the argument of --host etc.
1499 # FIXME: To remove some day.
1502 target=$target_alias
1504 # FIXME: To remove some day.
1505 if test "x$host_alias" != x; then
1506 if test "x$build_alias" = x; then
1507 cross_compiling=maybe
1508 elif test "x$build_alias" != "x$host_alias"; then
1514 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1516 test "$silent" = yes && exec 6>/dev/null
1519 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1520 ac_ls_di=`ls -di .` &&
1521 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1522 as_fn_error $? "working directory cannot be determined"
1523 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1524 as_fn_error $? "pwd does not report name of working directory"
1527 # Find the source files, if location was not specified.
1528 if test -z "$srcdir"; then
1529 ac_srcdir_defaulted=yes
1530 # Try the directory containing this script, then the parent directory.
1531 ac_confdir=`$as_dirname -- "$as_myself" ||
1532 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1533 X"$as_myself" : 'X\(//\)[^/]' \| \
1534 X"$as_myself" : 'X\(//\)$' \| \
1535 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1536 $as_echo X"$as_myself" |
1537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1559 ac_srcdir_defaulted=no
1561 if test ! -r "$srcdir/$ac_unique_file"; then
1562 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1563 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1565 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1567 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1587 # Report the --help message.
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1593 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1600 Defaults for the options are specified in brackets.
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking ...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1624 For better control, use the options below.
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1656 --x-includes=DIR X include files are in DIR
1657 --x-libraries=DIR X library files are in DIR
1660 --build=BUILD configure for building on BUILD [guessed]
1661 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1665 if test -n "$ac_init_help"; then
1666 case $ac_init_help in
1667 short | recursive ) echo "Configuration of Scilab 5:";;
1672 --disable-option-checking ignore unrecognized --enable/--with options
1673 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1674 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1675 --disable-largefile omit support for large files
1676 --enable-relocatable install a package that can be moved in the filesystem
1677 --disable-rpath do not hardcode runtime library paths
1678 --enable-maintainer-mode enable make rules and dependencies not useful
1679 (and sometimes confusing) to the casual installer
1680 --disable-dependency-tracking speeds up one-time build
1681 --enable-dependency-tracking do not reject slow dependency extractors
1682 --enable-debug Do not optimize and print warning messages
1683 (C/C++/Fortran/Java code)
1684 --enable-debug-C Do not optimize and print warning messages (C code)
1685 --enable-debug-CXX Do not optimize and print warning messages (C++
1687 --enable-debug-java Print warning messages and line numbers (Java code)
1688 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1690 --enable-debug-linker Print warning messages from the linker (ld)
1691 --enable-code-coverage Enable code coverage
1692 --enable-stop-on-warning
1693 Stop the compilation on the first warning found in
1695 --enable-compilation-tests
1696 Enable unitary tests and checks at compilation time
1697 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1698 Java Development Kit (JDK) is mandatory for this
1700 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1701 (A Java Development Kit (JDK) is mandatory for this
1703 --disable-nls do not use Native Language Support
1704 --disable-build-localization
1705 Disable the localization build
1707 --disable-build-help Disable the help build
1709 --enable-build-doxygen Generate doxygen C/C++ documentation
1710 --enable-force-full-link
1711 Forces the explicit link between libscilab and some
1712 "on-the-fly" loaded libraries. NOT USE IN
1714 --enable-static[=PKGS] build static libraries [default=no]
1715 --enable-shared[=PKGS] build shared libraries [default=yes]
1716 --enable-fast-install[=PKGS]
1717 optimize for fast installation [default=yes]
1718 --disable-libtool-lock avoid locking (might break parallel builds)
1719 --disable-ccache Disable the use of ccache
1723 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1724 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1725 --with-gnu-ld assume the C compiler uses GNU ld default=no
1726 --with-gcc Use gcc C compiler
1727 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1728 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1729 compilers (GNU/Linux only)
1730 --without-tk Disable the interface to Tcl/Tk
1731 --without-javasci Disable the Java/Scilab interface (javasci)
1732 --without-gui Disable the Scilab Graphical User Interface (GUI).
1733 Intended for embedded/clustering/grid Scilab
1734 --with-fink-prefix Provide a fink prefix. Default: /sw/
1735 --with-min-macosx-version
1736 Force compilers to generate binaries compatible with
1737 MacOSX minimal version.
1738 --with-hdf5-include=DIR Set the path to the HDF5 headers
1739 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1740 --with-external-scirenderer
1741 Disable the usage of the internal copy of
1742 scirenderer. Intended for packaging of Scilab
1743 --without-xcos Disable Xcos
1744 --without-modelica Disable the OCaml module (modelica)
1745 --with-jdk=DIR use JDK from DIR
1746 --with-ant=DIR Use ant from DIR
1747 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1748 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1749 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1750 --without-libintl-prefix don't search for libintl in includedir and libdir
1751 --without-fftw Disable the interface to the FFTW 3 library
1752 --with-fftw-include=DIR Set the path to the FFTW headers
1753 --with-fftw-library=DIR Set the path to the FFTW libraries
1754 --without-openmp Disable the usage of OpenMP (parallelization of some
1756 --with-libxml2=PREFIX Set the path to your libxml2 installation
1757 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1759 --with-lapack-library=DIR
1760 set the path to the LAPACK library
1761 --without-arpack-ng Disable the interface to ARPACK-NG
1762 --with-arpack-library=DIR
1763 set the path to the ARPACK library
1764 --without-umfpack Disable the interface to the UMFPACK library
1765 --with-umfpack-library=DIR
1766 Set the path to the UMFPACK libraries
1767 --with-umfpack-include=DIR
1768 Set the path to the UMFPACK headers
1769 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1770 Expression Library) installation
1771 --with-curl=DIR Set the path to your CURL installation
1772 --with-tcl-library=DIR Set the path to the TCL library
1773 --with-tcl-include=DIR Set the path to the TCL headers
1774 --with-tk-library=DIR Set the path to the TK library
1775 --with-tk-include=DIR Set the path to the TK headers
1776 --with-x use the X Window System
1777 --without-matio Disable the interface to Matio (MAT File I/O
1779 --with-matio-include=DIR
1780 Set the path to the MATIO headers
1781 --with-matio-library=DIR
1782 Set the path to the MATIO libraries
1783 --with-docbook=DIR Set the path to the docbook package
1784 --with-install-help-xml make install will install XML files
1786 --with-pic try to use only PIC/non-PIC objects [default=use
1788 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1790 Some influential environment variables:
1791 CC C compiler command
1792 CFLAGS C compiler flags
1793 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1794 nonstandard directory <lib dir>
1795 LIBS libraries to pass to the linker, e.g. -l<library>
1796 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1797 you have headers in a nonstandard directory <include dir>
1799 PKG_CONFIG path to pkg-config utility
1800 F77 Fortran 77 compiler command
1801 FFLAGS Fortran 77 compiler flags
1802 CXX C++ compiler command
1803 CXXFLAGS C++ compiler flags
1804 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1805 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1806 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1807 CURL_LIBS linker flags for CURL, overriding pkg-config
1808 XMKMF Path to xmkmf, Makefile generator for X Window System
1810 C compiler flags for MATIO, overriding pkg-config
1811 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1812 CXXCPP C++ preprocessor
1814 Use these variables to override the choices made by `configure' or to help
1815 it to find libraries and programs with nonstandard names/locations.
1817 Report bugs to <http://bugzilla.scilab.org/>.
1822 if test "$ac_init_help" = "recursive"; then
1823 # If there are subdirs, report their specific --help.
1824 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1825 test -d "$ac_dir" ||
1826 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1831 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1833 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1834 # A ".." for each directory in $ac_dir_suffix.
1835 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1836 case $ac_top_builddir_sub in
1837 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1841 ac_abs_top_builddir=$ac_pwd
1842 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1843 # for backward compatibility:
1844 ac_top_builddir=$ac_top_build_prefix
1847 .) # We are building in place.
1849 ac_top_srcdir=$ac_top_builddir_sub
1850 ac_abs_top_srcdir=$ac_pwd ;;
1851 [\\/]* | ?:[\\/]* ) # Absolute name.
1852 ac_srcdir=$srcdir$ac_dir_suffix;
1853 ac_top_srcdir=$srcdir
1854 ac_abs_top_srcdir=$srcdir ;;
1856 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1857 ac_top_srcdir=$ac_top_build_prefix$srcdir
1858 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1860 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1862 cd "$ac_dir" || { ac_status=$?; continue; }
1863 # Check for guested configure.
1864 if test -f "$ac_srcdir/configure.gnu"; then
1866 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1867 elif test -f "$ac_srcdir/configure"; then
1869 $SHELL "$ac_srcdir/configure" --help=recursive
1871 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1873 cd "$ac_pwd" || { ac_status=$?; break; }
1877 test -n "$ac_init_help" && exit $ac_status
1878 if $ac_init_version; then
1881 generated by GNU Autoconf 2.69
1883 Copyright (C) 2012 Free Software Foundation, Inc.
1884 This configure script is free software; the Free Software Foundation
1885 gives unlimited permission to copy, distribute and modify it.
1890 ## ------------------------ ##
1891 ## Autoconf initialization. ##
1892 ## ------------------------ ##
1894 # ac_fn_c_try_compile LINENO
1895 # --------------------------
1896 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_c_try_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext
1901 if { { ac_try="$ac_compile"
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_compile") 2>conftest.err
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_c_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest.$ac_objext; then :
1922 $as_echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1930 } # ac_fn_c_try_compile
1932 # ac_fn_c_try_cpp LINENO
1933 # ----------------------
1934 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_cpp conftest.$ac_ext"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } > conftest.i && {
1954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1955 test ! -s conftest.err
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1969 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1972 # the include files in INCLUDES and setting the cache variable VAR
1974 ac_fn_c_check_header_mongrel ()
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 if eval \${$3+:} false; then :
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1987 # Is the header compilable?
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1989 $as_echo_n "checking $2 usability... " >&6; }
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 ac_header_compiler=yes
1998 ac_header_compiler=no
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2002 $as_echo "$ac_header_compiler" >&6; }
2004 # Is the header present?
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2006 $as_echo_n "checking $2 presence... " >&6; }
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 if ac_fn_c_try_cpp "$LINENO"; then :
2012 ac_header_preproc=yes
2014 ac_header_preproc=no
2016 rm -f conftest.err conftest.i conftest.$ac_ext
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2018 $as_echo "$ac_header_preproc" >&6; }
2020 # So? What about this header?
2021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2024 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2026 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2030 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2032 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2034 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2036 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 ( $as_echo "## ------------------------------------------ ##
2040 ## Report this to http://bugzilla.scilab.org/ ##
2041 ## ------------------------------------------ ##"
2042 ) | sed "s/^/$as_me: WARNING: /" >&2
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 eval "$3=\$ac_header_compiler"
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_header_mongrel
2060 # ac_fn_c_try_run LINENO
2061 # ----------------------
2062 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2063 # that executables *can* be run.
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 if { { ac_try="$ac_link"
2069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070 *) ac_try_echo=$ac_try;;
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074 (eval "$ac_link") 2>&5
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2078 { { case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_try") 2>&5
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; }; }; then :
2090 $as_echo "$as_me: program exited with status $ac_status" >&5
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2094 ac_retval=$ac_status
2096 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2102 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2103 # -------------------------------------------------------
2104 # Tests whether HEADER exists and can be compiled using the include files in
2105 # INCLUDES, setting the cache variable VAR accordingly.
2106 ac_fn_c_check_header_compile ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110 $as_echo_n "checking for $2... " >&6; }
2111 if eval \${$3+:} false; then :
2112 $as_echo_n "(cached) " >&6
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128 $as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2131 } # ac_fn_c_check_header_compile
2133 # ac_fn_c_try_link LINENO
2134 # -----------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded.
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext conftest$ac_exeext
2140 if { { ac_try="$ac_link"
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_link") 2>conftest.err
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_c_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest$ac_exeext && {
2159 test "$cross_compiling" = yes ||
2160 test -x conftest$ac_exeext
2164 $as_echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2169 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2170 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2171 # interfere with the next link command; also delete a directory that is
2172 # left behind by Apple's compiler. We do this before executing the actions.
2173 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2177 } # ac_fn_c_try_link
2179 # ac_fn_c_check_func LINENO FUNC VAR
2180 # ----------------------------------
2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2182 ac_fn_c_check_func ()
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186 $as_echo_n "checking for $2... " >&6; }
2187 if eval \${$3+:} false; then :
2188 $as_echo_n "(cached) " >&6
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2194 #define $2 innocuous_$2
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char $2 (); below.
2198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2199 <limits.h> exists even on freestanding compilers. */
2202 # include <limits.h>
2204 # include <assert.h>
2209 /* Override any GCC internal prototype to avoid an error.
2210 Use char because int might match the return type of a GCC
2211 builtin and then its argument prototype would still apply. */
2216 /* The GNU C library defines this for functions which it implements
2217 to always fail with ENOSYS. Some functions are actually named
2218 something starting with __ and the normal name is an alias. */
2219 #if defined __stub_$2 || defined __stub___$2
2231 if ac_fn_c_try_link "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext \
2237 conftest$ac_exeext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 } # ac_fn_c_check_func
2246 # ac_fn_f77_try_compile LINENO
2247 # ----------------------------
2248 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2249 ac_fn_f77_try_compile ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 rm -f conftest.$ac_objext
2253 if { { ac_try="$ac_compile"
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_compile") 2>conftest.err
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } && {
2269 test -z "$ac_f77_werror_flag" ||
2270 test ! -s conftest.err
2271 } && test -s conftest.$ac_objext; then :
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_f77_try_compile
2284 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2285 # --------------------------------------------
2286 # Tries to find the compile-time value of EXPR in a program that includes
2287 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2289 ac_fn_c_compute_int ()
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if test "$cross_compiling" = yes; then
2293 # Depending upon the size, compute the lo and hi bounds.
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2300 static int test_array [1 - 2 * !(($2) >= 0)];
2302 return test_array [0];
2308 if ac_fn_c_try_compile "$LINENO"; then :
2311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h. */
2317 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2319 return test_array [0];
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 ac_hi=$ac_mid; break
2328 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2329 if test $ac_lo -le $ac_mid; then
2333 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2344 static int test_array [1 - 2 * !(($2) < 0)];
2346 return test_array [0];
2352 if ac_fn_c_try_compile "$LINENO"; then :
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2363 return test_array [0];
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370 ac_lo=$ac_mid; break
2372 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2373 if test $ac_mid -le $ac_hi; then
2377 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2387 # Binary search between lo and hi bounds.
2388 while test "x$ac_lo" != "x$ac_hi"; do
2389 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2396 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2398 return test_array [0];
2404 if ac_fn_c_try_compile "$LINENO"; then :
2407 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 static long int longval () { return $2; }
2420 static unsigned long int ulongval () { return $2; }
2427 FILE *f = fopen ("conftest.val", "w");
2432 long int i = longval ();
2435 fprintf (f, "%ld", i);
2439 unsigned long int i = ulongval ();
2442 fprintf (f, "%lu", i);
2444 /* Do not output a trailing newline, as this causes \r\n confusion
2445 on some platforms. */
2446 return ferror (f) || fclose (f) != 0;
2452 if ac_fn_c_try_run "$LINENO"; then :
2453 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2458 conftest.$ac_objext conftest.beam conftest.$ac_ext
2462 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 as_fn_set_status $ac_retval
2465 } # ac_fn_c_compute_int
2467 # ac_fn_cxx_try_compile LINENO
2468 # ----------------------------
2469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2470 ac_fn_cxx_try_compile ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 rm -f conftest.$ac_objext
2474 if { { ac_try="$ac_compile"
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 $as_echo "$ac_try_echo"; } >&5
2481 (eval "$ac_compile") 2>conftest.err
2483 if test -s conftest.err; then
2484 grep -v '^ *+' conftest.err >conftest.er1
2485 cat conftest.er1 >&5
2486 mv -f conftest.er1 conftest.err
2488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2489 test $ac_status = 0; } && {
2490 test -z "$ac_cxx_werror_flag" ||
2491 test ! -s conftest.err
2492 } && test -s conftest.$ac_objext; then :
2495 $as_echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_cxx_try_compile
2505 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2506 # ----------------------------------------------------
2507 # Tries to find if the field MEMBER exists in type AGGR, after including
2508 # INCLUDES, setting cache variable VAR accordingly.
2509 ac_fn_c_check_member ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2513 $as_echo_n "checking for $2.$3... " >&6; }
2514 if eval \${$4+:} false; then :
2515 $as_echo_n "(cached) " >&6
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h. */
2530 if ac_fn_c_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2540 if (sizeof ac_aggr.$3)
2546 if ac_fn_c_try_compile "$LINENO"; then :
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2560 } # ac_fn_c_check_member
2562 # ac_fn_cxx_try_run LINENO
2563 # ------------------------
2564 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2565 # that executables *can* be run.
2566 ac_fn_cxx_try_run ()
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 if { { ac_try="$ac_link"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_link") 2>&5
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2580 { { case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_try") 2>&5
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; }; }; then :
2592 $as_echo "$as_me: program exited with status $ac_status" >&5
2593 $as_echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_retval=$ac_status
2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2600 as_fn_set_status $ac_retval
2602 } # ac_fn_cxx_try_run
2604 # ac_fn_cxx_try_cpp LINENO
2605 # ------------------------
2606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2607 ac_fn_cxx_try_cpp ()
2609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2610 if { { ac_try="$ac_cpp conftest.$ac_ext"
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 $as_echo "$ac_try_echo"; } >&5
2617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2619 if test -s conftest.err; then
2620 grep -v '^ *+' conftest.err >conftest.er1
2621 cat conftest.er1 >&5
2622 mv -f conftest.er1 conftest.err
2624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625 test $ac_status = 0; } > conftest.i && {
2626 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2627 test ! -s conftest.err
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637 as_fn_set_status $ac_retval
2639 } # ac_fn_cxx_try_cpp
2641 # ac_fn_cxx_try_link LINENO
2642 # -------------------------
2643 # Try to link conftest.$ac_ext, and return whether this succeeded.
2644 ac_fn_cxx_try_link ()
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 rm -f conftest.$ac_objext conftest$ac_exeext
2648 if { { ac_try="$ac_link"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2654 $as_echo "$ac_try_echo"; } >&5
2655 (eval "$ac_link") 2>conftest.err
2657 if test -s conftest.err; then
2658 grep -v '^ *+' conftest.err >conftest.er1
2659 cat conftest.er1 >&5
2660 mv -f conftest.er1 conftest.err
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; } && {
2664 test -z "$ac_cxx_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest$ac_exeext && {
2667 test "$cross_compiling" = yes ||
2668 test -x conftest$ac_exeext
2672 $as_echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2679 # interfere with the next link command; also delete a directory that is
2680 # left behind by Apple's compiler. We do this before executing the actions.
2681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2683 as_fn_set_status $ac_retval
2685 } # ac_fn_cxx_try_link
2687 # ac_fn_f77_try_link LINENO
2688 # -------------------------
2689 # Try to link conftest.$ac_ext, and return whether this succeeded.
2690 ac_fn_f77_try_link ()
2692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2693 rm -f conftest.$ac_objext conftest$ac_exeext
2694 if { { ac_try="$ac_link"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700 $as_echo "$ac_try_echo"; } >&5
2701 (eval "$ac_link") 2>conftest.err
2703 if test -s conftest.err; then
2704 grep -v '^ *+' conftest.err >conftest.er1
2705 cat conftest.er1 >&5
2706 mv -f conftest.er1 conftest.err
2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2709 test $ac_status = 0; } && {
2710 test -z "$ac_f77_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest$ac_exeext && {
2713 test "$cross_compiling" = yes ||
2714 test -x conftest$ac_exeext
2718 $as_echo "$as_me: failed program was:" >&5
2719 sed 's/^/| /' conftest.$ac_ext >&5
2723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2725 # interfere with the next link command; also delete a directory that is
2726 # left behind by Apple's compiler. We do this before executing the actions.
2727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2729 as_fn_set_status $ac_retval
2731 } # ac_fn_f77_try_link
2732 cat >config.log <<_ACEOF
2733 This file contains any messages produced by compilers while
2734 running configure, to aid debugging if configure makes a mistake.
2736 It was created by Scilab $as_me 5, which was
2737 generated by GNU Autoconf 2.69. Invocation command line was
2749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 $as_echo "PATH: $as_dir"
2789 # Keep a trace of the command line.
2790 # Strip out --no-create and --no-recursion so they do not pile up.
2791 # Strip out --silent because we don't want to record it for future runs.
2792 # Also quote any args containing shell meta-characters.
2793 # Make two passes to allow for proper duplicate-argument suppression.
2797 ac_must_keep_next=false
2803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2805 | -silent | --silent | --silen | --sile | --sil)
2808 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2811 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2813 as_fn_append ac_configure_args1 " '$ac_arg'"
2814 if test $ac_must_keep_next = true; then
2815 ac_must_keep_next=false # Got value, back to normal.
2818 *=* | --config-cache | -C | -disable-* | --disable-* \
2819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2821 | -with-* | --with-* | -without-* | --without-* | --x)
2822 case "$ac_configure_args0 " in
2823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2826 -* ) ac_must_keep_next=true ;;
2829 as_fn_append ac_configure_args " '$ac_arg'"
2834 { ac_configure_args0=; unset ac_configure_args0;}
2835 { ac_configure_args1=; unset ac_configure_args1;}
2837 # When interrupted or exit'd, cleanup temporary files, and complete
2838 # config.log. We remove comments because anyway the quotes in there
2839 # would cause problems or look ugly.
2840 # WARNING: Use '\'' to represent an apostrophe within the trap.
2841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2842 trap 'exit_status=$?
2843 # Save into config.log some information that might help in debugging.
2847 $as_echo "## ---------------- ##
2848 ## Cache variables. ##
2849 ## ---------------- ##"
2851 # The following way of writing the cache mishandles newlines in values,
2853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2854 eval ac_val=\$$ac_var
2858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862 _ | IFS | as_nl) ;; #(
2863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2864 *) { eval $ac_var=; unset $ac_var;} ;;
2869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2870 *${as_nl}ac_space=\ *)
2872 "s/'\''/'\''\\\\'\'''\''/g;
2873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2883 $as_echo "## ----------------- ##
2884 ## Output variables. ##
2885 ## ----------------- ##"
2887 for ac_var in $ac_subst_vars
2889 eval ac_val=\$$ac_var
2891 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2893 $as_echo "$ac_var='\''$ac_val'\''"
2897 if test -n "$ac_subst_files"; then
2898 $as_echo "## ------------------- ##
2899 ## File substitutions. ##
2900 ## ------------------- ##"
2902 for ac_var in $ac_subst_files
2904 eval ac_val=\$$ac_var
2906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2908 $as_echo "$ac_var='\''$ac_val'\''"
2913 if test -s confdefs.h; then
2914 $as_echo "## ----------- ##
2921 test "$ac_signal" != 0 &&
2922 $as_echo "$as_me: caught signal $ac_signal"
2923 $as_echo "$as_me: exit $exit_status"
2925 rm -f core *.core core.conftest.* &&
2926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929 for ac_signal in 1 2 13 15; do
2930 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2934 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2935 rm -f -r conftest* confdefs.h
2937 $as_echo "/* confdefs.h */" > confdefs.h
2939 # Predefined preprocessor variables.
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_URL "$PACKAGE_URL"
2966 # Let the site file select an alternate cache file if it wants to.
2967 # Prefer an explicitly selected file to automatically selected ones.
2970 if test -n "$CONFIG_SITE"; then
2971 # We do not want a PATH search for config.site.
2972 case $CONFIG_SITE in #((
2973 -*) ac_site_file1=./$CONFIG_SITE;;
2974 */*) ac_site_file1=$CONFIG_SITE;;
2975 *) ac_site_file1=./$CONFIG_SITE;;
2977 elif test "x$prefix" != xNONE; then
2978 ac_site_file1=$prefix/share/config.site
2979 ac_site_file2=$prefix/etc/config.site
2981 ac_site_file1=$ac_default_prefix/share/config.site
2982 ac_site_file2=$ac_default_prefix/etc/config.site
2984 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2986 test "x$ac_site_file" = xNONE && continue
2987 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2989 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2990 sed 's/^/| /' "$ac_site_file" >&5
2992 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "failed to load site script $ac_site_file
2995 See \`config.log' for more details" "$LINENO" 5; }
2999 if test -r "$cache_file"; then
3000 # Some versions of bash will fail to source /dev/null (special files
3001 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3004 $as_echo "$as_me: loading cache $cache_file" >&6;}
3006 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3007 *) . "./$cache_file";;
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3012 $as_echo "$as_me: creating cache $cache_file" >&6;}
3016 gt_needs="$gt_needs "
3017 # Check that the precious variables saved in the cache have kept the same
3019 ac_cache_corrupted=false
3020 for ac_var in $ac_precious_vars; do
3021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3022 eval ac_new_set=\$ac_env_${ac_var}_set
3023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3024 eval ac_new_val=\$ac_env_${ac_var}_value
3025 case $ac_old_set,$ac_new_set in
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3028 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3029 ac_cache_corrupted=: ;;
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3032 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3033 ac_cache_corrupted=: ;;
3036 if test "x$ac_old_val" != "x$ac_new_val"; then
3037 # differences in whitespace do not lead to failure.
3038 ac_old_val_w=`echo x $ac_old_val`
3039 ac_new_val_w=`echo x $ac_new_val`
3040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3042 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3043 ac_cache_corrupted=:
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3046 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3047 eval $ac_var=\$ac_old_val
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3050 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3052 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3055 # Pass precious variables to config.status.
3056 if test "$ac_new_set" = set; then
3058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3059 *) ac_arg=$ac_var=$ac_new_val ;;
3061 case " $ac_configure_args " in
3062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3063 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3067 if $ac_cache_corrupted; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3071 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3072 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3074 ## -------------------- ##
3075 ## Main body of script. ##
3076 ## -------------------- ##
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 SCI_BUILDDIR="`pwd`"
3089 SCI_SRCDIR="$srcdir"
3090 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3092 SCILAB_VERSION_MAJOR=5
3093 SCILAB_VERSION_MINOR=5
3094 SCILAB_VERSION_MAINTENANCE=0
3100 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3103 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3106 #shared library versioning
3107 #GENERIC_LIBRARY_VERSION=1:2:0
3111 # current:revision:age
3113 # | | +- increment if interfaces have been added
3114 # | | set to zero if interfaces have been removed
3116 # | +- increment if source code has changed
3117 # | set to zero if current is incremented
3118 # +- increment if interfaces have been added, removed or changed
3120 # Check if we have a space in the path to the source tree
3121 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3122 if test "$SPACE_IN_PATH" = "0"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3124 $as_echo "$as_me: WARNING: =====================================" >&2;}
3125 { $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
3126 $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;}
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3128 $as_echo "$as_me: WARNING: =====================================" >&2;}
3133 for ac_dir in config "$srcdir"/config; do
3134 if test -f "$ac_dir/install-sh"; then
3136 ac_install_sh="$ac_aux_dir/install-sh -c"
3138 elif test -f "$ac_dir/install.sh"; then
3140 ac_install_sh="$ac_aux_dir/install.sh -c"
3142 elif test -f "$ac_dir/shtool"; then
3144 ac_install_sh="$ac_aux_dir/shtool install -c"
3148 if test -z "$ac_aux_dir"; then
3149 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3152 # These three variables are undocumented and unsupported,
3153 # and are intended to be withdrawn in a future Autoconf release.
3154 # They can cause serious problems if a builder's source tree is in a directory
3155 # whose full name contains unusual characters.
3156 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3157 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3158 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3161 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3168 if test x"${install_sh}" != xset; then
3171 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3173 install_sh="\${SHELL} $am_aux_dir/install-sh"
3177 # Installed binaries are usually stripped using `strip' when the user
3178 # run `make install-strip'. However `strip' might not be the right
3179 # tool to use in cross-compilation environments, therefore Automake
3180 # will honor the `STRIP' environment variable to overrule this program.
3181 if test "$cross_compiling" != no; then
3182 if test -n "$ac_tool_prefix"; then
3183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3184 set dummy ${ac_tool_prefix}strip; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_STRIP+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$STRIP"; then
3191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 STRIP=$ac_cv_prog_STRIP
3211 if test -n "$STRIP"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3213 $as_echo "$STRIP" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$ac_cv_prog_STRIP"; then
3223 # Extract the first word of "strip", so it can be a program name with args.
3224 set dummy strip; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3228 $as_echo_n "(cached) " >&6
3230 if test -n "$ac_ct_STRIP"; then
3231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_STRIP="strip"
3241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3251 if test -n "$ac_ct_STRIP"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3253 $as_echo "$ac_ct_STRIP" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3259 if test "x$ac_ct_STRIP" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3271 STRIP="$ac_cv_prog_STRIP"
3275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3278 $as_echo_n "checking whether ln -s works... " >&6; }
3280 if test "$LN_S" = "ln -s"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3285 $as_echo "no, using $LN_S" >&6; }
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if ${ac_cv_prog_CC+:} false; then :
3300 $as_echo_n "(cached) " >&6
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test -n "$CC"; then
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3325 $as_echo "$CC" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3333 if test -z "$ac_cv_prog_CC"; then
3335 # Extract the first word of "gcc", so it can be a program name with args.
3336 set dummy gcc; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$ac_ct_CC"; then
3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_ac_ct_CC="gcc"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3371 if test "x$ac_ct_CC" = x; then
3374 case $cross_compiling:$ac_tool_warned in
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3386 if test -z "$CC"; then
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}cc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="${ac_tool_prefix}cc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3427 if test -z "$CC"; then
3428 # Extract the first word of "cc", so it can be a program name with args.
3429 set dummy cc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3447 ac_prog_rejected=yes
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 if test $ac_prog_rejected = yes; then
3459 # We found a bogon in the path, so make sure we never use it.
3460 set dummy $ac_cv_prog_CC
3462 if test $# != 0; then
3463 # We chose a different compiler from the bogus one.
3464 # However, it has the same basename, so the bogon will be chosen
3465 # first if we set CC to just the basename; use the full file name.
3467 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 if test -n "$CC"; then
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 $as_echo "$CC" >&6; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3483 if test -z "$CC"; then
3484 if test -n "$ac_tool_prefix"; then
3485 for ac_prog in cl.exe
3487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3488 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_CC+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 if test -n "$CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3524 test -n "$CC" && break
3527 if test -z "$CC"; then
3529 for ac_prog in cl.exe
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 if test -n "$ac_ct_CC"; then
3539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_ac_ct_CC="$ac_prog"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559 if test -n "$ac_ct_CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561 $as_echo "$ac_ct_CC" >&6; }
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 test -n "$ac_ct_CC" && break
3571 if test "x$ac_ct_CC" = x; then
3574 case $cross_compiling:$ac_tool_warned in
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3587 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "no acceptable C compiler found in \$PATH
3590 See \`config.log' for more details" "$LINENO" 5; }
3592 # Provide some information about the compiler.
3593 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3596 for ac_option in --version -v -V -qversion; do
3597 { { ac_try="$ac_compiler $ac_option >&5"
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3606 if test -s conftest.err; then
3608 ... rest of stderr output deleted ...
3609 10q' conftest.err >conftest.er1
3610 cat conftest.er1 >&5
3612 rm -f conftest.er1 conftest.err
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3634 $as_echo_n "checking whether the C compiler works... " >&6; }
3635 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3637 # The possible output files:
3638 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3641 for ac_file in $ac_files
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3645 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650 if { { ac_try="$ac_link_default"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link_default") 2>&5
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }; then :
3661 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3662 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3663 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3664 # so that the user can short-circuit this test for compilers unknown to
3666 for ac_file in $ac_files ''
3668 test -f "$ac_file" || continue
3670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3673 # We found the default executable, but exeext='' is most
3677 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3679 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3681 # We set ac_cv_exeext here because the later test for it is not
3682 # safe: cross compilers may not add the suffix if given an `-o'
3683 # argument, so we may need to know it at that point already.
3684 # Even if this section looks crufty: it has the advantage of
3691 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696 if test -z "$ac_file"; then :
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 $as_echo "no" >&6; }
3699 $as_echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error 77 "C compiler cannot create executables
3705 See \`config.log' for more details" "$LINENO" 5; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 $as_echo "yes" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3711 $as_echo_n "checking for C compiler default output file name... " >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3713 $as_echo "$ac_file" >&6; }
3714 ac_exeext=$ac_cv_exeext
3716 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3717 ac_clean_files=$ac_clean_files_save
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3719 $as_echo_n "checking for suffix of executables... " >&6; }
3720 if { { ac_try="$ac_link"
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_link") 2>&5
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; then :
3731 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3732 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3733 # work properly (i.e., refer to `conftest.exe'), while it won't with
3735 for ac_file in conftest.exe conftest conftest.*; do
3736 test -f "$ac_file" || continue
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3739 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3748 See \`config.log' for more details" "$LINENO" 5; }
3750 rm -f conftest conftest$ac_cv_exeext
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3752 $as_echo "$ac_cv_exeext" >&6; }
3754 rm -f conftest.$ac_ext
3755 EXEEXT=$ac_cv_exeext
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3763 FILE *f = fopen ("conftest.out", "w");
3764 return ferror (f) || fclose (f) != 0;
3770 ac_clean_files="$ac_clean_files conftest.out"
3771 # Check that the compiler produces executables we can run. If not, either
3772 # the compiler is broken, or we cross compile.
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3774 $as_echo_n "checking whether we are cross compiling... " >&6; }
3775 if test "$cross_compiling" != yes; then
3776 { { ac_try="$ac_link"
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_link") 2>&5
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }
3787 if { ac_try='./conftest$ac_cv_exeext'
3788 { { case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_try") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; }; then
3800 if test "$cross_compiling" = maybe; then
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error $? "cannot run C compiled programs.
3806 If you meant to cross compile, use \`--host'.
3807 See \`config.log' for more details" "$LINENO" 5; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3812 $as_echo "$cross_compiling" >&6; }
3814 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3815 ac_clean_files=$ac_clean_files_save
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3817 $as_echo_n "checking for suffix of object files... " >&6; }
3818 if ${ac_cv_objext+:} false; then :
3819 $as_echo_n "(cached) " >&6
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3832 rm -f conftest.o conftest.obj
3833 if { { ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3839 $as_echo "$ac_try_echo"; } >&5
3840 (eval "$ac_compile") 2>&5
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }; then :
3844 for ac_file in conftest.o conftest.obj conftest.*; do
3845 test -f "$ac_file" || continue;
3847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3848 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "cannot compute suffix of object files: cannot compile
3859 See \`config.log' for more details" "$LINENO" 5; }
3861 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3864 $as_echo "$ac_cv_objext" >&6; }
3865 OBJEXT=$ac_cv_objext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3869 if ${ac_cv_c_compiler_gnu+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3886 if ac_fn_c_try_compile "$LINENO"; then :
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3897 if test $ac_compiler_gnu = yes; then
3902 ac_test_CFLAGS=${CFLAGS+set}
3903 ac_save_CFLAGS=$CFLAGS
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3906 if ${ac_cv_prog_cc_g+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 ac_save_c_werror_flag=$ac_c_werror_flag
3910 ac_c_werror_flag=yes
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3924 if ac_fn_c_try_compile "$LINENO"; then :
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3939 if ac_fn_c_try_compile "$LINENO"; then :
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3955 if ac_fn_c_try_compile "$LINENO"; then :
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_c_werror_flag=$ac_save_c_werror_flag
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3966 $as_echo "$ac_cv_prog_cc_g" >&6; }
3967 if test "$ac_test_CFLAGS" = set; then
3968 CFLAGS=$ac_save_CFLAGS
3969 elif test $ac_cv_prog_cc_g = yes; then
3970 if test "$GCC" = yes; then
3976 if test "$GCC" = yes; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3984 if ${ac_cv_prog_cc_c89+:} false; then :
3985 $as_echo_n "(cached) " >&6
3987 ac_cv_prog_cc_c89=no
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3995 struct buf { int x; };
3996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3997 static char *e (p, i)
4003 static char *f (char * (*g) (char **, int), char **p, ...)
4008 s = g (p, va_arg (v,int));
4013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4014 function prototypes and stuff, but not '\xHH' hex character constants.
4015 These don't provoke an error unfortunately, instead are silently treated
4016 as 'x'. The following induces an error, until -std is added to get
4017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4018 array size at least. It's necessary to write '\x00'==0 to get something
4019 that's true only with -std. */
4020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4023 inside strings and character constants. */
4025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4027 int test (int i, double x);
4028 struct s1 {int (*f) (int a);};
4029 struct s2 {int (*f) (double a);};
4030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4044 CC="$ac_save_CC $ac_arg"
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_c89=$ac_arg
4048 rm -f core conftest.err conftest.$ac_objext
4049 test "x$ac_cv_prog_cc_c89" != "xno" && break
4051 rm -f conftest.$ac_ext
4056 case "x$ac_cv_prog_cc_c89" in
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;;
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062 $as_echo "unsupported" >&6; } ;;
4064 CC="$CC $ac_cv_prog_cc_c89"
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4066 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4068 if test "x$ac_cv_prog_cc_c89" != xno; then :
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4080 # Check whether --enable-largefile was given.
4081 if test "${enable_largefile+set}" = set; then :
4082 enableval=$enable_largefile;
4085 if test "$enable_largefile" != no; then
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4088 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4089 if ${ac_cv_sys_largefile_CC+:} false; then :
4090 $as_echo_n "(cached) " >&6
4092 ac_cv_sys_largefile_CC=no
4093 if test "$GCC" != yes; then
4096 # IRIX 6.2 and later do not support large files by default,
4097 # so use the C compiler's -n32 option if that helps.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103 since some C++ compilers masquerading as C compilers
4104 incorrectly reject 9223372036854775807. */
4105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107 && LARGE_OFF_T % 2147483647 == 1)
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 rm -f core conftest.err conftest.$ac_objext
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_sys_largefile_CC=' -n32'; break
4125 rm -f core conftest.err conftest.$ac_objext
4129 rm -f conftest.$ac_ext
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4133 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4134 if test "$ac_cv_sys_largefile_CC" != no; then
4135 CC=$CC$ac_cv_sys_largefile_CC
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4139 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4140 if ${ac_cv_sys_file_offset_bits+:} false; then :
4141 $as_echo_n "(cached) " >&6
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 /* Check that off_t can represent 2**63 - 1 correctly.
4148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4149 since some C++ compilers masquerading as C compilers
4150 incorrectly reject 9223372036854775807. */
4151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4153 && LARGE_OFF_T % 2147483647 == 1)
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_sys_file_offset_bits=no; break
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #define _FILE_OFFSET_BITS 64
4170 #include <sys/types.h>
4171 /* Check that off_t can represent 2**63 - 1 correctly.
4172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173 since some C++ compilers masquerading as C compilers
4174 incorrectly reject 9223372036854775807. */
4175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177 && LARGE_OFF_T % 2147483647 == 1)
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_sys_file_offset_bits=64; break
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 ac_cv_sys_file_offset_bits=unknown
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4196 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4197 case $ac_cv_sys_file_offset_bits in #(
4200 cat >>confdefs.h <<_ACEOF
4201 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4206 if test $ac_cv_sys_file_offset_bits = unknown; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4208 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4209 if ${ac_cv_sys_large_files+:} false; then :
4210 $as_echo_n "(cached) " >&6
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_sys_large_files=no; break
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #define _LARGE_FILES 1
4239 #include <sys/types.h>
4240 /* Check that off_t can represent 2**63 - 1 correctly.
4241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4242 since some C++ compilers masquerading as C compilers
4243 incorrectly reject 9223372036854775807. */
4244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4246 && LARGE_OFF_T % 2147483647 == 1)
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_sys_large_files=1; break
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_cv_sys_large_files=unknown
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4265 $as_echo "$ac_cv_sys_large_files" >&6; }
4266 case $ac_cv_sys_large_files in #(
4269 cat >>confdefs.h <<_ACEOF
4270 #define _LARGE_FILES $ac_cv_sys_large_files
4280 echo "ac: $ac_cv_sys_file_offset_bits"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4282 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4283 if ${largefile64_cv_source+:} false; then :
4284 $as_echo_n "(cached) " >&6
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4290 #include <sys/types.h>
4291 #include <sys/stat.h>
4298 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4304 if ac_fn_c_try_compile "$LINENO"; then :
4306 largefile64_source="no"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4313 #define _LARGEFILE64_SOURCE
4314 #include <sys/types.h>
4315 #include <sys/stat.h>
4322 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4328 if ac_fn_c_try_compile "$LINENO"; then :
4330 largefile64_source="yes"
4334 largefile64_source="unknown"
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4344 $as_echo "$largefile64_cv_source" >&6; }
4346 if test "x$largefile64_source" = "xyes"; then
4347 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4348 enable_largefile="yes"
4349 elif test "x$largefile64_source" = "xunknown"; then
4351 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4355 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4356 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4357 enable_largefile="yes"
4360 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4361 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4362 enable_largefile="yes"
4367 # In order to be able to change the scilab directory
4368 # See http://wiki.debian.org/RpathIssue
4369 # Find a good install program. We prefer a C program (faster),
4370 # so one script is as good as another. But avoid the broken or
4371 # incompatible versions:
4372 # SysV /etc/install, /usr/sbin/install
4373 # SunOS /usr/etc/install
4374 # IRIX /sbin/install
4376 # AmigaOS /C/install, which installs bootblocks on floppy discs
4377 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4378 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4379 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4380 # OS/2's system install, which has a completely different semantic
4381 # ./install, which can be erroneously created by make from ./install.sh.
4382 # Reject install programs that cannot install multiple files.
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4384 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4385 if test -z "$INSTALL"; then
4386 if ${ac_cv_path_install+:} false; then :
4387 $as_echo_n "(cached) " >&6
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395 case $as_dir/ in #((
4396 ./ | .// | /[cC]/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4416 rm -rf conftest.one conftest.two conftest.dir
4417 echo one > conftest.one
4418 echo two > conftest.two
4420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4421 test -s conftest.one && test -s conftest.two &&
4422 test -s conftest.dir/conftest.one &&
4423 test -s conftest.dir/conftest.two
4425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438 rm -rf conftest.one conftest.two conftest.dir
4441 if test "${ac_cv_path_install+set}" = set; then
4442 INSTALL=$ac_cv_path_install
4444 # As a last resort, use the slow shell script. Don't cache a
4445 # value for INSTALL within a source directory, because that will
4446 # break other packages using the cache if that directory is
4447 # removed, or if the value is a relative name.
4448 INSTALL=$ac_install_sh
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4452 $as_echo "$INSTALL" >&6; }
4454 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4455 # It thinks the first close brace ends the variable substitution.
4456 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4458 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4460 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4462 # Make sure we can run config.sub.
4463 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4464 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4467 $as_echo_n "checking build system type... " >&6; }
4468 if ${ac_cv_build+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 ac_build_alias=$build_alias
4472 test "x$ac_build_alias" = x &&
4473 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4474 test "x$ac_build_alias" = x &&
4475 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4476 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4477 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4481 $as_echo "$ac_cv_build" >&6; }
4482 case $ac_cv_build in
4484 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4487 ac_save_IFS=$IFS; IFS='-'
4493 # Remember, the first character of IFS is used to create $*,
4494 # except with old shells:
4497 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4501 $as_echo_n "checking host system type... " >&6; }
4502 if ${ac_cv_host+:} false; then :
4503 $as_echo_n "(cached) " >&6
4505 if test "x$host_alias" = x; then
4506 ac_cv_host=$ac_cv_build
4508 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4514 $as_echo "$ac_cv_host" >&6; }
4517 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4520 ac_save_IFS=$IFS; IFS='-'
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4530 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4534 # Check whether --with-gnu-ld was given.
4535 if test "${with_gnu_ld+set}" = set; then :
4536 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4541 # Prepare PATH_SEPARATOR.
4542 # The user is always right.
4543 if test "${PATH_SEPARATOR+set}" != set; then
4544 echo "#! /bin/sh" >conf$$.sh
4545 echo "exit 0" >>conf$$.sh
4547 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4555 if test "$GCC" = yes; then
4556 # Check if gcc -print-prog-name=ld gives a path.
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4558 $as_echo_n "checking for ld used by GCC... " >&6; }
4561 # gcc leaves a trailing carriage return which upsets mingw
4562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4567 # Accept absolute paths.
4568 [\\/]* | [A-Za-z]:[\\/]*)
4569 re_direlt='/[^/][^/]*/\.\./'
4570 # Canonicalize the path of ld
4571 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4572 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4573 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4575 test -z "$LD" && LD="$ac_prog"
4578 # If it fails, then pretend we aren't using GCC.
4582 # If it is relative, then search for the first ld in PATH.
4586 elif test "$with_gnu_ld" = yes; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4588 $as_echo_n "checking for GNU ld... " >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4591 $as_echo_n "checking for non-GNU ld... " >&6; }
4593 if ${acl_cv_path_LD+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -z "$LD"; then
4597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4598 for ac_dir in $PATH; do
4599 test -z "$ac_dir" && ac_dir=.
4600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4601 acl_cv_path_LD="$ac_dir/$ac_prog"
4602 # Check to see if the program is GNU ld. I'd rather use --version,
4603 # but apparently some GNU ld's only accept -v.
4604 # Break only if it was the GNU/non-GNU ld that we prefer.
4605 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4606 *GNU* | *'with BFD'*)
4607 test "$with_gnu_ld" != no && break ;;
4609 test "$with_gnu_ld" != yes && break ;;
4615 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4619 LD="$acl_cv_path_LD"
4620 if test -n "$LD"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4622 $as_echo "$LD" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4627 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4629 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4630 if ${acl_cv_prog_gnu_ld+:} false; then :
4631 $as_echo_n "(cached) " >&6
4633 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4634 case `$LD -v 2>&1 </dev/null` in
4635 *GNU* | *'with BFD'*)
4636 acl_cv_prog_gnu_ld=yes ;;
4638 acl_cv_prog_gnu_ld=no ;;
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4642 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4643 with_gnu_ld=$acl_cv_prog_gnu_ld
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4648 $as_echo_n "checking for shared library path variable... " >&6; }
4649 if ${acl_cv_libpath+:} false; then :
4650 $as_echo_n "(cached) " >&6
4654 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4657 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4661 $as_echo "$acl_cv_libpath" >&6; }
4662 shlibpath_var="$acl_cv_shlibpath_var"
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4666 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4667 # Check whether --enable-relocatable was given.
4668 if test "${enable_relocatable+set}" = set; then :
4669 enableval=$enable_relocatable; if test "$enableval" != no; then
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4681 $as_echo "$RELOCATABLE" >&6; }
4685 if test "X$prefix" = "XNONE"; then
4686 reloc_final_prefix="$ac_default_prefix"
4688 reloc_final_prefix="$prefix"
4691 cat >>confdefs.h <<_ACEOF
4692 #define INSTALLPREFIX "${reloc_final_prefix}"
4698 ac_cpp='$CPP $CPPFLAGS'
4699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4703 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4708 if test -z "$CPP"; then
4709 if ${ac_cv_prog_CPP+:} false; then :
4710 $as_echo_n "(cached) " >&6
4712 # Double quotes because CPP needs to be expanded
4713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4716 for ac_c_preproc_warn_flag in '' yes
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4727 # include <limits.h>
4729 # include <assert.h>
4733 if ac_fn_c_try_cpp "$LINENO"; then :
4736 # Broken: fails on valid input.
4739 rm -f conftest.err conftest.i conftest.$ac_ext
4741 # OK, works on sane cases. Now check whether nonexistent headers
4742 # can be detected and how.
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <ac_nonexistent.h>
4747 if ac_fn_c_try_cpp "$LINENO"; then :
4748 # Broken: success on invalid input.
4751 # Passes both tests.
4755 rm -f conftest.err conftest.i conftest.$ac_ext
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.i conftest.err conftest.$ac_ext
4760 if $ac_preproc_ok; then :
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4773 $as_echo "$CPP" >&6; }
4775 for ac_c_preproc_warn_flag in '' yes
4777 # Use a header file that comes with gcc, so configuring glibc
4778 # with a fresh cross-compiler works.
4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 # <limits.h> exists even on freestanding compilers.
4781 # On the NeXT, cc -E runs the code through the compiler's parser,
4782 # not just through cpp. "Syntax error" is here to catch this case.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4786 # include <limits.h>
4788 # include <assert.h>
4792 if ac_fn_c_try_cpp "$LINENO"; then :
4795 # Broken: fails on valid input.
4798 rm -f conftest.err conftest.i conftest.$ac_ext
4800 # OK, works on sane cases. Now check whether nonexistent headers
4801 # can be detected and how.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <ac_nonexistent.h>
4806 if ac_fn_c_try_cpp "$LINENO"; then :
4807 # Broken: success on invalid input.
4810 # Passes both tests.
4814 rm -f conftest.err conftest.i conftest.$ac_ext
4817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818 rm -f conftest.i conftest.err conftest.$ac_ext
4819 if $ac_preproc_ok; then :
4822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4824 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4825 See \`config.log' for more details" "$LINENO" 5; }
4829 ac_cpp='$CPP $CPPFLAGS'
4830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4837 if ${ac_cv_path_GREP+:} false; then :
4838 $as_echo_n "(cached) " >&6
4840 if test -z "$GREP"; then
4841 ac_path_GREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in grep ggrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4851 as_fn_executable_p "$ac_path_GREP" || continue
4852 # Check for GNU ac_path_GREP and select it if it is found.
4853 # Check for GNU $ac_path_GREP
4854 case `"$ac_path_GREP" --version 2>&1` in
4856 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4859 $as_echo_n 0123456789 >"conftest.in"
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'GREP' >> "conftest.nl"
4866 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_GREP="$ac_path_GREP"
4872 ac_path_GREP_max=$ac_count
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4880 $ac_path_GREP_found && break 3
4885 if test -z "$ac_cv_path_GREP"; then
4886 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4889 ac_cv_path_GREP=$GREP
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4894 $as_echo "$ac_cv_path_GREP" >&6; }
4895 GREP="$ac_cv_path_GREP"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4899 $as_echo_n "checking for egrep... " >&6; }
4900 if ${ac_cv_path_EGREP+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4904 then ac_cv_path_EGREP="$GREP -E"
4906 if test -z "$EGREP"; then
4907 ac_path_EGREP_found=false
4908 # Loop through the user's path and test for each of PROGNAME-LIST
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4913 test -z "$as_dir" && as_dir=.
4914 for ac_prog in egrep; do
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4917 as_fn_executable_p "$ac_path_EGREP" || continue
4918 # Check for GNU ac_path_EGREP and select it if it is found.
4919 # Check for GNU $ac_path_EGREP
4920 case `"$ac_path_EGREP" --version 2>&1` in
4922 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4925 $as_echo_n 0123456789 >"conftest.in"
4928 cat "conftest.in" "conftest.in" >"conftest.tmp"
4929 mv "conftest.tmp" "conftest.in"
4930 cp "conftest.in" "conftest.nl"
4931 $as_echo 'EGREP' >> "conftest.nl"
4932 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4934 as_fn_arith $ac_count + 1 && ac_count=$as_val
4935 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4936 # Best one so far, save it but keep looking for a better one
4937 ac_cv_path_EGREP="$ac_path_EGREP"
4938 ac_path_EGREP_max=$ac_count
4940 # 10*(2^10) chars as input seems more than enough
4941 test $ac_count -gt 10 && break
4943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946 $ac_path_EGREP_found && break 3
4951 if test -z "$ac_cv_path_EGREP"; then
4952 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4955 ac_cv_path_EGREP=$EGREP
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4961 $as_echo "$ac_cv_path_EGREP" >&6; }
4962 EGREP="$ac_cv_path_EGREP"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4966 $as_echo_n "checking for ANSI C header files... " >&6; }
4967 if ${ac_cv_header_stdc+:} false; then :
4968 $as_echo_n "(cached) " >&6
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4985 if ac_fn_c_try_compile "$LINENO"; then :
4986 ac_cv_header_stdc=yes
4988 ac_cv_header_stdc=no
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 if test $ac_cv_header_stdc = yes; then
4993 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5000 $EGREP "memchr" >/dev/null 2>&1; then :
5003 ac_cv_header_stdc=no
5009 if test $ac_cv_header_stdc = yes; then
5010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5017 $EGREP "free" >/dev/null 2>&1; then :
5020 ac_cv_header_stdc=no
5026 if test $ac_cv_header_stdc = yes; then
5027 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5028 if test "$cross_compiling" = yes; then :
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5035 #if ((' ' & 0x0FF) == 0x020)
5036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5039 # define ISLOWER(c) \
5040 (('a' <= (c) && (c) <= 'i') \
5041 || ('j' <= (c) && (c) <= 'r') \
5042 || ('s' <= (c) && (c) <= 'z'))
5043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5051 for (i = 0; i < 256; i++)
5052 if (XOR (islower (i), ISLOWER (i))
5053 || toupper (i) != TOUPPER (i))
5058 if ac_fn_c_try_run "$LINENO"; then :
5061 ac_cv_header_stdc=no
5063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5064 conftest.$ac_objext conftest.beam conftest.$ac_ext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5070 $as_echo "$ac_cv_header_stdc" >&6; }
5071 if test $ac_cv_header_stdc = yes; then
5073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5077 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5079 inttypes.h stdint.h unistd.h
5081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5084 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5085 cat >>confdefs.h <<_ACEOF
5086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101 use_elf_origin_trick=no
5102 if test $RELOCATABLE = yes; then
5103 # --enable-relocatable implies --disable-rpath
5106 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5108 for ac_header in unistd.h mach-o/dyld.h
5110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5112 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5113 cat >>confdefs.h <<_ACEOF
5114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5121 for ac_func in _NSGetExecutablePath
5123 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5124 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5125 cat >>confdefs.h <<_ACEOF
5126 #define HAVE__NSGETEXECUTABLEPATH 1
5133 mingw*) is_noop=yes ;;
5134 linux*) use_elf_origin_trick=yes ;;
5136 if test $is_noop = yes; then
5137 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5139 if test $use_elf_origin_trick = yes; then
5140 case "$ac_aux_dir" in
5141 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5142 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5144 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5146 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\""
5147 case "$ac_aux_dir" in
5148 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5149 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5157 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5158 RELOCATABLE_VIA_LD_TRUE=
5159 RELOCATABLE_VIA_LD_FALSE='#'
5161 RELOCATABLE_VIA_LD_TRUE='#'
5162 RELOCATABLE_VIA_LD_FALSE=
5168 if test $RELOCATABLE = yes; then
5169 case " $LIBOBJS " in
5170 *" relocatable.$ac_objext "* ) ;;
5171 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5179 if test "X$prefix" = "XNONE"; then
5180 reloc_final_prefix="$ac_default_prefix"
5182 reloc_final_prefix="$prefix"
5185 cat >>confdefs.h <<_ACEOF
5186 #define INSTALLPREFIX "${reloc_final_prefix}"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5193 $as_echo_n "checking for shared library run path origin... " >&6; }
5194 if ${acl_cv_rpath+:} false; then :
5195 $as_echo_n "(cached) " >&6
5198 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5206 $as_echo "$acl_cv_rpath" >&6; }
5208 acl_libext="$acl_cv_libext"
5209 acl_shlibext="$acl_cv_shlibext"
5210 acl_libname_spec="$acl_cv_libname_spec"
5211 acl_library_names_spec="$acl_cv_library_names_spec"
5212 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5213 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5214 acl_hardcode_direct="$acl_cv_hardcode_direct"
5215 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5216 # Check whether --enable-rpath was given.
5217 if test "${enable_rpath+set}" = set; then :
5218 enableval=$enable_rpath; :
5225 # If configure detect that timestamp changed,
5226 # it tries to rebuild configure & makefile which can be a painmaker
5227 # if the version is different
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5230 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5231 # Check whether --enable-maintainer-mode was given.
5232 if test "${enable_maintainer_mode+set}" = set; then :
5233 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5235 USE_MAINTAINER_MODE=no
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5239 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5240 if test $USE_MAINTAINER_MODE = yes; then
5241 MAINTAINER_MODE_TRUE=
5242 MAINTAINER_MODE_FALSE='#'
5244 MAINTAINER_MODE_TRUE='#'
5245 MAINTAINER_MODE_FALSE=
5248 MAINT=$MAINTAINER_MODE_TRUE
5252 am__api_version='1.11'
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5255 $as_echo_n "checking whether build environment is sane... " >&6; }
5258 echo timestamp > conftest.file
5259 # Reject unsafe characters in $srcdir or the absolute working directory
5260 # name. Accept space and tab only in the latter.
5264 *[\\\"\#\$\&\'\`$am_lf]*)
5265 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5268 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5269 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5272 # Do `set' in a subshell so we don't clobber the current shell's
5273 # arguments. Must try -L first in case configure is actually a
5274 # symlink; some systems play weird games with the mod time of symlinks
5275 # (eg FreeBSD returns the mod time of the symlink's containing
5278 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5279 if test "$*" = "X"; then
5281 set X `ls -t "$srcdir/configure" conftest.file`
5284 if test "$*" != "X $srcdir/configure conftest.file" \
5285 && test "$*" != "X conftest.file $srcdir/configure"; then
5287 # If neither matched, then we have a broken ls. This can happen
5288 # if, for instance, CONFIG_SHELL is bash and it inherits a
5289 # broken ls alias from the environment. This has actually
5290 # happened. Such a system could not be considered "sane".
5291 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5292 alias in your environment" "$LINENO" 5
5295 test "$2" = conftest.file
5301 as_fn_error $? "newly created file is older than distributed files!
5302 Check your system clock" "$LINENO" 5
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5305 $as_echo "yes" >&6; }
5306 test "$program_prefix" != NONE &&
5307 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5308 # Use a double $ so make ignores it.
5309 test "$program_suffix" != NONE &&
5310 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5311 # Double any \ or $.
5312 # By default was `s,x,x', remove it if useless.
5313 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5314 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5316 if test x"${MISSING+set}" != xset; then
5319 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5321 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5324 # Use eval to expand $SHELL
5325 if eval "$MISSING --run true"; then
5326 am_missing_run="$MISSING --run "
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5330 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5334 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5335 if test -z "$MKDIR_P"; then
5336 if ${ac_cv_path_mkdir+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5343 test -z "$as_dir" && as_dir=.
5344 for ac_prog in mkdir gmkdir; do
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5347 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5348 'mkdir (GNU coreutils) '* | \
5349 'mkdir (coreutils) '* | \
5350 'mkdir (fileutils) '4.1*)
5351 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5361 test -d ./--version && rmdir ./--version
5362 if test "${ac_cv_path_mkdir+set}" = set; then
5363 MKDIR_P="$ac_cv_path_mkdir -p"
5365 # As a last resort, use the slow shell script. Don't cache a
5366 # value for MKDIR_P within a source directory, because that will
5367 # break other packages using the cache if that directory is
5368 # removed, or if the value is a relative name.
5369 MKDIR_P="$ac_install_sh -d"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5373 $as_echo "$MKDIR_P" >&6; }
5377 [\\/$]* | ?:[\\/]*) ;;
5378 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5381 for ac_prog in gawk mawk nawk awk
5383 # Extract the first word of "$ac_prog", so it can be a program name with args.
5384 set dummy $ac_prog; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_AWK+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$AWK"; then
5391 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_AWK="$ac_prog"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 if test -n "$AWK"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5413 $as_echo "$AWK" >&6; }
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5420 test -n "$AWK" && break
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5424 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5426 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5427 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5428 $as_echo_n "(cached) " >&6
5430 cat >conftest.make <<\_ACEOF
5433 @echo '@@@%%%=$(MAKE)=@@@%%%'
5435 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5436 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5438 eval ac_cv_prog_make_${ac_make}_set=yes;;
5440 eval ac_cv_prog_make_${ac_make}_set=no;;
5444 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 $as_echo "yes" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 SET_MAKE="MAKE=${MAKE-make}"
5454 rm -rf .tst 2>/dev/null
5455 mkdir .tst 2>/dev/null
5456 if test -d .tst; then
5461 rmdir .tst 2>/dev/null
5463 DEPDIR="${am__leading_dot}deps"
5465 ac_config_commands="$ac_config_commands depfiles"
5468 am_make=${MAKE-make}
5469 cat > confinc << 'END'
5471 @echo this is the am__doit target
5474 # If we don't find an include directive, just comment out the code.
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5476 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5480 # First try GNU make style include.
5481 echo "include confinc" > confmf
5482 # Ignore all kinds of additional output from `make'.
5483 case `$am_make -s -f confmf 2> /dev/null` in #(
5484 *the\ am__doit\ target*)
5490 # Now try BSD make style include.
5491 if test "$am__include" = "#"; then
5492 echo '.include "confinc"' > confmf
5493 case `$am_make -s -f confmf 2> /dev/null` in #(
5494 *the\ am__doit\ target*)
5495 am__include=.include
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5504 $as_echo "$_am_result" >&6; }
5505 rm -f confinc confmf
5507 # Check whether --enable-dependency-tracking was given.
5508 if test "${enable_dependency_tracking+set}" = set; then :
5509 enableval=$enable_dependency_tracking;
5512 if test "x$enable_dependency_tracking" != xno; then
5513 am_depcomp="$ac_aux_dir/depcomp"
5517 if test "x$enable_dependency_tracking" != xno; then
5526 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5527 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5528 # is not polluted with repeated "-I."
5529 am__isrc=' -I$(srcdir)'
5530 # test to see if srcdir already configured
5531 if test -f $srcdir/config.status; then
5532 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5536 # test whether we have cygpath
5537 if test -z "$CYGPATH_W"; then
5538 if (cygpath --version) >/dev/null 2>/dev/null; then
5539 CYGPATH_W='cygpath -w'
5546 # Define the identity of the package.
5551 cat >>confdefs.h <<_ACEOF
5552 #define PACKAGE "$PACKAGE"
5556 cat >>confdefs.h <<_ACEOF
5557 #define VERSION "$VERSION"
5560 # Some tools Automake needs.
5562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5576 # We need awk for the "check" target. The system "awk" is bad on
5578 # Always define AMTAR for backward compatibility. Yes, it's still used
5579 # in the wild :-( We should find a proper way to deprecate it ...
5582 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5587 depcc="$CC" am_compiler_list=
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5590 $as_echo_n "checking dependency style of $depcc... " >&6; }
5591 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5592 $as_echo_n "(cached) " >&6
5594 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5595 # We make a subdir and do the tests there. Otherwise we can end up
5596 # making bogus files that we don't know about and never remove. For
5597 # instance it was reported that on HP-UX the gcc test will end up
5598 # making a dummy file named `D' -- because `-MD' means `put the output
5602 # Copy depcomp to subdir because otherwise we won't find it if we're
5603 # using a relative directory.
5604 cp "$am_depcomp" conftest.dir
5606 # We will build objects and dependencies in a subdirectory because
5607 # it helps to detect inapplicable dependency modes. For instance
5608 # both Tru64's cc and ICC support -MD to output dependencies as a
5609 # side effect of compilation, but ICC will put the dependencies in
5610 # the current directory while Tru64 will put them in the object
5614 am_cv_CC_dependencies_compiler_type=none
5615 if test "$am_compiler_list" = ""; then
5616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5619 case " $depcc " in #(
5620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5623 for depmode in $am_compiler_list; do
5624 # Setup a source with many dependencies, because some compilers
5625 # like to wrap large dependency lists on column 80 (with \), and
5626 # we should not choose a depcomp mode which is confused by this.
5628 # We need to recreate these files for each test, as the compiler may
5629 # overwrite some of them when testing with obscure command lines.
5630 # This happens at least with the AIX C compiler.
5632 for i in 1 2 3 4 5 6; do
5633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5635 # Solaris 8's {/usr,}/bin/sh.
5636 touch sub/conftst$i.h
5638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5640 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5641 # mode. It turns out that the SunPro C++ compiler does not properly
5642 # handle `-M -o', and we need to detect this. Also, some Intel
5643 # versions had trouble with output in subdirs
5644 am__obj=sub/conftest.${OBJEXT-o}
5645 am__minus_obj="-o $am__obj"
5648 # This depmode causes a compiler race in universal mode.
5649 test "$am__universal" = false || continue
5652 # after this tag, mechanisms are not by side-effect, so they'll
5653 # only be used when explicitly requested
5654 if test "x$enable_dependency_tracking" = xyes; then
5660 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5661 # This compiler won't grok `-c -o', but also, the minuso test has
5662 # not run yet. These depmodes are late enough in the game, and
5663 # so weak that their functioning should not be impacted.
5664 am__obj=conftest.${OBJEXT-o}
5669 if depmode=$depmode \
5670 source=sub/conftest.c object=$am__obj \
5671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5673 >/dev/null 2>conftest.err &&
5674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5678 # icc doesn't choke on unknown options, it will just issue warnings
5679 # or remarks (even with -Werror). So we grep stderr for any message
5680 # that says an option was ignored or not supported.
5681 # When given -MP, icc 7.0 and 7.1 complain thusly:
5682 # icc: Command line warning: ignoring option '-M'; no argument required
5683 # The diagnosis changed in icc 8.0:
5684 # icc: Command line remark: option '-MP' not supported
5685 if (grep 'ignoring option' conftest.err ||
5686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5687 am_cv_CC_dependencies_compiler_type=$depmode
5696 am_cv_CC_dependencies_compiler_type=none
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5705 test "x$enable_dependency_tracking" != xno \
5706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5708 am__fastdepCC_FALSE='#'
5710 am__fastdepCC_TRUE='#'
5711 am__fastdepCC_FALSE=
5715 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5719 #################################
5720 ## all the --with-* argument help
5721 #################################
5724 # Check whether --enable-debug was given.
5725 if test "${enable_debug+set}" = set; then :
5726 enableval=$enable_debug;
5730 # Check whether --enable-debug-C was given.
5731 if test "${enable_debug_C+set}" = set; then :
5732 enableval=$enable_debug_C;
5736 # Check whether --enable-debug-CXX was given.
5737 if test "${enable_debug_CXX+set}" = set; then :
5738 enableval=$enable_debug_CXX;
5742 # Check whether --enable-debug-java was given.
5743 if test "${enable_debug_java+set}" = set; then :
5744 enableval=$enable_debug_java;
5748 # Check whether --enable-debug-fortran was given.
5749 if test "${enable_debug_fortran+set}" = set; then :
5750 enableval=$enable_debug_fortran;
5754 # Check whether --enable-debug-linker was given.
5755 if test "${enable_debug_linker+set}" = set; then :
5756 enableval=$enable_debug_linker;
5760 # Check whether --enable-code-coverage was given.
5761 if test "${enable_code_coverage+set}" = set; then :
5762 enableval=$enable_code_coverage;
5766 # Check whether --enable-stop-on-warning was given.
5767 if test "${enable_stop_on_warning+set}" = set; then :
5768 enableval=$enable_stop_on_warning;
5773 # Check whether --with-gcc was given.
5774 if test "${with_gcc+set}" = set; then :
5780 # Check whether --with-gfortran was given.
5781 if test "${with_gfortran+set}" = set; then :
5782 withval=$with_gfortran;
5787 # Check whether --with-intelcompilers was given.
5788 if test "${with_intelcompilers+set}" = set; then :
5789 withval=$with_intelcompilers;
5794 # Check whether --with-tk was given.
5795 if test "${with_tk+set}" = set; then :
5801 # Check whether --with-javasci was given.
5802 if test "${with_javasci+set}" = set; then :
5803 withval=$with_javasci;
5807 # Check whether --enable-compilation-tests was given.
5808 if test "${enable_compilation_tests+set}" = set; then :
5809 enableval=$enable_compilation_tests;
5814 # Check whether --with-gui was given.
5815 if test "${with_gui+set}" = set; then :
5820 # Check whether --enable-build-swig was given.
5821 if test "${enable_build_swig+set}" = set; then :
5822 enableval=$enable_build_swig;
5826 # Check whether --enable-build-giws was given.
5827 if test "${enable_build_giws+set}" = set; then :
5828 enableval=$enable_build_giws;
5833 ################################################
5834 ########## compilator & misc programs detection
5835 ################################################
5838 ac_cpp='$CPP $CPPFLAGS'
5839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5843 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5844 # On Suns, sometimes $CPP names a directory.
5845 if test -n "$CPP" && test -d "$CPP"; then
5848 if test -z "$CPP"; then
5849 if ${ac_cv_prog_CPP+:} false; then :
5850 $as_echo_n "(cached) " >&6
5852 # Double quotes because CPP needs to be expanded
5853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5856 for ac_c_preproc_warn_flag in '' yes
5858 # Use a header file that comes with gcc, so configuring glibc
5859 # with a fresh cross-compiler works.
5860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5861 # <limits.h> exists even on freestanding compilers.
5862 # On the NeXT, cc -E runs the code through the compiler's parser,
5863 # not just through cpp. "Syntax error" is here to catch this case.
5864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5865 /* end confdefs.h. */
5867 # include <limits.h>
5869 # include <assert.h>
5873 if ac_fn_c_try_cpp "$LINENO"; then :
5876 # Broken: fails on valid input.
5879 rm -f conftest.err conftest.i conftest.$ac_ext
5881 # OK, works on sane cases. Now check whether nonexistent headers
5882 # can be detected and how.
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885 #include <ac_nonexistent.h>
5887 if ac_fn_c_try_cpp "$LINENO"; then :
5888 # Broken: success on invalid input.
5891 # Passes both tests.
5895 rm -f conftest.err conftest.i conftest.$ac_ext
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.i conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok; then :
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5915 for ac_c_preproc_warn_flag in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5926 # include <limits.h>
5928 # include <assert.h>
5932 if ac_fn_c_try_cpp "$LINENO"; then :
5935 # Broken: fails on valid input.
5938 rm -f conftest.err conftest.i conftest.$ac_ext
5940 # OK, works on sane cases. Now check whether nonexistent headers
5941 # can be detected and how.
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <ac_nonexistent.h>
5946 if ac_fn_c_try_cpp "$LINENO"; then :
5947 # Broken: success on invalid input.
5950 # Passes both tests.
5954 rm -f conftest.err conftest.i conftest.$ac_ext
5957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5958 rm -f conftest.i conftest.err conftest.$ac_ext
5959 if $ac_preproc_ok; then :
5962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5964 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5965 See \`config.log' for more details" "$LINENO" 5; }
5969 ac_cpp='$CPP $CPPFLAGS'
5970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5975 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5976 if ${ac_cv_path_GREP+:} false; then :
5977 $as_echo_n "(cached) " >&6
5979 if test -z "$GREP"; then
5980 ac_path_GREP_found=false
5981 # Loop through the user's path and test for each of PROGNAME-LIST
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5986 test -z "$as_dir" && as_dir=.
5987 for ac_prog in grep ggrep; do
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5990 as_fn_executable_p "$ac_path_GREP" || continue
5991 # Check for GNU ac_path_GREP and select it if it is found.
5992 # Check for GNU $ac_path_GREP
5993 case `"$ac_path_GREP" --version 2>&1` in
5995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5998 $as_echo_n 0123456789 >"conftest.in"
6001 cat "conftest.in" "conftest.in" >"conftest.tmp"
6002 mv "conftest.tmp" "conftest.in"
6003 cp "conftest.in" "conftest.nl"
6004 $as_echo 'GREP' >> "conftest.nl"
6005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6007 as_fn_arith $ac_count + 1 && ac_count=$as_val
6008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6009 # Best one so far, save it but keep looking for a better one
6010 ac_cv_path_GREP="$ac_path_GREP"
6011 ac_path_GREP_max=$ac_count
6013 # 10*(2^10) chars as input seems more than enough
6014 test $ac_count -gt 10 && break
6016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6019 $ac_path_GREP_found && break 3
6024 if test -z "$ac_cv_path_GREP"; then
6025 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6028 ac_cv_path_GREP=$GREP
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6033 $as_echo "$ac_cv_path_GREP" >&6; }
6034 GREP="$ac_cv_path_GREP"
6039 #### Mac OS X set of fink path with provided
6043 # Check whether --with-fink_prefix was given.
6044 if test "${with_fink_prefix+set}" = set; then :
6045 withval=$with_fink_prefix;
6048 # Need MacosX Version to specify some path.
6050 *Darwin* | *darwin*)
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6053 $as_echo_n "checking Mac OS X Version... " >&6; }
6054 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6055 case $macosx_version in
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6058 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6062 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6066 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6070 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6073 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 or 10.8 are needed. Found $macosx_version" "$LINENO" 5
6082 if test -n "$with_fink_prefix"; then
6083 # If with-fink-prefix is provided, use the provided path to make sure that we will
6084 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6085 # Therefor, we use the one in fink)
6086 FINK_PREFIX="$with_fink_prefix/"
6088 # Exec the init script of fink to make sure that the env is set
6089 if test -f $with_fink_prefix/bin/init.sh; then
6090 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6091 source $with_fink_prefix/bin/init.sh
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6094 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6100 #Append to the default flags on Apple machines
6101 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6102 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6107 # Check whether --with-min_macosx_version was given.
6108 if test "${with_min_macosx_version+set}" = set; then :
6109 withval=$with_min_macosx_version;
6114 if test -n "$with_min_macosx_version"; then
6115 MIN_MACOSX_VERSION=$with_min_macosx_version
6116 #Append to the default flags on Apple machines
6117 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6118 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6119 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6120 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6121 # We need this to be passed to all linker commands
6122 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6128 #####################################################
6129 ## Look for pkg-config
6130 #####################################################
6133 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6134 if test -n "$ac_tool_prefix"; then
6135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6136 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6140 $as_echo_n "(cached) " >&6
6144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6166 if test -n "$PKG_CONFIG"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6168 $as_echo "$PKG_CONFIG" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6176 if test -z "$ac_cv_path_PKG_CONFIG"; then
6177 ac_pt_PKG_CONFIG=$PKG_CONFIG
6178 # Extract the first word of "pkg-config", so it can be a program name with args.
6179 set dummy pkg-config; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 case $ac_pt_PKG_CONFIG in
6187 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6197 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6209 if test -n "$ac_pt_PKG_CONFIG"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6211 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6217 if test "x$ac_pt_PKG_CONFIG" = x; then
6220 case $cross_compiling:$ac_tool_warned in
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6224 ac_tool_warned=yes ;;
6226 PKG_CONFIG=$ac_pt_PKG_CONFIG
6229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6233 if test -n "$PKG_CONFIG"; then
6234 _pkg_min_version=0.9.0
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6236 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6239 $as_echo "yes" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6248 #####################################################
6249 ## check if options are correct (or not)
6250 #####################################################
6252 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6253 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6256 ######## fortran ########
6258 if test "$with_gfortran" = yes; then
6260 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6261 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6262 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6263 if test -n "$ac_tool_prefix"; then
6264 for ac_prog in gfortran
6266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269 $as_echo_n "checking for $ac_word... " >&6; }
6270 if ${ac_cv_prog_F77+:} false; then :
6271 $as_echo_n "(cached) " >&6
6273 if test -n "$F77"; then
6274 ac_cv_prog_F77="$F77" # Let the user override the test.
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6283 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 if test -n "$F77"; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6296 $as_echo "$F77" >&6; }
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6299 $as_echo "no" >&6; }
6303 test -n "$F77" && break
6306 if test -z "$F77"; then
6308 for ac_prog in gfortran
6310 # Extract the first word of "$ac_prog", so it can be a program name with args.
6311 set dummy $ac_prog; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6315 $as_echo_n "(cached) " >&6
6317 if test -n "$ac_ct_F77"; then
6318 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327 ac_cv_prog_ac_ct_F77="$ac_prog"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6338 if test -n "$ac_ct_F77"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6340 $as_echo "$ac_ct_F77" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6347 test -n "$ac_ct_F77" && break
6350 if test "x$ac_ct_F77" = x; then
6353 case $cross_compiling:$ac_tool_warned in
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6364 # Provide some information about the compiler.
6365 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6368 for ac_option in --version -v -V -qversion; do
6369 { { ac_try="$ac_compiler $ac_option >&5"
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6375 $as_echo "$ac_try_echo"; } >&5
6376 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6378 if test -s conftest.err; then
6380 ... rest of stderr output deleted ...
6381 10q' conftest.err >conftest.er1
6382 cat conftest.er1 >&5
6384 rm -f conftest.er1 conftest.err
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }
6390 # If we don't use `.F' as extension, the preprocessor is not run on the
6391 # input file. (Note that this only needs to work for GNU compilers.)
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6395 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6396 if ${ac_cv_f77_compiler_gnu+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 cat > conftest.$ac_ext <<_ACEOF
6407 if ac_fn_f77_try_compile "$LINENO"; then :
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6417 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6419 ac_test_FFLAGS=${FFLAGS+set}
6420 ac_save_FFLAGS=$FFLAGS
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6423 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6424 if ${ac_cv_prog_f77_g+:} false; then :
6425 $as_echo_n "(cached) " >&6
6428 cat > conftest.$ac_ext <<_ACEOF
6433 if ac_fn_f77_try_compile "$LINENO"; then :
6434 ac_cv_prog_f77_g=yes
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6442 $as_echo "$ac_cv_prog_f77_g" >&6; }
6443 if test "$ac_test_FFLAGS" = set; then
6444 FFLAGS=$ac_save_FFLAGS
6445 elif test $ac_cv_prog_f77_g = yes; then
6446 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6452 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6459 if test $ac_compiler_gnu = yes; then
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 if test -z "$F77"; then
6471 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6475 if test "$with_intelcompilers" = yes; then
6477 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6478 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6480 if test -n "$ac_tool_prefix"; then
6481 for ac_prog in ifc ifort
6483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_F77+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 if test -n "$F77"; then
6491 ac_cv_prog_F77="$F77" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 if test -n "$F77"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6513 $as_echo "$F77" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6520 test -n "$F77" && break
6523 if test -z "$F77"; then
6525 for ac_prog in ifc ifort
6527 # Extract the first word of "$ac_prog", so it can be a program name with args.
6528 set dummy $ac_prog; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6532 $as_echo_n "(cached) " >&6
6534 if test -n "$ac_ct_F77"; then
6535 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544 ac_cv_prog_ac_ct_F77="$ac_prog"
6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6555 if test -n "$ac_ct_F77"; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6557 $as_echo "$ac_ct_F77" >&6; }
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6564 test -n "$ac_ct_F77" && break
6567 if test "x$ac_ct_F77" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6581 # Provide some information about the compiler.
6582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6585 for ac_option in --version -v -V -qversion; do
6586 { { ac_try="$ac_compiler $ac_option >&5"
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6592 $as_echo "$ac_try_echo"; } >&5
6593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6595 if test -s conftest.err; then
6597 ... rest of stderr output deleted ...
6598 10q' conftest.err >conftest.er1
6599 cat conftest.er1 >&5
6601 rm -f conftest.er1 conftest.err
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }
6607 # If we don't use `.F' as extension, the preprocessor is not run on the
6608 # input file. (Note that this only needs to work for GNU compilers.)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6612 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6613 if ${ac_cv_f77_compiler_gnu+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 cat > conftest.$ac_ext <<_ACEOF
6624 if ac_fn_f77_try_compile "$LINENO"; then :
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6634 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6636 ac_test_FFLAGS=${FFLAGS+set}
6637 ac_save_FFLAGS=$FFLAGS
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6640 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6641 if ${ac_cv_prog_f77_g+:} false; then :
6642 $as_echo_n "(cached) " >&6
6645 cat > conftest.$ac_ext <<_ACEOF
6650 if ac_fn_f77_try_compile "$LINENO"; then :
6651 ac_cv_prog_f77_g=yes
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6659 $as_echo "$ac_cv_prog_f77_g" >&6; }
6660 if test "$ac_test_FFLAGS" = set; then
6661 FFLAGS=$ac_save_FFLAGS
6662 elif test $ac_cv_prog_f77_g = yes; then
6663 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6669 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6676 if test $ac_compiler_gnu = yes; then
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6687 if test -z "$F77"; then
6688 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6692 if test -z "$F77"; then
6693 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6695 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6696 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6698 if test -n "$ac_tool_prefix"; then
6699 for ac_prog in gfortran ifc ifort
6701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_F77+:} false; then :
6706 $as_echo_n "(cached) " >&6
6708 if test -n "$F77"; then
6709 ac_cv_prog_F77="$F77" # Let the user override the test.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 if test -n "$F77"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6731 $as_echo "$F77" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6738 test -n "$F77" && break
6741 if test -z "$F77"; then
6743 for ac_prog in gfortran ifc ifort
6745 # Extract the first word of "$ac_prog", so it can be a program name with args.
6746 set dummy $ac_prog; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6750 $as_echo_n "(cached) " >&6
6752 if test -n "$ac_ct_F77"; then
6753 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_ac_ct_F77="$ac_prog"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6773 if test -n "$ac_ct_F77"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6775 $as_echo "$ac_ct_F77" >&6; }
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6782 test -n "$ac_ct_F77" && break
6785 if test "x$ac_ct_F77" = x; then
6788 case $cross_compiling:$ac_tool_warned in
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6799 # Provide some information about the compiler.
6800 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6803 for ac_option in --version -v -V -qversion; do
6804 { { ac_try="$ac_compiler $ac_option >&5"
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6810 $as_echo "$ac_try_echo"; } >&5
6811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6813 if test -s conftest.err; then
6815 ... rest of stderr output deleted ...
6816 10q' conftest.err >conftest.er1
6817 cat conftest.er1 >&5
6819 rm -f conftest.er1 conftest.err
6820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821 test $ac_status = 0; }
6825 # If we don't use `.F' as extension, the preprocessor is not run on the
6826 # input file. (Note that this only needs to work for GNU compilers.)
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6830 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6831 if ${ac_cv_f77_compiler_gnu+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 cat > conftest.$ac_ext <<_ACEOF
6842 if ac_fn_f77_try_compile "$LINENO"; then :
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6852 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6854 ac_test_FFLAGS=${FFLAGS+set}
6855 ac_save_FFLAGS=$FFLAGS
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6858 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6859 if ${ac_cv_prog_f77_g+:} false; then :
6860 $as_echo_n "(cached) " >&6
6863 cat > conftest.$ac_ext <<_ACEOF
6868 if ac_fn_f77_try_compile "$LINENO"; then :
6869 ac_cv_prog_f77_g=yes
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6877 $as_echo "$ac_cv_prog_f77_g" >&6; }
6878 if test "$ac_test_FFLAGS" = set; then
6879 FFLAGS=$ac_save_FFLAGS
6880 elif test $ac_cv_prog_f77_g = yes; then
6881 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6887 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6894 if test $ac_compiler_gnu = yes; then
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6905 if test -z "$F77"; then
6906 # Best effort to find a compiler (might be g77)
6908 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6909 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6911 if test -n "$ac_tool_prefix"; then
6912 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 nagfor
6914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_prog_F77+:} false; then :
6919 $as_echo_n "(cached) " >&6
6921 if test -n "$F77"; then
6922 ac_cv_prog_F77="$F77" # Let the user override the test.
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6931 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 if test -n "$F77"; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6944 $as_echo "$F77" >&6; }
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6951 test -n "$F77" && break
6954 if test -z "$F77"; then
6956 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 nagfor
6958 # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_F77"; then
6966 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_F77="$ac_prog"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6986 if test -n "$ac_ct_F77"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6988 $as_echo "$ac_ct_F77" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6995 test -n "$ac_ct_F77" && break
6998 if test "x$ac_ct_F77" = x; then
7001 case $cross_compiling:$ac_tool_warned in
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7012 # Provide some information about the compiler.
7013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7016 for ac_option in --version -v -V -qversion; do
7017 { { ac_try="$ac_compiler $ac_option >&5"
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7023 $as_echo "$ac_try_echo"; } >&5
7024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7026 if test -s conftest.err; then
7028 ... rest of stderr output deleted ...
7029 10q' conftest.err >conftest.er1
7030 cat conftest.er1 >&5
7032 rm -f conftest.er1 conftest.err
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }
7038 # If we don't use `.F' as extension, the preprocessor is not run on the
7039 # input file. (Note that this only needs to work for GNU compilers.)
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7043 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7044 if ${ac_cv_f77_compiler_gnu+:} false; then :
7045 $as_echo_n "(cached) " >&6
7047 cat > conftest.$ac_ext <<_ACEOF
7055 if ac_fn_f77_try_compile "$LINENO"; then :
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7065 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7067 ac_test_FFLAGS=${FFLAGS+set}
7068 ac_save_FFLAGS=$FFLAGS
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7071 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7072 if ${ac_cv_prog_f77_g+:} false; then :
7073 $as_echo_n "(cached) " >&6
7076 cat > conftest.$ac_ext <<_ACEOF
7081 if ac_fn_f77_try_compile "$LINENO"; then :
7082 ac_cv_prog_f77_g=yes
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7090 $as_echo "$ac_cv_prog_f77_g" >&6; }
7091 if test "$ac_test_FFLAGS" = set; then
7092 FFLAGS=$ac_save_FFLAGS
7093 elif test $ac_cv_prog_f77_g = yes; then
7094 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7100 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7107 if test $ac_compiler_gnu = yes; then
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 # case statements were introduced in fortran 90 so we can use that
7123 # as a test to see if our compiler is fortran 90 compatible.
7125 if test -z "$F77"; then
7126 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7130 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7133 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7134 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7138 cat > conftest.$ac_ext <<_ACEOF
7144 print*, "case is 1, i is ", i
7146 print*, "case is 2 to 3, i is ", i
7148 print*, "default case, i is ", i
7154 if ac_fn_f77_try_compile "$LINENO"; then :
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156 $as_echo "yes" >&6; }
7158 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 ac_cpp='$CPP $CPPFLAGS'
7170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175 ############ C ###############
7178 if test "$with_gcc" = yes; then
7180 ac_cpp='$CPP $CPPFLAGS'
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_CC+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$CC"; then
7195 ac_cv_prog_CC="$CC" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 if test -n "$CC"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7217 $as_echo "$CC" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7224 test -n "$CC" && break
7227 if test -z "$CC"; then
7231 # Extract the first word of "$ac_prog", so it can be a program name with args.
7232 set dummy $ac_prog; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$ac_ct_CC"; then
7239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_ac_ct_CC="$ac_prog"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7259 if test -n "$ac_ct_CC"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7261 $as_echo "$ac_ct_CC" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7268 test -n "$ac_ct_CC" && break
7271 if test "x$ac_ct_CC" = x; then
7274 case $cross_compiling:$ac_tool_warned in
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7287 as_fn_error $? "no acceptable C compiler found in \$PATH
7288 See \`config.log' for more details" "$LINENO" 5; }
7290 # Provide some information about the compiler.
7291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7294 for ac_option in --version -v -V -qversion; do
7295 { { ac_try="$ac_compiler $ac_option >&5"
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7301 $as_echo "$ac_try_echo"; } >&5
7302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7304 if test -s conftest.err; then
7306 ... rest of stderr output deleted ...
7307 10q' conftest.err >conftest.er1
7308 cat conftest.er1 >&5
7310 rm -f conftest.er1 conftest.err
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7316 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7317 if ${ac_cv_c_compiler_gnu+:} false; then :
7318 $as_echo_n "(cached) " >&6
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7334 if ac_fn_c_try_compile "$LINENO"; then :
7339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7344 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7345 if test $ac_compiler_gnu = yes; then
7350 ac_test_CFLAGS=${CFLAGS+set}
7351 ac_save_CFLAGS=$CFLAGS
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7353 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7354 if ${ac_cv_prog_cc_g+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 ac_save_c_werror_flag=$ac_c_werror_flag
7358 ac_c_werror_flag=yes
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7372 if ac_fn_c_try_compile "$LINENO"; then :
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7387 if ac_fn_c_try_compile "$LINENO"; then :
7390 ac_c_werror_flag=$ac_save_c_werror_flag
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7403 if ac_fn_c_try_compile "$LINENO"; then :
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 ac_c_werror_flag=$ac_save_c_werror_flag
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7414 $as_echo "$ac_cv_prog_cc_g" >&6; }
7415 if test "$ac_test_CFLAGS" = set; then
7416 CFLAGS=$ac_save_CFLAGS
7417 elif test $ac_cv_prog_cc_g = yes; then
7418 if test "$GCC" = yes; then
7424 if test "$GCC" = yes; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7431 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7432 if ${ac_cv_prog_cc_c89+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 ac_cv_prog_cc_c89=no
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7443 struct buf { int x; };
7444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7445 static char *e (p, i)
7451 static char *f (char * (*g) (char **, int), char **p, ...)
7456 s = g (p, va_arg (v,int));
7461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7462 function prototypes and stuff, but not '\xHH' hex character constants.
7463 These don't provoke an error unfortunately, instead are silently treated
7464 as 'x'. The following induces an error, until -std is added to get
7465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7466 array size at least. It's necessary to write '\x00'==0 to get something
7467 that's true only with -std. */
7468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7471 inside strings and character constants. */
7473 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7475 int test (int i, double x);
7476 struct s1 {int (*f) (int a);};
7477 struct s2 {int (*f) (double a);};
7478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7490 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7492 CC="$ac_save_CC $ac_arg"
7493 if ac_fn_c_try_compile "$LINENO"; then :
7494 ac_cv_prog_cc_c89=$ac_arg
7496 rm -f core conftest.err conftest.$ac_objext
7497 test "x$ac_cv_prog_cc_c89" != "xno" && break
7499 rm -f conftest.$ac_ext
7504 case "x$ac_cv_prog_cc_c89" in
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7507 $as_echo "none needed" >&6; } ;;
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7510 $as_echo "unsupported" >&6; } ;;
7512 CC="$CC $ac_cv_prog_cc_c89"
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7514 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7516 if test "x$ac_cv_prog_cc_c89" != xno; then :
7521 ac_cpp='$CPP $CPPFLAGS'
7522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526 if test -z "$CC"; then
7527 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7531 if test "$with_intelcompilers" = yes; then
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 if test -n "$ac_tool_prefix"; then
7538 for ac_prog in icc ecc
7540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_CC+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 if test -n "$CC"; then
7548 ac_cv_prog_CC="$CC" # Let the user override the test.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 if test -n "$CC"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7570 $as_echo "$CC" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7577 test -n "$CC" && break
7580 if test -z "$CC"; then
7582 for ac_prog in icc ecc
7584 # Extract the first word of "$ac_prog", so it can be a program name with args.
7585 set dummy $ac_prog; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$ac_ct_CC"; then
7592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_ac_ct_CC="$ac_prog"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7612 if test -n "$ac_ct_CC"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7614 $as_echo "$ac_ct_CC" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7621 test -n "$ac_ct_CC" && break
7624 if test "x$ac_ct_CC" = x; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7638 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7640 as_fn_error $? "no acceptable C compiler found in \$PATH
7641 See \`config.log' for more details" "$LINENO" 5; }
7643 # Provide some information about the compiler.
7644 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7647 for ac_option in --version -v -V -qversion; do
7648 { { ac_try="$ac_compiler $ac_option >&5"
7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7654 $as_echo "$ac_try_echo"; } >&5
7655 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7657 if test -s conftest.err; then
7659 ... rest of stderr output deleted ...
7660 10q' conftest.err >conftest.er1
7661 cat conftest.er1 >&5
7663 rm -f conftest.er1 conftest.err
7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7665 test $ac_status = 0; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7669 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7670 if ${ac_cv_c_compiler_gnu+:} false; then :
7671 $as_echo_n "(cached) " >&6
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7687 if ac_fn_c_try_compile "$LINENO"; then :
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7697 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7698 if test $ac_compiler_gnu = yes; then
7703 ac_test_CFLAGS=${CFLAGS+set}
7704 ac_save_CFLAGS=$CFLAGS
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7706 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7707 if ${ac_cv_prog_cc_g+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 ac_save_c_werror_flag=$ac_c_werror_flag
7711 ac_c_werror_flag=yes
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7725 if ac_fn_c_try_compile "$LINENO"; then :
7729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7740 if ac_fn_c_try_compile "$LINENO"; then :
7743 ac_c_werror_flag=$ac_save_c_werror_flag
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7756 if ac_fn_c_try_compile "$LINENO"; then :
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 ac_c_werror_flag=$ac_save_c_werror_flag
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7767 $as_echo "$ac_cv_prog_cc_g" >&6; }
7768 if test "$ac_test_CFLAGS" = set; then
7769 CFLAGS=$ac_save_CFLAGS
7770 elif test $ac_cv_prog_cc_g = yes; then
7771 if test "$GCC" = yes; then
7777 if test "$GCC" = yes; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7784 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7785 if ${ac_cv_prog_cc_c89+:} false; then :
7786 $as_echo_n "(cached) " >&6
7788 ac_cv_prog_cc_c89=no
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7795 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7796 struct buf { int x; };
7797 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7798 static char *e (p, i)
7804 static char *f (char * (*g) (char **, int), char **p, ...)
7809 s = g (p, va_arg (v,int));
7814 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7815 function prototypes and stuff, but not '\xHH' hex character constants.
7816 These don't provoke an error unfortunately, instead are silently treated
7817 as 'x'. The following induces an error, until -std is added to get
7818 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7819 array size at least. It's necessary to write '\x00'==0 to get something
7820 that's true only with -std. */
7821 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7823 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7824 inside strings and character constants. */
7826 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7828 int test (int i, double x);
7829 struct s1 {int (*f) (int a);};
7830 struct s2 {int (*f) (double a);};
7831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7842 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7843 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7845 CC="$ac_save_CC $ac_arg"
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847 ac_cv_prog_cc_c89=$ac_arg
7849 rm -f core conftest.err conftest.$ac_objext
7850 test "x$ac_cv_prog_cc_c89" != "xno" && break
7852 rm -f conftest.$ac_ext
7857 case "x$ac_cv_prog_cc_c89" in
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7860 $as_echo "none needed" >&6; } ;;
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7863 $as_echo "unsupported" >&6; } ;;
7865 CC="$CC $ac_cv_prog_cc_c89"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7867 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7869 if test "x$ac_cv_prog_cc_c89" != xno; then :
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879 if test -z "$CC"; then
7880 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7884 if test -z "$CC"; then
7885 # No C compiler specified... We rely on Autoconf to find the best
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_CC+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$CC"; then
7900 ac_cv_prog_CC="$CC" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 if test -n "$CC"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7922 $as_echo "$CC" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 if test -z "$ac_cv_prog_CC"; then
7932 # Extract the first word of "gcc", so it can be a program name with args.
7933 set dummy gcc; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$ac_ct_CC"; then
7940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_prog_ac_ct_CC="gcc"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7960 if test -n "$ac_ct_CC"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7962 $as_echo "$ac_ct_CC" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7968 if test "x$ac_ct_CC" = x; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned=yes ;;
7983 if test -z "$CC"; then
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7986 set dummy ${ac_tool_prefix}cc; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_CC+:} false; then :
7990 $as_echo_n "(cached) " >&6
7992 if test -n "$CC"; then
7993 ac_cv_prog_CC="$CC" # Let the user override the test.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_CC="${ac_tool_prefix}cc"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 if test -n "$CC"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8015 $as_echo "$CC" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8024 if test -z "$CC"; then
8025 # Extract the first word of "cc", so it can be a program name with args.
8026 set dummy cc; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028 $as_echo_n "checking for $ac_word... " >&6; }
8029 if ${ac_cv_prog_CC+:} false;