2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 6.
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 6'
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
643 USE_STATIC_SYSTEM_LIB_FALSE
644 USE_STATIC_SYSTEM_LIB_TRUE
667 COMPILATION_TESTS_FALSE
668 COMPILATION_TESTS_TRUE
673 INSTALL_HELP_XML_FALSE
674 INSTALL_HELP_XML_TRUE
715 GENERATE_LOCALIZATION_FILES_FALSE
716 GENERATE_LOCALIZATION_FILES_TRUE
751 XGETTEXT_EXTRA_OPTIONS
759 GETTEXT_MACRO_VERSION
780 SWIG_RUNTIME_LIBS_DIR
804 FREEHEP_GRAPHICSIO_EMF
839 EXTERNAL_SCIRENDERER_FALSE
840 EXTERNAL_SCIRENDERER_TRUE
860 IS_MIPS_SGI_IRIX_FALSE
861 IS_MIPS_SGI_IRIX_TRUE
914 MAINTAINER_MODE_FALSE
917 RELOCATABLE_VIA_LD_FALSE
918 RELOCATABLE_VIA_LD_TRUE
945 INSTALL_STRIP_PROGRAM
948 SCILAB_BINARY_VERSION
949 SCILAB_LIBRARY_VERSION
950 SCILAB_VERSION_MAINTENANCE
980 program_transform_name
993 enable_option_checking
998 enable_maintainer_mode
999 enable_dependency_tracking
1005 enable_debug_fortran
1007 enable_code_coverage
1008 enable_stop_on_warning
1014 enable_compilation_tests
1020 with_min_macosx_version
1023 with_external_scirenderer
1030 with_libiconv_prefix
1039 enable_build_localization
1045 with_umfpack_library
1046 with_umfpack_include
1059 with_install_help_xml
1060 enable_build_doxygen
1061 enable_force_full_link
1069 enable_static_system_lib
1071 ac_precious_vars='build_alias
1098 # Initialize some variables set by options.
1100 ac_init_version=false
1101 ac_unrecognized_opts=
1102 ac_unrecognized_sep=
1103 # The variables have the same names as the options, with
1104 # dashes changed to underlines.
1105 cache_file=/dev/null
1112 program_transform_name=s,x,x,
1120 # Installation directory options.
1121 # These are left unexpanded so users can "make install exec_prefix=/foo"
1122 # and all the variables that are supposed to be based on exec_prefix
1123 # by default will actually change.
1124 # Use braces instead of parens because sh, perl, etc. also accept them.
1125 # (The list follows the same order as the GNU Coding Standards.)
1126 bindir='${exec_prefix}/bin'
1127 sbindir='${exec_prefix}/sbin'
1128 libexecdir='${exec_prefix}/libexec'
1129 datarootdir='${prefix}/share'
1130 datadir='${datarootdir}'
1131 sysconfdir='${prefix}/etc'
1132 sharedstatedir='${prefix}/com'
1133 localstatedir='${prefix}/var'
1134 includedir='${prefix}/include'
1135 oldincludedir='/usr/include'
1136 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1137 infodir='${datarootdir}/info'
1142 libdir='${exec_prefix}/lib'
1143 localedir='${datarootdir}/locale'
1144 mandir='${datarootdir}/man'
1150 # If the previous option needs an argument, assign it.
1151 if test -n "$ac_prev"; then
1152 eval $ac_prev=\$ac_option
1158 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1163 # Accept the important Cygnus configure options, so we can diagnose typos.
1165 case $ac_dashdash$ac_option in
1169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1172 bindir=$ac_optarg ;;
1174 -build | --build | --buil | --bui | --bu)
1175 ac_prev=build_alias ;;
1176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1177 build_alias=$ac_optarg ;;
1179 -cache-file | --cache-file | --cache-fil | --cache-fi \
1180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1181 ac_prev=cache_file ;;
1182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1184 cache_file=$ac_optarg ;;
1186 --config-cache | -C)
1187 cache_file=config.cache ;;
1189 -datadir | --datadir | --datadi | --datad)
1191 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1192 datadir=$ac_optarg ;;
1194 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1195 | --dataroo | --dataro | --datar)
1196 ac_prev=datarootdir ;;
1197 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1198 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1199 datarootdir=$ac_optarg ;;
1201 -disable-* | --disable-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid feature name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1210 "enable_$ac_useropt"
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval enable_$ac_useropt=no ;;
1217 -docdir | --docdir | --docdi | --doc | --do)
1219 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1220 docdir=$ac_optarg ;;
1222 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1224 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1225 dvidir=$ac_optarg ;;
1227 -enable-* | --enable-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid feature name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1236 "enable_$ac_useropt"
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval enable_$ac_useropt=\$ac_optarg ;;
1243 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1244 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1245 | --exec | --exe | --ex)
1246 ac_prev=exec_prefix ;;
1247 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1248 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1249 | --exec=* | --exe=* | --ex=*)
1250 exec_prefix=$ac_optarg ;;
1252 -gas | --gas | --ga | --g)
1253 # Obsolete; use --with-gas.
1256 -help | --help | --hel | --he | -h)
1257 ac_init_help=long ;;
1258 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1259 ac_init_help=recursive ;;
1260 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1261 ac_init_help=short ;;
1263 -host | --host | --hos | --ho)
1264 ac_prev=host_alias ;;
1265 -host=* | --host=* | --hos=* | --ho=*)
1266 host_alias=$ac_optarg ;;
1268 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1270 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1272 htmldir=$ac_optarg ;;
1274 -includedir | --includedir | --includedi | --included | --include \
1275 | --includ | --inclu | --incl | --inc)
1276 ac_prev=includedir ;;
1277 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1278 | --includ=* | --inclu=* | --incl=* | --inc=*)
1279 includedir=$ac_optarg ;;
1281 -infodir | --infodir | --infodi | --infod | --info | --inf)
1283 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1284 infodir=$ac_optarg ;;
1286 -libdir | --libdir | --libdi | --libd)
1288 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1289 libdir=$ac_optarg ;;
1291 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1292 | --libexe | --libex | --libe)
1293 ac_prev=libexecdir ;;
1294 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1295 | --libexe=* | --libex=* | --libe=*)
1296 libexecdir=$ac_optarg ;;
1298 -localedir | --localedir | --localedi | --localed | --locale)
1299 ac_prev=localedir ;;
1300 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1301 localedir=$ac_optarg ;;
1303 -localstatedir | --localstatedir | --localstatedi | --localstated \
1304 | --localstate | --localstat | --localsta | --localst | --locals)
1305 ac_prev=localstatedir ;;
1306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1307 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1308 localstatedir=$ac_optarg ;;
1310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1313 mandir=$ac_optarg ;;
1315 -nfp | --nfp | --nf)
1316 # Obsolete; use --without-fp.
1319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1320 | --no-cr | --no-c | -n)
1323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1329 | --oldin | --oldi | --old | --ol | --o)
1330 ac_prev=oldincludedir ;;
1331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1334 oldincludedir=$ac_optarg ;;
1336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1339 prefix=$ac_optarg ;;
1341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1342 | --program-pre | --program-pr | --program-p)
1343 ac_prev=program_prefix ;;
1344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1346 program_prefix=$ac_optarg ;;
1348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1349 | --program-suf | --program-su | --program-s)
1350 ac_prev=program_suffix ;;
1351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1353 program_suffix=$ac_optarg ;;
1355 -program-transform-name | --program-transform-name \
1356 | --program-transform-nam | --program-transform-na \
1357 | --program-transform-n | --program-transform- \
1358 | --program-transform | --program-transfor \
1359 | --program-transfo | --program-transf \
1360 | --program-trans | --program-tran \
1361 | --progr-tra | --program-tr | --program-t)
1362 ac_prev=program_transform_name ;;
1363 -program-transform-name=* | --program-transform-name=* \
1364 | --program-transform-nam=* | --program-transform-na=* \
1365 | --program-transform-n=* | --program-transform-=* \
1366 | --program-transform=* | --program-transfor=* \
1367 | --program-transfo=* | --program-transf=* \
1368 | --program-trans=* | --program-tran=* \
1369 | --progr-tra=* | --program-tr=* | --program-t=*)
1370 program_transform_name=$ac_optarg ;;
1372 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1374 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1375 pdfdir=$ac_optarg ;;
1377 -psdir | --psdir | --psdi | --psd | --ps)
1379 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1383 | -silent | --silent | --silen | --sile | --sil)
1386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1390 sbindir=$ac_optarg ;;
1392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1394 | --sharedst | --shareds | --shared | --share | --shar \
1396 ac_prev=sharedstatedir ;;
1397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1401 sharedstatedir=$ac_optarg ;;
1403 -site | --site | --sit)
1405 -site=* | --site=* | --sit=*)
1408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1411 srcdir=$ac_optarg ;;
1413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1414 | --syscon | --sysco | --sysc | --sys | --sy)
1415 ac_prev=sysconfdir ;;
1416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1418 sysconfdir=$ac_optarg ;;
1420 -target | --target | --targe | --targ | --tar | --ta | --t)
1421 ac_prev=target_alias ;;
1422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1423 target_alias=$ac_optarg ;;
1425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1428 -version | --version | --versio | --versi | --vers | -V)
1429 ac_init_version=: ;;
1432 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1433 # Reject names that are not valid shell variable names.
1434 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435 as_fn_error $? "invalid package name: $ac_useropt"
1436 ac_useropt_orig=$ac_useropt
1437 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438 case $ac_user_opts in
1442 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1443 ac_unrecognized_sep=', ';;
1445 eval with_$ac_useropt=\$ac_optarg ;;
1447 -without-* | --without-*)
1448 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1449 # Reject names that are not valid shell variable names.
1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451 as_fn_error $? "invalid package name: $ac_useropt"
1452 ac_useropt_orig=$ac_useropt
1453 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454 case $ac_user_opts in
1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1459 ac_unrecognized_sep=', ';;
1461 eval with_$ac_useropt=no ;;
1464 # Obsolete; use --with-x.
1467 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1468 | --x-incl | --x-inc | --x-in | --x-i)
1469 ac_prev=x_includes ;;
1470 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1471 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1472 x_includes=$ac_optarg ;;
1474 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1475 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1476 ac_prev=x_libraries ;;
1477 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1478 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1479 x_libraries=$ac_optarg ;;
1481 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1482 Try \`$0 --help' for more information"
1486 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1487 # Reject names that are not valid shell variable names.
1488 case $ac_envvar in #(
1489 '' | [0-9]* | *[!_$as_cr_alnum]* )
1490 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1492 eval $ac_envvar=\$ac_optarg
1493 export $ac_envvar ;;
1496 # FIXME: should be removed in autoconf 3.0.
1497 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1498 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1499 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1500 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1506 if test -n "$ac_prev"; then
1507 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1508 as_fn_error $? "missing argument to $ac_option"
1511 if test -n "$ac_unrecognized_opts"; then
1512 case $enable_option_checking in
1514 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1515 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1519 # Check all directory arguments for consistency.
1520 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1521 datadir sysconfdir sharedstatedir localstatedir includedir \
1522 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1523 libdir localedir mandir
1525 eval ac_val=\$$ac_var
1526 # Remove trailing slashes.
1529 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1530 eval $ac_var=\$ac_val;;
1532 # Be sure to have absolute directory names.
1534 [\\/$]* | ?:[\\/]* ) continue;;
1535 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1537 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1540 # There might be people who depend on the old broken behavior: `$host'
1541 # used to hold the argument of --host etc.
1542 # FIXME: To remove some day.
1545 target=$target_alias
1547 # FIXME: To remove some day.
1548 if test "x$host_alias" != x; then
1549 if test "x$build_alias" = x; then
1550 cross_compiling=maybe
1551 elif test "x$build_alias" != "x$host_alias"; then
1557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1559 test "$silent" = yes && exec 6>/dev/null
1562 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1563 ac_ls_di=`ls -di .` &&
1564 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1565 as_fn_error $? "working directory cannot be determined"
1566 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1567 as_fn_error $? "pwd does not report name of working directory"
1570 # Find the source files, if location was not specified.
1571 if test -z "$srcdir"; then
1572 ac_srcdir_defaulted=yes
1573 # Try the directory containing this script, then the parent directory.
1574 ac_confdir=`$as_dirname -- "$as_myself" ||
1575 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1576 X"$as_myself" : 'X\(//\)[^/]' \| \
1577 X"$as_myself" : 'X\(//\)$' \| \
1578 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1579 $as_echo X"$as_myself" |
1580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1598 if test ! -r "$srcdir/$ac_unique_file"; then
1602 ac_srcdir_defaulted=no
1604 if test ! -r "$srcdir/$ac_unique_file"; then
1605 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1606 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1608 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1610 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1612 # When building in place, set srcdir=.
1613 if test "$ac_abs_confdir" = "$ac_pwd"; then
1616 # Remove unnecessary trailing slashes from srcdir.
1617 # Double slashes in file names in object file debugging info
1618 # mess up M-x gdb in Emacs.
1620 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1622 for ac_var in $ac_precious_vars; do
1623 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1624 eval ac_env_${ac_var}_value=\$${ac_var}
1625 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1626 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1630 # Report the --help message.
1632 if test "$ac_init_help" = "long"; then
1633 # Omit some internal or obsolete options to make the list less imposing.
1634 # This message is too long to be a string in the A/UX 3.1 sh.
1636 \`configure' configures Scilab 6 to adapt to many kinds of systems.
1638 Usage: $0 [OPTION]... [VAR=VALUE]...
1640 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1641 VAR=VALUE. See below for descriptions of some of the useful variables.
1643 Defaults for the options are specified in brackets.
1646 -h, --help display this help and exit
1647 --help=short display options specific to this package
1648 --help=recursive display the short help of all the included packages
1649 -V, --version display version information and exit
1650 -q, --quiet, --silent do not print \`checking ...' messages
1651 --cache-file=FILE cache test results in FILE [disabled]
1652 -C, --config-cache alias for \`--cache-file=config.cache'
1653 -n, --no-create do not create output files
1654 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1656 Installation directories:
1657 --prefix=PREFIX install architecture-independent files in PREFIX
1658 [$ac_default_prefix]
1659 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1662 By default, \`make install' will install all the files in
1663 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1664 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1665 for instance \`--prefix=\$HOME'.
1667 For better control, use the options below.
1669 Fine tuning of the installation directories:
1670 --bindir=DIR user executables [EPREFIX/bin]
1671 --sbindir=DIR system admin executables [EPREFIX/sbin]
1672 --libexecdir=DIR program executables [EPREFIX/libexec]
1673 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1674 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1675 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1676 --libdir=DIR object code libraries [EPREFIX/lib]
1677 --includedir=DIR C header files [PREFIX/include]
1678 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1679 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1680 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1681 --infodir=DIR info documentation [DATAROOTDIR/info]
1682 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1683 --mandir=DIR man documentation [DATAROOTDIR/man]
1684 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1685 --htmldir=DIR html documentation [DOCDIR]
1686 --dvidir=DIR dvi documentation [DOCDIR]
1687 --pdfdir=DIR pdf documentation [DOCDIR]
1688 --psdir=DIR ps documentation [DOCDIR]
1694 --program-prefix=PREFIX prepend PREFIX to installed program names
1695 --program-suffix=SUFFIX append SUFFIX to installed program names
1696 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1699 --x-includes=DIR X include files are in DIR
1700 --x-libraries=DIR X library files are in DIR
1703 --build=BUILD configure for building on BUILD [guessed]
1704 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1708 if test -n "$ac_init_help"; then
1709 case $ac_init_help in
1710 short | recursive ) echo "Configuration of Scilab 6:";;
1715 --disable-option-checking ignore unrecognized --enable/--with options
1716 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1717 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1718 --disable-largefile omit support for large files
1719 --enable-relocatable install a package that can be moved in the filesystem
1720 --disable-rpath do not hardcode runtime library paths
1721 --enable-maintainer-mode
1722 enable make rules and dependencies not useful (and
1723 sometimes confusing) to the casual installer
1724 --enable-dependency-tracking
1725 do not reject slow dependency extractors
1726 --disable-dependency-tracking
1727 speeds up one-time build
1728 --enable-silent-rules less verbose build output (undo: "make V=1")
1729 --disable-silent-rules verbose build output (undo: "make V=0")
1730 --enable-debug Do not optimize and print warning messages
1731 (C/C++/Fortran/Java code)
1732 --enable-debug-C Do not optimize and print warning messages (C code)
1733 --enable-debug-CXX Do not optimize and print warning messages (C++
1735 --enable-debug-java Print warning messages and line numbers (Java code)
1736 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1738 --enable-debug-linker Print warning messages from the linker (ld)
1739 --enable-code-coverage Enable code coverage
1740 --enable-stop-on-warning
1741 Stop the compilation on the first warning found in
1743 --enable-compilation-tests
1744 Enable unitary tests and checks at compilation time
1745 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1746 --enable-build-parser Regenerate code for the parser (Lex & YACC)
1747 --disable-nls do not use Native Language Support
1748 --disable-build-localization
1749 Disable the localization build
1751 --disable-build-help Disable the help build
1753 --enable-build-doxygen Generate doxygen C/C++ documentation
1754 --enable-force-full-link
1755 Forces the explicit link between libscilab and some
1756 "on-the-fly" loaded libraries. NOT USE IN
1758 --enable-static[=PKGS] build static libraries [default=no]
1759 --enable-shared[=PKGS] build shared libraries [default=yes]
1760 --enable-fast-install[=PKGS]
1761 optimize for fast installation [default=yes]
1762 --disable-libtool-lock avoid locking (might break parallel builds)
1763 --disable-ccache Disable the use of ccache
1765 --disable-static-system-lib
1766 Disable the usage of the static stdc++ and libgcc
1770 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1771 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1772 --with-gnu-ld assume the C compiler uses GNU ld default=no
1773 --with-gcc Use gcc C compiler
1774 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1775 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1776 compilers (GNU/Linux only)
1777 --without-tk Disable the interface to Tcl/Tk
1778 --without-javasci Disable the Java/Scilab interface (javasci)
1779 --without-gui Disable the Scilab Graphical User Interface (GUI).
1780 Intended for embedded/clustering/grid Scilab
1781 --enable-build-swig=path
1782 Regenerate Java => C and Scilab => C wrappers
1784 --with-fink-prefix Provide a fink prefix. Default: /sw/
1785 --with-min-macosx-version
1786 Force compilers to generate binaries compatible with
1787 MacOSX minimal version.
1788 --with-hdf5-include=DIR Set the path to the HDF5 headers
1789 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1790 --with-external-scirenderer
1791 Disable the usage of the internal copy of
1792 scirenderer. Intended for packaging of Scilab
1793 --without-xcos Disable Xcos
1794 --without-modelica Disable the OCaml module (modelica)
1795 --with-jdk=DIR use JDK from DIR
1796 --with-ant=DIR Use ant from DIR
1797 --without-emf disable support for EMF (Windows Metafile) export
1798 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1799 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1800 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1801 --without-libintl-prefix don't search for libintl in includedir and libdir
1802 --without-fftw Disable the interface to the FFTW 3 library
1803 --with-fftw-include=DIR Set the path to the FFTW headers
1804 --with-fftw-library=DIR Set the path to the FFTW libraries
1805 --with-eigen-include=DIR
1806 Set the path to the EIGEN headers
1807 --with-mpi compile with MPI library
1808 --without-openmp Disable the usage of OpenMP (parallelization of some
1810 --with-libxml2=PREFIX Set the path to your libxml2 installation
1811 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1813 --with-lapack-library=DIR
1814 set the path to the LAPACK library
1815 --without-arpack-ng Disable the interface to ARPACK-NG
1816 --with-arpack-library=DIR
1817 set the path to the ARPACK library
1818 --without-umfpack Disable the interface to the UMFPACK library
1819 --with-umfpack-library=DIR
1820 Set the path to the UMFPACK libraries
1821 --with-umfpack-include=DIR
1822 Set the path to the UMFPACK headers
1823 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1824 Expression Library) installation
1825 --with-curl=DIR Set the path to your CURL installation
1826 --with-tcl-library=DIR Set the path to the TCL library
1827 --with-tcl-include=DIR Set the path to the TCL headers
1828 --with-tk-library=DIR Set the path to the TK library
1829 --with-tk-include=DIR Set the path to the TK headers
1830 --with-x use the X Window System
1831 --without-matio Disable the interface to Matio (MAT File I/O
1833 --with-matio-include=DIR
1834 Set the path to the MATIO headers
1835 --with-matio-library=DIR
1836 Set the path to the MATIO libraries
1837 --with-docbook=DIR Set the path to the docbook package
1838 --with-install-help-xml make install will install XML files
1840 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1842 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1843 --with-sysroot=DIR Search for dependent libraries within DIR
1844 (or the compiler's sysroot if not specified).
1846 Some influential environment variables:
1847 CC C compiler command
1848 CFLAGS C compiler flags
1849 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1850 nonstandard directory <lib dir>
1851 LIBS libraries to pass to the linker, e.g. -l<library>
1852 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1853 you have headers in a nonstandard directory <include dir>
1855 PKG_CONFIG path to pkg-config utility
1856 F77 Fortran 77 compiler command
1857 FFLAGS Fortran 77 compiler flags
1858 CXX C++ compiler command
1859 CXXFLAGS C++ compiler flags
1860 YACC The `Yet Another Compiler Compiler' implementation to use.
1861 Defaults to the first program found out of: `bison -y', `byacc',
1863 YFLAGS The list of arguments that will be passed by default to $YACC.
1864 This script will default YFLAGS to the empty string to avoid a
1865 default value of `-d' given by some make applications.
1866 CXXCPP C++ preprocessor
1867 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1868 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1869 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1870 CURL_LIBS linker flags for CURL, overriding pkg-config
1871 XMKMF Path to xmkmf, Makefile generator for X Window System
1873 C compiler flags for MATIO, overriding pkg-config
1874 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1876 Use these variables to override the choices made by `configure' or to help
1877 it to find libraries and programs with nonstandard names/locations.
1879 Report bugs to <http://bugzilla.scilab.org/>.
1884 if test "$ac_init_help" = "recursive"; then
1885 # If there are subdirs, report their specific --help.
1886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1887 test -d "$ac_dir" ||
1888 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1895 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1896 # A ".." for each directory in $ac_dir_suffix.
1897 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1898 case $ac_top_builddir_sub in
1899 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1900 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1903 ac_abs_top_builddir=$ac_pwd
1904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1905 # for backward compatibility:
1906 ac_top_builddir=$ac_top_build_prefix
1909 .) # We are building in place.
1911 ac_top_srcdir=$ac_top_builddir_sub
1912 ac_abs_top_srcdir=$ac_pwd ;;
1913 [\\/]* | ?:[\\/]* ) # Absolute name.
1914 ac_srcdir=$srcdir$ac_dir_suffix;
1915 ac_top_srcdir=$srcdir
1916 ac_abs_top_srcdir=$srcdir ;;
1918 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1919 ac_top_srcdir=$ac_top_build_prefix$srcdir
1920 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1924 cd "$ac_dir" || { ac_status=$?; continue; }
1925 # Check for guested configure.
1926 if test -f "$ac_srcdir/configure.gnu"; then
1928 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1929 elif test -f "$ac_srcdir/configure"; then
1931 $SHELL "$ac_srcdir/configure" --help=recursive
1933 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1935 cd "$ac_pwd" || { ac_status=$?; break; }
1939 test -n "$ac_init_help" && exit $ac_status
1940 if $ac_init_version; then
1943 generated by GNU Autoconf 2.69
1945 Copyright (C) 2012 Free Software Foundation, Inc.
1946 This configure script is free software; the Free Software Foundation
1947 gives unlimited permission to copy, distribute and modify it.
1952 ## ------------------------ ##
1953 ## Autoconf initialization. ##
1954 ## ------------------------ ##
1956 # ac_fn_c_try_compile LINENO
1957 # --------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_c_try_compile ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_c_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.$ac_objext; then :
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1992 } # ac_fn_c_try_compile
1994 # ac_fn_c_try_cpp LINENO
1995 # ----------------------
1996 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if { { ac_try="$ac_cpp conftest.$ac_ext"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } > conftest.i && {
2016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2017 test ! -s conftest.err
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2031 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2032 # -------------------------------------------------------
2033 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2034 # the include files in INCLUDES and setting the cache variable VAR
2036 ac_fn_c_check_header_mongrel ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if eval \${$3+:} false; then :
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 # Is the header compilable?
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2051 $as_echo_n "checking $2 usability... " >&6; }
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 ac_header_compiler=yes
2060 ac_header_compiler=no
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2064 $as_echo "$ac_header_compiler" >&6; }
2066 # Is the header present?
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2068 $as_echo_n "checking $2 presence... " >&6; }
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 if ac_fn_c_try_cpp "$LINENO"; then :
2074 ac_header_preproc=yes
2076 ac_header_preproc=no
2078 rm -f conftest.err conftest.i conftest.$ac_ext
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2080 $as_echo "$ac_header_preproc" >&6; }
2082 # So? What about this header?
2083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2086 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2088 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2092 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2094 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2096 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2098 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ( $as_echo "## ------------------------------------------ ##
2102 ## Report this to http://bugzilla.scilab.org/ ##
2103 ## ------------------------------------------ ##"
2104 ) | sed "s/^/$as_me: WARNING: /" >&2
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2112 eval "$3=\$ac_header_compiler"
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2116 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2120 } # ac_fn_c_check_header_mongrel
2122 # ac_fn_c_try_run LINENO
2123 # ----------------------
2124 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2125 # that executables *can* be run.
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_link"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_link") 2>&5
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2140 { { case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_try") 2>&5
2148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2149 test $ac_status = 0; }; }; then :
2152 $as_echo "$as_me: program exited with status $ac_status" >&5
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2156 ac_retval=$ac_status
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2164 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2165 # -------------------------------------------------------
2166 # Tests whether HEADER exists and can be compiled using the include files in
2167 # INCLUDES, setting the cache variable VAR accordingly.
2168 ac_fn_c_check_header_compile ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2172 $as_echo_n "checking for $2... " >&6; }
2173 if eval \${$3+:} false; then :
2174 $as_echo_n "(cached) " >&6
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2181 if ac_fn_c_try_compile "$LINENO"; then :
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_header_compile
2195 # ac_fn_c_try_link LINENO
2196 # -----------------------
2197 # Try to link conftest.$ac_ext, and return whether this succeeded.
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 rm -f conftest.$ac_objext conftest$ac_exeext
2202 if { { ac_try="$ac_link"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208 $as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_link") 2>conftest.err
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } && {
2218 test -z "$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 } && test -s conftest$ac_exeext && {
2221 test "$cross_compiling" = yes ||
2222 test -x conftest$ac_exeext
2226 $as_echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2231 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2232 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2233 # interfere with the next link command; also delete a directory that is
2234 # left behind by Apple's compiler. We do this before executing the actions.
2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237 as_fn_set_status $ac_retval
2239 } # ac_fn_c_try_link
2241 # ac_fn_c_check_func LINENO FUNC VAR
2242 # ----------------------------------
2243 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2244 ac_fn_c_check_func ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval \${$3+:} false; then :
2250 $as_echo_n "(cached) " >&6
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2256 #define $2 innocuous_$2
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $2 (); below.
2260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2261 <limits.h> exists even on freestanding compilers. */
2264 # include <limits.h>
2266 # include <assert.h>
2271 /* Override any GCC internal prototype to avoid an error.
2272 Use char because int might match the return type of a GCC
2273 builtin and then its argument prototype would still apply. */
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined __stub_$2 || defined __stub___$2
2293 if ac_fn_c_try_link "$LINENO"; then :
2298 rm -f core conftest.err conftest.$ac_objext \
2299 conftest$ac_exeext conftest.$ac_ext
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_func
2308 # ac_fn_f77_try_compile LINENO
2309 # ----------------------------
2310 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2311 ac_fn_f77_try_compile ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 rm -f conftest.$ac_objext
2315 if { { ac_try="$ac_compile"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2321 $as_echo "$ac_try_echo"; } >&5
2322 (eval "$ac_compile") 2>conftest.err
2324 if test -s conftest.err; then
2325 grep -v '^ *+' conftest.err >conftest.er1
2326 cat conftest.er1 >&5
2327 mv -f conftest.er1 conftest.err
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; } && {
2331 test -z "$ac_f77_werror_flag" ||
2332 test ! -s conftest.err
2333 } && test -s conftest.$ac_objext; then :
2336 $as_echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 as_fn_set_status $ac_retval
2344 } # ac_fn_f77_try_compile
2346 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2347 # --------------------------------------------
2348 # Tries to find the compile-time value of EXPR in a program that includes
2349 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2351 ac_fn_c_compute_int ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 if test "$cross_compiling" = yes; then
2355 # Depending upon the size, compute the lo and hi bounds.
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) >= 0)];
2364 return test_array [0];
2370 if ac_fn_c_try_compile "$LINENO"; then :
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2379 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2381 return test_array [0];
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388 ac_hi=$ac_mid; break
2390 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2391 if test $ac_lo -le $ac_mid; then
2395 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2406 static int test_array [1 - 2 * !(($2) < 0)];
2408 return test_array [0];
2414 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2423 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2425 return test_array [0];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=$ac_mid; break
2434 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435 if test $ac_mid -le $ac_hi; then
2439 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 # Binary search between lo and hi bounds.
2450 while test "x$ac_lo" != "x$ac_hi"; do
2451 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2460 return test_array [0];
2466 if ac_fn_c_try_compile "$LINENO"; then :
2469 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2481 static long int longval () { return $2; }
2482 static unsigned long int ulongval () { return $2; }
2489 FILE *f = fopen ("conftest.val", "w");
2494 long int i = longval ();
2497 fprintf (f, "%ld", i);
2501 unsigned long int i = ulongval ();
2504 fprintf (f, "%lu", i);
2506 /* Do not output a trailing newline, as this causes \r\n confusion
2507 on some platforms. */
2508 return ferror (f) || fclose (f) != 0;
2514 if ac_fn_c_try_run "$LINENO"; then :
2515 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2520 conftest.$ac_objext conftest.beam conftest.$ac_ext
2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2525 as_fn_set_status $ac_retval
2527 } # ac_fn_c_compute_int
2529 # ac_fn_cxx_try_compile LINENO
2530 # ----------------------------
2531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2532 ac_fn_cxx_try_compile ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 rm -f conftest.$ac_objext
2536 if { { ac_try="$ac_compile"
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_compile") 2>conftest.err
2545 if test -s conftest.err; then
2546 grep -v '^ *+' conftest.err >conftest.er1
2547 cat conftest.er1 >&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } && {
2552 test -z "$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest.$ac_objext; then :
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2563 as_fn_set_status $ac_retval
2565 } # ac_fn_cxx_try_compile
2567 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2568 # ----------------------------------------------------
2569 # Tries to find if the field MEMBER exists in type AGGR, after including
2570 # INCLUDES, setting cache variable VAR accordingly.
2571 ac_fn_c_check_member ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2575 $as_echo_n "checking for $2.$3... " >&6; }
2576 if eval \${$4+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2592 if ac_fn_c_try_compile "$LINENO"; then :
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h. */
2602 if (sizeof ac_aggr.$3)
2608 if ac_fn_c_try_compile "$LINENO"; then :
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_check_member
2624 # ac_fn_cxx_try_cpp LINENO
2625 # ------------------------
2626 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2627 ac_fn_cxx_try_cpp ()
2629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2630 if { { ac_try="$ac_cpp conftest.$ac_ext"
2632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2633 *) ac_try_echo=$ac_try;;
2635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2636 $as_echo "$ac_try_echo"; } >&5
2637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2639 if test -s conftest.err; then
2640 grep -v '^ *+' conftest.err >conftest.er1
2641 cat conftest.er1 >&5
2642 mv -f conftest.er1 conftest.err
2644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645 test $ac_status = 0; } > conftest.i && {
2646 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2647 test ! -s conftest.err
2651 $as_echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2657 as_fn_set_status $ac_retval
2659 } # ac_fn_cxx_try_cpp
2661 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2662 # ---------------------------------------------------------
2663 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2664 # the include files in INCLUDES and setting the cache variable VAR
2666 ac_fn_cxx_check_header_mongrel ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 if eval \${$3+:} false; then :
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if eval \${$3+:} false; then :
2673 $as_echo_n "(cached) " >&6
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2677 $as_echo "$ac_res" >&6; }
2679 # Is the header compilable?
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2681 $as_echo_n "checking $2 usability... " >&6; }
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2687 if ac_fn_cxx_try_compile "$LINENO"; then :
2688 ac_header_compiler=yes
2690 ac_header_compiler=no
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2694 $as_echo "$ac_header_compiler" >&6; }
2696 # Is the header present?
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2698 $as_echo_n "checking $2 presence... " >&6; }
2699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h. */
2703 if ac_fn_cxx_try_cpp "$LINENO"; then :
2704 ac_header_preproc=yes
2706 ac_header_preproc=no
2708 rm -f conftest.err conftest.i conftest.$ac_ext
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2710 $as_echo "$ac_header_preproc" >&6; }
2712 # So? What about this header?
2713 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2716 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2718 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2722 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2724 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2726 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2728 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2730 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2731 ( $as_echo "## ------------------------------------------ ##
2732 ## Report this to http://bugzilla.scilab.org/ ##
2733 ## ------------------------------------------ ##"
2734 ) | sed "s/^/$as_me: WARNING: /" >&2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2738 $as_echo_n "checking for $2... " >&6; }
2739 if eval \${$3+:} false; then :
2740 $as_echo_n "(cached) " >&6
2742 eval "$3=\$ac_header_compiler"
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2750 } # ac_fn_cxx_check_header_mongrel
2752 # ac_fn_cxx_try_run LINENO
2753 # ------------------------
2754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2755 # that executables *can* be run.
2756 ac_fn_cxx_try_run ()
2758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2759 if { { ac_try="$ac_link"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_link") 2>&5
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2770 { { case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_try") 2>&5
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; }; then :
2782 $as_echo "$as_me: program exited with status $ac_status" >&5
2783 $as_echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 ac_retval=$ac_status
2788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 as_fn_set_status $ac_retval
2792 } # ac_fn_cxx_try_run
2794 # ac_fn_cxx_try_link LINENO
2795 # -------------------------
2796 # Try to link conftest.$ac_ext, and return whether this succeeded.
2797 ac_fn_cxx_try_link ()
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 rm -f conftest.$ac_objext conftest$ac_exeext
2801 if { { ac_try="$ac_link"
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_link") 2>conftest.err
2810 if test -s conftest.err; then
2811 grep -v '^ *+' conftest.err >conftest.er1
2812 cat conftest.er1 >&5
2813 mv -f conftest.er1 conftest.err
2815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816 test $ac_status = 0; } && {
2817 test -z "$ac_cxx_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest$ac_exeext && {
2820 test "$cross_compiling" = yes ||
2821 test -x conftest$ac_exeext
2825 $as_echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2832 # interfere with the next link command; also delete a directory that is
2833 # left behind by Apple's compiler. We do this before executing the actions.
2834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836 as_fn_set_status $ac_retval
2838 } # ac_fn_cxx_try_link
2840 # ac_fn_f77_try_link LINENO
2841 # -------------------------
2842 # Try to link conftest.$ac_ext, and return whether this succeeded.
2843 ac_fn_f77_try_link ()
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 rm -f conftest.$ac_objext conftest$ac_exeext
2847 if { { ac_try="$ac_link"
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>conftest.err
2856 if test -s conftest.err; then
2857 grep -v '^ *+' conftest.err >conftest.er1
2858 cat conftest.er1 >&5
2859 mv -f conftest.er1 conftest.err
2861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2862 test $ac_status = 0; } && {
2863 test -z "$ac_f77_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest$ac_exeext && {
2866 test "$cross_compiling" = yes ||
2867 test -x conftest$ac_exeext
2871 $as_echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2878 # interfere with the next link command; also delete a directory that is
2879 # left behind by Apple's compiler. We do this before executing the actions.
2880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882 as_fn_set_status $ac_retval
2884 } # ac_fn_f77_try_link
2885 cat >config.log <<_ACEOF
2886 This file contains any messages produced by compilers while
2887 running configure, to aid debugging if configure makes a mistake.
2889 It was created by Scilab $as_me 6, which was
2890 generated by GNU Autoconf 2.69. Invocation command line was
2902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 $as_echo "PATH: $as_dir"
2942 # Keep a trace of the command line.
2943 # Strip out --no-create and --no-recursion so they do not pile up.
2944 # Strip out --silent because we don't want to record it for future runs.
2945 # Also quote any args containing shell meta-characters.
2946 # Make two passes to allow for proper duplicate-argument suppression.
2950 ac_must_keep_next=false
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2966 as_fn_append ac_configure_args1 " '$ac_arg'"
2967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2979 -* ) ac_must_keep_next=true ;;
2982 as_fn_append ac_configure_args " '$ac_arg'"
2987 { ac_configure_args0=; unset ac_configure_args0;}
2988 { ac_configure_args1=; unset ac_configure_args1;}
2990 # When interrupted or exit'd, cleanup temporary files, and complete
2991 # config.log. We remove comments because anyway the quotes in there
2992 # would cause problems or look ugly.
2993 # WARNING: Use '\'' to represent an apostrophe within the trap.
2994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995 trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
3000 $as_echo "## ---------------- ##
3001 ## Cache variables. ##
3002 ## ---------------- ##"
3004 # The following way of writing the cache mishandles newlines in values,
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017 *) { eval $ac_var=; unset $ac_var;} ;;
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3036 $as_echo "## ----------------- ##
3037 ## Output variables. ##
3038 ## ----------------- ##"
3040 for ac_var in $ac_subst_vars
3042 eval ac_val=\$$ac_var
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3046 $as_echo "$ac_var='\''$ac_val'\''"
3050 if test -n "$ac_subst_files"; then
3051 $as_echo "## ------------------- ##
3052 ## File substitutions. ##
3053 ## ------------------- ##"
3055 for ac_var in $ac_subst_files
3057 eval ac_val=\$$ac_var
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 $as_echo "$ac_var='\''$ac_val'\''"
3066 if test -s confdefs.h; then
3067 $as_echo "## ----------- ##
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3082 for ac_signal in 1 2 13 15; do
3083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3088 rm -f -r conftest* confdefs.h
3090 $as_echo "/* confdefs.h */" > confdefs.h
3092 # Predefined preprocessor variables.
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_NAME "$PACKAGE_NAME"
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_STRING "$PACKAGE_STRING"
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_URL "$PACKAGE_URL"
3119 # Let the site file select an alternate cache file if it wants to.
3120 # Prefer an explicitly selected file to automatically selected ones.
3123 if test -n "$CONFIG_SITE"; then
3124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3130 elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3139 test "x$ac_site_file" = xNONE && continue
3140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "failed to load site script $ac_site_file
3148 See \`config.log' for more details" "$LINENO" 5; }
3152 if test -r "$cache_file"; then
3153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3157 $as_echo "$as_me: loading cache $cache_file" >&6;}
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3165 $as_echo "$as_me: creating cache $cache_file" >&6;}
3169 gt_needs="$gt_needs "
3170 # Check that the precious variables saved in the cache have kept the same
3172 ac_cache_corrupted=false
3173 for ac_var in $ac_precious_vars; do
3174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3175 eval ac_new_set=\$ac_env_${ac_var}_set
3176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3177 eval ac_new_val=\$ac_env_${ac_var}_value
3178 case $ac_old_set,$ac_new_set in
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3181 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3182 ac_cache_corrupted=: ;;
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3185 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3186 ac_cache_corrupted=: ;;
3189 if test "x$ac_old_val" != "x$ac_new_val"; then
3190 # differences in whitespace do not lead to failure.
3191 ac_old_val_w=`echo x $ac_old_val`
3192 ac_new_val_w=`echo x $ac_new_val`
3193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3195 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3196 ac_cache_corrupted=:
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3199 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3200 eval $ac_var=\$ac_old_val
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3203 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3205 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3208 # Pass precious variables to config.status.
3209 if test "$ac_new_set" = set; then
3211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3212 *) ac_arg=$ac_var=$ac_new_val ;;
3214 case " $ac_configure_args " in
3215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3220 if $ac_cache_corrupted; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3224 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3225 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3227 ## -------------------- ##
3228 ## Main body of script. ##
3229 ## -------------------- ##
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 SCI_BUILDDIR="`pwd`"
3242 SCI_SRCDIR="$srcdir"
3243 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3245 SCILAB_VERSION_MAJOR=6
3246 SCILAB_VERSION_MINOR=0
3247 SCILAB_VERSION_MAINTENANCE=0
3253 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3256 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3259 #shared library versioning
3260 #GENERIC_LIBRARY_VERSION=1:2:0
3264 # current:revision:age
3266 # | | +- increment if interfaces have been added
3267 # | | set to zero if interfaces have been removed
3269 # | +- increment if source code has changed
3270 # | set to zero if current is incremented
3271 # +- increment if interfaces have been added, removed or changed
3273 # Check if we have a space in the path to the source tree
3274 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3275 if test "$SPACE_IN_PATH" = "0"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3277 $as_echo "$as_me: WARNING: =====================================" >&2;}
3278 { $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
3279 $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;}
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3281 $as_echo "$as_me: WARNING: =====================================" >&2;}
3286 for ac_dir in config "$srcdir"/config; do
3287 if test -f "$ac_dir/install-sh"; then
3289 ac_install_sh="$ac_aux_dir/install-sh -c"
3291 elif test -f "$ac_dir/install.sh"; then
3293 ac_install_sh="$ac_aux_dir/install.sh -c"
3295 elif test -f "$ac_dir/shtool"; then
3297 ac_install_sh="$ac_aux_dir/shtool install -c"
3301 if test -z "$ac_aux_dir"; then
3302 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3305 # These three variables are undocumented and unsupported,
3306 # and are intended to be withdrawn in a future Autoconf release.
3307 # They can cause serious problems if a builder's source tree is in a directory
3308 # whose full name contains unusual characters.
3309 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3310 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3311 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3314 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3318 # expand $ac_aux_dir to an absolute path
3319 am_aux_dir=`cd $ac_aux_dir && pwd`
3321 if test x"${install_sh}" != xset; then
3324 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3326 install_sh="\${SHELL} $am_aux_dir/install-sh"
3330 # Installed binaries are usually stripped using 'strip' when the user
3331 # run "make install-strip". However 'strip' might not be the right
3332 # tool to use in cross-compilation environments, therefore Automake
3333 # will honor the 'STRIP' environment variable to overrule this program.
3334 if test "$cross_compiling" != no; then
3335 if test -n "$ac_tool_prefix"; then
3336 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3337 set dummy ${ac_tool_prefix}strip; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_STRIP+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$STRIP"; then
3344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3366 $as_echo "$STRIP" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3374 if test -z "$ac_cv_prog_STRIP"; then
3376 # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test -n "$ac_ct_STRIP"; then
3384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_STRIP="strip"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3406 $as_echo "$ac_ct_STRIP" >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3412 if test "x$ac_ct_STRIP" = x; then
3415 case $cross_compiling:$ac_tool_warned in
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3419 ac_tool_warned=yes ;;
3424 STRIP="$ac_cv_prog_STRIP"
3428 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3431 $as_echo_n "checking whether ln -s works... " >&6; }
3433 if test "$LN_S" = "ln -s"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3435 $as_echo "yes" >&6; }
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3438 $as_echo "no, using $LN_S" >&6; }
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 if test -n "$ac_tool_prefix"; then
3447 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3448 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if ${ac_cv_prog_CC+:} false; then :
3452 $as_echo_n "(cached) " >&6
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 if test -n "$CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3485 if test -z "$ac_cv_prog_CC"; then
3487 # Extract the first word of "gcc", so it can be a program name with args.
3488 set dummy gcc; 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_ac_ct_CC+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 $as_echo "$ac_ct_CC" >&6; }
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3523 if test "x$ac_ct_CC" = x; then
3526 case $cross_compiling:$ac_tool_warned in
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3530 ac_tool_warned=yes ;;
3538 if test -z "$CC"; then
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}cc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="${ac_tool_prefix}cc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3579 if test -z "$CC"; then
3580 # Extract the first word of "cc", so it can be a program name with args.
3581 set dummy cc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3599 ac_prog_rejected=yes
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test $ac_prog_rejected = yes; then
3611 # We found a bogon in the path, so make sure we never use it.
3612 set dummy $ac_cv_prog_CC
3614 if test $# != 0; then
3615 # We chose a different compiler from the bogus one.
3616 # However, it has the same basename, so the bogon will be chosen
3617 # first if we set CC to just the basename; use the full file name.
3619 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3625 if test -n "$CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3627 $as_echo "$CC" >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3635 if test -z "$CC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 for ac_prog in cl.exe
3639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 $as_echo_n "checking for $ac_word... " >&6; }
3643 if ${ac_cv_prog_CC+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3676 test -n "$CC" && break
3679 if test -z "$CC"; then
3681 for ac_prog in cl.exe
3683 # Extract the first word of "$ac_prog", so it can be a program name with args.
3684 set dummy $ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3688 $as_echo_n "(cached) " >&6
3690 if test -n "$ac_ct_CC"; then
3691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_ac_ct_CC="$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3711 if test -n "$ac_ct_CC"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3713 $as_echo "$ac_ct_CC" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$ac_ct_CC" && break
3723 if test "x$ac_ct_CC" = x; then
3726 case $cross_compiling:$ac_tool_warned in
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3730 ac_tool_warned=yes ;;
3739 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741 as_fn_error $? "no acceptable C compiler found in \$PATH
3742 See \`config.log' for more details" "$LINENO" 5; }
3744 # Provide some information about the compiler.
3745 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3748 for ac_option in --version -v -V -qversion; do
3749 { { ac_try="$ac_compiler $ac_option >&5"
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3758 if test -s conftest.err; then
3760 ... rest of stderr output deleted ...
3761 10q' conftest.err >conftest.er1
3762 cat conftest.er1 >&5
3764 rm -f conftest.er1 conftest.err
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3780 ac_clean_files_save=$ac_clean_files
3781 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3782 # Try to create an executable without -o first, disregard a.out.
3783 # It will help us diagnose broken compilers, and finding out an intuition
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3786 $as_echo_n "checking whether the C compiler works... " >&6; }
3787 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3789 # The possible output files:
3790 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3793 for ac_file in $ac_files
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3802 if { { ac_try="$ac_link_default"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_link_default") 2>&5
3811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3812 test $ac_status = 0; }; then :
3813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3816 # so that the user can short-circuit this test for compilers unknown to
3818 for ac_file in $ac_files ''
3820 test -f "$ac_file" || continue
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3825 # We found the default executable, but exeext='' is most
3829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3833 # We set ac_cv_exeext here because the later test for it is not
3834 # safe: cross compilers may not add the suffix if given an `-o'
3835 # argument, so we may need to know it at that point already.
3836 # Even if this section looks crufty: it has the advantage of
3843 test "$ac_cv_exeext" = no && ac_cv_exeext=
3848 if test -z "$ac_file"; then :
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850 $as_echo "no" >&6; }
3851 $as_echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3856 as_fn_error 77 "C compiler cannot create executables
3857 See \`config.log' for more details" "$LINENO" 5; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860 $as_echo "yes" >&6; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3863 $as_echo_n "checking for C compiler default output file name... " >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3865 $as_echo "$ac_file" >&6; }
3866 ac_exeext=$ac_cv_exeext
3868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3869 ac_clean_files=$ac_clean_files_save
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3871 $as_echo_n "checking for suffix of executables... " >&6; }
3872 if { { ac_try="$ac_link"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3878 $as_echo "$ac_try_echo"; } >&5
3879 (eval "$ac_link") 2>&5
3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3882 test $ac_status = 0; }; then :
3883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3885 # work properly (i.e., refer to `conftest.exe'), while it won't with
3887 for ac_file in conftest.exe conftest conftest.*; do
3888 test -f "$ac_file" || continue
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3899 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3900 See \`config.log' for more details" "$LINENO" 5; }
3902 rm -f conftest conftest$ac_cv_exeext
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3904 $as_echo "$ac_cv_exeext" >&6; }
3906 rm -f conftest.$ac_ext
3907 EXEEXT=$ac_cv_exeext
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3915 FILE *f = fopen ("conftest.out", "w");
3916 return ferror (f) || fclose (f) != 0;
3922 ac_clean_files="$ac_clean_files conftest.out"
3923 # Check that the compiler produces executables we can run. If not, either
3924 # the compiler is broken, or we cross compile.
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3926 $as_echo_n "checking whether we are cross compiling... " >&6; }
3927 if test "$cross_compiling" != yes; then
3928 { { ac_try="$ac_link"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_link") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }
3939 if { ac_try='./conftest$ac_cv_exeext'
3940 { { case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_try") 2>&5
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; }; then
3952 if test "$cross_compiling" = maybe; then
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "cannot run C compiled programs.
3958 If you meant to cross compile, use \`--host'.
3959 See \`config.log' for more details" "$LINENO" 5; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3964 $as_echo "$cross_compiling" >&6; }
3966 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3967 ac_clean_files=$ac_clean_files_save
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3969 $as_echo_n "checking for suffix of object files... " >&6; }
3970 if ${ac_cv_objext+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3984 rm -f conftest.o conftest.obj
3985 if { { ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3991 $as_echo "$ac_try_echo"; } >&5
3992 (eval "$ac_compile") 2>&5
3994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3995 test $ac_status = 0; }; then :
3996 for ac_file in conftest.o conftest.obj conftest.*; do
3997 test -f "$ac_file" || continue;
3999 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4000 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4010 as_fn_error $? "cannot compute suffix of object files: cannot compile
4011 See \`config.log' for more details" "$LINENO" 5; }
4013 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4016 $as_echo "$ac_cv_objext" >&6; }
4017 OBJEXT=$ac_cv_objext
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4020 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4021 if ${ac_cv_c_compiler_gnu+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4048 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4049 if test $ac_compiler_gnu = yes; then
4054 ac_test_CFLAGS=${CFLAGS+set}
4055 ac_save_CFLAGS=$CFLAGS
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4057 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4058 if ${ac_cv_prog_cc_g+:} false; then :
4059 $as_echo_n "(cached) " >&6
4061 ac_save_c_werror_flag=$ac_c_werror_flag
4062 ac_c_werror_flag=yes
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 if ac_fn_c_try_compile "$LINENO"; then :
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_c_werror_flag=$ac_save_c_werror_flag
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4118 $as_echo "$ac_cv_prog_cc_g" >&6; }
4119 if test "$ac_test_CFLAGS" = set; then
4120 CFLAGS=$ac_save_CFLAGS
4121 elif test $ac_cv_prog_cc_g = yes; then
4122 if test "$GCC" = yes; then
4128 if test "$GCC" = yes; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4135 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4136 if ${ac_cv_prog_cc_c89+:} false; then :
4137 $as_echo_n "(cached) " >&6
4139 ac_cv_prog_cc_c89=no
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4147 struct buf { int x; };
4148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4149 static char *e (p, i)
4155 static char *f (char * (*g) (char **, int), char **p, ...)
4160 s = g (p, va_arg (v,int));
4165 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4166 function prototypes and stuff, but not '\xHH' hex character constants.
4167 These don't provoke an error unfortunately, instead are silently treated
4168 as 'x'. The following induces an error, until -std is added to get
4169 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4170 array size at least. It's necessary to write '\x00'==0 to get something
4171 that's true only with -std. */
4172 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4174 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4175 inside strings and character constants. */
4177 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4179 int test (int i, double x);
4180 struct s1 {int (*f) (int a);};
4181 struct s2 {int (*f) (double a);};
4182 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4188 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4193 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4194 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4196 CC="$ac_save_CC $ac_arg"
4197 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_cv_prog_cc_c89=$ac_arg
4200 rm -f core conftest.err conftest.$ac_objext
4201 test "x$ac_cv_prog_cc_c89" != "xno" && break
4203 rm -f conftest.$ac_ext
4208 case "x$ac_cv_prog_cc_c89" in
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4211 $as_echo "none needed" >&6; } ;;
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4214 $as_echo "unsupported" >&6; } ;;
4216 CC="$CC $ac_cv_prog_cc_c89"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4220 if test "x$ac_cv_prog_cc_c89" != xno; then :
4225 ac_cpp='$CPP $CPPFLAGS'
4226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4236 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4237 if ${am_cv_prog_cc_c_o+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4251 # Make sure it works both with $CC and with simple cc.
4252 # Following AC_PROG_CC_C_O, we do the test twice because some
4253 # compilers refuse to overwrite an existing .o file with -o,
4254 # though they will create one.
4255 am_cv_prog_cc_c_o=yes
4257 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4258 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } \
4262 && test -f conftest2.$ac_objext; then
4265 am_cv_prog_cc_c_o=no
4269 rm -f core conftest*
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4273 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4274 if test "$am_cv_prog_cc_c_o" != yes; then
4275 # Losing compiler, so override with the script.
4276 # FIXME: It is wrong to rewrite CC.
4277 # But if we don't then we get into trouble of one sort or another.
4278 # A longer-term fix would be to have automake use am__CC in this case,
4279 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4280 CC="$am_aux_dir/compile $CC"
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 if test -n "$ac_tool_prefix"; then
4291 for ac_prog in ar lib "link -lib"
4293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_prog_AR+:} false; then :
4298 $as_echo_n "(cached) " >&6
4300 if test -n "$AR"; then
4301 ac_cv_prog_AR="$AR" # Let the user override the test.
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4310 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 if test -n "$AR"; then
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4323 $as_echo "$AR" >&6; }
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326 $as_echo "no" >&6; }
4330 test -n "$AR" && break
4333 if test -z "$AR"; then
4335 for ac_prog in ar lib "link -lib"
4337 # Extract the first word of "$ac_prog", so it can be a program name with args.
4338 set dummy $ac_prog; ac_word=$2
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4340 $as_echo_n "checking for $ac_word... " >&6; }
4341 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 if test -n "$ac_ct_AR"; then
4345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_ac_ct_AR="$ac_prog"
4355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4365 if test -n "$ac_ct_AR"; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4367 $as_echo "$ac_ct_AR" >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370 $as_echo "no" >&6; }
4374 test -n "$ac_ct_AR" && break
4377 if test "x$ac_ct_AR" = x; then
4380 case $cross_compiling:$ac_tool_warned in
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4384 ac_tool_warned=yes ;;
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4393 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4394 if ${am_cv_ar_interface+:} false; then :
4395 $as_echo_n "(cached) " >&6
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 am_cv_ar_interface=ar
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 int some_variable = 0;
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4411 (eval $am_ar_try) 2>&5
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }
4415 if test "$ac_status" -eq 0; then
4416 am_cv_ar_interface=ar
4418 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4420 (eval $am_ar_try) 2>&5
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }
4424 if test "$ac_status" -eq 0; then
4425 am_cv_ar_interface=lib
4427 am_cv_ar_interface=unknown
4430 rm -f conftest.lib libconftest.a
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4442 $as_echo "$am_cv_ar_interface" >&6; }
4444 case $am_cv_ar_interface in
4448 # Microsoft lib, so override with the ar-lib wrapper script.
4449 # FIXME: It is wrong to rewrite AR.
4450 # But if we don't then we get into trouble of one sort or another.
4451 # A longer-term fix would be to have automake use am__AR in this case,
4452 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4454 AR="$am_aux_dir/ar-lib $AR"
4457 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4463 # Check whether --enable-largefile was given.
4464 if test "${enable_largefile+set}" = set; then :
4465 enableval=$enable_largefile;
4468 if test "$enable_largefile" != no; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4471 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4472 if ${ac_cv_sys_largefile_CC+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 ac_cv_sys_largefile_CC=no
4476 if test "$GCC" != yes; then
4479 # IRIX 6.2 and later do not support large files by default,
4480 # so use the C compiler's -n32 option if that helps.
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <sys/types.h>
4484 /* Check that off_t can represent 2**63 - 1 correctly.
4485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4486 since some C++ compilers masquerading as C compilers
4487 incorrectly reject 9223372036854775807. */
4488 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4490 && LARGE_OFF_T % 2147483647 == 1)
4500 if ac_fn_c_try_compile "$LINENO"; then :
4503 rm -f core conftest.err conftest.$ac_objext
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_sys_largefile_CC=' -n32'; break
4508 rm -f core conftest.err conftest.$ac_objext
4512 rm -f conftest.$ac_ext
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4516 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4517 if test "$ac_cv_sys_largefile_CC" != no; then
4518 CC=$CC$ac_cv_sys_largefile_CC
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4522 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4523 if ${ac_cv_sys_file_offset_bits+:} false; then :
4524 $as_echo_n "(cached) " >&6
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <sys/types.h>
4530 /* Check that off_t can represent 2**63 - 1 correctly.
4531 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4532 since some C++ compilers masquerading as C compilers
4533 incorrectly reject 9223372036854775807. */
4534 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4535 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4536 && LARGE_OFF_T % 2147483647 == 1)
4546 if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_sys_file_offset_bits=no; break
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #define _FILE_OFFSET_BITS 64
4553 #include <sys/types.h>
4554 /* Check that off_t can represent 2**63 - 1 correctly.
4555 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4556 since some C++ compilers masquerading as C compilers
4557 incorrectly reject 9223372036854775807. */
4558 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4559 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4560 && LARGE_OFF_T % 2147483647 == 1)
4570 if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_sys_file_offset_bits=64; break
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cv_sys_file_offset_bits=unknown
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4579 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4580 case $ac_cv_sys_file_offset_bits in #(
4583 cat >>confdefs.h <<_ACEOF
4584 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4589 if test $ac_cv_sys_file_offset_bits = unknown; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4591 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4592 if ${ac_cv_sys_large_files+:} false; then :
4593 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <sys/types.h>
4599 /* Check that off_t can represent 2**63 - 1 correctly.
4600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4601 since some C++ compilers masquerading as C compilers
4602 incorrectly reject 9223372036854775807. */
4603 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4605 && LARGE_OFF_T % 2147483647 == 1)
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_sys_large_files=no; break
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #define _LARGE_FILES 1
4622 #include <sys/types.h>
4623 /* Check that off_t can represent 2**63 - 1 correctly.
4624 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4625 since some C++ compilers masquerading as C compilers
4626 incorrectly reject 9223372036854775807. */
4627 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4628 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4629 && LARGE_OFF_T % 2147483647 == 1)
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_sys_large_files=1; break
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 ac_cv_sys_large_files=unknown
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4648 $as_echo "$ac_cv_sys_large_files" >&6; }
4649 case $ac_cv_sys_large_files in #(
4652 cat >>confdefs.h <<_ACEOF
4653 #define _LARGE_FILES $ac_cv_sys_large_files
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4664 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4665 if ${largefile64_cv_source+:} false; then :
4666 $as_echo_n "(cached) " >&6
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4672 #include <sys/types.h>
4673 #include <sys/stat.h>
4680 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4686 if ac_fn_c_try_compile "$LINENO"; then :
4688 largefile64_source="no"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4695 #define _LARGEFILE64_SOURCE
4696 #include <sys/types.h>
4697 #include <sys/stat.h>
4704 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4710 if ac_fn_c_try_compile "$LINENO"; then :
4712 largefile64_source="yes"
4716 largefile64_source="unknown"
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4726 $as_echo "$largefile64_cv_source" >&6; }
4728 if test "x$largefile64_source" = "xyes"; then
4729 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4730 enable_largefile="yes"
4731 elif test "x$largefile64_source" = "xunknown"; then
4733 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4737 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4738 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4739 enable_largefile="yes"
4742 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4743 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4744 enable_largefile="yes"
4749 # In order to be able to change the scilab directory
4750 # See http://wiki.debian.org/RpathIssue
4751 # Find a good install program. We prefer a C program (faster),
4752 # so one script is as good as another. But avoid the broken or
4753 # incompatible versions:
4754 # SysV /etc/install, /usr/sbin/install
4755 # SunOS /usr/etc/install
4756 # IRIX /sbin/install
4758 # AmigaOS /C/install, which installs bootblocks on floppy discs
4759 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4760 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4761 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4762 # OS/2's system install, which has a completely different semantic
4763 # ./install, which can be erroneously created by make from ./install.sh.
4764 # Reject install programs that cannot install multiple files.
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4766 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4767 if test -z "$INSTALL"; then
4768 if ${ac_cv_path_install+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 test -z "$as_dir" && as_dir=.
4776 # Account for people who put trailing slashes in PATH elements.
4777 case $as_dir/ in #((
4778 ./ | .// | /[cC]/* | \
4779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4780 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4783 # OSF1 and SCO ODT 3.0 have their own names for install.
4784 # Don't use installbsd from OSF since it installs stuff as root
4786 for ac_prog in ginstall scoinst install; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4789 if test $ac_prog = install &&
4790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791 # AIX install. It has an incompatible calling convention.
4793 elif test $ac_prog = install &&
4794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795 # program-specific install script used by HP pwplus--don't use.
4798 rm -rf conftest.one conftest.two conftest.dir
4799 echo one > conftest.one
4800 echo two > conftest.two
4802 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4803 test -s conftest.one && test -s conftest.two &&
4804 test -s conftest.dir/conftest.one &&
4805 test -s conftest.dir/conftest.two
4807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4820 rm -rf conftest.one conftest.two conftest.dir
4823 if test "${ac_cv_path_install+set}" = set; then
4824 INSTALL=$ac_cv_path_install
4826 # As a last resort, use the slow shell script. Don't cache a
4827 # value for INSTALL within a source directory, because that will
4828 # break other packages using the cache if that directory is
4829 # removed, or if the value is a relative name.
4830 INSTALL=$ac_install_sh
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4834 $as_echo "$INSTALL" >&6; }
4836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837 # It thinks the first close brace ends the variable substitution.
4838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4842 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4844 # Make sure we can run config.sub.
4845 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4846 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4849 $as_echo_n "checking build system type... " >&6; }
4850 if ${ac_cv_build+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 ac_build_alias=$build_alias
4854 test "x$ac_build_alias" = x &&
4855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4856 test "x$ac_build_alias" = x &&
4857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4863 $as_echo "$ac_cv_build" >&6; }
4864 case $ac_cv_build in
4866 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4869 ac_save_IFS=$IFS; IFS='-'
4875 # Remember, the first character of IFS is used to create $*,
4876 # except with old shells:
4879 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4883 $as_echo_n "checking host system type... " >&6; }
4884 if ${ac_cv_host+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 if test "x$host_alias" = x; then
4888 ac_cv_host=$ac_cv_build
4890 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4891 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4896 $as_echo "$ac_cv_host" >&6; }
4899 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4902 ac_save_IFS=$IFS; IFS='-'
4908 # Remember, the first character of IFS is used to create $*,
4909 # except with old shells:
4912 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4916 # Check whether --with-gnu-ld was given.
4917 if test "${with_gnu_ld+set}" = set; then :
4918 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4923 # Prepare PATH_SEPARATOR.
4924 # The user is always right.
4925 if test "${PATH_SEPARATOR+set}" != set; then
4926 echo "#! /bin/sh" >conf$$.sh
4927 echo "exit 0" >>conf$$.sh
4929 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4937 if test "$GCC" = yes; then
4938 # Check if gcc -print-prog-name=ld gives a path.
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4940 $as_echo_n "checking for ld used by GCC... " >&6; }
4943 # gcc leaves a trailing carriage return which upsets mingw
4944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4949 # Accept absolute paths.
4950 [\\/]* | [A-Za-z]:[\\/]*)
4951 re_direlt='/[^/][^/]*/\.\./'
4952 # Canonicalize the path of ld
4953 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4954 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4955 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4957 test -z "$LD" && LD="$ac_prog"
4960 # If it fails, then pretend we aren't using GCC.
4964 # If it is relative, then search for the first ld in PATH.
4968 elif test "$with_gnu_ld" = yes; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4970 $as_echo_n "checking for GNU ld... " >&6; }
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4973 $as_echo_n "checking for non-GNU ld... " >&6; }
4975 if ${acl_cv_path_LD+:} false; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -z "$LD"; then
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4980 for ac_dir in $PATH; do
4981 test -z "$ac_dir" && ac_dir=.
4982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4983 acl_cv_path_LD="$ac_dir/$ac_prog"
4984 # Check to see if the program is GNU ld. I'd rather use --version,
4985 # but apparently some GNU ld's only accept -v.
4986 # Break only if it was the GNU/non-GNU ld that we prefer.
4987 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4988 *GNU* | *'with BFD'*)
4989 test "$with_gnu_ld" != no && break ;;
4991 test "$with_gnu_ld" != yes && break ;;
4997 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5001 LD="$acl_cv_path_LD"
5002 if test -n "$LD"; then
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5004 $as_echo "$LD" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5009 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5011 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5012 if ${acl_cv_prog_gnu_ld+:} false; then :
5013 $as_echo_n "(cached) " >&6
5015 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5016 case `$LD -v 2>&1 </dev/null` in
5017 *GNU* | *'with BFD'*)
5018 acl_cv_prog_gnu_ld=yes ;;
5020 acl_cv_prog_gnu_ld=no ;;
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5024 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5025 with_gnu_ld=$acl_cv_prog_gnu_ld
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
5030 $as_echo_n "checking for shared library path variable... " >&6; }
5031 if ${acl_cv_libpath+:} false; then :
5032 $as_echo_n "(cached) " >&6
5036 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
5039 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
5043 $as_echo "$acl_cv_libpath" >&6; }
5044 shlibpath_var="$acl_cv_shlibpath_var"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
5048 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
5049 # Check whether --enable-relocatable was given.
5050 if test "${enable_relocatable+set}" = set; then :
5051 enableval=$enable_relocatable; if test "$enableval" != no; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
5063 $as_echo "$RELOCATABLE" >&6; }
5067 if test "X$prefix" = "XNONE"; then
5068 reloc_final_prefix="$ac_default_prefix"
5070 reloc_final_prefix="$prefix"
5073 cat >>confdefs.h <<_ACEOF
5074 #define INSTALLPREFIX "${reloc_final_prefix}"
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5085 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5086 # On Suns, sometimes $CPP names a directory.
5087 if test -n "$CPP" && test -d "$CPP"; then
5090 if test -z "$CPP"; then
5091 if ${ac_cv_prog_CPP+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 # Double quotes because CPP needs to be expanded
5095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5098 for ac_c_preproc_warn_flag in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5109 # include <limits.h>
5111 # include <assert.h>
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5118 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.i conftest.$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5133 # Passes both tests.
5137 rm -f conftest.err conftest.i conftest.$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.i conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5157 for ac_c_preproc_warn_flag in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5177 # Broken: fails on valid input.
5180 rm -f conftest.err conftest.i conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5189 # Broken: success on invalid input.
5192 # Passes both tests.
5196 rm -f conftest.err conftest.i conftest.$ac_ext
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.i conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5207 See \`config.log' for more details" "$LINENO" 5; }
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if ${ac_cv_path_GREP+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5229 test -z "$as_dir" && as_dir=.
5230 for ac_prog in grep ggrep; do
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233 as_fn_executable_p "$ac_path_GREP" || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5238 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5241 $as_echo_n 0123456789 >"conftest.in"
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250 as_fn_arith $ac_count + 1 && ac_count=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP="$ac_path_GREP"
5254 ac_path_GREP_max=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5262 $ac_path_GREP_found && break 3
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271 ac_cv_path_GREP=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if ${ac_cv_path_EGREP+:} false; then :
5283 $as_echo_n "(cached) " >&6
5285 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286 then ac_cv_path_EGREP="$GREP -E"
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 test -z "$as_dir" && as_dir=.
5296 for ac_prog in egrep; do
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299 as_fn_executable_p "$ac_path_EGREP" || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5304 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5307 $as_echo_n 0123456789 >"conftest.in"
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316 as_fn_arith $ac_count + 1 && ac_count=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP="$ac_path_EGREP"
5320 ac_path_EGREP_max=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 $ac_path_EGREP_found && break 3
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337 ac_cv_path_EGREP=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if ${ac_cv_header_stdc+:} false; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_header_stdc=yes
5370 ac_cv_header_stdc=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev/null 2>&1; then :
5385 ac_cv_header_stdc=no
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev/null 2>&1; then :
5402 ac_cv_header_stdc=no
5408 if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5440 if ac_fn_c_try_run "$LINENO"; then :
5443 ac_cv_header_stdc=no
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446 conftest.$ac_objext conftest.beam conftest.$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5467 cat >>confdefs.h <<_ACEOF
5468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5483 use_elf_origin_trick=no
5484 if test $RELOCATABLE = yes; then
5485 # --enable-relocatable implies --disable-rpath
5488 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5490 for ac_header in unistd.h mach-o/dyld.h
5492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5495 cat >>confdefs.h <<_ACEOF
5496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5503 for ac_func in _NSGetExecutablePath
5505 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5506 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5507 cat >>confdefs.h <<_ACEOF
5508 #define HAVE__NSGETEXECUTABLEPATH 1
5515 mingw*) is_noop=yes ;;
5516 linux*) use_elf_origin_trick=yes ;;
5518 if test $is_noop = yes; then
5519 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5521 if test $use_elf_origin_trick = yes; then
5522 case "$ac_aux_dir" in
5523 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5524 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5526 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5528 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\""
5529 case "$ac_aux_dir" in
5530 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5531 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5539 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5540 RELOCATABLE_VIA_LD_TRUE=
5541 RELOCATABLE_VIA_LD_FALSE='#'
5543 RELOCATABLE_VIA_LD_TRUE='#'
5544 RELOCATABLE_VIA_LD_FALSE=
5550 if test $RELOCATABLE = yes; then
5551 case " $LIBOBJS " in
5552 *" relocatable.$ac_objext "* ) ;;
5553 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5561 if test "X$prefix" = "XNONE"; then
5562 reloc_final_prefix="$ac_default_prefix"
5564 reloc_final_prefix="$prefix"
5567 cat >>confdefs.h <<_ACEOF
5568 #define INSTALLPREFIX "${reloc_final_prefix}"
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5575 $as_echo_n "checking for shared library run path origin... " >&6; }
5576 if ${acl_cv_rpath+:} false; then :
5577 $as_echo_n "(cached) " >&6
5580 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5588 $as_echo "$acl_cv_rpath" >&6; }
5590 acl_libext="$acl_cv_libext"
5591 acl_shlibext="$acl_cv_shlibext"
5592 acl_libname_spec="$acl_cv_libname_spec"
5593 acl_library_names_spec="$acl_cv_library_names_spec"
5594 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5595 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5596 acl_hardcode_direct="$acl_cv_hardcode_direct"
5597 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5598 # Check whether --enable-rpath was given.
5599 if test "${enable_rpath+set}" = set; then :
5600 enableval=$enable_rpath; :
5607 # If configure detect that timestamp changed,
5608 # it tries to rebuild configure & makefile which can be a painmaker
5609 # if the version is different
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5612 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5613 # Check whether --enable-maintainer-mode was given.
5614 if test "${enable_maintainer_mode+set}" = set; then :
5615 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5617 USE_MAINTAINER_MODE=no
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5621 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5622 if test $USE_MAINTAINER_MODE = yes; then
5623 MAINTAINER_MODE_TRUE=
5624 MAINTAINER_MODE_FALSE='#'
5626 MAINTAINER_MODE_TRUE='#'
5627 MAINTAINER_MODE_FALSE=
5630 MAINT=$MAINTAINER_MODE_TRUE
5634 am__api_version='1.14'
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5637 $as_echo_n "checking whether build environment is sane... " >&6; }
5638 # Reject unsafe characters in $srcdir or the absolute working directory
5639 # name. Accept space and tab only in the latter.
5643 *[\\\"\#\$\&\'\`$am_lf]*)
5644 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5647 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5648 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5651 # Do 'set' in a subshell so we don't clobber the current shell's
5652 # arguments. Must try -L first in case configure is actually a
5653 # symlink; some systems play weird games with the mod time of symlinks
5654 # (eg FreeBSD returns the mod time of the symlink's containing
5658 for am_try in 1 2; do
5659 echo "timestamp, slept: $am_has_slept" > conftest.file
5660 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5661 if test "$*" = "X"; then
5663 set X `ls -t "$srcdir/configure" conftest.file`
5665 if test "$*" != "X $srcdir/configure conftest.file" \
5666 && test "$*" != "X conftest.file $srcdir/configure"; then
5668 # If neither matched, then we have a broken ls. This can happen
5669 # if, for instance, CONFIG_SHELL is bash and it inherits a
5670 # broken ls alias from the environment. This has actually
5671 # happened. Such a system could not be considered "sane".
5672 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5673 alias in your environment" "$LINENO" 5
5675 if test "$2" = conftest.file || test $am_try -eq 2; then
5682 test "$2" = conftest.file
5688 as_fn_error $? "newly created file is older than distributed files!
5689 Check your system clock" "$LINENO" 5
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5692 $as_echo "yes" >&6; }
5693 # If we didn't sleep, we still need to ensure time stamps of config.status and
5694 # generated files are strictly newer.
5696 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5703 test "$program_prefix" != NONE &&
5704 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5705 # Use a double $ so make ignores it.
5706 test "$program_suffix" != NONE &&
5707 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5708 # Double any \ or $.
5709 # By default was `s,x,x', remove it if useless.
5710 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5711 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5713 if test x"${MISSING+set}" != xset; then
5716 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5718 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5721 # Use eval to expand $SHELL
5722 if eval "$MISSING --is-lightweight"; then
5723 am_missing_run="$MISSING "
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5727 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5732 if test -z "$MKDIR_P"; then
5733 if ${ac_cv_path_mkdir+:} false; then :
5734 $as_echo_n "(cached) " >&6
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5740 test -z "$as_dir" && as_dir=.
5741 for ac_prog in mkdir gmkdir; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5744 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5745 'mkdir (GNU coreutils) '* | \
5746 'mkdir (coreutils) '* | \
5747 'mkdir (fileutils) '4.1*)
5748 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5758 test -d ./--version && rmdir ./--version
5759 if test "${ac_cv_path_mkdir+set}" = set; then
5760 MKDIR_P="$ac_cv_path_mkdir -p"
5762 # As a last resort, use the slow shell script. Don't cache a
5763 # value for MKDIR_P within a source directory, because that will
5764 # break other packages using the cache if that directory is
5765 # removed, or if the value is a relative name.
5766 MKDIR_P="$ac_install_sh -d"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5770 $as_echo "$MKDIR_P" >&6; }
5772 for ac_prog in gawk mawk nawk awk
5774 # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_AWK+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 if test -n "$AWK"; then
5782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_AWK="$ac_prog"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 if test -n "$AWK"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5804 $as_echo "$AWK" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5811 test -n "$AWK" && break
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5818 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5819 $as_echo_n "(cached) " >&6
5821 cat >conftest.make <<\_ACEOF
5824 @echo '@@@%%%=$(MAKE)=@@@%%%'
5826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5829 eval ac_cv_prog_make_${ac_make}_set=yes;;
5831 eval ac_cv_prog_make_${ac_make}_set=no;;
5835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5837 $as_echo "yes" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 SET_MAKE="MAKE=${MAKE-make}"
5845 rm -rf .tst 2>/dev/null
5846 mkdir .tst 2>/dev/null
5847 if test -d .tst; then
5852 rmdir .tst 2>/dev/null
5854 DEPDIR="${am__leading_dot}deps"
5856 ac_config_commands="$ac_config_commands depfiles"
5859 am_make=${MAKE-make}
5860 cat > confinc << 'END'
5862 @echo this is the am__doit target
5865 # If we don't find an include directive, just comment out the code.
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5867 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5871 # First try GNU make style include.
5872 echo "include confinc" > confmf
5873 # Ignore all kinds of additional output from 'make'.
5874 case `$am_make -s -f confmf 2> /dev/null` in #(
5875 *the\ am__doit\ target*)
5881 # Now try BSD make style include.
5882 if test "$am__include" = "#"; then
5883 echo '.include "confinc"' > confmf
5884 case `$am_make -s -f confmf 2> /dev/null` in #(
5885 *the\ am__doit\ target*)
5886 am__include=.include
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5895 $as_echo "$_am_result" >&6; }
5896 rm -f confinc confmf
5898 # Check whether --enable-dependency-tracking was given.
5899 if test "${enable_dependency_tracking+set}" = set; then :
5900 enableval=$enable_dependency_tracking;
5903 if test "x$enable_dependency_tracking" != xno; then
5904 am_depcomp="$ac_aux_dir/depcomp"
5908 if test "x$enable_dependency_tracking" != xno; then
5917 # Check whether --enable-silent-rules was given.
5918 if test "${enable_silent_rules+set}" = set; then :
5919 enableval=$enable_silent_rules;
5922 case $enable_silent_rules in # (((
5923 yes) AM_DEFAULT_VERBOSITY=0;;
5924 no) AM_DEFAULT_VERBOSITY=1;;
5925 *) AM_DEFAULT_VERBOSITY=1;;
5927 am_make=${MAKE-make}
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5929 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5930 if ${am_cv_make_support_nested_variables+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 if $as_echo 'TRUE=$(BAR$(V))
5939 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5940 am_cv_make_support_nested_variables=yes
5942 am_cv_make_support_nested_variables=no
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5946 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5947 if test $am_cv_make_support_nested_variables = yes; then
5949 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5951 AM_V=$AM_DEFAULT_VERBOSITY
5952 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5956 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5957 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5958 # is not polluted with repeated "-I."
5959 am__isrc=' -I$(srcdir)'
5960 # test to see if srcdir already configured
5961 if test -f $srcdir/config.status; then
5962 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5966 # test whether we have cygpath
5967 if test -z "$CYGPATH_W"; then
5968 if (cygpath --version) >/dev/null 2>/dev/null; then
5969 CYGPATH_W='cygpath -w'
5976 # Define the identity of the package.
5981 cat >>confdefs.h <<_ACEOF
5982 #define PACKAGE "$PACKAGE"
5986 cat >>confdefs.h <<_ACEOF
5987 #define VERSION "$VERSION"
5990 # Some tools Automake needs.
5992 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5995 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5998 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6001 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6004 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6006 # For better backward compatibility. To be removed once Automake 1.9.x
6007 # dies out for good. For more background, see:
6008 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6009 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6010 mkdir_p='$(MKDIR_P)'
6012 # We need awk for the "check" target. The system "awk" is bad on
6014 # Always define AMTAR for backward compatibility. Yes, it's still used
6015 # in the wild :-( We should find a proper way to deprecate it ...
6019 # We'll loop over all known methods to create a tar archive until one works.
6020 _am_tools='gnutar pax cpio none'
6022 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6028 depcc="$CC" am_compiler_list=
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6031 $as_echo_n "checking dependency style of $depcc... " >&6; }
6032 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6033 $as_echo_n "(cached) " >&6
6035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6036 # We make a subdir and do the tests there. Otherwise we can end up
6037 # making bogus files that we don't know about and never remove. For
6038 # instance it was reported that on HP-UX the gcc test will end up
6039 # making a dummy file named 'D' -- because '-MD' means "put the output
6043 # Copy depcomp to subdir because otherwise we won't find it if we're
6044 # using a relative directory.
6045 cp "$am_depcomp" conftest.dir
6047 # We will build objects and dependencies in a subdirectory because
6048 # it helps to detect inapplicable dependency modes. For instance
6049 # both Tru64's cc and ICC support -MD to output dependencies as a
6050 # side effect of compilation, but ICC will put the dependencies in
6051 # the current directory while Tru64 will put them in the object
6055 am_cv_CC_dependencies_compiler_type=none
6056 if test "$am_compiler_list" = ""; then
6057 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6060 case " $depcc " in #(
6061 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6064 for depmode in $am_compiler_list; do
6065 # Setup a source with many dependencies, because some compilers
6066 # like to wrap large dependency lists on column 80 (with \), and
6067 # we should not choose a depcomp mode which is confused by this.
6069 # We need to recreate these files for each test, as the compiler may
6070 # overwrite some of them when testing with obscure command lines.
6071 # This happens at least with the AIX C compiler.
6073 for i in 1 2 3 4 5 6; do
6074 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6075 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6076 # Solaris 10 /bin/sh.
6077 echo '/* dummy */' > sub/conftst$i.h
6079 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6081 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6082 # mode. It turns out that the SunPro C++ compiler does not properly
6083 # handle '-M -o', and we need to detect this. Also, some Intel
6084 # versions had trouble with output in subdirs.
6085 am__obj=sub/conftest.${OBJEXT-o}
6086 am__minus_obj="-o $am__obj"
6089 # This depmode causes a compiler race in universal mode.
6090 test "$am__universal" = false || continue
6093 # After this tag, mechanisms are not by side-effect, so they'll
6094 # only be used when explicitly requested.
6095 if test "x$enable_dependency_tracking" = xyes; then
6101 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6102 # This compiler won't grok '-c -o', but also, the minuso test has
6103 # not run yet. These depmodes are late enough in the game, and
6104 # so weak that their functioning should not be impacted.
6105 am__obj=conftest.${OBJEXT-o}
6110 if depmode=$depmode \
6111 source=sub/conftest.c object=$am__obj \
6112 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6113 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6114 >/dev/null 2>conftest.err &&
6115 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6116 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6117 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6118 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6119 # icc doesn't choke on unknown options, it will just issue warnings
6120 # or remarks (even with -Werror). So we grep stderr for any message
6121 # that says an option was ignored or not supported.
6122 # When given -MP, icc 7.0 and 7.1 complain thusly:
6123 # icc: Command line warning: ignoring option '-M'; no argument required
6124 # The diagnosis changed in icc 8.0:
6125 # icc: Command line remark: option '-MP' not supported
6126 if (grep 'ignoring option' conftest.err ||
6127 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6128 am_cv_CC_dependencies_compiler_type=$depmode
6137 am_cv_CC_dependencies_compiler_type=none
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6142 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6143 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6146 test "x$enable_dependency_tracking" != xno \
6147 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6149 am__fastdepCC_FALSE='#'
6151 am__fastdepCC_TRUE='#'
6152 am__fastdepCC_FALSE=
6157 # POSIX will say in a future version that running "rm -f" with no argument
6158 # is OK; and we want to be able to make that assumption in our Makefile
6159 # recipes. So use an aggressive probe to check that the usage we want is
6160 # actually supported "in the wild" to an acceptable degree.
6161 # See automake bug#10828.
6162 # To make any issue more visible, cause the running configure to be aborted
6163 # by default if the 'rm' program in use doesn't match our expectations; the
6164 # user can still override this though.
6165 if rm -f && rm -fr && rm -rf; then : OK; else
6169 Your 'rm' program seems unable to run without file operands specified
6170 on the command line, even when the '-f' option is present. This is contrary
6171 to the behaviour of most rm programs out there, and not conforming with
6172 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6174 Please tell bug-automake@gnu.org about your system, including the value
6175 of your $PATH and any error possibly output before this message. This
6176 can help us improve future automake versions.
6179 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6180 echo 'Configuration will proceed anyway, since you have set the' >&2
6181 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6185 Aborting the configuration process, to ensure you take notice of the issue.
6187 You can download and install GNU coreutils to get an 'rm' implementation
6188 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6190 If you want to complete the configuration process using your problematic
6191 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6192 to "yes", and re-run configure.
6195 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6197 fi # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6201 #################################
6202 ## all the --with-* argument help
6203 #################################
6206 # Check whether --enable-debug was given.
6207 if test "${enable_debug+set}" = set; then :
6208 enableval=$enable_debug;
6212 # Check whether --enable-debug-C was given.
6213 if test "${enable_debug_C+set}" = set; then :
6214 enableval=$enable_debug_C;
6218 # Check whether --enable-debug-CXX was given.
6219 if test "${enable_debug_CXX+set}" = set; then :
6220 enableval=$enable_debug_CXX;
6224 # Check whether --enable-debug-java was given.
6225 if test "${enable_debug_java+set}" = set; then :
6226 enableval=$enable_debug_java;
6230 # Check whether --enable-debug-fortran was given.
6231 if test "${enable_debug_fortran+set}" = set; then :
6232 enableval=$enable_debug_fortran;
6236 # Check whether --enable-debug-linker was given.
6237 if test "${enable_debug_linker+set}" = set; then :
6238 enableval=$enable_debug_linker;
6242 # Check whether --enable-code-coverage was given.
6243 if test "${enable_code_coverage+set}" = set; then :
6244 enableval=$enable_code_coverage;
6248 # Check whether --enable-stop-on-warning was given.
6249 if test "${enable_stop_on_warning+set}" = set; then :
6250 enableval=$enable_stop_on_warning;
6255 # Check whether --with-gcc was given.
6256 if test "${with_gcc+set}" = set; then :
6262 # Check whether --with-gfortran was given.
6263 if test "${with_gfortran+set}" = set; then :
6264 withval=$with_gfortran;
6269 # Check whether --with-intelcompilers was given.
6270 if test "${with_intelcompilers+set}" = set; then :
6271 withval=$with_intelcompilers;
6276 # Check whether --with-tk was given.
6277 if test "${with_tk+set}" = set; then :
6283 # Check whether --with-javasci was given.
6284 if test "${with_javasci+set}" = set; then :
6285 withval=$with_javasci;
6289 # Check whether --enable-compilation-tests was given.
6290 if test "${enable_compilation_tests+set}" = set; then :
6291 enableval=$enable_compilation_tests;
6296 # Check whether --with-gui was given.
6297 if test "${with_gui+set}" = set; then :
6303 # Check whether --with-build-swig was given.
6304 if test "${with_build_swig+set}" = set; then :
6305 withval=$with_build_swig; with_build_swig=$withval
6313 # Check whether --enable-build-giws was given.
6314 if test "${enable_build_giws+set}" = set; then :
6315 enableval=$enable_build_giws;
6319 # Check whether --enable-build-parser was given.
6320 if test "${enable_build_parser+set}" = set; then :
6321 enableval=$enable_build_parser;
6326 ################################################
6327 ########## compilator & misc programs detection
6328 ################################################
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6337 # On Suns, sometimes $CPP names a directory.
6338 if test -n "$CPP" && test -d "$CPP"; then
6341 if test -z "$CPP"; then
6342 if ${ac_cv_prog_CPP+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 # Double quotes because CPP needs to be expanded
6346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6349 for ac_c_preproc_warn_flag in '' yes
6351 # Use a header file that comes with gcc, so configuring glibc
6352 # with a fresh cross-compiler works.
6353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6354 # <limits.h> exists even on freestanding compilers.
6355 # On the NeXT, cc -E runs the code through the compiler's parser,
6356 # not just through cpp. "Syntax error" is here to catch this case.
6357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6360 # include <limits.h>
6362 # include <assert.h>
6366 if ac_fn_c_try_cpp "$LINENO"; then :
6369 # Broken: fails on valid input.
6372 rm -f conftest.err conftest.i conftest.$ac_ext
6374 # OK, works on sane cases. Now check whether nonexistent headers
6375 # can be detected and how.
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <ac_nonexistent.h>
6380 if ac_fn_c_try_cpp "$LINENO"; then :
6381 # Broken: success on invalid input.
6384 # Passes both tests.
6388 rm -f conftest.err conftest.i conftest.$ac_ext
6391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6392 rm -f conftest.i conftest.err conftest.$ac_ext
6393 if $ac_preproc_ok; then :
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6406 $as_echo "$CPP" >&6; }
6408 for ac_c_preproc_warn_flag in '' yes
6410 # Use a header file that comes with gcc, so configuring glibc
6411 # with a fresh cross-compiler works.
6412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6413 # <limits.h> exists even on freestanding compilers.
6414 # On the NeXT, cc -E runs the code through the compiler's parser,
6415 # not just through cpp. "Syntax error" is here to catch this case.
6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6419 # include <limits.h>
6421 # include <assert.h>
6425 if ac_fn_c_try_cpp "$LINENO"; then :
6428 # Broken: fails on valid input.
6431 rm -f conftest.err conftest.i conftest.$ac_ext
6433 # OK, works on sane cases. Now check whether nonexistent headers
6434 # can be detected and how.
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 #include <ac_nonexistent.h>
6439 if ac_fn_c_try_cpp "$LINENO"; then :
6440 # Broken: success on invalid input.
6443 # Passes both tests.
6447 rm -f conftest.err conftest.i conftest.$ac_ext
6450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6451 rm -f conftest.i conftest.err conftest.$ac_ext
6452 if $ac_preproc_ok; then :
6455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6457 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6458 See \`config.log' for more details" "$LINENO" 5; }
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6469 if ${ac_cv_path_GREP+:} false; then :
6470 $as_echo_n "(cached) " >&6
6472 if test -z "$GREP"; then
6473 ac_path_GREP_found=false
6474 # Loop through the user's path and test for each of PROGNAME-LIST
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6479 test -z "$as_dir" && as_dir=.
6480 for ac_prog in grep ggrep; do
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6483 as_fn_executable_p "$ac_path_GREP" || continue
6484 # Check for GNU ac_path_GREP and select it if it is found.
6485 # Check for GNU $ac_path_GREP
6486 case `"$ac_path_GREP" --version 2>&1` in
6488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6491 $as_echo_n 0123456789 >"conftest.in"
6494 cat "conftest.in" "conftest.in" >"conftest.tmp"
6495 mv "conftest.tmp" "conftest.in"
6496 cp "conftest.in" "conftest.nl"
6497 $as_echo 'GREP' >> "conftest.nl"
6498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6500 as_fn_arith $ac_count + 1 && ac_count=$as_val
6501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6502 # Best one so far, save it but keep looking for a better one
6503 ac_cv_path_GREP="$ac_path_GREP"
6504 ac_path_GREP_max=$ac_count
6506 # 10*(2^10) chars as input seems more than enough
6507 test $ac_count -gt 10 && break
6509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6512 $ac_path_GREP_found && break 3
6517 if test -z "$ac_cv_path_GREP"; then
6518 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6521 ac_cv_path_GREP=$GREP
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6526 $as_echo "$ac_cv_path_GREP" >&6; }
6527 GREP="$ac_cv_path_GREP"
6532 #### Mac OS X set of fink path with provided
6536 # Check whether --with-fink_prefix was given.
6537 if test "${with_fink_prefix+set}" = set; then :
6538 withval=$with_fink_prefix;
6541 # Need MacosX Version to specify some path.
6543 *Darwin* | *darwin*)
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6546 $as_echo_n "checking Mac OS X Version... " >&6; }
6547 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6548 case $macosx_version in
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.9 - Mavericks." >&5
6551 $as_echo "Mac OS X 10.9 - Mavericks." >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6555 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6559 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6563 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6567 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6570 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 10.8 or 10.9 are needed. Found $macosx_version" "$LINENO" 5
6579 if test -n "$with_fink_prefix"; then
6580 # If with-fink-prefix is provided, use the provided path to make sure that we will
6581 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6582 # Therefor, we use the one in fink)
6583 FINK_PREFIX="$with_fink_prefix/"
6585 # Exec the init script of fink to make sure that the env is set
6586 if test -f $with_fink_prefix/bin/init.sh; then
6587 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6588 source $with_fink_prefix/bin/init.sh
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6591 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6597 #Append to the default flags on Apple machines
6598 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6599 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6604 # Check whether --with-min_macosx_version was given.
6605 if test "${with_min_macosx_version+set}" = set; then :
6606 withval=$with_min_macosx_version;
6611 if test -n "$with_min_macosx_version"; then
6612 MIN_MACOSX_VERSION=$with_min_macosx_version
6613 #Append to the default flags on Apple machines
6614 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6615 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6616 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6617 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6618 # We need this to be passed to all linker commands
6619 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6625 #####################################################
6626 ## Look for pkg-config
6627 #####################################################
6630 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6631 if test -n "$ac_tool_prefix"; then
6632 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6633 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6635 $as_echo_n "checking for $ac_word... " >&6; }
6636 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6637 $as_echo_n "(cached) " >&6
6641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6663 if test -n "$PKG_CONFIG"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6665 $as_echo "$PKG_CONFIG" >&6; }
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6673 if test -z "$ac_cv_path_PKG_CONFIG"; then
6674 ac_pt_PKG_CONFIG=$PKG_CONFIG
6675 # Extract the first word of "pkg-config", so it can be a program name with args.
6676 set dummy pkg-config; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 case $ac_pt_PKG_CONFIG in
6684 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6706 if test -n "$ac_pt_PKG_CONFIG"; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6708 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6714 if test "x$ac_pt_PKG_CONFIG" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6723 PKG_CONFIG=$ac_pt_PKG_CONFIG
6726 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6730 if test -n "$PKG_CONFIG"; then
6731 _pkg_min_version=0.9.0
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6733 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6734 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6736 $as_echo "yes" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6745 #####################################################
6746 ## check if options are correct (or not)
6747 #####################################################
6749 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6750 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6753 ######## fortran ########
6755 if test "$with_gfortran" = yes; then
6757 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6758 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6760 if test -n "$ac_tool_prefix"; then
6761 for ac_prog in gfortran
6763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if ${ac_cv_prog_F77+:} false; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$F77"; then
6771 ac_cv_prog_F77="$F77" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6780 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 if test -n "$F77"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6793 $as_echo "$F77" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6800 test -n "$F77" && break
6803 if test -z "$F77"; then
6805 for ac_prog in gfortran
6807 # Extract the first word of "$ac_prog", so it can be a program name with args.
6808 set dummy $ac_prog; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$ac_ct_F77"; then
6815 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_F77="$ac_prog"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6835 if test -n "$ac_ct_F77"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6837 $as_echo "$ac_ct_F77" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6844 test -n "$ac_ct_F77" && break
6847 if test "x$ac_ct_F77" = x; then
6850 case $cross_compiling:$ac_tool_warned in
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6854 ac_tool_warned=yes ;;
6861 # Provide some information about the compiler.
6862 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6865 for ac_option in --version -v -V -qversion; do
6866 { { ac_try="$ac_compiler $ac_option >&5"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6872 $as_echo "$ac_try_echo"; } >&5
6873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6875 if test -s conftest.err; then
6877 ... rest of stderr output deleted ...
6878 10q' conftest.err >conftest.er1
6879 cat conftest.er1 >&5
6881 rm -f conftest.er1 conftest.err
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }
6887 # If we don't use `.F' as extension, the preprocessor is not run on the
6888 # input file. (Note that this only needs to work for GNU compilers.)
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6892 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6893 if ${ac_cv_f77_compiler_gnu+:} false; then :
6894 $as_echo_n "(cached) " >&6
6896 cat > conftest.$ac_ext <<_ACEOF
6904 if ac_fn_f77_try_compile "$LINENO"; then :
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6914 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6916 ac_test_FFLAGS=${FFLAGS+set}
6917 ac_save_FFLAGS=$FFLAGS
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6920 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6921 if ${ac_cv_prog_f77_g+:} false; then :
6922 $as_echo_n "(cached) " >&6
6925 cat > conftest.$ac_ext <<_ACEOF
6930 if ac_fn_f77_try_compile "$LINENO"; then :
6931 ac_cv_prog_f77_g=yes
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6939 $as_echo "$ac_cv_prog_f77_g" >&6; }
6940 if test "$ac_test_FFLAGS" = set; then
6941 FFLAGS=$ac_save_FFLAGS
6942 elif test $ac_cv_prog_f77_g = yes; then
6943 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6949 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6956 if test $ac_compiler_gnu = yes; then
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6967 if test -z "$F77"; then
6968 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6972 if test "$with_intelcompilers" = yes; then
6974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6977 if test -n "$ac_tool_prefix"; then
6978 for ac_prog in ifc ifort
6980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_F77+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$F77"; then
6988 ac_cv_prog_F77="$F77" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 if test -n "$F77"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7010 $as_echo "$F77" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7017 test -n "$F77" && break
7020 if test -z "$F77"; then
7022 for ac_prog in ifc ifort
7024 # Extract the first word of "$ac_prog", so it can be a program name with args.
7025 set dummy $ac_prog; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7029 $as_echo_n "(cached) " >&6
7031 if test -n "$ac_ct_F77"; then
7032 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041 ac_cv_prog_ac_ct_F77="$ac_prog"
7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7052 if test -n "$ac_ct_F77"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7054 $as_echo "$ac_ct_F77" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7061 test -n "$ac_ct_F77" && break
7064 if test "x$ac_ct_F77" = x; then
7067 case $cross_compiling:$ac_tool_warned in
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7078 # Provide some information about the compiler.
7079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7082 for ac_option in --version -v -V -qversion; do
7083 { { ac_try="$ac_compiler $ac_option >&5"
7085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7089 $as_echo "$ac_try_echo"; } >&5
7090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7092 if test -s conftest.err; then
7094 ... rest of stderr output deleted ...
7095 10q' conftest.err >conftest.er1
7096 cat conftest.er1 >&5
7098 rm -f conftest.er1 conftest.err
7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7100 test $ac_status = 0; }
7104 # If we don't use `.F' as extension, the preprocessor is not run on the
7105 # input file. (Note that this only needs to work for GNU compilers.)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7109 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7110 if ${ac_cv_f77_compiler_gnu+:} false; then :
7111 $as_echo_n "(cached) " >&6
7113 cat > conftest.$ac_ext <<_ACEOF
7121 if ac_fn_f77_try_compile "$LINENO"; then :
7126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7127 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7131 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7133 ac_test_FFLAGS=${FFLAGS+set}
7134 ac_save_FFLAGS=$FFLAGS
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7137 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7138 if ${ac_cv_prog_f77_g+:} false; then :
7139 $as_echo_n "(cached) " >&6
7142 cat > conftest.$ac_ext <<_ACEOF
7147 if ac_fn_f77_try_compile "$LINENO"; then :
7148 ac_cv_prog_f77_g=yes
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7156 $as_echo "$ac_cv_prog_f77_g" >&6; }
7157 if test "$ac_test_FFLAGS" = set; then
7158 FFLAGS=$ac_save_FFLAGS
7159 elif test $ac_cv_prog_f77_g = yes; then
7160 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7166 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7173 if test $ac_compiler_gnu = yes; then
7179 ac_cpp='$CPP $CPPFLAGS'
7180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184 if test -z "$F77"; then
7185 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7189 if test -z "$F77"; then
7190 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7192 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7193 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7194 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7195 if test -n "$ac_tool_prefix"; then
7196 for ac_prog in gfortran ifc ifort
7198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_F77+:} false; then :
7203 $as_echo_n "(cached) " >&6
7205 if test -n "$F77"; then
7206 ac_cv_prog_F77="$F77" # Let the user override the test.
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 if test -n "$F77"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7228 $as_echo "$F77" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7235 test -n "$F77" && break
7238 if test -z "$F77"; then
7240 for ac_prog in gfortran ifc ifort
7242 # Extract the first word of "$ac_prog", so it can be a program name with args.
7243 set dummy $ac_prog; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$ac_ct_F77"; then
7250 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_F77="$ac_prog"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7270 if test -n "$ac_ct_F77"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7272 $as_echo "$ac_ct_F77" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7279 test -n "$ac_ct_F77" && break
7282 if test "x$ac_ct_F77" = x; then
7285 case $cross_compiling:$ac_tool_warned in
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7296 # Provide some information about the compiler.
7297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7300 for ac_option in --version -v -V -qversion; do
7301 { { ac_try="$ac_compiler $ac_option >&5"
7303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7304 *) ac_try_echo=$ac_try;;
7306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7307 $as_echo "$ac_try_echo"; } >&5
7308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7310 if test -s conftest.err; then
7312 ... rest of stderr output deleted ...
7313 10q' conftest.err >conftest.er1
7314 cat conftest.er1 >&5
7316 rm -f conftest.er1 conftest.err
7317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318 test $ac_status = 0; }
7322 # If we don't use `.F' as extension, the preprocessor is not run on the
7323 # input file. (Note that this only needs to work for GNU compilers.)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7327 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7328 if ${ac_cv_f77_compiler_gnu+:} false; then :
7329 $as_echo_n "(cached) " >&6
7331 cat > conftest.$ac_ext <<_ACEOF
7339 if ac_fn_f77_try_compile "$LINENO"; then :
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7349 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7351 ac_test_FFLAGS=${FFLAGS+set}
7352 ac_save_FFLAGS=$FFLAGS
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7355 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7356 if ${ac_cv_prog_f77_g+:} false; then :
7357 $as_echo_n "(cached) " >&6
7360 cat > conftest.$ac_ext <<_ACEOF
7365 if ac_fn_f77_try_compile "$LINENO"; then :
7366 ac_cv_prog_f77_g=yes
7370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7374 $as_echo "$ac_cv_prog_f77_g" >&6; }
7375 if test "$ac_test_FFLAGS" = set; then
7376 FFLAGS=$ac_save_FFLAGS
7377 elif test $ac_cv_prog_f77_g = yes; then
7378 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7384 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7391 if test $ac_compiler_gnu = yes; then
7397 ac_cpp='$CPP $CPPFLAGS'
7398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7402 if test -z "$F77"; then
7403 # Best effort to find a compiler (might be g77)
7405 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7406 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7408 if test -n "$ac_tool_prefix"; then
7409 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
7411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414 $as_echo_n "checking for $ac_word... " >&6; }
7415 if ${ac_cv_prog_F77+:} false; then :
7416 $as_echo_n "(cached) " >&6
7418 if test -n "$F77"; then
7419 ac_cv_prog_F77="$F77" # Let the user override the test.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 test -z "$as_dir" && as_dir=.
7426 for ac_exec_ext in '' $ac_executable_extensions; do
7427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7428 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 if test -n "$F77"; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7441 $as_echo "$F77" >&6; }
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7448 test -n "$F77" && break
7451 if test -z "$F77"; then
7453 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
7455 # Extract the first word of "$ac_prog", so it can be a program name with args.
7456 set dummy $ac_prog; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7460 $as_echo_n "(cached) " >&6
7462 if test -n "$ac_ct_F77"; then
7463 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_F77="$ac_prog"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7483 if test -n "$ac_ct_F77"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7485 $as_echo "$ac_ct_F77" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7492 test -n "$ac_ct_F77" && break
7495 if test "x$ac_ct_F77" = x; then
7498 case $cross_compiling:$ac_tool_warned in
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7509 # Provide some information about the compiler.
7510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7513 for ac_option in --version -v -V -qversion; do
7514 { { ac_try="$ac_compiler $ac_option >&5"
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7520 $as_echo "$ac_try_echo"; } >&5
7521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7523 if test -s conftest.err; then
7525 ... rest of stderr output deleted ...
7526 10q' conftest.err >conftest.er1
7527 cat conftest.er1 >&5
7529 rm -f conftest.er1 conftest.err
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }
7535 # If we don't use `.F' as extension, the preprocessor is not run on the
7536 # input file. (Note that this only needs to work for GNU compilers.)
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7540 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7541 if ${ac_cv_f77_compiler_gnu+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 cat > conftest.$ac_ext <<_ACEOF
7552 if ac_fn_f77_try_compile "$LINENO"; then :
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7562 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7564 ac_test_FFLAGS=${FFLAGS+set}
7565 ac_save_FFLAGS=$FFLAGS
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7568 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7569 if ${ac_cv_prog_f77_g+:} false; then :
7570 $as_echo_n "(cached) " >&6
7573 cat > conftest.$ac_ext <<_ACEOF
7578 if ac_fn_f77_try_compile "$LINENO"; then :
7579 ac_cv_prog_f77_g=yes
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7587 $as_echo "$ac_cv_prog_f77_g" >&6; }
7588 if test "$ac_test_FFLAGS" = set; then
7589 FFLAGS=$ac_save_FFLAGS
7590 elif test $ac_cv_prog_f77_g = yes; then
7591 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7597 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7604 if test $ac_compiler_gnu = yes; then
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 # case statements were introduced in fortran 90 so we can use that
7620 # as a test to see if our compiler is fortran 90 compatible.
7622 if test -z "$F77"; then
7623 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7627 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7635 cat > conftest.$ac_ext <<_ACEOF
7641 print*, "case is 1, i is ", i
7643 print*, "case is 2 to 3, i is ", i
7645 print*, "default case, i is ", i
7651 if ac_fn_f77_try_compile "$LINENO"; then :
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7653 $as_echo "yes" >&6; }
7655 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7672 ############ C ###############
7675 if test "$with_gcc" = yes; then
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_CC+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 if test -n "$CC"; then
7692 ac_cv_prog_CC="$CC" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 if test -n "$CC"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7714 $as_echo "$CC" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7721 test -n "$CC" && break
7724 if test -z "$CC"; then
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy $ac_prog; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$ac_ct_CC"; then
7736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_CC="$ac_prog"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7756 if test -n "$ac_ct_CC"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7758 $as_echo "$ac_ct_CC" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7765 test -n "$ac_ct_CC" && break
7768 if test "x$ac_ct_CC" = x; then
7771 case $cross_compiling:$ac_tool_warned in
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7782 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7784 as_fn_error $? "no acceptable C compiler found in \$PATH
7785 See \`config.log' for more details" "$LINENO" 5; }
7787 # Provide some information about the compiler.
7788 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7791 for ac_option in --version -v -V -qversion; do
7792 { { ac_try="$ac_compiler $ac_option >&5"
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7798 $as_echo "$ac_try_echo"; } >&5
7799 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7801 if test -s conftest.err; then
7803 ... rest of stderr output deleted ...
7804 10q' conftest.err >conftest.er1
7805 cat conftest.er1 >&5
7807 rm -f conftest.er1 conftest.err
7808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; }
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7813 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7814 if ${ac_cv_c_compiler_gnu+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7831 if ac_fn_c_try_compile "$LINENO"; then :
7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7841 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7842 if test $ac_compiler_gnu = yes; then
7847 ac_test_CFLAGS=${CFLAGS+set}
7848 ac_save_CFLAGS=$CFLAGS
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7850 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7851 if ${ac_cv_prog_cc_g+:} false; then :
7852 $as_echo_n "(cached) " >&6
7854 ac_save_c_werror_flag=$ac_c_werror_flag
7855 ac_c_werror_flag=yes
7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859 /* end confdefs.h. */
7869 if ac_fn_c_try_compile "$LINENO"; then :
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7884 if ac_fn_c_try_compile "$LINENO"; then :
7887 ac_c_werror_flag=$ac_save_c_werror_flag
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7900 if ac_fn_c_try_compile "$LINENO"; then :
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 ac_c_werror_flag=$ac_save_c_werror_flag
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7911 $as_echo "$ac_cv_prog_cc_g" >&6; }
7912 if test "$ac_test_CFLAGS" = set; then
7913 CFLAGS=$ac_save_CFLAGS
7914 elif test $ac_cv_prog_cc_g = yes; then
7915 if test "$GCC" = yes; then
7921 if test "$GCC" = yes; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7928 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7929 if ${ac_cv_prog_cc_c89+:} false; then :
7930 $as_echo_n "(cached) " >&6
7932 ac_cv_prog_cc_c89=no
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935 /* end confdefs.h. */
7939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7940 struct buf { int x; };
7941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7942 static char *e (p, i)
7948 static char *f (char * (*g) (char **, int), char **p, ...)
7953 s = g (p, va_arg (v,int));
7958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7959 function prototypes and stuff, but not '\xHH' hex character constants.
7960 These don't provoke an error unfortunately, instead are silently treated
7961 as 'x'. The following induces an error, until -std is added to get
7962 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7963 array size at least. It's necessary to write '\x00'==0 to get something
7964 that's true only with -std. */
7965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7968 inside strings and character constants. */
7970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7972 int test (int i, double x);
7973 struct s1 {int (*f) (int a);};
7974 struct s2 {int (*f) (double a);};
7975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7981 return f (e, argv, 0) != argv[0] || f (e, argv, 1)