2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for Scilab 6.
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, 2010 Free Software
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.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1
180 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184 PATH=/empty FPATH=/empty; export PATH FPATH
185 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187 if (eval "$as_required") 2>/dev/null; then :
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 test -z "$as_dir" && as_dir=.
204 for as_base in sh bash ksh sh5; do
205 # Try only shells that exist, to save several forks.
206 as_shell=$as_dir/$as_base
207 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 CONFIG_SHELL=$as_shell as_have_required=yes
210 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220 CONFIG_SHELL=$SHELL as_have_required=yes
225 if test "x$CONFIG_SHELL" != x; then :
226 # We cannot yet assume a decent shell, so we have to provide a
227 # neutralization value for shells without unset; and this also
228 # works around shells that cannot unset nonexistent variables.
229 # Preserve -v and -x to the replacement shell.
232 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
235 *v*x* | *x*v* ) as_opts=-vx ;;
240 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
243 if test x$as_have_required = xno; then :
244 $as_echo "$0: This script requires a shell more modern than all"
245 $as_echo "$0: the shells that I found on your system."
246 if test x${ZSH_VERSION+set} = xset ; then
247 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
250 $as_echo "$0: Please tell bug-autoconf@gnu.org and
251 $0: http://bugzilla.scilab.org/ about your system,
252 $0: including any error possibly output before this
253 $0: message. Then install a modern shell, or manually run
254 $0: the script under such a shell if you do have one."
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
386 as_status=$1; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548 SHELL=${CONFIG_SHELL-/bin/sh}
551 test -n "$DJDIR" || exec 7<&0 </dev/null
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
571 # Identity of this package.
572 PACKAGE_NAME='Scilab'
573 PACKAGE_TARNAME='scilab'
575 PACKAGE_STRING='Scilab 6'
576 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
639 COMPILATION_TESTS_FALSE
640 COMPILATION_TESTS_TRUE
642 INSTALL_HELP_XML_FALSE
643 INSTALL_HELP_XML_TRUE
677 GENERATE_LOCALIZATION_FILES_FALSE
678 GENERATE_LOCALIZATION_FILES_TRUE
710 XGETTEXT_EXTRA_OPTIONS
718 GETTEXT_MACRO_VERSION
737 SWIG_RUNTIME_LIBS_DIR
803 USE_DYNAMIC_STACK_FALSE
804 USE_DYNAMIC_STACK_TRUE
811 IS_MIPS_SGI_IRIX_FALSE
812 IS_MIPS_SGI_IRIX_TRUE
860 MAINTAINER_MODE_FALSE
863 RELOCATABLE_VIA_LD_FALSE
864 RELOCATABLE_VIA_LD_TRUE
889 INSTALL_STRIP_PROGRAM
892 SCILAB_BINARY_VERSION
893 SCILAB_LIBRARY_VERSION
894 SCILAB_VERSION_MAINTENANCE
924 program_transform_name
937 enable_option_checking
942 enable_maintainer_mode
943 enable_dependency_tracking
951 enable_stop_on_warning
957 enable_compilation_tests
981 enable_build_localization
998 with_install_help_xml
1005 ac_precious_vars='build_alias
1030 # Initialize some variables set by options.
1032 ac_init_version=false
1033 ac_unrecognized_opts=
1034 ac_unrecognized_sep=
1035 # The variables have the same names as the options, with
1036 # dashes changed to underlines.
1037 cache_file=/dev/null
1044 program_transform_name=s,x,x,
1052 # Installation directory options.
1053 # These are left unexpanded so users can "make install exec_prefix=/foo"
1054 # and all the variables that are supposed to be based on exec_prefix
1055 # by default will actually change.
1056 # Use braces instead of parens because sh, perl, etc. also accept them.
1057 # (The list follows the same order as the GNU Coding Standards.)
1058 bindir='${exec_prefix}/bin'
1059 sbindir='${exec_prefix}/sbin'
1060 libexecdir='${exec_prefix}/libexec'
1061 datarootdir='${prefix}/share'
1062 datadir='${datarootdir}'
1063 sysconfdir='${prefix}/etc'
1064 sharedstatedir='${prefix}/com'
1065 localstatedir='${prefix}/var'
1066 includedir='${prefix}/include'
1067 oldincludedir='/usr/include'
1068 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1069 infodir='${datarootdir}/info'
1074 libdir='${exec_prefix}/lib'
1075 localedir='${datarootdir}/locale'
1076 mandir='${datarootdir}/man'
1082 # If the previous option needs an argument, assign it.
1083 if test -n "$ac_prev"; then
1084 eval $ac_prev=\$ac_option
1090 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1095 # Accept the important Cygnus configure options, so we can diagnose typos.
1097 case $ac_dashdash$ac_option in
1101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1104 bindir=$ac_optarg ;;
1106 -build | --build | --buil | --bui | --bu)
1107 ac_prev=build_alias ;;
1108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1109 build_alias=$ac_optarg ;;
1111 -cache-file | --cache-file | --cache-fil | --cache-fi \
1112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1113 ac_prev=cache_file ;;
1114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1116 cache_file=$ac_optarg ;;
1118 --config-cache | -C)
1119 cache_file=config.cache ;;
1121 -datadir | --datadir | --datadi | --datad)
1123 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1124 datadir=$ac_optarg ;;
1126 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1127 | --dataroo | --dataro | --datar)
1128 ac_prev=datarootdir ;;
1129 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1130 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1131 datarootdir=$ac_optarg ;;
1133 -disable-* | --disable-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid feature name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1142 "enable_$ac_useropt"
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval enable_$ac_useropt=no ;;
1149 -docdir | --docdir | --docdi | --doc | --do)
1151 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1152 docdir=$ac_optarg ;;
1154 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1156 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1157 dvidir=$ac_optarg ;;
1159 -enable-* | --enable-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid feature name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "enable_$ac_useropt"
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval enable_$ac_useropt=\$ac_optarg ;;
1175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1177 | --exec | --exe | --ex)
1178 ac_prev=exec_prefix ;;
1179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1181 | --exec=* | --exe=* | --ex=*)
1182 exec_prefix=$ac_optarg ;;
1184 -gas | --gas | --ga | --g)
1185 # Obsolete; use --with-gas.
1188 -help | --help | --hel | --he | -h)
1189 ac_init_help=long ;;
1190 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1191 ac_init_help=recursive ;;
1192 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1193 ac_init_help=short ;;
1195 -host | --host | --hos | --ho)
1196 ac_prev=host_alias ;;
1197 -host=* | --host=* | --hos=* | --ho=*)
1198 host_alias=$ac_optarg ;;
1200 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1202 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1204 htmldir=$ac_optarg ;;
1206 -includedir | --includedir | --includedi | --included | --include \
1207 | --includ | --inclu | --incl | --inc)
1208 ac_prev=includedir ;;
1209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1210 | --includ=* | --inclu=* | --incl=* | --inc=*)
1211 includedir=$ac_optarg ;;
1213 -infodir | --infodir | --infodi | --infod | --info | --inf)
1215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1216 infodir=$ac_optarg ;;
1218 -libdir | --libdir | --libdi | --libd)
1220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1221 libdir=$ac_optarg ;;
1223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1224 | --libexe | --libex | --libe)
1225 ac_prev=libexecdir ;;
1226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1227 | --libexe=* | --libex=* | --libe=*)
1228 libexecdir=$ac_optarg ;;
1230 -localedir | --localedir | --localedi | --localed | --locale)
1231 ac_prev=localedir ;;
1232 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1233 localedir=$ac_optarg ;;
1235 -localstatedir | --localstatedir | --localstatedi | --localstated \
1236 | --localstate | --localstat | --localsta | --localst | --locals)
1237 ac_prev=localstatedir ;;
1238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1239 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1240 localstatedir=$ac_optarg ;;
1242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1245 mandir=$ac_optarg ;;
1247 -nfp | --nfp | --nf)
1248 # Obsolete; use --without-fp.
1251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1252 | --no-cr | --no-c | -n)
1255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1261 | --oldin | --oldi | --old | --ol | --o)
1262 ac_prev=oldincludedir ;;
1263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1266 oldincludedir=$ac_optarg ;;
1268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1271 prefix=$ac_optarg ;;
1273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1274 | --program-pre | --program-pr | --program-p)
1275 ac_prev=program_prefix ;;
1276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1278 program_prefix=$ac_optarg ;;
1280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1281 | --program-suf | --program-su | --program-s)
1282 ac_prev=program_suffix ;;
1283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1285 program_suffix=$ac_optarg ;;
1287 -program-transform-name | --program-transform-name \
1288 | --program-transform-nam | --program-transform-na \
1289 | --program-transform-n | --program-transform- \
1290 | --program-transform | --program-transfor \
1291 | --program-transfo | --program-transf \
1292 | --program-trans | --program-tran \
1293 | --progr-tra | --program-tr | --program-t)
1294 ac_prev=program_transform_name ;;
1295 -program-transform-name=* | --program-transform-name=* \
1296 | --program-transform-nam=* | --program-transform-na=* \
1297 | --program-transform-n=* | --program-transform-=* \
1298 | --program-transform=* | --program-transfor=* \
1299 | --program-transfo=* | --program-transf=* \
1300 | --program-trans=* | --program-tran=* \
1301 | --progr-tra=* | --program-tr=* | --program-t=*)
1302 program_transform_name=$ac_optarg ;;
1304 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1306 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1307 pdfdir=$ac_optarg ;;
1309 -psdir | --psdir | --psdi | --psd | --ps)
1311 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1315 | -silent | --silent | --silen | --sile | --sil)
1318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1322 sbindir=$ac_optarg ;;
1324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1326 | --sharedst | --shareds | --shared | --share | --shar \
1328 ac_prev=sharedstatedir ;;
1329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1333 sharedstatedir=$ac_optarg ;;
1335 -site | --site | --sit)
1337 -site=* | --site=* | --sit=*)
1340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1343 srcdir=$ac_optarg ;;
1345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1346 | --syscon | --sysco | --sysc | --sys | --sy)
1347 ac_prev=sysconfdir ;;
1348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1350 sysconfdir=$ac_optarg ;;
1352 -target | --target | --targe | --targ | --tar | --ta | --t)
1353 ac_prev=target_alias ;;
1354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1355 target_alias=$ac_optarg ;;
1357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1360 -version | --version | --versio | --versi | --vers | -V)
1361 ac_init_version=: ;;
1364 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1365 # Reject names that are not valid shell variable names.
1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1367 as_fn_error $? "invalid package name: $ac_useropt"
1368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1377 eval with_$ac_useropt=\$ac_optarg ;;
1379 -without-* | --without-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 as_fn_error $? "invalid package name: $ac_useropt"
1384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1393 eval with_$ac_useropt=no ;;
1396 # Obsolete; use --with-x.
1399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1400 | --x-incl | --x-inc | --x-in | --x-i)
1401 ac_prev=x_includes ;;
1402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1404 x_includes=$ac_optarg ;;
1406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1408 ac_prev=x_libraries ;;
1409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1411 x_libraries=$ac_optarg ;;
1413 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1414 Try \`$0 --help' for more information"
1418 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1419 # Reject names that are not valid shell variable names.
1420 case $ac_envvar in #(
1421 '' | [0-9]* | *[!_$as_cr_alnum]* )
1422 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1424 eval $ac_envvar=\$ac_optarg
1425 export $ac_envvar ;;
1428 # FIXME: should be removed in autoconf 3.0.
1429 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1430 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1432 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1438 if test -n "$ac_prev"; then
1439 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1440 as_fn_error $? "missing argument to $ac_option"
1443 if test -n "$ac_unrecognized_opts"; then
1444 case $enable_option_checking in
1446 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1447 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1451 # Check all directory arguments for consistency.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1458 # Remove trailing slashes.
1461 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1462 eval $ac_var=\$ac_val;;
1464 # Be sure to have absolute directory names.
1466 [\\/$]* | ?:[\\/]* ) continue;;
1467 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1472 # There might be people who depend on the old broken behavior: `$host'
1473 # used to hold the argument of --host etc.
1474 # FIXME: To remove some day.
1477 target=$target_alias
1479 # FIXME: To remove some day.
1480 if test "x$host_alias" != x; then
1481 if test "x$build_alias" = x; then
1482 cross_compiling=maybe
1483 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1484 If a cross compiler is detected then cross compile mode will be used" >&2
1485 elif test "x$build_alias" != "x$host_alias"; then
1491 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1493 test "$silent" = yes && exec 6>/dev/null
1496 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1497 ac_ls_di=`ls -di .` &&
1498 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1499 as_fn_error $? "working directory cannot be determined"
1500 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1501 as_fn_error $? "pwd does not report name of working directory"
1504 # Find the source files, if location was not specified.
1505 if test -z "$srcdir"; then
1506 ac_srcdir_defaulted=yes
1507 # Try the directory containing this script, then the parent directory.
1508 ac_confdir=`$as_dirname -- "$as_myself" ||
1509 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1510 X"$as_myself" : 'X\(//\)[^/]' \| \
1511 X"$as_myself" : 'X\(//\)$' \| \
1512 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1513 $as_echo X"$as_myself" |
1514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1532 if test ! -r "$srcdir/$ac_unique_file"; then
1536 ac_srcdir_defaulted=no
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1539 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1540 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1546 # When building in place, set srcdir=.
1547 if test "$ac_abs_confdir" = "$ac_pwd"; then
1550 # Remove unnecessary trailing slashes from srcdir.
1551 # Double slashes in file names in object file debugging info
1552 # mess up M-x gdb in Emacs.
1554 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1556 for ac_var in $ac_precious_vars; do
1557 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1558 eval ac_env_${ac_var}_value=\$${ac_var}
1559 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1560 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1564 # Report the --help message.
1566 if test "$ac_init_help" = "long"; then
1567 # Omit some internal or obsolete options to make the list less imposing.
1568 # This message is too long to be a string in the A/UX 3.1 sh.
1570 \`configure' configures Scilab 6 to adapt to many kinds of systems.
1572 Usage: $0 [OPTION]... [VAR=VALUE]...
1574 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1575 VAR=VALUE. See below for descriptions of some of the useful variables.
1577 Defaults for the options are specified in brackets.
1580 -h, --help display this help and exit
1581 --help=short display options specific to this package
1582 --help=recursive display the short help of all the included packages
1583 -V, --version display version information and exit
1584 -q, --quiet, --silent do not print \`checking ...' messages
1585 --cache-file=FILE cache test results in FILE [disabled]
1586 -C, --config-cache alias for \`--cache-file=config.cache'
1587 -n, --no-create do not create output files
1588 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1590 Installation directories:
1591 --prefix=PREFIX install architecture-independent files in PREFIX
1592 [$ac_default_prefix]
1593 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1596 By default, \`make install' will install all the files in
1597 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1598 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1599 for instance \`--prefix=\$HOME'.
1601 For better control, use the options below.
1603 Fine tuning of the installation directories:
1604 --bindir=DIR user executables [EPREFIX/bin]
1605 --sbindir=DIR system admin executables [EPREFIX/sbin]
1606 --libexecdir=DIR program executables [EPREFIX/libexec]
1607 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1608 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1609 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1610 --libdir=DIR object code libraries [EPREFIX/lib]
1611 --includedir=DIR C header files [PREFIX/include]
1612 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1613 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1614 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1615 --infodir=DIR info documentation [DATAROOTDIR/info]
1616 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1617 --mandir=DIR man documentation [DATAROOTDIR/man]
1618 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1619 --htmldir=DIR html documentation [DOCDIR]
1620 --dvidir=DIR dvi documentation [DOCDIR]
1621 --pdfdir=DIR pdf documentation [DOCDIR]
1622 --psdir=DIR ps documentation [DOCDIR]
1628 --program-prefix=PREFIX prepend PREFIX to installed program names
1629 --program-suffix=SUFFIX append SUFFIX to installed program names
1630 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1633 --x-includes=DIR X include files are in DIR
1634 --x-libraries=DIR X library files are in DIR
1637 --build=BUILD configure for building on BUILD [guessed]
1638 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1642 if test -n "$ac_init_help"; then
1643 case $ac_init_help in
1644 short | recursive ) echo "Configuration of Scilab 6:";;
1649 --disable-option-checking ignore unrecognized --enable/--with options
1650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1652 --disable-largefile omit support for large files
1653 --enable-relocatable install a package that can be moved in the filesystem
1654 --disable-rpath do not hardcode runtime library paths
1655 --enable-maintainer-mode enable make rules and dependencies not useful
1656 (and sometimes confusing) to the casual installer
1657 --disable-dependency-tracking speeds up one-time build
1658 --enable-dependency-tracking do not reject slow dependency extractors
1659 --enable-debug Do not optimize and print warning messages
1660 (C/C++/Fortran/Java code)
1661 --enable-debug-C Do not optimize and print warning messages (C code)
1662 --enable-debug-CXX Do not optimize and print warning messages (C++
1664 --enable-debug-java Print warning messages and line numbers (Java code)
1665 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1667 --enable-debug-linker Print warning messages from the linker (ld)
1668 --enable-code-coverage Enable code coverage
1669 --enable-stop-on-warning
1670 Stop the compilation on the first warning found in
1672 --enable-compilation-tests
1673 Enable unitary tests and checks at compilation time
1674 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1675 Java Development Kit (JDK) is mandatory for this
1677 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1678 (A Java Development Kit (JDK) is mandatory for this
1680 --enable-build-parser Regenerate code for the parser (Lex & YACC)
1681 --disable-nls do not use Native Language Support
1682 --disable-build-localization
1683 Disable the localization build
1685 --disable-build-help Disable the help build
1687 --enable-static[=PKGS] build static libraries [default=no]
1688 --enable-shared[=PKGS] build shared libraries [default=yes]
1689 --enable-fast-install[=PKGS]
1690 optimize for fast installation [default=yes]
1691 --disable-libtool-lock avoid locking (might break parallel builds)
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-gnu-ld assume the C compiler uses GNU ld default=no
1697 --with-gcc Use gcc C compiler
1698 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1699 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1700 compilers (GNU/Linux only)
1701 --without-tk Disable the interface to Tcl/Tk
1702 --without-javasci Disable the Java/Scilab interface (javasci)
1703 --without-gui Disable the Scilab Graphical User Interface (GUI).
1704 Intended for embedded/clustering/grid Scilab
1705 --with-fink-prefix Provide a fink prefix. Default: /sw/
1706 --without-hdf5 Disable the interface to the HDF5 library
1707 --with-hdf5-include=DIR Set the path to the HDF5 headers
1708 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1709 --without-xcos Disable Xcos
1710 --without-modelica Disable the OCaml module (modelica)
1711 --with-jdk=DIR use JDK from DIR
1712 --with-ant=DIR Use ant from DIR
1713 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1714 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1715 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1716 --without-libintl-prefix don't search for libintl in includedir and libdir
1717 --without-fftw Disable the interface to the FFTW 3 library
1718 --with-fftw-include=DIR Set the path to the FFTW headers
1719 --with-fftw-library=DIR Set the path to the FFTW libraries
1720 --without-pvm Disable the interface to the PVM library
1721 --with-pvm-include=DIR Set the path to the PVM headers
1722 --with-pvm-library=DIR Set the path to the PVM library directory
1723 --without-openmp Disable the usage of OpenMP (parallelization of some
1725 --with-libxml2=PREFIX Set the path to your libxml2 installation
1726 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1728 --with-lapack-library=DIR
1729 set the path to the LAPACK library
1730 --without-umfpack Disable the interface to the UMFPACK library
1731 --with-umfpack-library=DIR
1732 Set the path to the UMFPACK libraries
1733 --with-umfpack-include=DIR
1734 Set the path to the UMFPACK headers
1735 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1736 Expression Library) installation
1737 --with-tcl-library=DIR Set the path to the TCL library
1738 --with-tcl-include=DIR Set the path to the TCL headers
1739 --with-tk-library=DIR Set the path to the TK library
1740 --with-tk-include=DIR Set the path to the TK headers
1741 --with-x use the X Window System
1742 --without-matio Disable the interface to Matio (MAT File I/O
1744 --with-matio-include=DIR
1745 Set the path to the MATIO headers
1746 --with-matio-library=DIR
1747 Set the path to the MATIO libraries
1748 --with-docbook=DIR Set the path to the docbook package
1749 --with-install-help-xml make install will install XML files
1751 --with-pic try to use only PIC/non-PIC objects [default=use
1753 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1755 Some influential environment variables:
1756 CC C compiler command
1757 CFLAGS C compiler flags
1758 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1759 nonstandard directory <lib dir>
1760 LIBS libraries to pass to the linker, e.g. -l<library>
1761 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1762 you have headers in a nonstandard directory <include dir>
1764 PKG_CONFIG path to pkg-config utility
1765 F77 Fortran 77 compiler command
1766 FFLAGS Fortran 77 compiler flags
1767 CXX C++ compiler command
1768 CXXFLAGS C++ compiler flags
1769 YACC The `Yet Another Compiler Compiler' implementation to use.
1770 Defaults to the first program found out of: `bison -y', `byacc',
1772 YFLAGS The list of arguments that will be passed by default to $YACC.
1773 This script will default YFLAGS to the empty string to avoid a
1774 default value of `-d' given by some make applications.
1775 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1776 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1777 XMKMF Path to xmkmf, Makefile generator for X Window System
1779 C compiler flags for MATIO, overriding pkg-config
1780 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1781 CXXCPP C++ preprocessor
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1786 Report bugs to <http://bugzilla.scilab.org/>.
1791 if test "$ac_init_help" = "recursive"; then
1792 # If there are subdirs, report their specific --help.
1793 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794 test -d "$ac_dir" ||
1795 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803 # A ".." for each directory in $ac_dir_suffix.
1804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805 case $ac_top_builddir_sub in
1806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1816 .) # We are building in place.
1818 ac_top_srcdir=$ac_top_builddir_sub
1819 ac_abs_top_srcdir=$ac_pwd ;;
1820 [\\/]* | ?:[\\/]* ) # Absolute name.
1821 ac_srcdir=$srcdir$ac_dir_suffix;
1822 ac_top_srcdir=$srcdir
1823 ac_abs_top_srcdir=$srcdir ;;
1825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826 ac_top_srcdir=$ac_top_build_prefix$srcdir
1827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1831 cd "$ac_dir" || { ac_status=$?; continue; }
1832 # Check for guested configure.
1833 if test -f "$ac_srcdir/configure.gnu"; then
1835 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836 elif test -f "$ac_srcdir/configure"; then
1838 $SHELL "$ac_srcdir/configure" --help=recursive
1840 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1842 cd "$ac_pwd" || { ac_status=$?; break; }
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1850 generated by GNU Autoconf 2.68
1852 Copyright (C) 2010 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext
1870 if { { ac_try="$ac_compile"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_compile") 2>conftest.err
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest.$ac_objext; then :
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897 as_fn_set_status $ac_retval
1899 } # ac_fn_c_try_compile
1901 # ac_fn_c_try_cpp LINENO
1902 # ----------------------
1903 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_cpp conftest.$ac_ext"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } > conftest.i && {
1923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1943 ac_fn_c_check_header_mongrel ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if eval \${$3+:} false; then :
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1967 ac_header_compiler=no
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1983 ac_header_preproc=no
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1989 # So? What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008 ( $as_echo "## ------------------------------------------ ##
2009 ## Report this to http://bugzilla.scilab.org/ ##
2010 ## ------------------------------------------ ##"
2011 ) | sed "s/^/$as_me: WARNING: /" >&2
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 eval "$3=\$ac_header_compiler"
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_mongrel
2029 # ac_fn_c_try_run LINENO
2030 # ----------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2039 *) ac_try_echo=$ac_try;;
2041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status $ac_retval
2071 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2072 # -------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_c_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 } # ac_fn_c_check_header_compile
2102 # ac_fn_c_try_link LINENO
2103 # -----------------------
2104 # Try to link conftest.$ac_ext, and return whether this succeeded.
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 rm -f conftest.$ac_objext conftest$ac_exeext
2109 if { { ac_try="$ac_link"
2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_link") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && {
2125 test -z "$ac_c_werror_flag" ||
2126 test ! -s conftest.err
2127 } && test -s conftest$ac_exeext && {
2128 test "$cross_compiling" = yes ||
2129 $as_test_x conftest$ac_exeext
2133 $as_echo "$as_me: failed program was:" >&5
2134 sed 's/^/| /' conftest.$ac_ext >&5
2138 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2139 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2140 # interfere with the next link command; also delete a directory that is
2141 # left behind by Apple's compiler. We do this before executing the actions.
2142 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144 as_fn_set_status $ac_retval
2146 } # ac_fn_c_try_link
2148 # ac_fn_c_check_func LINENO FUNC VAR
2149 # ----------------------------------
2150 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2151 ac_fn_c_check_func ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2163 #define $2 innocuous_$2
2165 /* System header to define __stub macros and hopefully few prototypes,
2166 which can conflict with char $2 (); below.
2167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2168 <limits.h> exists even on freestanding compilers. */
2171 # include <limits.h>
2173 # include <assert.h>
2178 /* Override any GCC internal prototype to avoid an error.
2179 Use char because int might match the return type of a GCC
2180 builtin and then its argument prototype would still apply. */
2185 /* The GNU C library defines this for functions which it implements
2186 to always fail with ENOSYS. Some functions are actually named
2187 something starting with __ and the normal name is an alias. */
2188 #if defined __stub_$2 || defined __stub___$2
2200 if ac_fn_c_try_link "$LINENO"; then :
2205 rm -f core conftest.err conftest.$ac_objext \
2206 conftest$ac_exeext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2213 } # ac_fn_c_check_func
2215 # ac_fn_f77_try_compile LINENO
2216 # ----------------------------
2217 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2218 ac_fn_f77_try_compile ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 rm -f conftest.$ac_objext
2222 if { { ac_try="$ac_compile"
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_compile") 2>conftest.err
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && {
2238 test -z "$ac_f77_werror_flag" ||
2239 test ! -s conftest.err
2240 } && test -s conftest.$ac_objext; then :
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2251 } # ac_fn_f77_try_compile
2253 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2254 # --------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2258 ac_fn_c_compute_int ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2276 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 ac_hi=$ac_mid; break
2295 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2296 if test $ac_lo -le $ac_mid; then
2300 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2311 static int test_array [1 - 2 * !(($2) < 0)];
2318 if ac_fn_c_try_compile "$LINENO"; then :
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2327 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_lo=$ac_mid; break
2337 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2338 if test $ac_mid -le $ac_hi; then
2342 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352 # Binary search between lo and hi bounds.
2353 while test "x$ac_lo" != "x$ac_hi"; do
2354 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2361 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2368 if ac_fn_c_try_compile "$LINENO"; then :
2371 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2383 static long int longval () { return $2; }
2384 static unsigned long int ulongval () { return $2; }
2391 FILE *f = fopen ("conftest.val", "w");
2396 long int i = longval ();
2399 fprintf (f, "%ld", i);
2403 unsigned long int i = ulongval ();
2406 fprintf (f, "%lu", i);
2408 /* Do not output a trailing newline, as this causes \r\n confusion
2409 on some platforms. */
2410 return ferror (f) || fclose (f) != 0;
2416 if ac_fn_c_try_run "$LINENO"; then :
2417 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2422 conftest.$ac_objext conftest.beam conftest.$ac_ext
2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2427 as_fn_set_status $ac_retval
2429 } # ac_fn_c_compute_int
2431 # ac_fn_cxx_try_compile LINENO
2432 # ----------------------------
2433 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2434 ac_fn_cxx_try_compile ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 rm -f conftest.$ac_objext
2438 if { { ac_try="$ac_compile"
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2444 $as_echo "$ac_try_echo"; } >&5
2445 (eval "$ac_compile") 2>conftest.err
2447 if test -s conftest.err; then
2448 grep -v '^ *+' conftest.err >conftest.er1
2449 cat conftest.er1 >&5
2450 mv -f conftest.er1 conftest.err
2452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2453 test $ac_status = 0; } && {
2454 test -z "$ac_cxx_werror_flag" ||
2455 test ! -s conftest.err
2456 } && test -s conftest.$ac_objext; then :
2459 $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2465 as_fn_set_status $ac_retval
2467 } # ac_fn_cxx_try_compile
2469 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2470 # ----------------------------------------------------
2471 # Tries to find if the field MEMBER exists in type AGGR, after including
2472 # INCLUDES, setting cache variable VAR accordingly.
2473 ac_fn_c_check_member ()
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2477 $as_echo_n "checking for $2.$3... " >&6; }
2478 if eval \${$4+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 /* end confdefs.h. */
2494 if ac_fn_c_try_compile "$LINENO"; then :
2497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2498 /* end confdefs.h. */
2504 if (sizeof ac_aggr.$3)
2510 if ac_fn_c_try_compile "$LINENO"; then :
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2521 $as_echo "$ac_res" >&6; }
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524 } # ac_fn_c_check_member
2526 # ac_fn_cxx_try_cpp LINENO
2527 # ------------------------
2528 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2529 ac_fn_cxx_try_cpp ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 if { { ac_try="$ac_cpp conftest.$ac_ext"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2538 $as_echo "$ac_try_echo"; } >&5
2539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2541 if test -s conftest.err; then
2542 grep -v '^ *+' conftest.err >conftest.er1
2543 cat conftest.er1 >&5
2544 mv -f conftest.er1 conftest.err
2546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2547 test $ac_status = 0; } > conftest.i && {
2548 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2549 test ! -s conftest.err
2553 $as_echo "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559 as_fn_set_status $ac_retval
2561 } # ac_fn_cxx_try_cpp
2563 # ac_fn_cxx_try_link LINENO
2564 # -------------------------
2565 # Try to link conftest.$ac_ext, and return whether this succeeded.
2566 ac_fn_cxx_try_link ()
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 rm -f conftest.$ac_objext conftest$ac_exeext
2570 if { { ac_try="$ac_link"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 $as_echo "$ac_try_echo"; } >&5
2577 (eval "$ac_link") 2>conftest.err
2579 if test -s conftest.err; then
2580 grep -v '^ *+' conftest.err >conftest.er1
2581 cat conftest.er1 >&5
2582 mv -f conftest.er1 conftest.err
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; } && {
2586 test -z "$ac_cxx_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest$ac_exeext && {
2589 test "$cross_compiling" = yes ||
2590 $as_test_x conftest$ac_exeext
2594 $as_echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2599 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2600 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2601 # interfere with the next link command; also delete a directory that is
2602 # left behind by Apple's compiler. We do this before executing the actions.
2603 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605 as_fn_set_status $ac_retval
2607 } # ac_fn_cxx_try_link
2609 # ac_fn_f77_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_f77_try_link ()
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { { ac_try="$ac_link"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623 (eval "$ac_link") 2>conftest.err
2625 if test -s conftest.err; then
2626 grep -v '^ *+' conftest.err >conftest.er1
2627 cat conftest.er1 >&5
2628 mv -f conftest.er1 conftest.err
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; } && {
2632 test -z "$ac_f77_werror_flag" ||
2633 test ! -s conftest.err
2634 } && test -s conftest$ac_exeext && {
2635 test "$cross_compiling" = yes ||
2636 $as_test_x conftest$ac_exeext
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647 # interfere with the next link command; also delete a directory that is
2648 # left behind by Apple's compiler. We do this before executing the actions.
2649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651 as_fn_set_status $ac_retval
2653 } # ac_fn_f77_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2658 It was created by Scilab $as_me 6, which was
2659 generated by GNU Autoconf 2.68. Invocation command line was
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2680 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2681 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2684 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2685 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2686 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 $as_echo "PATH: $as_dir"
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2719 ac_must_keep_next=false
2725 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727 | -silent | --silent | --silen | --sile | --sil)
2730 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2733 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 as_fn_append ac_configure_args1 " '$ac_arg'"
2736 if test $ac_must_keep_next = true; then
2737 ac_must_keep_next=false # Got value, back to normal.
2740 *=* | --config-cache | -C | -disable-* | --disable-* \
2741 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743 | -with-* | --with-* | -without-* | --without-* | --x)
2744 case "$ac_configure_args0 " in
2745 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2748 -* ) ac_must_keep_next=true ;;
2751 as_fn_append ac_configure_args " '$ac_arg'"
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log. We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765 # Save into config.log some information that might help in debugging.
2769 $as_echo "## ---------------- ##
2770 ## Cache variables. ##
2771 ## ---------------- ##"
2773 # The following way of writing the cache mishandles newlines in values,
2775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2776 eval ac_val=\$$ac_var
2780 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784 _ | IFS | as_nl) ;; #(
2785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2786 *) { eval $ac_var=; unset $ac_var;} ;;
2791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2792 *${as_nl}ac_space=\ *)
2794 "s/'\''/'\''\\\\'\'''\''/g;
2795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2805 $as_echo "## ----------------- ##
2806 ## Output variables. ##
2807 ## ----------------- ##"
2809 for ac_var in $ac_subst_vars
2811 eval ac_val=\$$ac_var
2813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2815 $as_echo "$ac_var='\''$ac_val'\''"
2819 if test -n "$ac_subst_files"; then
2820 $as_echo "## ------------------- ##
2821 ## File substitutions. ##
2822 ## ------------------- ##"
2824 for ac_var in $ac_subst_files
2826 eval ac_val=\$$ac_var
2828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830 $as_echo "$ac_var='\''$ac_val'\''"
2835 if test -s confdefs.h; then
2836 $as_echo "## ----------- ##
2843 test "$ac_signal" != 0 &&
2844 $as_echo "$as_me: caught signal $ac_signal"
2845 $as_echo "$as_me: exit $exit_status"
2847 rm -f core *.core core.conftest.* &&
2848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2851 for ac_signal in 1 2 13 15; do
2852 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2857 rm -f -r conftest* confdefs.h
2859 $as_echo "/* confdefs.h */" > confdefs.h
2861 # Predefined preprocessor variables.
2863 cat >>confdefs.h <<_ACEOF
2864 #define PACKAGE_NAME "$PACKAGE_NAME"
2867 cat >>confdefs.h <<_ACEOF
2868 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_STRING "$PACKAGE_STRING"
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_URL "$PACKAGE_URL"
2888 # Let the site file select an alternate cache file if it wants to.
2889 # Prefer an explicitly selected file to automatically selected ones.
2892 if test -n "$CONFIG_SITE"; then
2893 # We do not want a PATH search for config.site.
2894 case $CONFIG_SITE in #((
2895 -*) ac_site_file1=./$CONFIG_SITE;;
2896 */*) ac_site_file1=$CONFIG_SITE;;
2897 *) ac_site_file1=./$CONFIG_SITE;;
2899 elif test "x$prefix" != xNONE; then
2900 ac_site_file1=$prefix/share/config.site
2901 ac_site_file2=$prefix/etc/config.site
2903 ac_site_file1=$ac_default_prefix/share/config.site
2904 ac_site_file2=$ac_default_prefix/etc/config.site
2906 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2908 test "x$ac_site_file" = xNONE && continue
2909 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2911 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2912 sed 's/^/| /' "$ac_site_file" >&5
2914 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error $? "failed to load site script $ac_site_file
2917 See \`config.log' for more details" "$LINENO" 5; }
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special files
2923 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2924 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2938 gt_needs="$gt_needs "
2939 # Check that the precious variables saved in the cache have kept the same
2941 ac_cache_corrupted=false
2942 for ac_var in $ac_precious_vars; do
2943 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2944 eval ac_new_set=\$ac_env_${ac_var}_set
2945 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2946 eval ac_new_val=\$ac_env_${ac_var}_value
2947 case $ac_old_set,$ac_new_set in
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2950 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2951 ac_cache_corrupted=: ;;
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2954 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2955 ac_cache_corrupted=: ;;
2958 if test "x$ac_old_val" != "x$ac_new_val"; then
2959 # differences in whitespace do not lead to failure.
2960 ac_old_val_w=`echo x $ac_old_val`
2961 ac_new_val_w=`echo x $ac_new_val`
2962 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2964 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2965 ac_cache_corrupted=:
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2968 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2969 eval $ac_var=\$ac_old_val
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2972 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2974 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2977 # Pass precious variables to config.status.
2978 if test "$ac_new_set" = set; then
2980 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2981 *) ac_arg=$ac_var=$ac_new_val ;;
2983 case " $ac_configure_args " in
2984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2985 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2989 if $ac_cache_corrupted; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2993 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2994 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2996 ## -------------------- ##
2997 ## Main body of script. ##
2998 ## -------------------- ##
3001 ac_cpp='$CPP $CPPFLAGS'
3002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 SCI_BUILDDIR="`pwd`"
3011 SCI_SRCDIR="$srcdir"
3012 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3014 SCILAB_VERSION_MAJOR=6
3015 SCILAB_VERSION_MINOR=0
3016 SCILAB_VERSION_MAINTENANCE=0
3022 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3025 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3028 #shared library versioning
3029 #GENERIC_LIBRARY_VERSION=1:2:0
3033 # current:revision:age
3035 # | | +- increment if interfaces have been added
3036 # | | set to zero if interfaces have been removed
3038 # | +- increment if source code has changed
3039 # | set to zero if current is incremented
3040 # +- increment if interfaces have been added, removed or changed
3042 # Check if we have a space in the path to the source tree
3043 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3044 if test "$SPACE_IN_PATH" = "0"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3046 $as_echo "$as_me: WARNING: =====================================" >&2;}
3047 { $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
3048 $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;}
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3050 $as_echo "$as_me: WARNING: =====================================" >&2;}
3055 for ac_dir in config "$srcdir"/config; do
3056 if test -f "$ac_dir/install-sh"; then
3058 ac_install_sh="$ac_aux_dir/install-sh -c"
3060 elif test -f "$ac_dir/install.sh"; then
3062 ac_install_sh="$ac_aux_dir/install.sh -c"
3064 elif test -f "$ac_dir/shtool"; then
3066 ac_install_sh="$ac_aux_dir/shtool install -c"
3070 if test -z "$ac_aux_dir"; then
3071 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3074 # These three variables are undocumented and unsupported,
3075 # and are intended to be withdrawn in a future Autoconf release.
3076 # They can cause serious problems if a builder's source tree is in a directory
3077 # whose full name contains unusual characters.
3078 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3079 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3080 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3083 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3090 if test x"${install_sh}" != xset; then
3093 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3095 install_sh="\${SHELL} $am_aux_dir/install-sh"
3099 # Installed binaries are usually stripped using `strip' when the user
3100 # run `make install-strip'. However `strip' might not be the right
3101 # tool to use in cross-compilation environments, therefore Automake
3102 # will honor the `STRIP' environment variable to overrule this program.
3103 if test "$cross_compiling" != no; then
3104 if test -n "$ac_tool_prefix"; then
3105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}strip; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_STRIP+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if test -n "$STRIP"; then
3113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 STRIP=$ac_cv_prog_STRIP
3133 if test -n "$STRIP"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3135 $as_echo "$STRIP" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3143 if test -z "$ac_cv_prog_STRIP"; then
3145 # Extract the first word of "strip", so it can be a program name with args.
3146 set dummy strip; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$ac_ct_STRIP"; then
3153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3162 ac_cv_prog_ac_ct_STRIP="strip"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3173 if test -n "$ac_ct_STRIP"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3175 $as_echo "$ac_ct_STRIP" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3181 if test "x$ac_ct_STRIP" = x; then
3184 case $cross_compiling:$ac_tool_warned in
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3188 ac_tool_warned=yes ;;
3193 STRIP="$ac_cv_prog_STRIP"
3197 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3200 $as_echo_n "checking whether ln -s works... " >&6; }
3202 if test "$LN_S" = "ln -s"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3204 $as_echo "yes" >&6; }
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3207 $as_echo "no, using $LN_S" >&6; }
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 if test -n "$CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 $as_echo "$CC" >&6; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3255 if test -z "$ac_cv_prog_CC"; then
3257 # Extract the first word of "gcc", so it can be a program name with args.
3258 set dummy gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3264 if test -n "$ac_ct_CC"; then
3265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_ac_ct_CC="gcc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3285 if test -n "$ac_ct_CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3287 $as_echo "$ac_ct_CC" >&6; }
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3293 if test "x$ac_ct_CC" = x; then
3296 case $cross_compiling:$ac_tool_warned in
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3300 ac_tool_warned=yes ;;
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3311 set dummy ${ac_tool_prefix}cc; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_CC="${ac_tool_prefix}cc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3349 if test -z "$CC"; then
3350 # Extract the first word of "cc", so it can be a program name with args.
3351 set dummy cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3369 ac_prog_rejected=yes
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 if test $ac_prog_rejected = yes; then
3381 # We found a bogon in the path, so make sure we never use it.
3382 set dummy $ac_cv_prog_CC
3384 if test $# != 0; then
3385 # We chose a different compiler from the bogus one.
3386 # However, it has the same basename, so the bogon will be chosen
3387 # first if we set CC to just the basename; use the full file name.
3389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3405 if test -z "$CC"; then
3406 if test -n "$ac_tool_prefix"; then
3407 for ac_prog in cl.exe
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412 $as_echo_n "checking for $ac_word... " >&6; }
3413 if ${ac_cv_prog_CC+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC="$CC" # Let the user override the test.
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$CC"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 $as_echo "$CC" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3446 test -n "$CC" && break
3449 if test -z "$CC"; then
3451 for ac_prog in cl.exe
3453 # Extract the first word of "$ac_prog", so it can be a program name with args.
3454 set dummy $ac_prog; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3458 $as_echo_n "(cached) " >&6
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="$ac_prog"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3490 test -n "$ac_ct_CC" && break
3493 if test "x$ac_ct_CC" = x; then
3496 case $cross_compiling:$ac_tool_warned in
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3500 ac_tool_warned=yes ;;
3509 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details" "$LINENO" 5; }
3514 # Provide some information about the compiler.
3515 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 for ac_option in --version -v -V -qversion; do
3519 { { ac_try="$ac_compiler $ac_option >&5"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3528 if test -s conftest.err; then
3530 ... rest of stderr output deleted ...
3531 10q' conftest.err >conftest.er1
3532 cat conftest.er1 >&5
3534 rm -f conftest.er1 conftest.err
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 ac_clean_files_save=$ac_clean_files
3551 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3552 # Try to create an executable without -o first, disregard a.out.
3553 # It will help us diagnose broken compilers, and finding out an intuition
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3556 $as_echo_n "checking whether the C compiler works... " >&6; }
3557 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3559 # The possible output files:
3560 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563 for ac_file in $ac_files
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3572 if { { ac_try="$ac_link_default"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_link_default") 2>&5
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }; then :
3583 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3584 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3585 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3586 # so that the user can short-circuit this test for compilers unknown to
3588 for ac_file in $ac_files ''
3590 test -f "$ac_file" || continue
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3595 # We found the default executable, but exeext='' is most
3599 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3601 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3603 # We set ac_cv_exeext here because the later test for it is not
3604 # safe: cross compilers may not add the suffix if given an `-o'
3605 # argument, so we may need to know it at that point already.
3606 # Even if this section looks crufty: it has the advantage of
3613 test "$ac_cv_exeext" = no && ac_cv_exeext=
3618 if test -z "$ac_file"; then :
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error 77 "C compiler cannot create executables
3627 See \`config.log' for more details" "$LINENO" 5; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3633 $as_echo_n "checking for C compiler default output file name... " >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3635 $as_echo "$ac_file" >&6; }
3636 ac_exeext=$ac_cv_exeext
3638 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3639 ac_clean_files=$ac_clean_files_save
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3641 $as_echo_n "checking for suffix of executables... " >&6; }
3642 if { { ac_try="$ac_link"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link") 2>&5
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }; then :
3653 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3654 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3655 # work properly (i.e., refer to `conftest.exe'), while it won't with
3657 for ac_file in conftest.exe conftest conftest.*; do
3658 test -f "$ac_file" || continue
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3670 See \`config.log' for more details" "$LINENO" 5; }
3672 rm -f conftest conftest$ac_cv_exeext
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3685 FILE *f = fopen ("conftest.out", "w");
3686 return ferror (f) || fclose (f) != 0;
3692 ac_clean_files="$ac_clean_files conftest.out"
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3696 $as_echo_n "checking whether we are cross compiling... " >&6; }
3697 if test "$cross_compiling" != yes; then
3698 { { ac_try="$ac_link"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_link") 2>&5
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }
3709 if { ac_try='./conftest$ac_cv_exeext'
3710 { { case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_try") 2>&5
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; }; then
3722 if test "$cross_compiling" = maybe; then
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $? "cannot run C compiled programs.
3728 If you meant to cross compile, use \`--host'.
3729 See \`config.log' for more details" "$LINENO" 5; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3734 $as_echo "$cross_compiling" >&6; }
3736 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3737 ac_clean_files=$ac_clean_files_save
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3739 $as_echo_n "checking for suffix of object files... " >&6; }
3740 if ${ac_cv_objext+:} false; then :
3741 $as_echo_n "(cached) " >&6
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3754 rm -f conftest.o conftest.obj
3755 if { { ac_try="$ac_compile"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_compile") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; then :
3766 for ac_file in conftest.o conftest.obj conftest.*; do
3767 test -f "$ac_file" || continue;
3769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3770 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3775 $as_echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "cannot compute suffix of object files: cannot compile
3781 See \`config.log' for more details" "$LINENO" 5; }
3783 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3786 $as_echo "$ac_cv_objext" >&6; }
3787 OBJEXT=$ac_cv_objext
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3790 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3791 if ${ac_cv_c_compiler_gnu+:} false; then :
3792 $as_echo_n "(cached) " >&6
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3808 if ac_fn_c_try_compile "$LINENO"; then :
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3818 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3819 if test $ac_compiler_gnu = yes; then
3824 ac_test_CFLAGS=${CFLAGS+set}
3825 ac_save_CFLAGS=$CFLAGS
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3827 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3828 if ${ac_cv_prog_cc_g+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 ac_save_c_werror_flag=$ac_c_werror_flag
3832 ac_c_werror_flag=yes
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 if ac_fn_c_try_compile "$LINENO"; then :
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3861 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_c_werror_flag=$ac_save_c_werror_flag
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3877 if ac_fn_c_try_compile "$LINENO"; then :
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_c_werror_flag=$ac_save_c_werror_flag
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3888 $as_echo "$ac_cv_prog_cc_g" >&6; }
3889 if test "$ac_test_CFLAGS" = set; then
3890 CFLAGS=$ac_save_CFLAGS
3891 elif test $ac_cv_prog_cc_g = yes; then
3892 if test "$GCC" = yes; then
3898 if test "$GCC" = yes; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3905 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3906 if ${ac_cv_prog_cc_c89+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 ac_cv_prog_cc_c89=no
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 #include <sys/types.h>
3916 #include <sys/stat.h>
3917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3918 struct buf { int x; };
3919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3920 static char *e (p, i)
3926 static char *f (char * (*g) (char **, int), char **p, ...)
3931 s = g (p, va_arg (v,int));
3936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3937 function prototypes and stuff, but not '\xHH' hex character constants.
3938 These don't provoke an error unfortunately, instead are silently treated
3939 as 'x'. The following induces an error, until -std is added to get
3940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3941 array size at least. It's necessary to write '\x00'==0 to get something
3942 that's true only with -std. */
3943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3946 inside strings and character constants. */
3948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3950 int test (int i, double x);
3951 struct s1 {int (*f) (int a);};
3952 struct s2 {int (*f) (double a);};
3953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3967 CC="$ac_save_CC $ac_arg"
3968 if ac_fn_c_try_compile "$LINENO"; then :
3969 ac_cv_prog_cc_c89=$ac_arg
3971 rm -f core conftest.err conftest.$ac_objext
3972 test "x$ac_cv_prog_cc_c89" != "xno" && break
3974 rm -f conftest.$ac_ext
3979 case "x$ac_cv_prog_cc_c89" in
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3982 $as_echo "none needed" >&6; } ;;
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3985 $as_echo "unsupported" >&6; } ;;
3987 CC="$CC $ac_cv_prog_cc_c89"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3989 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3991 if test "x$ac_cv_prog_cc_c89" != xno; then :
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 # Check whether --enable-largefile was given.
4004 if test "${enable_largefile+set}" = set; then :
4005 enableval=$enable_largefile;
4008 if test "$enable_largefile" != no; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4011 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4012 if ${ac_cv_sys_largefile_CC+:} false; then :
4013 $as_echo_n "(cached) " >&6
4015 ac_cv_sys_largefile_CC=no
4016 if test "$GCC" != yes; then
4019 # IRIX 6.2 and later do not support large files by default,
4020 # so use the C compiler's -n32 option if that helps.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4040 if ac_fn_c_try_compile "$LINENO"; then :
4043 rm -f core conftest.err conftest.$ac_objext
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_sys_largefile_CC=' -n32'; break
4048 rm -f core conftest.err conftest.$ac_objext
4052 rm -f conftest.$ac_ext
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4056 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4057 if test "$ac_cv_sys_largefile_CC" != no; then
4058 CC=$CC$ac_cv_sys_largefile_CC
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4062 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4063 if ${ac_cv_sys_file_offset_bits+:} false; then :
4064 $as_echo_n "(cached) " >&6
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4069 #include <sys/types.h>
4070 /* Check that off_t can represent 2**63 - 1 correctly.
4071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4072 since some C++ compilers masquerading as C compilers
4073 incorrectly reject 9223372036854775807. */
4074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4076 && LARGE_OFF_T % 2147483647 == 1)
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_sys_file_offset_bits=no; break
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #define _FILE_OFFSET_BITS 64
4093 #include <sys/types.h>
4094 /* Check that off_t can represent 2**63 - 1 correctly.
4095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4096 since some C++ compilers masquerading as C compilers
4097 incorrectly reject 9223372036854775807. */
4098 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4100 && LARGE_OFF_T % 2147483647 == 1)
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_cv_sys_file_offset_bits=64; break
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_cv_sys_file_offset_bits=unknown
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4119 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4120 case $ac_cv_sys_file_offset_bits in #(
4123 cat >>confdefs.h <<_ACEOF
4124 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4129 if test $ac_cv_sys_file_offset_bits = unknown; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4131 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4132 if ${ac_cv_sys_large_files+:} false; then :
4133 $as_echo_n "(cached) " >&6
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <sys/types.h>
4139 /* Check that off_t can represent 2**63 - 1 correctly.
4140 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141 since some C++ compilers masquerading as C compilers
4142 incorrectly reject 9223372036854775807. */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145 && LARGE_OFF_T % 2147483647 == 1)
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_sys_large_files=no; break
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #define _LARGE_FILES 1
4162 #include <sys/types.h>
4163 /* Check that off_t can represent 2**63 - 1 correctly.
4164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4165 since some C++ compilers masquerading as C compilers
4166 incorrectly reject 9223372036854775807. */
4167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4169 && LARGE_OFF_T % 2147483647 == 1)
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_sys_large_files=1; break
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 ac_cv_sys_large_files=unknown
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4188 $as_echo "$ac_cv_sys_large_files" >&6; }
4189 case $ac_cv_sys_large_files in #(
4192 cat >>confdefs.h <<_ACEOF
4193 #define _LARGE_FILES $ac_cv_sys_large_files
4201 echo "ac: $ac_cv_sys_file_offset_bits"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4203 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4204 if ${largefile64_source+:} false; then :
4205 $as_echo_n "(cached) " >&6
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4211 #include <sys/types.h>
4212 #include <sys/stat.h>
4219 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4225 if ac_fn_c_try_compile "$LINENO"; then :
4227 largefile64_source="no"
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4234 #define _LARGEFILE64_SOURCE
4235 #include <sys/types.h>
4236 #include <sys/stat.h>
4243 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4249 if ac_fn_c_try_compile "$LINENO"; then :
4251 largefile64_source="yes"
4255 largefile64_source="unknown"
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_source" >&5
4265 $as_echo "$largefile64_source" >&6; }
4267 if test "x$largefile64_source" = "xyes"; then
4268 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4269 enable_largefile="yes"
4270 elif test "x$largefile64_source" = "xunknown"; then
4272 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4276 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4277 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4278 enable_largefile="yes"
4281 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4282 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4283 enable_largefile="yes"
4288 # In order to be able to change the scilab directory
4289 # See http://wiki.debian.org/RpathIssue
4290 # Find a good install program. We prefer a C program (faster),
4291 # so one script is as good as another. But avoid the broken or
4292 # incompatible versions:
4293 # SysV /etc/install, /usr/sbin/install
4294 # SunOS /usr/etc/install
4295 # IRIX /sbin/install
4297 # AmigaOS /C/install, which installs bootblocks on floppy discs
4298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4301 # OS/2's system install, which has a completely different semantic
4302 # ./install, which can be erroneously created by make from ./install.sh.
4303 # Reject install programs that cannot install multiple files.
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4305 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4306 if test -z "$INSTALL"; then
4307 if ${ac_cv_path_install+:} false; then :
4308 $as_echo_n "(cached) " >&6
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 # Account for people who put trailing slashes in PATH elements.
4316 case $as_dir/ in #((
4317 ./ | .// | /[cC]/* | \
4318 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4319 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4322 # OSF1 and SCO ODT 3.0 have their own names for install.
4323 # Don't use installbsd from OSF since it installs stuff as root
4325 for ac_prog in ginstall scoinst install; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4328 if test $ac_prog = install &&
4329 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4330 # AIX install. It has an incompatible calling convention.
4332 elif test $ac_prog = install &&
4333 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4334 # program-specific install script used by HP pwplus--don't use.
4337 rm -rf conftest.one conftest.two conftest.dir
4338 echo one > conftest.one
4339 echo two > conftest.two
4341 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4342 test -s conftest.one && test -s conftest.two &&
4343 test -s conftest.dir/conftest.one &&
4344 test -s conftest.dir/conftest.two
4346 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4359 rm -rf conftest.one conftest.two conftest.dir
4362 if test "${ac_cv_path_install+set}" = set; then
4363 INSTALL=$ac_cv_path_install
4365 # As a last resort, use the slow shell script. Don't cache a
4366 # value for INSTALL within a source directory, because that will
4367 # break other packages using the cache if that directory is
4368 # removed, or if the value is a relative name.
4369 INSTALL=$ac_install_sh
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4373 $as_echo "$INSTALL" >&6; }
4375 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4376 # It thinks the first close brace ends the variable substitution.
4377 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4379 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4381 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4383 # Make sure we can run config.sub.
4384 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4385 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4388 $as_echo_n "checking build system type... " >&6; }
4389 if ${ac_cv_build+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 ac_build_alias=$build_alias
4393 test "x$ac_build_alias" = x &&
4394 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4395 test "x$ac_build_alias" = x &&
4396 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4397 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4402 $as_echo "$ac_cv_build" >&6; }
4403 case $ac_cv_build in
4405 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4408 ac_save_IFS=$IFS; IFS='-'
4414 # Remember, the first character of IFS is used to create $*,
4415 # except with old shells:
4418 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4422 $as_echo_n "checking host system type... " >&6; }
4423 if ${ac_cv_host+:} false; then :
4424 $as_echo_n "(cached) " >&6
4426 if test "x$host_alias" = x; then
4427 ac_cv_host=$ac_cv_build
4429 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4430 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4435 $as_echo "$ac_cv_host" >&6; }
4438 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4441 ac_save_IFS=$IFS; IFS='-'
4447 # Remember, the first character of IFS is used to create $*,
4448 # except with old shells:
4451 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4455 # Check whether --with-gnu-ld was given.
4456 if test "${with_gnu_ld+set}" = set; then :
4457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4462 # Prepare PATH_SEPARATOR.
4463 # The user is always right.
4464 if test "${PATH_SEPARATOR+set}" != set; then
4465 echo "#! /bin/sh" >conf$$.sh
4466 echo "exit 0" >>conf$$.sh
4468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4476 if test "$GCC" = yes; then
4477 # Check if gcc -print-prog-name=ld gives a path.
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4479 $as_echo_n "checking for ld used by GCC... " >&6; }
4482 # gcc leaves a trailing carriage return which upsets mingw
4483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4488 # Accept absolute paths.
4489 [\\/]* | [A-Za-z]:[\\/]*)
4490 re_direlt='/[^/][^/]*/\.\./'
4491 # Canonicalize the path of ld
4492 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4493 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4494 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4496 test -z "$LD" && LD="$ac_prog"
4499 # If it fails, then pretend we aren't using GCC.
4503 # If it is relative, then search for the first ld in PATH.
4507 elif test "$with_gnu_ld" = yes; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4509 $as_echo_n "checking for GNU ld... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4512 $as_echo_n "checking for non-GNU ld... " >&6; }
4514 if ${acl_cv_path_LD+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 if test -z "$LD"; then
4518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4519 for ac_dir in $PATH; do
4520 test -z "$ac_dir" && ac_dir=.
4521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4522 acl_cv_path_LD="$ac_dir/$ac_prog"
4523 # Check to see if the program is GNU ld. I'd rather use --version,
4524 # but apparently some GNU ld's only accept -v.
4525 # Break only if it was the GNU/non-GNU ld that we prefer.
4526 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4527 *GNU* | *'with BFD'*)
4528 test "$with_gnu_ld" != no && break ;;
4530 test "$with_gnu_ld" != yes && break ;;
4536 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4540 LD="$acl_cv_path_LD"
4541 if test -n "$LD"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4543 $as_echo "$LD" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4551 if ${acl_cv_prog_gnu_ld+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4555 case `$LD -v 2>&1 </dev/null` in
4556 *GNU* | *'with BFD'*)
4557 acl_cv_prog_gnu_ld=yes ;;
4559 acl_cv_prog_gnu_ld=no ;;
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4563 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4564 with_gnu_ld=$acl_cv_prog_gnu_ld
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4569 $as_echo_n "checking for shared library path variable... " >&6; }
4570 if ${acl_cv_libpath+:} false; then :
4571 $as_echo_n "(cached) " >&6
4575 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4578 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4582 $as_echo "$acl_cv_libpath" >&6; }
4583 shlibpath_var="$acl_cv_shlibpath_var"
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4587 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4588 # Check whether --enable-relocatable was given.
4589 if test "${enable_relocatable+set}" = set; then :
4590 enableval=$enable_relocatable; if test "$enableval" != no; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4602 $as_echo "$RELOCATABLE" >&6; }
4606 if test "X$prefix" = "XNONE"; then
4607 reloc_final_prefix="$ac_default_prefix"
4609 reloc_final_prefix="$prefix"
4612 cat >>confdefs.h <<_ACEOF
4613 #define INSTALLPREFIX "${reloc_final_prefix}"
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4624 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4625 # On Suns, sometimes $CPP names a directory.
4626 if test -n "$CPP" && test -d "$CPP"; then
4629 if test -z "$CPP"; then
4630 if ${ac_cv_prog_CPP+:} false; then :
4631 $as_echo_n "(cached) " >&6
4633 # Double quotes because CPP needs to be expanded
4634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4637 for ac_c_preproc_warn_flag in '' yes
4639 # Use a header file that comes with gcc, so configuring glibc
4640 # with a fresh cross-compiler works.
4641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4642 # <limits.h> exists even on freestanding compilers.
4643 # On the NeXT, cc -E runs the code through the compiler's parser,
4644 # not just through cpp. "Syntax error" is here to catch this case.
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646 /* end confdefs.h. */
4648 # include <limits.h>
4650 # include <assert.h>
4654 if ac_fn_c_try_cpp "$LINENO"; then :
4657 # Broken: fails on valid input.
4660 rm -f conftest.err conftest.i conftest.$ac_ext
4662 # OK, works on sane cases. Now check whether nonexistent headers
4663 # can be detected and how.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <ac_nonexistent.h>
4668 if ac_fn_c_try_cpp "$LINENO"; then :
4669 # Broken: success on invalid input.
4672 # Passes both tests.
4676 rm -f conftest.err conftest.i conftest.$ac_ext
4679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4680 rm -f conftest.i conftest.err conftest.$ac_ext
4681 if $ac_preproc_ok; then :
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4694 $as_echo "$CPP" >&6; }
4696 for ac_c_preproc_warn_flag in '' yes
4698 # Use a header file that comes with gcc, so configuring glibc
4699 # with a fresh cross-compiler works.
4700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4701 # <limits.h> exists even on freestanding compilers.
4702 # On the NeXT, cc -E runs the code through the compiler's parser,
4703 # not just through cpp. "Syntax error" is here to catch this case.
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4707 # include <limits.h>
4709 # include <assert.h>
4713 if ac_fn_c_try_cpp "$LINENO"; then :
4716 # Broken: fails on valid input.
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4721 # OK, works on sane cases. Now check whether nonexistent headers
4722 # can be detected and how.
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 #include <ac_nonexistent.h>
4727 if ac_fn_c_try_cpp "$LINENO"; then :
4728 # Broken: success on invalid input.
4731 # Passes both tests.
4735 rm -f conftest.err conftest.i conftest.$ac_ext
4738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4739 rm -f conftest.i conftest.err conftest.$ac_ext
4740 if $ac_preproc_ok; then :
4743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4746 See \`config.log' for more details" "$LINENO" 5; }
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4757 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4758 if ${ac_cv_path_GREP+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 if test -z "$GREP"; then
4762 ac_path_GREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in grep ggrep; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4772 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4773 # Check for GNU ac_path_GREP and select it if it is found.
4774 # Check for GNU $ac_path_GREP
4775 case `"$ac_path_GREP" --version 2>&1` in
4777 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4780 $as_echo_n 0123456789 >"conftest.in"
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo 'GREP' >> "conftest.nl"
4787 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_GREP="$ac_path_GREP"
4793 ac_path_GREP_max=$ac_count
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4801 $ac_path_GREP_found && break 3
4806 if test -z "$ac_cv_path_GREP"; then
4807 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4810 ac_cv_path_GREP=$GREP
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4815 $as_echo "$ac_cv_path_GREP" >&6; }
4816 GREP="$ac_cv_path_GREP"
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4820 $as_echo_n "checking for egrep... " >&6; }
4821 if ${ac_cv_path_EGREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4825 then ac_cv_path_EGREP="$GREP -E"
4827 if test -z "$EGREP"; then
4828 ac_path_EGREP_found=false
4829 # Loop through the user's path and test for each of PROGNAME-LIST
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4834 test -z "$as_dir" && as_dir=.
4835 for ac_prog in egrep; do
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4838 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4839 # Check for GNU ac_path_EGREP and select it if it is found.
4840 # Check for GNU $ac_path_EGREP
4841 case `"$ac_path_EGREP" --version 2>&1` in
4843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4846 $as_echo_n 0123456789 >"conftest.in"
4849 cat "conftest.in" "conftest.in" >"conftest.tmp"
4850 mv "conftest.tmp" "conftest.in"
4851 cp "conftest.in" "conftest.nl"
4852 $as_echo 'EGREP' >> "conftest.nl"
4853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855 as_fn_arith $ac_count + 1 && ac_count=$as_val
4856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4857 # Best one so far, save it but keep looking for a better one
4858 ac_cv_path_EGREP="$ac_path_EGREP"
4859 ac_path_EGREP_max=$ac_count
4861 # 10*(2^10) chars as input seems more than enough
4862 test $ac_count -gt 10 && break
4864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867 $ac_path_EGREP_found && break 3
4872 if test -z "$ac_cv_path_EGREP"; then
4873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4876 ac_cv_path_EGREP=$EGREP
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4882 $as_echo "$ac_cv_path_EGREP" >&6; }
4883 EGREP="$ac_cv_path_EGREP"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4887 $as_echo_n "checking for ANSI C header files... " >&6; }
4888 if ${ac_cv_header_stdc+:} false; then :
4889 $as_echo_n "(cached) " >&6
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_header_stdc=yes
4909 ac_cv_header_stdc=no
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 if test $ac_cv_header_stdc = yes; then
4914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4921 $EGREP "memchr" >/dev/null 2>&1; then :
4924 ac_cv_header_stdc=no
4930 if test $ac_cv_header_stdc = yes; then
4931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "free" >/dev/null 2>&1; then :
4941 ac_cv_header_stdc=no
4947 if test $ac_cv_header_stdc = yes; then
4948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4949 if test "$cross_compiling" = yes; then :
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4956 #if ((' ' & 0x0FF) == 0x020)
4957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4960 # define ISLOWER(c) \
4961 (('a' <= (c) && (c) <= 'i') \
4962 || ('j' <= (c) && (c) <= 'r') \
4963 || ('s' <= (c) && (c) <= 'z'))
4964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4972 for (i = 0; i < 256; i++)
4973 if (XOR (islower (i), ISLOWER (i))
4974 || toupper (i) != TOUPPER (i))
4979 if ac_fn_c_try_run "$LINENO"; then :
4982 ac_cv_header_stdc=no
4984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4985 conftest.$ac_objext conftest.beam conftest.$ac_ext
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4991 $as_echo "$ac_cv_header_stdc" >&6; }
4992 if test $ac_cv_header_stdc = yes; then
4994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4999 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5000 inttypes.h stdint.h unistd.h
5002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5003 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5005 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5006 cat >>confdefs.h <<_ACEOF
5007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5022 use_elf_origin_trick=no
5023 if test $RELOCATABLE = yes; then
5024 # --enable-relocatable implies --disable-rpath
5027 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5029 for ac_header in unistd.h mach-o/dyld.h
5031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5032 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5034 cat >>confdefs.h <<_ACEOF
5035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5042 for ac_func in _NSGetExecutablePath
5044 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5045 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5046 cat >>confdefs.h <<_ACEOF
5047 #define HAVE__NSGETEXECUTABLEPATH 1
5054 mingw*) is_noop=yes ;;
5055 linux*) use_elf_origin_trick=yes ;;
5057 if test $is_noop = yes; then
5058 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5060 if test $use_elf_origin_trick = yes; then
5061 case "$ac_aux_dir" in
5062 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5063 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5065 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5067 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\""
5068 case "$ac_aux_dir" in
5069 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5070 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5078 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5079 RELOCATABLE_VIA_LD_TRUE=
5080 RELOCATABLE_VIA_LD_FALSE='#'
5082 RELOCATABLE_VIA_LD_TRUE='#'
5083 RELOCATABLE_VIA_LD_FALSE=
5089 if test $RELOCATABLE = yes; then
5090 case " $LIBOBJS " in
5091 *" relocatable.$ac_objext "* ) ;;
5092 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5100 if test "X$prefix" = "XNONE"; then
5101 reloc_final_prefix="$ac_default_prefix"
5103 reloc_final_prefix="$prefix"
5106 cat >>confdefs.h <<_ACEOF
5107 #define INSTALLPREFIX "${reloc_final_prefix}"
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5114 $as_echo_n "checking for shared library run path origin... " >&6; }
5115 if ${acl_cv_rpath+:} false; then :
5116 $as_echo_n "(cached) " >&6
5119 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5120 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5127 $as_echo "$acl_cv_rpath" >&6; }
5129 acl_libext="$acl_cv_libext"
5130 acl_shlibext="$acl_cv_shlibext"
5131 acl_libname_spec="$acl_cv_libname_spec"
5132 acl_library_names_spec="$acl_cv_library_names_spec"
5133 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5134 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5135 acl_hardcode_direct="$acl_cv_hardcode_direct"
5136 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5137 # Check whether --enable-rpath was given.
5138 if test "${enable_rpath+set}" = set; then :
5139 enableval=$enable_rpath; :
5146 # If configure detect that timestamp changed,
5147 # it tries to rebuild configure & makefile which can be a painmaker
5148 # if the version is different
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5151 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5152 # Check whether --enable-maintainer-mode was given.
5153 if test "${enable_maintainer_mode+set}" = set; then :
5154 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5156 USE_MAINTAINER_MODE=no
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5160 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5161 if test $USE_MAINTAINER_MODE = yes; then
5162 MAINTAINER_MODE_TRUE=
5163 MAINTAINER_MODE_FALSE='#'
5165 MAINTAINER_MODE_TRUE='#'
5166 MAINTAINER_MODE_FALSE=
5169 MAINT=$MAINTAINER_MODE_TRUE
5173 am__api_version='1.11'
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5176 $as_echo_n "checking whether build environment is sane... " >&6; }
5179 echo timestamp > conftest.file
5180 # Reject unsafe characters in $srcdir or the absolute working directory
5181 # name. Accept space and tab only in the latter.
5185 *[\\\"\#\$\&\'\`$am_lf]*)
5186 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5189 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5190 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5193 # Do `set' in a subshell so we don't clobber the current shell's
5194 # arguments. Must try -L first in case configure is actually a
5195 # symlink; some systems play weird games with the mod time of symlinks
5196 # (eg FreeBSD returns the mod time of the symlink's containing
5199 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5200 if test "$*" = "X"; then
5202 set X `ls -t "$srcdir/configure" conftest.file`
5205 if test "$*" != "X $srcdir/configure conftest.file" \
5206 && test "$*" != "X conftest.file $srcdir/configure"; then
5208 # If neither matched, then we have a broken ls. This can happen
5209 # if, for instance, CONFIG_SHELL is bash and it inherits a
5210 # broken ls alias from the environment. This has actually
5211 # happened. Such a system could not be considered "sane".
5212 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5213 alias in your environment" "$LINENO" 5
5216 test "$2" = conftest.file
5222 as_fn_error $? "newly created file is older than distributed files!
5223 Check your system clock" "$LINENO" 5
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5227 test "$program_prefix" != NONE &&
5228 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5229 # Use a double $ so make ignores it.
5230 test "$program_suffix" != NONE &&
5231 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5232 # Double any \ or $.
5233 # By default was `s,x,x', remove it if useless.
5234 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5235 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5237 if test x"${MISSING+set}" != xset; then
5240 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5242 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5245 # Use eval to expand $SHELL
5246 if eval "$MISSING --run true"; then
5247 am_missing_run="$MISSING --run "
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5251 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5255 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5256 if test -z "$MKDIR_P"; then
5257 if ${ac_cv_path_mkdir+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5264 test -z "$as_dir" && as_dir=.
5265 for ac_prog in mkdir gmkdir; do
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5268 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5269 'mkdir (GNU coreutils) '* | \
5270 'mkdir (coreutils) '* | \
5271 'mkdir (fileutils) '4.1*)
5272 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5282 test -d ./--version && rmdir ./--version
5283 if test "${ac_cv_path_mkdir+set}" = set; then
5284 MKDIR_P="$ac_cv_path_mkdir -p"
5286 # As a last resort, use the slow shell script. Don't cache a
5287 # value for MKDIR_P within a source directory, because that will
5288 # break other packages using the cache if that directory is
5289 # removed, or if the value is a relative name.
5290 MKDIR_P="$ac_install_sh -d"
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5294 $as_echo "$MKDIR_P" >&6; }
5298 [\\/$]* | ?:[\\/]*) ;;
5299 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5302 for ac_prog in gawk mawk nawk awk
5304 # Extract the first word of "$ac_prog", so it can be a program name with args.
5305 set dummy $ac_prog; ac_word=$2
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5307 $as_echo_n "checking for $ac_word... " >&6; }
5308 if ${ac_cv_prog_AWK+:} false; then :
5309 $as_echo_n "(cached) " >&6
5311 if test -n "$AWK"; then
5312 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321 ac_cv_prog_AWK="$ac_prog"
5322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 if test -n "$AWK"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5334 $as_echo "$AWK" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5341 test -n "$AWK" && break
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5345 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5347 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5348 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5349 $as_echo_n "(cached) " >&6
5351 cat >conftest.make <<\_ACEOF
5354 @echo '@@@%%%=$(MAKE)=@@@%%%'
5356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5359 eval ac_cv_prog_make_${ac_make}_set=yes;;
5361 eval ac_cv_prog_make_${ac_make}_set=no;;
5365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5367 $as_echo "yes" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5372 SET_MAKE="MAKE=${MAKE-make}"
5375 rm -rf .tst 2>/dev/null
5376 mkdir .tst 2>/dev/null
5377 if test -d .tst; then
5382 rmdir .tst 2>/dev/null
5384 DEPDIR="${am__leading_dot}deps"
5386 ac_config_commands="$ac_config_commands depfiles"
5389 am_make=${MAKE-make}
5390 cat > confinc << 'END'
5392 @echo this is the am__doit target
5395 # If we don't find an include directive, just comment out the code.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5397 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5401 # First try GNU make style include.
5402 echo "include confinc" > confmf
5403 # Ignore all kinds of additional output from `make'.
5404 case `$am_make -s -f confmf 2> /dev/null` in #(
5405 *the\ am__doit\ target*)
5411 # Now try BSD make style include.
5412 if test "$am__include" = "#"; then
5413 echo '.include "confinc"' > confmf
5414 case `$am_make -s -f confmf 2> /dev/null` in #(
5415 *the\ am__doit\ target*)
5416 am__include=.include
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5425 $as_echo "$_am_result" >&6; }
5426 rm -f confinc confmf
5428 # Check whether --enable-dependency-tracking was given.
5429 if test "${enable_dependency_tracking+set}" = set; then :
5430 enableval=$enable_dependency_tracking;
5433 if test "x$enable_dependency_tracking" != xno; then
5434 am_depcomp="$ac_aux_dir/depcomp"
5437 if test "x$enable_dependency_tracking" != xno; then
5446 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5447 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5448 # is not polluted with repeated "-I."
5449 am__isrc=' -I$(srcdir)'
5450 # test to see if srcdir already configured
5451 if test -f $srcdir/config.status; then
5452 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5456 # test whether we have cygpath
5457 if test -z "$CYGPATH_W"; then
5458 if (cygpath --version) >/dev/null 2>/dev/null; then
5459 CYGPATH_W='cygpath -w'
5466 # Define the identity of the package.
5471 cat >>confdefs.h <<_ACEOF
5472 #define PACKAGE "$PACKAGE"
5476 cat >>confdefs.h <<_ACEOF
5477 #define VERSION "$VERSION"
5480 # Some tools Automake needs.
5482 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5485 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5488 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5491 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5494 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5496 # We need awk for the "check" target. The system "awk" is bad on
5498 # Always define AMTAR for backward compatibility.
5500 AMTAR=${AMTAR-"${am_missing_run}tar"}
5502 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5507 depcc="$CC" am_compiler_list=
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5510 $as_echo_n "checking dependency style of $depcc... " >&6; }
5511 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5512 $as_echo_n "(cached) " >&6
5514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5515 # We make a subdir and do the tests there. Otherwise we can end up
5516 # making bogus files that we don't know about and never remove. For
5517 # instance it was reported that on HP-UX the gcc test will end up
5518 # making a dummy file named `D' -- because `-MD' means `put the output
5521 # Copy depcomp to subdir because otherwise we won't find it if we're
5522 # using a relative directory.
5523 cp "$am_depcomp" conftest.dir
5525 # We will build objects and dependencies in a subdirectory because
5526 # it helps to detect inapplicable dependency modes. For instance
5527 # both Tru64's cc and ICC support -MD to output dependencies as a
5528 # side effect of compilation, but ICC will put the dependencies in
5529 # the current directory while Tru64 will put them in the object
5533 am_cv_CC_dependencies_compiler_type=none
5534 if test "$am_compiler_list" = ""; then
5535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5538 case " $depcc " in #(
5539 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5542 for depmode in $am_compiler_list; do
5543 # Setup a source with many dependencies, because some compilers
5544 # like to wrap large dependency lists on column 80 (with \), and
5545 # we should not choose a depcomp mode which is confused by this.
5547 # We need to recreate these files for each test, as the compiler may
5548 # overwrite some of them when testing with obscure command lines.
5549 # This happens at least with the AIX C compiler.
5551 for i in 1 2 3 4 5 6; do
5552 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5553 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5554 # Solaris 8's {/usr,}/bin/sh.
5555 touch sub/conftst$i.h
5557 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5559 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5560 # mode. It turns out that the SunPro C++ compiler does not properly
5561 # handle `-M -o', and we need to detect this. Also, some Intel
5562 # versions had trouble with output in subdirs
5563 am__obj=sub/conftest.${OBJEXT-o}
5564 am__minus_obj="-o $am__obj"
5567 # This depmode causes a compiler race in universal mode.
5568 test "$am__universal" = false || continue
5571 # after this tag, mechanisms are not by side-effect, so they'll
5572 # only be used when explicitly requested
5573 if test "x$enable_dependency_tracking" = xyes; then
5579 msvisualcpp | msvcmsys)
5580 # This compiler won't grok `-c -o', but also, the minuso test has
5581 # not run yet. These depmodes are late enough in the game, and
5582 # so weak that their functioning should not be impacted.
5583 am__obj=conftest.${OBJEXT-o}
5588 if depmode=$depmode \
5589 source=sub/conftest.c object=$am__obj \
5590 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5591 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5592 >/dev/null 2>conftest.err &&
5593 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5594 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5595 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5596 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5597 # icc doesn't choke on unknown options, it will just issue warnings
5598 # or remarks (even with -Werror). So we grep stderr for any message
5599 # that says an option was ignored or not supported.
5600 # When given -MP, icc 7.0 and 7.1 complain thusly:
5601 # icc: Command line warning: ignoring option '-M'; no argument required
5602 # The diagnosis changed in icc 8.0:
5603 # icc: Command line remark: option '-MP' not supported
5604 if (grep 'ignoring option' conftest.err ||
5605 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5606 am_cv_CC_dependencies_compiler_type=$depmode
5615 am_cv_CC_dependencies_compiler_type=none
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5620 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5621 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5624 test "x$enable_dependency_tracking" != xno \
5625 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5627 am__fastdepCC_FALSE='#'
5629 am__fastdepCC_TRUE='#'
5630 am__fastdepCC_FALSE=
5634 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5638 #################################
5639 ## all the --with-* argument help
5640 #################################
5643 # Check whether --enable-debug was given.
5644 if test "${enable_debug+set}" = set; then :
5645 enableval=$enable_debug;
5649 # Check whether --enable-debug-C was given.
5650 if test "${enable_debug_C+set}" = set; then :
5651 enableval=$enable_debug_C;
5655 # Check whether --enable-debug-CXX was given.
5656 if test "${enable_debug_CXX+set}" = set; then :
5657 enableval=$enable_debug_CXX;
5661 # Check whether --enable-debug-java was given.
5662 if test "${enable_debug_java+set}" = set; then :
5663 enableval=$enable_debug_java;
5667 # Check whether --enable-debug-fortran was given.
5668 if test "${enable_debug_fortran+set}" = set; then :
5669 enableval=$enable_debug_fortran;
5673 # Check whether --enable-debug-linker was given.
5674 if test "${enable_debug_linker+set}" = set; then :
5675 enableval=$enable_debug_linker;
5679 # Check whether --enable-code-coverage was given.
5680 if test "${enable_code_coverage+set}" = set; then :
5681 enableval=$enable_code_coverage;
5685 # Check whether --enable-stop-on-warning was given.
5686 if test "${enable_stop_on_warning+set}" = set; then :
5687 enableval=$enable_stop_on_warning;
5692 # Check whether --with-gcc was given.
5693 if test "${with_gcc+set}" = set; then :
5699 # Check whether --with-gfortran was given.
5700 if test "${with_gfortran+set}" = set; then :
5701 withval=$with_gfortran;
5706 # Check whether --with-intelcompilers was given.
5707 if test "${with_intelcompilers+set}" = set; then :
5708 withval=$with_intelcompilers;
5713 # Check whether --with-tk was given.
5714 if test "${with_tk+set}" = set; then :
5720 # Check whether --with-javasci was given.
5721 if test "${with_javasci+set}" = set; then :
5722 withval=$with_javasci;
5726 # Check whether --enable-compilation-tests was given.
5727 if test "${enable_compilation_tests+set}" = set; then :
5728 enableval=$enable_compilation_tests;
5733 # Check whether --with-gui was given.
5734 if test "${with_gui+set}" = set; then :
5739 # Check whether --enable-build-swig was given.
5740 if test "${enable_build_swig+set}" = set; then :
5741 enableval=$enable_build_swig;
5745 # Check whether --enable-build-giws was given.
5746 if test "${enable_build_giws+set}" = set; then :
5747 enableval=$enable_build_giws;
5751 # Check whether --enable-build-parser was given.
5752 if test "${enable_build_parser+set}" = set; then :
5753 enableval=$enable_build_parser;
5758 ################################################
5759 ########## compilator & misc programs detection
5760 ################################################
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5768 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5769 # On Suns, sometimes $CPP names a directory.
5770 if test -n "$CPP" && test -d "$CPP"; then
5773 if test -z "$CPP"; then
5774 if ${ac_cv_prog_CPP+:} false; then :
5775 $as_echo_n "(cached) " >&6
5777 # Double quotes because CPP needs to be expanded
5778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5781 for ac_c_preproc_warn_flag in '' yes
5783 # Use a header file that comes with gcc, so configuring glibc
5784 # with a fresh cross-compiler works.
5785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786 # <limits.h> exists even on freestanding compilers.
5787 # On the NeXT, cc -E runs the code through the compiler's parser,
5788 # not just through cpp. "Syntax error" is here to catch this case.
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5792 # include <limits.h>
5794 # include <assert.h>
5798 if ac_fn_c_try_cpp "$LINENO"; then :
5801 # Broken: fails on valid input.
5804 rm -f conftest.err conftest.i conftest.$ac_ext
5806 # OK, works on sane cases. Now check whether nonexistent headers
5807 # can be detected and how.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #include <ac_nonexistent.h>
5812 if ac_fn_c_try_cpp "$LINENO"; then :
5813 # Broken: success on invalid input.
5816 # Passes both tests.
5820 rm -f conftest.err conftest.i conftest.$ac_ext
5823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5824 rm -f conftest.i conftest.err conftest.$ac_ext
5825 if $ac_preproc_ok; then :
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5838 $as_echo "$CPP" >&6; }
5840 for ac_c_preproc_warn_flag in '' yes
5842 # Use a header file that comes with gcc, so configuring glibc
5843 # with a fresh cross-compiler works.
5844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845 # <limits.h> exists even on freestanding compilers.
5846 # On the NeXT, cc -E runs the code through the compiler's parser,
5847 # not just through cpp. "Syntax error" is here to catch this case.
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5851 # include <limits.h>
5853 # include <assert.h>
5857 if ac_fn_c_try_cpp "$LINENO"; then :
5860 # Broken: fails on valid input.
5863 rm -f conftest.err conftest.i conftest.$ac_ext
5865 # OK, works on sane cases. Now check whether nonexistent headers
5866 # can be detected and how.
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <ac_nonexistent.h>
5871 if ac_fn_c_try_cpp "$LINENO"; then :
5872 # Broken: success on invalid input.
5875 # Passes both tests.
5879 rm -f conftest.err conftest.i conftest.$ac_ext
5882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5883 rm -f conftest.i conftest.err conftest.$ac_ext
5884 if $ac_preproc_ok; then :
5887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5889 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5890 See \`config.log' for more details" "$LINENO" 5; }
5894 ac_cpp='$CPP $CPPFLAGS'
5895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5900 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5901 if ${ac_cv_path_GREP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -z "$GREP"; then
5905 ac_path_GREP_found=false
5906 # Loop through the user's path and test for each of PROGNAME-LIST
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911 test -z "$as_dir" && as_dir=.
5912 for ac_prog in grep ggrep; do
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5916 # Check for GNU ac_path_GREP and select it if it is found.
5917 # Check for GNU $ac_path_GREP
5918 case `"$ac_path_GREP" --version 2>&1` in
5920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5923 $as_echo_n 0123456789 >"conftest.in"
5926 cat "conftest.in" "conftest.in" >"conftest.tmp"
5927 mv "conftest.tmp" "conftest.in"
5928 cp "conftest.in" "conftest.nl"
5929 $as_echo 'GREP' >> "conftest.nl"
5930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5932 as_fn_arith $ac_count + 1 && ac_count=$as_val
5933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5934 # Best one so far, save it but keep looking for a better one
5935 ac_cv_path_GREP="$ac_path_GREP"
5936 ac_path_GREP_max=$ac_count
5938 # 10*(2^10) chars as input seems more than enough
5939 test $ac_count -gt 10 && break
5941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5944 $ac_path_GREP_found && break 3
5949 if test -z "$ac_cv_path_GREP"; then
5950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953 ac_cv_path_GREP=$GREP
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5958 $as_echo "$ac_cv_path_GREP" >&6; }
5959 GREP="$ac_cv_path_GREP"
5964 #### Mac OS X set of fink path with provided
5968 # Check whether --with-fink_prefix was given.
5969 if test "${with_fink_prefix+set}" = set; then :
5970 withval=$with_fink_prefix;
5976 if test -n "$with_fink_prefix"; then
5977 # If with-fink-prefix is provided, use the provided path to make sure that we will
5978 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5979 # Therefor, we use the one in fink)
5980 FINK_PREFIX="$with_fink_prefix/"
5982 # Exec the init script of fink to make sure that the env is set
5983 if test -f $with_fink_prefix/bin/init.sh; then
5984 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5985 source $with_fink_prefix/bin/init.sh
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5988 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5996 #####################################################
5997 ## Look for pkg-config
5998 #####################################################
6001 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6002 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6004 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6008 $as_echo_n "(cached) " >&6
6012 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6034 if test -n "$PKG_CONFIG"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6036 $as_echo "$PKG_CONFIG" >&6; }
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test -z "$ac_cv_path_PKG_CONFIG"; then
6045 ac_pt_PKG_CONFIG=$PKG_CONFIG
6046 # Extract the first word of "pkg-config", so it can be a program name with args.
6047 set dummy pkg-config; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6051 $as_echo_n "(cached) " >&6
6053 case $ac_pt_PKG_CONFIG in
6055 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6077 if test -n "$ac_pt_PKG_CONFIG"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6079 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6085 if test "x$ac_pt_PKG_CONFIG" = x; then
6088 case $cross_compiling:$ac_tool_warned in
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6094 PKG_CONFIG=$ac_pt_PKG_CONFIG
6097 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6101 if test -n "$PKG_CONFIG"; then
6102 _pkg_min_version=0.9.0
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6104 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6105 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6107 $as_echo "yes" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6116 #####################################################
6117 ## check if options are correct (or not)
6118 #####################################################
6120 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6121 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6124 ######## fortran ########
6126 if test "$with_gfortran" = yes; then
6128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6131 if test -n "$ac_tool_prefix"; then
6132 for ac_prog in gfortran
6134 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6135 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137 $as_echo_n "checking for $ac_word... " >&6; }
6138 if ${ac_cv_prog_F77+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 if test -n "$F77"; then
6142 ac_cv_prog_F77="$F77" # Let the user override the test.
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6151 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 if test -n "$F77"; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6164 $as_echo "$F77" >&6; }
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6171 test -n "$F77" && break
6174 if test -z "$F77"; then
6176 for ac_prog in gfortran
6178 # Extract the first word of "$ac_prog", so it can be a program name with args.
6179 set dummy $ac_prog; ac_word=$2
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181 $as_echo_n "checking for $ac_word... " >&6; }
6182 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6183 $as_echo_n "(cached) " >&6
6185 if test -n "$ac_ct_F77"; then
6186 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 test -z "$as_dir" && as_dir=.
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195 ac_cv_prog_ac_ct_F77="$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6206 if test -n "$ac_ct_F77"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6208 $as_echo "$ac_ct_F77" >&6; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6215 test -n "$ac_ct_F77" && break
6218 if test "x$ac_ct_F77" = x; then
6221 case $cross_compiling:$ac_tool_warned in
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225 ac_tool_warned=yes ;;
6232 # Provide some information about the compiler.
6233 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6236 for ac_option in --version -v -V -qversion; do
6237 { { ac_try="$ac_compiler $ac_option >&5"
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6243 $as_echo "$ac_try_echo"; } >&5
6244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6246 if test -s conftest.err; then
6248 ... rest of stderr output deleted ...
6249 10q' conftest.err >conftest.er1
6250 cat conftest.er1 >&5
6252 rm -f conftest.er1 conftest.err
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }
6258 # If we don't use `.F' as extension, the preprocessor is not run on the
6259 # input file. (Note that this only needs to work for GNU compilers.)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6263 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6264 if ${ac_cv_f77_compiler_gnu+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 cat > conftest.$ac_ext <<_ACEOF
6275 if ac_fn_f77_try_compile "$LINENO"; then :
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6285 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6287 ac_test_FFLAGS=${FFLAGS+set}
6288 ac_save_FFLAGS=$FFLAGS
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6291 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6292 if ${ac_cv_prog_f77_g+:} false; then :
6293 $as_echo_n "(cached) " >&6
6296 cat > conftest.$ac_ext <<_ACEOF
6301 if ac_fn_f77_try_compile "$LINENO"; then :
6302 ac_cv_prog_f77_g=yes
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6310 $as_echo "$ac_cv_prog_f77_g" >&6; }
6311 if test "$ac_test_FFLAGS" = set; then
6312 FFLAGS=$ac_save_FFLAGS
6313 elif test $ac_cv_prog_f77_g = yes; then
6314 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6320 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6327 if test $ac_compiler_gnu = yes; then
6333 ac_cpp='$CPP $CPPFLAGS'
6334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338 if test -z "$F77"; then
6339 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6343 if test "$with_intelcompilers" = yes; then
6345 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6346 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6348 if test -n "$ac_tool_prefix"; then
6349 for ac_prog in ifc ifort
6351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_F77+:} false; then :
6356 $as_echo_n "(cached) " >&6
6358 if test -n "$F77"; then
6359 ac_cv_prog_F77="$F77" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 if test -n "$F77"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6381 $as_echo "$F77" >&6; }
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6388 test -n "$F77" && break
6391 if test -z "$F77"; then
6393 for ac_prog in ifc ifort
6395 # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 if test -n "$ac_ct_F77"; then
6403 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_prog_ac_ct_F77="$ac_prog"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6423 if test -n "$ac_ct_F77"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6425 $as_echo "$ac_ct_F77" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$ac_ct_F77" && break
6435 if test "x$ac_ct_F77" = x; then
6438 case $cross_compiling:$ac_tool_warned in
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6449 # Provide some information about the compiler.
6450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6453 for ac_option in --version -v -V -qversion; do
6454 { { ac_try="$ac_compiler $ac_option >&5"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6460 $as_echo "$ac_try_echo"; } >&5
6461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6463 if test -s conftest.err; then
6465 ... rest of stderr output deleted ...
6466 10q' conftest.err >conftest.er1
6467 cat conftest.er1 >&5
6469 rm -f conftest.er1 conftest.err
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; }
6475 # If we don't use `.F' as extension, the preprocessor is not run on the
6476 # input file. (Note that this only needs to work for GNU compilers.)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6480 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6481 if ${ac_cv_f77_compiler_gnu+:} false; then :
6482 $as_echo_n "(cached) " >&6
6484 cat > conftest.$ac_ext <<_ACEOF
6492 if ac_fn_f77_try_compile "$LINENO"; then :
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6502 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6504 ac_test_FFLAGS=${FFLAGS+set}
6505 ac_save_FFLAGS=$FFLAGS
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6508 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6509 if ${ac_cv_prog_f77_g+:} false; then :
6510 $as_echo_n "(cached) " >&6
6513 cat > conftest.$ac_ext <<_ACEOF
6518 if ac_fn_f77_try_compile "$LINENO"; then :
6519 ac_cv_prog_f77_g=yes
6523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6527 $as_echo "$ac_cv_prog_f77_g" >&6; }
6528 if test "$ac_test_FFLAGS" = set; then
6529 FFLAGS=$ac_save_FFLAGS
6530 elif test $ac_cv_prog_f77_g = yes; then
6531 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6537 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6544 if test $ac_compiler_gnu = yes; then
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555 if test -z "$F77"; then
6556 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6560 if test -z "$F77"; then
6561 ## No Frotran compiler specified... We rely on Autoconf to find the best
6563 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6564 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6565 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6566 if test -n "$ac_tool_prefix"; then
6567 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if ${ac_cv_prog_F77+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 if test -n "$F77"; then
6577 ac_cv_prog_F77="$F77" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 if test -n "$F77"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6599 $as_echo "$F77" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6606 test -n "$F77" && break
6609 if test -z "$F77"; then
6611 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn
6613 # Extract the first word of "$ac_prog", so it can be a program name with args.
6614 set dummy $ac_prog; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_F77"; then
6621 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_F77="$ac_prog"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6641 if test -n "$ac_ct_F77"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6643 $as_echo "$ac_ct_F77" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6650 test -n "$ac_ct_F77" && break
6653 if test "x$ac_ct_F77" = x; then
6656 case $cross_compiling:$ac_tool_warned in
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6667 # Provide some information about the compiler.
6668 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6671 for ac_option in --version -v -V -qversion; do
6672 { { ac_try="$ac_compiler $ac_option >&5"
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6678 $as_echo "$ac_try_echo"; } >&5
6679 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6681 if test -s conftest.err; then
6683 ... rest of stderr output deleted ...
6684 10q' conftest.err >conftest.er1
6685 cat conftest.er1 >&5
6687 rm -f conftest.er1 conftest.err
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }
6693 # If we don't use `.F' as extension, the preprocessor is not run on the
6694 # input file. (Note that this only needs to work for GNU compilers.)
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6698 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6699 if ${ac_cv_f77_compiler_gnu+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 cat > conftest.$ac_ext <<_ACEOF
6710 if ac_fn_f77_try_compile "$LINENO"; then :
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6720 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6722 ac_test_FFLAGS=${FFLAGS+set}
6723 ac_save_FFLAGS=$FFLAGS
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6726 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6727 if ${ac_cv_prog_f77_g+:} false; then :
6728 $as_echo_n "(cached) " >&6
6731 cat > conftest.$ac_ext <<_ACEOF
6736 if ac_fn_f77_try_compile "$LINENO"; then :
6737 ac_cv_prog_f77_g=yes
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6745 $as_echo "$ac_cv_prog_f77_g" >&6; }
6746 if test "$ac_test_FFLAGS" = set; then
6747 FFLAGS=$ac_save_FFLAGS
6748 elif test $ac_cv_prog_f77_g = yes; then
6749 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6755 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6762 if test $ac_compiler_gnu = yes; then
6768 ac_cpp='$CPP $CPPFLAGS'
6769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776 # case statements were introduced in fortran 90 so we can use that
6777 # as a test to see if our compiler is fortran 90 compatible.
6779 if test -z "$F77"; then
6780 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6784 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6787 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6788 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6792 cat > conftest.$ac_ext <<_ACEOF
6798 print*, "case is 1, i is ", i
6800 print*, "case is 2 to 3, i is ", i
6802 print*, "default case, i is ", i
6808 if ac_fn_f77_try_compile "$LINENO"; then :
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6810 $as_echo "yes" >&6; }
6812 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 ac_cpp='$CPP $CPPFLAGS'
6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6829 ############ C ###############
6832 if test "$with_gcc" = yes; then
6834 ac_cpp='$CPP $CPPFLAGS'
6835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838 if test -n "$ac_tool_prefix"; then
6841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6842 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_CC+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$CC"; then
6849 ac_cv_prog_CC="$CC" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 if test -n "$CC"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6871 $as_echo "$CC" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6878 test -n "$CC" && break
6881 if test -z "$CC"; then
6885 # Extract the first word of "$ac_prog", so it can be a program name with args.
6886 set dummy $ac_prog; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$ac_ct_CC"; then
6893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_CC="$ac_prog"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6913 if test -n "$ac_ct_CC"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6915 $as_echo "$ac_ct_CC" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6922 test -n "$ac_ct_CC" && break
6925 if test "x$ac_ct_CC" = x; then
6928 case $cross_compiling:$ac_tool_warned in
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6939 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6941 as_fn_error $? "no acceptable C compiler found in \$PATH
6942 See \`config.log' for more details" "$LINENO" 5; }
6944 # Provide some information about the compiler.
6945 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6948 for ac_option in --version -v -V -qversion; do
6949 { { ac_try="$ac_compiler $ac_option >&5"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6955 $as_echo "$ac_try_echo"; } >&5
6956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6958 if test -s conftest.err; then
6960 ... rest of stderr output deleted ...
6961 10q' conftest.err >conftest.er1
6962 cat conftest.er1 >&5
6964 rm -f conftest.er1 conftest.err
6965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966 test $ac_status = 0; }
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6970 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6971 if ${ac_cv_c_compiler_gnu+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6988 if ac_fn_c_try_compile "$LINENO"; then :
6993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6999 if test $ac_compiler_gnu = yes; then
7004 ac_test_CFLAGS=${CFLAGS+set}
7005 ac_save_CFLAGS=$CFLAGS
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7008 if ${ac_cv_prog_cc_g+:} false; then :
7009 $as_echo_n "(cached) " >&6
7011 ac_save_c_werror_flag=$ac_c_werror_flag
7012 ac_c_werror_flag=yes
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7026 if ac_fn_c_try_compile "$LINENO"; then :
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7041 if ac_fn_c_try_compile "$LINENO"; then :
7044 ac_c_werror_flag=$ac_save_c_werror_flag
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7057 if ac_fn_c_try_compile "$LINENO"; then :
7060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 ac_c_werror_flag=$ac_save_c_werror_flag
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7068 $as_echo "$ac_cv_prog_cc_g" >&6; }
7069 if test "$ac_test_CFLAGS" = set; then
7070 CFLAGS=$ac_save_CFLAGS
7071 elif test $ac_cv_prog_cc_g = yes; then
7072 if test "$GCC" = yes; then
7078 if test "$GCC" = yes; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7085 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7086 if ${ac_cv_prog_cc_c89+:} false; then :
7087 $as_echo_n "(cached) " >&6
7089 ac_cv_prog_cc_c89=no
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7095 #include <sys/types.h>
7096 #include <sys/stat.h>
7097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7098 struct buf { int x; };
7099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7100 static char *e (p, i)
7106 static char *f (char * (*g) (char **, int), char **p, ...)
7111 s = g (p, va_arg (v,int));
7116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7117 function prototypes and stuff, but not '\xHH' hex character constants.
7118 These don't provoke an error unfortunately, instead are silently treated
7119 as 'x'. The following induces an error, until -std is added to get
7120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7121 array size at least. It's necessary to write '\x00'==0 to get something
7122 that's true only with -std. */
7123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7126 inside strings and character constants. */
7128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7130 int test (int i, double x);
7131 struct s1 {int (*f) (int a);};
7132 struct s2 {int (*f) (double a);};
7133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7147 CC="$ac_save_CC $ac_arg"
7148 if ac_fn_c_try_compile "$LINENO"; then :
7149 ac_cv_prog_cc_c89=$ac_arg
7151 rm -f core conftest.err conftest.$ac_objext
7152 test "x$ac_cv_prog_cc_c89" != "xno" && break
7154 rm -f conftest.$ac_ext
7159 case "x$ac_cv_prog_cc_c89" in
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7162 $as_echo "none needed" >&6; } ;;
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7165 $as_echo "unsupported" >&6; } ;;
7167 CC="$CC $ac_cv_prog_cc_c89"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7169 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7171 if test "x$ac_cv_prog_cc_c89" != xno; then :
7176 ac_cpp='$CPP $CPPFLAGS'
7177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7181 if test -z "$CC"; then
7182 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7186 if test "$with_intelcompilers" = yes; then
7188 ac_cpp='$CPP $CPPFLAGS'
7189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7192 if test -n "$ac_tool_prefix"; then
7193 for ac_prog in icc ecc
7195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_CC+:} false; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$CC"; then
7203 ac_cv_prog_CC="$CC" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 if test -n "$CC"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7225 $as_echo "$CC" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7232 test -n "$CC" && break
7235 if test -z "$CC"; then
7237 for ac_prog in icc ecc
7239 # Extract the first word of "$ac_prog", so it can be a program name with args.
7240 set dummy $ac_prog; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 if test -n "$ac_ct_CC"; then
7247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_ac_ct_CC="$ac_prog"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7267 if test -n "$ac_ct_CC"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7269 $as_echo "$ac_ct_CC" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7276 test -n "$ac_ct_CC" && break
7279 if test "x$ac_ct_CC" = x; then
7282 case $cross_compiling:$ac_tool_warned in
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7286 ac_tool_warned=yes ;;
7293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7295 as_fn_error $? "no acceptable C compiler found in \$PATH
7296 See \`config.log' for more details" "$LINENO" 5; }
7298 # Provide some information about the compiler.
7299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7302 for ac_option in --version -v -V -qversion; do
7303 { { ac_try="$ac_compiler $ac_option >&5"
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7309 $as_echo "$ac_try_echo"; } >&5
7310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7312 if test -s conftest.err; then
7314 ... rest of stderr output deleted ...
7315 10q' conftest.err >conftest.er1
7316 cat conftest.er1 >&5
7318 rm -f conftest.er1 conftest.err
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7325 if ${ac_cv_c_compiler_gnu+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7342 if ac_fn_c_try_compile "$LINENO"; then :
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7353 if test $ac_compiler_gnu = yes; then
7358 ac_test_CFLAGS=${CFLAGS+set}
7359 ac_save_CFLAGS=$CFLAGS
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7362 if ${ac_cv_prog_cc_g+:} false; then :
7363 $as_echo_n "(cached) " >&6
7365 ac_save_c_werror_flag=$ac_c_werror_flag
7366 ac_c_werror_flag=yes
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7380 if ac_fn_c_try_compile "$LINENO"; then :
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7395 if ac_fn_c_try_compile "$LINENO"; then :
7398 ac_c_werror_flag=$ac_save_c_werror_flag
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7411 if ac_fn_c_try_compile "$LINENO"; then :
7414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419 ac_c_werror_flag=$ac_save_c_werror_flag
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7422 $as_echo "$ac_cv_prog_cc_g" >&6; }
7423 if test "$ac_test_CFLAGS" = set; then
7424 CFLAGS=$ac_save_CFLAGS
7425 elif test $ac_cv_prog_cc_g = yes; then
7426 if test "$GCC" = yes; then
7432 if test "$GCC" = yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7440 if ${ac_cv_prog_cc_c89+:} false; then :
7441 $as_echo_n "(cached) " >&6
7443 ac_cv_prog_cc_c89=no
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7449 #include <sys/types.h>
7450 #include <sys/stat.h>
7451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7452 struct buf { int x; };
7453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7454 static char *e (p, i)
7460 static char *f (char * (*g) (char **, int), char **p, ...)
7465 s = g (p, va_arg (v,int));
7470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7471 function prototypes and stuff, but not '\xHH' hex character constants.
7472 These don't provoke an error unfortunately, instead are silently treated
7473 as 'x'. The following induces an error, until -std is added to get
7474 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7475 array size at least. It's necessary to write '\x00'==0 to get something
7476 that's true only with -std. */
7477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7480 inside strings and character constants. */
7482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7484 int test (int i, double x);
7485 struct s1 {int (*f) (int a);};
7486 struct s2 {int (*f) (double a);};
7487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7493 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7499 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7501 CC="$ac_save_CC $ac_arg"
7502 if ac_fn_c_try_compile "$LINENO"; then :
7503 ac_cv_prog_cc_c89=$ac_arg
7505 rm -f core conftest.err conftest.$ac_objext
7506 test "x$ac_cv_prog_cc_c89" != "xno" && break
7508 rm -f conftest.$ac_ext
7513 case "x$ac_cv_prog_cc_c89" in
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7516 $as_echo "none needed" >&6; } ;;
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7519 $as_echo "unsupported" >&6; } ;;
7521 CC="$CC $ac_cv_prog_cc_c89"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7525 if test "x$ac_cv_prog_cc_c89" != xno; then :
7530 ac_cpp='$CPP $CPPFLAGS'
7531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535 if test -z "$CC"; then
7536 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7540 if test -z "$CC"; then
7541 # No C compiler specified... We rely on Autoconf to find the best
7543 ac_cpp='$CPP $CPPFLAGS'
7544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547 if test -n "$ac_tool_prefix"; then
7548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7551 $as_echo_n "checking for $ac_word... " >&6; }
7552 if ${ac_cv_prog_CC+:} false; then :
7553 $as_echo_n "(cached) " >&6
7555 if test -n "$CC"; then
7556 ac_cv_prog_CC="$CC" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 if test -n "$CC"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7578 $as_echo "$CC" >&6; }
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7581 $as_echo "no" >&6; }
7586 if test -z "$ac_cv_prog_CC"; then
7588 # Extract the first word of "gcc", so it can be a program name with args.
7589 set dummy gcc; ac_word=$2
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591 $as_echo_n "checking for $ac_word... " >&6; }
7592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7593 $as_echo_n "(cached) " >&6
7595 if test -n "$ac_ct_CC"; then
7596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_prog_ac_ct_CC="gcc"
7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7616 if test -n "$ac_ct_CC"; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7618 $as_echo "$ac_ct_CC" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621 $as_echo "no" >&6; }
7624 if test "x$ac_ct_CC" = x; then
7627 case $cross_compiling:$ac_tool_warned in
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7631 ac_tool_warned=yes ;;
7639 if test -z "$CC"; then
7640 if test -n "$ac_tool_prefix"; then
7641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7642 set dummy ${ac_tool_prefix}cc; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_CC+:} false; then :
7646 $as_echo_n "(cached) " >&6
7648 if test -n "$CC"; then
7649 ac_cv_prog_CC="$CC" # Let the user override the test.
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 test -z "$as_dir" && as_dir=.
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7658 ac_cv_prog_CC="${ac_tool_prefix}cc"
7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 if test -n "$CC"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7671 $as_echo "$CC" >&6; }
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7680 if test -z "$CC"; then
7681 # Extract the first word of "cc", so it can be a program name with args.
7682 set dummy cc; ac_word=$2
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 $as_echo_n "checking for $ac_word... " >&6; }
7685 if ${ac_cv_prog_CC+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 if test -n "$CC"; then
7689 ac_cv_prog_CC="$CC" # Let the user override the test.
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7700 ac_prog_rejected=yes
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 if test $ac_prog_rejected = yes; then
7712 # We found a bogon in the path, so make sure we never use it.
7713 set dummy $ac_cv_prog_CC
7715 if test $# != 0; then
7716 # We chose a different compiler from the bogus one.
7717 # However, it has the same basename, so the bogon will be chosen
7718 # first if we set CC to just the basename; use the full file name.
7720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7726 if test -n "$CC"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7728 $as_echo "$CC" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7736 if test -z "$CC"; then
7737 if test -n "$ac_tool_prefix"; then
7738 for ac_prog in cl.exe
7740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_CC+:} false; then :
7745 $as_echo_n "(cached) " >&6
7747 if test -n "$CC"; then
7748 ac_cv_prog_CC="$CC" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768 if test -n "$CC"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7770 $as_echo "$CC" >&6; }
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7777 test -n "$CC" && break
7780 if test -z "$CC"; then
7782 for ac_prog in cl.exe
7784 # Extract the first word of "$ac_prog", so it can be a program name with args.
7785 set dummy $ac_prog; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7789 $as_echo_n "(cached) " >&6
7791 if test -n "$ac_ct_CC"; then
7792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_prog_ac_ct_CC="$ac_prog"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7812 if test -n "$ac_ct_CC"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7814 $as_echo "$ac_ct_CC" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7821 test -n "$ac_ct_CC" && break
7824 if test "x$ac_ct_CC" = x; then
7827 case $cross_compiling:$ac_tool_warned in
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7831 ac_tool_warned=yes ;;
7840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7842 as_fn_error $? "no acceptable C compiler found in \$PATH
7843 See \`config.log' for more details" "$LINENO" 5; }
7845 # Provide some information about the compiler.
7846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7849 for ac_option in --version -v -V -qversion; do
7850 { { ac_try="$ac_compiler $ac_option >&5"
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7856 $as_echo "$ac_try_echo"; } >&5
7857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7859 if test -s conftest.err; then
7861 ... rest of stderr output deleted ...
7862 10q' conftest.err >conftest.er1
7863 cat conftest.er1 >&5
7865 rm -f conftest.er1 conftest.err
7866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7867 test $ac_status = 0; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7872 if ${ac_cv_c_compiler_gnu+:} false; then :
7873 $as_echo_n "(cached) " >&6
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7889 if ac_fn_c_try_compile "$LINENO"; then :
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7900 if test $ac_compiler_gnu = yes; then
7905 ac_test_CFLAGS=${CFLAGS+set}
7906 ac_save_CFLAGS=$CFLAGS
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7909 if ${ac_cv_prog_cc_g+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 ac_save_c_werror_flag=$ac_c_werror_flag
7913 ac_c_werror_flag=yes
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7927 if ac_fn_c_try_compile "$LINENO"; then :
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7942 if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_c_werror_flag=$ac_save_c_werror_flag
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7958 if ac_fn_c_try_compile "$LINENO"; then :
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 ac_c_werror_flag=$ac_save_c_werror_flag
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7969 $as_echo "$ac_cv_prog_cc_g" >&6; }
7970 if test "$ac_test_CFLAGS" = set; then
7971 CFLAGS=$ac_save_CFLAGS
7972 elif test $ac_cv_prog_cc_g = yes; then
7973 if test "$GCC" = yes; then
7979 if test "$GCC" = yes; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7987 if ${ac_cv_prog_cc_c89+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 ac_cv_prog_cc_c89=no
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7996 #include <sys/types.h>
7997 #include <sys/stat.h>
7998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7999 struct buf { int x; };
8000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8001 static char *e (p, i)
8007 static char *f (char * (*g) (char **, int), char **p, ...)
8012 s = g (p, va_arg (v,int));
8017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8018 function prototypes and stuff, but not '\xHH' hex character constants.
8019 These don't provoke an error unfortunately, instead are silently treated
8020 as 'x'. The following induces an error, until -std is added to get
8021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8022 array size at least. It's necessary to write '\x00'==0 to get something
8023 that's true only with -std. */
8024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8027 inside strings and character constants. */
8029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8031 int test (int i, double x);
8032 struct s1 {int (*f) (int a);};
8033 struct s2 {int (*f) (double a);};
8034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);