2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://bugzilla.scilab.org/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
378 as_status=$?; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='Scilab'
565 PACKAGE_TARNAME='scilab'
567 PACKAGE_STRING='Scilab 5'
568 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
608 ac_subst_vars='am__EXEEXT_FALSE
632 INSTALL_HELP_XML_FALSE
633 INSTALL_HELP_XML_TRUE
673 GENERATE_LOCALIZATION_FILES_FALSE
674 GENERATE_LOCALIZATION_FILES_TRUE
711 XGETTEXT_EXTRA_OPTIONS
719 GETTEXT_MACRO_VERSION
737 SWIG_RUNTIME_LIBS_DIR
771 USE_DYNAMIC_STACK_FALSE
772 USE_DYNAMIC_STACK_TRUE
775 IS_MIPS_SGI_IRIX_FALSE
776 IS_MIPS_SGI_IRIX_TRUE
823 MAINTAINER_MODE_FALSE
826 RELOCATABLE_VIA_LD_FALSE
827 RELOCATABLE_VIA_LD_TRUE
852 INSTALL_STRIP_PROGRAM
855 SCILAB_LIBRARY_VERSION
883 program_transform_name
896 enable_option_checking
901 enable_maintainer_mode
902 enable_dependency_tracking
936 enable_build_localization
953 with_install_help_xml
960 ac_precious_vars='build_alias
981 # Initialize some variables set by options.
983 ac_init_version=false
984 ac_unrecognized_opts=
986 # The variables have the same names as the options, with
987 # dashes changed to underlines.
995 program_transform_name=s,x,x,
1003 # Installation directory options.
1004 # These are left unexpanded so users can "make install exec_prefix=/foo"
1005 # and all the variables that are supposed to be based on exec_prefix
1006 # by default will actually change.
1007 # Use braces instead of parens because sh, perl, etc. also accept them.
1008 # (The list follows the same order as the GNU Coding Standards.)
1009 bindir='${exec_prefix}/bin'
1010 sbindir='${exec_prefix}/sbin'
1011 libexecdir='${exec_prefix}/libexec'
1012 datarootdir='${prefix}/share'
1013 datadir='${datarootdir}'
1014 sysconfdir='${prefix}/etc'
1015 sharedstatedir='${prefix}/com'
1016 localstatedir='${prefix}/var'
1017 includedir='${prefix}/include'
1018 oldincludedir='/usr/include'
1019 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020 infodir='${datarootdir}/info'
1025 libdir='${exec_prefix}/lib'
1026 localedir='${datarootdir}/locale'
1027 mandir='${datarootdir}/man'
1033 # If the previous option needs an argument, assign it.
1034 if test -n "$ac_prev"; then
1035 eval $ac_prev=\$ac_option
1041 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045 # Accept the important Cygnus configure options, so we can diagnose typos.
1047 case $ac_dashdash$ac_option in
1051 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1054 bindir=$ac_optarg ;;
1056 -build | --build | --buil | --bui | --bu)
1057 ac_prev=build_alias ;;
1058 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1059 build_alias=$ac_optarg ;;
1061 -cache-file | --cache-file | --cache-fil | --cache-fi \
1062 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1063 ac_prev=cache_file ;;
1064 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1065 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1066 cache_file=$ac_optarg ;;
1068 --config-cache | -C)
1069 cache_file=config.cache ;;
1071 -datadir | --datadir | --datadi | --datad)
1073 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1074 datadir=$ac_optarg ;;
1076 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1077 | --dataroo | --dataro | --datar)
1078 ac_prev=datarootdir ;;
1079 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1080 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1081 datarootdir=$ac_optarg ;;
1083 -disable-* | --disable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1097 eval enable_$ac_useropt=no ;;
1099 -docdir | --docdir | --docdi | --doc | --do)
1101 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1102 docdir=$ac_optarg ;;
1104 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1107 dvidir=$ac_optarg ;;
1109 -enable-* | --enable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid feature name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1123 eval enable_$ac_useropt=\$ac_optarg ;;
1125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1127 | --exec | --exe | --ex)
1128 ac_prev=exec_prefix ;;
1129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1131 | --exec=* | --exe=* | --ex=*)
1132 exec_prefix=$ac_optarg ;;
1134 -gas | --gas | --ga | --g)
1135 # Obsolete; use --with-gas.
1138 -help | --help | --hel | --he | -h)
1139 ac_init_help=long ;;
1140 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1141 ac_init_help=recursive ;;
1142 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1143 ac_init_help=short ;;
1145 -host | --host | --hos | --ho)
1146 ac_prev=host_alias ;;
1147 -host=* | --host=* | --hos=* | --ho=*)
1148 host_alias=$ac_optarg ;;
1150 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 htmldir=$ac_optarg ;;
1156 -includedir | --includedir | --includedi | --included | --include \
1157 | --includ | --inclu | --incl | --inc)
1158 ac_prev=includedir ;;
1159 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1160 | --includ=* | --inclu=* | --incl=* | --inc=*)
1161 includedir=$ac_optarg ;;
1163 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1166 infodir=$ac_optarg ;;
1168 -libdir | --libdir | --libdi | --libd)
1170 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1171 libdir=$ac_optarg ;;
1173 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1174 | --libexe | --libex | --libe)
1175 ac_prev=libexecdir ;;
1176 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1177 | --libexe=* | --libex=* | --libe=*)
1178 libexecdir=$ac_optarg ;;
1180 -localedir | --localedir | --localedi | --localed | --locale)
1181 ac_prev=localedir ;;
1182 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1183 localedir=$ac_optarg ;;
1185 -localstatedir | --localstatedir | --localstatedi | --localstated \
1186 | --localstate | --localstat | --localsta | --localst | --locals)
1187 ac_prev=localstatedir ;;
1188 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1189 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1190 localstatedir=$ac_optarg ;;
1192 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1195 mandir=$ac_optarg ;;
1197 -nfp | --nfp | --nf)
1198 # Obsolete; use --without-fp.
1201 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202 | --no-cr | --no-c | -n)
1205 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1206 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1210 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1211 | --oldin | --oldi | --old | --ol | --o)
1212 ac_prev=oldincludedir ;;
1213 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1214 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1215 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1216 oldincludedir=$ac_optarg ;;
1218 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1221 prefix=$ac_optarg ;;
1223 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1224 | --program-pre | --program-pr | --program-p)
1225 ac_prev=program_prefix ;;
1226 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1227 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1228 program_prefix=$ac_optarg ;;
1230 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1231 | --program-suf | --program-su | --program-s)
1232 ac_prev=program_suffix ;;
1233 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1234 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1235 program_suffix=$ac_optarg ;;
1237 -program-transform-name | --program-transform-name \
1238 | --program-transform-nam | --program-transform-na \
1239 | --program-transform-n | --program-transform- \
1240 | --program-transform | --program-transfor \
1241 | --program-transfo | --program-transf \
1242 | --program-trans | --program-tran \
1243 | --progr-tra | --program-tr | --program-t)
1244 ac_prev=program_transform_name ;;
1245 -program-transform-name=* | --program-transform-name=* \
1246 | --program-transform-nam=* | --program-transform-na=* \
1247 | --program-transform-n=* | --program-transform-=* \
1248 | --program-transform=* | --program-transfor=* \
1249 | --program-transfo=* | --program-transf=* \
1250 | --program-trans=* | --program-tran=* \
1251 | --progr-tra=* | --program-tr=* | --program-t=*)
1252 program_transform_name=$ac_optarg ;;
1254 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1257 pdfdir=$ac_optarg ;;
1259 -psdir | --psdir | --psdi | --psd | --ps)
1261 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265 | -silent | --silent | --silen | --sile | --sil)
1268 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 sbindir=$ac_optarg ;;
1274 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1275 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1276 | --sharedst | --shareds | --shared | --share | --shar \
1278 ac_prev=sharedstatedir ;;
1279 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1280 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1281 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 sharedstatedir=$ac_optarg ;;
1285 -site | --site | --sit)
1287 -site=* | --site=* | --sit=*)
1290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1293 srcdir=$ac_optarg ;;
1295 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1296 | --syscon | --sysco | --sysc | --sys | --sy)
1297 ac_prev=sysconfdir ;;
1298 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1299 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1300 sysconfdir=$ac_optarg ;;
1302 -target | --target | --targe | --targ | --tar | --ta | --t)
1303 ac_prev=target_alias ;;
1304 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1305 target_alias=$ac_optarg ;;
1307 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310 -version | --version | --versio | --versi | --vers | -V)
1311 ac_init_version=: ;;
1314 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 as_fn_error "invalid package name: $ac_useropt"
1318 ac_useropt_orig=$ac_useropt
1319 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1324 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1325 ac_unrecognized_sep=', ';;
1327 eval with_$ac_useropt=\$ac_optarg ;;
1329 -without-* | --without-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error "invalid package name: $ac_useropt"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1343 eval with_$ac_useropt=no ;;
1346 # Obsolete; use --with-x.
1349 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1350 | --x-incl | --x-inc | --x-in | --x-i)
1351 ac_prev=x_includes ;;
1352 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1353 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1354 x_includes=$ac_optarg ;;
1356 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1357 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1358 ac_prev=x_libraries ;;
1359 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1360 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1361 x_libraries=$ac_optarg ;;
1363 -*) as_fn_error "unrecognized option: \`$ac_option'
1364 Try \`$0 --help' for more information."
1368 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1369 # Reject names that are not valid shell variable names.
1370 case $ac_envvar in #(
1371 '' | [0-9]* | *[!_$as_cr_alnum]* )
1372 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1374 eval $ac_envvar=\$ac_optarg
1375 export $ac_envvar ;;
1378 # FIXME: should be removed in autoconf 3.0.
1379 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1380 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1382 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388 if test -n "$ac_prev"; then
1389 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1390 as_fn_error "missing argument to $ac_option"
1393 if test -n "$ac_unrecognized_opts"; then
1394 case $enable_option_checking in
1396 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1397 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401 # Check all directory arguments for consistency.
1402 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1403 datadir sysconfdir sharedstatedir localstatedir includedir \
1404 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1405 libdir localedir mandir
1407 eval ac_val=\$$ac_var
1408 # Remove trailing slashes.
1411 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1412 eval $ac_var=\$ac_val;;
1414 # Be sure to have absolute directory names.
1416 [\\/$]* | ?:[\\/]* ) continue;;
1417 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1422 # There might be people who depend on the old broken behavior: `$host'
1423 # used to hold the argument of --host etc.
1424 # FIXME: To remove some day.
1427 target=$target_alias
1429 # FIXME: To remove some day.
1430 if test "x$host_alias" != x; then
1431 if test "x$build_alias" = x; then
1432 cross_compiling=maybe
1433 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1434 If a cross compiler is detected then cross compile mode will be used." >&2
1435 elif test "x$build_alias" != "x$host_alias"; then
1441 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443 test "$silent" = yes && exec 6>/dev/null
1446 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1447 ac_ls_di=`ls -di .` &&
1448 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1449 as_fn_error "working directory cannot be determined"
1450 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1451 as_fn_error "pwd does not report name of working directory"
1454 # Find the source files, if location was not specified.
1455 if test -z "$srcdir"; then
1456 ac_srcdir_defaulted=yes
1457 # Try the directory containing this script, then the parent directory.
1458 ac_confdir=`$as_dirname -- "$as_myself" ||
1459 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1460 X"$as_myself" : 'X\(//\)[^/]' \| \
1461 X"$as_myself" : 'X\(//\)$' \| \
1462 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1463 $as_echo X"$as_myself" |
1464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1486 ac_srcdir_defaulted=no
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1490 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1492 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1496 # When building in place, set srcdir=.
1497 if test "$ac_abs_confdir" = "$ac_pwd"; then
1500 # Remove unnecessary trailing slashes from srcdir.
1501 # Double slashes in file names in object file debugging info
1502 # mess up M-x gdb in Emacs.
1504 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 for ac_var in $ac_precious_vars; do
1507 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_env_${ac_var}_value=\$${ac_var}
1509 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 # Report the --help message.
1516 if test "$ac_init_help" = "long"; then
1517 # Omit some internal or obsolete options to make the list less imposing.
1518 # This message is too long to be a string in the A/UX 3.1 sh.
1520 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1522 Usage: $0 [OPTION]... [VAR=VALUE]...
1524 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1525 VAR=VALUE. See below for descriptions of some of the useful variables.
1527 Defaults for the options are specified in brackets.
1530 -h, --help display this help and exit
1531 --help=short display options specific to this package
1532 --help=recursive display the short help of all the included packages
1533 -V, --version display version information and exit
1534 -q, --quiet, --silent do not print \`checking...' messages
1535 --cache-file=FILE cache test results in FILE [disabled]
1536 -C, --config-cache alias for \`--cache-file=config.cache'
1537 -n, --no-create do not create output files
1538 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540 Installation directories:
1541 --prefix=PREFIX install architecture-independent files in PREFIX
1542 [$ac_default_prefix]
1543 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1546 By default, \`make install' will install all the files in
1547 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1548 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1549 for instance \`--prefix=\$HOME'.
1551 For better control, use the options below.
1553 Fine tuning of the installation directories:
1554 --bindir=DIR user executables [EPREFIX/bin]
1555 --sbindir=DIR system admin executables [EPREFIX/sbin]
1556 --libexecdir=DIR program executables [EPREFIX/libexec]
1557 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1558 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1559 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1560 --libdir=DIR object code libraries [EPREFIX/lib]
1561 --includedir=DIR C header files [PREFIX/include]
1562 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1563 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1564 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1565 --infodir=DIR info documentation [DATAROOTDIR/info]
1566 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1567 --mandir=DIR man documentation [DATAROOTDIR/man]
1568 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1569 --htmldir=DIR html documentation [DOCDIR]
1570 --dvidir=DIR dvi documentation [DOCDIR]
1571 --pdfdir=DIR pdf documentation [DOCDIR]
1572 --psdir=DIR ps documentation [DOCDIR]
1578 --program-prefix=PREFIX prepend PREFIX to installed program names
1579 --program-suffix=SUFFIX append SUFFIX to installed program names
1580 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1583 --x-includes=DIR X include files are in DIR
1584 --x-libraries=DIR X library files are in DIR
1587 --build=BUILD configure for building on BUILD [guessed]
1588 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of Scilab 5:";;
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --disable-largefile omit support for large files
1603 --enable-relocatable install a package that can be moved in the filesystem
1604 --disable-rpath do not hardcode runtime library paths
1605 --enable-maintainer-mode enable make rules and dependencies not useful
1606 (and sometimes confusing) to the casual installer
1607 --disable-dependency-tracking speeds up one-time build
1608 --enable-dependency-tracking do not reject slow dependency extractors
1609 --enable-debug Do not optimize and print warning messages
1610 (C/C++/Fortran code)
1611 --enable-debug-C Do not optimize and print warning messages (C code)
1612 --enable-debug-CXX Do not optimize and print warning messages (C++
1614 --enable-debug-java Print warning messages and line numbers (Java code)
1615 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1617 --enable-debug-linker Print warning messages from the linker (ld)
1618 --enable-stop-on-warning
1619 Stop the compilation on the first warning found in
1621 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1622 Java Development Kit (JDK) is mandatory for this
1624 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1625 (A Java Development Kit (JDK) is mandatory for this
1627 --disable-nls do not use Native Language Support
1628 --disable-build-localization
1629 Disable the localization build
1631 --disable-build-help Disable the help build
1633 --enable-static[=PKGS] build static libraries [default=no]
1634 --enable-shared[=PKGS] build shared libraries [default=yes]
1635 --enable-fast-install[=PKGS]
1636 optimize for fast installation [default=yes]
1637 --disable-libtool-lock avoid locking (might break parallel builds)
1640 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1641 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1642 --with-gnu-ld assume the C compiler uses GNU ld default=no
1643 --with-gcc Use gcc C compiler
1644 --with-g77 Use g77, GNU Fortran 77 compiler
1645 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1646 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1647 compilers (GNU/Linux only)
1648 --without-tk Disable the interface to Tcl/Tk
1649 --without-javasci Disable the Java/Scilab interface (javasci)
1650 --without-gui Disable the Scilab Graphical User Interface (GUI).
1651 Intended for embedded/clustering/grid Scilab
1652 --without-hdf5 Disable the interface to the HDF5 library
1653 --with-hdf5-include=DIR Set the path to the HDF5 headers
1654 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1655 --with-jdk=DIR use JDK from DIR
1656 --with-ant=DIR Use ant from DIR
1657 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1658 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1659 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1660 --without-libintl-prefix don't search for libintl in includedir and libdir
1661 --without-scicos Disable Scicos
1662 --without-ocaml Disable the OCaml modules (modelica)
1663 --without-fftw Disable the interface to the FFTW 3 library
1664 --with-fftw-include=DIR Set the path to the FFTW headers
1665 --with-fftw-library=DIR Set the path to the FFTW libraries
1666 --without-pvm Disable the interface to the PVM library
1667 --with-pvm-include=DIR Set the path to the PVM headers
1668 --with-pvm-library=DIR Set the path to the PVM library directory
1669 --with-libxml2=PREFIX Set the path to your libxml2 installation
1670 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1672 --with-lapack-library=DIR
1673 set the path to the LAPACK library
1674 --without-umfpack Disable the interface to the UMFPACK library
1675 --with-umfpack-library=DIR
1676 Set the path to the UMFPACK libraries
1677 --with-umfpack-include=DIR
1678 Set the path to the UMFPACK headers
1679 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1680 Expression Library) installation
1681 --with-tcl-library=DIR Set the path to the TCL library
1682 --with-tcl-include=DIR Set the path to the TCL headers
1683 --with-tk-library=DIR Set the path to the TK library
1684 --with-tk-include=DIR Set the path to the TK headers
1685 --with-x use the X Window System
1686 --without-matio Disable the interface to Matio (MAT File I/O
1688 --with-matio-include=DIR
1689 Set the path to the MATIO headers
1690 --with-matio-library=DIR
1691 Set the path to the MATIO libraries
1692 --with-docbook=DIR Set the path to the docbook package
1693 --with-install-help-xml make install will install XML files
1695 --with-pic try to use only PIC/non-PIC objects [default=use
1697 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1708 PKG_CONFIG path to pkg-config utility
1709 F77 Fortran 77 compiler command
1710 FFLAGS Fortran 77 compiler flags
1711 CXX C++ compiler command
1712 CXXFLAGS C++ compiler flags
1713 XMKMF Path to xmkmf, Makefile generator for X Window System
1715 C compiler flags for MATIO, overriding pkg-config
1716 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1717 CXXCPP C++ preprocessor
1719 Use these variables to override the choices made by `configure' or to help
1720 it to find libraries and programs with nonstandard names/locations.
1722 Report bugs to <http://bugzilla.scilab.org/>.
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1746 ac_abs_top_builddir=$ac_pwd
1747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir=$ac_top_build_prefix
1752 .) # We are building in place.
1754 ac_top_srcdir=$ac_top_builddir_sub
1755 ac_abs_top_srcdir=$ac_pwd ;;
1756 [\\/]* | ?:[\\/]* ) # Absolute name.
1757 ac_srcdir=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir=$srcdir
1759 ac_abs_top_srcdir=$srcdir ;;
1761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" || { ac_status=$?; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 cd "$ac_pwd" || { ac_status=$?; break; }
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1786 generated by GNU Autoconf 2.65
1788 Copyright (C) 2009 Free Software Foundation, Inc.
1789 This configure script is free software; the Free Software Foundation
1790 gives unlimited permission to copy, distribute and modify it.
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext
1806 if { { ac_try="$ac_compile"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_c_try_cpp LINENO
1838 # ----------------------
1839 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 if test -s conftest.err; then
1853 grep -v '^ *+' conftest.err >conftest.er1
1854 cat conftest.er1 >&5
1855 mv -f conftest.er1 conftest.err
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; } >/dev/null && {
1859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1860 test ! -s conftest.err
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 as_fn_set_status $ac_retval
1874 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1875 # -------------------------------------------------------
1876 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1877 # the include files in INCLUDES and setting the cache variable VAR
1879 ac_fn_c_check_header_mongrel ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1892 # Is the header compilable?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1894 $as_echo_n "checking $2 usability... " >&6; }
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 ac_header_compiler=yes
1903 ac_header_compiler=no
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1907 $as_echo "$ac_header_compiler" >&6; }
1909 # Is the header present?
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1911 $as_echo_n "checking $2 presence... " >&6; }
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1916 if ac_fn_c_try_cpp "$LINENO"; then :
1917 ac_header_preproc=yes
1919 ac_header_preproc=no
1921 rm -f conftest.err conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1923 $as_echo "$ac_header_preproc" >&6; }
1925 # So? What about this header?
1926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1929 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1931 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1935 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1937 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1939 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1941 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ## ------------------------------------------ ##
1946 ## Report this to http://bugzilla.scilab.org/ ##
1947 ## ------------------------------------------ ##
1949 ) | sed "s/^/$as_me: WARNING: /" >&2
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1955 $as_echo_n "(cached) " >&6
1957 eval "$3=\$ac_header_compiler"
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 } # ac_fn_c_check_header_mongrel
1967 # ac_fn_c_try_run LINENO
1968 # ----------------------
1969 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1970 # that executables *can* be run.
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { { ac_try="$ac_link"
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980 $as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_link") 2>&5
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1985 { { case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_try") 2>&5
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; }; }; then :
1997 $as_echo "$as_me: program exited with status $ac_status" >&5
1998 $as_echo "$as_me: failed program was:" >&5
1999 sed 's/^/| /' conftest.$ac_ext >&5
2001 ac_retval=$ac_status
2003 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005 as_fn_set_status $ac_retval
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2019 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2026 if ac_fn_c_try_compile "$LINENO"; then :
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_check_header_compile
2040 # ac_fn_c_try_link LINENO
2041 # -----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded.
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 rm -f conftest.$ac_objext conftest$ac_exeext
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050 *) ac_try_echo=$ac_try;;
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>conftest.err
2056 if test -s conftest.err; then
2057 grep -v '^ *+' conftest.err >conftest.er1
2058 cat conftest.er1 >&5
2059 mv -f conftest.er1 conftest.err
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && {
2063 test -z "$ac_c_werror_flag" ||
2064 test ! -s conftest.err
2065 } && test -s conftest$ac_exeext && {
2066 test "$cross_compiling" = yes ||
2067 $as_test_x conftest$ac_exeext
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2077 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2078 # interfere with the next link command; also delete a directory that is
2079 # left behind by Apple's compiler. We do this before executing the actions.
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 as_fn_set_status $ac_retval
2084 } # ac_fn_c_try_link
2086 # ac_fn_c_check_func LINENO FUNC VAR
2087 # ----------------------------------
2088 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2089 ac_fn_c_check_func ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2101 #define $2 innocuous_$2
2103 /* System header to define __stub macros and hopefully few prototypes,
2104 which can conflict with char $2 (); below.
2105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2106 <limits.h> exists even on freestanding compilers. */
2109 # include <limits.h>
2111 # include <assert.h>
2116 /* Override any GCC internal prototype to avoid an error.
2117 Use char because int might match the return type of a GCC
2118 builtin and then its argument prototype would still apply. */
2123 /* The GNU C library defines this for functions which it implements
2124 to always fail with ENOSYS. Some functions are actually named
2125 something starting with __ and the normal name is an alias. */
2126 #if defined __stub_$2 || defined __stub___$2
2138 if ac_fn_c_try_link "$LINENO"; then :
2143 rm -f core conftest.err conftest.$ac_objext \
2144 conftest$ac_exeext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 } # ac_fn_c_check_func
2153 # ac_fn_f77_try_compile LINENO
2154 # ----------------------------
2155 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2156 ac_fn_f77_try_compile ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 rm -f conftest.$ac_objext
2160 if { { ac_try="$ac_compile"
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_compile") 2>conftest.err
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; } && {
2176 test -z "$ac_f77_werror_flag" ||
2177 test ! -s conftest.err
2178 } && test -s conftest.$ac_objext; then :
2181 $as_echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 as_fn_set_status $ac_retval
2189 } # ac_fn_f77_try_compile
2191 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2192 # --------------------------------------------
2193 # Tries to find the compile-time value of EXPR in a program that includes
2194 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2196 ac_fn_c_compute_int ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 if test "$cross_compiling" = yes; then
2200 # Depending upon the size, compute the lo and hi bounds.
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2207 static int test_array [1 - 2 * !(($2) >= 0)];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 ac_hi=$ac_mid; break
2233 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2265 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2273 ac_lo=$ac_mid; break
2275 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2276 if test $ac_mid -le $ac_hi; then
2280 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 # Binary search between lo and hi bounds.
2291 while test "x$ac_lo" != "x$ac_hi"; do
2292 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2299 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2306 if ac_fn_c_try_compile "$LINENO"; then :
2309 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2319 /* end confdefs.h. */
2321 static long int longval () { return $2; }
2322 static unsigned long int ulongval () { return $2; }
2329 FILE *f = fopen ("conftest.val", "w");
2334 long int i = longval ();
2337 fprintf (f, "%ld", i);
2341 unsigned long int i = ulongval ();
2344 fprintf (f, "%lu", i);
2346 /* Do not output a trailing newline, as this causes \r\n confusion
2347 on some platforms. */
2348 return ferror (f) || fclose (f) != 0;
2354 if ac_fn_c_try_run "$LINENO"; then :
2355 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2360 conftest.$ac_objext conftest.beam conftest.$ac_ext
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 as_fn_set_status $ac_retval
2367 } # ac_fn_c_compute_int
2369 # ac_fn_cxx_try_compile LINENO
2370 # ----------------------------
2371 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_cxx_try_compile ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext
2376 if { { ac_try="$ac_compile"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compile") 2>conftest.err
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_cxx_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest.$ac_objext; then :
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 as_fn_set_status $ac_retval
2405 } # ac_fn_cxx_try_compile
2407 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2408 # ----------------------------------------------------
2409 # Tries to find if the field MEMBER exists in type AGGR, after including
2410 # INCLUDES, setting cache variable VAR accordingly.
2411 ac_fn_c_check_member ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2415 $as_echo_n "checking for $2.$3... " >&6; }
2416 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2417 $as_echo_n "(cached) " >&6
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2432 if ac_fn_c_try_compile "$LINENO"; then :
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2442 if (sizeof ac_aggr.$3)
2448 if ac_fn_c_try_compile "$LINENO"; then :
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462 } # ac_fn_c_check_member
2464 # ac_fn_cxx_try_cpp LINENO
2465 # ------------------------
2466 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2467 ac_fn_cxx_try_cpp ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { { ac_try="$ac_cpp conftest.$ac_ext"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2476 $as_echo "$ac_try_echo"; } >&5
2477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2479 if test -s conftest.err; then
2480 grep -v '^ *+' conftest.err >conftest.er1
2481 cat conftest.er1 >&5
2482 mv -f conftest.er1 conftest.err
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; } >/dev/null && {
2486 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2487 test ! -s conftest.err
2491 $as_echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 as_fn_set_status $ac_retval
2499 } # ac_fn_cxx_try_cpp
2501 # ac_fn_cxx_try_link LINENO
2502 # -------------------------
2503 # Try to link conftest.$ac_ext, and return whether this succeeded.
2504 ac_fn_cxx_try_link ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { { ac_try="$ac_link"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2514 $as_echo "$ac_try_echo"; } >&5
2515 (eval "$ac_link") 2>conftest.err
2517 if test -s conftest.err; then
2518 grep -v '^ *+' conftest.err >conftest.er1
2519 cat conftest.er1 >&5
2520 mv -f conftest.er1 conftest.err
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; } && {
2524 test -z "$ac_cxx_werror_flag" ||
2525 test ! -s conftest.err
2526 } && test -s conftest$ac_exeext && {
2527 test "$cross_compiling" = yes ||
2528 $as_test_x conftest$ac_exeext
2532 $as_echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2537 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2538 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2539 # interfere with the next link command; also delete a directory that is
2540 # left behind by Apple's compiler. We do this before executing the actions.
2541 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2543 as_fn_set_status $ac_retval
2545 } # ac_fn_cxx_try_link
2547 # ac_fn_f77_try_link LINENO
2548 # -------------------------
2549 # Try to link conftest.$ac_ext, and return whether this succeeded.
2550 ac_fn_f77_try_link ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 rm -f conftest.$ac_objext conftest$ac_exeext
2554 if { { ac_try="$ac_link"
2556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2557 *) ac_try_echo=$ac_try;;
2559 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2560 $as_echo "$ac_try_echo"; } >&5
2561 (eval "$ac_link") 2>conftest.err
2563 if test -s conftest.err; then
2564 grep -v '^ *+' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2566 mv -f conftest.er1 conftest.err
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; } && {
2570 test -z "$ac_f77_werror_flag" ||
2571 test ! -s conftest.err
2572 } && test -s conftest$ac_exeext && {
2573 test "$cross_compiling" = yes ||
2574 $as_test_x conftest$ac_exeext
2578 $as_echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2585 # interfere with the next link command; also delete a directory that is
2586 # left behind by Apple's compiler. We do this before executing the actions.
2587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2589 as_fn_set_status $ac_retval
2591 } # ac_fn_f77_try_link
2592 cat >config.log <<_ACEOF
2593 This file contains any messages produced by compilers while
2594 running configure, to aid debugging if configure makes a mistake.
2596 It was created by Scilab $as_me 5, which was
2597 generated by GNU Autoconf 2.65. Invocation command line was
2609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 test -z "$as_dir" && as_dir=.
2633 $as_echo "PATH: $as_dir"
2649 # Keep a trace of the command line.
2650 # Strip out --no-create and --no-recursion so they do not pile up.
2651 # Strip out --silent because we don't want to record it for future runs.
2652 # Also quote any args containing shell meta-characters.
2653 # Make two passes to allow for proper duplicate-argument suppression.
2657 ac_must_keep_next=false
2663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2665 | -silent | --silent | --silen | --sile | --sil)
2668 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2673 as_fn_append ac_configure_args1 " '$ac_arg'"
2674 if test $ac_must_keep_next = true; then
2675 ac_must_keep_next=false # Got value, back to normal.
2678 *=* | --config-cache | -C | -disable-* | --disable-* \
2679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2681 | -with-* | --with-* | -without-* | --without-* | --x)
2682 case "$ac_configure_args0 " in
2683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2686 -* ) ac_must_keep_next=true ;;
2689 as_fn_append ac_configure_args " '$ac_arg'"
2694 { ac_configure_args0=; unset ac_configure_args0;}
2695 { ac_configure_args1=; unset ac_configure_args1;}
2697 # When interrupted or exit'd, cleanup temporary files, and complete
2698 # config.log. We remove comments because anyway the quotes in there
2699 # would cause problems or look ugly.
2700 # WARNING: Use '\'' to represent an apostrophe within the trap.
2701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2702 trap 'exit_status=$?
2703 # Save into config.log some information that might help in debugging.
2708 ## ---------------- ##
2709 ## Cache variables. ##
2710 ## ---------------- ##
2713 # The following way of writing the cache mishandles newlines in values,
2715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2716 eval ac_val=\$$ac_var
2720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2724 _ | IFS | as_nl) ;; #(
2725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2726 *) { eval $ac_var=; unset $ac_var;} ;;
2731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2732 *${as_nl}ac_space=\ *)
2734 "s/'\''/'\''\\\\'\'''\''/g;
2735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2746 ## ----------------- ##
2747 ## Output variables. ##
2748 ## ----------------- ##
2751 for ac_var in $ac_subst_vars
2753 eval ac_val=\$$ac_var
2755 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757 $as_echo "$ac_var='\''$ac_val'\''"
2761 if test -n "$ac_subst_files"; then
2763 ## ------------------- ##
2764 ## File substitutions. ##
2765 ## ------------------- ##
2768 for ac_var in $ac_subst_files
2770 eval ac_val=\$$ac_var
2772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 $as_echo "$ac_var='\''$ac_val'\''"
2779 if test -s confdefs.h; then
2789 test "$ac_signal" != 0 &&
2790 $as_echo "$as_me: caught signal $ac_signal"
2791 $as_echo "$as_me: exit $exit_status"
2793 rm -f core *.core core.conftest.* &&
2794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2797 for ac_signal in 1 2 13 15; do
2798 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2805 $as_echo "/* confdefs.h */" > confdefs.h
2807 # Predefined preprocessor variables.
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2838 if test -n "$CONFIG_SITE"; then
2839 ac_site_file1=$CONFIG_SITE
2840 elif test "x$prefix" != xNONE; then
2841 ac_site_file1=$prefix/share/config.site
2842 ac_site_file2=$prefix/etc/config.site
2844 ac_site_file1=$ac_default_prefix/share/config.site
2845 ac_site_file2=$ac_default_prefix/etc/config.site
2847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2849 test "x$ac_site_file" = xNONE && continue
2850 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2853 sed 's/^/| /' "$ac_site_file" >&5
2858 if test -r "$cache_file"; then
2859 # Some versions of bash will fail to source /dev/null (special files
2860 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2861 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2863 $as_echo "$as_me: loading cache $cache_file" >&6;}
2865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2866 *) . "./$cache_file";;
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2871 $as_echo "$as_me: creating cache $cache_file" >&6;}
2875 gt_needs="$gt_needs "
2876 # Check that the precious variables saved in the cache have kept the same
2878 ac_cache_corrupted=false
2879 for ac_var in $ac_precious_vars; do
2880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2881 eval ac_new_set=\$ac_env_${ac_var}_set
2882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2883 eval ac_new_val=\$ac_env_${ac_var}_value
2884 case $ac_old_set,$ac_new_set in
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2887 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2888 ac_cache_corrupted=: ;;
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2891 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2892 ac_cache_corrupted=: ;;
2895 if test "x$ac_old_val" != "x$ac_new_val"; then
2896 # differences in whitespace do not lead to failure.
2897 ac_old_val_w=`echo x $ac_old_val`
2898 ac_new_val_w=`echo x $ac_new_val`
2899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2901 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2902 ac_cache_corrupted=:
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2905 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2906 eval $ac_var=\$ac_old_val
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2909 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2911 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2914 # Pass precious variables to config.status.
2915 if test "$ac_new_set" = set; then
2917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2918 *) ac_arg=$ac_var=$ac_new_val ;;
2920 case " $ac_configure_args " in
2921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2922 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2926 if $ac_cache_corrupted; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2930 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2931 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2933 ## -------------------- ##
2934 ## Main body of script. ##
2935 ## -------------------- ##
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 SCI_BUILDDIR="`pwd`"
2948 SCI_SRCDIR="$srcdir"
2949 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2951 SCILAB_LIBRARY_VERSION=5:2:0
2954 #shared library versioning
2955 #GENERIC_LIBRARY_VERSION=1:2:0
2959 # current:revision:age
2961 # | | +- increment if interfaces have been added
2962 # | | set to zero if interfaces have been removed
2964 # | +- increment if source code has changed
2965 # | set to zero if current is incremented
2966 # +- increment if interfaces have been added, removed or changed
2968 # Check if we have a space in the path to the source tree
2969 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2970 if test "$SPACE_IN_PATH" = "0"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2972 $as_echo "$as_me: WARNING: =====================================" >&2;}
2973 { $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
2974 $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;}
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2976 $as_echo "$as_me: WARNING: =====================================" >&2;}
2981 for ac_dir in config "$srcdir"/config; do
2982 for ac_t in install-sh install.sh shtool; do
2983 if test -f "$ac_dir/$ac_t"; then
2985 ac_install_sh="$ac_aux_dir/$ac_t -c"
2990 if test -z "$ac_aux_dir"; then
2991 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2994 # These three variables are undocumented and unsupported,
2995 # and are intended to be withdrawn in a future Autoconf release.
2996 # They can cause serious problems if a builder's source tree is in a directory
2997 # whose full name contains unusual characters.
2998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3003 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3007 # expand $ac_aux_dir to an absolute path
3008 am_aux_dir=`cd $ac_aux_dir && pwd`
3010 if test x"${install_sh}" != xset; then
3013 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3015 install_sh="\${SHELL} $am_aux_dir/install-sh"
3019 # Installed binaries are usually stripped using `strip' when the user
3020 # run `make install-strip'. However `strip' might not be the right
3021 # tool to use in cross-compilation environments, therefore Automake
3022 # will honor the `STRIP' environment variable to overrule this program.
3023 if test "$cross_compiling" != no; then
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}strip; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_STRIP+set}" = set; then :
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$STRIP"; then
3033 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 STRIP=$ac_cv_prog_STRIP
3053 if test -n "$STRIP"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3055 $as_echo "$STRIP" >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_STRIP"; then
3065 # Extract the first word of "strip", so it can be a program name with args.
3066 set dummy strip; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_STRIP"; then
3073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir=.
3080 for ac_exec_ext in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_STRIP="strip"
3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093 if test -n "$ac_ct_STRIP"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095 $as_echo "$ac_ct_STRIP" >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_STRIP" = x; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3113 STRIP="$ac_cv_prog_STRIP"
3117 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3120 $as_echo_n "checking whether ln -s works... " >&6; }
3122 if test "$LN_S" = "ln -s"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 $as_echo "yes" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3127 $as_echo "no, using $LN_S" >&6; }
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3175 if test -z "$ac_cv_prog_CC"; then
3177 # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="gcc"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3213 if test "x$ac_ct_CC" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC="$CC" # Let the user override the test.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_CC="${ac_tool_prefix}cc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3269 if test -z "$CC"; then
3270 # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289 ac_prog_rejected=yes
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 if test $ac_prog_rejected = yes; then
3301 # We found a bogon in the path, so make sure we never use it.
3302 set dummy $ac_cv_prog_CC
3304 if test $# != 0; then
3305 # We chose a different compiler from the bogus one.
3306 # However, it has the same basename, so the bogon will be chosen
3307 # first if we set CC to just the basename; use the full file name.
3309 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3315 if test -n "$CC"; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 if test -n "$ac_tool_prefix"; then
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_CC+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$CC" && break
3369 if test -z "$CC"; then
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$ac_ct_CC"; then
3381 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_ac_ct_CC="$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$ac_ct_CC" && break
3413 if test "x$ac_ct_CC" = x; then
3416 case $cross_compiling:$ac_tool_warned in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error "no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details." "$LINENO" 5; }
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3438 for ac_option in --version -v -V -qversion; do
3439 { { ac_try="$ac_compiler $ac_option >&5"
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 if test -s conftest.err; then
3450 ... rest of stderr output deleted ...
3451 10q' conftest.err >conftest.er1
3452 cat conftest.er1 >&5
3454 rm -f conftest.er1 conftest.err
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3483 for ac_file in $ac_files
3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3492 if { { ac_try="$ac_link_default"
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link_default") 2>&5
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; then :
3503 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3508 for ac_file in $ac_files ''
3510 test -f "$ac_file" || continue
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3515 # We found the default executable, but exeext='' is most
3519 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3521 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3523 # We set ac_cv_exeext here because the later test for it is not
3524 # safe: cross compilers may not add the suffix if given an `-o'
3525 # argument, so we may need to know it at that point already.
3526 # Even if this section looks crufty: it has the advantage of
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3538 if test -z "$ac_file"; then :
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 { as_fn_set_status 77
3547 as_fn_error "C compiler cannot create executables
3548 See \`config.log' for more details." "$LINENO" 5; }; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details." "$LINENO" 5; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3643 if test "$cross_compiling" = maybe; then
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details." "$LINENO" 5; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if test "${ac_cv_objext+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details." "$LINENO" 5; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_cv_prog_cc_c89=no
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 rm -f conftest.$ac_ext
3900 case "x$ac_cv_prog_cc_c89" in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 # Check whether --enable-largefile was given.
3924 if test "${enable_largefile+set}" = set; then :
3925 enableval=$enable_largefile;
3928 if test "$enable_largefile" != no; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3931 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3932 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3935 ac_cv_sys_largefile_CC=no
3936 if test "$GCC" != yes; then
3939 # IRIX 6.2 and later do not support large files by default,
3940 # so use the C compiler's -n32 option if that helps.
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 /* Check that off_t can represent 2**63 - 1 correctly.
3945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3946 since some C++ compilers masquerading as C compilers
3947 incorrectly reject 9223372036854775807. */
3948 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3950 && LARGE_OFF_T % 2147483647 == 1)
3960 if ac_fn_c_try_compile "$LINENO"; then :
3963 rm -f core conftest.err conftest.$ac_objext
3965 if ac_fn_c_try_compile "$LINENO"; then :
3966 ac_cv_sys_largefile_CC=' -n32'; break
3968 rm -f core conftest.err conftest.$ac_objext
3972 rm -f conftest.$ac_ext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3976 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3977 if test "$ac_cv_sys_largefile_CC" != no; then
3978 CC=$CC$ac_cv_sys_largefile_CC
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3982 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3983 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3989 #include <sys/types.h>
3990 /* Check that off_t can represent 2**63 - 1 correctly.
3991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3992 since some C++ compilers masquerading as C compilers
3993 incorrectly reject 9223372036854775807. */
3994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3996 && LARGE_OFF_T % 2147483647 == 1)
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_sys_file_offset_bits=no; break
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #define _FILE_OFFSET_BITS 64
4013 #include <sys/types.h>
4014 /* Check that off_t can represent 2**63 - 1 correctly.
4015 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4016 since some C++ compilers masquerading as C compilers
4017 incorrectly reject 9223372036854775807. */
4018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4019 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4020 && LARGE_OFF_T % 2147483647 == 1)
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_sys_file_offset_bits=64; break
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_cv_sys_file_offset_bits=unknown
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4039 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4040 case $ac_cv_sys_file_offset_bits in #(
4043 cat >>confdefs.h <<_ACEOF
4044 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4049 if test $ac_cv_sys_file_offset_bits = unknown; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4051 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4052 if test "${ac_cv_sys_large_files+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <sys/types.h>
4059 /* Check that off_t can represent 2**63 - 1 correctly.
4060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4061 since some C++ compilers masquerading as C compilers
4062 incorrectly reject 9223372036854775807. */
4063 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4065 && LARGE_OFF_T % 2147483647 == 1)
4075 if ac_fn_c_try_compile "$LINENO"; then :
4076 ac_cv_sys_large_files=no; break
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #define _LARGE_FILES 1
4082 #include <sys/types.h>
4083 /* Check that off_t can represent 2**63 - 1 correctly.
4084 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4085 since some C++ compilers masquerading as C compilers
4086 incorrectly reject 9223372036854775807. */
4087 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4088 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4089 && LARGE_OFF_T % 2147483647 == 1)
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_sys_large_files=1; break
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 ac_cv_sys_large_files=unknown
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4108 $as_echo "$ac_cv_sys_large_files" >&6; }
4109 case $ac_cv_sys_large_files in #(
4112 cat >>confdefs.h <<_ACEOF
4113 #define _LARGE_FILES $ac_cv_sys_large_files
4122 # In order to be able to change the scilab directory
4123 # See http://wiki.debian.org/RpathIssue
4124 # Find a good install program. We prefer a C program (faster),
4125 # so one script is as good as another. But avoid the broken or
4126 # incompatible versions:
4127 # SysV /etc/install, /usr/sbin/install
4128 # SunOS /usr/etc/install
4129 # IRIX /sbin/install
4131 # AmigaOS /C/install, which installs bootblocks on floppy discs
4132 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4133 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4134 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4135 # OS/2's system install, which has a completely different semantic
4136 # ./install, which can be erroneously created by make from ./install.sh.
4137 # Reject install programs that cannot install multiple files.
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4139 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4140 if test -z "$INSTALL"; then
4141 if test "${ac_cv_path_install+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 # Account for people who put trailing slashes in PATH elements.
4150 case $as_dir/ in #((
4151 ./ | .// | /[cC]/* | \
4152 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4153 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4156 # OSF1 and SCO ODT 3.0 have their own names for install.
4157 # Don't use installbsd from OSF since it installs stuff as root
4159 for ac_prog in ginstall scoinst install; do
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4162 if test $ac_prog = install &&
4163 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4164 # AIX install. It has an incompatible calling convention.
4166 elif test $ac_prog = install &&
4167 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4168 # program-specific install script used by HP pwplus--don't use.
4171 rm -rf conftest.one conftest.two conftest.dir
4172 echo one > conftest.one
4173 echo two > conftest.two
4175 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4176 test -s conftest.one && test -s conftest.two &&
4177 test -s conftest.dir/conftest.one &&
4178 test -s conftest.dir/conftest.two
4180 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4193 rm -rf conftest.one conftest.two conftest.dir
4196 if test "${ac_cv_path_install+set}" = set; then
4197 INSTALL=$ac_cv_path_install
4199 # As a last resort, use the slow shell script. Don't cache a
4200 # value for INSTALL within a source directory, because that will
4201 # break other packages using the cache if that directory is
4202 # removed, or if the value is a relative name.
4203 INSTALL=$ac_install_sh
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4207 $as_echo "$INSTALL" >&6; }
4209 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4210 # It thinks the first close brace ends the variable substitution.
4211 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4213 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4215 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4217 # Make sure we can run config.sub.
4218 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4222 $as_echo_n "checking build system type... " >&6; }
4223 if test "${ac_cv_build+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4226 ac_build_alias=$build_alias
4227 test "x$ac_build_alias" = x &&
4228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4229 test "x$ac_build_alias" = x &&
4230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4236 $as_echo "$ac_cv_build" >&6; }
4237 case $ac_cv_build in
4239 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4242 ac_save_IFS=$IFS; IFS='-'
4248 # Remember, the first character of IFS is used to create $*,
4249 # except with old shells:
4252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4256 $as_echo_n "checking host system type... " >&6; }
4257 if test "${ac_cv_host+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4260 if test "x$host_alias" = x; then
4261 ac_cv_host=$ac_cv_build
4263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4264 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4269 $as_echo "$ac_cv_host" >&6; }
4272 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4275 ac_save_IFS=$IFS; IFS='-'
4281 # Remember, the first character of IFS is used to create $*,
4282 # except with old shells:
4285 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4289 # Check whether --with-gnu-ld was given.
4290 if test "${with_gnu_ld+set}" = set; then :
4291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4296 # Prepare PATH_SEPARATOR.
4297 # The user is always right.
4298 if test "${PATH_SEPARATOR+set}" != set; then
4299 echo "#! /bin/sh" >conf$$.sh
4300 echo "exit 0" >>conf$$.sh
4302 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4310 if test "$GCC" = yes; then
4311 # Check if gcc -print-prog-name=ld gives a path.
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4313 $as_echo_n "checking for ld used by GCC... " >&6; }
4316 # gcc leaves a trailing carriage return which upsets mingw
4317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4322 # Accept absolute paths.
4323 [\\/]* | [A-Za-z]:[\\/]*)
4324 re_direlt='/[^/][^/]*/\.\./'
4325 # Canonicalize the path of ld
4326 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4327 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4328 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4330 test -z "$LD" && LD="$ac_prog"
4333 # If it fails, then pretend we aren't using GCC.
4337 # If it is relative, then search for the first ld in PATH.
4341 elif test "$with_gnu_ld" = yes; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4343 $as_echo_n "checking for GNU ld... " >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4346 $as_echo_n "checking for non-GNU ld... " >&6; }
4348 if test "${acl_cv_path_LD+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -z "$LD"; then
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4353 for ac_dir in $PATH; do
4354 test -z "$ac_dir" && ac_dir=.
4355 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4356 acl_cv_path_LD="$ac_dir/$ac_prog"
4357 # Check to see if the program is GNU ld. I'd rather use --version,
4358 # but apparently some GNU ld's only accept -v.
4359 # Break only if it was the GNU/non-GNU ld that we prefer.
4360 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4361 *GNU* | *'with BFD'*)
4362 test "$with_gnu_ld" != no && break ;;
4364 test "$with_gnu_ld" != yes && break ;;
4370 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4374 LD="$acl_cv_path_LD"
4375 if test -n "$LD"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4377 $as_echo "$LD" >&6; }
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4382 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4384 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4385 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4386 $as_echo_n "(cached) " >&6
4388 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4389 case `$LD -v 2>&1 </dev/null` in
4390 *GNU* | *'with BFD'*)
4391 acl_cv_prog_gnu_ld=yes ;;
4393 acl_cv_prog_gnu_ld=no ;;
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4397 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4398 with_gnu_ld=$acl_cv_prog_gnu_ld
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4403 $as_echo_n "checking for shared library path variable... " >&6; }
4404 if test "${acl_cv_libpath+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4409 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4412 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4416 $as_echo "$acl_cv_libpath" >&6; }
4417 shlibpath_var="$acl_cv_shlibpath_var"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4421 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4422 # Check whether --enable-relocatable was given.
4423 if test "${enable_relocatable+set}" = set; then :
4424 enableval=$enable_relocatable; if test "$enableval" != no; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4436 $as_echo "$RELOCATABLE" >&6; }
4440 if test "X$prefix" = "XNONE"; then
4441 reloc_final_prefix="$ac_default_prefix"
4443 reloc_final_prefix="$prefix"
4446 cat >>confdefs.h <<_ACEOF
4447 #define INSTALLPREFIX "${reloc_final_prefix}"
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4463 if test -z "$CPP"; then
4464 if test "${ac_cv_prog_CPP+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4467 # Double quotes because CPP needs to be expanded
4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 for ac_c_preproc_warn_flag in '' yes
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 # include <limits.h>
4484 # include <assert.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4506 # Passes both tests.
4510 rm -f conftest.err conftest.$ac_ext
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4530 for ac_c_preproc_warn_flag in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details." "$LINENO" 5; }
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if test "${ac_cv_path_GREP+set}" = set; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -z "$GREP"; then
4596 ac_path_GREP_found=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 test -z "$as_dir" && as_dir=.
4603 for ac_prog in grep ggrep; do
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608 # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'GREP' >> "conftest.nl"
4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623 as_fn_arith $ac_count + 1 && ac_count=$as_val
4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_GREP="$ac_path_GREP"
4627 ac_path_GREP_max=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 $ac_path_GREP_found && break 3
4640 if test -z "$ac_cv_path_GREP"; then
4641 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_GREP=$GREP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP="$ac_cv_path_GREP"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if test "${ac_cv_path_EGREP+set}" = set; then :
4656 $as_echo_n "(cached) " >&6
4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659 then ac_cv_path_EGREP="$GREP -E"
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 test -z "$as_dir" && as_dir=.
4669 for ac_prog in egrep; do
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689 as_fn_arith $ac_count + 1 && ac_count=$as_val
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP="$ac_path_EGREP"
4693 ac_path_EGREP_max=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 $ac_path_EGREP_found && break 3
4706 if test -z "$ac_cv_path_EGREP"; then
4707 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 ac_cv_path_EGREP=$EGREP
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP="$ac_cv_path_EGREP"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4721 $as_echo_n "checking for ANSI C header files... " >&6; }
4722 if test "${ac_cv_header_stdc+set}" = set; then :
4723 $as_echo_n "(cached) " >&6
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_header_stdc=yes
4743 ac_cv_header_stdc=no
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 if test $ac_cv_header_stdc = yes; then
4748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "memchr" >/dev/null 2>&1; then :
4758 ac_cv_header_stdc=no
4764 if test $ac_cv_header_stdc = yes; then
4765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "free" >/dev/null 2>&1; then :
4775 ac_cv_header_stdc=no
4781 if test $ac_cv_header_stdc = yes; then
4782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4783 if test "$cross_compiling" = yes; then :
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 #if ((' ' & 0x0FF) == 0x020)
4791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4794 # define ISLOWER(c) \
4795 (('a' <= (c) && (c) <= 'i') \
4796 || ('j' <= (c) && (c) <= 'r') \
4797 || ('s' <= (c) && (c) <= 'z'))
4798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4806 for (i = 0; i < 256; i++)
4807 if (XOR (islower (i), ISLOWER (i))
4808 || toupper (i) != TOUPPER (i))
4813 if ac_fn_c_try_run "$LINENO"; then :
4816 ac_cv_header_stdc=no
4818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4819 conftest.$ac_objext conftest.beam conftest.$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4825 $as_echo "$ac_cv_header_stdc" >&6; }
4826 if test $ac_cv_header_stdc = yes; then
4828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4834 inttypes.h stdint.h unistd.h
4836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4839 eval as_val=\$$as_ac_Header
4840 if test "x$as_val" = x""yes; then :
4841 cat >>confdefs.h <<_ACEOF
4842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857 use_elf_origin_trick=no
4858 if test $RELOCATABLE = yes; then
4859 # --enable-relocatable implies --disable-rpath
4862 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4864 for ac_header in unistd.h mach-o/dyld.h
4866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4868 eval as_val=\$$as_ac_Header
4869 if test "x$as_val" = x""yes; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4878 for ac_func in _NSGetExecutablePath
4880 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4881 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4882 cat >>confdefs.h <<_ACEOF
4883 #define HAVE__NSGETEXECUTABLEPATH 1
4890 mingw*) is_noop=yes ;;
4891 linux*) use_elf_origin_trick=yes ;;
4893 if test $is_noop = yes; then
4894 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4896 if test $use_elf_origin_trick = yes; then
4897 case "$ac_aux_dir" in
4898 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4899 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4901 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4903 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\""
4904 case "$ac_aux_dir" in
4905 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4906 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4914 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4915 RELOCATABLE_VIA_LD_TRUE=
4916 RELOCATABLE_VIA_LD_FALSE='#'
4918 RELOCATABLE_VIA_LD_TRUE='#'
4919 RELOCATABLE_VIA_LD_FALSE=
4925 if test $RELOCATABLE = yes; then
4926 case " $LIBOBJS " in
4927 *" relocatable.$ac_objext "* ) ;;
4928 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4936 if test "X$prefix" = "XNONE"; then
4937 reloc_final_prefix="$ac_default_prefix"
4939 reloc_final_prefix="$prefix"
4942 cat >>confdefs.h <<_ACEOF
4943 #define INSTALLPREFIX "${reloc_final_prefix}"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4950 $as_echo_n "checking for shared library run path origin... " >&6; }
4951 if test "${acl_cv_rpath+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4955 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4956 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4963 $as_echo "$acl_cv_rpath" >&6; }
4965 acl_libext="$acl_cv_libext"
4966 acl_shlibext="$acl_cv_shlibext"
4967 acl_libname_spec="$acl_cv_libname_spec"
4968 acl_library_names_spec="$acl_cv_library_names_spec"
4969 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4970 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4971 acl_hardcode_direct="$acl_cv_hardcode_direct"
4972 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4973 # Check whether --enable-rpath was given.
4974 if test "${enable_rpath+set}" = set; then :
4975 enableval=$enable_rpath; :
4982 # If configure detect that timestamp changed,
4983 # it tries to rebuild configure & makefile which can be a painmaker
4984 # if the version is different
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4987 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4988 # Check whether --enable-maintainer-mode was given.
4989 if test "${enable_maintainer_mode+set}" = set; then :
4990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4992 USE_MAINTAINER_MODE=no
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4996 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4997 if test $USE_MAINTAINER_MODE = yes; then
4998 MAINTAINER_MODE_TRUE=
4999 MAINTAINER_MODE_FALSE='#'
5001 MAINTAINER_MODE_TRUE='#'
5002 MAINTAINER_MODE_FALSE=
5005 MAINT=$MAINTAINER_MODE_TRUE
5009 am__api_version='1.11'
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5012 $as_echo_n "checking whether build environment is sane... " >&6; }
5015 echo timestamp > conftest.file
5016 # Reject unsafe characters in $srcdir or the absolute working directory
5017 # name. Accept space and tab only in the latter.
5021 *[\\\"\#\$\&\'\`$am_lf]*)
5022 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5025 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5026 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5029 # Do `set' in a subshell so we don't clobber the current shell's
5030 # arguments. Must try -L first in case configure is actually a
5031 # symlink; some systems play weird games with the mod time of symlinks
5032 # (eg FreeBSD returns the mod time of the symlink's containing
5035 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5036 if test "$*" = "X"; then
5038 set X `ls -t "$srcdir/configure" conftest.file`
5041 if test "$*" != "X $srcdir/configure conftest.file" \
5042 && test "$*" != "X conftest.file $srcdir/configure"; then
5044 # If neither matched, then we have a broken ls. This can happen
5045 # if, for instance, CONFIG_SHELL is bash and it inherits a
5046 # broken ls alias from the environment. This has actually
5047 # happened. Such a system could not be considered "sane".
5048 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5049 alias in your environment" "$LINENO" 5
5052 test "$2" = conftest.file
5058 as_fn_error "newly created file is older than distributed files!
5059 Check your system clock" "$LINENO" 5
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062 $as_echo "yes" >&6; }
5063 test "$program_prefix" != NONE &&
5064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5065 # Use a double $ so make ignores it.
5066 test "$program_suffix" != NONE &&
5067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5068 # Double any \ or $.
5069 # By default was `s,x,x', remove it if useless.
5070 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5071 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5073 if test x"${MISSING+set}" != xset; then
5076 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5078 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5081 # Use eval to expand $SHELL
5082 if eval "$MISSING --run true"; then
5083 am_missing_run="$MISSING --run "
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5087 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5091 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5092 if test -z "$MKDIR_P"; then
5093 if test "${ac_cv_path_mkdir+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in mkdir gmkdir; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5104 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5105 'mkdir (GNU coreutils) '* | \
5106 'mkdir (coreutils) '* | \
5107 'mkdir (fileutils) '4.1*)
5108 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5118 test -d ./--version && rmdir ./--version
5119 if test "${ac_cv_path_mkdir+set}" = set; then
5120 MKDIR_P="$ac_cv_path_mkdir -p"
5122 # As a last resort, use the slow shell script. Don't cache a
5123 # value for MKDIR_P within a source directory, because that will
5124 # break other packages using the cache if that directory is
5125 # removed, or if the value is a relative name.
5126 MKDIR_P="$ac_install_sh -d"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5130 $as_echo "$MKDIR_P" >&6; }
5134 [\\/$]* | ?:[\\/]*) ;;
5135 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5138 for ac_prog in gawk mawk nawk awk
5140 # Extract the first word of "$ac_prog", so it can be a program name with args.
5141 set dummy $ac_prog; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_AWK+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5147 if test -n "$AWK"; then
5148 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_AWK="$ac_prog"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 if test -n "$AWK"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5170 $as_echo "$AWK" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5177 test -n "$AWK" && break
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5183 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5184 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5185 $as_echo_n "(cached) " >&6
5187 cat >conftest.make <<\_ACEOF
5190 @echo '@@@%%%=$(MAKE)=@@@%%%'
5192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5195 eval ac_cv_prog_make_${ac_make}_set=yes;;
5197 eval ac_cv_prog_make_${ac_make}_set=no;;
5201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5203 $as_echo "yes" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5208 SET_MAKE="MAKE=${MAKE-make}"
5211 rm -rf .tst 2>/dev/null
5212 mkdir .tst 2>/dev/null
5213 if test -d .tst; then
5218 rmdir .tst 2>/dev/null
5220 DEPDIR="${am__leading_dot}deps"
5222 ac_config_commands="$ac_config_commands depfiles"
5225 am_make=${MAKE-make}
5226 cat > confinc << 'END'
5228 @echo this is the am__doit target
5231 # If we don't find an include directive, just comment out the code.
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5233 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5237 # First try GNU make style include.
5238 echo "include confinc" > confmf
5239 # Ignore all kinds of additional output from `make'.
5240 case `$am_make -s -f confmf 2> /dev/null` in #(
5241 *the\ am__doit\ target*)
5247 # Now try BSD make style include.
5248 if test "$am__include" = "#"; then
5249 echo '.include "confinc"' > confmf
5250 case `$am_make -s -f confmf 2> /dev/null` in #(
5251 *the\ am__doit\ target*)
5252 am__include=.include
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5261 $as_echo "$_am_result" >&6; }
5262 rm -f confinc confmf
5264 # Check whether --enable-dependency-tracking was given.
5265 if test "${enable_dependency_tracking+set}" = set; then :
5266 enableval=$enable_dependency_tracking;
5269 if test "x$enable_dependency_tracking" != xno; then
5270 am_depcomp="$ac_aux_dir/depcomp"
5273 if test "x$enable_dependency_tracking" != xno; then
5282 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5283 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5284 # is not polluted with repeated "-I."
5285 am__isrc=' -I$(srcdir)'
5286 # test to see if srcdir already configured
5287 if test -f $srcdir/config.status; then
5288 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5292 # test whether we have cygpath
5293 if test -z "$CYGPATH_W"; then
5294 if (cygpath --version) >/dev/null 2>/dev/null; then
5295 CYGPATH_W='cygpath -w'
5302 # Define the identity of the package.
5307 cat >>confdefs.h <<_ACEOF
5308 #define PACKAGE "$PACKAGE"
5312 cat >>confdefs.h <<_ACEOF
5313 #define VERSION "$VERSION"
5316 # Some tools Automake needs.
5318 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5321 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5324 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5327 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5330 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5332 # We need awk for the "check" target. The system "awk" is bad on
5334 # Always define AMTAR for backward compatibility.
5336 AMTAR=${AMTAR-"${am_missing_run}tar"}
5338 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5343 depcc="$CC" am_compiler_list=
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5346 $as_echo_n "checking dependency style of $depcc... " >&6; }
5347 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5351 # We make a subdir and do the tests there. Otherwise we can end up
5352 # making bogus files that we don't know about and never remove. For
5353 # instance it was reported that on HP-UX the gcc test will end up
5354 # making a dummy file named `D' -- because `-MD' means `put the output
5357 # Copy depcomp to subdir because otherwise we won't find it if we're
5358 # using a relative directory.
5359 cp "$am_depcomp" conftest.dir
5361 # We will build objects and dependencies in a subdirectory because
5362 # it helps to detect inapplicable dependency modes. For instance
5363 # both Tru64's cc and ICC support -MD to output dependencies as a
5364 # side effect of compilation, but ICC will put the dependencies in
5365 # the current directory while Tru64 will put them in the object
5369 am_cv_CC_dependencies_compiler_type=none
5370 if test "$am_compiler_list" = ""; then
5371 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5374 case " $depcc " in #(
5375 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5378 for depmode in $am_compiler_list; do
5379 # Setup a source with many dependencies, because some compilers
5380 # like to wrap large dependency lists on column 80 (with \), and
5381 # we should not choose a depcomp mode which is confused by this.
5383 # We need to recreate these files for each test, as the compiler may
5384 # overwrite some of them when testing with obscure command lines.
5385 # This happens at least with the AIX C compiler.
5387 for i in 1 2 3 4 5 6; do
5388 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5389 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5390 # Solaris 8's {/usr,}/bin/sh.
5391 touch sub/conftst$i.h
5393 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5395 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5396 # mode. It turns out that the SunPro C++ compiler does not properly
5397 # handle `-M -o', and we need to detect this. Also, some Intel
5398 # versions had trouble with output in subdirs
5399 am__obj=sub/conftest.${OBJEXT-o}
5400 am__minus_obj="-o $am__obj"
5403 # This depmode causes a compiler race in universal mode.
5404 test "$am__universal" = false || continue
5407 # after this tag, mechanisms are not by side-effect, so they'll
5408 # only be used when explicitly requested
5409 if test "x$enable_dependency_tracking" = xyes; then
5415 msvisualcpp | msvcmsys)
5416 # This compiler won't grok `-c -o', but also, the minuso test has
5417 # not run yet. These depmodes are late enough in the game, and
5418 # so weak that their functioning should not be impacted.
5419 am__obj=conftest.${OBJEXT-o}
5424 if depmode=$depmode \
5425 source=sub/conftest.c object=$am__obj \
5426 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5427 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5428 >/dev/null 2>conftest.err &&
5429 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5430 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5431 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5432 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5433 # icc doesn't choke on unknown options, it will just issue warnings
5434 # or remarks (even with -Werror). So we grep stderr for any message
5435 # that says an option was ignored or not supported.
5436 # When given -MP, icc 7.0 and 7.1 complain thusly:
5437 # icc: Command line warning: ignoring option '-M'; no argument required
5438 # The diagnosis changed in icc 8.0:
5439 # icc: Command line remark: option '-MP' not supported
5440 if (grep 'ignoring option' conftest.err ||
5441 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5442 am_cv_CC_dependencies_compiler_type=$depmode
5451 am_cv_CC_dependencies_compiler_type=none
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5456 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5457 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5460 test "x$enable_dependency_tracking" != xno \
5461 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5463 am__fastdepCC_FALSE='#'
5465 am__fastdepCC_TRUE='#'
5466 am__fastdepCC_FALSE=
5470 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5474 #################################
5475 ## all the --with-* argument help
5476 #################################
5479 # Check whether --enable-debug was given.
5480 if test "${enable_debug+set}" = set; then :
5481 enableval=$enable_debug;
5485 # Check whether --enable-debug-C was given.
5486 if test "${enable_debug_C+set}" = set; then :
5487 enableval=$enable_debug_C;
5491 # Check whether --enable-debug-CXX was given.
5492 if test "${enable_debug_CXX+set}" = set; then :
5493 enableval=$enable_debug_CXX;
5497 # Check whether --enable-debug-java was given.
5498 if test "${enable_debug_java+set}" = set; then :
5499 enableval=$enable_debug_java;
5503 # Check whether --enable-debug-fortran was given.
5504 if test "${enable_debug_fortran+set}" = set; then :
5505 enableval=$enable_debug_fortran;
5509 # Check whether --enable-debug-linker was given.
5510 if test "${enable_debug_linker+set}" = set; then :
5511 enableval=$enable_debug_linker;
5515 # Check whether --enable-stopOnWarning was given.
5516 if test "${enable_stopOnWarning+set}" = set; then :
5517 enableval=$enable_stopOnWarning;
5522 # Check whether --with-gcc was given.
5523 if test "${with_gcc+set}" = set; then :
5529 # Check whether --with-g77 was given.
5530 if test "${with_g77+set}" = set; then :
5536 # Check whether --with-gfortran was given.
5537 if test "${with_gfortran+set}" = set; then :
5538 withval=$with_gfortran;
5543 # Check whether --with-intelcompilers was given.
5544 if test "${with_intelcompilers+set}" = set; then :
5545 withval=$with_intelcompilers;
5550 # Check whether --with-tk was given.
5551 if test "${with_tk+set}" = set; then :
5557 # Check whether --with-javasci was given.
5558 if test "${with_javasci+set}" = set; then :
5559 withval=$with_javasci;
5564 # Check whether --with-gui was given.
5565 if test "${with_gui+set}" = set; then :
5570 # Check whether --enable-build-swig was given.
5571 if test "${enable_build_swig+set}" = set; then :
5572 enableval=$enable_build_swig;
5576 # Check whether --enable-build-giws was given.
5577 if test "${enable_build_giws+set}" = set; then :
5578 enableval=$enable_build_giws;
5583 ################################################
5584 ########## compilator & misc programs detection
5585 ################################################
5588 ac_cpp='$CPP $CPPFLAGS'
5589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5594 # On Suns, sometimes $CPP names a directory.
5595 if test -n "$CPP" && test -d "$CPP"; then
5598 if test -z "$CPP"; then
5599 if test "${ac_cv_prog_CPP+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5602 # Double quotes because CPP needs to be expanded
5603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5606 for ac_c_preproc_warn_flag in '' yes
5608 # Use a header file that comes with gcc, so configuring glibc
5609 # with a fresh cross-compiler works.
5610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5611 # <limits.h> exists even on freestanding compilers.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5617 # include <limits.h>
5619 # include <assert.h>
5623 if ac_fn_c_try_cpp "$LINENO"; then :
5626 # Broken: fails on valid input.
5629 rm -f conftest.err conftest.$ac_ext
5631 # OK, works on sane cases. Now check whether nonexistent headers
5632 # can be detected and how.
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <ac_nonexistent.h>
5637 if ac_fn_c_try_cpp "$LINENO"; then :
5638 # Broken: success on invalid input.
5641 # Passes both tests.
5645 rm -f conftest.err conftest.$ac_ext
5648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5649 rm -f conftest.err conftest.$ac_ext
5650 if $ac_preproc_ok; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5663 $as_echo "$CPP" >&6; }
5665 for ac_c_preproc_warn_flag in '' yes
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if ac_fn_c_try_cpp "$LINENO"; then :
5685 # Broken: fails on valid input.
5688 rm -f conftest.err conftest.$ac_ext
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <ac_nonexistent.h>
5696 if ac_fn_c_try_cpp "$LINENO"; then :
5697 # Broken: success on invalid input.
5700 # Passes both tests.
5704 rm -f conftest.err conftest.$ac_ext
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.err conftest.$ac_ext
5709 if $ac_preproc_ok; then :
5712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5714 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5715 See \`config.log' for more details." "$LINENO" 5; }
5719 ac_cpp='$CPP $CPPFLAGS'
5720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5725 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5726 if test "${ac_cv_path_GREP+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5729 if test -z "$GREP"; then
5730 ac_path_GREP_found=false
5731 # Loop through the user's path and test for each of PROGNAME-LIST
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5736 test -z "$as_dir" && as_dir=.
5737 for ac_prog in grep ggrep; do
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5740 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5741 # Check for GNU ac_path_GREP and select it if it is found.
5742 # Check for GNU $ac_path_GREP
5743 case `"$ac_path_GREP" --version 2>&1` in
5745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5748 $as_echo_n 0123456789 >"conftest.in"
5751 cat "conftest.in" "conftest.in" >"conftest.tmp"
5752 mv "conftest.tmp" "conftest.in"
5753 cp "conftest.in" "conftest.nl"
5754 $as_echo 'GREP' >> "conftest.nl"
5755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5757 as_fn_arith $ac_count + 1 && ac_count=$as_val
5758 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5759 # Best one so far, save it but keep looking for a better one
5760 ac_cv_path_GREP="$ac_path_GREP"
5761 ac_path_GREP_max=$ac_count
5763 # 10*(2^10) chars as input seems more than enough
5764 test $ac_count -gt 10 && break
5766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5769 $ac_path_GREP_found && break 3
5774 if test -z "$ac_cv_path_GREP"; then
5775 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5778 ac_cv_path_GREP=$GREP
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5783 $as_echo "$ac_cv_path_GREP" >&6; }
5784 GREP="$ac_cv_path_GREP"
5789 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5790 if test -n "$ac_tool_prefix"; then
5791 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5792 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5822 if test -n "$PKG_CONFIG"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5824 $as_echo "$PKG_CONFIG" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 if test -z "$ac_cv_path_PKG_CONFIG"; then
5833 ac_pt_PKG_CONFIG=$PKG_CONFIG
5834 # Extract the first word of "pkg-config", so it can be a program name with args.
5835 set dummy pkg-config; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837 $as_echo_n "checking for $ac_word... " >&6; }
5838 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 case $ac_pt_PKG_CONFIG in
5843 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5853 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5865 if test -n "$ac_pt_PKG_CONFIG"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5867 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5873 if test "x$ac_pt_PKG_CONFIG" = x; then
5876 case $cross_compiling:$ac_tool_warned in
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880 ac_tool_warned=yes ;;
5882 PKG_CONFIG=$ac_pt_PKG_CONFIG
5885 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5889 if test -n "$PKG_CONFIG"; then
5890 _pkg_min_version=0.9.0
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5892 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5893 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5895 $as_echo "yes" >&6; }
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5904 #####################################################
5905 ## check if options are correct (or not)
5906 #####################################################
5908 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5909 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5912 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5913 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5916 ######## fortran ########
5917 if test "$with_g77" = yes; then
5919 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5920 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5921 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5922 if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_F77+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5932 if test -n "$F77"; then
5933 ac_cv_prog_F77="$F77" # Let the user override the test.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 if test -n "$F77"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5955 $as_echo "$F77" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5962 test -n "$F77" && break
5965 if test -z "$F77"; then
5969 # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$ac_ct_F77"; then
5977 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_F77="$ac_prog"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5997 if test -n "$ac_ct_F77"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5999 $as_echo "$ac_ct_F77" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6006 test -n "$ac_ct_F77" && break
6009 if test "x$ac_ct_F77" = x; then
6012 case $cross_compiling:$ac_tool_warned in
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6023 # Provide some information about the compiler.
6024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6027 for ac_option in --version -v -V -qversion; do
6028 { { ac_try="$ac_compiler $ac_option >&5"
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6034 $as_echo "$ac_try_echo"; } >&5
6035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6037 if test -s conftest.err; then
6039 ... rest of stderr output deleted ...
6040 10q' conftest.err >conftest.er1
6041 cat conftest.er1 >&5
6043 rm -f conftest.er1 conftest.err
6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6045 test $ac_status = 0; }
6049 # If we don't use `.F' as extension, the preprocessor is not run on the
6050 # input file. (Note that this only needs to work for GNU compilers.)
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6054 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6055 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6056 $as_echo_n "(cached) " >&6
6058 cat > conftest.$ac_ext <<_ACEOF
6066 if ac_fn_f77_try_compile "$LINENO"; then :
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6076 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6078 ac_test_FFLAGS=${FFLAGS+set}
6079 ac_save_FFLAGS=$FFLAGS
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6082 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6083 if test "${ac_cv_prog_f77_g+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6087 cat > conftest.$ac_ext <<_ACEOF
6092 if ac_fn_f77_try_compile "$LINENO"; then :
6093 ac_cv_prog_f77_g=yes
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6101 $as_echo "$ac_cv_prog_f77_g" >&6; }
6102 if test "$ac_test_FFLAGS" = set; then
6103 FFLAGS=$ac_save_FFLAGS
6104 elif test $ac_cv_prog_f77_g = yes; then
6105 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6111 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6118 if test $ac_compiler_gnu = yes; then
6124 ac_cpp='$CPP $CPPFLAGS'
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129 if test -z "$F77"; then
6130 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6134 if test "$with_gfortran" = yes; then
6136 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6137 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6139 if test -n "$ac_tool_prefix"; then
6140 for ac_prog in gfortran
6142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_F77+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 if test -n "$F77"; then
6150 ac_cv_prog_F77="$F77" # Let the user override the test.
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 if test -n "$F77"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6172 $as_echo "$F77" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6179 test -n "$F77" && break
6182 if test -z "$F77"; then
6184 for ac_prog in gfortran
6186 # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6193 if test -n "$ac_ct_F77"; then
6194 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 test -z "$as_dir" && as_dir=.
6201 for ac_exec_ext in '' $ac_executable_extensions; do
6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6203 ac_cv_prog_ac_ct_F77="$ac_prog"
6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6214 if test -n "$ac_ct_F77"; then
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6216 $as_echo "$ac_ct_F77" >&6; }
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6223 test -n "$ac_ct_F77" && break
6226 if test "x$ac_ct_F77" = x; then
6229 case $cross_compiling:$ac_tool_warned in
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6233 ac_tool_warned=yes ;;
6240 # Provide some information about the compiler.
6241 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6244 for ac_option in --version -v -V -qversion; do
6245 { { ac_try="$ac_compiler $ac_option >&5"
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6251 $as_echo "$ac_try_echo"; } >&5
6252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6254 if test -s conftest.err; then
6256 ... rest of stderr output deleted ...
6257 10q' conftest.err >conftest.er1
6258 cat conftest.er1 >&5
6260 rm -f conftest.er1 conftest.err
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; }
6266 # If we don't use `.F' as extension, the preprocessor is not run on the
6267 # input file. (Note that this only needs to work for GNU compilers.)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6271 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6272 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6275 cat > conftest.$ac_ext <<_ACEOF
6283 if ac_fn_f77_try_compile "$LINENO"; then :
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6293 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6295 ac_test_FFLAGS=${FFLAGS+set}
6296 ac_save_FFLAGS=$FFLAGS
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6299 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6300 if test "${ac_cv_prog_f77_g+set}" = set; then :
6301 $as_echo_n "(cached) " >&6
6304 cat > conftest.$ac_ext <<_ACEOF
6309 if ac_fn_f77_try_compile "$LINENO"; then :
6310 ac_cv_prog_f77_g=yes
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6318 $as_echo "$ac_cv_prog_f77_g" >&6; }
6319 if test "$ac_test_FFLAGS" = set; then
6320 FFLAGS=$ac_save_FFLAGS
6321 elif test $ac_cv_prog_f77_g = yes; then
6322 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6335 if test $ac_compiler_gnu = yes; then
6341 ac_cpp='$CPP $CPPFLAGS'
6342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346 if test -z "$F77"; then
6347 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6351 if test "$with_intelcompilers" = yes; then
6353 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6354 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6355 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6356 if test -n "$ac_tool_prefix"; then
6357 for ac_prog in ifc ifort
6359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362 $as_echo_n "checking for $ac_word... " >&6; }
6363 if test "${ac_cv_prog_F77+set}" = set; then :
6364 $as_echo_n "(cached) " >&6
6366 if test -n "$F77"; then
6367 ac_cv_prog_F77="$F77" # Let the user override the test.
6369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 test -z "$as_dir" && as_dir=.
6374 for ac_exec_ext in '' $ac_executable_extensions; do
6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6376 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 if test -n "$F77"; then
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6389 $as_echo "$F77" >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6396 test -n "$F77" && break
6399 if test -z "$F77"; then
6401 for ac_prog in ifc ifort
6403 # Extract the first word of "$ac_prog", so it can be a program name with args.
6404 set dummy $ac_prog; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$ac_ct_F77"; then
6411 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6420 ac_cv_prog_ac_ct_F77="$ac_prog"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6431 if test -n "$ac_ct_F77"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6433 $as_echo "$ac_ct_F77" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6440 test -n "$ac_ct_F77" && break
6443 if test "x$ac_ct_F77" = x; then
6446 case $cross_compiling:$ac_tool_warned in
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6450 ac_tool_warned=yes ;;
6457 # Provide some information about the compiler.
6458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6461 for ac_option in --version -v -V -qversion; do
6462 { { ac_try="$ac_compiler $ac_option >&5"
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6468 $as_echo "$ac_try_echo"; } >&5
6469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6471 if test -s conftest.err; then
6473 ... rest of stderr output deleted ...
6474 10q' conftest.err >conftest.er1
6475 cat conftest.er1 >&5
6477 rm -f conftest.er1 conftest.err
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }
6483 # If we don't use `.F' as extension, the preprocessor is not run on the
6484 # input file. (Note that this only needs to work for GNU compilers.)
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6488 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6489 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6492 cat > conftest.$ac_ext <<_ACEOF
6500 if ac_fn_f77_try_compile "$LINENO"; then :
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6510 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6512 ac_test_FFLAGS=${FFLAGS+set}
6513 ac_save_FFLAGS=$FFLAGS
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6516 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6517 if test "${ac_cv_prog_f77_g+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6521 cat > conftest.$ac_ext <<_ACEOF
6526 if ac_fn_f77_try_compile "$LINENO"; then :
6527 ac_cv_prog_f77_g=yes
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6535 $as_echo "$ac_cv_prog_f77_g" >&6; }
6536 if test "$ac_test_FFLAGS" = set; then
6537 FFLAGS=$ac_save_FFLAGS
6538 elif test $ac_cv_prog_f77_g = yes; then
6539 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6545 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6552 if test $ac_compiler_gnu = yes; then
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563 if test -z "$F77"; then
6564 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6568 if test -z "$F77"; then
6569 ## No Frotran compiler specified... We rely on Autoconf to find the best
6571 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6572 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6574 if test -n "$ac_tool_prefix"; then
6575 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 pgf95 lf95 ftn
6577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if test "${ac_cv_prog_F77+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$F77"; then
6585 ac_cv_prog_F77="$F77" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 if test -n "$F77"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6607 $as_echo "$F77" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6614 test -n "$F77" && break
6617 if test -z "$F77"; then
6619 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 pgf95 lf95 ftn
6621 # Extract the first word of "$ac_prog", so it can be a program name with args.
6622 set dummy $ac_prog; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6626 $as_echo_n "(cached) " >&6
6628 if test -n "$ac_ct_F77"; then
6629 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_ac_ct_F77="$ac_prog"
6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6649 if test -n "$ac_ct_F77"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6651 $as_echo "$ac_ct_F77" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6654 $as_echo "no" >&6; }
6658 test -n "$ac_ct_F77" && break
6661 if test "x$ac_ct_F77" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6675 # Provide some information about the compiler.
6676 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6679 for ac_option in --version -v -V -qversion; do
6680 { { ac_try="$ac_compiler $ac_option >&5"
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6686 $as_echo "$ac_try_echo"; } >&5
6687 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6689 if test -s conftest.err; then
6691 ... rest of stderr output deleted ...
6692 10q' conftest.err >conftest.er1
6693 cat conftest.er1 >&5
6695 rm -f conftest.er1 conftest.err
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; }
6701 # If we don't use `.F' as extension, the preprocessor is not run on the
6702 # input file. (Note that this only needs to work for GNU compilers.)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6706 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6707 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6708 $as_echo_n "(cached) " >&6
6710 cat > conftest.$ac_ext <<_ACEOF
6718 if ac_fn_f77_try_compile "$LINENO"; then :
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6728 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6730 ac_test_FFLAGS=${FFLAGS+set}
6731 ac_save_FFLAGS=$FFLAGS
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6734 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6735 if test "${ac_cv_prog_f77_g+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6739 cat > conftest.$ac_ext <<_ACEOF
6744 if ac_fn_f77_try_compile "$LINENO"; then :
6745 ac_cv_prog_f77_g=yes
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6753 $as_echo "$ac_cv_prog_f77_g" >&6; }
6754 if test "$ac_test_FFLAGS" = set; then
6755 FFLAGS=$ac_save_FFLAGS
6756 elif test $ac_cv_prog_f77_g = yes; then
6757 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6763 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6770 if test $ac_compiler_gnu = yes; then
6776 ac_cpp='$CPP $CPPFLAGS'
6777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6784 # case statements were introduced in fortran 90 so we can use that
6785 # as a test to see if our compiler is fortran 90 compatible.
6787 if test -z "$F77"; then
6788 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6792 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6795 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6796 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6797 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6800 cat > conftest.$ac_ext <<_ACEOF
6806 print*, "case is 1, i is ", i
6808 print*, "case is 2 to 3, i is ", i
6810 print*, "default case, i is ", i
6816 if ac_fn_f77_try_compile "$LINENO"; then :
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6818 $as_echo "yes" >&6; }
6820 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6837 ############ C ###############
6840 if test "$with_gcc" = yes; then
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846 if test -n "$ac_tool_prefix"; then
6849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_CC+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 if test -n "$CC"; then
6857 ac_cv_prog_CC="$CC" # Let the user override the test.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 if test -n "$CC"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6879 $as_echo "$CC" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 test -n "$CC" && break
6889 if test -z "$CC"; then
6893 # Extract the first word of "$ac_prog", so it can be a program name with args.
6894 set dummy $ac_prog; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6900 if test -n "$ac_ct_CC"; then
6901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 test -z "$as_dir" && as_dir=.
6908 for ac_exec_ext in '' $ac_executable_extensions; do
6909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910 ac_cv_prog_ac_ct_CC="$ac_prog"
6911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6921 if test -n "$ac_ct_CC"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6923 $as_echo "$ac_ct_CC" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6930 test -n "$ac_ct_CC" && break
6933 if test "x$ac_ct_CC" = x; then
6936 case $cross_compiling:$ac_tool_warned in
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6947 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6949 as_fn_error "no acceptable C compiler found in \$PATH
6950 See \`config.log' for more details." "$LINENO" 5; }
6952 # Provide some information about the compiler.
6953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6956 for ac_option in --version -v -V -qversion; do
6957 { { ac_try="$ac_compiler $ac_option >&5"
6959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960 *) ac_try_echo=$ac_try;;
6962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6963 $as_echo "$ac_try_echo"; } >&5
6964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6966 if test -s conftest.err; then
6968 ... rest of stderr output deleted ...
6969 10q' conftest.err >conftest.er1
6970 cat conftest.er1 >&5
6972 rm -f conftest.er1 conftest.err
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6979 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6996 if ac_fn_c_try_compile "$LINENO"; then :
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7007 if test $ac_compiler_gnu = yes; then
7012 ac_test_CFLAGS=${CFLAGS+set}
7013 ac_save_CFLAGS=$CFLAGS
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7016 if test "${ac_cv_prog_cc_g+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 ac_save_c_werror_flag=$ac_c_werror_flag
7020 ac_c_werror_flag=yes
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7034 if ac_fn_c_try_compile "$LINENO"; then :
7038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039 /* end confdefs.h. */
7049 if ac_fn_c_try_compile "$LINENO"; then :
7052 ac_c_werror_flag=$ac_save_c_werror_flag
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7065 if ac_fn_c_try_compile "$LINENO"; then :
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 ac_c_werror_flag=$ac_save_c_werror_flag
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7076 $as_echo "$ac_cv_prog_cc_g" >&6; }
7077 if test "$ac_test_CFLAGS" = set; then
7078 CFLAGS=$ac_save_CFLAGS
7079 elif test $ac_cv_prog_cc_g = yes; then
7080 if test "$GCC" = yes; then
7086 if test "$GCC" = yes; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7094 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 ac_cv_prog_cc_c89=no
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7103 #include <sys/types.h>
7104 #include <sys/stat.h>
7105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7106 struct buf { int x; };
7107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7108 static char *e (p, i)
7114 static char *f (char * (*g) (char **, int), char **p, ...)
7119 s = g (p, va_arg (v,int));
7124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7125 function prototypes and stuff, but not '\xHH' hex character constants.
7126 These don't provoke an error unfortunately, instead are silently treated
7127 as 'x'. The following induces an error, until -std is added to get
7128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7129 array size at least. It's necessary to write '\x00'==0 to get something
7130 that's true only with -std. */
7131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7134 inside strings and character constants. */
7136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7138 int test (int i, double x);
7139 struct s1 {int (*f) (int a);};
7140 struct s2 {int (*f) (double a);};
7141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7155 CC="$ac_save_CC $ac_arg"
7156 if ac_fn_c_try_compile "$LINENO"; then :
7157 ac_cv_prog_cc_c89=$ac_arg
7159 rm -f core conftest.err conftest.$ac_objext
7160 test "x$ac_cv_prog_cc_c89" != "xno" && break
7162 rm -f conftest.$ac_ext
7167 case "x$ac_cv_prog_cc_c89" in
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7170 $as_echo "none needed" >&6; } ;;
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7173 $as_echo "unsupported" >&6; } ;;
7175 CC="$CC $ac_cv_prog_cc_c89"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7179 if test "x$ac_cv_prog_cc_c89" != xno; then :
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189 if test -z "$CC"; then
7190 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7194 if test "$with_intelcompilers" = yes; then
7196 ac_cpp='$CPP $CPPFLAGS'
7197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 if test -n "$ac_tool_prefix"; then
7201 for ac_prog in icc ecc
7203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_CC+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7210 if test -n "$CC"; then
7211 ac_cv_prog_CC="$CC" # Let the user override the test.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 if test -n "$CC"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7233 $as_echo "$CC" >&6; }
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7240 test -n "$CC" && break
7243 if test -z "$CC"; then
7245 for ac_prog in icc ecc
7247 # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$ac_ct_CC"; then
7255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_ac_ct_CC="$ac_prog"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7275 if test -n "$ac_ct_CC"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7277 $as_echo "$ac_ct_CC" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7284 test -n "$ac_ct_CC" && break
7287 if test "x$ac_ct_CC" = x; then
7290 case $cross_compiling:$ac_tool_warned in
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7303 as_fn_error "no acceptable C compiler found in \$PATH
7304 See \`config.log' for more details." "$LINENO" 5; }
7306 # Provide some information about the compiler.
7307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7310 for ac_option in --version -v -V -qversion; do
7311 { { ac_try="$ac_compiler $ac_option >&5"
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7317 $as_echo "$ac_try_echo"; } >&5
7318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7320 if test -s conftest.err; then
7322 ... rest of stderr output deleted ...
7323 10q' conftest.err >conftest.er1
7324 cat conftest.er1 >&5
7326 rm -f conftest.er1 conftest.err
7327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7328 test $ac_status = 0; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7333 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337 /* end confdefs.h. */
7350 if ac_fn_c_try_compile "$LINENO"; then :
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7361 if test $ac_compiler_gnu = yes; then
7366 ac_test_CFLAGS=${CFLAGS+set}
7367 ac_save_CFLAGS=$CFLAGS
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7370 if test "${ac_cv_prog_cc_g+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7373 ac_save_c_werror_flag=$ac_c_werror_flag
7374 ac_c_werror_flag=yes
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7388 if ac_fn_c_try_compile "$LINENO"; then :
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7403 if ac_fn_c_try_compile "$LINENO"; then :
7406 ac_c_werror_flag=$ac_save_c_werror_flag
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7419 if ac_fn_c_try_compile "$LINENO"; then :
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 ac_c_werror_flag=$ac_save_c_werror_flag
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7430 $as_echo "$ac_cv_prog_cc_g" >&6; }
7431 if test "$ac_test_CFLAGS" = set; then
7432 CFLAGS=$ac_save_CFLAGS
7433 elif test $ac_cv_prog_cc_g = yes; then
7434 if test "$GCC" = yes; then
7440 if test "$GCC" = yes; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7448 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7451 ac_cv_prog_cc_c89=no
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7457 #include <sys/types.h>
7458 #include <sys/stat.h>
7459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7460 struct buf { int x; };
7461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7462 static char *e (p, i)
7468 static char *f (char * (*g) (char **, int), char **p, ...)
7473 s = g (p, va_arg (v,int));
7478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7479 function prototypes and stuff, but not '\xHH' hex character constants.
7480 These don't provoke an error unfortunately, instead are silently treated
7481 as 'x'. The following induces an error, until -std is added to get
7482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7483 array size at least. It's necessary to write '\x00'==0 to get something
7484 that's true only with -std. */
7485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7488 inside strings and character constants. */
7490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7492 int test (int i, double x);
7493 struct s1 {int (*f) (int a);};
7494 struct s2 {int (*f) (double a);};
7495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7509 CC="$ac_save_CC $ac_arg"
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_cv_prog_cc_c89=$ac_arg
7513 rm -f core conftest.err conftest.$ac_objext
7514 test "x$ac_cv_prog_cc_c89" != "xno" && break
7516 rm -f conftest.$ac_ext
7521 case "x$ac_cv_prog_cc_c89" in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7524 $as_echo "none needed" >&6; } ;;
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7527 $as_echo "unsupported" >&6; } ;;
7529 CC="$CC $ac_cv_prog_cc_c89"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7533 if test "x$ac_cv_prog_cc_c89" != xno; then :
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 if test -z "$CC"; then
7544 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7548 if test -z "$CC"; then
7549 # No C compiler specified... We rely on Autoconf to find the best
7551 ac_cpp='$CPP $CPPFLAGS'
7552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if test "${ac_cv_prog_CC+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$CC"; then
7564 ac_cv_prog_CC="$CC" # Let the user override the test.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 if test -n "$CC"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7586 $as_echo "$CC" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7594 if test -z "$ac_cv_prog_CC"; then
7596 # Extract the first word of "gcc", so it can be a program name with args.
7597 set dummy gcc; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$ac_ct_CC"; then
7604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_ac_ct_CC="gcc"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7624 if test -n "$ac_ct_CC"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7626 $as_echo "$ac_ct_CC" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7632 if test "x$ac_ct_CC" = x; then
7635 case $cross_compiling:$ac_tool_warned in
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7647 if test -z "$CC"; then
7648 if test -n "$ac_tool_prefix"; then
7649 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7650 set dummy ${ac_tool_prefix}cc; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if test "${ac_cv_prog_CC+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 if test -n "$CC"; then
7657 ac_cv_prog_CC="$CC" # Let the user override the test.
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_CC="${ac_tool_prefix}cc"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 if test -n "$CC"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7679 $as_echo "$CC" >&6; }
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7688 if test -z "$CC"; then
7689 # Extract the first word of "cc", so it can be a program name with args.
7690 set dummy cc; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if test "${ac_cv_prog_CC+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7696 if test -n "$CC"; then
7697 ac_cv_prog_CC="$CC" # Let the user override the test.
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7708 ac_prog_rejected=yes
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 if test $ac_prog_rejected = yes; then
7720 # We found a bogon in the path, so make sure we never use it.
7721 set dummy $ac_cv_prog_CC
7723 if test $# != 0; then
7724 # We chose a different compiler from the bogus one.
7725 # However, it has the same basename, so the bogon will be chosen
7726 # first if we set CC to just the basename; use the full file name.
7728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7734 if test -n "$CC"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7736 $as_echo "$CC" >&6; }
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7744 if test -z "$CC"; then
7745 if test -n "$ac_tool_prefix"; then
7746 for ac_prog in cl.exe
7748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if test "${ac_cv_prog_CC+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7755 if test -n "$CC"; then
7756 ac_cv_prog_CC="$CC" # Let the user override the test.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7765 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 if test -n "$CC"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7778 $as_echo "$CC" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 test -n "$CC" && break
7788 if test -z "$CC"; then
7790 for ac_prog in cl.exe
7792 # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$ac_ct_CC"; then
7800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_CC="$ac_prog"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7820 if test -n "$ac_ct_CC"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7822 $as_echo "$ac_ct_CC" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7829 test -n "$ac_ct_CC" && break
7832 if test "x$ac_ct_CC" = x; then
7835 case $cross_compiling:$ac_tool_warned in
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7848 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7850 as_fn_error "no acceptable C compiler found in \$PATH
7851 See \`config.log' for more details." "$LINENO" 5; }
7853 # Provide some information about the compiler.
7854 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7857 for ac_option in --version -v -V -qversion; do
7858 { { ac_try="$ac_compiler $ac_option >&5"
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7864 $as_echo "$ac_try_echo"; } >&5
7865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7867 if test -s conftest.err; then
7869 ... rest of stderr output deleted ...
7870 10q' conftest.err >conftest.er1
7871 cat conftest.er1 >&5
7873 rm -f conftest.er1 conftest.err
7874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7880 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7897 if ac_fn_c_try_compile "$LINENO"; then :
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7908 if test $ac_compiler_gnu = yes; then
7913 ac_test_CFLAGS=${CFLAGS+set}
7914 ac_save_CFLAGS=$CFLAGS
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7917 if test "${ac_cv_prog_cc_g+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 ac_save_c_werror_flag=$ac_c_werror_flag
7921 ac_c_werror_flag=yes
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7935 if ac_fn_c_try_compile "$LINENO"; then :
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7950 if ac_fn_c_try_compile "$LINENO"; then :
7953 ac_c_werror_flag=$ac_save_c_werror_flag
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7966 if ac_fn_c_try_compile "$LINENO"; then :
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 ac_c_werror_flag=$ac_save_c_werror_flag
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7977 $as_echo "$ac_cv_prog_cc_g" >&6; }
7978 if test "$ac_test_CFLAGS" = set; then
7979 CFLAGS=$ac_save_CFLAGS
7980 elif test $ac_cv_prog_cc_g = yes; then
7981 if test "$GCC" = yes; then
7987 if test "$GCC" = yes; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7995 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7998 ac_cv_prog_cc_c89=no
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8004 #include <sys/types.h>
8005 #include <sys/stat.h>
8006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8007 struct buf { int x; };
8008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8009 static char *e (p, i)
8015 static char *f (char * (*g) (char **, int), char **p, ...)
8020 s = g (p, va_arg (v,int));
8025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8026 function prototypes and stuff, but not '\xHH' hex character constants.
8027 These don't provoke an error unfortunately, instead are silently treated
8028 as 'x'. The following induces an error, until -std is added to get
8029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for&n