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
666 COMPILATION_TESTS_FALSE
667 COMPILATION_TESTS_TRUE
672 INSTALL_HELP_XML_FALSE
673 INSTALL_HELP_XML_TRUE
714 GENERATE_LOCALIZATION_FILES_FALSE
715 GENERATE_LOCALIZATION_FILES_TRUE
748 XGETTEXT_EXTRA_OPTIONS
756 GETTEXT_MACRO_VERSION
777 SWIG_RUNTIME_LIBS_DIR
831 EXTERNAL_SCIRENDERER_FALSE
832 EXTERNAL_SCIRENDERER_TRUE
842 IS_MIPS_SGI_IRIX_FALSE
843 IS_MIPS_SGI_IRIX_TRUE
896 MAINTAINER_MODE_FALSE
899 RELOCATABLE_VIA_LD_FALSE
900 RELOCATABLE_VIA_LD_TRUE
927 INSTALL_STRIP_PROGRAM
930 SCILAB_BINARY_VERSION
931 SCILAB_LIBRARY_VERSION
932 SCILAB_VERSION_MAINTENANCE
962 program_transform_name
975 enable_option_checking
980 enable_maintainer_mode
981 enable_dependency_tracking
990 enable_stop_on_warning
996 enable_compilation_tests
1001 with_min_macosx_version
1004 with_external_scirenderer
1010 with_libiconv_prefix
1018 enable_build_localization
1024 with_umfpack_library
1025 with_umfpack_include
1038 with_install_help_xml
1039 enable_build_doxygen
1040 enable_force_full_link
1047 enable_static_system_lib
1049 ac_precious_vars='build_alias
1074 # Initialize some variables set by options.
1076 ac_init_version=false
1077 ac_unrecognized_opts=
1078 ac_unrecognized_sep=
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1088 program_transform_name=s,x,x,
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1113 infodir='${datarootdir}/info'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1134 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1139 # Accept the important Cygnus configure options, so we can diagnose typos.
1141 case $ac_dashdash$ac_option in
1145 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1147 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1148 bindir=$ac_optarg ;;
1150 -build | --build | --buil | --bui | --bu)
1151 ac_prev=build_alias ;;
1152 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1153 build_alias=$ac_optarg ;;
1155 -cache-file | --cache-file | --cache-fil | --cache-fi \
1156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1157 ac_prev=cache_file ;;
1158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1160 cache_file=$ac_optarg ;;
1162 --config-cache | -C)
1163 cache_file=config.cache ;;
1165 -datadir | --datadir | --datadi | --datad)
1167 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1168 datadir=$ac_optarg ;;
1170 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1171 | --dataroo | --dataro | --datar)
1172 ac_prev=datarootdir ;;
1173 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1174 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1175 datarootdir=$ac_optarg ;;
1177 -disable-* | --disable-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid feature name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "enable_$ac_useropt"
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval enable_$ac_useropt=no ;;
1193 -docdir | --docdir | --docdi | --doc | --do)
1195 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1196 docdir=$ac_optarg ;;
1198 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1200 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1201 dvidir=$ac_optarg ;;
1203 -enable-* | --enable-*)
1204 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error $? "invalid feature name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1212 "enable_$ac_useropt"
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1217 eval enable_$ac_useropt=\$ac_optarg ;;
1219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1221 | --exec | --exe | --ex)
1222 ac_prev=exec_prefix ;;
1223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1225 | --exec=* | --exe=* | --ex=*)
1226 exec_prefix=$ac_optarg ;;
1228 -gas | --gas | --ga | --g)
1229 # Obsolete; use --with-gas.
1232 -help | --help | --hel | --he | -h)
1233 ac_init_help=long ;;
1234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1235 ac_init_help=recursive ;;
1236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1237 ac_init_help=short ;;
1239 -host | --host | --hos | --ho)
1240 ac_prev=host_alias ;;
1241 -host=* | --host=* | --hos=* | --ho=*)
1242 host_alias=$ac_optarg ;;
1244 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1246 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1248 htmldir=$ac_optarg ;;
1250 -includedir | --includedir | --includedi | --included | --include \
1251 | --includ | --inclu | --incl | --inc)
1252 ac_prev=includedir ;;
1253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1254 | --includ=* | --inclu=* | --incl=* | --inc=*)
1255 includedir=$ac_optarg ;;
1257 -infodir | --infodir | --infodi | --infod | --info | --inf)
1259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1260 infodir=$ac_optarg ;;
1262 -libdir | --libdir | --libdi | --libd)
1264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1265 libdir=$ac_optarg ;;
1267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1268 | --libexe | --libex | --libe)
1269 ac_prev=libexecdir ;;
1270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1271 | --libexe=* | --libex=* | --libe=*)
1272 libexecdir=$ac_optarg ;;
1274 -localedir | --localedir | --localedi | --localed | --locale)
1275 ac_prev=localedir ;;
1276 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1277 localedir=$ac_optarg ;;
1279 -localstatedir | --localstatedir | --localstatedi | --localstated \
1280 | --localstate | --localstat | --localsta | --localst | --locals)
1281 ac_prev=localstatedir ;;
1282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1283 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1284 localstatedir=$ac_optarg ;;
1286 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1288 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1289 mandir=$ac_optarg ;;
1291 -nfp | --nfp | --nf)
1292 # Obsolete; use --without-fp.
1295 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1296 | --no-cr | --no-c | -n)
1299 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1300 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1303 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1304 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1305 | --oldin | --oldi | --old | --ol | --o)
1306 ac_prev=oldincludedir ;;
1307 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1308 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1309 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1310 oldincludedir=$ac_optarg ;;
1312 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1314 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1315 prefix=$ac_optarg ;;
1317 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1318 | --program-pre | --program-pr | --program-p)
1319 ac_prev=program_prefix ;;
1320 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1321 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1322 program_prefix=$ac_optarg ;;
1324 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1325 | --program-suf | --program-su | --program-s)
1326 ac_prev=program_suffix ;;
1327 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1328 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1329 program_suffix=$ac_optarg ;;
1331 -program-transform-name | --program-transform-name \
1332 | --program-transform-nam | --program-transform-na \
1333 | --program-transform-n | --program-transform- \
1334 | --program-transform | --program-transfor \
1335 | --program-transfo | --program-transf \
1336 | --program-trans | --program-tran \
1337 | --progr-tra | --program-tr | --program-t)
1338 ac_prev=program_transform_name ;;
1339 -program-transform-name=* | --program-transform-name=* \
1340 | --program-transform-nam=* | --program-transform-na=* \
1341 | --program-transform-n=* | --program-transform-=* \
1342 | --program-transform=* | --program-transfor=* \
1343 | --program-transfo=* | --program-transf=* \
1344 | --program-trans=* | --program-tran=* \
1345 | --progr-tra=* | --program-tr=* | --program-t=*)
1346 program_transform_name=$ac_optarg ;;
1348 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1350 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1351 pdfdir=$ac_optarg ;;
1353 -psdir | --psdir | --psdi | --psd | --ps)
1355 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359 | -silent | --silent | --silen | --sile | --sil)
1362 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1364 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1366 sbindir=$ac_optarg ;;
1368 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1369 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1370 | --sharedst | --shareds | --shared | --share | --shar \
1372 ac_prev=sharedstatedir ;;
1373 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1374 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1375 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1377 sharedstatedir=$ac_optarg ;;
1379 -site | --site | --sit)
1381 -site=* | --site=* | --sit=*)
1384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1387 srcdir=$ac_optarg ;;
1389 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1390 | --syscon | --sysco | --sysc | --sys | --sy)
1391 ac_prev=sysconfdir ;;
1392 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1393 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1394 sysconfdir=$ac_optarg ;;
1396 -target | --target | --targe | --targ | --tar | --ta | --t)
1397 ac_prev=target_alias ;;
1398 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1399 target_alias=$ac_optarg ;;
1401 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1404 -version | --version | --versio | --versi | --vers | -V)
1405 ac_init_version=: ;;
1408 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411 as_fn_error $? "invalid package name: $ac_useropt"
1412 ac_useropt_orig=$ac_useropt
1413 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1418 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1419 ac_unrecognized_sep=', ';;
1421 eval with_$ac_useropt=\$ac_optarg ;;
1423 -without-* | --without-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 as_fn_error $? "invalid package name: $ac_useropt"
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1437 eval with_$ac_useropt=no ;;
1440 # Obsolete; use --with-x.
1443 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1444 | --x-incl | --x-inc | --x-in | --x-i)
1445 ac_prev=x_includes ;;
1446 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1447 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1448 x_includes=$ac_optarg ;;
1450 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1451 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1452 ac_prev=x_libraries ;;
1453 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1454 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1455 x_libraries=$ac_optarg ;;
1457 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1458 Try \`$0 --help' for more information"
1462 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1463 # Reject names that are not valid shell variable names.
1464 case $ac_envvar in #(
1465 '' | [0-9]* | *[!_$as_cr_alnum]* )
1466 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1468 eval $ac_envvar=\$ac_optarg
1469 export $ac_envvar ;;
1472 # FIXME: should be removed in autoconf 3.0.
1473 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1474 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1475 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1476 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1482 if test -n "$ac_prev"; then
1483 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1484 as_fn_error $? "missing argument to $ac_option"
1487 if test -n "$ac_unrecognized_opts"; then
1488 case $enable_option_checking in
1490 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1491 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1495 # Check all directory arguments for consistency.
1496 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1497 datadir sysconfdir sharedstatedir localstatedir includedir \
1498 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1499 libdir localedir mandir
1501 eval ac_val=\$$ac_var
1502 # Remove trailing slashes.
1505 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1506 eval $ac_var=\$ac_val;;
1508 # Be sure to have absolute directory names.
1510 [\\/$]* | ?:[\\/]* ) continue;;
1511 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1513 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1516 # There might be people who depend on the old broken behavior: `$host'
1517 # used to hold the argument of --host etc.
1518 # FIXME: To remove some day.
1521 target=$target_alias
1523 # FIXME: To remove some day.
1524 if test "x$host_alias" != x; then
1525 if test "x$build_alias" = x; then
1526 cross_compiling=maybe
1527 elif test "x$build_alias" != "x$host_alias"; then
1533 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1535 test "$silent" = yes && exec 6>/dev/null
1538 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1539 ac_ls_di=`ls -di .` &&
1540 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1541 as_fn_error $? "working directory cannot be determined"
1542 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1543 as_fn_error $? "pwd does not report name of working directory"
1546 # Find the source files, if location was not specified.
1547 if test -z "$srcdir"; then
1548 ac_srcdir_defaulted=yes
1549 # Try the directory containing this script, then the parent directory.
1550 ac_confdir=`$as_dirname -- "$as_myself" ||
1551 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1552 X"$as_myself" : 'X\(//\)[^/]' \| \
1553 X"$as_myself" : 'X\(//\)$' \| \
1554 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1555 $as_echo X"$as_myself" |
1556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1578 ac_srcdir_defaulted=no
1580 if test ! -r "$srcdir/$ac_unique_file"; then
1581 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1582 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1584 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1586 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1588 # When building in place, set srcdir=.
1589 if test "$ac_abs_confdir" = "$ac_pwd"; then
1592 # Remove unnecessary trailing slashes from srcdir.
1593 # Double slashes in file names in object file debugging info
1594 # mess up M-x gdb in Emacs.
1596 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1598 for ac_var in $ac_precious_vars; do
1599 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1600 eval ac_env_${ac_var}_value=\$${ac_var}
1601 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1602 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1606 # Report the --help message.
1608 if test "$ac_init_help" = "long"; then
1609 # Omit some internal or obsolete options to make the list less imposing.
1610 # This message is too long to be a string in the A/UX 3.1 sh.
1612 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1614 Usage: $0 [OPTION]... [VAR=VALUE]...
1616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1617 VAR=VALUE. See below for descriptions of some of the useful variables.
1619 Defaults for the options are specified in brackets.
1622 -h, --help display this help and exit
1623 --help=short display options specific to this package
1624 --help=recursive display the short help of all the included packages
1625 -V, --version display version information and exit
1626 -q, --quiet, --silent do not print \`checking ...' messages
1627 --cache-file=FILE cache test results in FILE [disabled]
1628 -C, --config-cache alias for \`--cache-file=config.cache'
1629 -n, --no-create do not create output files
1630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1632 Installation directories:
1633 --prefix=PREFIX install architecture-independent files in PREFIX
1634 [$ac_default_prefix]
1635 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1638 By default, \`make install' will install all the files in
1639 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1640 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1641 for instance \`--prefix=\$HOME'.
1643 For better control, use the options below.
1645 Fine tuning of the installation directories:
1646 --bindir=DIR user executables [EPREFIX/bin]
1647 --sbindir=DIR system admin executables [EPREFIX/sbin]
1648 --libexecdir=DIR program executables [EPREFIX/libexec]
1649 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1650 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1651 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1652 --libdir=DIR object code libraries [EPREFIX/lib]
1653 --includedir=DIR C header files [PREFIX/include]
1654 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1655 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1656 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1657 --infodir=DIR info documentation [DATAROOTDIR/info]
1658 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1659 --mandir=DIR man documentation [DATAROOTDIR/man]
1660 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1661 --htmldir=DIR html documentation [DOCDIR]
1662 --dvidir=DIR dvi documentation [DOCDIR]
1663 --pdfdir=DIR pdf documentation [DOCDIR]
1664 --psdir=DIR ps documentation [DOCDIR]
1670 --program-prefix=PREFIX prepend PREFIX to installed program names
1671 --program-suffix=SUFFIX append SUFFIX to installed program names
1672 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1675 --x-includes=DIR X include files are in DIR
1676 --x-libraries=DIR X library files are in DIR
1679 --build=BUILD configure for building on BUILD [guessed]
1680 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1684 if test -n "$ac_init_help"; then
1685 case $ac_init_help in
1686 short | recursive ) echo "Configuration of Scilab 5:";;
1691 --disable-option-checking ignore unrecognized --enable/--with options
1692 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1693 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1694 --disable-largefile omit support for large files
1695 --enable-relocatable install a package that can be moved in the filesystem
1696 --disable-rpath do not hardcode runtime library paths
1697 --enable-maintainer-mode
1698 enable make rules and dependencies not useful (and
1699 sometimes confusing) to the casual installer
1700 --enable-dependency-tracking
1701 do not reject slow dependency extractors
1702 --disable-dependency-tracking
1703 speeds up one-time build
1704 --enable-silent-rules less verbose build output (undo: "make V=1")
1705 --disable-silent-rules verbose build output (undo: "make V=0")
1706 --enable-debug Do not optimize and print warning messages
1707 (C/C++/Fortran/Java code)
1708 --enable-debug-C Do not optimize and print warning messages (C code)
1709 --enable-debug-CXX Do not optimize and print warning messages (C++
1711 --enable-debug-java Print warning messages and line numbers (Java code)
1712 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1714 --enable-debug-linker Print warning messages from the linker (ld)
1715 --enable-code-coverage Enable code coverage
1716 --enable-stop-on-warning
1717 Stop the compilation on the first warning found in
1719 --enable-compilation-tests
1720 Enable unitary tests and checks at compilation time
1721 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1722 --disable-nls do not use Native Language Support
1723 --disable-build-localization
1724 Disable the localization build
1726 --disable-build-help Disable the help build
1728 --enable-build-doxygen Generate doxygen C/C++ documentation
1729 --enable-force-full-link
1730 Forces the explicit link between libscilab and some
1731 "on-the-fly" loaded libraries. NOT USE IN
1733 --enable-static[=PKGS] build static libraries [default=no]
1734 --enable-shared[=PKGS] build shared libraries [default=yes]
1735 --enable-fast-install[=PKGS]
1736 optimize for fast installation [default=yes]
1737 --disable-libtool-lock avoid locking (might break parallel builds)
1738 --disable-ccache Disable the use of ccache
1740 --disable-static-system-lib
1741 Disable the usage of the static stdc++ and libgcc
1745 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1746 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1747 --with-gnu-ld assume the C compiler uses GNU ld default=no
1748 --with-gcc Use gcc C compiler
1749 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1750 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1751 compilers (GNU/Linux only)
1752 --without-tk Disable the interface to Tcl/Tk
1753 --without-javasci Disable the Java/Scilab interface (javasci)
1754 --without-gui Disable the Scilab Graphical User Interface (GUI).
1755 Intended for embedded/clustering/grid Scilab
1756 --enable-build-swig=path
1757 Regenerate Java => C and Scilab => C wrappers
1759 --with-fink-prefix Provide a fink prefix. Default: /sw/
1760 --with-min-macosx-version
1761 Force compilers to generate binaries compatible with
1762 MacOSX minimal version.
1763 --with-hdf5-include=DIR Set the path to the HDF5 headers
1764 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1765 --with-external-scirenderer
1766 Disable the usage of the internal copy of
1767 scirenderer. Intended for packaging of Scilab
1768 --without-xcos Disable Xcos
1769 --without-modelica Disable the OCaml module (modelica)
1770 --with-jdk=DIR use JDK from DIR
1771 --with-ant=DIR Use ant from DIR
1772 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1773 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1774 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1775 --without-libintl-prefix don't search for libintl in includedir and libdir
1776 --without-fftw Disable the interface to the FFTW 3 library
1777 --with-fftw-include=DIR Set the path to the FFTW headers
1778 --with-fftw-library=DIR Set the path to the FFTW libraries
1779 --with-mpi compile with MPI library
1780 --without-openmp Disable the usage of OpenMP (parallelization of some
1782 --with-libxml2=PREFIX Set the path to your libxml2 installation
1783 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1785 --with-lapack-library=DIR
1786 set the path to the LAPACK library
1787 --without-arpack-ng Disable the interface to ARPACK-NG
1788 --with-arpack-library=DIR
1789 set the path to the ARPACK library
1790 --without-umfpack Disable the interface to the UMFPACK library
1791 --with-umfpack-library=DIR
1792 Set the path to the UMFPACK libraries
1793 --with-umfpack-include=DIR
1794 Set the path to the UMFPACK headers
1795 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1796 Expression Library) installation
1797 --with-curl=DIR Set the path to your CURL installation
1798 --with-tcl-library=DIR Set the path to the TCL library
1799 --with-tcl-include=DIR Set the path to the TCL headers
1800 --with-tk-library=DIR Set the path to the TK library
1801 --with-tk-include=DIR Set the path to the TK headers
1802 --with-x use the X Window System
1803 --without-matio Disable the interface to Matio (MAT File I/O
1805 --with-matio-include=DIR
1806 Set the path to the MATIO headers
1807 --with-matio-library=DIR
1808 Set the path to the MATIO libraries
1809 --with-docbook=DIR Set the path to the docbook package
1810 --with-install-help-xml make install will install XML files
1812 --with-pic try to use only PIC/non-PIC objects [default=use
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1816 Some influential environment variables:
1817 CC C compiler command
1818 CFLAGS C compiler flags
1819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1820 nonstandard directory <lib dir>
1821 LIBS libraries to pass to the linker, e.g. -l<library>
1822 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1823 you have headers in a nonstandard directory <include dir>
1825 PKG_CONFIG path to pkg-config utility
1826 F77 Fortran 77 compiler command
1827 FFLAGS Fortran 77 compiler flags
1828 CXX C++ compiler command
1829 CXXFLAGS C++ compiler flags
1830 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1831 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1832 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1833 CURL_LIBS linker flags for CURL, overriding pkg-config
1834 XMKMF Path to xmkmf, Makefile generator for X Window System
1836 C compiler flags for MATIO, overriding pkg-config
1837 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1838 CXXCPP C++ preprocessor
1840 Use these variables to override the choices made by `configure' or to help
1841 it to find libraries and programs with nonstandard names/locations.
1843 Report bugs to <http://bugzilla.scilab.org/>.
1848 if test "$ac_init_help" = "recursive"; then
1849 # If there are subdirs, report their specific --help.
1850 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1851 test -d "$ac_dir" ||
1852 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1860 # A ".." for each directory in $ac_dir_suffix.
1861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1862 case $ac_top_builddir_sub in
1863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1867 ac_abs_top_builddir=$ac_pwd
1868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1869 # for backward compatibility:
1870 ac_top_builddir=$ac_top_build_prefix
1873 .) # We are building in place.
1875 ac_top_srcdir=$ac_top_builddir_sub
1876 ac_abs_top_srcdir=$ac_pwd ;;
1877 [\\/]* | ?:[\\/]* ) # Absolute name.
1878 ac_srcdir=$srcdir$ac_dir_suffix;
1879 ac_top_srcdir=$srcdir
1880 ac_abs_top_srcdir=$srcdir ;;
1882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1883 ac_top_srcdir=$ac_top_build_prefix$srcdir
1884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1888 cd "$ac_dir" || { ac_status=$?; continue; }
1889 # Check for guested configure.
1890 if test -f "$ac_srcdir/configure.gnu"; then
1892 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1893 elif test -f "$ac_srcdir/configure"; then
1895 $SHELL "$ac_srcdir/configure" --help=recursive
1897 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1899 cd "$ac_pwd" || { ac_status=$?; break; }
1903 test -n "$ac_init_help" && exit $ac_status
1904 if $ac_init_version; then
1907 generated by GNU Autoconf 2.69
1909 Copyright (C) 2012 Free Software Foundation, Inc.
1910 This configure script is free software; the Free Software Foundation
1911 gives unlimited permission to copy, distribute and modify it.
1916 ## ------------------------ ##
1917 ## Autoconf initialization. ##
1918 ## ------------------------ ##
1920 # ac_fn_c_try_compile LINENO
1921 # --------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_c_try_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_c_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.$ac_objext; then :
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_try_compile
1958 # ac_fn_c_try_cpp LINENO
1959 # ----------------------
1960 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973 if test -s conftest.err; then
1974 grep -v '^ *+' conftest.err >conftest.er1
1975 cat conftest.er1 >&5
1976 mv -f conftest.er1 conftest.err
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } > conftest.i && {
1980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1981 test ! -s conftest.err
1985 $as_echo "$as_me: failed program was:" >&5
1986 sed 's/^/| /' conftest.$ac_ext >&5
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 as_fn_set_status $ac_retval
1995 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1996 # -------------------------------------------------------
1997 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1998 # the include files in INCLUDES and setting the cache variable VAR
2000 ac_fn_c_check_header_mongrel ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if eval \${$3+:} false; then :
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 # Is the header compilable?
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2015 $as_echo_n "checking $2 usability... " >&6; }
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 ac_header_compiler=yes
2024 ac_header_compiler=no
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2028 $as_echo "$ac_header_compiler" >&6; }
2030 # Is the header present?
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2032 $as_echo_n "checking $2 presence... " >&6; }
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2037 if ac_fn_c_try_cpp "$LINENO"; then :
2038 ac_header_preproc=yes
2040 ac_header_preproc=no
2042 rm -f conftest.err conftest.i conftest.$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2044 $as_echo "$ac_header_preproc" >&6; }
2046 # So? What about this header?
2047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2050 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2056 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2058 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2060 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2062 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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;}
2065 ( $as_echo "## ------------------------------------------ ##
2066 ## Report this to http://bugzilla.scilab.org/ ##
2067 ## ------------------------------------------ ##"
2068 ) | sed "s/^/$as_me: WARNING: /" >&2
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2076 eval "$3=\$ac_header_compiler"
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2084 } # ac_fn_c_check_header_mongrel
2086 # ac_fn_c_try_run LINENO
2087 # ----------------------
2088 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2089 # that executables *can* be run.
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if { { ac_try="$ac_link"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2099 $as_echo "$ac_try_echo"; } >&5
2100 (eval "$ac_link") 2>&5
2102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2103 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2104 { { case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_try") 2>&5
2112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113 test $ac_status = 0; }; }; then :
2116 $as_echo "$as_me: program exited with status $ac_status" >&5
2117 $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2120 ac_retval=$ac_status
2122 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 as_fn_set_status $ac_retval
2128 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2129 # -------------------------------------------------------
2130 # Tests whether HEADER exists and can be compiled using the include files in
2131 # INCLUDES, setting the cache variable VAR accordingly.
2132 ac_fn_c_check_header_compile ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2145 if ac_fn_c_try_compile "$LINENO"; then :
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_header_compile
2159 # ac_fn_c_try_link LINENO
2160 # -----------------------
2161 # Try to link conftest.$ac_ext, and return whether this succeeded.
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 rm -f conftest.$ac_objext conftest$ac_exeext
2166 if { { ac_try="$ac_link"
2168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2169 *) ac_try_echo=$ac_try;;
2171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2172 $as_echo "$ac_try_echo"; } >&5
2173 (eval "$ac_link") 2>conftest.err
2175 if test -s conftest.err; then
2176 grep -v '^ *+' conftest.err >conftest.er1
2177 cat conftest.er1 >&5
2178 mv -f conftest.er1 conftest.err
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; } && {
2182 test -z "$ac_c_werror_flag" ||
2183 test ! -s conftest.err
2184 } && test -s conftest$ac_exeext && {
2185 test "$cross_compiling" = yes ||
2186 test -x conftest$ac_exeext
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2196 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2197 # interfere with the next link command; also delete a directory that is
2198 # left behind by Apple's compiler. We do this before executing the actions.
2199 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201 as_fn_set_status $ac_retval
2203 } # ac_fn_c_try_link
2205 # ac_fn_c_check_func LINENO FUNC VAR
2206 # ----------------------------------
2207 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2208 ac_fn_c_check_func ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2220 #define $2 innocuous_$2
2222 /* System header to define __stub macros and hopefully few prototypes,
2223 which can conflict with char $2 (); below.
2224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2225 <limits.h> exists even on freestanding compilers. */
2228 # include <limits.h>
2230 # include <assert.h>
2235 /* Override any GCC internal prototype to avoid an error.
2236 Use char because int might match the return type of a GCC
2237 builtin and then its argument prototype would still apply. */
2242 /* The GNU C library defines this for functions which it implements
2243 to always fail with ENOSYS. Some functions are actually named
2244 something starting with __ and the normal name is an alias. */
2245 #if defined __stub_$2 || defined __stub___$2
2257 if ac_fn_c_try_link "$LINENO"; then :
2262 rm -f core conftest.err conftest.$ac_objext \
2263 conftest$ac_exeext conftest.$ac_ext
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_func
2272 # ac_fn_f77_try_compile LINENO
2273 # ----------------------------
2274 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2275 ac_fn_f77_try_compile ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 rm -f conftest.$ac_objext
2279 if { { ac_try="$ac_compile"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285 $as_echo "$ac_try_echo"; } >&5
2286 (eval "$ac_compile") 2>conftest.err
2288 if test -s conftest.err; then
2289 grep -v '^ *+' conftest.err >conftest.er1
2290 cat conftest.er1 >&5
2291 mv -f conftest.er1 conftest.err
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } && {
2295 test -z "$ac_f77_werror_flag" ||
2296 test ! -s conftest.err
2297 } && test -s conftest.$ac_objext; then :
2300 $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_f77_try_compile
2310 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2311 # --------------------------------------------
2312 # Tries to find the compile-time value of EXPR in a program that includes
2313 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2315 ac_fn_c_compute_int ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if test "$cross_compiling" = yes; then
2319 # Depending upon the size, compute the lo and hi bounds.
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) >= 0)];
2328 return test_array [0];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 return test_array [0];
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352 ac_hi=$ac_mid; break
2354 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2355 if test $ac_lo -le $ac_mid; then
2359 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2370 static int test_array [1 - 2 * !(($2) < 0)];
2372 return test_array [0];
2378 if ac_fn_c_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2387 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2389 return test_array [0];
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 ac_lo=$ac_mid; break
2398 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2399 if test $ac_mid -le $ac_hi; then
2403 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 # Binary search between lo and hi bounds.
2414 while test "x$ac_lo" != "x$ac_hi"; do
2415 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2422 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2424 return test_array [0];
2430 if ac_fn_c_try_compile "$LINENO"; then :
2433 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2445 static long int longval () { return $2; }
2446 static unsigned long int ulongval () { return $2; }
2453 FILE *f = fopen ("conftest.val", "w");
2458 long int i = longval ();
2461 fprintf (f, "%ld", i);
2465 unsigned long int i = ulongval ();
2468 fprintf (f, "%lu", i);
2470 /* Do not output a trailing newline, as this causes \r\n confusion
2471 on some platforms. */
2472 return ferror (f) || fclose (f) != 0;
2478 if ac_fn_c_try_run "$LINENO"; then :
2479 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2484 conftest.$ac_objext conftest.beam conftest.$ac_ext
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 as_fn_set_status $ac_retval
2491 } # ac_fn_c_compute_int
2493 # ac_fn_cxx_try_compile LINENO
2494 # ----------------------------
2495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_compile ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 rm -f conftest.$ac_objext
2500 if { { ac_try="$ac_compile"
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 $as_echo "$ac_try_echo"; } >&5
2507 (eval "$ac_compile") 2>conftest.err
2509 if test -s conftest.err; then
2510 grep -v '^ *+' conftest.err >conftest.er1
2511 cat conftest.er1 >&5
2512 mv -f conftest.er1 conftest.err
2514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2515 test $ac_status = 0; } && {
2516 test -z "$ac_cxx_werror_flag" ||
2517 test ! -s conftest.err
2518 } && test -s conftest.$ac_objext; then :
2521 $as_echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 as_fn_set_status $ac_retval
2529 } # ac_fn_cxx_try_compile
2531 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2532 # ----------------------------------------------------
2533 # Tries to find if the field MEMBER exists in type AGGR, after including
2534 # INCLUDES, setting cache variable VAR accordingly.
2535 ac_fn_c_check_member ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2539 $as_echo_n "checking for $2.$3... " >&6; }
2540 if eval \${$4+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2556 if ac_fn_c_try_compile "$LINENO"; then :
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2566 if (sizeof ac_aggr.$3)
2572 if ac_fn_c_try_compile "$LINENO"; then :
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2586 } # ac_fn_c_check_member
2588 # ac_fn_cxx_try_run LINENO
2589 # ------------------------
2590 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2591 # that executables *can* be run.
2592 ac_fn_cxx_try_run ()
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 if { { ac_try="$ac_link"
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2601 $as_echo "$ac_try_echo"; } >&5
2602 (eval "$ac_link") 2>&5
2604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2606 { { case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_try") 2>&5
2614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615 test $ac_status = 0; }; }; then :
2618 $as_echo "$as_me: program exited with status $ac_status" >&5
2619 $as_echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2622 ac_retval=$ac_status
2624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2626 as_fn_set_status $ac_retval
2628 } # ac_fn_cxx_try_run
2630 # ac_fn_cxx_try_cpp LINENO
2631 # ------------------------
2632 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2633 ac_fn_cxx_try_cpp ()
2635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2636 if { { ac_try="$ac_cpp conftest.$ac_ext"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642 $as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2645 if test -s conftest.err; then
2646 grep -v '^ *+' conftest.err >conftest.er1
2647 cat conftest.er1 >&5
2648 mv -f conftest.er1 conftest.err
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } > conftest.i && {
2652 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2653 test ! -s conftest.err
2657 $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2663 as_fn_set_status $ac_retval
2665 } # ac_fn_cxx_try_cpp
2667 # ac_fn_cxx_try_link LINENO
2668 # -------------------------
2669 # Try to link conftest.$ac_ext, and return whether this succeeded.
2670 ac_fn_cxx_try_link ()
2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2673 rm -f conftest.$ac_objext conftest$ac_exeext
2674 if { { ac_try="$ac_link"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680 $as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_link") 2>conftest.err
2683 if test -s conftest.err; then
2684 grep -v '^ *+' conftest.err >conftest.er1
2685 cat conftest.er1 >&5
2686 mv -f conftest.er1 conftest.err
2688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689 test $ac_status = 0; } && {
2690 test -z "$ac_cxx_werror_flag" ||
2691 test ! -s conftest.err
2692 } && test -s conftest$ac_exeext && {
2693 test "$cross_compiling" = yes ||
2694 test -x conftest$ac_exeext
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2705 # interfere with the next link command; also delete a directory that is
2706 # left behind by Apple's compiler. We do this before executing the actions.
2707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709 as_fn_set_status $ac_retval
2711 } # ac_fn_cxx_try_link
2713 # ac_fn_f77_try_link LINENO
2714 # -------------------------
2715 # Try to link conftest.$ac_ext, and return whether this succeeded.
2716 ac_fn_f77_try_link ()
2718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2719 rm -f conftest.$ac_objext conftest$ac_exeext
2720 if { { ac_try="$ac_link"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726 $as_echo "$ac_try_echo"; } >&5
2727 (eval "$ac_link") 2>conftest.err
2729 if test -s conftest.err; then
2730 grep -v '^ *+' conftest.err >conftest.er1
2731 cat conftest.er1 >&5
2732 mv -f conftest.er1 conftest.err
2734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735 test $ac_status = 0; } && {
2736 test -z "$ac_f77_werror_flag" ||
2737 test ! -s conftest.err
2738 } && test -s conftest$ac_exeext && {
2739 test "$cross_compiling" = yes ||
2740 test -x conftest$ac_exeext
2744 $as_echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2751 # interfere with the next link command; also delete a directory that is
2752 # left behind by Apple's compiler. We do this before executing the actions.
2753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2755 as_fn_set_status $ac_retval
2757 } # ac_fn_f77_try_link
2758 cat >config.log <<_ACEOF
2759 This file contains any messages produced by compilers while
2760 running configure, to aid debugging if configure makes a mistake.
2762 It was created by Scilab $as_me 5, which was
2763 generated by GNU Autoconf 2.69. Invocation command line was
2775 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2776 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2777 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2778 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2779 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2781 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2782 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2784 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2785 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2786 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2787 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2788 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2789 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2790 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 $as_echo "PATH: $as_dir"
2815 # Keep a trace of the command line.
2816 # Strip out --no-create and --no-recursion so they do not pile up.
2817 # Strip out --silent because we don't want to record it for future runs.
2818 # Also quote any args containing shell meta-characters.
2819 # Make two passes to allow for proper duplicate-argument suppression.
2823 ac_must_keep_next=false
2829 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2831 | -silent | --silent | --silen | --sile | --sil)
2834 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2837 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2839 as_fn_append ac_configure_args1 " '$ac_arg'"
2840 if test $ac_must_keep_next = true; then
2841 ac_must_keep_next=false # Got value, back to normal.
2844 *=* | --config-cache | -C | -disable-* | --disable-* \
2845 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2846 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2847 | -with-* | --with-* | -without-* | --without-* | --x)
2848 case "$ac_configure_args0 " in
2849 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2852 -* ) ac_must_keep_next=true ;;
2855 as_fn_append ac_configure_args " '$ac_arg'"
2860 { ac_configure_args0=; unset ac_configure_args0;}
2861 { ac_configure_args1=; unset ac_configure_args1;}
2863 # When interrupted or exit'd, cleanup temporary files, and complete
2864 # config.log. We remove comments because anyway the quotes in there
2865 # would cause problems or look ugly.
2866 # WARNING: Use '\'' to represent an apostrophe within the trap.
2867 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2868 trap 'exit_status=$?
2869 # Save into config.log some information that might help in debugging.
2873 $as_echo "## ---------------- ##
2874 ## Cache variables. ##
2875 ## ---------------- ##"
2877 # The following way of writing the cache mishandles newlines in values,
2879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2880 eval ac_val=\$$ac_var
2884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2888 _ | IFS | as_nl) ;; #(
2889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2890 *) { eval $ac_var=; unset $ac_var;} ;;
2895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2896 *${as_nl}ac_space=\ *)
2898 "s/'\''/'\''\\\\'\'''\''/g;
2899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2909 $as_echo "## ----------------- ##
2910 ## Output variables. ##
2911 ## ----------------- ##"
2913 for ac_var in $ac_subst_vars
2915 eval ac_val=\$$ac_var
2917 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 $as_echo "$ac_var='\''$ac_val'\''"
2923 if test -n "$ac_subst_files"; then
2924 $as_echo "## ------------------- ##
2925 ## File substitutions. ##
2926 ## ------------------- ##"
2928 for ac_var in $ac_subst_files
2930 eval ac_val=\$$ac_var
2932 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2934 $as_echo "$ac_var='\''$ac_val'\''"
2939 if test -s confdefs.h; then
2940 $as_echo "## ----------- ##
2947 test "$ac_signal" != 0 &&
2948 $as_echo "$as_me: caught signal $ac_signal"
2949 $as_echo "$as_me: exit $exit_status"
2951 rm -f core *.core core.conftest.* &&
2952 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2955 for ac_signal in 1 2 13 15; do
2956 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2960 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2961 rm -f -r conftest* confdefs.h
2963 $as_echo "/* confdefs.h */" > confdefs.h
2965 # Predefined preprocessor variables.
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_NAME "$PACKAGE_NAME"
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_STRING "$PACKAGE_STRING"
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_URL "$PACKAGE_URL"
2992 # Let the site file select an alternate cache file if it wants to.
2993 # Prefer an explicitly selected file to automatically selected ones.
2996 if test -n "$CONFIG_SITE"; then
2997 # We do not want a PATH search for config.site.
2998 case $CONFIG_SITE in #((
2999 -*) ac_site_file1=./$CONFIG_SITE;;
3000 */*) ac_site_file1=$CONFIG_SITE;;
3001 *) ac_site_file1=./$CONFIG_SITE;;
3003 elif test "x$prefix" != xNONE; then
3004 ac_site_file1=$prefix/share/config.site
3005 ac_site_file2=$prefix/etc/config.site
3007 ac_site_file1=$ac_default_prefix/share/config.site
3008 ac_site_file2=$ac_default_prefix/etc/config.site
3010 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3012 test "x$ac_site_file" = xNONE && continue
3013 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3015 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3016 sed 's/^/| /' "$ac_site_file" >&5
3018 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error $? "failed to load site script $ac_site_file
3021 See \`config.log' for more details" "$LINENO" 5; }
3025 if test -r "$cache_file"; then
3026 # Some versions of bash will fail to source /dev/null (special files
3027 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3028 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3030 $as_echo "$as_me: loading cache $cache_file" >&6;}
3032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3033 *) . "./$cache_file";;
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3038 $as_echo "$as_me: creating cache $cache_file" >&6;}
3042 gt_needs="$gt_needs "
3043 # Check that the precious variables saved in the cache have kept the same
3045 ac_cache_corrupted=false
3046 for ac_var in $ac_precious_vars; do
3047 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3048 eval ac_new_set=\$ac_env_${ac_var}_set
3049 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3050 eval ac_new_val=\$ac_env_${ac_var}_value
3051 case $ac_old_set,$ac_new_set in
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3054 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3055 ac_cache_corrupted=: ;;
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3058 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3059 ac_cache_corrupted=: ;;
3062 if test "x$ac_old_val" != "x$ac_new_val"; then
3063 # differences in whitespace do not lead to failure.
3064 ac_old_val_w=`echo x $ac_old_val`
3065 ac_new_val_w=`echo x $ac_new_val`
3066 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3068 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3069 ac_cache_corrupted=:
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3072 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3073 eval $ac_var=\$ac_old_val
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3076 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3078 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3081 # Pass precious variables to config.status.
3082 if test "$ac_new_set" = set; then
3084 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3085 *) ac_arg=$ac_var=$ac_new_val ;;
3087 case " $ac_configure_args " in
3088 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3089 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3093 if $ac_cache_corrupted; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3097 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3098 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3100 ## -------------------- ##
3101 ## Main body of script. ##
3102 ## -------------------- ##
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 SCI_BUILDDIR="`pwd`"
3115 SCI_SRCDIR="$srcdir"
3116 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3118 SCILAB_VERSION_MAJOR=5
3119 SCILAB_VERSION_MINOR=5
3120 SCILAB_VERSION_MAINTENANCE=0
3126 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3129 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3132 #shared library versioning
3133 #GENERIC_LIBRARY_VERSION=1:2:0
3137 # current:revision:age
3139 # | | +- increment if interfaces have been added
3140 # | | set to zero if interfaces have been removed
3142 # | +- increment if source code has changed
3143 # | set to zero if current is incremented
3144 # +- increment if interfaces have been added, removed or changed
3146 # Check if we have a space in the path to the source tree
3147 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3148 if test "$SPACE_IN_PATH" = "0"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3150 $as_echo "$as_me: WARNING: =====================================" >&2;}
3151 { $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
3152 $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;}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3154 $as_echo "$as_me: WARNING: =====================================" >&2;}
3159 for ac_dir in config "$srcdir"/config; do
3160 if test -f "$ac_dir/install-sh"; then
3162 ac_install_sh="$ac_aux_dir/install-sh -c"
3164 elif test -f "$ac_dir/install.sh"; then
3166 ac_install_sh="$ac_aux_dir/install.sh -c"
3168 elif test -f "$ac_dir/shtool"; then
3170 ac_install_sh="$ac_aux_dir/shtool install -c"
3174 if test -z "$ac_aux_dir"; then
3175 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3178 # These three variables are undocumented and unsupported,
3179 # and are intended to be withdrawn in a future Autoconf release.
3180 # They can cause serious problems if a builder's source tree is in a directory
3181 # whose full name contains unusual characters.
3182 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3183 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3184 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3187 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3191 # expand $ac_aux_dir to an absolute path
3192 am_aux_dir=`cd $ac_aux_dir && pwd`
3194 if test x"${install_sh}" != xset; then
3197 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3199 install_sh="\${SHELL} $am_aux_dir/install-sh"
3203 # Installed binaries are usually stripped using 'strip' when the user
3204 # run "make install-strip". However 'strip' might not be the right
3205 # tool to use in cross-compilation environments, therefore Automake
3206 # will honor the 'STRIP' environment variable to overrule this program.
3207 if test "$cross_compiling" != no; then
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}strip; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_STRIP+:} false; then :
3214 $as_echo_n "(cached) " >&6
3216 if test -n "$STRIP"; then
3217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 STRIP=$ac_cv_prog_STRIP
3237 if test -n "$STRIP"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3239 $as_echo "$STRIP" >&6; }
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3247 if test -z "$ac_cv_prog_STRIP"; then
3249 # Extract the first word of "strip", so it can be a program name with args.
3250 set dummy strip; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3254 $as_echo_n "(cached) " >&6
3256 if test -n "$ac_ct_STRIP"; then
3257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_STRIP="strip"
3267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3277 if test -n "$ac_ct_STRIP"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3279 $as_echo "$ac_ct_STRIP" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3285 if test "x$ac_ct_STRIP" = x; then
3288 case $cross_compiling:$ac_tool_warned in
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3297 STRIP="$ac_cv_prog_STRIP"
3301 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3304 $as_echo_n "checking whether ln -s works... " >&6; }
3306 if test "$LN_S" = "ln -s"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3311 $as_echo "no, using $LN_S" >&6; }
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$ac_cv_prog_CC"; then
3360 # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_CC="gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3396 if test "x$ac_ct_CC" = x; then
3399 case $cross_compiling:$ac_tool_warned in
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3411 if test -z "$CC"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418 $as_echo_n "(cached) " >&6
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_prog_CC="${ac_tool_prefix}cc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3452 if test -z "$CC"; then
3453 # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472 ac_prog_rejected=yes
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test $ac_prog_rejected = yes; then
3484 # We found a bogon in the path, so make sure we never use it.
3485 set dummy $ac_cv_prog_CC
3487 if test $# != 0; then
3488 # We chose a different compiler from the bogus one.
3489 # However, it has the same basename, so the bogon will be chosen
3490 # first if we set CC to just the basename; use the full file name.
3492 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3498 if test -n "$CC"; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 if test -n "$ac_tool_prefix"; then
3510 for ac_prog in cl.exe
3512 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3549 test -n "$CC" && break
3552 if test -z "$CC"; then
3554 for ac_prog in cl.exe
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 if test -n "$ac_ct_CC"; then
3564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_ac_ct_CC="$ac_prog"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3593 test -n "$ac_ct_CC" && break
3596 if test "x$ac_ct_CC" = x; then
3599 case $cross_compiling:$ac_tool_warned in
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details" "$LINENO" 5; }
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3621 for ac_option in --version -v -V -qversion; do
3622 { { ac_try="$ac_compiler $ac_option >&5"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3631 if test -s conftest.err; then
3633 ... rest of stderr output deleted ...
3634 10q' conftest.err >conftest.er1
3635 cat conftest.er1 >&5
3637 rm -f conftest.er1 conftest.err
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3666 for ac_file in $ac_files
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3675 if { { ac_try="$ac_link_default"
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682 (eval "$ac_link_default") 2>&5
3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685 test $ac_status = 0; }; then :
3686 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3691 for ac_file in $ac_files ''
3693 test -f "$ac_file" || continue
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3698 # We found the default executable, but exeext='' is most
3702 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3704 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 # We set ac_cv_exeext here because the later test for it is not
3707 # safe: cross compilers may not add the suffix if given an `-o'
3708 # argument, so we may need to know it at that point already.
3709 # Even if this section looks crufty: it has the advantage of
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3721 if test -z "$ac_file"; then :
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error 77 "C compiler cannot create executables
3730 See \`config.log' for more details" "$LINENO" 5; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733 $as_echo "yes" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3736 $as_echo_n "checking for C compiler default output file name... " >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3738 $as_echo "$ac_file" >&6; }
3739 ac_exeext=$ac_cv_exeext
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe'), while it won't with
3760 for ac_file in conftest.exe conftest conftest.*; do
3761 test -f "$ac_file" || continue
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details" "$LINENO" 5; }
3775 rm -f conftest conftest$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3788 FILE *f = fopen ("conftest.out", "w");
3789 return ferror (f) || fclose (f) != 0;
3795 ac_clean_files="$ac_clean_files conftest.out"
3796 # Check that the compiler produces executables we can run. If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3799 $as_echo_n "checking whether we are cross compiling... " >&6; }
3800 if test "$cross_compiling" != yes; then
3801 { { ac_try="$ac_link"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_link") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 if { ac_try='./conftest$ac_cv_exeext'
3813 { { case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_try") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; }; then
3825 if test "$cross_compiling" = maybe; then
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details" "$LINENO" 5; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3837 $as_echo "$cross_compiling" >&6; }
3839 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3842 $as_echo_n "checking for suffix of object files... " >&6; }
3843 if ${ac_cv_objext+:} false; then :
3844 $as_echo_n "(cached) " >&6
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3857 rm -f conftest.o conftest.obj
3858 if { { ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_compile") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 for ac_file in conftest.o conftest.obj conftest.*; do
3870 test -f "$ac_file" || continue;
3872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3873 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3878 $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of object files: cannot compile
3884 See \`config.log' for more details" "$LINENO" 5; }
3886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3889 $as_echo "$ac_cv_objext" >&6; }
3890 OBJEXT=$ac_cv_objext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3893 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3894 if ${ac_cv_c_compiler_gnu+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3911 if ac_fn_c_try_compile "$LINENO"; then :
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3921 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3927 ac_test_CFLAGS=${CFLAGS+set}
3928 ac_save_CFLAGS=$CFLAGS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3930 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3931 if ${ac_cv_prog_cc_g+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 ac_save_c_werror_flag=$ac_c_werror_flag
3935 ac_c_werror_flag=yes
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3949 if ac_fn_c_try_compile "$LINENO"; then :
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 ac_c_werror_flag=$ac_save_c_werror_flag
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3991 $as_echo "$ac_cv_prog_cc_g" >&6; }
3992 if test "$ac_test_CFLAGS" = set; then
3993 CFLAGS=$ac_save_CFLAGS
3994 elif test $ac_cv_prog_cc_g = yes; then
3995 if test "$GCC" = yes; then
4001 if test "$GCC" = yes; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4008 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4009 if ${ac_cv_prog_cc_c89+:} false; then :
4010 $as_echo_n "(cached) " >&6
4012 ac_cv_prog_cc_c89=no
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4020 struct buf { int x; };
4021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4022 static char *e (p, i)
4028 static char *f (char * (*g) (char **, int), char **p, ...)
4033 s = g (p, va_arg (v,int));
4038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4039 function prototypes and stuff, but not '\xHH' hex character constants.
4040 These don't provoke an error unfortunately, instead are silently treated
4041 as 'x'. The following induces an error, until -std is added to get
4042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4043 array size at least. It's necessary to write '\x00'==0 to get something
4044 that's true only with -std. */
4045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4048 inside strings and character constants. */
4050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4052 int test (int i, double x);
4053 struct s1 {int (*f) (int a);};
4054 struct s2 {int (*f) (double a);};
4055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4061 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4069 CC="$ac_save_CC $ac_arg"
4070 if ac_fn_c_try_compile "$LINENO"; then :
4071 ac_cv_prog_cc_c89=$ac_arg
4073 rm -f core conftest.err conftest.$ac_objext
4074 test "x$ac_cv_prog_cc_c89" != "xno" && break
4076 rm -f conftest.$ac_ext
4081 case "x$ac_cv_prog_cc_c89" in
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4089 CC="$CC $ac_cv_prog_cc_c89"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4093 if test "x$ac_cv_prog_cc_c89" != xno; then :
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4109 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4110 if ${am_cv_prog_cc_c_o+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4124 # Make sure it works both with $CC and with simple cc.
4125 # Following AC_PROG_CC_C_O, we do the test twice because some
4126 # compilers refuse to overwrite an existing .o file with -o,
4127 # though they will create one.
4128 am_cv_prog_cc_c_o=yes
4130 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4131 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } \
4135 && test -f conftest2.$ac_objext; then
4138 am_cv_prog_cc_c_o=no
4142 rm -f core conftest*
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4146 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4147 if test "$am_cv_prog_cc_c_o" != yes; then
4148 # Losing compiler, so override with the script.
4149 # FIXME: It is wrong to rewrite CC.
4150 # But if we don't then we get into trouble of one sort or another.
4151 # A longer-term fix would be to have automake use am__CC in this case,
4152 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4153 CC="$am_aux_dir/compile $CC"
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 if test -n "$ac_tool_prefix"; then
4164 for ac_prog in ar lib "link -lib"
4166 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if ${ac_cv_prog_AR+:} false; then :
4171 $as_echo_n "(cached) " >&6
4173 if test -n "$AR"; then
4174 ac_cv_prog_AR="$AR" # Let the user override the test.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 if test -n "$AR"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4196 $as_echo "$AR" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4203 test -n "$AR" && break
4206 if test -z "$AR"; then
4208 for ac_prog in ar lib "link -lib"
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4215 $as_echo_n "(cached) " >&6
4217 if test -n "$ac_ct_AR"; then
4218 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_ac_ct_AR="$ac_prog"
4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4238 if test -n "$ac_ct_AR"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4240 $as_echo "$ac_ct_AR" >&6; }
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4247 test -n "$ac_ct_AR" && break
4250 if test "x$ac_ct_AR" = x; then
4253 case $cross_compiling:$ac_tool_warned in
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4257 ac_tool_warned=yes ;;
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4266 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4267 if ${am_cv_ar_interface+:} false; then :
4268 $as_echo_n "(cached) " >&6
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 am_cv_ar_interface=ar
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279 int some_variable = 0;
4281 if ac_fn_c_try_compile "$LINENO"; then :
4282 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4284 (eval $am_ar_try) 2>&5
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; }
4288 if test "$ac_status" -eq 0; then
4289 am_cv_ar_interface=ar
4291 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4293 (eval $am_ar_try) 2>&5
4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296 test $ac_status = 0; }
4297 if test "$ac_status" -eq 0; then
4298 am_cv_ar_interface=lib
4300 am_cv_ar_interface=unknown
4303 rm -f conftest.lib libconftest.a
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4315 $as_echo "$am_cv_ar_interface" >&6; }
4317 case $am_cv_ar_interface in
4321 # Microsoft lib, so override with the ar-lib wrapper script.
4322 # FIXME: It is wrong to rewrite AR.
4323 # But if we don't then we get into trouble of one sort or another.
4324 # A longer-term fix would be to have automake use am__AR in this case,
4325 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4327 AR="$am_aux_dir/ar-lib $AR"
4330 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4336 # Check whether --enable-largefile was given.
4337 if test "${enable_largefile+set}" = set; then :
4338 enableval=$enable_largefile;
4341 if test "$enable_largefile" != no; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4344 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4345 if ${ac_cv_sys_largefile_CC+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 ac_cv_sys_largefile_CC=no
4349 if test "$GCC" != yes; then
4352 # IRIX 6.2 and later do not support large files by default,
4353 # so use the C compiler's -n32 option if that helps.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4356 #include <sys/types.h>
4357 /* Check that off_t can represent 2**63 - 1 correctly.
4358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4359 since some C++ compilers masquerading as C compilers
4360 incorrectly reject 9223372036854775807. */
4361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4363 && LARGE_OFF_T % 2147483647 == 1)
4373 if ac_fn_c_try_compile "$LINENO"; then :
4376 rm -f core conftest.err conftest.$ac_objext
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_sys_largefile_CC=' -n32'; break
4381 rm -f core conftest.err conftest.$ac_objext
4385 rm -f conftest.$ac_ext
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4389 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4390 if test "$ac_cv_sys_largefile_CC" != no; then
4391 CC=$CC$ac_cv_sys_largefile_CC
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4395 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4396 if ${ac_cv_sys_file_offset_bits+:} false; then :
4397 $as_echo_n "(cached) " >&6
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4402 #include <sys/types.h>
4403 /* Check that off_t can represent 2**63 - 1 correctly.
4404 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4405 since some C++ compilers masquerading as C compilers
4406 incorrectly reject 9223372036854775807. */
4407 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4408 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4409 && LARGE_OFF_T % 2147483647 == 1)
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_sys_file_offset_bits=no; break
4422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424 /* end confdefs.h. */
4425 #define _FILE_OFFSET_BITS 64
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 << 62) - 1 + ((off_t) 1 << 62))
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=64; break
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 ac_cv_sys_file_offset_bits=unknown
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4452 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4453 case $ac_cv_sys_file_offset_bits in #(
4456 cat >>confdefs.h <<_ACEOF
4457 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4462 if test $ac_cv_sys_file_offset_bits = unknown; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4464 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4465 if ${ac_cv_sys_large_files+:} false; then :
4466 $as_echo_n "(cached) " >&6
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <sys/types.h>
4472 /* Check that off_t can represent 2**63 - 1 correctly.
4473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4474 since some C++ compilers masquerading as C compilers
4475 incorrectly reject 9223372036854775807. */
4476 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4478 && LARGE_OFF_T % 2147483647 == 1)
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_sys_large_files=no; break
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #define _LARGE_FILES 1
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 << 62) - 1 + ((off_t) 1 << 62))
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=1; break
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 ac_cv_sys_large_files=unknown
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4521 $as_echo "$ac_cv_sys_large_files" >&6; }
4522 case $ac_cv_sys_large_files in #(
4525 cat >>confdefs.h <<_ACEOF
4526 #define _LARGE_FILES $ac_cv_sys_large_files
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4537 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4538 if ${largefile64_cv_source+:} false; then :
4539 $as_echo_n "(cached) " >&6
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4545 #include <sys/types.h>
4546 #include <sys/stat.h>
4553 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4559 if ac_fn_c_try_compile "$LINENO"; then :
4561 largefile64_source="no"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4568 #define _LARGEFILE64_SOURCE
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="yes"
4589 largefile64_source="unknown"
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4599 $as_echo "$largefile64_cv_source" >&6; }
4601 if test "x$largefile64_source" = "xyes"; then
4602 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4603 enable_largefile="yes"
4604 elif test "x$largefile64_source" = "xunknown"; then
4606 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4610 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4611 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4612 enable_largefile="yes"
4615 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4616 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4617 enable_largefile="yes"
4622 # In order to be able to change the scilab directory
4623 # See http://wiki.debian.org/RpathIssue
4624 # Find a good install program. We prefer a C program (faster),
4625 # so one script is as good as another. But avoid the broken or
4626 # incompatible versions:
4627 # SysV /etc/install, /usr/sbin/install
4628 # SunOS /usr/etc/install
4629 # IRIX /sbin/install
4631 # AmigaOS /C/install, which installs bootblocks on floppy discs
4632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4635 # OS/2's system install, which has a completely different semantic
4636 # ./install, which can be erroneously created by make from ./install.sh.
4637 # Reject install programs that cannot install multiple files.
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4639 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4640 if test -z "$INSTALL"; then
4641 if ${ac_cv_path_install+:} false; then :
4642 $as_echo_n "(cached) " >&6
4644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir=.
4649 # Account for people who put trailing slashes in PATH elements.
4650 case $as_dir/ in #((
4651 ./ | .// | /[cC]/* | \
4652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4656 # OSF1 and SCO ODT 3.0 have their own names for install.
4657 # Don't use installbsd from OSF since it installs stuff as root
4659 for ac_prog in ginstall scoinst install; do
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4662 if test $ac_prog = install &&
4663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4664 # AIX install. It has an incompatible calling convention.
4666 elif test $ac_prog = install &&
4667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4668 # program-specific install script used by HP pwplus--don't use.
4671 rm -rf conftest.one conftest.two conftest.dir
4672 echo one > conftest.one
4673 echo two > conftest.two
4675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4676 test -s conftest.one && test -s conftest.two &&
4677 test -s conftest.dir/conftest.one &&
4678 test -s conftest.dir/conftest.two
4680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4693 rm -rf conftest.one conftest.two conftest.dir
4696 if test "${ac_cv_path_install+set}" = set; then
4697 INSTALL=$ac_cv_path_install
4699 # As a last resort, use the slow shell script. Don't cache a
4700 # value for INSTALL within a source directory, because that will
4701 # break other packages using the cache if that directory is
4702 # removed, or if the value is a relative name.
4703 INSTALL=$ac_install_sh
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4707 $as_echo "$INSTALL" >&6; }
4709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4710 # It thinks the first close brace ends the variable substitution.
4711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4717 # Make sure we can run config.sub.
4718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4719 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 $as_echo_n "checking build system type... " >&6; }
4723 if ${ac_cv_build+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_build_alias=$build_alias
4727 test "x$ac_build_alias" = x &&
4728 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4729 test "x$ac_build_alias" = x &&
4730 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736 $as_echo "$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4739 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4742 ac_save_IFS=$IFS; IFS='-'
4748 # Remember, the first character of IFS is used to create $*,
4749 # except with old shells:
4752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756 $as_echo_n "checking host system type... " >&6; }
4757 if ${ac_cv_host+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test "x$host_alias" = x; then
4761 ac_cv_host=$ac_cv_build
4763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4764 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4769 $as_echo "$ac_cv_host" >&6; }
4772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4775 ac_save_IFS=$IFS; IFS='-'
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4789 # Check whether --with-gnu-ld was given.
4790 if test "${with_gnu_ld+set}" = set; then :
4791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4796 # Prepare PATH_SEPARATOR.
4797 # The user is always right.
4798 if test "${PATH_SEPARATOR+set}" != set; then
4799 echo "#! /bin/sh" >conf$$.sh
4800 echo "exit 0" >>conf$$.sh
4802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4810 if test "$GCC" = yes; then
4811 # Check if gcc -print-prog-name=ld gives a path.
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4813 $as_echo_n "checking for ld used by GCC... " >&6; }
4816 # gcc leaves a trailing carriage return which upsets mingw
4817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4822 # Accept absolute paths.
4823 [\\/]* | [A-Za-z]:[\\/]*)
4824 re_direlt='/[^/][^/]*/\.\./'
4825 # Canonicalize the path of ld
4826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4830 test -z "$LD" && LD="$ac_prog"
4833 # If it fails, then pretend we aren't using GCC.
4837 # If it is relative, then search for the first ld in PATH.
4841 elif test "$with_gnu_ld" = yes; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4843 $as_echo_n "checking for GNU ld... " >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4846 $as_echo_n "checking for non-GNU ld... " >&6; }
4848 if ${acl_cv_path_LD+:} false; then :
4849 $as_echo_n "(cached) " >&6
4851 if test -z "$LD"; then
4852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4853 for ac_dir in $PATH; do
4854 test -z "$ac_dir" && ac_dir=.
4855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4856 acl_cv_path_LD="$ac_dir/$ac_prog"
4857 # Check to see if the program is GNU ld. I'd rather use --version,
4858 # but apparently some GNU ld's only accept -v.
4859 # Break only if it was the GNU/non-GNU ld that we prefer.
4860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4861 *GNU* | *'with BFD'*)
4862 test "$with_gnu_ld" != no && break ;;
4864 test "$with_gnu_ld" != yes && break ;;
4870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4874 LD="$acl_cv_path_LD"
4875 if test -n "$LD"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4877 $as_echo "$LD" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4882 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4884 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4885 if ${acl_cv_prog_gnu_ld+:} false; then :
4886 $as_echo_n "(cached) " >&6
4888 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4889 case `$LD -v 2>&1 </dev/null` in
4890 *GNU* | *'with BFD'*)
4891 acl_cv_prog_gnu_ld=yes ;;
4893 acl_cv_prog_gnu_ld=no ;;
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4897 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4898 with_gnu_ld=$acl_cv_prog_gnu_ld
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4903 $as_echo_n "checking for shared library path variable... " >&6; }
4904 if ${acl_cv_libpath+:} false; then :
4905 $as_echo_n "(cached) " >&6
4909 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4912 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4916 $as_echo "$acl_cv_libpath" >&6; }
4917 shlibpath_var="$acl_cv_shlibpath_var"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4921 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4922 # Check whether --enable-relocatable was given.
4923 if test "${enable_relocatable+set}" = set; then :
4924 enableval=$enable_relocatable; if test "$enableval" != no; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4936 $as_echo "$RELOCATABLE" >&6; }
4940 if test "X$prefix" = "XNONE"; then
4941 reloc_final_prefix="$ac_default_prefix"
4943 reloc_final_prefix="$prefix"
4946 cat >>confdefs.h <<_ACEOF
4947 #define INSTALLPREFIX "${reloc_final_prefix}"
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4958 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4959 # On Suns, sometimes $CPP names a directory.
4960 if test -n "$CPP" && test -d "$CPP"; then
4963 if test -z "$CPP"; then
4964 if ${ac_cv_prog_CPP+:} false; then :
4965 $as_echo_n "(cached) " >&6
4967 # Double quotes because CPP needs to be expanded
4968 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4971 for ac_c_preproc_warn_flag in '' yes
4973 # Use a header file that comes with gcc, so configuring glibc
4974 # with a fresh cross-compiler works.
4975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976 # <limits.h> exists even on freestanding compilers.
4977 # On the NeXT, cc -E runs the code through the compiler's parser,
4978 # not just through cpp. "Syntax error" is here to catch this case.
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4982 # include <limits.h>
4984 # include <assert.h>
4988 if ac_fn_c_try_cpp "$LINENO"; then :
4991 # Broken: fails on valid input.
4994 rm -f conftest.err conftest.i conftest.$ac_ext
4996 # OK, works on sane cases. Now check whether nonexistent headers
4997 # can be detected and how.
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000 #include <ac_nonexistent.h>
5002 if ac_fn_c_try_cpp "$LINENO"; then :
5003 # Broken: success on invalid input.
5006 # Passes both tests.
5010 rm -f conftest.err conftest.i conftest.$ac_ext
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.i conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then :
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5028 $as_echo "$CPP" >&6; }
5030 for ac_c_preproc_warn_flag in '' yes
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: fails on valid input.
5053 rm -f conftest.err conftest.i conftest.$ac_ext
5055 # OK, works on sane cases. Now check whether nonexistent headers
5056 # can be detected and how.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #include <ac_nonexistent.h>
5061 if ac_fn_c_try_cpp "$LINENO"; then :
5062 # Broken: success on invalid input.
5065 # Passes both tests.
5069 rm -f conftest.err conftest.i conftest.$ac_ext
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.i conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then :
5077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5079 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5080 See \`config.log' for more details" "$LINENO" 5; }
5084 ac_cpp='$CPP $CPPFLAGS'
5085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5091 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5092 if ${ac_cv_path_GREP+:} false; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -z "$GREP"; then
5096 ac_path_GREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in grep ggrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5106 as_fn_executable_p "$ac_path_GREP" || continue
5107 # Check for GNU ac_path_GREP and select it if it is found.
5108 # Check for GNU $ac_path_GREP
5109 case `"$ac_path_GREP" --version 2>&1` in
5111 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5114 $as_echo_n 0123456789 >"conftest.in"
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'GREP' >> "conftest.nl"
5121 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_GREP="$ac_path_GREP"
5127 ac_path_GREP_max=$ac_count
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5135 $ac_path_GREP_found && break 3
5140 if test -z "$ac_cv_path_GREP"; then
5141 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5144 ac_cv_path_GREP=$GREP
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5149 $as_echo "$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5154 $as_echo_n "checking for egrep... " >&6; }
5155 if ${ac_cv_path_EGREP+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5161 if test -z "$EGREP"; then
5162 ac_path_EGREP_found=false
5163 # Loop through the user's path and test for each of PROGNAME-LIST
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 test -z "$as_dir" && as_dir=.
5169 for ac_prog in egrep; do
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5172 as_fn_executable_p "$ac_path_EGREP" || continue
5173 # Check for GNU ac_path_EGREP and select it if it is found.
5174 # Check for GNU $ac_path_EGREP
5175 case `"$ac_path_EGREP" --version 2>&1` in
5177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5180 $as_echo_n 0123456789 >"conftest.in"
5183 cat "conftest.in" "conftest.in" >"conftest.tmp"
5184 mv "conftest.tmp" "conftest.in"
5185 cp "conftest.in" "conftest.nl"
5186 $as_echo 'EGREP' >> "conftest.nl"
5187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189 as_fn_arith $ac_count + 1 && ac_count=$as_val
5190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5191 # Best one so far, save it but keep looking for a better one
5192 ac_cv_path_EGREP="$ac_path_EGREP"
5193 ac_path_EGREP_max=$ac_count
5195 # 10*(2^10) chars as input seems more than enough
5196 test $ac_count -gt 10 && break
5198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201 $ac_path_EGREP_found && break 3
5206 if test -z "$ac_cv_path_EGREP"; then
5207 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210 ac_cv_path_EGREP=$EGREP
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5216 $as_echo "$ac_cv_path_EGREP" >&6; }
5217 EGREP="$ac_cv_path_EGREP"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5221 $as_echo_n "checking for ANSI C header files... " >&6; }
5222 if ${ac_cv_header_stdc+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5240 if ac_fn_c_try_compile "$LINENO"; then :
5241 ac_cv_header_stdc=yes
5243 ac_cv_header_stdc=no
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5255 $EGREP "memchr" >/dev/null 2>&1; then :
5258 ac_cv_header_stdc=no
5264 if test $ac_cv_header_stdc = yes; then
5265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "free" >/dev/null 2>&1; then :
5275 ac_cv_header_stdc=no
5281 if test $ac_cv_header_stdc = yes; then
5282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5283 if test "$cross_compiling" = yes; then :
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5290 #if ((' ' & 0x0FF) == 0x020)
5291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5294 # define ISLOWER(c) \
5295 (('a' <= (c) && (c) <= 'i') \
5296 || ('j' <= (c) && (c) <= 'r') \
5297 || ('s' <= (c) && (c) <= 'z'))
5298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5306 for (i = 0; i < 256; i++)
5307 if (XOR (islower (i), ISLOWER (i))
5308 || toupper (i) != TOUPPER (i))
5313 if ac_fn_c_try_run "$LINENO"; then :
5316 ac_cv_header_stdc=no
5318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5319 conftest.$ac_objext conftest.beam conftest.$ac_ext
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5325 $as_echo "$ac_cv_header_stdc" >&6; }
5326 if test $ac_cv_header_stdc = yes; then
5328 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5334 inttypes.h stdint.h unistd.h
5336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5339 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5340 cat >>confdefs.h <<_ACEOF
5341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5356 use_elf_origin_trick=no
5357 if test $RELOCATABLE = yes; then
5358 # --enable-relocatable implies --disable-rpath
5361 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5363 for ac_header in unistd.h mach-o/dyld.h
5365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5366 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5367 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5368 cat >>confdefs.h <<_ACEOF
5369 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376 for ac_func in _NSGetExecutablePath
5378 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5379 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5380 cat >>confdefs.h <<_ACEOF
5381 #define HAVE__NSGETEXECUTABLEPATH 1
5388 mingw*) is_noop=yes ;;
5389 linux*) use_elf_origin_trick=yes ;;
5391 if test $is_noop = yes; then
5392 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5394 if test $use_elf_origin_trick = yes; then
5395 case "$ac_aux_dir" in
5396 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5397 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5399 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5401 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\""
5402 case "$ac_aux_dir" in
5403 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5404 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5412 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5413 RELOCATABLE_VIA_LD_TRUE=
5414 RELOCATABLE_VIA_LD_FALSE='#'
5416 RELOCATABLE_VIA_LD_TRUE='#'
5417 RELOCATABLE_VIA_LD_FALSE=
5423 if test $RELOCATABLE = yes; then
5424 case " $LIBOBJS " in
5425 *" relocatable.$ac_objext "* ) ;;
5426 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5434 if test "X$prefix" = "XNONE"; then
5435 reloc_final_prefix="$ac_default_prefix"
5437 reloc_final_prefix="$prefix"
5440 cat >>confdefs.h <<_ACEOF
5441 #define INSTALLPREFIX "${reloc_final_prefix}"
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5448 $as_echo_n "checking for shared library run path origin... " >&6; }
5449 if ${acl_cv_rpath+:} false; then :
5450 $as_echo_n "(cached) " >&6
5453 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5454 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5461 $as_echo "$acl_cv_rpath" >&6; }
5463 acl_libext="$acl_cv_libext"
5464 acl_shlibext="$acl_cv_shlibext"
5465 acl_libname_spec="$acl_cv_libname_spec"
5466 acl_library_names_spec="$acl_cv_library_names_spec"
5467 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5468 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5469 acl_hardcode_direct="$acl_cv_hardcode_direct"
5470 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5471 # Check whether --enable-rpath was given.
5472 if test "${enable_rpath+set}" = set; then :
5473 enableval=$enable_rpath; :
5480 # If configure detect that timestamp changed,
5481 # it tries to rebuild configure & makefile which can be a painmaker
5482 # if the version is different
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5485 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5486 # Check whether --enable-maintainer-mode was given.
5487 if test "${enable_maintainer_mode+set}" = set; then :
5488 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5490 USE_MAINTAINER_MODE=no
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5494 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5495 if test $USE_MAINTAINER_MODE = yes; then
5496 MAINTAINER_MODE_TRUE=
5497 MAINTAINER_MODE_FALSE='#'
5499 MAINTAINER_MODE_TRUE='#'
5500 MAINTAINER_MODE_FALSE=
5503 MAINT=$MAINTAINER_MODE_TRUE
5507 am__api_version='1.14'
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5510 $as_echo_n "checking whether build environment is sane... " >&6; }
5511 # Reject unsafe characters in $srcdir or the absolute working directory
5512 # name. Accept space and tab only in the latter.
5516 *[\\\"\#\$\&\'\`$am_lf]*)
5517 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5521 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5524 # Do 'set' in a subshell so we don't clobber the current shell's
5525 # arguments. Must try -L first in case configure is actually a
5526 # symlink; some systems play weird games with the mod time of symlinks
5527 # (eg FreeBSD returns the mod time of the symlink's containing
5531 for am_try in 1 2; do
5532 echo "timestamp, slept: $am_has_slept" > conftest.file
5533 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5534 if test "$*" = "X"; then
5536 set X `ls -t "$srcdir/configure" conftest.file`
5538 if test "$*" != "X $srcdir/configure conftest.file" \
5539 && test "$*" != "X conftest.file $srcdir/configure"; then
5541 # If neither matched, then we have a broken ls. This can happen
5542 # if, for instance, CONFIG_SHELL is bash and it inherits a
5543 # broken ls alias from the environment. This has actually
5544 # happened. Such a system could not be considered "sane".
5545 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5546 alias in your environment" "$LINENO" 5
5548 if test "$2" = conftest.file || test $am_try -eq 2; then
5555 test "$2" = conftest.file
5561 as_fn_error $? "newly created file is older than distributed files!
5562 Check your system clock" "$LINENO" 5
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5565 $as_echo "yes" >&6; }
5566 # If we didn't sleep, we still need to ensure time stamps of config.status and
5567 # generated files are strictly newer.
5569 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5576 test "$program_prefix" != NONE &&
5577 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5578 # Use a double $ so make ignores it.
5579 test "$program_suffix" != NONE &&
5580 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5581 # Double any \ or $.
5582 # By default was `s,x,x', remove it if useless.
5583 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5584 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5586 if test x"${MISSING+set}" != xset; then
5589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5591 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5594 # Use eval to expand $SHELL
5595 if eval "$MISSING --is-lightweight"; then
5596 am_missing_run="$MISSING "
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5600 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5604 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5605 if test -z "$MKDIR_P"; then
5606 if ${ac_cv_path_mkdir+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5613 test -z "$as_dir" && as_dir=.
5614 for ac_prog in mkdir gmkdir; do
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5617 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5618 'mkdir (GNU coreutils) '* | \
5619 'mkdir (coreutils) '* | \
5620 'mkdir (fileutils) '4.1*)
5621 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5631 test -d ./--version && rmdir ./--version
5632 if test "${ac_cv_path_mkdir+set}" = set; then
5633 MKDIR_P="$ac_cv_path_mkdir -p"
5635 # As a last resort, use the slow shell script. Don't cache a
5636 # value for MKDIR_P within a source directory, because that will
5637 # break other packages using the cache if that directory is
5638 # removed, or if the value is a relative name.
5639 MKDIR_P="$ac_install_sh -d"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5643 $as_echo "$MKDIR_P" >&6; }
5645 for ac_prog in gawk mawk nawk awk
5647 # Extract the first word of "$ac_prog", so it can be a program name with args.
5648 set dummy $ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_AWK+:} false; then :
5652 $as_echo_n "(cached) " >&6
5654 if test -n "$AWK"; then
5655 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_AWK="$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675 if test -n "$AWK"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5677 $as_echo "$AWK" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 test -n "$AWK" && break
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5688 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5690 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5691 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5692 $as_echo_n "(cached) " >&6
5694 cat >conftest.make <<\_ACEOF
5697 @echo '@@@%%%=$(MAKE)=@@@%%%'
5699 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5700 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5702 eval ac_cv_prog_make_${ac_make}_set=yes;;
5704 eval ac_cv_prog_make_${ac_make}_set=no;;
5708 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 $as_echo "yes" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5715 SET_MAKE="MAKE=${MAKE-make}"
5718 rm -rf .tst 2>/dev/null
5719 mkdir .tst 2>/dev/null
5720 if test -d .tst; then
5725 rmdir .tst 2>/dev/null
5727 DEPDIR="${am__leading_dot}deps"
5729 ac_config_commands="$ac_config_commands depfiles"
5732 am_make=${MAKE-make}
5733 cat > confinc << 'END'
5735 @echo this is the am__doit target
5738 # If we don't find an include directive, just comment out the code.
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5740 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5744 # First try GNU make style include.
5745 echo "include confinc" > confmf
5746 # Ignore all kinds of additional output from 'make'.
5747 case `$am_make -s -f confmf 2> /dev/null` in #(
5748 *the\ am__doit\ target*)
5754 # Now try BSD make style include.
5755 if test "$am__include" = "#"; then
5756 echo '.include "confinc"' > confmf
5757 case `$am_make -s -f confmf 2> /dev/null` in #(
5758 *the\ am__doit\ target*)
5759 am__include=.include
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5768 $as_echo "$_am_result" >&6; }
5769 rm -f confinc confmf
5771 # Check whether --enable-dependency-tracking was given.
5772 if test "${enable_dependency_tracking+set}" = set; then :
5773 enableval=$enable_dependency_tracking;
5776 if test "x$enable_dependency_tracking" != xno; then
5777 am_depcomp="$ac_aux_dir/depcomp"
5781 if test "x$enable_dependency_tracking" != xno; then
5790 # Check whether --enable-silent-rules was given.
5791 if test "${enable_silent_rules+set}" = set; then :
5792 enableval=$enable_silent_rules;
5795 case $enable_silent_rules in # (((
5796 yes) AM_DEFAULT_VERBOSITY=0;;
5797 no) AM_DEFAULT_VERBOSITY=1;;
5798 *) AM_DEFAULT_VERBOSITY=1;;
5800 am_make=${MAKE-make}
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5802 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5803 if ${am_cv_make_support_nested_variables+:} false; then :
5804 $as_echo_n "(cached) " >&6
5806 if $as_echo 'TRUE=$(BAR$(V))
5812 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5813 am_cv_make_support_nested_variables=yes
5815 am_cv_make_support_nested_variables=no
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5819 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5820 if test $am_cv_make_support_nested_variables = yes; then
5822 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5824 AM_V=$AM_DEFAULT_VERBOSITY
5825 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5829 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5830 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5831 # is not polluted with repeated "-I."
5832 am__isrc=' -I$(srcdir)'
5833 # test to see if srcdir already configured
5834 if test -f $srcdir/config.status; then
5835 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5839 # test whether we have cygpath
5840 if test -z "$CYGPATH_W"; then
5841 if (cygpath --version) >/dev/null 2>/dev/null; then
5842 CYGPATH_W='cygpath -w'
5849 # Define the identity of the package.
5854 cat >>confdefs.h <<_ACEOF
5855 #define PACKAGE "$PACKAGE"
5859 cat >>confdefs.h <<_ACEOF
5860 #define VERSION "$VERSION"
5863 # Some tools Automake needs.
5865 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5868 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5871 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5874 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5877 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5879 # For better backward compatibility. To be removed once Automake 1.9.x
5880 # dies out for good. For more background, see:
5881 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5882 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5883 mkdir_p='$(MKDIR_P)'
5885 # We need awk for the "check" target. The system "awk" is bad on
5887 # Always define AMTAR for backward compatibility. Yes, it's still used
5888 # in the wild :-( We should find a proper way to deprecate it ...
5892 # We'll loop over all known methods to create a tar archive until one works.
5893 _am_tools='gnutar pax cpio none'
5895 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5901 depcc="$CC" am_compiler_list=
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5904 $as_echo_n "checking dependency style of $depcc... " >&6; }
5905 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5909 # We make a subdir and do the tests there. Otherwise we can end up
5910 # making bogus files that we don't know about and never remove. For
5911 # instance it was reported that on HP-UX the gcc test will end up
5912 # making a dummy file named 'D' -- because '-MD' means "put the output
5916 # Copy depcomp to subdir because otherwise we won't find it if we're
5917 # using a relative directory.
5918 cp "$am_depcomp" conftest.dir
5920 # We will build objects and dependencies in a subdirectory because
5921 # it helps to detect inapplicable dependency modes. For instance
5922 # both Tru64's cc and ICC support -MD to output dependencies as a
5923 # side effect of compilation, but ICC will put the dependencies in
5924 # the current directory while Tru64 will put them in the object
5928 am_cv_CC_dependencies_compiler_type=none
5929 if test "$am_compiler_list" = ""; then
5930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5933 case " $depcc " in #(
5934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5937 for depmode in $am_compiler_list; do
5938 # Setup a source with many dependencies, because some compilers
5939 # like to wrap large dependency lists on column 80 (with \), and
5940 # we should not choose a depcomp mode which is confused by this.
5942 # We need to recreate these files for each test, as the compiler may
5943 # overwrite some of them when testing with obscure command lines.
5944 # This happens at least with the AIX C compiler.
5946 for i in 1 2 3 4 5 6; do
5947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5948 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5949 # Solaris 10 /bin/sh.
5950 echo '/* dummy */' > sub/conftst$i.h
5952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5954 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5955 # mode. It turns out that the SunPro C++ compiler does not properly
5956 # handle '-M -o', and we need to detect this. Also, some Intel
5957 # versions had trouble with output in subdirs.
5958 am__obj=sub/conftest.${OBJEXT-o}
5959 am__minus_obj="-o $am__obj"
5962 # This depmode causes a compiler race in universal mode.
5963 test "$am__universal" = false || continue
5966 # After this tag, mechanisms are not by side-effect, so they'll
5967 # only be used when explicitly requested.
5968 if test "x$enable_dependency_tracking" = xyes; then
5974 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5975 # This compiler won't grok '-c -o', but also, the minuso test has
5976 # not run yet. These depmodes are late enough in the game, and
5977 # so weak that their functioning should not be impacted.
5978 am__obj=conftest.${OBJEXT-o}
5983 if depmode=$depmode \
5984 source=sub/conftest.c object=$am__obj \
5985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5987 >/dev/null 2>conftest.err &&
5988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5992 # icc doesn't choke on unknown options, it will just issue warnings
5993 # or remarks (even with -Werror). So we grep stderr for any message
5994 # that says an option was ignored or not supported.
5995 # When given -MP, icc 7.0 and 7.1 complain thusly:
5996 # icc: Command line warning: ignoring option '-M'; no argument required
5997 # The diagnosis changed in icc 8.0:
5998 # icc: Command line remark: option '-MP' not supported
5999 if (grep 'ignoring option' conftest.err ||
6000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6001 am_cv_CC_dependencies_compiler_type=$depmode
6010 am_cv_CC_dependencies_compiler_type=none
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6015 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6016 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6019 test "x$enable_dependency_tracking" != xno \
6020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6022 am__fastdepCC_FALSE='#'
6024 am__fastdepCC_TRUE='#'
6025 am__fastdepCC_FALSE=
6030 # POSIX will say in a future version that running "rm -f" with no argument
6031 # is OK; and we want to be able to make that assumption in our Makefile
6032 # recipes. So use an aggressive probe to check that the usage we want is
6033 # actually supported "in the wild" to an acceptable degree.
6034 # See automake bug#10828.
6035 # To make any issue more visible, cause the running configure to be aborted
6036 # by default if the 'rm' program in use doesn't match our expectations; the
6037 # user can still override this though.
6038 if rm -f && rm -fr && rm -rf; then : OK; else
6042 Your 'rm' program seems unable to run without file operands specified
6043 on the command line, even when the '-f' option is present. This is contrary
6044 to the behaviour of most rm programs out there, and not conforming with
6045 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6047 Please tell bug-automake@gnu.org about your system, including the value
6048 of your $PATH and any error possibly output before this message. This
6049 can help us improve future automake versions.
6052 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6053 echo 'Configuration will proceed anyway, since you have set the' >&2
6054 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6058 Aborting the configuration process, to ensure you take notice of the issue.
6060 You can download and install GNU coreutils to get an 'rm' implementation
6061 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6063 If you want to complete the configuration process using your problematic
6064 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6065 to "yes", and re-run configure.
6068 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6070 fi # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
6074 #################################
6075 ## all the --with-* argument help
6076 #################################
6079 # Check whether --enable-debug was given.
6080 if test "${enable_debug+set}" = set; then :
6081 enableval=$enable_debug;
6085 # Check whether --enable-debug-C was given.
6086 if test "${enable_debug_C+set}" = set; then :
6087 enableval=$enable_debug_C;
6091 # Check whether --enable-debug-CXX was given.
6092 if test "${enable_debug_CXX+set}" = set; then :
6093 enableval=$enable_debug_CXX;
6097 # Check whether --enable-debug-java was given.
6098 if test "${enable_debug_java+set}" = set; then :
6099 enableval=$enable_debug_java;
6103 # Check whether --enable-debug-fortran was given.
6104 if test "${enable_debug_fortran+set}" = set; then :
6105 enableval=$enable_debug_fortran;
6109 # Check whether --enable-debug-linker was given.
6110 if test "${enable_debug_linker+set}" = set; then :
6111 enableval=$enable_debug_linker;
6115 # Check whether --enable-code-coverage was given.
6116 if test "${enable_code_coverage+set}" = set; then :
6117 enableval=$enable_code_coverage;
6121 # Check whether --enable-stop-on-warning was given.
6122 if test "${enable_stop_on_warning+set}" = set; then :
6123 enableval=$enable_stop_on_warning;
6128 # Check whether --with-gcc was given.
6129 if test "${with_gcc+set}" = set; then :
6135 # Check whether --with-gfortran was given.
6136 if test "${with_gfortran+set}" = set; then :
6137 withval=$with_gfortran;
6142 # Check whether --with-intelcompilers was given.
6143 if test "${with_intelcompilers+set}" = set; then :
6144 withval=$with_intelcompilers;
6149 # Check whether --with-tk was given.
6150 if test "${with_tk+set}" = set; then :
6156 # Check whether --with-javasci was given.
6157 if test "${with_javasci+set}" = set; then :
6158 withval=$with_javasci;
6162 # Check whether --enable-compilation-tests was given.
6163 if test "${enable_compilation_tests+set}" = set; then :
6164 enableval=$enable_compilation_tests;
6169 # Check whether --with-gui was given.
6170 if test "${with_gui+set}" = set; then :
6176 # Check whether --with-build-swig was given.
6177 if test "${with_build_swig+set}" = set; then :
6178 withval=$with_build_swig; with_build_swig=$withval
6186 # Check whether --enable-build-giws was given.
6187 if test "${enable_build_giws+set}" = set; then :
6188 enableval=$enable_build_giws;
6193 ################################################
6194 ########## compilator & misc programs detection
6195 ################################################
6198 ac_cpp='$CPP $CPPFLAGS'
6199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6203 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6204 # On Suns, sometimes $CPP names a directory.
6205 if test -n "$CPP" && test -d "$CPP"; then
6208 if test -z "$CPP"; then
6209 if ${ac_cv_prog_CPP+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 # Double quotes because CPP needs to be expanded
6213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6216 for ac_c_preproc_warn_flag in '' yes
6218 # Use a header file that comes with gcc, so configuring glibc
6219 # with a fresh cross-compiler works.
6220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6221 # <limits.h> exists even on freestanding compilers.
6222 # On the NeXT, cc -E runs the code through the compiler's parser,
6223 # not just through cpp. "Syntax error" is here to catch this case.
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6227 # include <limits.h>
6229 # include <assert.h>
6233 if ac_fn_c_try_cpp "$LINENO"; then :
6236 # Broken: fails on valid input.
6239 rm -f conftest.err conftest.i conftest.$ac_ext
6241 # OK, works on sane cases. Now check whether nonexistent headers
6242 # can be detected and how.
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245 #include <ac_nonexistent.h>
6247 if ac_fn_c_try_cpp "$LINENO"; then :
6248 # Broken: success on invalid input.
6251 # Passes both tests.
6255 rm -f conftest.err conftest.i conftest.$ac_ext
6258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6259 rm -f conftest.i conftest.err conftest.$ac_ext
6260 if $ac_preproc_ok; then :
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6273 $as_echo "$CPP" >&6; }
6275 for ac_c_preproc_warn_flag in '' yes
6277 # Use a header file that comes with gcc, so configuring glibc
6278 # with a fresh cross-compiler works.
6279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6280 # <limits.h> exists even on freestanding compilers.
6281 # On the NeXT, cc -E runs the code through the compiler's parser,
6282 # not just through cpp. "Syntax error" is here to catch this case.
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 # include <limits.h>
6288 # include <assert.h>
6292 if ac_fn_c_try_cpp "$LINENO"; then :
6295 # Broken: fails on valid input.
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6300 # OK, works on sane cases. Now check whether nonexistent headers
6301 # can be detected and how.
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 #include <ac_nonexistent.h>
6306 if ac_fn_c_try_cpp "$LINENO"; then :
6307 # Broken: success on invalid input.
6310 # Passes both tests.
6314 rm -f conftest.err conftest.i conftest.$ac_ext
6317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6318 rm -f conftest.i conftest.err conftest.$ac_ext
6319 if $ac_preproc_ok; then :
6322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6324 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6325 See \`config.log' for more details" "$LINENO" 5; }
6329 ac_cpp='$CPP $CPPFLAGS'
6330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6335 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6336 if ${ac_cv_path_GREP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6339 if test -z "$GREP"; then
6340 ac_path_GREP_found=false
6341 # Loop through the user's path and test for each of PROGNAME-LIST
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6346 test -z "$as_dir" && as_dir=.
6347 for ac_prog in grep ggrep; do
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6350 as_fn_executable_p "$ac_path_GREP" || continue
6351 # Check for GNU ac_path_GREP and select it if it is found.
6352 # Check for GNU $ac_path_GREP
6353 case `"$ac_path_GREP" --version 2>&1` in
6355 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6358 $as_echo_n 0123456789 >"conftest.in"
6361 cat "conftest.in" "conftest.in" >"conftest.tmp"
6362 mv "conftest.tmp" "conftest.in"
6363 cp "conftest.in" "conftest.nl"
6364 $as_echo 'GREP' >> "conftest.nl"
6365 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6366 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6367 as_fn_arith $ac_count + 1 && ac_count=$as_val
6368 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6369 # Best one so far, save it but keep looking for a better one
6370 ac_cv_path_GREP="$ac_path_GREP"
6371 ac_path_GREP_max=$ac_count
6373 # 10*(2^10) chars as input seems more than enough
6374 test $ac_count -gt 10 && break
6376 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6379 $ac_path_GREP_found && break 3
6384 if test -z "$ac_cv_path_GREP"; then
6385 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6388 ac_cv_path_GREP=$GREP
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6393 $as_echo "$ac_cv_path_GREP" >&6; }
6394 GREP="$ac_cv_path_GREP"
6399 #### Mac OS X set of fink path with provided
6403 # Check whether --with-fink_prefix was given.
6404 if test "${with_fink_prefix+set}" = set; then :
6405 withval=$with_fink_prefix;
6408 # Need MacosX Version to specify some path.
6410 *Darwin* | *darwin*)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6413 $as_echo_n "checking Mac OS X Version... " >&6; }
6414 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6415 case $macosx_version in
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.9 - Mavericks." >&5
6418 $as_echo "Mac OS X 10.9 - Mavericks." >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6422 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6426 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6430 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6434 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6437 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 10.8 or 10.9 are needed. Found $macosx_version" "$LINENO" 5
6446 if test -n "$with_fink_prefix"; then
6447 # If with-fink-prefix is provided, use the provided path to make sure that we will
6448 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6449 # Therefor, we use the one in fink)
6450 FINK_PREFIX="$with_fink_prefix/"
6452 # Exec the init script of fink to make sure that the env is set
6453 if test -f $with_fink_prefix/bin/init.sh; then
6454 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6455 source $with_fink_prefix/bin/init.sh
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6458 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6464 #Append to the default flags on Apple machines
6465 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6466 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6471 # Check whether --with-min_macosx_version was given.
6472 if test "${with_min_macosx_version+set}" = set; then :
6473 withval=$with_min_macosx_version;
6478 if test -n "$with_min_macosx_version"; then
6479 MIN_MACOSX_VERSION=$with_min_macosx_version
6480 #Append to the default flags on Apple machines
6481 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6482 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6483 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6484 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6485 # We need this to be passed to all linker commands
6486 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6492 #####################################################
6493 ## Look for pkg-config
6494 #####################################################
6497 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6504 $as_echo_n "(cached) " >&6
6508 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6530 if test -n "$PKG_CONFIG"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6532 $as_echo "$PKG_CONFIG" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_path_PKG_CONFIG"; then
6541 ac_pt_PKG_CONFIG=$PKG_CONFIG
6542 # Extract the first word of "pkg-config", so it can be a program name with args.
6543 set dummy pkg-config; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 case $ac_pt_PKG_CONFIG in
6551 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6573 if test -n "$ac_pt_PKG_CONFIG"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6575 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6581 if test "x$ac_pt_PKG_CONFIG" = x; then
6584 case $cross_compiling:$ac_tool_warned in
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6588 ac_tool_warned=yes ;;
6590 PKG_CONFIG=$ac_pt_PKG_CONFIG
6593 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6597 if test -n "$PKG_CONFIG"; then
6598 _pkg_min_version=0.9.0
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6600 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6601 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603 $as_echo "yes" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6612 #####################################################
6613 ## check if options are correct (or not)
6614 #####################################################
6616 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6617 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6620 ######## fortran ########
6622 if test "$with_gfortran" = yes; then
6624 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6625 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6627 if test -n "$ac_tool_prefix"; then
6628 for ac_prog in gfortran
6630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_prog_F77+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 if test -n "$F77"; then
6638 ac_cv_prog_F77="$F77" # Let the user override the test.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 if test -n "$F77"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6660 $as_echo "$F77" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 $as_echo "no" >&6; }
6667 test -n "$F77" && break
6670 if test -z "$F77"; then
6672 for ac_prog in gfortran
6674 # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6679 $as_echo_n "(cached) " >&6
6681 if test -n "$ac_ct_F77"; then
6682 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_ac_ct_F77="$ac_prog"
6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6702 if test -n "$ac_ct_F77"; then
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6704 $as_echo "$ac_ct_F77" >&6; }
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6711 test -n "$ac_ct_F77" && break
6714 if test "x$ac_ct_F77" = x; then
6717 case $cross_compiling:$ac_tool_warned in
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6728 # Provide some information about the compiler.
6729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6732 for ac_option in --version -v -V -qversion; do
6733 { { ac_try="$ac_compiler $ac_option >&5"
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6739 $as_echo "$ac_try_echo"; } >&5
6740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6742 if test -s conftest.err; then
6744 ... rest of stderr output deleted ...
6745 10q' conftest.err >conftest.er1
6746 cat conftest.er1 >&5
6748 rm -f conftest.er1 conftest.err
6749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6750 test $ac_status = 0; }
6754 # If we don't use `.F' as extension, the preprocessor is not run on the
6755 # input file. (Note that this only needs to work for GNU compilers.)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6759 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6760 if ${ac_cv_f77_compiler_gnu+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 cat > conftest.$ac_ext <<_ACEOF
6771 if ac_fn_f77_try_compile "$LINENO"; then :
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6781 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6783 ac_test_FFLAGS=${FFLAGS+set}
6784 ac_save_FFLAGS=$FFLAGS
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6787 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6788 if ${ac_cv_prog_f77_g+:} false; then :
6789 $as_echo_n "(cached) " >&6
6792 cat > conftest.$ac_ext <<_ACEOF
6797 if ac_fn_f77_try_compile "$LINENO"; then :
6798 ac_cv_prog_f77_g=yes
6802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6806 $as_echo "$ac_cv_prog_f77_g" >&6; }
6807 if test "$ac_test_FFLAGS" = set; then
6808 FFLAGS=$ac_save_FFLAGS
6809 elif test $ac_cv_prog_f77_g = yes; then
6810 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6816 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6823 if test $ac_compiler_gnu = yes; then
6829 ac_cpp='$CPP $CPPFLAGS'
6830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6834 if test -z "$F77"; then
6835 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6839 if test "$with_intelcompilers" = yes; then
6841 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6842 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6844 if test -n "$ac_tool_prefix"; then
6845 for ac_prog in ifc ifort
6847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6850 $as_echo_n "checking for $ac_word... " >&6; }
6851 if ${ac_cv_prog_F77+:} false; then :
6852 $as_echo_n "(cached) " >&6
6854 if test -n "$F77"; then
6855 ac_cv_prog_F77="$F77" # Let the user override the test.
6857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir=.
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6864 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 if test -n "$F77"; then
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6877 $as_echo "$F77" >&6; }
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6880 $as_echo "no" >&6; }
6884 test -n "$F77" && break
6887 if test -z "$F77"; then
6889 for ac_prog in ifc ifort
6891 # Extract the first word of "$ac_prog", so it can be a program name with args.
6892 set dummy $ac_prog; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 if test -n "$ac_ct_F77"; then
6899 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6908 ac_cv_prog_ac_ct_F77="$ac_prog"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6919 if test -n "$ac_ct_F77"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6921 $as_echo "$ac_ct_F77" >&6; }
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6928 test -n "$ac_ct_F77" && break
6931 if test "x$ac_ct_F77" = x; then
6934 case $cross_compiling:$ac_tool_warned in
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938 ac_tool_warned=yes ;;
6945 # Provide some information about the compiler.
6946 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6949 for ac_option in --version -v -V -qversion; do
6950 { { ac_try="$ac_compiler $ac_option >&5"
6952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6953 *) ac_try_echo=$ac_try;;
6955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6956 $as_echo "$ac_try_echo"; } >&5
6957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6959 if test -s conftest.err; then
6961 ... rest of stderr output deleted ...
6962 10q' conftest.err >conftest.er1
6963 cat conftest.er1 >&5
6965 rm -f conftest.er1 conftest.err
6966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6967 test $ac_status = 0; }
6971 # If we don't use `.F' as extension, the preprocessor is not run on the
6972 # input file. (Note that this only needs to work for GNU compilers.)
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6976 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6977 if ${ac_cv_f77_compiler_gnu+:} false; then :
6978 $as_echo_n "(cached) " >&6
6980 cat > conftest.$ac_ext <<_ACEOF
6988 if ac_fn_f77_try_compile "$LINENO"; then :
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6998 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7000 ac_test_FFLAGS=${FFLAGS+set}
7001 ac_save_FFLAGS=$FFLAGS
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7004 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7005 if ${ac_cv_prog_f77_g+:} false; then :
7006 $as_echo_n "(cached) " >&6
7009 cat > conftest.$ac_ext <<_ACEOF
7014 if ac_fn_f77_try_compile "$LINENO"; then :
7015 ac_cv_prog_f77_g=yes
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7023 $as_echo "$ac_cv_prog_f77_g" >&6; }
7024 if test "$ac_test_FFLAGS" = set; then
7025 FFLAGS=$ac_save_FFLAGS
7026 elif test $ac_cv_prog_f77_g = yes; then
7027 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7033 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7040 if test $ac_compiler_gnu = yes; then
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051 if test -z "$F77"; then
7052 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
7056 if test -z "$F77"; then
7057 ## No Fortran compiler specified... Prefer gfortran and intel compilers
7059 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7060 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7062 if test -n "$ac_tool_prefix"; then
7063 for ac_prog in gfortran ifc ifort
7065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_F77+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -n "$F77"; then
7073 ac_cv_prog_F77="$F77" # Let the user override the test.
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 test -z "$as_dir" && as_dir=.
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093 if test -n "$F77"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7095 $as_echo "$F77" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7102 test -n "$F77" && break
7105 if test -z "$F77"; then
7107 for ac_prog in gfortran ifc ifort
7109 # Extract the first word of "$ac_prog", so it can be a program name with args.
7110 set dummy $ac_prog; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7114 $as_echo_n "(cached) " >&6
7116 if test -n "$ac_ct_F77"; then
7117 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126 ac_cv_prog_ac_ct_F77="$ac_prog"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7137 if test -n "$ac_ct_F77"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7139 $as_echo "$ac_ct_F77" >&6; }
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7146 test -n "$ac_ct_F77" && break
7149 if test "x$ac_ct_F77" = x; then
7152 case $cross_compiling:$ac_tool_warned in
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7163 # Provide some information about the compiler.
7164 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7167 for ac_option in --version -v -V -qversion; do
7168 { { ac_try="$ac_compiler $ac_option >&5"
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7174 $as_echo "$ac_try_echo"; } >&5
7175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7177 if test -s conftest.err; then
7179 ... rest of stderr output deleted ...
7180 10q' conftest.err >conftest.er1
7181 cat conftest.er1 >&5
7183 rm -f conftest.er1 conftest.err
7184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7185 test $ac_status = 0; }
7189 # If we don't use `.F' as extension, the preprocessor is not run on the
7190 # input file. (Note that this only needs to work for GNU compilers.)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7194 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7195 if ${ac_cv_f77_compiler_gnu+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 cat > conftest.$ac_ext <<_ACEOF
7206 if ac_fn_f77_try_compile "$LINENO"; then :
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7216 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7218 ac_test_FFLAGS=${FFLAGS+set}
7219 ac_save_FFLAGS=$FFLAGS
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7222 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7223 if ${ac_cv_prog_f77_g+:} false; then :
7224 $as_echo_n "(cached) " >&6
7227 cat > conftest.$ac_ext <<_ACEOF
7232 if ac_fn_f77_try_compile "$LINENO"; then :
7233 ac_cv_prog_f77_g=yes
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7241 $as_echo "$ac_cv_prog_f77_g" >&6; }
7242 if test "$ac_test_FFLAGS" = set; then
7243 FFLAGS=$ac_save_FFLAGS
7244 elif test $ac_cv_prog_f77_g = yes; then
7245 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7251 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7258 if test $ac_compiler_gnu = yes; then
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269 if test -z "$F77"; then
7270 # Best effort to find a compiler (might be g77)
7272 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7273 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7275 if test -n "$ac_tool_prefix"; then
7276 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
7278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_F77+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 if test -n "$F77"; then
7286 ac_cv_prog_F77="$F77" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 if test -n "$F77"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7308 $as_echo "$F77" >&6; }
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7315 test -n "$F77" && break
7318 if test -z "$F77"; then
7320 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
7322 # Extract the first word of "$ac_prog", so it can be a program name with args.
7323 set dummy $ac_prog; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if ${ac_cv_prog_ac_ct_F77+:} false; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -n "$ac_ct_F77"; then
7330 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_ac_ct_F77="$ac_prog"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7350 if test -n "$ac_ct_F77"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7352 $as_echo "$ac_ct_F77" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7359 test -n "$ac_ct_F77" && break
7362 if test "x$ac_ct_F77" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7369 ac_tool_warned=yes ;;
7376 # Provide some information about the compiler.
7377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7380 for ac_option in --version -v -V -qversion; do
7381 { { ac_try="$ac_compiler $ac_option >&5"
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7387 $as_echo "$ac_try_echo"; } >&5
7388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7390 if test -s conftest.err; then
7392 ... rest of stderr output deleted ...
7393 10q' conftest.err >conftest.er1
7394 cat conftest.er1 >&5
7396 rm -f conftest.er1 conftest.err
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }
7402 # If we don't use `.F' as extension, the preprocessor is not run on the
7403 # input file. (Note that this only needs to work for GNU compilers.)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7407 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7408 if ${ac_cv_f77_compiler_gnu+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 cat > conftest.$ac_ext <<_ACEOF
7419 if ac_fn_f77_try_compile "$LINENO"; then :
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7429 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7431 ac_test_FFLAGS=${FFLAGS+set}
7432 ac_save_FFLAGS=$FFLAGS
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7435 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7436 if ${ac_cv_prog_f77_g+:} false; then :
7437 $as_echo_n "(cached) " >&6
7440 cat > conftest.$ac_ext <<_ACEOF
7445 if ac_fn_f77_try_compile "$LINENO"; then :
7446 ac_cv_prog_f77_g=yes
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7454 $as_echo "$ac_cv_prog_f77_g" >&6; }
7455 if test "$ac_test_FFLAGS" = set; then
7456 FFLAGS=$ac_save_FFLAGS
7457 elif test $ac_cv_prog_f77_g = yes; then
7458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7464 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7471 if test $ac_compiler_gnu = yes; then
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7486 # case statements were introduced in fortran 90 so we can use that
7487 # as a test to see if our compiler is fortran 90 compatible.
7489 if test -z "$F77"; then
7490 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7494 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7497 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7498 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7502 cat > conftest.$ac_ext <<_ACEOF
7508 print*, "case is 1, i is ", i
7510 print*, "case is 2 to 3, i is ", i
7512 print*, "default case, i is ", i
7518 if ac_fn_f77_try_compile "$LINENO"; then :
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7520 $as_echo "yes" >&6; }
7522 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539 ############ C ###############
7542 if test "$with_gcc" = yes; then
7544 ac_cpp='$CPP $CPPFLAGS'
7545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548 if test -n "$ac_tool_prefix"; then
7551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_CC+:} false; then :
7556 $as_echo_n "(cached) " >&6
7558 if test -n "$CC"; then
7559 ac_cv_prog_CC="$CC" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 if test -n "$CC"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7581 $as_echo "$CC" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7588 test -n "$CC" && break
7591 if test -z "$CC"; then
7595 # Extract the first word of "$ac_prog", so it can be a program name with args.
7596 set dummy $ac_prog; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$ac_ct_CC"; then
7603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_ac_ct_CC="$ac_prog"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7623 if test -n "$ac_ct_CC"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7625 $as_echo "$ac_ct_CC" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7632 test -n "$ac_ct_CC" && break
7635 if test "x$ac_ct_CC" = x; then
7638 case $cross_compiling:$ac_tool_warned in
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7649 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7651 as_fn_error $? "no acceptable C compiler found in \$PATH
7652 See \`config.log' for more details" "$LINENO" 5; }
7654 # Provide some information about the compiler.
7655 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7658 for ac_option in --version -v -V -qversion; do
7659 { { ac_try="$ac_compiler $ac_option >&5"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7665 $as_echo "$ac_try_echo"; } >&5
7666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7668 if test -s conftest.err; then
7670 ... rest of stderr output deleted ...
7671 10q' conftest.err >conftest.er1
7672 cat conftest.er1 >&5
7674 rm -f conftest.er1 conftest.err
7675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676 test $ac_status = 0; }
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7680 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7681 if ${ac_cv_c_compiler_gnu+:} false; then :
7682 $as_echo_n "(cached) " >&6
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7698 if ac_fn_c_try_compile "$LINENO"; then :
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7708 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7709 if test $ac_compiler_gnu = yes; then
7714 ac_test_CFLAGS=${CFLAGS+set}
7715 ac_save_CFLAGS=$CFLAGS
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7717 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7718 if ${ac_cv_prog_cc_g+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 ac_save_c_werror_flag=$ac_c_werror_flag
7722 ac_c_werror_flag=yes
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7736 if ac_fn_c_try_compile "$LINENO"; then :
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7751 if ac_fn_c_try_compile "$LINENO"; then :
7754 ac_c_werror_flag=$ac_save_c_werror_flag
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7767 if ac_fn_c_try_compile "$LINENO"; then :
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 ac_c_werror_flag=$ac_save_c_werror_flag
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7778 $as_echo "$ac_cv_prog_cc_g" >&6; }
7779 if test "$ac_test_CFLAGS" = set; then
7780 CFLAGS=$ac_save_CFLAGS
7781 elif test $ac_cv_prog_cc_g = yes; then
7782 if test "$GCC" = yes; then
7788 if test "$GCC" = yes; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7795 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7796 if ${ac_cv_prog_cc_c89+:} false; then :
7797 $as_echo_n "(cached) " >&6
7799 ac_cv_prog_cc_c89=no
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7807 struct buf { int x; };
7808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7809 static char *e (p, i)
7815 static char *f (char * (*g) (char **, int), char **p, ...)
7820 s = g (p, va_arg (v,int));
7825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7826 function prototypes and stuff, but not '\xHH' hex character constants.
7827 These don't provoke an error unfortunately, instead are silently treated
7828 as 'x'. The following induces an error, until -std is added to get
7829 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7830 array size at least. It's necessary to write '\x00'==0 to get something
7831 that's true only with -std. */
7832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7835 inside strings and character constants. */
7837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7839 int test (int i, double x);
7840 struct s1 {int (*f) (int a);};
7841 struct s2 {int (*f) (double a);};
7842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7848 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7854 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7856 CC="$ac_save_CC $ac_arg"
7857 if ac_fn_c_try_compile "$LINENO"; then :
7858 ac_cv_prog_cc_c89=$ac_arg
7860 rm -f core conftest.err conftest.$ac_objext
7861 test "x$ac_cv_prog_cc_c89" != "xno" && break
7863 rm -f conftest.$ac_ext
7868 case "x$ac_cv_prog_cc_c89" in
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7871 $as_echo "none needed" >&6; } ;;
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7874 $as_echo "unsupported" >&6; } ;;
7876 CC="$CC $ac_cv_prog_cc_c89"
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7878 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7880 if test "x$ac_cv_prog_cc_c89" != xno; then :
7885 ac_cpp='$CPP $CPPFLAGS'
7886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 ac_cpp='$CPP $CPPFLAGS'
7892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7896 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7897 if ${am_cv_prog_cc_c_o+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7911 # Make sure it works both with $CC and with simple cc.
7912 # Following AC_PROG_CC_C_O, we do the test twice because some
7913 # compilers refuse to overwrite an existing .o file with -o,
7914 # though they will create one.
7915 am_cv_prog_cc_c_o=yes
7917 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7918 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } \
7922 && test -f conftest2.$ac_objext; then
7925 am_cv_prog_cc_c_o=no
7929 rm -f core conftest*
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7933 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7934 if test "$am_cv_prog_cc_c_o" != yes; then
7935 # Losing compiler, so override with the script.
7936 # FIXME: It is wrong to rewrite CC.
7937 # But if we don't then we get into trouble of one sort or another.
7938 # A longer-term fix would be to have automake use am__CC in this case,
7939 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7940 CC="$am_aux_dir/compile $CC"
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949 if test -z "$CC"; then
7950 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7954 if test "$with_intelcompilers" = yes; then
7956 ac_cpp='$CPP $CPPFLAGS'
7957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960 if test -n "$ac_tool_prefix"; then
7961 for ac_prog in icc ecc
7963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_CC+:} false; then :
7968 $as_echo_n "(cached) " >&6
7970 if test -n "$CC"; then
7971 ac_cv_prog_CC="$CC" # Let the user override the test.
7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 test -z "$as_dir" && as_dir=.
7978 for ac_exec_ext in '' $ac_executable_extensions; do
7979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 if test -n "$CC"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7993 $as_echo "$CC" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8000 test -n "$CC" && break
8003 if test -z "$CC"; then
8005 for ac_prog in icc ecc