2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugzilla.scilab.org/ about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='Scilab'
593 PACKAGE_TARNAME='scilab'
595 PACKAGE_STRING='Scilab 5'
596 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
643 USE_STATIC_SYSTEM_LIB_FALSE
644 USE_STATIC_SYSTEM_LIB_TRUE
668 COMPILATION_TESTS_FALSE
669 COMPILATION_TESTS_TRUE
674 INSTALL_HELP_XML_FALSE
675 INSTALL_HELP_XML_TRUE
716 GENERATE_LOCALIZATION_FILES_FALSE
717 GENERATE_LOCALIZATION_FILES_TRUE
750 XGETTEXT_EXTRA_OPTIONS
758 GETTEXT_MACRO_VERSION
779 SWIG_RUNTIME_LIBS_DIR
803 FREEHEP_GRAPHICSIO_EMF
838 EXTERNAL_SCIRENDERER_FALSE
839 EXTERNAL_SCIRENDERER_TRUE
849 IS_MIPS_SGI_IRIX_FALSE
850 IS_MIPS_SGI_IRIX_TRUE
903 MAINTAINER_MODE_FALSE
906 RELOCATABLE_VIA_LD_FALSE
907 RELOCATABLE_VIA_LD_TRUE
934 INSTALL_STRIP_PROGRAM
937 SCILAB_BINARY_VERSION
938 SCILAB_LIBRARY_VERSION
939 SCILAB_VERSION_MAINTENANCE
969 program_transform_name
982 enable_option_checking
987 enable_maintainer_mode
988 enable_dependency_tracking
997 enable_stop_on_warning
1003 enable_compilation_tests
1008 with_min_macosx_version
1011 with_external_scirenderer
1018 with_libiconv_prefix
1026 enable_build_localization
1032 with_umfpack_library
1033 with_umfpack_include
1046 with_install_help_xml
1047 enable_build_doxygen
1048 enable_force_full_link
1056 enable_static_system_lib
1058 ac_precious_vars='build_alias
1083 # Initialize some variables set by options.
1085 ac_init_version=false
1086 ac_unrecognized_opts=
1087 ac_unrecognized_sep=
1088 # The variables have the same names as the options, with
1089 # dashes changed to underlines.
1090 cache_file=/dev/null
1097 program_transform_name=s,x,x,
1105 # Installation directory options.
1106 # These are left unexpanded so users can "make install exec_prefix=/foo"
1107 # and all the variables that are supposed to be based on exec_prefix
1108 # by default will actually change.
1109 # Use braces instead of parens because sh, perl, etc. also accept them.
1110 # (The list follows the same order as the GNU Coding Standards.)
1111 bindir='${exec_prefix}/bin'
1112 sbindir='${exec_prefix}/sbin'
1113 libexecdir='${exec_prefix}/libexec'
1114 datarootdir='${prefix}/share'
1115 datadir='${datarootdir}'
1116 sysconfdir='${prefix}/etc'
1117 sharedstatedir='${prefix}/com'
1118 localstatedir='${prefix}/var'
1119 includedir='${prefix}/include'
1120 oldincludedir='/usr/include'
1121 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1122 infodir='${datarootdir}/info'
1127 libdir='${exec_prefix}/lib'
1128 localedir='${datarootdir}/locale'
1129 mandir='${datarootdir}/man'
1135 # If the previous option needs an argument, assign it.
1136 if test -n "$ac_prev"; then
1137 eval $ac_prev=\$ac_option
1143 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1148 # Accept the important Cygnus configure options, so we can diagnose typos.
1150 case $ac_dashdash$ac_option in
1154 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1156 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1157 bindir=$ac_optarg ;;
1159 -build | --build | --buil | --bui | --bu)
1160 ac_prev=build_alias ;;
1161 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1162 build_alias=$ac_optarg ;;
1164 -cache-file | --cache-file | --cache-fil | --cache-fi \
1165 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1166 ac_prev=cache_file ;;
1167 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1168 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1169 cache_file=$ac_optarg ;;
1171 --config-cache | -C)
1172 cache_file=config.cache ;;
1174 -datadir | --datadir | --datadi | --datad)
1176 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1177 datadir=$ac_optarg ;;
1179 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1180 | --dataroo | --dataro | --datar)
1181 ac_prev=datarootdir ;;
1182 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1183 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1184 datarootdir=$ac_optarg ;;
1186 -disable-* | --disable-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid feature name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "enable_$ac_useropt"
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1200 eval enable_$ac_useropt=no ;;
1202 -docdir | --docdir | --docdi | --doc | --do)
1204 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1205 docdir=$ac_optarg ;;
1207 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1209 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1210 dvidir=$ac_optarg ;;
1212 -enable-* | --enable-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid feature name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "enable_$ac_useropt"
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval enable_$ac_useropt=\$ac_optarg ;;
1228 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1229 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1230 | --exec | --exe | --ex)
1231 ac_prev=exec_prefix ;;
1232 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1233 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1234 | --exec=* | --exe=* | --ex=*)
1235 exec_prefix=$ac_optarg ;;
1237 -gas | --gas | --ga | --g)
1238 # Obsolete; use --with-gas.
1241 -help | --help | --hel | --he | -h)
1242 ac_init_help=long ;;
1243 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1244 ac_init_help=recursive ;;
1245 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1246 ac_init_help=short ;;
1248 -host | --host | --hos | --ho)
1249 ac_prev=host_alias ;;
1250 -host=* | --host=* | --hos=* | --ho=*)
1251 host_alias=$ac_optarg ;;
1253 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1255 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1257 htmldir=$ac_optarg ;;
1259 -includedir | --includedir | --includedi | --included | --include \
1260 | --includ | --inclu | --incl | --inc)
1261 ac_prev=includedir ;;
1262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1263 | --includ=* | --inclu=* | --incl=* | --inc=*)
1264 includedir=$ac_optarg ;;
1266 -infodir | --infodir | --infodi | --infod | --info | --inf)
1268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1269 infodir=$ac_optarg ;;
1271 -libdir | --libdir | --libdi | --libd)
1273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1274 libdir=$ac_optarg ;;
1276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1277 | --libexe | --libex | --libe)
1278 ac_prev=libexecdir ;;
1279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1280 | --libexe=* | --libex=* | --libe=*)
1281 libexecdir=$ac_optarg ;;
1283 -localedir | --localedir | --localedi | --localed | --locale)
1284 ac_prev=localedir ;;
1285 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1286 localedir=$ac_optarg ;;
1288 -localstatedir | --localstatedir | --localstatedi | --localstated \
1289 | --localstate | --localstat | --localsta | --localst | --locals)
1290 ac_prev=localstatedir ;;
1291 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1292 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1293 localstatedir=$ac_optarg ;;
1295 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1297 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1298 mandir=$ac_optarg ;;
1300 -nfp | --nfp | --nf)
1301 # Obsolete; use --without-fp.
1304 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1305 | --no-cr | --no-c | -n)
1308 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1309 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1312 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1313 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1314 | --oldin | --oldi | --old | --ol | --o)
1315 ac_prev=oldincludedir ;;
1316 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1317 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1318 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1319 oldincludedir=$ac_optarg ;;
1321 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1323 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1324 prefix=$ac_optarg ;;
1326 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1327 | --program-pre | --program-pr | --program-p)
1328 ac_prev=program_prefix ;;
1329 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1330 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1331 program_prefix=$ac_optarg ;;
1333 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1334 | --program-suf | --program-su | --program-s)
1335 ac_prev=program_suffix ;;
1336 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1337 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1338 program_suffix=$ac_optarg ;;
1340 -program-transform-name | --program-transform-name \
1341 | --program-transform-nam | --program-transform-na \
1342 | --program-transform-n | --program-transform- \
1343 | --program-transform | --program-transfor \
1344 | --program-transfo | --program-transf \
1345 | --program-trans | --program-tran \
1346 | --progr-tra | --program-tr | --program-t)
1347 ac_prev=program_transform_name ;;
1348 -program-transform-name=* | --program-transform-name=* \
1349 | --program-transform-nam=* | --program-transform-na=* \
1350 | --program-transform-n=* | --program-transform-=* \
1351 | --program-transform=* | --program-transfor=* \
1352 | --program-transfo=* | --program-transf=* \
1353 | --program-trans=* | --program-tran=* \
1354 | --progr-tra=* | --program-tr=* | --program-t=*)
1355 program_transform_name=$ac_optarg ;;
1357 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1359 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1360 pdfdir=$ac_optarg ;;
1362 -psdir | --psdir | --psdi | --psd | --ps)
1364 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1368 | -silent | --silent | --silen | --sile | --sil)
1371 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1373 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1375 sbindir=$ac_optarg ;;
1377 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1378 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1379 | --sharedst | --shareds | --shared | --share | --shar \
1381 ac_prev=sharedstatedir ;;
1382 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1383 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1384 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1386 sharedstatedir=$ac_optarg ;;
1388 -site | --site | --sit)
1390 -site=* | --site=* | --sit=*)
1393 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1395 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1396 srcdir=$ac_optarg ;;
1398 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1399 | --syscon | --sysco | --sysc | --sys | --sy)
1400 ac_prev=sysconfdir ;;
1401 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1402 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1403 sysconfdir=$ac_optarg ;;
1405 -target | --target | --targe | --targ | --tar | --ta | --t)
1406 ac_prev=target_alias ;;
1407 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1408 target_alias=$ac_optarg ;;
1410 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1413 -version | --version | --versio | --versi | --vers | -V)
1414 ac_init_version=: ;;
1417 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1420 as_fn_error $? "invalid package name: $ac_useropt"
1421 ac_useropt_orig=$ac_useropt
1422 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1423 case $ac_user_opts in
1427 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1428 ac_unrecognized_sep=', ';;
1430 eval with_$ac_useropt=\$ac_optarg ;;
1432 -without-* | --without-*)
1433 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1434 # Reject names that are not valid shell variable names.
1435 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1436 as_fn_error $? "invalid package name: $ac_useropt"
1437 ac_useropt_orig=$ac_useropt
1438 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439 case $ac_user_opts in
1443 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1444 ac_unrecognized_sep=', ';;
1446 eval with_$ac_useropt=no ;;
1449 # Obsolete; use --with-x.
1452 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1453 | --x-incl | --x-inc | --x-in | --x-i)
1454 ac_prev=x_includes ;;
1455 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1456 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1457 x_includes=$ac_optarg ;;
1459 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1460 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1461 ac_prev=x_libraries ;;
1462 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1463 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1464 x_libraries=$ac_optarg ;;
1466 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1467 Try \`$0 --help' for more information"
1471 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1472 # Reject names that are not valid shell variable names.
1473 case $ac_envvar in #(
1474 '' | [0-9]* | *[!_$as_cr_alnum]* )
1475 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1477 eval $ac_envvar=\$ac_optarg
1478 export $ac_envvar ;;
1481 # FIXME: should be removed in autoconf 3.0.
1482 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1483 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1484 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1485 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1491 if test -n "$ac_prev"; then
1492 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1493 as_fn_error $? "missing argument to $ac_option"
1496 if test -n "$ac_unrecognized_opts"; then
1497 case $enable_option_checking in
1499 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1500 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1504 # Check all directory arguments for consistency.
1505 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1506 datadir sysconfdir sharedstatedir localstatedir includedir \
1507 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1508 libdir localedir mandir
1510 eval ac_val=\$$ac_var
1511 # Remove trailing slashes.
1514 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1515 eval $ac_var=\$ac_val;;
1517 # Be sure to have absolute directory names.
1519 [\\/$]* | ?:[\\/]* ) continue;;
1520 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1522 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1525 # There might be people who depend on the old broken behavior: `$host'
1526 # used to hold the argument of --host etc.
1527 # FIXME: To remove some day.
1530 target=$target_alias
1532 # FIXME: To remove some day.
1533 if test "x$host_alias" != x; then
1534 if test "x$build_alias" = x; then
1535 cross_compiling=maybe
1536 elif test "x$build_alias" != "x$host_alias"; then
1542 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1544 test "$silent" = yes && exec 6>/dev/null
1547 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1548 ac_ls_di=`ls -di .` &&
1549 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1550 as_fn_error $? "working directory cannot be determined"
1551 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1552 as_fn_error $? "pwd does not report name of working directory"
1555 # Find the source files, if location was not specified.
1556 if test -z "$srcdir"; then
1557 ac_srcdir_defaulted=yes
1558 # Try the directory containing this script, then the parent directory.
1559 ac_confdir=`$as_dirname -- "$as_myself" ||
1560 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1561 X"$as_myself" : 'X\(//\)[^/]' \| \
1562 X"$as_myself" : 'X\(//\)$' \| \
1563 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1564 $as_echo X"$as_myself" |
1565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1583 if test ! -r "$srcdir/$ac_unique_file"; then
1587 ac_srcdir_defaulted=no
1589 if test ! -r "$srcdir/$ac_unique_file"; then
1590 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1591 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1593 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1595 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1597 # When building in place, set srcdir=.
1598 if test "$ac_abs_confdir" = "$ac_pwd"; then
1601 # Remove unnecessary trailing slashes from srcdir.
1602 # Double slashes in file names in object file debugging info
1603 # mess up M-x gdb in Emacs.
1605 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1609 eval ac_env_${ac_var}_value=\$${ac_var}
1610 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1611 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1615 # Report the --help message.
1617 if test "$ac_init_help" = "long"; then
1618 # Omit some internal or obsolete options to make the list less imposing.
1619 # This message is too long to be a string in the A/UX 3.1 sh.
1621 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1623 Usage: $0 [OPTION]... [VAR=VALUE]...
1625 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1626 VAR=VALUE. See below for descriptions of some of the useful variables.
1628 Defaults for the options are specified in brackets.
1631 -h, --help display this help and exit
1632 --help=short display options specific to this package
1633 --help=recursive display the short help of all the included packages
1634 -V, --version display version information and exit
1635 -q, --quiet, --silent do not print \`checking ...' messages
1636 --cache-file=FILE cache test results in FILE [disabled]
1637 -C, --config-cache alias for \`--cache-file=config.cache'
1638 -n, --no-create do not create output files
1639 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1641 Installation directories:
1642 --prefix=PREFIX install architecture-independent files in PREFIX
1643 [$ac_default_prefix]
1644 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1647 By default, \`make install' will install all the files in
1648 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1649 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1650 for instance \`--prefix=\$HOME'.
1652 For better control, use the options below.
1654 Fine tuning of the installation directories:
1655 --bindir=DIR user executables [EPREFIX/bin]
1656 --sbindir=DIR system admin executables [EPREFIX/sbin]
1657 --libexecdir=DIR program executables [EPREFIX/libexec]
1658 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1659 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1660 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1661 --libdir=DIR object code libraries [EPREFIX/lib]
1662 --includedir=DIR C header files [PREFIX/include]
1663 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1664 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1665 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1666 --infodir=DIR info documentation [DATAROOTDIR/info]
1667 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1668 --mandir=DIR man documentation [DATAROOTDIR/man]
1669 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1670 --htmldir=DIR html documentation [DOCDIR]
1671 --dvidir=DIR dvi documentation [DOCDIR]
1672 --pdfdir=DIR pdf documentation [DOCDIR]
1673 --psdir=DIR ps documentation [DOCDIR]
1679 --program-prefix=PREFIX prepend PREFIX to installed program names
1680 --program-suffix=SUFFIX append SUFFIX to installed program names
1681 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1684 --x-includes=DIR X include files are in DIR
1685 --x-libraries=DIR X library files are in DIR
1688 --build=BUILD configure for building on BUILD [guessed]
1689 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1693 if test -n "$ac_init_help"; then
1694 case $ac_init_help in
1695 short | recursive ) echo "Configuration of Scilab 5:";;
1700 --disable-option-checking ignore unrecognized --enable/--with options
1701 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1702 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1703 --disable-largefile omit support for large files
1704 --enable-relocatable install a package that can be moved in the filesystem
1705 --disable-rpath do not hardcode runtime library paths
1706 --enable-maintainer-mode
1707 enable make rules and dependencies not useful (and
1708 sometimes confusing) to the casual installer
1709 --enable-dependency-tracking
1710 do not reject slow dependency extractors
1711 --disable-dependency-tracking
1712 speeds up one-time build
1713 --enable-silent-rules less verbose build output (undo: "make V=1")
1714 --disable-silent-rules verbose build output (undo: "make V=0")
1715 --enable-debug Do not optimize and print warning messages
1716 (C/C++/Fortran/Java code)
1717 --enable-debug-C Do not optimize and print warning messages (C code)
1718 --enable-debug-CXX Do not optimize and print warning messages (C++
1720 --enable-debug-java Print warning messages and line numbers (Java code)
1721 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1723 --enable-debug-linker Print warning messages from the linker (ld)
1724 --enable-code-coverage Enable code coverage
1725 --enable-stop-on-warning
1726 Stop the compilation on the first warning found in
1728 --enable-compilation-tests
1729 Enable unitary tests and checks at compilation time
1730 --enable-build-swig=path
1731 Regenerate Java => C and Scilab => C wrappers
1733 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1734 --disable-nls do not use Native Language Support
1735 --disable-build-localization
1736 Disable the localization build
1738 --disable-build-help Disable the help build
1740 --enable-build-doxygen Generate doxygen C/C++ documentation
1741 --enable-force-full-link
1742 Forces the explicit link between libscilab and some
1743 "on-the-fly" loaded libraries. NOT USE IN
1745 --enable-static[=PKGS] build static libraries [default=no]
1746 --enable-shared[=PKGS] build shared libraries [default=yes]
1747 --enable-fast-install[=PKGS]
1748 optimize for fast installation [default=yes]
1749 --disable-libtool-lock avoid locking (might break parallel builds)
1750 --disable-ccache Disable the use of ccache
1752 --disable-static-system-lib
1753 Disable the usage of the static stdc++ and libgcc
1757 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1758 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1759 --with-gnu-ld assume the C compiler uses GNU ld default=no
1760 --with-gcc Use gcc C compiler
1761 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1762 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1763 compilers (GNU/Linux only)
1764 --without-tk Disable the interface to Tcl/Tk
1765 --without-javasci Disable the Java/Scilab interface (javasci)
1766 --without-gui Disable the Scilab Graphical User Interface (GUI).
1767 Intended for embedded/clustering/grid Scilab
1768 --with-fink-prefix Provide a fink prefix. Default: /sw/
1769 --with-min-macosx-version
1770 Force compilers to generate binaries compatible with
1771 MacOSX minimal version.
1772 --with-hdf5-include=DIR Set the path to the HDF5 headers
1773 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1774 --with-external-scirenderer
1775 Disable the usage of the internal copy of
1776 scirenderer. Intended for packaging of Scilab
1777 --without-xcos Disable Xcos
1778 --without-modelica Disable the OCaml module (modelica)
1779 --with-jdk=DIR use JDK from DIR
1780 --with-ant=DIR Use ant from DIR
1781 --without-emf disable support for EMF (Windows Metafile) export
1782 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1783 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1784 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1785 --without-libintl-prefix don't search for libintl in includedir and libdir
1786 --without-fftw Disable the interface to the FFTW 3 library
1787 --with-fftw-include=DIR Set the path to the FFTW headers
1788 --with-fftw-library=DIR Set the path to the FFTW libraries
1789 --with-mpi compile with MPI library
1790 --without-openmp Disable the usage of OpenMP (parallelization of some
1792 --with-libxml2=PREFIX Set the path to your libxml2 installation
1793 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1795 --with-lapack-library=DIR
1796 set the path to the LAPACK library
1797 --without-arpack-ng Disable the interface to ARPACK-NG
1798 --with-arpack-library=DIR
1799 set the path to the ARPACK library
1800 --without-umfpack Disable the interface to the UMFPACK library
1801 --with-umfpack-library=DIR
1802 Set the path to the UMFPACK libraries
1803 --with-umfpack-include=DIR
1804 Set the path to the UMFPACK headers
1805 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1806 Expression Library) installation
1807 --with-curl=DIR Set the path to your CURL installation
1808 --with-tcl-library=DIR Set the path to the TCL library
1809 --with-tcl-include=DIR Set the path to the TCL headers
1810 --with-tk-library=DIR Set the path to the TK library
1811 --with-tk-include=DIR Set the path to the TK headers
1812 --with-x use the X Window System
1813 --without-matio Disable the interface to Matio (MAT File I/O
1815 --with-matio-include=DIR
1816 Set the path to the MATIO headers
1817 --with-matio-library=DIR
1818 Set the path to the MATIO libraries
1819 --with-docbook=DIR Set the path to the docbook package
1820 --with-install-help-xml make install will install XML files
1822 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1824 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1825 --with-sysroot=DIR Search for dependent libraries within DIR
1826 (or the compiler's sysroot if not specified).
1828 Some influential environment variables:
1829 CC C compiler command
1830 CFLAGS C compiler flags
1831 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1832 nonstandard directory <lib dir>
1833 LIBS libraries to pass to the linker, e.g. -l<library>
1834 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1835 you have headers in a nonstandard directory <include dir>
1837 PKG_CONFIG path to pkg-config utility
1838 F77 Fortran 77 compiler command
1839 FFLAGS Fortran 77 compiler flags
1840 CXX C++ compiler command
1841 CXXFLAGS C++ compiler flags
1842 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1843 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1844 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1845 CURL_LIBS linker flags for CURL, overriding pkg-config
1846 XMKMF Path to xmkmf, Makefile generator for X Window System
1848 C compiler flags for MATIO, overriding pkg-config
1849 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1850 CXXCPP C++ preprocessor
1852 Use these variables to override the choices made by `configure' or to help
1853 it to find libraries and programs with nonstandard names/locations.
1855 Report bugs to <http://bugzilla.scilab.org/>.
1860 if test "$ac_init_help" = "recursive"; then
1861 # If there are subdirs, report their specific --help.
1862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1863 test -d "$ac_dir" ||
1864 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1869 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1872 # A ".." for each directory in $ac_dir_suffix.
1873 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1874 case $ac_top_builddir_sub in
1875 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1876 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1879 ac_abs_top_builddir=$ac_pwd
1880 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1881 # for backward compatibility:
1882 ac_top_builddir=$ac_top_build_prefix
1885 .) # We are building in place.
1887 ac_top_srcdir=$ac_top_builddir_sub
1888 ac_abs_top_srcdir=$ac_pwd ;;
1889 [\\/]* | ?:[\\/]* ) # Absolute name.
1890 ac_srcdir=$srcdir$ac_dir_suffix;
1891 ac_top_srcdir=$srcdir
1892 ac_abs_top_srcdir=$srcdir ;;
1894 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1895 ac_top_srcdir=$ac_top_build_prefix$srcdir
1896 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1898 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1900 cd "$ac_dir" || { ac_status=$?; continue; }
1901 # Check for guested configure.
1902 if test -f "$ac_srcdir/configure.gnu"; then
1904 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1905 elif test -f "$ac_srcdir/configure"; then
1907 $SHELL "$ac_srcdir/configure" --help=recursive
1909 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1911 cd "$ac_pwd" || { ac_status=$?; break; }
1915 test -n "$ac_init_help" && exit $ac_status
1916 if $ac_init_version; then
1919 generated by GNU Autoconf 2.69
1921 Copyright (C) 2012 Free Software Foundation, Inc.
1922 This configure script is free software; the Free Software Foundation
1923 gives unlimited permission to copy, distribute and modify it.
1928 ## ------------------------ ##
1929 ## Autoconf initialization. ##
1930 ## ------------------------ ##
1932 # ac_fn_c_try_compile LINENO
1933 # --------------------------
1934 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 rm -f conftest.$ac_objext
1939 if { { ac_try="$ac_compile"
1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942 *) ac_try_echo=$ac_try;;
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946 (eval "$ac_compile") 2>conftest.err
1948 if test -s conftest.err; then
1949 grep -v '^ *+' conftest.err >conftest.er1
1950 cat conftest.er1 >&5
1951 mv -f conftest.er1 conftest.err
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && {
1955 test -z "$ac_c_werror_flag" ||
1956 test ! -s conftest.err
1957 } && test -s conftest.$ac_objext; then :
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1968 } # ac_fn_c_try_compile
1970 # ac_fn_c_try_cpp LINENO
1971 # ----------------------
1972 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_cpp conftest.$ac_ext"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } > conftest.i && {
1992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1997 $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 as_fn_set_status $ac_retval
2007 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2010 # the include files in INCLUDES and setting the cache variable VAR
2012 ac_fn_c_check_header_mongrel ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 if eval \${$3+:} false; then :
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 # Is the header compilable?
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2027 $as_echo_n "checking $2 usability... " >&6; }
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_header_compiler=yes
2036 ac_header_compiler=no
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2040 $as_echo "$ac_header_compiler" >&6; }
2042 # Is the header present?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2044 $as_echo_n "checking $2 presence... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2049 if ac_fn_c_try_cpp "$LINENO"; then :
2050 ac_header_preproc=yes
2052 ac_header_preproc=no
2054 rm -f conftest.err conftest.i conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2056 $as_echo "$ac_header_preproc" >&6; }
2058 # So? What about this header?
2059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2062 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2064 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2068 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2070 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2072 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2074 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2076 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 ( $as_echo "## ------------------------------------------ ##
2078 ## Report this to http://bugzilla.scilab.org/ ##
2079 ## ------------------------------------------ ##"
2080 ) | sed "s/^/$as_me: WARNING: /" >&2
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086 $as_echo_n "(cached) " >&6
2088 eval "$3=\$ac_header_compiler"
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 } # ac_fn_c_check_header_mongrel
2098 # ac_fn_c_try_run LINENO
2099 # ----------------------
2100 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2101 # that executables *can* be run.
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { { ac_try="$ac_link"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 $as_echo "$ac_try_echo"; } >&5
2112 (eval "$ac_link") 2>&5
2114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2115 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2116 { { case "(($ac_try" in
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_try") 2>&5
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; }; }; then :
2128 $as_echo "$as_me: program exited with status $ac_status" >&5
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2132 ac_retval=$ac_status
2134 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2140 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2141 # -------------------------------------------------------
2142 # Tests whether HEADER exists and can be compiled using the include files in
2143 # INCLUDES, setting the cache variable VAR accordingly.
2144 ac_fn_c_check_header_compile ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2157 if ac_fn_c_try_compile "$LINENO"; then :
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_header_compile
2171 # ac_fn_c_try_link LINENO
2172 # -----------------------
2173 # Try to link conftest.$ac_ext, and return whether this succeeded.
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 rm -f conftest.$ac_objext conftest$ac_exeext
2178 if { { ac_try="$ac_link"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184 $as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>conftest.err
2187 if test -s conftest.err; then
2188 grep -v '^ *+' conftest.err >conftest.er1
2189 cat conftest.er1 >&5
2190 mv -f conftest.er1 conftest.err
2192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2193 test $ac_status = 0; } && {
2194 test -z "$ac_c_werror_flag" ||
2195 test ! -s conftest.err
2196 } && test -s conftest$ac_exeext && {
2197 test "$cross_compiling" = yes ||
2198 test -x conftest$ac_exeext
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2207 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2208 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2209 # interfere with the next link command; also delete a directory that is
2210 # left behind by Apple's compiler. We do this before executing the actions.
2211 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 as_fn_set_status $ac_retval
2215 } # ac_fn_c_try_link
2217 # ac_fn_c_check_func LINENO FUNC VAR
2218 # ----------------------------------
2219 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2220 ac_fn_c_check_func ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2224 $as_echo_n "checking for $2... " >&6; }
2225 if eval \${$3+:} false; then :
2226 $as_echo_n "(cached) " >&6
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2230 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2232 #define $2 innocuous_$2
2234 /* System header to define __stub macros and hopefully few prototypes,
2235 which can conflict with char $2 (); below.
2236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2237 <limits.h> exists even on freestanding compilers. */
2240 # include <limits.h>
2242 # include <assert.h>
2247 /* Override any GCC internal prototype to avoid an error.
2248 Use char because int might match the return type of a GCC
2249 builtin and then its argument prototype would still apply. */
2254 /* The GNU C library defines this for functions which it implements
2255 to always fail with ENOSYS. Some functions are actually named
2256 something starting with __ and the normal name is an alias. */
2257 #if defined __stub_$2 || defined __stub___$2
2269 if ac_fn_c_try_link "$LINENO"; then :
2274 rm -f core conftest.err conftest.$ac_objext \
2275 conftest$ac_exeext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 } # ac_fn_c_check_func
2284 # ac_fn_f77_try_compile LINENO
2285 # ----------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_f77_try_compile ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_f77_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2312 $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2320 } # ac_fn_f77_try_compile
2322 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2323 # --------------------------------------------
2324 # Tries to find the compile-time value of EXPR in a program that includes
2325 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2327 ac_fn_c_compute_int ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 if test "$cross_compiling" = yes; then
2331 # Depending upon the size, compute the lo and hi bounds.
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) >= 0)];
2340 return test_array [0];
2346 if ac_fn_c_try_compile "$LINENO"; then :
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2357 return test_array [0];
2363 if ac_fn_c_try_compile "$LINENO"; then :
2364 ac_hi=$ac_mid; break
2366 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2367 if test $ac_lo -le $ac_mid; then
2371 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) < 0)];
2384 return test_array [0];
2390 if ac_fn_c_try_compile "$LINENO"; then :
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2399 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2401 return test_array [0];
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_lo=$ac_mid; break
2410 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2411 if test $ac_mid -le $ac_hi; then
2415 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 # Binary search between lo and hi bounds.
2426 while test "x$ac_lo" != "x$ac_hi"; do
2427 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2436 return test_array [0];
2442 if ac_fn_c_try_compile "$LINENO"; then :
2445 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2457 static long int longval () { return $2; }
2458 static unsigned long int ulongval () { return $2; }
2465 FILE *f = fopen ("conftest.val", "w");
2470 long int i = longval ();
2473 fprintf (f, "%ld", i);
2477 unsigned long int i = ulongval ();
2480 fprintf (f, "%lu", i);
2482 /* Do not output a trailing newline, as this causes \r\n confusion
2483 on some platforms. */
2484 return ferror (f) || fclose (f) != 0;
2490 if ac_fn_c_try_run "$LINENO"; then :
2491 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2496 conftest.$ac_objext conftest.beam conftest.$ac_ext
2500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2501 as_fn_set_status $ac_retval
2503 } # ac_fn_c_compute_int
2505 # ac_fn_cxx_try_compile LINENO
2506 # ----------------------------
2507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_cxx_try_compile ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 rm -f conftest.$ac_objext
2512 if { { ac_try="$ac_compile"
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 $as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_compile") 2>conftest.err
2521 if test -s conftest.err; then
2522 grep -v '^ *+' conftest.err >conftest.er1
2523 cat conftest.er1 >&5
2524 mv -f conftest.er1 conftest.err
2526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; } && {
2528 test -z "$ac_cxx_werror_flag" ||
2529 test ! -s conftest.err
2530 } && test -s conftest.$ac_objext; then :
2533 $as_echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539 as_fn_set_status $ac_retval
2541 } # ac_fn_cxx_try_compile
2543 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2544 # ----------------------------------------------------
2545 # Tries to find if the field MEMBER exists in type AGGR, after including
2546 # INCLUDES, setting cache variable VAR accordingly.
2547 ac_fn_c_check_member ()
2549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2551 $as_echo_n "checking for $2.$3... " >&6; }
2552 if eval \${$4+:} false; then :
2553 $as_echo_n "(cached) " >&6
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2568 if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2578 if (sizeof ac_aggr.$3)
2584 if ac_fn_c_try_compile "$LINENO"; then :
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 } # ac_fn_c_check_member
2600 # ac_fn_cxx_try_run LINENO
2601 # ------------------------
2602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2603 # that executables *can* be run.
2604 ac_fn_cxx_try_run ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 if { { ac_try="$ac_link"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_link") 2>&5
2616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2617 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2618 { { case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_try") 2>&5
2626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2627 test $ac_status = 0; }; }; then :
2630 $as_echo "$as_me: program exited with status $ac_status" >&5
2631 $as_echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 ac_retval=$ac_status
2636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638 as_fn_set_status $ac_retval
2640 } # ac_fn_cxx_try_run
2642 # ac_fn_cxx_try_cpp LINENO
2643 # ------------------------
2644 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2645 ac_fn_cxx_try_cpp ()
2647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2648 if { { ac_try="$ac_cpp conftest.$ac_ext"
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2654 $as_echo "$ac_try_echo"; } >&5
2655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2657 if test -s conftest.err; then
2658 grep -v '^ *+' conftest.err >conftest.er1
2659 cat conftest.er1 >&5
2660 mv -f conftest.er1 conftest.err
2662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663 test $ac_status = 0; } > conftest.i && {
2664 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2665 test ! -s conftest.err
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675 as_fn_set_status $ac_retval
2677 } # ac_fn_cxx_try_cpp
2679 # ac_fn_cxx_try_link LINENO
2680 # -------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded.
2682 ac_fn_cxx_try_link ()
2684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685 rm -f conftest.$ac_objext conftest$ac_exeext
2686 if { { ac_try="$ac_link"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693 (eval "$ac_link") 2>conftest.err
2695 if test -s conftest.err; then
2696 grep -v '^ *+' conftest.err >conftest.er1
2697 cat conftest.er1 >&5
2698 mv -f conftest.er1 conftest.err
2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701 test $ac_status = 0; } && {
2702 test -z "$ac_cxx_werror_flag" ||
2703 test ! -s conftest.err
2704 } && test -s conftest$ac_exeext && {
2705 test "$cross_compiling" = yes ||
2706 test -x conftest$ac_exeext
2710 $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2717 # interfere with the next link command; also delete a directory that is
2718 # left behind by Apple's compiler. We do this before executing the actions.
2719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721 as_fn_set_status $ac_retval
2723 } # ac_fn_cxx_try_link
2725 # ac_fn_f77_try_link LINENO
2726 # -------------------------
2727 # Try to link conftest.$ac_ext, and return whether this succeeded.
2728 ac_fn_f77_try_link ()
2730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731 rm -f conftest.$ac_objext conftest$ac_exeext
2732 if { { ac_try="$ac_link"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738 $as_echo "$ac_try_echo"; } >&5
2739 (eval "$ac_link") 2>conftest.err
2741 if test -s conftest.err; then
2742 grep -v '^ *+' conftest.err >conftest.er1
2743 cat conftest.er1 >&5
2744 mv -f conftest.er1 conftest.err
2746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2747 test $ac_status = 0; } && {
2748 test -z "$ac_f77_werror_flag" ||
2749 test ! -s conftest.err
2750 } && test -s conftest$ac_exeext && {
2751 test "$cross_compiling" = yes ||
2752 test -x conftest$ac_exeext
2756 $as_echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2761 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2762 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2763 # interfere with the next link command; also delete a directory that is
2764 # left behind by Apple's compiler. We do this before executing the actions.
2765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2767 as_fn_set_status $ac_retval
2769 } # ac_fn_f77_try_link
2770 cat >config.log <<_ACEOF
2771 This file contains any messages produced by compilers while
2772 running configure, to aid debugging if configure makes a mistake.
2774 It was created by Scilab $as_me 5, which was
2775 generated by GNU Autoconf 2.69. Invocation command line was
2787 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2788 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2789 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2790 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2791 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2793 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2794 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2796 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2797 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2798 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2799 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2800 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2801 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2802 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir=.
2811 $as_echo "PATH: $as_dir"
2827 # Keep a trace of the command line.
2828 # Strip out --no-create and --no-recursion so they do not pile up.
2829 # Strip out --silent because we don't want to record it for future runs.
2830 # Also quote any args containing shell meta-characters.
2831 # Make two passes to allow for proper duplicate-argument suppression.
2835 ac_must_keep_next=false
2841 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2842 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2843 | -silent | --silent | --silen | --sile | --sil)
2846 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2849 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2851 as_fn_append ac_configure_args1 " '$ac_arg'"
2852 if test $ac_must_keep_next = true; then
2853 ac_must_keep_next=false # Got value, back to normal.
2856 *=* | --config-cache | -C | -disable-* | --disable-* \
2857 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2858 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2859 | -with-* | --with-* | -without-* | --without-* | --x)
2860 case "$ac_configure_args0 " in
2861 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2864 -* ) ac_must_keep_next=true ;;
2867 as_fn_append ac_configure_args " '$ac_arg'"
2872 { ac_configure_args0=; unset ac_configure_args0;}
2873 { ac_configure_args1=; unset ac_configure_args1;}
2875 # When interrupted or exit'd, cleanup temporary files, and complete
2876 # config.log. We remove comments because anyway the quotes in there
2877 # would cause problems or look ugly.
2878 # WARNING: Use '\'' to represent an apostrophe within the trap.
2879 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2880 trap 'exit_status=$?
2881 # Save into config.log some information that might help in debugging.
2885 $as_echo "## ---------------- ##
2886 ## Cache variables. ##
2887 ## ---------------- ##"
2889 # The following way of writing the cache mishandles newlines in values,
2891 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2892 eval ac_val=\$$ac_var
2896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2900 _ | IFS | as_nl) ;; #(
2901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2902 *) { eval $ac_var=; unset $ac_var;} ;;
2907 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2908 *${as_nl}ac_space=\ *)
2910 "s/'\''/'\''\\\\'\'''\''/g;
2911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2921 $as_echo "## ----------------- ##
2922 ## Output variables. ##
2923 ## ----------------- ##"
2925 for ac_var in $ac_subst_vars
2927 eval ac_val=\$$ac_var
2929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2931 $as_echo "$ac_var='\''$ac_val'\''"
2935 if test -n "$ac_subst_files"; then
2936 $as_echo "## ------------------- ##
2937 ## File substitutions. ##
2938 ## ------------------- ##"
2940 for ac_var in $ac_subst_files
2942 eval ac_val=\$$ac_var
2944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2946 $as_echo "$ac_var='\''$ac_val'\''"
2951 if test -s confdefs.h; then
2952 $as_echo "## ----------- ##
2959 test "$ac_signal" != 0 &&
2960 $as_echo "$as_me: caught signal $ac_signal"
2961 $as_echo "$as_me: exit $exit_status"
2963 rm -f core *.core core.conftest.* &&
2964 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2967 for ac_signal in 1 2 13 15; do
2968 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2972 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2973 rm -f -r conftest* confdefs.h
2975 $as_echo "/* confdefs.h */" > confdefs.h
2977 # Predefined preprocessor variables.
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_NAME "$PACKAGE_NAME"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_STRING "$PACKAGE_STRING"
2995 cat >>confdefs.h <<_ACEOF
2996 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2999 cat >>confdefs.h <<_ACEOF
3000 #define PACKAGE_URL "$PACKAGE_URL"
3004 # Let the site file select an alternate cache file if it wants to.
3005 # Prefer an explicitly selected file to automatically selected ones.
3008 if test -n "$CONFIG_SITE"; then
3009 # We do not want a PATH search for config.site.
3010 case $CONFIG_SITE in #((
3011 -*) ac_site_file1=./$CONFIG_SITE;;
3012 */*) ac_site_file1=$CONFIG_SITE;;
3013 *) ac_site_file1=./$CONFIG_SITE;;
3015 elif test "x$prefix" != xNONE; then
3016 ac_site_file1=$prefix/share/config.site
3017 ac_site_file2=$prefix/etc/config.site
3019 ac_site_file1=$ac_default_prefix/share/config.site
3020 ac_site_file2=$ac_default_prefix/etc/config.site
3022 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3024 test "x$ac_site_file" = xNONE && continue
3025 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3027 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3028 sed 's/^/| /' "$ac_site_file" >&5
3030 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error $? "failed to load site script $ac_site_file
3033 See \`config.log' for more details" "$LINENO" 5; }
3037 if test -r "$cache_file"; then
3038 # Some versions of bash will fail to source /dev/null (special files
3039 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3040 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3042 $as_echo "$as_me: loading cache $cache_file" >&6;}
3044 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3045 *) . "./$cache_file";;
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3050 $as_echo "$as_me: creating cache $cache_file" >&6;}
3054 gt_needs="$gt_needs "
3055 # Check that the precious variables saved in the cache have kept the same
3057 ac_cache_corrupted=false
3058 for ac_var in $ac_precious_vars; do
3059 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3060 eval ac_new_set=\$ac_env_${ac_var}_set
3061 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3062 eval ac_new_val=\$ac_env_${ac_var}_value
3063 case $ac_old_set,$ac_new_set in
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3066 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3067 ac_cache_corrupted=: ;;
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3070 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3071 ac_cache_corrupted=: ;;
3074 if test "x$ac_old_val" != "x$ac_new_val"; then
3075 # differences in whitespace do not lead to failure.
3076 ac_old_val_w=`echo x $ac_old_val`
3077 ac_new_val_w=`echo x $ac_new_val`
3078 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3080 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3081 ac_cache_corrupted=:
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3084 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3085 eval $ac_var=\$ac_old_val
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3088 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3090 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3093 # Pass precious variables to config.status.
3094 if test "$ac_new_set" = set; then
3096 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3097 *) ac_arg=$ac_var=$ac_new_val ;;
3099 case " $ac_configure_args " in
3100 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3101 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3105 if $ac_cache_corrupted; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3109 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3110 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3112 ## -------------------- ##
3113 ## Main body of script. ##
3114 ## -------------------- ##
3117 ac_cpp='$CPP $CPPFLAGS'
3118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 SCI_BUILDDIR="`pwd`"
3127 SCI_SRCDIR="$srcdir"
3128 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3130 if test -d "$SCI_SRCDIR_FULL/usr"; then
3132 DEVTOOLS_BINDIR="$SCI_SRCDIR_FULL/usr/bin"
3133 DEVTOOLS_INCDIR="$SCI_SRCDIR_FULL/usr/include"
3134 DEVTOOLS_LIBDIR="$SCI_SRCDIR_FULL/usr/lib"
3142 SCILAB_VERSION_MAJOR=5
3143 SCILAB_VERSION_MINOR=6
3144 SCILAB_VERSION_MAINTENANCE=0
3150 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3153 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3156 #shared library versioning
3157 #GENERIC_LIBRARY_VERSION=1:2:0
3161 # current:revision:age
3163 # | | +- increment if interfaces have been added
3164 # | | set to zero if interfaces have been removed
3166 # | +- increment if source code has changed
3167 # | set to zero if current is incremented
3168 # +- increment if interfaces have been added, removed or changed
3170 # Check if we have a space in the path to the source tree
3171 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3172 if test "$SPACE_IN_PATH" = "0"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3174 $as_echo "$as_me: WARNING: =====================================" >&2;}
3175 { $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
3176 $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;}
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3178 $as_echo "$as_me: WARNING: =====================================" >&2;}
3183 for ac_dir in config "$srcdir"/config; do
3184 if test -f "$ac_dir/install-sh"; then
3186 ac_install_sh="$ac_aux_dir/install-sh -c"
3188 elif test -f "$ac_dir/install.sh"; then
3190 ac_install_sh="$ac_aux_dir/install.sh -c"
3192 elif test -f "$ac_dir/shtool"; then
3194 ac_install_sh="$ac_aux_dir/shtool install -c"
3198 if test -z "$ac_aux_dir"; then
3199 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3202 # These three variables are undocumented and unsupported,
3203 # and are intended to be withdrawn in a future Autoconf release.
3204 # They can cause serious problems if a builder's source tree is in a directory
3205 # whose full name contains unusual characters.
3206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3211 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3215 # expand $ac_aux_dir to an absolute path
3216 am_aux_dir=`cd $ac_aux_dir && pwd`
3218 if test x"${install_sh}" != xset; then
3221 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3223 install_sh="\${SHELL} $am_aux_dir/install-sh"
3227 # Installed binaries are usually stripped using 'strip' when the user
3228 # run "make install-strip". However 'strip' might not be the right
3229 # tool to use in cross-compilation environments, therefore Automake
3230 # will honor the 'STRIP' environment variable to overrule this program.
3231 if test "$cross_compiling" != no; then
3232 if test -n "$ac_tool_prefix"; then
3233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}strip; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_STRIP+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$STRIP"; then
3241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 STRIP=$ac_cv_prog_STRIP
3261 if test -n "$STRIP"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3263 $as_echo "$STRIP" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3271 if test -z "$ac_cv_prog_STRIP"; then
3273 # Extract the first word of "strip", so it can be a program name with args.
3274 set dummy strip; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 if test -n "$ac_ct_STRIP"; then
3281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_ac_ct_STRIP="strip"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3301 if test -n "$ac_ct_STRIP"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3303 $as_echo "$ac_ct_STRIP" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3309 if test "x$ac_ct_STRIP" = x; then
3312 case $cross_compiling:$ac_tool_warned in
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3321 STRIP="$ac_cv_prog_STRIP"
3325 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3328 $as_echo_n "checking whether ln -s works... " >&6; }
3330 if test "$LN_S" = "ln -s"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3335 $as_echo "no, using $LN_S" >&6; }
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3382 if test -z "$ac_cv_prog_CC"; then
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385 set dummy gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3420 if test "x$ac_ct_CC" = x; then
3423 case $cross_compiling:$ac_tool_warned in
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3476 if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478 set dummy cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3573 test -n "$CC" && break
3576 if test -z "$CC"; then
3578 for ac_prog in cl.exe
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; 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_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3617 test -n "$ac_ct_CC" && break
3620 if test "x$ac_ct_CC" = x; then
3623 case $cross_compiling:$ac_tool_warned in
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3641 # Provide some information about the compiler.
3642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3645 for ac_option in --version -v -V -qversion; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3655 if test -s conftest.err; then
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3661 rm -f conftest.er1 conftest.err
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 ac_clean_files_save=$ac_clean_files
3678 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679 # Try to create an executable without -o first, disregard a.out.
3680 # It will help us diagnose broken compilers, and finding out an intuition
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683 $as_echo_n "checking whether the C compiler works... " >&6; }
3684 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3686 # The possible output files:
3687 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3690 for ac_file in $ac_files
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3699 if { { ac_try="$ac_link_default"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3712 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3713 # so that the user can short-circuit this test for compilers unknown to
3715 for ac_file in $ac_files ''
3717 test -f "$ac_file" || continue
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3722 # We found the default executable, but exeext='' is most
3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3730 # We set ac_cv_exeext here because the later test for it is not
3731 # safe: cross compilers may not add the suffix if given an `-o'
3732 # argument, so we may need to know it at that point already.
3733 # Even if this section looks crufty: it has the advantage of
3740 test "$ac_cv_exeext" = no && ac_cv_exeext=
3745 if test -z "$ac_file"; then :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error 77 "C compiler cannot create executables
3754 See \`config.log' for more details" "$LINENO" 5; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760 $as_echo_n "checking for C compiler default output file name... " >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; }
3763 ac_exeext=$ac_cv_exeext
3765 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766 ac_clean_files=$ac_clean_files_save
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768 $as_echo_n "checking for suffix of executables... " >&6; }
3769 if { { ac_try="$ac_link"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link") 2>&5
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3782 # work properly (i.e., refer to `conftest.exe'), while it won't with
3784 for ac_file in conftest.exe conftest conftest.*; do
3785 test -f "$ac_file" || continue
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details" "$LINENO" 5; }
3799 rm -f conftest conftest$ac_cv_exeext
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801 $as_echo "$ac_cv_exeext" >&6; }
3803 rm -f conftest.$ac_ext
3804 EXEEXT=$ac_cv_exeext
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3812 FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3819 ac_clean_files="$ac_clean_files conftest.out"
3820 # Check that the compiler produces executables we can run. If not, either
3821 # the compiler is broken, or we cross compile.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823 $as_echo_n "checking whether we are cross compiling... " >&6; }
3824 if test "$cross_compiling" != yes; then
3825 { { ac_try="$ac_link"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 if { ac_try='./conftest$ac_cv_exeext'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3849 if test "$cross_compiling" = maybe; then
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error $? "cannot run C compiled programs.
3855 If you meant to cross compile, use \`--host'.
3856 See \`config.log' for more details" "$LINENO" 5; }
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861 $as_echo "$cross_compiling" >&6; }
3863 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866 $as_echo_n "checking for suffix of object files... " >&6; }
3867 if ${ac_cv_objext+:} false; then :
3868 $as_echo_n "(cached) " >&6
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3881 rm -f conftest.o conftest.obj
3882 if { { ac_try="$ac_compile"
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_compile") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 for ac_file in conftest.o conftest.obj conftest.*; do
3894 test -f "$ac_file" || continue;
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error $? "cannot compute suffix of object files: cannot compile
3908 See \`config.log' for more details" "$LINENO" 5; }
3910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3913 $as_echo "$ac_cv_objext" >&6; }
3914 OBJEXT=$ac_cv_objext
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3918 if ${ac_cv_c_compiler_gnu+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3935 if ac_fn_c_try_compile "$LINENO"; then :
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3946 if test $ac_compiler_gnu = yes; then
3951 ac_test_CFLAGS=${CFLAGS+set}
3952 ac_save_CFLAGS=$CFLAGS
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3954 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3955 if ${ac_cv_prog_cc_g+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_save_c_werror_flag=$ac_c_werror_flag
3959 ac_c_werror_flag=yes
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3973 if ac_fn_c_try_compile "$LINENO"; then :
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3988 if ac_fn_c_try_compile "$LINENO"; then :
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
4004 if ac_fn_c_try_compile "$LINENO"; then :
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015 $as_echo "$ac_cv_prog_cc_g" >&6; }
4016 if test "$ac_test_CFLAGS" = set; then
4017 CFLAGS=$ac_save_CFLAGS
4018 elif test $ac_cv_prog_cc_g = yes; then
4019 if test "$GCC" = yes; then
4025 if test "$GCC" = yes; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033 if ${ac_cv_prog_cc_c89+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 ac_cv_prog_cc_c89=no
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4057 s = g (p, va_arg (v,int));
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4100 rm -f conftest.$ac_ext
4105 case "x$ac_cv_prog_cc_c89" in
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4128 ac_cpp='$CPP $CPPFLAGS'
4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4133 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4134 if ${am_cv_prog_cc_c_o+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4148 # Make sure it works both with $CC and with simple cc.
4149 # Following AC_PROG_CC_C_O, we do the test twice because some
4150 # compilers refuse to overwrite an existing .o file with -o,
4151 # though they will create one.
4152 am_cv_prog_cc_c_o=yes
4154 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4155 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } \
4159 && test -f conftest2.$ac_objext; then
4162 am_cv_prog_cc_c_o=no
4166 rm -f core conftest*
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4170 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4171 if test "$am_cv_prog_cc_c_o" != yes; then
4172 # Losing compiler, so override with the script.
4173 # FIXME: It is wrong to rewrite CC.
4174 # But if we don't then we get into trouble of one sort or another.
4175 # A longer-term fix would be to have automake use am__CC in this case,
4176 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4177 CC="$am_aux_dir/compile $CC"
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 if test -n "$ac_tool_prefix"; then
4188 for ac_prog in ar lib "link -lib"
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if ${ac_cv_prog_AR+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -n "$AR"; then
4198 ac_cv_prog_AR="$AR" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 if test -n "$AR"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4220 $as_echo "$AR" >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4227 test -n "$AR" && break
4230 if test -z "$AR"; then
4232 for ac_prog in ar lib "link -lib"
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235 set dummy $ac_prog; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$ac_ct_AR"; then
4242 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_ac_ct_AR="$ac_prog"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4262 if test -n "$ac_ct_AR"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4264 $as_echo "$ac_ct_AR" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4271 test -n "$ac_ct_AR" && break
4274 if test "x$ac_ct_AR" = x; then
4277 case $cross_compiling:$ac_tool_warned in
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281 ac_tool_warned=yes ;;
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4290 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4291 if ${am_cv_ar_interface+:} false; then :
4292 $as_echo_n "(cached) " >&6
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 am_cv_ar_interface=ar
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303 int some_variable = 0;
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4308 (eval $am_ar_try) 2>&5
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }
4312 if test "$ac_status" -eq 0; then
4313 am_cv_ar_interface=ar
4315 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4317 (eval $am_ar_try) 2>&5
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }
4321 if test "$ac_status" -eq 0; then
4322 am_cv_ar_interface=lib
4324 am_cv_ar_interface=unknown
4327 rm -f conftest.lib libconftest.a
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4339 $as_echo "$am_cv_ar_interface" >&6; }
4341 case $am_cv_ar_interface in
4345 # Microsoft lib, so override with the ar-lib wrapper script.
4346 # FIXME: It is wrong to rewrite AR.
4347 # But if we don't then we get into trouble of one sort or another.
4348 # A longer-term fix would be to have automake use am__AR in this case,
4349 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4351 AR="$am_aux_dir/ar-lib $AR"
4354 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4360 # Check whether --enable-largefile was given.
4361 if test "${enable_largefile+set}" = set; then :
4362 enableval=$enable_largefile;
4365 if test "$enable_largefile" != no; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4368 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4369 if ${ac_cv_sys_largefile_CC+:} false; then :
4370 $as_echo_n "(cached) " >&6
4372 ac_cv_sys_largefile_CC=no
4373 if test "$GCC" != yes; then
4376 # IRIX 6.2 and later do not support large files by default,
4377 # so use the C compiler's -n32 option if that helps.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4380 #include <sys/types.h>
4381 /* Check that off_t can represent 2**63 - 1 correctly.
4382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4383 since some C++ compilers masquerading as C compilers
4384 incorrectly reject 9223372036854775807. */
4385 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4387 && LARGE_OFF_T % 2147483647 == 1)
4397 if ac_fn_c_try_compile "$LINENO"; then :
4400 rm -f core conftest.err conftest.$ac_objext
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ac_cv_sys_largefile_CC=' -n32'; break
4405 rm -f core conftest.err conftest.$ac_objext
4409 rm -f conftest.$ac_ext
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4413 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4414 if test "$ac_cv_sys_largefile_CC" != no; then
4415 CC=$CC$ac_cv_sys_largefile_CC
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4419 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4420 if ${ac_cv_sys_file_offset_bits+:} false; then :
4421 $as_echo_n "(cached) " >&6
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #include <sys/types.h>
4427 /* Check that off_t can represent 2**63 - 1 correctly.
4428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4429 since some C++ compilers masquerading as C compilers
4430 incorrectly reject 9223372036854775807. */
4431 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4433 && LARGE_OFF_T % 2147483647 == 1)
4443 if ac_fn_c_try_compile "$LINENO"; then :
4444 ac_cv_sys_file_offset_bits=no; break
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #define _FILE_OFFSET_BITS 64
4450 #include <sys/types.h>
4451 /* Check that off_t can represent 2**63 - 1 correctly.
4452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4453 since some C++ compilers masquerading as C compilers
4454 incorrectly reject 9223372036854775807. */
4455 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4457 && LARGE_OFF_T % 2147483647 == 1)
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_sys_file_offset_bits=64; break
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_cv_sys_file_offset_bits=unknown
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4476 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4477 case $ac_cv_sys_file_offset_bits in #(
4480 cat >>confdefs.h <<_ACEOF
4481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4486 if test $ac_cv_sys_file_offset_bits = unknown; then
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4488 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4489 if ${ac_cv_sys_large_files+:} false; then :
4490 $as_echo_n "(cached) " >&6
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4495 #include <sys/types.h>
4496 /* Check that off_t can represent 2**63 - 1 correctly.
4497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4498 since some C++ compilers masquerading as C compilers
4499 incorrectly reject 9223372036854775807. */
4500 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4502 && LARGE_OFF_T % 2147483647 == 1)
4512 if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_cv_sys_large_files=no; break
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #define _LARGE_FILES 1
4519 #include <sys/types.h>
4520 /* Check that off_t can represent 2**63 - 1 correctly.
4521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4522 since some C++ compilers masquerading as C compilers
4523 incorrectly reject 9223372036854775807. */
4524 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4526 && LARGE_OFF_T % 2147483647 == 1)
4536 if ac_fn_c_try_compile "$LINENO"; then :
4537 ac_cv_sys_large_files=1; break
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_cv_sys_large_files=unknown
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4545 $as_echo "$ac_cv_sys_large_files" >&6; }
4546 case $ac_cv_sys_large_files in #(
4549 cat >>confdefs.h <<_ACEOF
4550 #define _LARGE_FILES $ac_cv_sys_large_files
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4561 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4562 if ${largefile64_cv_source+:} false; then :
4563 $as_echo_n "(cached) " >&6
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4569 #include <sys/types.h>
4570 #include <sys/stat.h>
4577 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4583 if ac_fn_c_try_compile "$LINENO"; then :
4585 largefile64_source="no"
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4592 #define _LARGEFILE64_SOURCE
4593 #include <sys/types.h>
4594 #include <sys/stat.h>
4601 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4607 if ac_fn_c_try_compile "$LINENO"; then :
4609 largefile64_source="yes"
4613 largefile64_source="unknown"
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4623 $as_echo "$largefile64_cv_source" >&6; }
4625 if test "x$largefile64_source" = "xyes"; then
4626 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4627 enable_largefile="yes"
4628 elif test "x$largefile64_source" = "xunknown"; then
4630 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4634 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4635 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4636 enable_largefile="yes"
4639 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4640 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4641 enable_largefile="yes"
4646 # In order to be able to change the scilab directory
4647 # See http://wiki.debian.org/RpathIssue
4648 # Find a good install program. We prefer a C program (faster),
4649 # so one script is as good as another. But avoid the broken or
4650 # incompatible versions:
4651 # SysV /etc/install, /usr/sbin/install
4652 # SunOS /usr/etc/install
4653 # IRIX /sbin/install
4655 # AmigaOS /C/install, which installs bootblocks on floppy discs
4656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4659 # OS/2's system install, which has a completely different semantic
4660 # ./install, which can be erroneously created by make from ./install.sh.
4661 # Reject install programs that cannot install multiple files.
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4663 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4664 if test -z "$INSTALL"; then
4665 if ${ac_cv_path_install+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 # Account for people who put trailing slashes in PATH elements.
4674 case $as_dir/ in #((
4675 ./ | .// | /[cC]/* | \
4676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4680 # OSF1 and SCO ODT 3.0 have their own names for install.
4681 # Don't use installbsd from OSF since it installs stuff as root
4683 for ac_prog in ginstall scoinst install; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4686 if test $ac_prog = install &&
4687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4688 # AIX install. It has an incompatible calling convention.
4690 elif test $ac_prog = install &&
4691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4692 # program-specific install script used by HP pwplus--don't use.
4695 rm -rf conftest.one conftest.two conftest.dir
4696 echo one > conftest.one
4697 echo two > conftest.two
4699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4700 test -s conftest.one && test -s conftest.two &&
4701 test -s conftest.dir/conftest.one &&
4702 test -s conftest.dir/conftest.two
4704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4717 rm -rf conftest.one conftest.two conftest.dir
4720 if test "${ac_cv_path_install+set}" = set; then
4721 INSTALL=$ac_cv_path_install
4723 # As a last resort, use the slow shell script. Don't cache a
4724 # value for INSTALL within a source directory, because that will
4725 # break other packages using the cache if that directory is
4726 # removed, or if the value is a relative name.
4727 INSTALL=$ac_install_sh
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4731 $as_echo "$INSTALL" >&6; }
4733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4734 # It thinks the first close brace ends the variable substitution.
4735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4741 # Make sure we can run config.sub.
4742 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4743 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4746 $as_echo_n "checking build system type... " >&6; }
4747 if ${ac_cv_build+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 ac_build_alias=$build_alias
4751 test "x$ac_build_alias" = x &&
4752 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4753 test "x$ac_build_alias" = x &&
4754 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4755 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4756 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4760 $as_echo "$ac_cv_build" >&6; }
4761 case $ac_cv_build in
4763 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4766 ac_save_IFS=$IFS; IFS='-'
4772 # Remember, the first character of IFS is used to create $*,
4773 # except with old shells:
4776 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4780 $as_echo_n "checking host system type... " >&6; }
4781 if ${ac_cv_host+:} false; then :
4782 $as_echo_n "(cached) " >&6
4784 if test "x$host_alias" = x; then
4785 ac_cv_host=$ac_cv_build
4787 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4793 $as_echo "$ac_cv_host" >&6; }
4796 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4799 ac_save_IFS=$IFS; IFS='-'
4805 # Remember, the first character of IFS is used to create $*,
4806 # except with old shells:
4809 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4813 # Check whether --with-gnu-ld was given.
4814 if test "${with_gnu_ld+set}" = set; then :
4815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4820 # Prepare PATH_SEPARATOR.
4821 # The user is always right.
4822 if test "${PATH_SEPARATOR+set}" != set; then
4823 echo "#! /bin/sh" >conf$$.sh
4824 echo "exit 0" >>conf$$.sh
4826 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4834 if test "$GCC" = yes; then
4835 # Check if gcc -print-prog-name=ld gives a path.
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4837 $as_echo_n "checking for ld used by GCC... " >&6; }
4840 # gcc leaves a trailing carriage return which upsets mingw
4841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4846 # Accept absolute paths.
4847 [\\/]* | [A-Za-z]:[\\/]*)
4848 re_direlt='/[^/][^/]*/\.\./'
4849 # Canonicalize the path of ld
4850 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4851 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4852 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4854 test -z "$LD" && LD="$ac_prog"
4857 # If it fails, then pretend we aren't using GCC.
4861 # If it is relative, then search for the first ld in PATH.
4865 elif test "$with_gnu_ld" = yes; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4867 $as_echo_n "checking for GNU ld... " >&6; }
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4870 $as_echo_n "checking for non-GNU ld... " >&6; }
4872 if ${acl_cv_path_LD+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -z "$LD"; then
4876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4877 for ac_dir in $PATH; do
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4880 acl_cv_path_LD="$ac_dir/$ac_prog"
4881 # Check to see if the program is GNU ld. I'd rather use --version,
4882 # but apparently some GNU ld's only accept -v.
4883 # Break only if it was the GNU/non-GNU ld that we prefer.
4884 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4885 *GNU* | *'with BFD'*)
4886 test "$with_gnu_ld" != no && break ;;
4888 test "$with_gnu_ld" != yes && break ;;
4894 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4898 LD="$acl_cv_path_LD"
4899 if test -n "$LD"; then
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4901 $as_echo "$LD" >&6; }
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4904 $as_echo "no" >&6; }
4906 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4909 if ${acl_cv_prog_gnu_ld+:} false; then :
4910 $as_echo_n "(cached) " >&6
4912 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4913 case `$LD -v 2>&1 </dev/null` in
4914 *GNU* | *'with BFD'*)
4915 acl_cv_prog_gnu_ld=yes ;;
4917 acl_cv_prog_gnu_ld=no ;;
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4921 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4922 with_gnu_ld=$acl_cv_prog_gnu_ld
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4927 $as_echo_n "checking for shared library path variable... " >&6; }
4928 if ${acl_cv_libpath+:} false; then :
4929 $as_echo_n "(cached) " >&6
4933 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4936 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4940 $as_echo "$acl_cv_libpath" >&6; }
4941 shlibpath_var="$acl_cv_shlibpath_var"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4945 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4946 # Check whether --enable-relocatable was given.
4947 if test "${enable_relocatable+set}" = set; then :
4948 enableval=$enable_relocatable; if test "$enableval" != no; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4960 $as_echo "$RELOCATABLE" >&6; }
4964 if test "X$prefix" = "XNONE"; then
4965 reloc_final_prefix="$ac_default_prefix"
4967 reloc_final_prefix="$prefix"
4970 cat >>confdefs.h <<_ACEOF
4971 #define INSTALLPREFIX "${reloc_final_prefix}"
4977 ac_cpp='$CPP $CPPFLAGS'
4978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4982 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4983 # On Suns, sometimes $CPP names a directory.
4984 if test -n "$CPP" && test -d "$CPP"; then
4987 if test -z "$CPP"; then
4988 if ${ac_cv_prog_CPP+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 # Double quotes because CPP needs to be expanded
4992 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4995 for ac_c_preproc_warn_flag in '' yes
4997 # Use a header file that comes with gcc, so configuring glibc
4998 # with a fresh cross-compiler works.
4999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000 # <limits.h> exists even on freestanding compilers.
5001 # On the NeXT, cc -E runs the code through the compiler's parser,
5002 # not just through cpp. "Syntax error" is here to catch this case.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5006 # include <limits.h>
5008 # include <assert.h>
5012 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: fails on valid input.
5018 rm -f conftest.err conftest.i conftest.$ac_ext
5020 # OK, works on sane cases. Now check whether nonexistent headers
5021 # can be detected and how.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024 #include <ac_nonexistent.h>
5026 if ac_fn_c_try_cpp "$LINENO"; then :
5027 # Broken: success on invalid input.
5030 # Passes both tests.
5034 rm -f conftest.err conftest.i conftest.$ac_ext
5037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5038 rm -f conftest.i conftest.err conftest.$ac_ext
5039 if $ac_preproc_ok; then :
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5052 $as_echo "$CPP" >&6; }
5054 for ac_c_preproc_warn_flag in '' yes
5056 # Use a header file that comes with gcc, so configuring glibc
5057 # with a fresh cross-compiler works.
5058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5059 # <limits.h> exists even on freestanding compilers.
5060 # On the NeXT, cc -E runs the code through the compiler's parser,
5061 # not just through cpp. "Syntax error" is here to catch this case.
5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5065 # include <limits.h>
5067 # include <assert.h>
5071 if ac_fn_c_try_cpp "$LINENO"; then :
5074 # Broken: fails on valid input.
5077 rm -f conftest.err conftest.i conftest.$ac_ext
5079 # OK, works on sane cases. Now check whether nonexistent headers
5080 # can be detected and how.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5085 if ac_fn_c_try_cpp "$LINENO"; then :
5086 # Broken: success on invalid input.
5089 # Passes both tests.
5093 rm -f conftest.err conftest.i conftest.$ac_ext
5096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5097 rm -f conftest.i conftest.err conftest.$ac_ext
5098 if $ac_preproc_ok; then :
5101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5104 See \`config.log' for more details" "$LINENO" 5; }
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5115 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5116 if ${ac_cv_path_GREP+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -z "$GREP"; then
5120 ac_path_GREP_found=false
5121 # Loop through the user's path and test for each of PROGNAME-LIST
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126 test -z "$as_dir" && as_dir=.
5127 for ac_prog in grep ggrep; do
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5130 as_fn_executable_p "$ac_path_GREP" || continue
5131 # Check for GNU ac_path_GREP and select it if it is found.
5132 # Check for GNU $ac_path_GREP
5133 case `"$ac_path_GREP" --version 2>&1` in
5135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138 $as_echo_n 0123456789 >"conftest.in"
5141 cat "conftest.in" "conftest.in" >"conftest.tmp"
5142 mv "conftest.tmp" "conftest.in"
5143 cp "conftest.in" "conftest.nl"
5144 $as_echo 'GREP' >> "conftest.nl"
5145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5147 as_fn_arith $ac_count + 1 && ac_count=$as_val
5148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5149 # Best one so far, save it but keep looking for a better one
5150 ac_cv_path_GREP="$ac_path_GREP"
5151 ac_path_GREP_max=$ac_count
5153 # 10*(2^10) chars as input seems more than enough
5154 test $ac_count -gt 10 && break
5156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159 $ac_path_GREP_found && break 3
5164 if test -z "$ac_cv_path_GREP"; then
5165 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5168 ac_cv_path_GREP=$GREP
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5173 $as_echo "$ac_cv_path_GREP" >&6; }
5174 GREP="$ac_cv_path_GREP"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5178 $as_echo_n "checking for egrep... " >&6; }
5179 if ${ac_cv_path_EGREP+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5183 then ac_cv_path_EGREP="$GREP -E"
5185 if test -z "$EGREP"; then
5186 ac_path_EGREP_found=false
5187 # Loop through the user's path and test for each of PROGNAME-LIST
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 test -z "$as_dir" && as_dir=.
5193 for ac_prog in egrep; do
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5196 as_fn_executable_p "$ac_path_EGREP" || continue
5197 # Check for GNU ac_path_EGREP and select it if it is found.
5198 # Check for GNU $ac_path_EGREP
5199 case `"$ac_path_EGREP" --version 2>&1` in
5201 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5204 $as_echo_n 0123456789 >"conftest.in"
5207 cat "conftest.in" "conftest.in" >"conftest.tmp"
5208 mv "conftest.tmp" "conftest.in"
5209 cp "conftest.in" "conftest.nl"
5210 $as_echo 'EGREP' >> "conftest.nl"
5211 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5213 as_fn_arith $ac_count + 1 && ac_count=$as_val
5214 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5215 # Best one so far, save it but keep looking for a better one
5216 ac_cv_path_EGREP="$ac_path_EGREP"
5217 ac_path_EGREP_max=$ac_count
5219 # 10*(2^10) chars as input seems more than enough
5220 test $ac_count -gt 10 && break
5222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 $ac_path_EGREP_found && break 3
5230 if test -z "$ac_cv_path_EGREP"; then
5231 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 ac_cv_path_EGREP=$EGREP
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5240 $as_echo "$ac_cv_path_EGREP" >&6; }
5241 EGREP="$ac_cv_path_EGREP"
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5245 $as_echo_n "checking for ANSI C header files... " >&6; }
5246 if ${ac_cv_header_stdc+:} false; then :
5247 $as_echo_n "(cached) " >&6
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_header_stdc=yes
5267 ac_cv_header_stdc=no
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 if test $ac_cv_header_stdc = yes; then
5272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "memchr" >/dev/null 2>&1; then :
5282 ac_cv_header_stdc=no
5288 if test $ac_cv_header_stdc = yes; then
5289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "free" >/dev/null 2>&1; then :
5299 ac_cv_header_stdc=no
5305 if test $ac_cv_header_stdc = yes; then
5306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5307 if test "$cross_compiling" = yes; then :
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5314 #if ((' ' & 0x0FF) == 0x020)
5315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5318 # define ISLOWER(c) \
5319 (('a' <= (c) && (c) <= 'i') \
5320 || ('j' <= (c) && (c) <= 'r') \
5321 || ('s' <= (c) && (c) <= 'z'))
5322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330 for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i))
5332 || toupper (i) != TOUPPER (i))
5337 if ac_fn_c_try_run "$LINENO"; then :
5340 ac_cv_header_stdc=no
5342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5343 conftest.$ac_objext conftest.beam conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5349 $as_echo "$ac_cv_header_stdc" >&6; }
5350 if test $ac_cv_header_stdc = yes; then
5352 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5358 inttypes.h stdint.h unistd.h
5360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5361 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5364 cat >>confdefs.h <<_ACEOF
5365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380 use_elf_origin_trick=no
5381 if test $RELOCATABLE = yes; then
5382 # --enable-relocatable implies --disable-rpath
5385 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5387 for ac_header in unistd.h mach-o/dyld.h
5389 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5390 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5392 cat >>confdefs.h <<_ACEOF
5393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5400 for ac_func in _NSGetExecutablePath
5402 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5403 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5404 cat >>confdefs.h <<_ACEOF
5405 #define HAVE__NSGETEXECUTABLEPATH 1
5412 mingw*) is_noop=yes ;;
5413 linux*) use_elf_origin_trick=yes ;;
5415 if test $is_noop = yes; then
5416 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5418 if test $use_elf_origin_trick = yes; then
5419 case "$ac_aux_dir" in
5420 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5421 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5423 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5425 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\""
5426 case "$ac_aux_dir" in
5427 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5428 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5436 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5437 RELOCATABLE_VIA_LD_TRUE=
5438 RELOCATABLE_VIA_LD_FALSE='#'
5440 RELOCATABLE_VIA_LD_TRUE='#'
5441 RELOCATABLE_VIA_LD_FALSE=
5447 if test $RELOCATABLE = yes; then
5448 case " $LIBOBJS " in
5449 *" relocatable.$ac_objext "* ) ;;
5450 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5458 if test "X$prefix" = "XNONE"; then
5459 reloc_final_prefix="$ac_default_prefix"
5461 reloc_final_prefix="$prefix"
5464 cat >>confdefs.h <<_ACEOF
5465 #define INSTALLPREFIX "${reloc_final_prefix}"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5472 $as_echo_n "checking for shared library run path origin... " >&6; }
5473 if ${acl_cv_rpath+:} false; then :
5474 $as_echo_n "(cached) " >&6
5477 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5478 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5485 $as_echo "$acl_cv_rpath" >&6; }
5487 acl_libext="$acl_cv_libext"
5488 acl_shlibext="$acl_cv_shlibext"
5489 acl_libname_spec="$acl_cv_libname_spec"
5490 acl_library_names_spec="$acl_cv_library_names_spec"
5491 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5492 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5493 acl_hardcode_direct="$acl_cv_hardcode_direct"
5494 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5495 # Check whether --enable-rpath was given.
5496 if test "${enable_rpath+set}" = set; then :
5497 enableval=$enable_rpath; :
5504 # If configure detect that timestamp changed,
5505 # it tries to rebuild configure & makefile which can be a painmaker
5506 # if the version is different
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5509 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5510 # Check whether --enable-maintainer-mode was given.
5511 if test "${enable_maintainer_mode+set}" = set; then :
5512 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5514 USE_MAINTAINER_MODE=no
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5518 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5519 if test $USE_MAINTAINER_MODE = yes; then
5520 MAINTAINER_MODE_TRUE=
5521 MAINTAINER_MODE_FALSE='#'
5523 MAINTAINER_MODE_TRUE='#'
5524 MAINTAINER_MODE_FALSE=
5527 MAINT=$MAINTAINER_MODE_TRUE
5531 am__api_version='1.14'
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5534 $as_echo_n "checking whether build environment is sane... " >&6; }
5535 # Reject unsafe characters in $srcdir or the absolute working directory
5536 # name. Accept space and tab only in the latter.
5540 *[\\\"\#\$\&\'\`$am_lf]*)
5541 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5544 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5545 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5548 # Do 'set' in a subshell so we don't clobber the current shell's
5549 # arguments. Must try -L first in case configure is actually a
5550 # symlink; some systems play weird games with the mod time of symlinks
5551 # (eg FreeBSD returns the mod time of the symlink's containing
5555 for am_try in 1 2; do
5556 echo "timestamp, slept: $am_has_slept" > conftest.file
5557 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5558 if test "$*" = "X"; then
5560 set X `ls -t "$srcdir/configure" conftest.file`
5562 if test "$*" != "X $srcdir/configure conftest.file" \
5563 && test "$*" != "X conftest.file $srcdir/configure"; then
5565 # If neither matched, then we have a broken ls. This can happen
5566 # if, for instance, CONFIG_SHELL is bash and it inherits a
5567 # broken ls alias from the environment. This has actually
5568 # happened. Such a system could not be considered "sane".
5569 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5570 alias in your environment" "$LINENO" 5
5572 if test "$2" = conftest.file || test $am_try -eq 2; then
5579 test "$2" = conftest.file
5585 as_fn_error $? "newly created file is older than distributed files!
5586 Check your system clock" "$LINENO" 5
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5589 $as_echo "yes" >&6; }
5590 # If we didn't sleep, we still need to ensure time stamps of config.status and
5591 # generated files are strictly newer.
5593 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5600 test "$program_prefix" != NONE &&
5601 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5602 # Use a double $ so make ignores it.
5603 test "$program_suffix" != NONE &&
5604 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5605 # Double any \ or $.
5606 # By default was `s,x,x', remove it if useless.
5607 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5608 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5610 if test x"${MISSING+set}" != xset; then
5613 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5615 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5618 # Use eval to expand $SHELL
5619 if eval "$MISSING --is-lightweight"; then
5620 am_missing_run="$MISSING "
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5624 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5628 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5629 if test -z "$MKDIR_P"; then
5630 if ${ac_cv_path_mkdir+:} false; then :
5631 $as_echo_n "(cached) " >&6
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5637 test -z "$as_dir" && as_dir=.
5638 for ac_prog in mkdir gmkdir; do
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5642 'mkdir (GNU coreutils) '* | \
5643 'mkdir (coreutils) '* | \
5644 'mkdir (fileutils) '4.1*)
5645 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5655 test -d ./--version && rmdir ./--version
5656 if test "${ac_cv_path_mkdir+set}" = set; then
5657 MKDIR_P="$ac_cv_path_mkdir -p"
5659 # As a last resort, use the slow shell script. Don't cache a
5660 # value for MKDIR_P within a source directory, because that will
5661 # break other packages using the cache if that directory is
5662 # removed, or if the value is a relative name.
5663 MKDIR_P="$ac_install_sh -d"
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5667 $as_echo "$MKDIR_P" >&6; }
5669 for ac_prog in gawk mawk nawk awk
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_AWK+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 if test -n "$AWK"; then
5679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_AWK="$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 if test -n "$AWK"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5701 $as_echo "$AWK" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5708 test -n "$AWK" && break
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5712 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5714 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5715 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 cat >conftest.make <<\_ACEOF
5721 @echo '@@@%%%=$(MAKE)=@@@%%%'
5723 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5724 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5726 eval ac_cv_prog_make_${ac_make}_set=yes;;
5728 eval ac_cv_prog_make_${ac_make}_set=no;;
5732 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5734 $as_echo "yes" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 SET_MAKE="MAKE=${MAKE-make}"
5742 rm -rf .tst 2>/dev/null
5743 mkdir .tst 2>/dev/null
5744 if test -d .tst; then
5749 rmdir .tst 2>/dev/null
5751 DEPDIR="${am__leading_dot}deps"
5753 ac_config_commands="$ac_config_commands depfiles"
5756 am_make=${MAKE-make}
5757 cat > confinc << 'END'
5759 @echo this is the am__doit target
5762 # If we don't find an include directive, just comment out the code.
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5764 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5768 # First try GNU make style include.
5769 echo "include confinc" > confmf
5770 # Ignore all kinds of additional output from 'make'.
5771 case `$am_make -s -f confmf 2> /dev/null` in #(
5772 *the\ am__doit\ target*)
5778 # Now try BSD make style include.
5779 if test "$am__include" = "#"; then
5780 echo '.include "confinc"' > confmf
5781 case `$am_make -s -f confmf 2> /dev/null` in #(
5782 *the\ am__doit\ target*)
5783 am__include=.include
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5792 $as_echo "$_am_result" >&6; }
5793 rm -f confinc confmf
5795 # Check whether --enable-dependency-tracking was given.
5796 if test "${enable_dependency_tracking+set}" = set; then :
5797 enableval=$enable_dependency_tracking;
5800 if test "x$enable_dependency_tracking" != xno; then
5801 am_depcomp="$ac_aux_dir/depcomp"
5805 if test "x$enable_dependency_tracking" != xno; then
5814 # Check whether --enable-silent-rules was given.
5815 if test "${enable_silent_rules+set}" = set; then :
5816 enableval=$enable_silent_rules;
5819 case $enable_silent_rules in # (((
5820 yes) AM_DEFAULT_VERBOSITY=0;;
5821 no) AM_DEFAULT_VERBOSITY=1;;
5822 *) AM_DEFAULT_VERBOSITY=1;;
5824 am_make=${MAKE-make}
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5826 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5827 if ${am_cv_make_support_nested_variables+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 if $as_echo 'TRUE=$(BAR$(V))
5836 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5837 am_cv_make_support_nested_variables=yes
5839 am_cv_make_support_nested_variables=no
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5843 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5844 if test $am_cv_make_support_nested_variables = yes; then
5846 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5848 AM_V=$AM_DEFAULT_VERBOSITY
5849 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5853 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5854 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5855 # is not polluted with repeated "-I."
5856 am__isrc=' -I$(srcdir)'
5857 # test to see if srcdir already configured
5858 if test -f $srcdir/config.status; then
5859 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5863 # test whether we have cygpath
5864 if test -z "$CYGPATH_W"; then
5865 if (cygpath --version) >/dev/null 2>/dev/null; then
5866 CYGPATH_W='cygpath -w'
5873 # Define the identity of the package.
5878 cat >>confdefs.h <<_ACEOF
5879 #define PACKAGE "$PACKAGE"
5883 cat >>confdefs.h <<_ACEOF
5884 #define VERSION "$VERSION"
5887 # Some tools Automake needs.
5889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5903 # For better backward compatibility. To be removed once Automake 1.9.x
5904 # dies out for good. For more background, see:
5905 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5906 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5907 mkdir_p='$(MKDIR_P)'
5909 # We need awk for the "check" target. The system "awk" is bad on
5911 # Always define AMTAR for backward compatibility. Yes, it's still used
5912 # in the wild :-( We should find a proper way to deprecate it ...
5916 # We'll loop over all known methods to create a tar archive until one works.
5917 _am_tools='gnutar pax cpio none'
5919 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5925 depcc="$CC" am_compiler_list=
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5928 $as_echo_n "checking dependency style of $depcc... " >&6; }
5929 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5933 # We make a subdir and do the tests there. Otherwise we can end up
5934 # making bogus files that we don't know about and never remove. For
5935 # instance it was reported that on HP-UX the gcc test will end up
5936 # making a dummy file named 'D' -- because '-MD' means "put the output
5940 # Copy depcomp to subdir because otherwise we won't find it if we're
5941 # using a relative directory.
5942 cp "$am_depcomp" conftest.dir
5944 # We will build objects and dependencies in a subdirectory because
5945 # it helps to detect inapplicable dependency modes. For instance
5946 # both Tru64's cc and ICC support -MD to output dependencies as a
5947 # side effect of compilation, but ICC will put the dependencies in
5948 # the current directory while Tru64 will put them in the object
5952 am_cv_CC_dependencies_compiler_type=none
5953 if test "$am_compiler_list" = ""; then
5954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5957 case " $depcc " in #(
5958 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5961 for depmode in $am_compiler_list; do
5962 # Setup a source with many dependencies, because some compilers
5963 # like to wrap large dependency lists on column 80 (with \), and
5964 # we should not choose a depcomp mode which is confused by this.
5966 # We need to recreate these files for each test, as the compiler may
5967 # overwrite some of them when testing with obscure command lines.
5968 # This happens at least with the AIX C compiler.
5970 for i in 1 2 3 4 5 6; do
5971 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5972 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5973 # Solaris 10 /bin/sh.
5974 echo '/* dummy */' > sub/conftst$i.h
5976 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5978 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5979 # mode. It turns out that the SunPro C++ compiler does not properly
5980 # handle '-M -o', and we need to detect this. Also, some Intel
5981 # versions had trouble with output in subdirs.
5982 am__obj=sub/conftest.${OBJEXT-o}
5983 am__minus_obj="-o $am__obj"
5986 # This depmode causes a compiler race in universal mode.
5987 test "$am__universal" = false || continue
5990 # After this tag, mechanisms are not by side-effect, so they'll
5991 # only be used when explicitly requested.
5992 if test "x$enable_dependency_tracking" = xyes; then
5998 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5999 # This compiler won't grok '-c -o', but also, the minuso test has
6000 # not run yet. These depmodes are late enough in the game, and
6001 # so weak that their functioning should not be impacted.
6002 am__obj=conftest.${OBJEXT-o}
6007 if depmode=$depmode \
6008 source=sub/conftest.c object=$am__obj \
6009 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6010 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6011 >/dev/null 2>conftest.err &&
6012 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6013 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6014 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6015 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6016 # icc doesn't choke on unknown options, it will just issue warnings
6017 # or remarks (even with -Werror). So we grep stderr for any message
6018 # that says an option was ignored or not supported.
6019 # When given -MP, icc 7.0 and 7.1 complain thusly:
6020 # icc: Command line warning: ignoring option '-M'; no argument required
6021 # The diagnosis changed in icc 8.0:
6022 # icc: Command line remark: option '-MP' not supported
6023 if (grep 'ignoring option' conftest.err ||
6024 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6025 am_cv_CC_dependencies_compiler_type=$depmode
6034 am_cv_CC_dependencies_compiler_type=none
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6040 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6043 test "x$enable_dependency_tracking" != xno \
6044 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6046 am__fastdepCC_FALSE='#'
6048 am__fastdepCC_TRUE='#'
6049 am__fastdepCC_FALSE=
6054 # POSIX will say in a future version that running "rm -f" with no argument
6055 # is OK; and we want to be able to make that assumption in our Makefile
6056 # recipes. So use an aggressive probe to check that the usage we want is
6057 # actually supported "in the wild" to an acceptable degree.
6058 # See automake bug#10828.
6059 # To make any issue more visible, cause the running configure to be aborted
6060 # by default if the 'rm' program in use doesn't match our expectations; the
6061 # user can still override this though.
6062 if rm -f && rm -fr && rm -rf; then : OK; else
6066 Your 'rm' program seems unable to run without file operands specified
6067 on the command line, even when the '-f' option is present. This is contrary
6068 to the behaviour of most rm programs out there, and not conforming with
6069 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6071 Please tell bug-automake@gnu.org about your system, including the value
6072 of your $PATH and any error possibly output before this message. This
6073 can help us improve future automake versions.
6076 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6077 echo 'Configuration will proceed anyway, since you have set the' >&2
6078 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6082 Aborting the configuration process, to ensure you take notice of the issue.
6084 You can download and install GNU coreutils to get an 'rm' implementation
6085 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6087 If you want to complete the configuration process using your problematic
6088 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6089 to "yes", and re-run configure.
6092 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6095 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6099 #################################
6100 ## all the --with-* argument help
6101 #################################
6104 # Check whether --enable-debug was given.
6105 if test "${enable_debug+set}" = set; then :
6106 enableval=$enable_debug;
6110 # Check whether --enable-debug-C was given.
6111 if test "${enable_debug_C+set}" = set; then :
6112 enableval=$enable_debug_C;
6116 # Check whether --enable-debug-CXX was given.
6117 if test "${enable_debug_CXX+set}" = set; then :
6118 enableval=$enable_debug_CXX;
6122 # Check whether --enable-debug-java was given.
6123 if test "${enable_debug_java+set}" = set; then :
6124 enableval=$enable_debug_java;
6128 # Check whether --enable-debug-fortran was given.
6129 if test "${enable_debug_fortran+set}" = set; then :
6130 enableval=$enable_debug_fortran;
6134 # Check whether --enable-debug-linker was given.
6135 if test "${enable_debug_linker+set}" = set; then :
6136 enableval=$enable_debug_linker;
6140 # Check whether --enable-code-coverage was given.
6141 if test "${enable_code_coverage+set}" = set; then :
6142 enableval=$enable_code_coverage;
6146 # Check whether --enable-stop-on-warning was given.
6147 if test "${enable_stop_on_warning+set}" = set; then :
6148 enableval=$enable_stop_on_warning;
6153 # Check whether --with-gcc was given.
6154 if test "${with_gcc+set}" = set; then :
6160 # Check whether --with-gfortran was given.
6161 if test "${with_gfortran+set}" = set; then :
6162 withval=$with_gfortran;
6167 # Check whether --with-intelcompilers was given.
6168 if test "${with_intelcompilers+set}" = set; then :
6169 withval=$with_intelcompilers;
6174 # Check whether --with-tk was given.
6175 if test "${with_tk+set}" = set; then :
6181 # Check whether --with-javasci was given.
6182 if test "${with_javasci+set}" = set; then :
6183 withval=$with_javasci;
6187 # Check whether --enable-compilation-tests was given.
6188 if test "${enable_compilation_tests+set}" = set; then :
6189 enableval=$enable_compilation_tests;
6194 # Check whether --with-gui was given.
6195 if test "${with_gui+set}" = set; then :
6200 # Check whether --enable-build-swig was given.
6201 if test "${enable_build_swig+set}" = set; then :
6202 enableval=$enable_build_swig; with_build_swig=$withval
6210 # Check whether --enable-build-giws was given.
6211 if test "${enable_build_giws+set}" = set; then :
6212 enableval=$enable_build_giws;
6217 ################################################
6218 ########## compilator & misc programs detection
6219 ################################################
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6227 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6228 # On Suns, sometimes $CPP names a directory.
6229 if test -n "$CPP" && test -d "$CPP"; then
6232 if test -z "$CPP"; then
6233 if ${ac_cv_prog_CPP+:} false; then :
6234 $as_echo_n "(cached) " >&6
6236 # Double quotes because CPP needs to be expanded
6237 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6240 for ac_c_preproc_warn_flag in '' yes
6242 # Use a header file that comes with gcc, so configuring glibc
6243 # with a fresh cross-compiler works.
6244 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6245 # <limits.h> exists even on freestanding compilers.
6246 # On the NeXT, cc -E runs the code through the compiler's parser,
6247 # not just through cpp. "Syntax error" is here to catch this case.
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6251 # include <limits.h>
6253 # include <assert.h>
6257 if ac_fn_c_try_cpp "$LINENO"; then :
6260 # Broken: fails on valid input.
6263 rm -f conftest.err conftest.i conftest.$ac_ext
6265 # OK, works on sane cases. Now check whether nonexistent headers
6266 # can be detected and how.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #include <ac_nonexistent.h>
6271 if ac_fn_c_try_cpp "$LINENO"; then :
6272 # Broken: success on invalid input.
6275 # Passes both tests.
6279 rm -f conftest.err conftest.i conftest.$ac_ext
6282 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6283 rm -f conftest.i conftest.err conftest.$ac_ext
6284 if $ac_preproc_ok; then :
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6297 $as_echo "$CPP" >&6; }
6299 for ac_c_preproc_warn_flag in '' yes
6301 # Use a header file that comes with gcc, so configuring glibc
6302 # with a fresh cross-compiler works.
6303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304 # <limits.h> exists even on freestanding compilers.
6305 # On the NeXT, cc -E runs the code through the compiler's parser,
6306 # not just through cpp. "Syntax error" is here to catch this case.
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6310 # include <limits.h>
6312 # include <assert.h>
6316 if ac_fn_c_try_cpp "$LINENO"; then :
6319 # Broken: fails on valid input.
6322 rm -f conftest.err conftest.i conftest.$ac_ext
6324 # OK, works on sane cases. Now check whether nonexistent headers
6325 # can be detected and how.
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #include <ac_nonexistent.h>
6330 if ac_fn_c_try_cpp "$LINENO"; then :
6331 # Broken: success on invalid input.
6334 # Passes both tests.
6338 rm -f conftest.err conftest.i conftest.$ac_ext
6341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6342 rm -f conftest.i conftest.err conftest.$ac_ext
6343 if $ac_preproc_ok; then :
6346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6348 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6349 See \`config.log' for more details" "$LINENO" 5; }
6353 ac_cpp='$CPP $CPPFLAGS'
6354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6360 if ${ac_cv_path_GREP+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -z "$GREP"; then
6364 ac_path_GREP_found=false
6365 # Loop through the user's path and test for each of PROGNAME-LIST
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6370 test -z "$as_dir" && as_dir=.
6371 for ac_prog in grep ggrep; do
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6374 as_fn_executable_p "$ac_path_GREP" || continue
6375 # Check for GNU ac_path_GREP and select it if it is found.
6376 # Check for GNU $ac_path_GREP
6377 case `"$ac_path_GREP" --version 2>&1` in
6379 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6382 $as_echo_n 0123456789 >"conftest.in"
6385 cat "conftest.in" "conftest.in" >"conftest.tmp"
6386 mv "conftest.tmp" "conftest.in"
6387 cp "conftest.in" "conftest.nl"
6388 $as_echo 'GREP' >> "conftest.nl"
6389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6391 as_fn_arith $ac_count + 1 && ac_count=$as_val
6392 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6393 # Best one so far, save it but keep looking for a better one
6394 ac_cv_path_GREP="$ac_path_GREP"
6395 ac_path_GREP_max=$ac_count
6397 # 10*(2^10) chars as input seems more than enough
6398 test $ac_count -gt 10 && break
6400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6403 $ac_path_GREP_found && break 3
6408 if test -z "$ac_cv_path_GREP"; then
6409 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6412 ac_cv_path_GREP=$GREP
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6417 $as_echo "$ac_cv_path_GREP" >&6; }
6418 GREP="$ac_cv_path_GREP"
6423 #### Mac OS X set of fink path with provided
6427 # Check whether --with-fink_prefix was given.
6428 if test "${with_fink_prefix+set}" = set; then :
6429 withval=$with_fink_prefix;
6432 # Need MacosX Version to specify some path.
6434 *Darwin* | *darwin*)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6437 $as_echo_n "checking Mac OS X Version... " >&6; }
6438 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6439 case $macosx_version in
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.10 - Yosemite." >&5
6442 $as_echo "Mac OS X 10.10 - Yosemite." >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.9 - Mavericks." >&5
6446 $as_echo "Mac OS X 10.9 - Mavericks." >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6450 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6454 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6458 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6462 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6465 as_fn_error $? "MacOSX 10.5 to 10.10 are needed. Found $macosx_version" "$LINENO" 5
6474 if test -n "$with_fink_prefix"; then
6475 # If with-fink-prefix is provided, use the provided path to make sure that we will
6476 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6477 # Therefor, we use the one in fink)
6478 FINK_PREFIX="$with_fink_prefix/"
6480 # Exec the init script of fink to make sure that the env is set
6481 if test -f $with_fink_prefix/bin/init.sh; then
6482 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6483 source $with_fink_prefix/bin/init.sh
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6486 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6492 #Append to the default flags on Apple machines
6493 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6494 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6499 # Check whether --with-min_macosx_version was given.
6500 if test "${with_min_macosx_version+set}" = set; then :
6501 withval=$with_min_macosx_version;
6506 if test -n "$with_min_macosx_version"; then
6507 MIN_MACOSX_VERSION=$with_min_macosx_version
6508 #Append to the default flags on Apple machines
6509 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6510 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6511 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6512 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6513 # We need this to be passed to all linker commands
6514 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6520 #####################################################
6521 ## Look for pkg-config
6522 #####################################################
6525 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6532 $as_echo_n "(cached) " >&6
6536 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6546 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6558 if test -n "$PKG_CONFIG"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6560 $as_echo "$PKG_CONFIG" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6568 if test -z "$ac_cv_path_PKG_CONFIG"; then
6569 ac_pt_PKG_CONFIG=$PKG_CONFIG
6570 # Extract the first word of "pkg-config", so it can be a program name with args.
6571 set dummy pkg-config; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6575 $as_echo_n "(cached) " >&6
6577 case $ac_pt_PKG_CONFIG in
6579 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6601 if test -n "$ac_pt_PKG_CONFIG"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6603 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_pt_PKG_CONFIG" = x; then
6612 case $cross_compiling:$ac_tool_warned in
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6618 PKG_CONFIG=$ac_pt_PKG_CONFIG
6621 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6625 if test -n "$PKG_CONFIG"; then
6626 _pkg_min_version=0.9.0
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6628 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6629 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631 $as_echo "yes" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6640 #####################################################
6641 ## check if options are correct (or not)
6642 #####################################################
6644 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6645 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6648 ######## fortran ########
6650 if test "$with_gfortran" = yes; then
6652 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6653 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6655 if test -n "$ac_tool_prefix"; then
6656 for ac_prog in gfortran
6658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 $as_echo_n "checking for $ac_word... " >&6; }
6662 if ${ac_cv_prog_F77+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 if test -n "$F77"; then
6666 ac_cv_prog_F77="$F77" # Let the user override the test.
6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 test -z "$as_dir" && as_dir=.
6673 for ac_exec_ext in '' $ac_executable_extensions; do
6674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6675 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 if test -n "$F77"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6688 $as_echo "$F77" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6691 $as_echo "no" >&6; }
6695 test -n "$F77" && break
6698 if test -z "$F77"; then
6700 for ac_prog in gfortran
6702 # Extract the first word of "$ac_prog", so it can be a program name with args.
6703 set dummy $ac_prog; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 if test -n "$ac_ct_F77"; then
6710 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_F77="$ac_prog"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6730 if test -n "$ac_ct_F77"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6732 $as_echo "$ac_ct_F77" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6739 test -n "$ac_ct_F77" && break
6742 if test "x$ac_ct_F77" = x; then
6745 case $cross_compiling:$ac_tool_warned in
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6749 ac_tool_warned=yes ;;
6756 # Provide some information about the compiler.
6757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6760 for ac_option in --version -v -V -qversion; do
6761 { { ac_try="$ac_compiler $ac_option >&5"
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6767 $as_echo "$ac_try_echo"; } >&5
6768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6770 if test -s conftest.err; then
6772 ... rest of stderr output deleted ...
6773 10q' conftest.err >conftest.er1
6774 cat conftest.er1 >&5
6776 rm -f conftest.er1 conftest.err
6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778 test $ac_status = 0; }
6782 # If we don't use `.F' as extension, the preprocessor is not run on the
6783 # input file. (Note that this only needs to work for GNU compilers.)
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6787 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6788 if ${ac_cv_f77_compiler_gnu+:} false; then :
6789 $as_echo_n "(cached) " >&6
6791 cat > conftest.$ac_ext <<_ACEOF
6799 if ac_fn_f77_try_compile "$LINENO"; then :
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6809 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6811 ac_test_FFLAGS=${FFLAGS+set}
6812 ac_save_FFLAGS=$FFLAGS
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6815 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6816 if ${ac_cv_prog_f77_g+:} false; then :
6817 $as_echo_n "(cached) " >&6
6820 cat > conftest.$ac_ext <<_ACEOF
6825 if ac_fn_f77_try_compile "$LINENO"; then :
6826 ac_cv_prog_f77_g=yes
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6834 $as_echo "$ac_cv_prog_f77_g" >&6; }
6835 if test "$ac_test_FFLAGS" = set; then
6836 FFLAGS=$ac_save_FFLAGS
6837 elif test $ac_cv_prog_f77_g = yes; then
6838 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6844 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6851 if test $ac_compiler_gnu = yes; then
6857 ac_cpp='$CPP $CPPFLAGS'
6858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6862 if test -z "$F77"; then
6863 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6867 if test "$with_intelcompilers" = yes; then
6869 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6870 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6872 if test -n "$ac_tool_prefix"; then
6873 for ac_prog in ifc ifort
6875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if ${ac_cv_prog_F77+:} false; then :
6880 $as_echo_n "(cached) " >&6
6882 if test -n "$F77"; then
6883 ac_cv_prog_F77="$F77" # Let the user override the test.
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 if test -n "$F77"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6905 $as_echo "$F77" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6912 test -n "$F77" && break
6915 if test -z "$F77"; then
6917 for ac_prog in ifc ifort
6919 # Extract the first word of "$ac_prog", so it can be a program name with args.
6920 set dummy $ac_prog; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 if test -n "$ac_ct_F77"; then
6927 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936 ac_cv_prog_ac_ct_F77="$ac_prog"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6947 if test -n "$ac_ct_F77"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6949 $as_echo "$ac_ct_F77" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6956 test -n "$ac_ct_F77" && break
6959 if test "x$ac_ct_F77" = x; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6973 # Provide some information about the compiler.
6974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6977 for ac_option in --version -v -V -qversion; do
6978 { { ac_try="$ac_compiler $ac_option >&5"
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6984 $as_echo "$ac_try_echo"; } >&5
6985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6987 if test -s conftest.err; then
6989 ... rest of stderr output deleted ...
6990 10q' conftest.err >conftest.er1
6991 cat conftest.er1 >&5
6993 rm -f conftest.er1 conftest.err
6994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995 test $ac_status = 0; }
6999 # If we don't use `.F' as extension, the preprocessor is not run on the
7000 # input file. (Note that this only needs to work for GNU compilers.)
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7004 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7005 if ${ac_cv_f77_compiler_gnu+:} false; then :
7006 $as_echo_n "(cached) " >&6
7008 cat > conftest.$ac_ext <<_ACEOF
7016 if ac_fn_f77_try_compile "$LINENO"; then :
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7026 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7028 ac_test_FFLAGS=${FFLAGS+set}
7029 ac_save_FFLAGS=$FFLAGS
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7032 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7033 if ${ac_cv_prog_f77_g+:} false; then :
7034 $as_echo_n "(cached) " >&6
7037 cat > conftest.$ac_ext <<_ACEOF
7042 if ac_fn_f77_try_compile "$LINENO"; then :
7043 ac_cv_prog_f77_g=yes
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7051 $as_echo "$ac_cv_prog_f77_g" >&6; }
7052 if test "$ac_test_FFLAGS" = set; then
7053 FFLAGS=$ac_save_FFLAGS
7054 elif test $ac_cv_prog_f77_g = yes; then
7055 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7061 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7068 if test $ac_compiler_gnu = yes; then
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 if test -z "$F77"; then
7080 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7084 if test -z "$F77"; then
7085 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7087 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7088 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7090 if test -n "$ac_tool_prefix"; then
7091 for ac_prog in gfortran ifc ifort
7093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_F77+:} false; then :
7098 $as_echo_n "(cached) " >&6
7100 if test -n "$F77"; then
7101 ac_cv_prog_F77="$F77" # Let the user override the test.
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 if test -n "$F77"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7123 $as_echo "$F77" >&6; }
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7130 test -n "$F77" && break
7133 if test -z "$F77"; then
7135 for ac_prog in gfortran ifc ifort
7137 # Extract the first word of "$ac_prog", so it can be a program name with args.
7138 set dummy $ac_prog; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7142 $as_echo_n "(cached) " >&6
7144 if test -n "$ac_ct_F77"; then
7145 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_F77="$ac_prog"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7165 if test -n "$ac_ct_F77"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7167 $as_echo "$ac_ct_F77" >&6; }
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7174 test -n "$ac_ct_F77" && break
7177 if test "x$ac_ct_F77" = x; then
7180 case $cross_compiling:$ac_tool_warned in
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7184 ac_tool_warned=yes ;;
7191 # Provide some information about the compiler.
7192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7195 for ac_option in --version -v -V -qversion; do
7196 { { ac_try="$ac_compiler $ac_option >&5"
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7202 $as_echo "$ac_try_echo"; } >&5
7203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7205 if test -s conftest.err; then
7207 ... rest of stderr output deleted ...
7208 10q' conftest.err >conftest.er1
7209 cat conftest.er1 >&5
7211 rm -f conftest.er1 conftest.err
7212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213 test $ac_status = 0; }
7217 # If we don't use `.F' as extension, the preprocessor is not run on the
7218 # input file. (Note that this only needs to work for GNU compilers.)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7222 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7223 if ${ac_cv_f77_compiler_gnu+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 cat > conftest.$ac_ext <<_ACEOF
7234 if ac_fn_f77_try_compile "$LINENO"; then :
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7244 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7246 ac_test_FFLAGS=${FFLAGS+set}
7247 ac_save_FFLAGS=$FFLAGS
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7250 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7251 if ${ac_cv_prog_f77_g+:} false; then :
7252 $as_echo_n "(cached) " >&6
7255 cat > conftest.$ac_ext <<_ACEOF
7260 if ac_fn_f77_try_compile "$LINENO"; then :
7261 ac_cv_prog_f77_g=yes
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7269 $as_echo "$ac_cv_prog_f77_g" >&6; }
7270 if test "$ac_test_FFLAGS" = set; then
7271 FFLAGS=$ac_save_FFLAGS
7272 elif test $ac_cv_prog_f77_g = yes; then
7273 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7279 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7286 if test $ac_compiler_gnu = yes; then
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297 if test -z "$F77"; then
7298 # Best effort to find a compiler (might be g77)
7300 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7301 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7302 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7303 if test -n "$ac_tool_prefix"; then
7304 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
7306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_F77+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 if test -n "$F77"; then
7314 ac_cv_prog_F77="$F77" # Let the user override the test.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 if test -n "$F77"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7336 $as_echo "$F77" >&6; }
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7343 test -n "$F77" && break
7346 if test -z "$F77"; then
7348 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
7350 # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 if test -n "$ac_ct_F77"; then
7358 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367 ac_cv_prog_ac_ct_F77="$ac_prog"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7378 if test -n "$ac_ct_F77"; then
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7380 $as_echo "$ac_ct_F77" >&6; }
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7387 test -n "$ac_ct_F77" && break
7390 if test "x$ac_ct_F77" = x; then
7393 case $cross_compiling:$ac_tool_warned in
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7404 # Provide some information about the compiler.
7405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7408 for ac_option in --version -v -V -qversion; do
7409 { { ac_try="$ac_compiler $ac_option >&5"
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7415 $as_echo "$ac_try_echo"; } >&5
7416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7418 if test -s conftest.err; then
7420 ... rest of stderr output deleted ...
7421 10q' conftest.err >conftest.er1
7422 cat conftest.er1 >&5
7424 rm -f conftest.er1 conftest.err
7425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7426 test $ac_status = 0; }
7430 # If we don't use `.F' as extension, the preprocessor is not run on the
7431 # input file. (Note that this only needs to work for GNU compilers.)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7435 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7436 if ${ac_cv_f77_compiler_gnu+:} false; then :
7437 $as_echo_n "(cached) " >&6
7439 cat > conftest.$ac_ext <<_ACEOF
7447 if ac_fn_f77_try_compile "$LINENO"; then :
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7457 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7459 ac_test_FFLAGS=${FFLAGS+set}
7460 ac_save_FFLAGS=$FFLAGS
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7463 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7464 if ${ac_cv_prog_f77_g+:} false; then :
7465 $as_echo_n "(cached) " >&6
7468 cat > conftest.$ac_ext <<_ACEOF
7473 if ac_fn_f77_try_compile "$LINENO"; then :
7474 ac_cv_prog_f77_g=yes
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7482 $as_echo "$ac_cv_prog_f77_g" >&6; }
7483 if test "$ac_test_FFLAGS" = set; then
7484 FFLAGS=$ac_save_FFLAGS
7485 elif test $ac_cv_prog_f77_g = yes; then
7486 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7492 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7499 if test $ac_compiler_gnu = yes; then
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7514 # case statements were introduced in fortran 90 so we can use that
7515 # as a test to see if our compiler is fortran 90 compatible.
7517 if test -z "$F77"; then
7518 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7522 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7525 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7526 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7530 cat > conftest.$ac_ext <<_ACEOF
7536 print*, "case is 1, i is ", i
7538 print*, "case is 2 to 3, i is ", i
7540 print*, "default case, i is ", i
7546 if ac_fn_f77_try_compile "$LINENO"; then :
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7550 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 ac_cpp='$CPP $CPPFLAGS'
7562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567 ############ C ###############
7570 if test "$with_gcc" = yes; then
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576 if test -n "$ac_tool_prefix"; then
7579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if ${ac_cv_prog_CC+:} false; then :
7584 $as_echo_n "(cached) " >&6
7586 if test -n "$CC"; then
7587 ac_cv_prog_CC="$CC" # Let the user override the test.
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 if test -n "$CC"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7609 $as_echo "$CC" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 test -n "$CC" && break
7619 if test -z "$CC"; then
7623 # Extract the first word of "$ac_prog", so it can be a program name with args.
7624 set dummy $ac_prog; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7628 $as_echo_n "(cached) " >&6
7630 if test -n "$ac_ct_CC"; then
7631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_ac_ct_CC="$ac_prog"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7651 if test -n "$ac_ct_CC"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7653 $as_echo "$ac_ct_CC" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 test -n "$ac_ct_CC" && break
7663 if test "x$ac_ct_CC" = x; then
7666 case $cross_compiling:$ac_tool_warned in
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7677 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7679 as_fn_error $? "no acceptable C compiler found in \$PATH
7680 See \`config.log' for more details" "$LINENO" 5; }
7682 # Provide some information about the compiler.
7683 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7686 for ac_option in --version -v -V -qversion; do
7687 { { ac_try="$ac_compiler $ac_option >&5"
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7693 $as_echo "$ac_try_echo"; } >&5
7694 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7696 if test -s conftest.err; then
7698 ... rest of stderr output deleted ...
7699 10q' conftest.err >conftest.er1
7700 cat conftest.er1 >&5
7702 rm -f conftest.er1 conftest.err
7703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704 test $ac_status = 0; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7708 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7709 if ${ac_cv_c_compiler_gnu+:} false; then :
7710 $as_echo_n "(cached) " >&6
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7726 if ac_fn_c_try_compile "$LINENO"; then :
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7736 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7737 if test $ac_compiler_gnu = yes; then
7742 ac_test_CFLAGS=${CFLAGS+set}
7743 ac_save_CFLAGS=$CFLAGS
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7745 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7746 if ${ac_cv_prog_cc_g+:} false; then :
7747 $as_echo_n "(cached) " >&6
7749 ac_save_c_werror_flag=$ac_c_werror_flag
7750 ac_c_werror_flag=yes
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7764 if ac_fn_c_try_compile "$LINENO"; then :
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7779 if ac_fn_c_try_compile "$LINENO"; then :
7782 ac_c_werror_flag=$ac_save_c_werror_flag
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7795 if ac_fn_c_try_compile "$LINENO"; then :
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 ac_c_werror_flag=$ac_save_c_werror_flag
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7806 $as_echo "$ac_cv_prog_cc_g" >&6; }
7807 if test "$ac_test_CFLAGS" = set; then
7808 CFLAGS=$ac_save_CFLAGS
7809 elif test $ac_cv_prog_cc_g = yes; then
7810 if test "$GCC" = yes; then
7816 if test "$GCC" = yes; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7823 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7824 if ${ac_cv_prog_cc_c89+:} false; then :
7825 $as_echo_n "(cached) " >&6
7827 ac_cv_prog_cc_c89=no
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7834 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7835 struct buf { int x; };
7836 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7837 static char *e (p, i)
7843 static char *f (char * (*g) (char **, int), char **p, ...)
7848 s = g (p, va_arg (v,int));
7853 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7854 function prototypes and stuff, but not '\xHH' hex character constants.
7855 These don't provoke an error unfortunately, instead are silently treated
7856 as 'x'. The following induces an error, until -std is added to get
7857 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7858 array size at least. It's necessary to write '\x00'==0 to get something
7859 that's true only with -std. */
7860 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7862 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7863 inside strings and character constants. */
7865 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7867 int test (int i, double x);
7868 struct s1 {int (*f) (int a);};
7869 struct s2 {int (*f) (double a);};
7870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7884 CC="$ac_save_CC $ac_arg"
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 ac_cv_prog_cc_c89=$ac_arg
7888 rm -f core conftest.err conftest.$ac_objext
7889 test "x$ac_cv_prog_cc_c89" != "xno" && break
7891 rm -f conftest.$ac_ext
7896 case "x$ac_cv_prog_cc_c89" in
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7899 $as_echo "none needed" >&6; } ;;
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7902 $as_echo "unsupported" >&6; } ;;
7904 CC="$CC $ac_cv_prog_cc_c89"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7906 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7908 if test "x$ac_cv_prog_cc_c89" != xno; then :
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919 ac_cpp='$CPP $CPPFLAGS'
7920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7924 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7925 if ${am_cv_prog_cc_c_o+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7939 # Make sure it works both with $CC and with simple cc.
7940 # Following AC_PROG_CC_C_O, we do the test twice because some
7941 # compilers refuse to overwrite an existing .o file with -o,
7942 # though they will create one.
7943 am_cv_prog_cc_c_o=yes
7945 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7946 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } \
7950 && test -f conftest2.$ac_objext; then
7953 am_cv_prog_cc_c_o=no
7957 rm -f core conftest*
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7961 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7962 if test "$am_cv_prog_cc_c_o" != yes; then
7963 # Losing compiler, so override with the script.
7964 # FIXME: It is wrong to rewrite CC.
7965 # But if we don't then we get into trouble of one sort or another.
7966 # A longer-term fix would be to have automake use am__CC in this case,
7967 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7968 CC="$am_aux_dir/compile $CC"
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977 if test -z "$CC"; then
7978 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7982 if test "$with_intelcompilers" = yes; then
7984 ac_cpp='$CPP $CPPFLAGS'
7985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988 if test -n "$ac_tool_prefix"; then
7989 for ac_prog in icc ecc
7991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7993 { $as_echo "$as_me:${as_linen