2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and
243 $0: http://bugzilla.scilab.org/ about your system,
244 $0: including any error possibly output before this
245 $0: message. Then install a modern shell, or manually run
246 $0: the script under such a shell if you do have one."
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error ERROR [LINENO LOG_FD]
372 # ---------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with status $?, using 1 if that was 0.
378 as_status=$?; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
383 $as_echo "$as_me: error: $1" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 SHELL=${CONFIG_SHELL-/bin/sh}
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='Scilab'
565 PACKAGE_TARNAME='scilab'
567 PACKAGE_STRING='Scilab 5'
568 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
571 # Factoring default headers for most tests.
572 ac_includes_default="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
608 ac_subst_vars='am__EXEEXT_FALSE
631 COMPILATION_TESTS_FALSE
632 COMPILATION_TESTS_TRUE
634 INSTALL_HELP_XML_FALSE
635 INSTALL_HELP_XML_TRUE
669 GENERATE_LOCALIZATION_FILES_FALSE
670 GENERATE_LOCALIZATION_FILES_TRUE
714 XGETTEXT_EXTRA_OPTIONS
722 GETTEXT_MACRO_VERSION
741 SWIG_RUNTIME_LIBS_DIR
786 USE_DYNAMIC_STACK_FALSE
787 USE_DYNAMIC_STACK_TRUE
790 IS_MIPS_SGI_IRIX_FALSE
791 IS_MIPS_SGI_IRIX_TRUE
838 MAINTAINER_MODE_FALSE
841 RELOCATABLE_VIA_LD_FALSE
842 RELOCATABLE_VIA_LD_TRUE
867 INSTALL_STRIP_PROGRAM
870 SCILAB_LIBRARY_VERSION
898 program_transform_name
911 enable_option_checking
916 enable_maintainer_mode
917 enable_dependency_tracking
931 enable_compilation_tests
954 enable_build_localization
971 with_install_help_xml
978 ac_precious_vars='build_alias
999 # Initialize some variables set by options.
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1013 program_transform_name=s,x,x,
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1065 case $ac_dashdash$ac_option in
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1089 -datadir | --datadir | --datadi | --datad)
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 as_fn_error "invalid feature name: $ac_useropt"
1106 ac_useropt_orig=$ac_useropt
1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108 case $ac_user_opts in
1110 "enable_$ac_useropt"
1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1113 ac_unrecognized_sep=', ';;
1115 eval enable_$ac_useropt=no ;;
1117 -docdir | --docdir | --docdi | --doc | --do)
1119 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1120 docdir=$ac_optarg ;;
1122 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1125 dvidir=$ac_optarg ;;
1127 -enable-* | --enable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_$ac_useropt"
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval enable_$ac_useropt=\$ac_optarg ;;
1143 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1144 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1145 | --exec | --exe | --ex)
1146 ac_prev=exec_prefix ;;
1147 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1148 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1149 | --exec=* | --exe=* | --ex=*)
1150 exec_prefix=$ac_optarg ;;
1152 -gas | --gas | --ga | --g)
1153 # Obsolete; use --with-gas.
1156 -help | --help | --hel | --he | -h)
1157 ac_init_help=long ;;
1158 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1159 ac_init_help=recursive ;;
1160 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1161 ac_init_help=short ;;
1163 -host | --host | --hos | --ho)
1164 ac_prev=host_alias ;;
1165 -host=* | --host=* | --hos=* | --ho=*)
1166 host_alias=$ac_optarg ;;
1168 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172 htmldir=$ac_optarg ;;
1174 -includedir | --includedir | --includedi | --included | --include \
1175 | --includ | --inclu | --incl | --inc)
1176 ac_prev=includedir ;;
1177 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1178 | --includ=* | --inclu=* | --incl=* | --inc=*)
1179 includedir=$ac_optarg ;;
1181 -infodir | --infodir | --infodi | --infod | --info | --inf)
1183 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1184 infodir=$ac_optarg ;;
1186 -libdir | --libdir | --libdi | --libd)
1188 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1189 libdir=$ac_optarg ;;
1191 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1192 | --libexe | --libex | --libe)
1193 ac_prev=libexecdir ;;
1194 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1195 | --libexe=* | --libex=* | --libe=*)
1196 libexecdir=$ac_optarg ;;
1198 -localedir | --localedir | --localedi | --localed | --locale)
1199 ac_prev=localedir ;;
1200 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1201 localedir=$ac_optarg ;;
1203 -localstatedir | --localstatedir | --localstatedi | --localstated \
1204 | --localstate | --localstat | --localsta | --localst | --locals)
1205 ac_prev=localstatedir ;;
1206 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1207 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1208 localstatedir=$ac_optarg ;;
1210 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1213 mandir=$ac_optarg ;;
1215 -nfp | --nfp | --nf)
1216 # Obsolete; use --without-fp.
1219 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1220 | --no-cr | --no-c | -n)
1223 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1224 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1228 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1229 | --oldin | --oldi | --old | --ol | --o)
1230 ac_prev=oldincludedir ;;
1231 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1232 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1233 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1234 oldincludedir=$ac_optarg ;;
1236 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1239 prefix=$ac_optarg ;;
1241 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1242 | --program-pre | --program-pr | --program-p)
1243 ac_prev=program_prefix ;;
1244 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1245 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1246 program_prefix=$ac_optarg ;;
1248 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1249 | --program-suf | --program-su | --program-s)
1250 ac_prev=program_suffix ;;
1251 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1252 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1253 program_suffix=$ac_optarg ;;
1255 -program-transform-name | --program-transform-name \
1256 | --program-transform-nam | --program-transform-na \
1257 | --program-transform-n | --program-transform- \
1258 | --program-transform | --program-transfor \
1259 | --program-transfo | --program-transf \
1260 | --program-trans | --program-tran \
1261 | --progr-tra | --program-tr | --program-t)
1262 ac_prev=program_transform_name ;;
1263 -program-transform-name=* | --program-transform-name=* \
1264 | --program-transform-nam=* | --program-transform-na=* \
1265 | --program-transform-n=* | --program-transform-=* \
1266 | --program-transform=* | --program-transfor=* \
1267 | --program-transfo=* | --program-transf=* \
1268 | --program-trans=* | --program-tran=* \
1269 | --progr-tra=* | --program-tr=* | --program-t=*)
1270 program_transform_name=$ac_optarg ;;
1272 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1275 pdfdir=$ac_optarg ;;
1277 -psdir | --psdir | --psdi | --psd | --ps)
1279 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1286 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290 sbindir=$ac_optarg ;;
1292 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1293 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1294 | --sharedst | --shareds | --shared | --share | --shar \
1296 ac_prev=sharedstatedir ;;
1297 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1298 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1299 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301 sharedstatedir=$ac_optarg ;;
1303 -site | --site | --sit)
1305 -site=* | --site=* | --sit=*)
1308 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1311 srcdir=$ac_optarg ;;
1313 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1314 | --syscon | --sysco | --sysc | --sys | --sy)
1315 ac_prev=sysconfdir ;;
1316 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1317 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1318 sysconfdir=$ac_optarg ;;
1320 -target | --target | --targe | --targ | --tar | --ta | --t)
1321 ac_prev=target_alias ;;
1322 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1323 target_alias=$ac_optarg ;;
1325 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328 -version | --version | --versio | --versi | --vers | -V)
1329 ac_init_version=: ;;
1332 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1335 as_fn_error "invalid package name: $ac_useropt"
1336 ac_useropt_orig=$ac_useropt
1337 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1338 case $ac_user_opts in
1342 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1343 ac_unrecognized_sep=', ';;
1345 eval with_$ac_useropt=\$ac_optarg ;;
1347 -without-* | --without-*)
1348 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1349 # Reject names that are not valid shell variable names.
1350 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1351 as_fn_error "invalid package name: $ac_useropt"
1352 ac_useropt_orig=$ac_useropt
1353 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1354 case $ac_user_opts in
1358 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1359 ac_unrecognized_sep=', ';;
1361 eval with_$ac_useropt=no ;;
1364 # Obsolete; use --with-x.
1367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1368 | --x-incl | --x-inc | --x-in | --x-i)
1369 ac_prev=x_includes ;;
1370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1372 x_includes=$ac_optarg ;;
1374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1376 ac_prev=x_libraries ;;
1377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1379 x_libraries=$ac_optarg ;;
1381 -*) as_fn_error "unrecognized option: \`$ac_option'
1382 Try \`$0 --help' for more information."
1386 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1387 # Reject names that are not valid shell variable names.
1388 case $ac_envvar in #(
1389 '' | [0-9]* | *[!_$as_cr_alnum]* )
1390 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1392 eval $ac_envvar=\$ac_optarg
1393 export $ac_envvar ;;
1396 # FIXME: should be removed in autoconf 3.0.
1397 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1398 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1399 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1400 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406 if test -n "$ac_prev"; then
1407 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1408 as_fn_error "missing argument to $ac_option"
1411 if test -n "$ac_unrecognized_opts"; then
1412 case $enable_option_checking in
1414 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1415 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419 # Check all directory arguments for consistency.
1420 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1421 datadir sysconfdir sharedstatedir localstatedir includedir \
1422 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1423 libdir localedir mandir
1425 eval ac_val=\$$ac_var
1426 # Remove trailing slashes.
1429 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1430 eval $ac_var=\$ac_val;;
1432 # Be sure to have absolute directory names.
1434 [\\/$]* | ?:[\\/]* ) continue;;
1435 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1437 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1440 # There might be people who depend on the old broken behavior: `$host'
1441 # used to hold the argument of --host etc.
1442 # FIXME: To remove some day.
1445 target=$target_alias
1447 # FIXME: To remove some day.
1448 if test "x$host_alias" != x; then
1449 if test "x$build_alias" = x; then
1450 cross_compiling=maybe
1451 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1452 If a cross compiler is detected then cross compile mode will be used." >&2
1453 elif test "x$build_alias" != "x$host_alias"; then
1459 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1461 test "$silent" = yes && exec 6>/dev/null
1464 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1465 ac_ls_di=`ls -di .` &&
1466 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1467 as_fn_error "working directory cannot be determined"
1468 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1469 as_fn_error "pwd does not report name of working directory"
1472 # Find the source files, if location was not specified.
1473 if test -z "$srcdir"; then
1474 ac_srcdir_defaulted=yes
1475 # Try the directory containing this script, then the parent directory.
1476 ac_confdir=`$as_dirname -- "$as_myself" ||
1477 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1478 X"$as_myself" : 'X\(//\)[^/]' \| \
1479 X"$as_myself" : 'X\(//\)$' \| \
1480 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1481 $as_echo X"$as_myself" |
1482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1504 ac_srcdir_defaulted=no
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1508 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1510 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1512 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1514 # When building in place, set srcdir=.
1515 if test "$ac_abs_confdir" = "$ac_pwd"; then
1518 # Remove unnecessary trailing slashes from srcdir.
1519 # Double slashes in file names in object file debugging info
1520 # mess up M-x gdb in Emacs.
1522 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1524 for ac_var in $ac_precious_vars; do
1525 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1526 eval ac_env_${ac_var}_value=\$${ac_var}
1527 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1528 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532 # Report the --help message.
1534 if test "$ac_init_help" = "long"; then
1535 # Omit some internal or obsolete options to make the list less imposing.
1536 # This message is too long to be a string in the A/UX 3.1 sh.
1538 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1540 Usage: $0 [OPTION]... [VAR=VALUE]...
1542 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1543 VAR=VALUE. See below for descriptions of some of the useful variables.
1545 Defaults for the options are specified in brackets.
1548 -h, --help display this help and exit
1549 --help=short display options specific to this package
1550 --help=recursive display the short help of all the included packages
1551 -V, --version display version information and exit
1552 -q, --quiet, --silent do not print \`checking...' messages
1553 --cache-file=FILE cache test results in FILE [disabled]
1554 -C, --config-cache alias for \`--cache-file=config.cache'
1555 -n, --no-create do not create output files
1556 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1558 Installation directories:
1559 --prefix=PREFIX install architecture-independent files in PREFIX
1560 [$ac_default_prefix]
1561 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1564 By default, \`make install' will install all the files in
1565 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1566 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1567 for instance \`--prefix=\$HOME'.
1569 For better control, use the options below.
1571 Fine tuning of the installation directories:
1572 --bindir=DIR user executables [EPREFIX/bin]
1573 --sbindir=DIR system admin executables [EPREFIX/sbin]
1574 --libexecdir=DIR program executables [EPREFIX/libexec]
1575 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1576 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1577 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1578 --libdir=DIR object code libraries [EPREFIX/lib]
1579 --includedir=DIR C header files [PREFIX/include]
1580 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1581 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1582 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1583 --infodir=DIR info documentation [DATAROOTDIR/info]
1584 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1585 --mandir=DIR man documentation [DATAROOTDIR/man]
1586 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1587 --htmldir=DIR html documentation [DOCDIR]
1588 --dvidir=DIR dvi documentation [DOCDIR]
1589 --pdfdir=DIR pdf documentation [DOCDIR]
1590 --psdir=DIR ps documentation [DOCDIR]
1596 --program-prefix=PREFIX prepend PREFIX to installed program names
1597 --program-suffix=SUFFIX append SUFFIX to installed program names
1598 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1601 --x-includes=DIR X include files are in DIR
1602 --x-libraries=DIR X library files are in DIR
1605 --build=BUILD configure for building on BUILD [guessed]
1606 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1610 if test -n "$ac_init_help"; then
1611 case $ac_init_help in
1612 short | recursive ) echo "Configuration of Scilab 5:";;
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --disable-largefile omit support for large files
1621 --enable-relocatable install a package that can be moved in the filesystem
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-maintainer-mode enable make rules and dependencies not useful
1624 (and sometimes confusing) to the casual installer
1625 --disable-dependency-tracking speeds up one-time build
1626 --enable-dependency-tracking do not reject slow dependency extractors
1627 --enable-debug Do not optimize and print warning messages
1628 (C/C++/Fortran code)
1629 --enable-debug-C Do not optimize and print warning messages (C code)
1630 --enable-debug-CXX Do not optimize and print warning messages (C++
1632 --enable-debug-java Print warning messages and line numbers (Java code)
1633 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1635 --enable-debug-linker Print warning messages from the linker (ld)
1636 --enable-stop-on-warning
1637 Stop the compilation on the first warning found in
1639 --enable-compilation-tests
1640 Enable unitary tests and checks at compilation time
1641 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1642 Java Development Kit (JDK) is mandatory for this
1644 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1645 (A Java Development Kit (JDK) is mandatory for this
1647 --disable-nls do not use Native Language Support
1648 --disable-build-localization
1649 Disable the localization build
1651 --disable-build-help Disable the help build
1653 --enable-static[=PKGS] build static libraries [default=no]
1654 --enable-shared[=PKGS] build shared libraries [default=yes]
1655 --enable-fast-install[=PKGS]
1656 optimize for fast installation [default=yes]
1657 --disable-libtool-lock avoid locking (might break parallel builds)
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
1663 --with-gcc Use gcc C compiler
1664 --with-g77 Use g77, GNU Fortran 77 compiler
1665 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1666 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1667 compilers (GNU/Linux only)
1668 --without-tk Disable the interface to Tcl/Tk
1669 --without-javasci Disable the Java/Scilab interface (javasci)
1670 --without-gui Disable the Scilab Graphical User Interface (GUI).
1671 Intended for embedded/clustering/grid Scilab
1672 --with-fink-prefix Provide a fink prefix. Default: /sw/
1673 --without-hdf5 Disable the interface to the HDF5 library
1674 --with-hdf5-include=DIR Set the path to the HDF5 headers
1675 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1676 --with-jdk=DIR use JDK from DIR
1677 --with-ant=DIR Use ant from DIR
1678 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1679 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1680 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1681 --without-libintl-prefix don't search for libintl in includedir and libdir
1682 --without-scicos Disable Scicos
1683 --without-ocaml Disable the OCaml modules (modelica)
1684 --without-fftw Disable the interface to the FFTW 3 library
1685 --with-fftw-include=DIR Set the path to the FFTW headers
1686 --with-fftw-library=DIR Set the path to the FFTW libraries
1687 --without-pvm Disable the interface to the PVM library
1688 --with-pvm-include=DIR Set the path to the PVM headers
1689 --with-pvm-library=DIR Set the path to the PVM library directory
1690 --without-openmp Disable the usage of OpenMP (parallelization of some
1692 --with-libxml2=PREFIX Set the path to your libxml2 installation
1693 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1695 --with-lapack-library=DIR
1696 set the path to the LAPACK library
1697 --without-umfpack Disable the interface to the UMFPACK library
1698 --with-umfpack-library=DIR
1699 Set the path to the UMFPACK libraries
1700 --with-umfpack-include=DIR
1701 Set the path to the UMFPACK headers
1702 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1703 Expression Library) installation
1704 --with-tcl-library=DIR Set the path to the TCL library
1705 --with-tcl-include=DIR Set the path to the TCL headers
1706 --with-tk-library=DIR Set the path to the TK library
1707 --with-tk-include=DIR Set the path to the TK headers
1708 --with-x use the X Window System
1709 --without-matio Disable the interface to Matio (MAT File I/O
1711 --with-matio-include=DIR
1712 Set the path to the MATIO headers
1713 --with-matio-library=DIR
1714 Set the path to the MATIO libraries
1715 --with-docbook=DIR Set the path to the docbook package
1716 --with-install-help-xml make install will install XML files
1718 --with-pic try to use only PIC/non-PIC objects [default=use
1720 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1722 Some influential environment variables:
1723 CC C compiler command
1724 CFLAGS C compiler flags
1725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 nonstandard directory <lib dir>
1727 LIBS libraries to pass to the linker, e.g. -l<library>
1728 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1729 you have headers in a nonstandard directory <include dir>
1731 PKG_CONFIG path to pkg-config utility
1732 F77 Fortran 77 compiler command
1733 FFLAGS Fortran 77 compiler flags
1734 CXX C++ compiler command
1735 CXXFLAGS C++ compiler flags
1736 XMKMF Path to xmkmf, Makefile generator for X Window System
1738 C compiler flags for MATIO, overriding pkg-config
1739 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1740 CXXCPP C++ preprocessor
1742 Use these variables to override the choices made by `configure' or to help
1743 it to find libraries and programs with nonstandard names/locations.
1745 Report bugs to <http://bugzilla.scilab.org/>.
1750 if test "$ac_init_help" = "recursive"; then
1751 # If there are subdirs, report their specific --help.
1752 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1753 test -d "$ac_dir" ||
1754 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1759 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1761 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1762 # A ".." for each directory in $ac_dir_suffix.
1763 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1764 case $ac_top_builddir_sub in
1765 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1766 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1769 ac_abs_top_builddir=$ac_pwd
1770 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1771 # for backward compatibility:
1772 ac_top_builddir=$ac_top_build_prefix
1775 .) # We are building in place.
1777 ac_top_srcdir=$ac_top_builddir_sub
1778 ac_abs_top_srcdir=$ac_pwd ;;
1779 [\\/]* | ?:[\\/]* ) # Absolute name.
1780 ac_srcdir=$srcdir$ac_dir_suffix;
1781 ac_top_srcdir=$srcdir
1782 ac_abs_top_srcdir=$srcdir ;;
1784 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1785 ac_top_srcdir=$ac_top_build_prefix$srcdir
1786 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1790 cd "$ac_dir" || { ac_status=$?; continue; }
1791 # Check for guested configure.
1792 if test -f "$ac_srcdir/configure.gnu"; then
1794 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1795 elif test -f "$ac_srcdir/configure"; then
1797 $SHELL "$ac_srcdir/configure" --help=recursive
1799 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 cd "$ac_pwd" || { ac_status=$?; break; }
1805 test -n "$ac_init_help" && exit $ac_status
1806 if $ac_init_version; then
1809 generated by GNU Autoconf 2.65
1811 Copyright (C) 2009 Free Software Foundation, Inc.
1812 This configure script is free software; the Free Software Foundation
1813 gives unlimited permission to copy, distribute and modify it.
1818 ## ------------------------ ##
1819 ## Autoconf initialization. ##
1820 ## ------------------------ ##
1822 # ac_fn_c_try_compile LINENO
1823 # --------------------------
1824 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext
1829 if { { ac_try="$ac_compile"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_compile") 2>conftest.err
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest.$ac_objext; then :
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 as_fn_set_status $ac_retval
1858 } # ac_fn_c_try_compile
1860 # ac_fn_c_try_cpp LINENO
1861 # ----------------------
1862 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_cpp conftest.$ac_ext"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } >/dev/null && {
1882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 as_fn_set_status $ac_retval
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1902 ac_fn_c_check_header_mongrel ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1915 # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_header_compiler=yes
1926 ac_header_compiler=no
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940 ac_header_preproc=yes
1942 ac_header_preproc=no
1944 rm -f conftest.err conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1948 # So? What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1968 ## ------------------------------------------ ##
1969 ## Report this to http://bugzilla.scilab.org/ ##
1970 ## ------------------------------------------ ##
1972 ) | sed "s/^/$as_me: WARNING: /" >&2
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1980 eval "$3=\$ac_header_compiler"
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_header_mongrel
1990 # ac_fn_c_try_run LINENO
1991 # ----------------------
1992 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1993 # that executables *can* be run.
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if { { ac_try="$ac_link"
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004 (eval "$ac_link") 2>&5
2006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2008 { { case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013 $as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_try") 2>&5
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; }; }; then :
2020 $as_echo "$as_me: program exited with status $ac_status" >&5
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2024 ac_retval=$ac_status
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 as_fn_set_status $ac_retval
2032 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2033 # -------------------------------------------------------
2034 # Tests whether HEADER exists and can be compiled using the include files in
2035 # INCLUDES, setting the cache variable VAR accordingly.
2036 ac_fn_c_check_header_compile ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_header_compile
2063 # ac_fn_c_try_link LINENO
2064 # -----------------------
2065 # Try to link conftest.$ac_ext, and return whether this succeeded.
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext conftest$ac_exeext
2070 if { { ac_try="$ac_link"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_link") 2>conftest.err
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_c_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest$ac_exeext && {
2089 test "$cross_compiling" = yes ||
2090 $as_test_x conftest$ac_exeext
2094 $as_echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2100 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2101 # interfere with the next link command; also delete a directory that is
2102 # left behind by Apple's compiler. We do this before executing the actions.
2103 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105 as_fn_set_status $ac_retval
2107 } # ac_fn_c_try_link
2109 # ac_fn_c_check_func LINENO FUNC VAR
2110 # ----------------------------------
2111 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2112 ac_fn_c_check_func ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 $as_echo_n "(cached) " >&6
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2124 #define $2 innocuous_$2
2126 /* System header to define __stub macros and hopefully few prototypes,
2127 which can conflict with char $2 (); below.
2128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2129 <limits.h> exists even on freestanding compilers. */
2132 # include <limits.h>
2134 # include <assert.h>
2139 /* Override any GCC internal prototype to avoid an error.
2140 Use char because int might match the return type of a GCC
2141 builtin and then its argument prototype would still apply. */
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined __stub_$2 || defined __stub___$2
2161 if ac_fn_c_try_link "$LINENO"; then :
2166 rm -f core conftest.err conftest.$ac_objext \
2167 conftest$ac_exeext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171 $as_echo "$ac_res" >&6; }
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 } # ac_fn_c_check_func
2176 # ac_fn_f77_try_compile LINENO
2177 # ----------------------------
2178 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2179 ac_fn_f77_try_compile ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 rm -f conftest.$ac_objext
2183 if { { ac_try="$ac_compile"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189 $as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_compile") 2>conftest.err
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } && {
2199 test -z "$ac_f77_werror_flag" ||
2200 test ! -s conftest.err
2201 } && test -s conftest.$ac_objext; then :
2204 $as_echo "$as_me: failed program was:" >&5
2205 sed 's/^/| /' conftest.$ac_ext >&5
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_f77_try_compile
2214 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2215 # --------------------------------------------
2216 # Tries to find the compile-time value of EXPR in a program that includes
2217 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2219 ac_fn_c_compute_int ()
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if test "$cross_compiling" = yes; then
2223 # Depending upon the size, compute the lo and hi bounds.
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) >= 0)];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2253 if ac_fn_c_try_compile "$LINENO"; then :
2254 ac_hi=$ac_mid; break
2256 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2257 if test $ac_lo -le $ac_mid; then
2261 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2272 static int test_array [1 - 2 * !(($2) < 0)];
2279 if ac_fn_c_try_compile "$LINENO"; then :
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 ac_lo=$ac_mid; break
2298 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2299 if test $ac_mid -le $ac_hi; then
2303 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 # Binary search between lo and hi bounds.
2314 while test "x$ac_lo" != "x$ac_hi"; do
2315 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2344 static long int longval () { return $2; }
2345 static unsigned long int ulongval () { return $2; }
2352 FILE *f = fopen ("conftest.val", "w");
2357 long int i = longval ();
2360 fprintf (f, "%ld", i);
2364 unsigned long int i = ulongval ();
2367 fprintf (f, "%lu", i);
2369 /* Do not output a trailing newline, as this causes \r\n confusion
2370 on some platforms. */
2371 return ferror (f) || fclose (f) != 0;
2377 if ac_fn_c_try_run "$LINENO"; then :
2378 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2383 conftest.$ac_objext conftest.beam conftest.$ac_ext
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 as_fn_set_status $ac_retval
2390 } # ac_fn_c_compute_int
2392 # ac_fn_cxx_try_compile LINENO
2393 # ----------------------------
2394 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2395 ac_fn_cxx_try_compile ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 rm -f conftest.$ac_objext
2399 if { { ac_try="$ac_compile"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2405 $as_echo "$ac_try_echo"; } >&5
2406 (eval "$ac_compile") 2>conftest.err
2408 if test -s conftest.err; then
2409 grep -v '^ *+' conftest.err >conftest.er1
2410 cat conftest.er1 >&5
2411 mv -f conftest.er1 conftest.err
2413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2414 test $ac_status = 0; } && {
2415 test -z "$ac_cxx_werror_flag" ||
2416 test ! -s conftest.err
2417 } && test -s conftest.$ac_objext; then :
2420 $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2425 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2426 as_fn_set_status $ac_retval
2428 } # ac_fn_cxx_try_compile
2430 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2431 # ----------------------------------------------------
2432 # Tries to find if the field MEMBER exists in type AGGR, after including
2433 # INCLUDES, setting cache variable VAR accordingly.
2434 ac_fn_c_check_member ()
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2438 $as_echo_n "checking for $2.$3... " >&6; }
2439 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2440 $as_echo_n "(cached) " >&6
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2455 if ac_fn_c_try_compile "$LINENO"; then :
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2465 if (sizeof ac_aggr.$3)
2471 if ac_fn_c_try_compile "$LINENO"; then :
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2482 $as_echo "$ac_res" >&6; }
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2485 } # ac_fn_c_check_member
2487 # ac_fn_cxx_try_cpp LINENO
2488 # ------------------------
2489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2490 ac_fn_cxx_try_cpp ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if { { ac_try="$ac_cpp conftest.$ac_ext"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 $as_echo "$ac_try_echo"; } >&5
2500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } >/dev/null && {
2509 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2510 test ! -s conftest.err
2514 $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2520 as_fn_set_status $ac_retval
2522 } # ac_fn_cxx_try_cpp
2524 # ac_fn_cxx_try_link LINENO
2525 # -------------------------
2526 # Try to link conftest.$ac_ext, and return whether this succeeded.
2527 ac_fn_cxx_try_link ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 rm -f conftest.$ac_objext conftest$ac_exeext
2531 if { { ac_try="$ac_link"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link") 2>conftest.err
2540 if test -s conftest.err; then
2541 grep -v '^ *+' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2543 mv -f conftest.er1 conftest.err
2545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; } && {
2547 test -z "$ac_cxx_werror_flag" ||
2548 test ! -s conftest.err
2549 } && test -s conftest$ac_exeext && {
2550 test "$cross_compiling" = yes ||
2551 $as_test_x conftest$ac_exeext
2555 $as_echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2560 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2561 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2562 # interfere with the next link command; also delete a directory that is
2563 # left behind by Apple's compiler. We do this before executing the actions.
2564 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2566 as_fn_set_status $ac_retval
2568 } # ac_fn_cxx_try_link
2570 # ac_fn_f77_try_link LINENO
2571 # -------------------------
2572 # Try to link conftest.$ac_ext, and return whether this succeeded.
2573 ac_fn_f77_try_link ()
2575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2576 rm -f conftest.$ac_objext conftest$ac_exeext
2577 if { { ac_try="$ac_link"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2583 $as_echo "$ac_try_echo"; } >&5
2584 (eval "$ac_link") 2>conftest.err
2586 if test -s conftest.err; then
2587 grep -v '^ *+' conftest.err >conftest.er1
2588 cat conftest.er1 >&5
2589 mv -f conftest.er1 conftest.err
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; } && {
2593 test -z "$ac_f77_werror_flag" ||
2594 test ! -s conftest.err
2595 } && test -s conftest$ac_exeext && {
2596 test "$cross_compiling" = yes ||
2597 $as_test_x conftest$ac_exeext
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2608 # interfere with the next link command; also delete a directory that is
2609 # left behind by Apple's compiler. We do this before executing the actions.
2610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2612 as_fn_set_status $ac_retval
2614 } # ac_fn_f77_try_link
2615 cat >config.log <<_ACEOF
2616 This file contains any messages produced by compilers while
2617 running configure, to aid debugging if configure makes a mistake.
2619 It was created by Scilab $as_me 5, which was
2620 generated by GNU Autoconf 2.65. Invocation command line was
2632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 $as_echo "PATH: $as_dir"
2672 # Keep a trace of the command line.
2673 # Strip out --no-create and --no-recursion so they do not pile up.
2674 # Strip out --silent because we don't want to record it for future runs.
2675 # Also quote any args containing shell meta-characters.
2676 # Make two passes to allow for proper duplicate-argument suppression.
2680 ac_must_keep_next=false
2686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2688 | -silent | --silent | --silen | --sile | --sil)
2691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2694 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2696 as_fn_append ac_configure_args1 " '$ac_arg'"
2697 if test $ac_must_keep_next = true; then
2698 ac_must_keep_next=false # Got value, back to normal.
2701 *=* | --config-cache | -C | -disable-* | --disable-* \
2702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2704 | -with-* | --with-* | -without-* | --without-* | --x)
2705 case "$ac_configure_args0 " in
2706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2709 -* ) ac_must_keep_next=true ;;
2712 as_fn_append ac_configure_args " '$ac_arg'"
2717 { ac_configure_args0=; unset ac_configure_args0;}
2718 { ac_configure_args1=; unset ac_configure_args1;}
2720 # When interrupted or exit'd, cleanup temporary files, and complete
2721 # config.log. We remove comments because anyway the quotes in there
2722 # would cause problems or look ugly.
2723 # WARNING: Use '\'' to represent an apostrophe within the trap.
2724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2725 trap 'exit_status=$?
2726 # Save into config.log some information that might help in debugging.
2731 ## ---------------- ##
2732 ## Cache variables. ##
2733 ## ---------------- ##
2736 # The following way of writing the cache mishandles newlines in values,
2738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2739 eval ac_val=\$$ac_var
2743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2747 _ | IFS | as_nl) ;; #(
2748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2749 *) { eval $ac_var=; unset $ac_var;} ;;
2754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2755 *${as_nl}ac_space=\ *)
2757 "s/'\''/'\''\\\\'\'''\''/g;
2758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2769 ## ----------------- ##
2770 ## Output variables. ##
2771 ## ----------------- ##
2774 for ac_var in $ac_subst_vars
2776 eval ac_val=\$$ac_var
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 $as_echo "$ac_var='\''$ac_val'\''"
2784 if test -n "$ac_subst_files"; then
2786 ## ------------------- ##
2787 ## File substitutions. ##
2788 ## ------------------- ##
2791 for ac_var in $ac_subst_files
2793 eval ac_val=\$$ac_var
2795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 $as_echo "$ac_var='\''$ac_val'\''"
2802 if test -s confdefs.h; then
2812 test "$ac_signal" != 0 &&
2813 $as_echo "$as_me: caught signal $ac_signal"
2814 $as_echo "$as_me: exit $exit_status"
2816 rm -f core *.core core.conftest.* &&
2817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2820 for ac_signal in 1 2 13 15; do
2821 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2826 rm -f -r conftest* confdefs.h
2828 $as_echo "/* confdefs.h */" > confdefs.h
2830 # Predefined preprocessor variables.
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_NAME "$PACKAGE_NAME"
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2840 cat >>confdefs.h <<_ACEOF
2841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2844 cat >>confdefs.h <<_ACEOF
2845 #define PACKAGE_STRING "$PACKAGE_STRING"
2848 cat >>confdefs.h <<_ACEOF
2849 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2852 cat >>confdefs.h <<_ACEOF
2853 #define PACKAGE_URL "$PACKAGE_URL"
2857 # Let the site file select an alternate cache file if it wants to.
2858 # Prefer an explicitly selected file to automatically selected ones.
2861 if test -n "$CONFIG_SITE"; then
2862 ac_site_file1=$CONFIG_SITE
2863 elif test "x$prefix" != xNONE; then
2864 ac_site_file1=$prefix/share/config.site
2865 ac_site_file2=$prefix/etc/config.site
2867 ac_site_file1=$ac_default_prefix/share/config.site
2868 ac_site_file2=$ac_default_prefix/etc/config.site
2870 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2872 test "x$ac_site_file" = xNONE && continue
2873 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2875 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2876 sed 's/^/| /' "$ac_site_file" >&5
2881 if test -r "$cache_file"; then
2882 # Some versions of bash will fail to source /dev/null (special files
2883 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2884 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2886 $as_echo "$as_me: loading cache $cache_file" >&6;}
2888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2889 *) . "./$cache_file";;
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2894 $as_echo "$as_me: creating cache $cache_file" >&6;}
2898 gt_needs="$gt_needs "
2899 # Check that the precious variables saved in the cache have kept the same
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2914 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x $ac_old_val`
2921 ac_new_val_w=`echo x $ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2925 ac_cache_corrupted=:
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 SCI_BUILDDIR="`pwd`"
2971 SCI_SRCDIR="$srcdir"
2972 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2974 SCILAB_LIBRARY_VERSION=5:3:0
2977 #shared library versioning
2978 #GENERIC_LIBRARY_VERSION=1:2:0
2982 # current:revision:age
2984 # | | +- increment if interfaces have been added
2985 # | | set to zero if interfaces have been removed
2987 # | +- increment if source code has changed
2988 # | set to zero if current is incremented
2989 # +- increment if interfaces have been added, removed or changed
2991 # Check if we have a space in the path to the source tree
2992 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2993 if test "$SPACE_IN_PATH" = "0"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2995 $as_echo "$as_me: WARNING: =====================================" >&2;}
2996 { $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
2997 $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;}
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
2999 $as_echo "$as_me: WARNING: =====================================" >&2;}
3004 for ac_dir in config "$srcdir"/config; do
3005 for ac_t in install-sh install.sh shtool; do
3006 if test -f "$ac_dir/$ac_t"; then
3008 ac_install_sh="$ac_aux_dir/$ac_t -c"
3013 if test -z "$ac_aux_dir"; then
3014 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3017 # These three variables are undocumented and unsupported,
3018 # and are intended to be withdrawn in a future Autoconf release.
3019 # They can cause serious problems if a builder's source tree is in a directory
3020 # whose full name contains unusual characters.
3021 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3022 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3023 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3026 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3030 # expand $ac_aux_dir to an absolute path
3031 am_aux_dir=`cd $ac_aux_dir && pwd`
3033 if test x"${install_sh}" != xset; then
3036 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3038 install_sh="\${SHELL} $am_aux_dir/install-sh"
3042 # Installed binaries are usually stripped using `strip' when the user
3043 # run `make install-strip'. However `strip' might not be the right
3044 # tool to use in cross-compilation environments, therefore Automake
3045 # will honor the `STRIP' environment variable to overrule this program.
3046 if test "$cross_compiling" != no; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_STRIP+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$STRIP"; then
3056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 STRIP=$ac_cv_prog_STRIP
3076 if test -n "$STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3078 $as_echo "$STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3086 if test -z "$ac_cv_prog_STRIP"; then
3088 # Extract the first word of "strip", so it can be a program name with args.
3089 set dummy strip; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$ac_ct_STRIP"; then
3096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_ac_ct_STRIP="strip"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3116 if test -n "$ac_ct_STRIP"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3118 $as_echo "$ac_ct_STRIP" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3124 if test "x$ac_ct_STRIP" = x; then
3127 case $cross_compiling:$ac_tool_warned in
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3136 STRIP="$ac_cv_prog_STRIP"
3140 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3143 $as_echo_n "checking whether ln -s works... " >&6; }
3145 if test "$LN_S" = "ln -s"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3147 $as_echo "yes" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3150 $as_echo "no, using $LN_S" >&6; }
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3198 if test -z "$ac_cv_prog_CC"; then
3200 # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_ac_ct_CC="gcc"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3236 if test "x$ac_ct_CC" = x; then
3239 case $cross_compiling:$ac_tool_warned in
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3251 if test -z "$CC"; then
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if test "${ac_cv_prog_CC+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC="${ac_tool_prefix}cc"
3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 if test -n "$CC"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3283 $as_echo "$CC" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 $as_echo "no" >&6; }
3292 if test -z "$CC"; then
3293 # Extract the first word of "cc", so it can be a program name with args.
3294 set dummy cc; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if test "${ac_cv_prog_CC+set}" = set; then :
3298 $as_echo_n "(cached) " >&6
3300 if test -n "$CC"; then
3301 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3312 ac_prog_rejected=yes
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 if test $ac_prog_rejected = yes; then
3324 # We found a bogon in the path, so make sure we never use it.
3325 set dummy $ac_cv_prog_CC
3327 if test $# != 0; then
3328 # We chose a different compiler from the bogus one.
3329 # However, it has the same basename, so the bogon will be chosen
3330 # first if we set CC to just the basename; use the full file name.
3332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 for ac_prog in cl.exe
3352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if test "${ac_cv_prog_CC+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 if test -n "$CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3389 test -n "$CC" && break
3392 if test -z "$CC"; then
3394 for ac_prog in cl.exe
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$ac_ct_CC"; then
3404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_ac_ct_CC="$ac_prog"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3424 if test -n "$ac_ct_CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3426 $as_echo "$ac_ct_CC" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3433 test -n "$ac_ct_CC" && break
3436 if test "x$ac_ct_CC" = x; then
3439 case $cross_compiling:$ac_tool_warned in
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3452 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error "no acceptable C compiler found in \$PATH
3455 See \`config.log' for more details." "$LINENO" 5; }
3457 # Provide some information about the compiler.
3458 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3461 for ac_option in --version -v -V -qversion; do
3462 { { ac_try="$ac_compiler $ac_option >&5"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471 if test -s conftest.err; then
3473 ... rest of stderr output deleted ...
3474 10q' conftest.err >conftest.er1
3475 cat conftest.er1 >&5
3477 rm -f conftest.er1 conftest.err
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 ac_clean_files_save=$ac_clean_files
3494 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3495 # Try to create an executable without -o first, disregard a.out.
3496 # It will help us diagnose broken compilers, and finding out an intuition
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3499 $as_echo_n "checking whether the C compiler works... " >&6; }
3500 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502 # The possible output files:
3503 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3506 for ac_file in $ac_files
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3515 if { { ac_try="$ac_link_default"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3521 $as_echo "$ac_try_echo"; } >&5
3522 (eval "$ac_link_default") 2>&5
3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3525 test $ac_status = 0; }; then :
3526 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3527 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3528 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3529 # so that the user can short-circuit this test for compilers unknown to
3531 for ac_file in $ac_files ''
3533 test -f "$ac_file" || continue
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3538 # We found the default executable, but exeext='' is most
3542 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 # We set ac_cv_exeext here because the later test for it is not
3547 # safe: cross compilers may not add the suffix if given an `-o'
3548 # argument, so we may need to know it at that point already.
3549 # Even if this section looks crufty: it has the advantage of
3556 test "$ac_cv_exeext" = no && ac_cv_exeext=
3561 if test -z "$ac_file"; then :
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3564 $as_echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 { as_fn_set_status 77
3570 as_fn_error "C compiler cannot create executables
3571 See \`config.log' for more details." "$LINENO" 5; }; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3577 $as_echo_n "checking for C compiler default output file name... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3579 $as_echo "$ac_file" >&6; }
3580 ac_exeext=$ac_cv_exeext
3582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3585 $as_echo_n "checking for suffix of executables... " >&6; }
3586 if { { ac_try="$ac_link"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_link") 2>&5
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3599 # work properly (i.e., refer to `conftest.exe'), while it won't with
3601 for ac_file in conftest.exe conftest conftest.*; do
3602 test -f "$ac_file" || continue
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error "cannot compute suffix of executables: cannot compile and link
3614 See \`config.log' for more details." "$LINENO" 5; }
3616 rm -f conftest conftest$ac_cv_exeext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3618 $as_echo "$ac_cv_exeext" >&6; }
3620 rm -f conftest.$ac_ext
3621 EXEEXT=$ac_cv_exeext
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3629 FILE *f = fopen ("conftest.out", "w");
3630 return ferror (f) || fclose (f) != 0;
3636 ac_clean_files="$ac_clean_files conftest.out"
3637 # Check that the compiler produces executables we can run. If not, either
3638 # the compiler is broken, or we cross compile.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3640 $as_echo_n "checking whether we are cross compiling... " >&6; }
3641 if test "$cross_compiling" != yes; then
3642 { { 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; }
3653 if { ac_try='./conftest$ac_cv_exeext'
3654 { { case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_try") 2>&5
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; }; then
3666 if test "$cross_compiling" = maybe; then
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "cannot run C compiled programs.
3672 If you meant to cross compile, use \`--host'.
3673 See \`config.log' for more details." "$LINENO" 5; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3678 $as_echo "$cross_compiling" >&6; }
3680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 $as_echo_n "checking for suffix of object files... " >&6; }
3684 if test "${ac_cv_objext+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3698 rm -f conftest.o conftest.obj
3699 if { { ac_try="$ac_compile"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compile") 2>&5
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 for ac_file in conftest.o conftest.obj conftest.*; do
3711 test -f "$ac_file" || continue;
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error "cannot compute suffix of object files: cannot compile
3725 See \`config.log' for more details." "$LINENO" 5; }
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3730 $as_echo "$ac_cv_objext" >&6; }
3731 OBJEXT=$ac_cv_objext
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3735 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3752 if ac_fn_c_try_compile "$LINENO"; then :
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3768 ac_test_CFLAGS=${CFLAGS+set}
3769 ac_save_CFLAGS=$CFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3772 if test "${ac_cv_prog_cc_g+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3775 ac_save_c_werror_flag=$ac_c_werror_flag
3776 ac_c_werror_flag=yes
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 if ac_fn_c_try_compile "$LINENO"; then :
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3805 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3821 if ac_fn_c_try_compile "$LINENO"; then :
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3832 $as_echo "$ac_cv_prog_cc_g" >&6; }
3833 if test "$ac_test_CFLAGS" = set; then
3834 CFLAGS=$ac_save_CFLAGS
3835 elif test $ac_cv_prog_cc_g = yes; then
3836 if test "$GCC" = yes; then
3842 if test "$GCC" = yes; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3850 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3853 ac_cv_prog_cc_c89=no
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 #include <sys/types.h>
3860 #include <sys/stat.h>
3861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3862 struct buf { int x; };
3863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3864 static char *e (p, i)
3870 static char *f (char * (*g) (char **, int), char **p, ...)
3875 s = g (p, va_arg (v,int));
3880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3881 function prototypes and stuff, but not '\xHH' hex character constants.
3882 These don't provoke an error unfortunately, instead are silently treated
3883 as 'x'. The following induces an error, until -std is added to get
3884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3885 array size at least. It's necessary to write '\x00'==0 to get something
3886 that's true only with -std. */
3887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3889 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3890 inside strings and character constants. */
3892 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3894 int test (int i, double x);
3895 struct s1 {int (*f) (int a);};
3896 struct s2 {int (*f) (double a);};
3897 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3903 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3908 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3909 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3911 CC="$ac_save_CC $ac_arg"
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_prog_cc_c89=$ac_arg
3915 rm -f core conftest.err conftest.$ac_objext
3916 test "x$ac_cv_prog_cc_c89" != "xno" && break
3918 rm -f conftest.$ac_ext
3923 case "x$ac_cv_prog_cc_c89" in
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3926 $as_echo "none needed" >&6; } ;;
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3929 $as_echo "unsupported" >&6; } ;;
3931 CC="$CC $ac_cv_prog_cc_c89"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3933 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3935 if test "x$ac_cv_prog_cc_c89" != xno; then :
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3946 # Check whether --enable-largefile was given.
3947 if test "${enable_largefile+set}" = set; then :
3948 enableval=$enable_largefile;
3951 if test "$enable_largefile" != no; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3954 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3955 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_cv_sys_largefile_CC=no
3959 if test "$GCC" != yes; then
3962 # IRIX 6.2 and later do not support large files by default,
3963 # so use the C compiler's -n32 option if that helps.
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <sys/types.h>
3967 /* Check that off_t can represent 2**63 - 1 correctly.
3968 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3969 since some C++ compilers masquerading as C compilers
3970 incorrectly reject 9223372036854775807. */
3971 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3972 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3973 && LARGE_OFF_T % 2147483647 == 1)
3983 if ac_fn_c_try_compile "$LINENO"; then :
3986 rm -f core conftest.err conftest.$ac_objext
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_sys_largefile_CC=' -n32'; break
3991 rm -f core conftest.err conftest.$ac_objext
3995 rm -f conftest.$ac_ext
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3999 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4000 if test "$ac_cv_sys_largefile_CC" != no; then
4001 CC=$CC$ac_cv_sys_largefile_CC
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4005 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4006 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <sys/types.h>
4013 /* Check that off_t can represent 2**63 - 1 correctly.
4014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4015 since some C++ compilers masquerading as C compilers
4016 incorrectly reject 9223372036854775807. */
4017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4019 && LARGE_OFF_T % 2147483647 == 1)
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_sys_file_offset_bits=no; break
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 #define _FILE_OFFSET_BITS 64
4036 #include <sys/types.h>
4037 /* Check that off_t can represent 2**63 - 1 correctly.
4038 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4039 since some C++ compilers masquerading as C compilers
4040 incorrectly reject 9223372036854775807. */
4041 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4042 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4043 && LARGE_OFF_T % 2147483647 == 1)
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_sys_file_offset_bits=64; break
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cv_sys_file_offset_bits=unknown
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4062 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4063 case $ac_cv_sys_file_offset_bits in #(
4066 cat >>confdefs.h <<_ACEOF
4067 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4072 if test $ac_cv_sys_file_offset_bits = unknown; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4074 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4075 if test "${ac_cv_sys_large_files+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <sys/types.h>
4082 /* Check that off_t can represent 2**63 - 1 correctly.
4083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4084 since some C++ compilers masquerading as C compilers
4085 incorrectly reject 9223372036854775807. */
4086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4088 && LARGE_OFF_T % 2147483647 == 1)
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_sys_large_files=no; break
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #define _LARGE_FILES 1
4105 #include <sys/types.h>
4106 /* Check that off_t can represent 2**63 - 1 correctly.
4107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4108 since some C++ compilers masquerading as C compilers
4109 incorrectly reject 9223372036854775807. */
4110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4112 && LARGE_OFF_T % 2147483647 == 1)
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_sys_large_files=1; break
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_sys_large_files=unknown
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4131 $as_echo "$ac_cv_sys_large_files" >&6; }
4132 case $ac_cv_sys_large_files in #(
4135 cat >>confdefs.h <<_ACEOF
4136 #define _LARGE_FILES $ac_cv_sys_large_files
4145 # In order to be able to change the scilab directory
4146 # See http://wiki.debian.org/RpathIssue
4147 # Find a good install program. We prefer a C program (faster),
4148 # so one script is as good as another. But avoid the broken or
4149 # incompatible versions:
4150 # SysV /etc/install, /usr/sbin/install
4151 # SunOS /usr/etc/install
4152 # IRIX /sbin/install
4154 # AmigaOS /C/install, which installs bootblocks on floppy discs
4155 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4156 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4157 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4158 # OS/2's system install, which has a completely different semantic
4159 # ./install, which can be erroneously created by make from ./install.sh.
4160 # Reject install programs that cannot install multiple files.
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4162 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4163 if test -z "$INSTALL"; then
4164 if test "${ac_cv_path_install+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 # Account for people who put trailing slashes in PATH elements.
4173 case $as_dir/ in #((
4174 ./ | .// | /[cC]/* | \
4175 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4176 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4179 # OSF1 and SCO ODT 3.0 have their own names for install.
4180 # Don't use installbsd from OSF since it installs stuff as root
4182 for ac_prog in ginstall scoinst install; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4185 if test $ac_prog = install &&
4186 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4187 # AIX install. It has an incompatible calling convention.
4189 elif test $ac_prog = install &&
4190 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4191 # program-specific install script used by HP pwplus--don't use.
4194 rm -rf conftest.one conftest.two conftest.dir
4195 echo one > conftest.one
4196 echo two > conftest.two
4198 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4199 test -s conftest.one && test -s conftest.two &&
4200 test -s conftest.dir/conftest.one &&
4201 test -s conftest.dir/conftest.two
4203 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4216 rm -rf conftest.one conftest.two conftest.dir
4219 if test "${ac_cv_path_install+set}" = set; then
4220 INSTALL=$ac_cv_path_install
4222 # As a last resort, use the slow shell script. Don't cache a
4223 # value for INSTALL within a source directory, because that will
4224 # break other packages using the cache if that directory is
4225 # removed, or if the value is a relative name.
4226 INSTALL=$ac_install_sh
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4230 $as_echo "$INSTALL" >&6; }
4232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4233 # It thinks the first close brace ends the variable substitution.
4234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4238 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4240 # Make sure we can run config.sub.
4241 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4242 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4245 $as_echo_n "checking build system type... " >&6; }
4246 if test "${ac_cv_build+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4249 ac_build_alias=$build_alias
4250 test "x$ac_build_alias" = x &&
4251 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4252 test "x$ac_build_alias" = x &&
4253 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4254 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4255 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4259 $as_echo "$ac_cv_build" >&6; }
4260 case $ac_cv_build in
4262 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4265 ac_save_IFS=$IFS; IFS='-'
4271 # Remember, the first character of IFS is used to create $*,
4272 # except with old shells:
4275 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4279 $as_echo_n "checking host system type... " >&6; }
4280 if test "${ac_cv_host+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 if test "x$host_alias" = x; then
4284 ac_cv_host=$ac_cv_build
4286 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4287 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4292 $as_echo "$ac_cv_host" >&6; }
4295 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4298 ac_save_IFS=$IFS; IFS='-'
4304 # Remember, the first character of IFS is used to create $*,
4305 # except with old shells:
4308 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4312 # Check whether --with-gnu-ld was given.
4313 if test "${with_gnu_ld+set}" = set; then :
4314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4319 # Prepare PATH_SEPARATOR.
4320 # The user is always right.
4321 if test "${PATH_SEPARATOR+set}" != set; then
4322 echo "#! /bin/sh" >conf$$.sh
4323 echo "exit 0" >>conf$$.sh
4325 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4333 if test "$GCC" = yes; then
4334 # Check if gcc -print-prog-name=ld gives a path.
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4336 $as_echo_n "checking for ld used by GCC... " >&6; }
4339 # gcc leaves a trailing carriage return which upsets mingw
4340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345 # Accept absolute paths.
4346 [\\/]* | [A-Za-z]:[\\/]*)
4347 re_direlt='/[^/][^/]*/\.\./'
4348 # Canonicalize the path of ld
4349 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4351 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4353 test -z "$LD" && LD="$ac_prog"
4356 # If it fails, then pretend we aren't using GCC.
4360 # If it is relative, then search for the first ld in PATH.
4364 elif test "$with_gnu_ld" = yes; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4366 $as_echo_n "checking for GNU ld... " >&6; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4369 $as_echo_n "checking for non-GNU ld... " >&6; }
4371 if test "${acl_cv_path_LD+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4374 if test -z "$LD"; then
4375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4376 for ac_dir in $PATH; do
4377 test -z "$ac_dir" && ac_dir=.
4378 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4379 acl_cv_path_LD="$ac_dir/$ac_prog"
4380 # Check to see if the program is GNU ld. I'd rather use --version,
4381 # but apparently some GNU ld's only accept -v.
4382 # Break only if it was the GNU/non-GNU ld that we prefer.
4383 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4384 *GNU* | *'with BFD'*)
4385 test "$with_gnu_ld" != no && break ;;
4387 test "$with_gnu_ld" != yes && break ;;
4393 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4397 LD="$acl_cv_path_LD"
4398 if test -n "$LD"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4400 $as_echo "$LD" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4405 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4407 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4408 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4411 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4412 case `$LD -v 2>&1 </dev/null` in
4413 *GNU* | *'with BFD'*)
4414 acl_cv_prog_gnu_ld=yes ;;
4416 acl_cv_prog_gnu_ld=no ;;
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4421 with_gnu_ld=$acl_cv_prog_gnu_ld
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4426 $as_echo_n "checking for shared library path variable... " >&6; }
4427 if test "${acl_cv_libpath+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4432 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4435 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4439 $as_echo "$acl_cv_libpath" >&6; }
4440 shlibpath_var="$acl_cv_shlibpath_var"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4444 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4445 # Check whether --enable-relocatable was given.
4446 if test "${enable_relocatable+set}" = set; then :
4447 enableval=$enable_relocatable; if test "$enableval" != no; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4459 $as_echo "$RELOCATABLE" >&6; }
4463 if test "X$prefix" = "XNONE"; then
4464 reloc_final_prefix="$ac_default_prefix"
4466 reloc_final_prefix="$prefix"
4469 cat >>confdefs.h <<_ACEOF
4470 #define INSTALLPREFIX "${reloc_final_prefix}"
4476 ac_cpp='$CPP $CPPFLAGS'
4477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4481 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4482 # On Suns, sometimes $CPP names a directory.
4483 if test -n "$CPP" && test -d "$CPP"; then
4486 if test -z "$CPP"; then
4487 if test "${ac_cv_prog_CPP+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4490 # Double quotes because CPP needs to be expanded
4491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4494 for ac_c_preproc_warn_flag in '' yes
4496 # Use a header file that comes with gcc, so configuring glibc
4497 # with a fresh cross-compiler works.
4498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4499 # <limits.h> exists even on freestanding compilers.
4500 # On the NeXT, cc -E runs the code through the compiler's parser,
4501 # not just through cpp. "Syntax error" is here to catch this case.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 # include <limits.h>
4507 # include <assert.h>
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4514 # Broken: fails on valid input.
4517 rm -f conftest.err conftest.$ac_ext
4519 # OK, works on sane cases. Now check whether nonexistent headers
4520 # can be detected and how.
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4523 #include <ac_nonexistent.h>
4525 if ac_fn_c_try_cpp "$LINENO"; then :
4526 # Broken: success on invalid input.
4529 # Passes both tests.
4533 rm -f conftest.err conftest.$ac_ext
4536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4537 rm -f conftest.err conftest.$ac_ext
4538 if $ac_preproc_ok; then :
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4551 $as_echo "$CPP" >&6; }
4553 for ac_c_preproc_warn_flag in '' yes
4555 # Use a header file that comes with gcc, so configuring glibc
4556 # with a fresh cross-compiler works.
4557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558 # <limits.h> exists even on freestanding compilers.
4559 # On the NeXT, cc -E runs the code through the compiler's parser,
4560 # not just through cpp. "Syntax error" is here to catch this case.
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4564 # include <limits.h>
4566 # include <assert.h>
4570 if ac_fn_c_try_cpp "$LINENO"; then :
4573 # Broken: fails on valid input.
4576 rm -f conftest.err conftest.$ac_ext
4578 # OK, works on sane cases. Now check whether nonexistent headers
4579 # can be detected and how.
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582 #include <ac_nonexistent.h>
4584 if ac_fn_c_try_cpp "$LINENO"; then :
4585 # Broken: success on invalid input.
4588 # Passes both tests.
4592 rm -f conftest.err conftest.$ac_ext
4595 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596 rm -f conftest.err conftest.$ac_ext
4597 if $ac_preproc_ok; then :
4600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4603 See \`config.log' for more details." "$LINENO" 5; }
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if test "${ac_cv_path_GREP+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 if test -z "$GREP"; then
4619 ac_path_GREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in grep ggrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631 # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 $as_echo_n 0123456789 >"conftest.in"
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'GREP' >> "conftest.nl"
4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_GREP="$ac_path_GREP"
4650 ac_path_GREP_max=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 $ac_path_GREP_found && break 3
4663 if test -z "$ac_cv_path_GREP"; then
4664 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667 ac_cv_path_GREP=$GREP
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if test "${ac_cv_path_EGREP+set}" = set; then :
4679 $as_echo_n "(cached) " >&6
4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682 then ac_cv_path_EGREP="$GREP -E"
4684 if test -z "$EGREP"; then
4685 ac_path_EGREP_found=false
4686 # Loop through the user's path and test for each of PROGNAME-LIST
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 test -z "$as_dir" && as_dir=.
4692 for ac_prog in egrep; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697 # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 $as_echo_n 0123456789 >"conftest.in"
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 $as_echo 'EGREP' >> "conftest.nl"
4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_EGREP="$ac_path_EGREP"
4716 ac_path_EGREP_max=$ac_count
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 $ac_path_EGREP_found && break 3
4729 if test -z "$ac_cv_path_EGREP"; then
4730 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733 ac_cv_path_EGREP=$EGREP
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4744 $as_echo_n "checking for ANSI C header files... " >&6; }
4745 if test "${ac_cv_header_stdc+set}" = set; then :
4746 $as_echo_n "(cached) " >&6
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_header_stdc=yes
4766 ac_cv_header_stdc=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $ac_cv_header_stdc = yes; then
4771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "memchr" >/dev/null 2>&1; then :
4781 ac_cv_header_stdc=no
4787 if test $ac_cv_header_stdc = yes; then
4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "free" >/dev/null 2>&1; then :
4798 ac_cv_header_stdc=no
4804 if test $ac_cv_header_stdc = yes; then
4805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4806 if test "$cross_compiling" = yes; then :
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4813 #if ((' ' & 0x0FF) == 0x020)
4814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817 # define ISLOWER(c) \
4818 (('a' <= (c) && (c) <= 'i') \
4819 || ('j' <= (c) && (c) <= 'r') \
4820 || ('s' <= (c) && (c) <= 'z'))
4821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4829 for (i = 0; i < 256; i++)
4830 if (XOR (islower (i), ISLOWER (i))
4831 || toupper (i) != TOUPPER (i))
4836 if ac_fn_c_try_run "$LINENO"; then :
4839 ac_cv_header_stdc=no
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4842 conftest.$ac_objext conftest.beam conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4848 $as_echo "$ac_cv_header_stdc" >&6; }
4849 if test $ac_cv_header_stdc = yes; then
4851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4857 inttypes.h stdint.h unistd.h
4859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4862 eval as_val=\$$as_ac_Header
4863 if test "x$as_val" = x""yes; then :
4864 cat >>confdefs.h <<_ACEOF
4865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4880 use_elf_origin_trick=no
4881 if test $RELOCATABLE = yes; then
4882 # --enable-relocatable implies --disable-rpath
4885 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4887 for ac_header in unistd.h mach-o/dyld.h
4889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4890 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4891 eval as_val=\$$as_ac_Header
4892 if test "x$as_val" = x""yes; then :
4893 cat >>confdefs.h <<_ACEOF
4894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4901 for ac_func in _NSGetExecutablePath
4903 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4904 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4905 cat >>confdefs.h <<_ACEOF
4906 #define HAVE__NSGETEXECUTABLEPATH 1
4913 mingw*) is_noop=yes ;;
4914 linux*) use_elf_origin_trick=yes ;;
4916 if test $is_noop = yes; then
4917 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4919 if test $use_elf_origin_trick = yes; then
4920 case "$ac_aux_dir" in
4921 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4922 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4924 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4926 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\""
4927 case "$ac_aux_dir" in
4928 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4929 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4937 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4938 RELOCATABLE_VIA_LD_TRUE=
4939 RELOCATABLE_VIA_LD_FALSE='#'
4941 RELOCATABLE_VIA_LD_TRUE='#'
4942 RELOCATABLE_VIA_LD_FALSE=
4948 if test $RELOCATABLE = yes; then
4949 case " $LIBOBJS " in
4950 *" relocatable.$ac_objext "* ) ;;
4951 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4959 if test "X$prefix" = "XNONE"; then
4960 reloc_final_prefix="$ac_default_prefix"
4962 reloc_final_prefix="$prefix"
4965 cat >>confdefs.h <<_ACEOF
4966 #define INSTALLPREFIX "${reloc_final_prefix}"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4973 $as_echo_n "checking for shared library run path origin... " >&6; }
4974 if test "${acl_cv_rpath+set}" = set; then :
4975 $as_echo_n "(cached) " >&6
4978 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4979 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4986 $as_echo "$acl_cv_rpath" >&6; }
4988 acl_libext="$acl_cv_libext"
4989 acl_shlibext="$acl_cv_shlibext"
4990 acl_libname_spec="$acl_cv_libname_spec"
4991 acl_library_names_spec="$acl_cv_library_names_spec"
4992 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4993 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4994 acl_hardcode_direct="$acl_cv_hardcode_direct"
4995 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4996 # Check whether --enable-rpath was given.
4997 if test "${enable_rpath+set}" = set; then :
4998 enableval=$enable_rpath; :
5005 # If configure detect that timestamp changed,
5006 # it tries to rebuild configure & makefile which can be a painmaker
5007 # if the version is different
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5010 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5011 # Check whether --enable-maintainer-mode was given.
5012 if test "${enable_maintainer_mode+set}" = set; then :
5013 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5015 USE_MAINTAINER_MODE=no
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5019 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5020 if test $USE_MAINTAINER_MODE = yes; then
5021 MAINTAINER_MODE_TRUE=
5022 MAINTAINER_MODE_FALSE='#'
5024 MAINTAINER_MODE_TRUE='#'
5025 MAINTAINER_MODE_FALSE=
5028 MAINT=$MAINTAINER_MODE_TRUE
5032 am__api_version='1.11'
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5035 $as_echo_n "checking whether build environment is sane... " >&6; }
5038 echo timestamp > conftest.file
5039 # Reject unsafe characters in $srcdir or the absolute working directory
5040 # name. Accept space and tab only in the latter.
5044 *[\\\"\#\$\&\'\`$am_lf]*)
5045 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5048 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5049 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5052 # Do `set' in a subshell so we don't clobber the current shell's
5053 # arguments. Must try -L first in case configure is actually a
5054 # symlink; some systems play weird games with the mod time of symlinks
5055 # (eg FreeBSD returns the mod time of the symlink's containing
5058 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5059 if test "$*" = "X"; then
5061 set X `ls -t "$srcdir/configure" conftest.file`
5064 if test "$*" != "X $srcdir/configure conftest.file" \
5065 && test "$*" != "X conftest.file $srcdir/configure"; then
5067 # If neither matched, then we have a broken ls. This can happen
5068 # if, for instance, CONFIG_SHELL is bash and it inherits a
5069 # broken ls alias from the environment. This has actually
5070 # happened. Such a system could not be considered "sane".
5071 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5072 alias in your environment" "$LINENO" 5
5075 test "$2" = conftest.file
5081 as_fn_error "newly created file is older than distributed files!
5082 Check your system clock" "$LINENO" 5
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5085 $as_echo "yes" >&6; }
5086 test "$program_prefix" != NONE &&
5087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5088 # Use a double $ so make ignores it.
5089 test "$program_suffix" != NONE &&
5090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5091 # Double any \ or $.
5092 # By default was `s,x,x', remove it if useless.
5093 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5094 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5096 if test x"${MISSING+set}" != xset; then
5099 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5101 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5104 # Use eval to expand $SHELL
5105 if eval "$MISSING --run true"; then
5106 am_missing_run="$MISSING --run "
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5110 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5114 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5115 if test -z "$MKDIR_P"; then
5116 if test "${ac_cv_path_mkdir+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5123 test -z "$as_dir" && as_dir=.
5124 for ac_prog in mkdir gmkdir; do
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5127 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5128 'mkdir (GNU coreutils) '* | \
5129 'mkdir (coreutils) '* | \
5130 'mkdir (fileutils) '4.1*)
5131 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5141 test -d ./--version && rmdir ./--version
5142 if test "${ac_cv_path_mkdir+set}" = set; then
5143 MKDIR_P="$ac_cv_path_mkdir -p"
5145 # As a last resort, use the slow shell script. Don't cache a
5146 # value for MKDIR_P within a source directory, because that will
5147 # break other packages using the cache if that directory is
5148 # removed, or if the value is a relative name.
5149 MKDIR_P="$ac_install_sh -d"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5153 $as_echo "$MKDIR_P" >&6; }
5157 [\\/$]* | ?:[\\/]*) ;;
5158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5161 for ac_prog in gawk mawk nawk awk
5163 # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_prog_AWK+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5170 if test -n "$AWK"; then
5171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_AWK="$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 if test -n "$AWK"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5193 $as_echo "$AWK" >&6; }
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5200 test -n "$AWK" && break
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5206 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5207 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5208 $as_echo_n "(cached) " >&6
5210 cat >conftest.make <<\_ACEOF
5213 @echo '@@@%%%=$(MAKE)=@@@%%%'
5215 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5218 eval ac_cv_prog_make_${ac_make}_set=yes;;
5220 eval ac_cv_prog_make_${ac_make}_set=no;;
5224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 SET_MAKE="MAKE=${MAKE-make}"
5234 rm -rf .tst 2>/dev/null
5235 mkdir .tst 2>/dev/null
5236 if test -d .tst; then
5241 rmdir .tst 2>/dev/null
5243 DEPDIR="${am__leading_dot}deps"
5245 ac_config_commands="$ac_config_commands depfiles"
5248 am_make=${MAKE-make}
5249 cat > confinc << 'END'
5251 @echo this is the am__doit target
5254 # If we don't find an include directive, just comment out the code.
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5256 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5260 # First try GNU make style include.
5261 echo "include confinc" > confmf
5262 # Ignore all kinds of additional output from `make'.
5263 case `$am_make -s -f confmf 2> /dev/null` in #(
5264 *the\ am__doit\ target*)
5270 # Now try BSD make style include.
5271 if test "$am__include" = "#"; then
5272 echo '.include "confinc"' > confmf
5273 case `$am_make -s -f confmf 2> /dev/null` in #(
5274 *the\ am__doit\ target*)
5275 am__include=.include
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5284 $as_echo "$_am_result" >&6; }
5285 rm -f confinc confmf
5287 # Check whether --enable-dependency-tracking was given.
5288 if test "${enable_dependency_tracking+set}" = set; then :
5289 enableval=$enable_dependency_tracking;
5292 if test "x$enable_dependency_tracking" != xno; then
5293 am_depcomp="$ac_aux_dir/depcomp"
5296 if test "x$enable_dependency_tracking" != xno; then
5305 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5306 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5307 # is not polluted with repeated "-I."
5308 am__isrc=' -I$(srcdir)'
5309 # test to see if srcdir already configured
5310 if test -f $srcdir/config.status; then
5311 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5315 # test whether we have cygpath
5316 if test -z "$CYGPATH_W"; then
5317 if (cygpath --version) >/dev/null 2>/dev/null; then
5318 CYGPATH_W='cygpath -w'
5325 # Define the identity of the package.
5330 cat >>confdefs.h <<_ACEOF
5331 #define PACKAGE "$PACKAGE"
5335 cat >>confdefs.h <<_ACEOF
5336 #define VERSION "$VERSION"
5339 # Some tools Automake needs.
5341 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5344 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5347 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5350 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5353 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5355 # We need awk for the "check" target. The system "awk" is bad on
5357 # Always define AMTAR for backward compatibility.
5359 AMTAR=${AMTAR-"${am_missing_run}tar"}
5361 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5366 depcc="$CC" am_compiler_list=
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5369 $as_echo_n "checking dependency style of $depcc... " >&6; }
5370 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5374 # We make a subdir and do the tests there. Otherwise we can end up
5375 # making bogus files that we don't know about and never remove. For
5376 # instance it was reported that on HP-UX the gcc test will end up
5377 # making a dummy file named `D' -- because `-MD' means `put the output
5380 # Copy depcomp to subdir because otherwise we won't find it if we're
5381 # using a relative directory.
5382 cp "$am_depcomp" conftest.dir
5384 # We will build objects and dependencies in a subdirectory because
5385 # it helps to detect inapplicable dependency modes. For instance
5386 # both Tru64's cc and ICC support -MD to output dependencies as a
5387 # side effect of compilation, but ICC will put the dependencies in
5388 # the current directory while Tru64 will put them in the object
5392 am_cv_CC_dependencies_compiler_type=none
5393 if test "$am_compiler_list" = ""; then
5394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5397 case " $depcc " in #(
5398 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5401 for depmode in $am_compiler_list; do
5402 # Setup a source with many dependencies, because some compilers
5403 # like to wrap large dependency lists on column 80 (with \), and
5404 # we should not choose a depcomp mode which is confused by this.
5406 # We need to recreate these files for each test, as the compiler may
5407 # overwrite some of them when testing with obscure command lines.
5408 # This happens at least with the AIX C compiler.
5410 for i in 1 2 3 4 5 6; do
5411 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5412 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5413 # Solaris 8's {/usr,}/bin/sh.
5414 touch sub/conftst$i.h
5416 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5418 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5419 # mode. It turns out that the SunPro C++ compiler does not properly
5420 # handle `-M -o', and we need to detect this. Also, some Intel
5421 # versions had trouble with output in subdirs
5422 am__obj=sub/conftest.${OBJEXT-o}
5423 am__minus_obj="-o $am__obj"
5426 # This depmode causes a compiler race in universal mode.
5427 test "$am__universal" = false || continue
5430 # after this tag, mechanisms are not by side-effect, so they'll
5431 # only be used when explicitly requested
5432 if test "x$enable_dependency_tracking" = xyes; then
5438 msvisualcpp | msvcmsys)
5439 # This compiler won't grok `-c -o', but also, the minuso test has
5440 # not run yet. These depmodes are late enough in the game, and
5441 # so weak that their functioning should not be impacted.
5442 am__obj=conftest.${OBJEXT-o}
5447 if depmode=$depmode \
5448 source=sub/conftest.c object=$am__obj \
5449 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5450 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5451 >/dev/null 2>conftest.err &&
5452 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5453 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5454 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5455 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5456 # icc doesn't choke on unknown options, it will just issue warnings
5457 # or remarks (even with -Werror). So we grep stderr for any message
5458 # that says an option was ignored or not supported.
5459 # When given -MP, icc 7.0 and 7.1 complain thusly:
5460 # icc: Command line warning: ignoring option '-M'; no argument required
5461 # The diagnosis changed in icc 8.0:
5462 # icc: Command line remark: option '-MP' not supported
5463 if (grep 'ignoring option' conftest.err ||
5464 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5465 am_cv_CC_dependencies_compiler_type=$depmode
5474 am_cv_CC_dependencies_compiler_type=none
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5479 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5480 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5483 test "x$enable_dependency_tracking" != xno \
5484 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5486 am__fastdepCC_FALSE='#'
5488 am__fastdepCC_TRUE='#'
5489 am__fastdepCC_FALSE=
5493 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5497 #################################
5498 ## all the --with-* argument help
5499 #################################
5502 # Check whether --enable-debug was given.
5503 if test "${enable_debug+set}" = set; then :
5504 enableval=$enable_debug;
5508 # Check whether --enable-debug-C was given.
5509 if test "${enable_debug_C+set}" = set; then :
5510 enableval=$enable_debug_C;
5514 # Check whether --enable-debug-CXX was given.
5515 if test "${enable_debug_CXX+set}" = set; then :
5516 enableval=$enable_debug_CXX;
5520 # Check whether --enable-debug-java was given.
5521 if test "${enable_debug_java+set}" = set; then :
5522 enableval=$enable_debug_java;
5526 # Check whether --enable-debug-fortran was given.
5527 if test "${enable_debug_fortran+set}" = set; then :
5528 enableval=$enable_debug_fortran;
5532 # Check whether --enable-debug-linker was given.
5533 if test "${enable_debug_linker+set}" = set; then :
5534 enableval=$enable_debug_linker;
5538 # Check whether --enable-stopOnWarning was given.
5539 if test "${enable_stopOnWarning+set}" = set; then :
5540 enableval=$enable_stopOnWarning;
5545 # Check whether --with-gcc was given.
5546 if test "${with_gcc+set}" = set; then :
5552 # Check whether --with-g77 was given.
5553 if test "${with_g77+set}" = set; then :
5559 # Check whether --with-gfortran was given.
5560 if test "${with_gfortran+set}" = set; then :
5561 withval=$with_gfortran;
5566 # Check whether --with-intelcompilers was given.
5567 if test "${with_intelcompilers+set}" = set; then :
5568 withval=$with_intelcompilers;
5573 # Check whether --with-tk was given.
5574 if test "${with_tk+set}" = set; then :
5580 # Check whether --with-javasci was given.
5581 if test "${with_javasci+set}" = set; then :
5582 withval=$with_javasci;
5586 # Check whether --enable-compilation-tests was given.
5587 if test "${enable_compilation_tests+set}" = set; then :
5588 enableval=$enable_compilation_tests;
5593 # Check whether --with-gui was given.
5594 if test "${with_gui+set}" = set; then :
5599 # Check whether --enable-build-swig was given.
5600 if test "${enable_build_swig+set}" = set; then :
5601 enableval=$enable_build_swig;
5605 # Check whether --enable-build-giws was given.
5606 if test "${enable_build_giws+set}" = set; then :
5607 enableval=$enable_build_giws;
5612 ################################################
5613 ########## compilator & misc programs detection
5614 ################################################
5617 ac_cpp='$CPP $CPPFLAGS'
5618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5622 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5623 # On Suns, sometimes $CPP names a directory.
5624 if test -n "$CPP" && test -d "$CPP"; then
5627 if test -z "$CPP"; then
5628 if test "${ac_cv_prog_CPP+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5631 # Double quotes because CPP needs to be expanded
5632 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5635 for ac_c_preproc_warn_flag in '' yes
5637 # Use a header file that comes with gcc, so configuring glibc
5638 # with a fresh cross-compiler works.
5639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5640 # <limits.h> exists even on freestanding compilers.
5641 # On the NeXT, cc -E runs the code through the compiler's parser,
5642 # not just through cpp. "Syntax error" is here to catch this case.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5646 # include <limits.h>
5648 # include <assert.h>
5652 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: fails on valid input.
5658 rm -f conftest.err conftest.$ac_ext
5660 # OK, works on sane cases. Now check whether nonexistent headers
5661 # can be detected and how.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <ac_nonexistent.h>
5666 if ac_fn_c_try_cpp "$LINENO"; then :
5667 # Broken: success on invalid input.
5670 # Passes both tests.
5674 rm -f conftest.err conftest.$ac_ext
5677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5678 rm -f conftest.err conftest.$ac_ext
5679 if $ac_preproc_ok; then :
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5692 $as_echo "$CPP" >&6; }
5694 for ac_c_preproc_warn_flag in '' yes
5696 # Use a header file that comes with gcc, so configuring glibc
5697 # with a fresh cross-compiler works.
5698 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5699 # <limits.h> exists even on freestanding compilers.
5700 # On the NeXT, cc -E runs the code through the compiler's parser,
5701 # not just through cpp. "Syntax error" is here to catch this case.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5705 # include <limits.h>
5707 # include <assert.h>
5711 if ac_fn_c_try_cpp "$LINENO"; then :
5714 # Broken: fails on valid input.
5717 rm -f conftest.err conftest.$ac_ext
5719 # OK, works on sane cases. Now check whether nonexistent headers
5720 # can be detected and how.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <ac_nonexistent.h>
5725 if ac_fn_c_try_cpp "$LINENO"; then :
5726 # Broken: success on invalid input.
5729 # Passes both tests.
5733 rm -f conftest.err conftest.$ac_ext
5736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5737 rm -f conftest.err conftest.$ac_ext
5738 if $ac_preproc_ok; then :
5741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5743 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5744 See \`config.log' for more details." "$LINENO" 5; }
5748 ac_cpp='$CPP $CPPFLAGS'
5749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5754 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5755 if test "${ac_cv_path_GREP+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5758 if test -z "$GREP"; then
5759 ac_path_GREP_found=false
5760 # Loop through the user's path and test for each of PROGNAME-LIST
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5765 test -z "$as_dir" && as_dir=.
5766 for ac_prog in grep ggrep; do
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5769 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5770 # Check for GNU ac_path_GREP and select it if it is found.
5771 # Check for GNU $ac_path_GREP
5772 case `"$ac_path_GREP" --version 2>&1` in
5774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5777 $as_echo_n 0123456789 >"conftest.in"
5780 cat "conftest.in" "conftest.in" >"conftest.tmp"
5781 mv "conftest.tmp" "conftest.in"
5782 cp "conftest.in" "conftest.nl"
5783 $as_echo 'GREP' >> "conftest.nl"
5784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5786 as_fn_arith $ac_count + 1 && ac_count=$as_val
5787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5788 # Best one so far, save it but keep looking for a better one
5789 ac_cv_path_GREP="$ac_path_GREP"
5790 ac_path_GREP_max=$ac_count
5792 # 10*(2^10) chars as input seems more than enough
5793 test $ac_count -gt 10 && break
5795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5798 $ac_path_GREP_found && break 3
5803 if test -z "$ac_cv_path_GREP"; then
5804 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5807 ac_cv_path_GREP=$GREP
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5812 $as_echo "$ac_cv_path_GREP" >&6; }
5813 GREP="$ac_cv_path_GREP"
5818 #### Mac OS X set of fink path with provided
5822 # Check whether --with-fink_prefix was given.
5823 if test "${with_fink_prefix+set}" = set; then :
5824 withval=$with_fink_prefix;
5830 if test -n "$with_fink_prefix"; then
5831 # If with-fink-prefix is provided, use the provided path to make sure that we will
5832 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5833 # Therefor, we use the one in fink)
5834 FINK_PREFIX="$with_fink_prefix/"
5836 # Exec the init script of fink to make sure that the env is set
5837 if test -f $with_fink_prefix/bin/init.sh; then
5838 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5839 source $with_fink_prefix/bin/init.sh
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5842 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5850 #####################################################
5851 ## Look for pkg-config
5852 #####################################################
5855 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5866 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5888 if test -n "$PKG_CONFIG"; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5890 $as_echo "$PKG_CONFIG" >&6; }
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5898 if test -z "$ac_cv_path_PKG_CONFIG"; then
5899 ac_pt_PKG_CONFIG=$PKG_CONFIG
5900 # Extract the first word of "pkg-config", so it can be a program name with args.
5901 set dummy pkg-config; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5907 case $ac_pt_PKG_CONFIG in
5909 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5931 if test -n "$ac_pt_PKG_CONFIG"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5933 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5939 if test "x$ac_pt_PKG_CONFIG" = x; then
5942 case $cross_compiling:$ac_tool_warned in
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5946 ac_tool_warned=yes ;;
5948 PKG_CONFIG=$ac_pt_PKG_CONFIG
5951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5955 if test -n "$PKG_CONFIG"; then
5956 _pkg_min_version=0.9.0
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5958 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5961 $as_echo "yes" >&6; }
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5964 $as_echo "no" >&6; }
5970 #####################################################
5971 ## check if options are correct (or not)
5972 #####################################################
5974 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5975 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5978 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5979 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5982 ######## fortran ########
5983 if test "$with_g77" = yes; then
5985 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5986 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5987 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5988 if test -n "$ac_tool_prefix"; then
5991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if test "${ac_cv_prog_F77+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if test -n "$F77"; then
5999 ac_cv_prog_F77="$F77" # Let the user override the test.
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 test -z "$as_dir" && as_dir=.
6006 for ac_exec_ext in '' $ac_executable_extensions; do
6007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6008 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 if test -n "$F77"; then
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6021 $as_echo "$F77" >&6; }
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6028 test -n "$F77" && break
6031 if test -z "$F77"; then
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy $ac_prog; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$ac_ct_F77"; then
6043 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_ac_ct_F77="$ac_prog"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6063 if test -n "$ac_ct_F77"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6065 $as_echo "$ac_ct_F77" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6072 test -n "$ac_ct_F77" && break
6075 if test "x$ac_ct_F77" = x; then
6078 case $cross_compiling:$ac_tool_warned in
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6089 # Provide some information about the compiler.
6090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6093 for ac_option in --version -v -V -qversion; do
6094 { { ac_try="$ac_compiler $ac_option >&5"
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6100 $as_echo "$ac_try_echo"; } >&5
6101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6103 if test -s conftest.err; then
6105 ... rest of stderr output deleted ...
6106 10q' conftest.err >conftest.er1
6107 cat conftest.er1 >&5
6109 rm -f conftest.er1 conftest.err
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; }
6115 # If we don't use `.F' as extension, the preprocessor is not run on the
6116 # input file. (Note that this only needs to work for GNU compilers.)
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6120 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6121 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 cat > conftest.$ac_ext <<_ACEOF
6132 if ac_fn_f77_try_compile "$LINENO"; then :
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6142 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6144 ac_test_FFLAGS=${FFLAGS+set}
6145 ac_save_FFLAGS=$FFLAGS
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6148 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6149 if test "${ac_cv_prog_f77_g+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6153 cat > conftest.$ac_ext <<_ACEOF
6158 if ac_fn_f77_try_compile "$LINENO"; then :
6159 ac_cv_prog_f77_g=yes
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6167 $as_echo "$ac_cv_prog_f77_g" >&6; }
6168 if test "$ac_test_FFLAGS" = set; then
6169 FFLAGS=$ac_save_FFLAGS
6170 elif test $ac_cv_prog_f77_g = yes; then
6171 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6184 if test $ac_compiler_gnu = yes; then
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 if test -z "$F77"; then
6196 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6200 if test "$with_gfortran" = yes; then
6202 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6203 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6205 if test -n "$ac_tool_prefix"; then
6206 for ac_prog in gfortran
6208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_F77+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6215 if test -n "$F77"; then
6216 ac_cv_prog_F77="$F77" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 if test -n "$F77"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6238 $as_echo "$F77" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6245 test -n "$F77" && break
6248 if test -z "$F77"; then
6250 for ac_prog in gfortran
6252 # Extract the first word of "$ac_prog", so it can be a program name with args.
6253 set dummy $ac_prog; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6259 if test -n "$ac_ct_F77"; then
6260 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_F77="$ac_prog"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6280 if test -n "$ac_ct_F77"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6282 $as_echo "$ac_ct_F77" >&6; }
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6289 test -n "$ac_ct_F77" && break
6292 if test "x$ac_ct_F77" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6306 # Provide some information about the compiler.
6307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6310 for ac_option in --version -v -V -qversion; do
6311 { { ac_try="$ac_compiler $ac_option >&5"
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6317 $as_echo "$ac_try_echo"; } >&5
6318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6320 if test -s conftest.err; then
6322 ... rest of stderr output deleted ...
6323 10q' conftest.err >conftest.er1
6324 cat conftest.er1 >&5
6326 rm -f conftest.er1 conftest.err
6327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6328 test $ac_status = 0; }
6332 # If we don't use `.F' as extension, the preprocessor is not run on the
6333 # input file. (Note that this only needs to work for GNU compilers.)
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6337 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6338 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6339 $as_echo_n "(cached) " >&6
6341 cat > conftest.$ac_ext <<_ACEOF
6349 if ac_fn_f77_try_compile "$LINENO"; then :
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6359 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6361 ac_test_FFLAGS=${FFLAGS+set}
6362 ac_save_FFLAGS=$FFLAGS
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6365 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6366 if test "${ac_cv_prog_f77_g+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6370 cat > conftest.$ac_ext <<_ACEOF
6375 if ac_fn_f77_try_compile "$LINENO"; then :
6376 ac_cv_prog_f77_g=yes
6380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6384 $as_echo "$ac_cv_prog_f77_g" >&6; }
6385 if test "$ac_test_FFLAGS" = set; then
6386 FFLAGS=$ac_save_FFLAGS
6387 elif test $ac_cv_prog_f77_g = yes; then
6388 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6394 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6401 if test $ac_compiler_gnu = yes; then
6407 ac_cpp='$CPP $CPPFLAGS'
6408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6412 if test -z "$F77"; then
6413 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6417 if test "$with_intelcompilers" = yes; then
6419 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6420 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6422 if test -n "$ac_tool_prefix"; then
6423 for ac_prog in ifc ifort
6425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6426 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_F77+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6432 if test -n "$F77"; then
6433 ac_cv_prog_F77="$F77" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 if test -n "$F77"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6455 $as_echo "$F77" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6462 test -n "$F77" && break
6465 if test -z "$F77"; then
6467 for ac_prog in ifc ifort
6469 # Extract the first word of "$ac_prog", so it can be a program name with args.
6470 set dummy $ac_prog; ac_word=$2
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 $as_echo_n "checking for $ac_word... " >&6; }
6473 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6476 if test -n "$ac_ct_F77"; then
6477 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_prog_ac_ct_F77="$ac_prog"
6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6496 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6497 if test -n "$ac_ct_F77"; then
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6499 $as_echo "$ac_ct_F77" >&6; }
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6502 $as_echo "no" >&6; }
6506 test -n "$ac_ct_F77" && break
6509 if test "x$ac_ct_F77" = x; then
6512 case $cross_compiling:$ac_tool_warned in
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6523 # Provide some information about the compiler.
6524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6527 for ac_option in --version -v -V -qversion; do
6528 { { ac_try="$ac_compiler $ac_option >&5"
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6534 $as_echo "$ac_try_echo"; } >&5
6535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6537 if test -s conftest.err; then
6539 ... rest of stderr output deleted ...
6540 10q' conftest.err >conftest.er1
6541 cat conftest.er1 >&5
6543 rm -f conftest.er1 conftest.err
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }
6549 # If we don't use `.F' as extension, the preprocessor is not run on the
6550 # input file. (Note that this only needs to work for GNU compilers.)
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6554 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6555 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6558 cat > conftest.$ac_ext <<_ACEOF
6566 if ac_fn_f77_try_compile "$LINENO"; then :
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6576 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6578 ac_test_FFLAGS=${FFLAGS+set}
6579 ac_save_FFLAGS=$FFLAGS
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6582 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6583 if test "${ac_cv_prog_f77_g+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6587 cat > conftest.$ac_ext <<_ACEOF
6592 if ac_fn_f77_try_compile "$LINENO"; then :
6593 ac_cv_prog_f77_g=yes
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6601 $as_echo "$ac_cv_prog_f77_g" >&6; }
6602 if test "$ac_test_FFLAGS" = set; then
6603 FFLAGS=$ac_save_FFLAGS
6604 elif test $ac_cv_prog_f77_g = yes; then
6605 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6611 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6618 if test $ac_compiler_gnu = yes; then
6624 ac_cpp='$CPP $CPPFLAGS'
6625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629 if test -z "$F77"; then
6630 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6634 if test -z "$F77"; then
6635 ## No Frotran compiler specified... We rely on Autoconf to find the best
6637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6640 if test -n "$ac_tool_prefix"; then
6641 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if test "${ac_cv_prog_F77+set}" = set; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$F77"; then
6651 ac_cv_prog_F77="$F77" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 if test -n "$F77"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6673 $as_echo "$F77" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6680 test -n "$F77" && break
6683 if test -z "$F77"; then
6685 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6687 # Extract the first word of "$ac_prog", so it can be a program name with args.
6688 set dummy $ac_prog; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6694 if test -n "$ac_ct_F77"; then
6695 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_prog_ac_ct_F77="$ac_prog"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6715 if test -n "$ac_ct_F77"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6717 $as_echo "$ac_ct_F77" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6724 test -n "$ac_ct_F77" && break
6727 if test "x$ac_ct_F77" = x; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned=yes ;;
6741 # Provide some information about the compiler.
6742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6745 for ac_option in --version -v -V -qversion; do
6746 { { ac_try="$ac_compiler $ac_option >&5"
6748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749 *) ac_try_echo=$ac_try;;
6751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6752 $as_echo "$ac_try_echo"; } >&5
6753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6755 if test -s conftest.err; then
6757 ... rest of stderr output deleted ...
6758 10q' conftest.err >conftest.er1
6759 cat conftest.er1 >&5
6761 rm -f conftest.er1 conftest.err
6762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6763 test $ac_status = 0; }
6767 # If we don't use `.F' as extension, the preprocessor is not run on the
6768 # input file. (Note that this only needs to work for GNU compilers.)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6772 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6773 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
6776 cat > conftest.$ac_ext <<_ACEOF
6784 if ac_fn_f77_try_compile "$LINENO"; then :
6789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6794 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6796 ac_test_FFLAGS=${FFLAGS+set}
6797 ac_save_FFLAGS=$FFLAGS
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6800 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6801 if test "${ac_cv_prog_f77_g+set}" = set; then :
6802 $as_echo_n "(cached) " >&6
6805 cat > conftest.$ac_ext <<_ACEOF
6810 if ac_fn_f77_try_compile "$LINENO"; then :
6811 ac_cv_prog_f77_g=yes
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6819 $as_echo "$ac_cv_prog_f77_g" >&6; }
6820 if test "$ac_test_FFLAGS" = set; then
6821 FFLAGS=$ac_save_FFLAGS
6822 elif test $ac_cv_prog_f77_g = yes; then
6823 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6836 if test $ac_compiler_gnu = yes; then
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 # case statements were introduced in fortran 90 so we can use that
6851 # as a test to see if our compiler is fortran 90 compatible.
6853 if test -z "$F77"; then
6854 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6858 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6861 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6862 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6866 cat > conftest.$ac_ext <<_ACEOF
6872 print*, "case is 1, i is ", i
6874 print*, "case is 2 to 3, i is ", i
6876 print*, "default case, i is ", i
6882 if ac_fn_f77_try_compile "$LINENO"; then :
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6884 $as_echo "yes" >&6; }
6886 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 ac_cpp='$CPP $CPPFLAGS'
6898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903 ############ C ###############
6906 if test "$with_gcc" = yes; then
6908 ac_cpp='$CPP $CPPFLAGS'
6909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6912 if test -n "$ac_tool_prefix"; then
6915 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_CC+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6922 if test -n "$CC"; then
6923 ac_cv_prog_CC="$CC" # Let the user override the test.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 if test -n "$CC"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6945 $as_echo "$CC" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6952 test -n "$CC" && break
6955 if test -z "$CC"; then
6959 # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6966 if test -n "$ac_ct_CC"; then
6967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_ac_ct_CC="$ac_prog"
6977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6987 if test -n "$ac_ct_CC"; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6989 $as_echo "$ac_ct_CC" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6996 test -n "$ac_ct_CC" && break
6999 if test "x$ac_ct_CC" = x; then
7002 case $cross_compiling:$ac_tool_warned in
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7013 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7015 as_fn_error "no acceptable C compiler found in \$PATH
7016 See \`config.log' for more details." "$LINENO" 5; }
7018 # Provide some information about the compiler.
7019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7022 for ac_option in --version -v -V -qversion; do
7023 { { ac_try="$ac_compiler $ac_option >&5"
7025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7029 $as_echo "$ac_try_echo"; } >&5
7030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7032 if test -s conftest.err; then
7034 ... rest of stderr output deleted ...
7035 10q' conftest.err >conftest.er1
7036 cat conftest.er1 >&5
7038 rm -f conftest.er1 conftest.err
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7044 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7045 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7046 $as_echo_n "(cached) " >&6
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7062 if ac_fn_c_try_compile "$LINENO"; then :
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7072 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7073 if test $ac_compiler_gnu = yes; then
7078 ac_test_CFLAGS=${CFLAGS+set}
7079 ac_save_CFLAGS=$CFLAGS
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7081 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7082 if test "${ac_cv_prog_cc_g+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
7085 ac_save_c_werror_flag=$ac_c_werror_flag
7086 ac_c_werror_flag=yes
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* end confdefs.h. */
7100 if ac_fn_c_try_compile "$LINENO"; then :
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7115 if ac_fn_c_try_compile "$LINENO"; then :
7118 ac_c_werror_flag=$ac_save_c_werror_flag
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7131 if ac_fn_c_try_compile "$LINENO"; then :
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 ac_c_werror_flag=$ac_save_c_werror_flag
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7142 $as_echo "$ac_cv_prog_cc_g" >&6; }
7143 if test "$ac_test_CFLAGS" = set; then
7144 CFLAGS=$ac_save_CFLAGS
7145 elif test $ac_cv_prog_cc_g = yes; then
7146 if test "$GCC" = yes; then
7152 if test "$GCC" = yes; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7159 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7160 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7163 ac_cv_prog_cc_c89=no
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7169 #include <sys/types.h>
7170 #include <sys/stat.h>
7171 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7172 struct buf { int x; };
7173 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7174 static char *e (p, i)
7180 static char *f (char * (*g) (char **, int), char **p, ...)
7185 s = g (p, va_arg (v,int));
7190 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7191 function prototypes and stuff, but not '\xHH' hex character constants.
7192 These don't provoke an error unfortunately, instead are silently treated
7193 as 'x'. The following induces an error, until -std is added to get
7194 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7195 array size at least. It's necessary to write '\x00'==0 to get something
7196 that's true only with -std. */
7197 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7199 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7200 inside strings and character constants. */
7202 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7204 int test (int i, double x);
7205 struct s1 {int (*f) (int a);};
7206 struct s2 {int (*f) (double a);};
7207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7218 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7219 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7221 CC="$ac_save_CC $ac_arg"
7222 if ac_fn_c_try_compile "$LINENO"; then :
7223 ac_cv_prog_cc_c89=$ac_arg
7225 rm -f core conftest.err conftest.$ac_objext
7226 test "x$ac_cv_prog_cc_c89" != "xno" && break
7228 rm -f conftest.$ac_ext
7233 case "x$ac_cv_prog_cc_c89" in
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7236 $as_echo "none needed" >&6; } ;;
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7239 $as_echo "unsupported" >&6; } ;;
7241 CC="$CC $ac_cv_prog_cc_c89"
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7243 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7245 if test "x$ac_cv_prog_cc_c89" != xno; then :
7250 ac_cpp='$CPP $CPPFLAGS'
7251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255 if test -z "$CC"; then
7256 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7260 if test "$with_intelcompilers" = yes; then
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266 if test -n "$ac_tool_prefix"; then
7267 for ac_prog in icc ecc
7269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if test "${ac_cv_prog_CC+set}" = set; then :
7274 $as_echo_n "(cached) " >&6
7276 if test -n "$CC"; then
7277 ac_cv_prog_CC="$CC" # Let the user override the test.
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 if test -n "$CC"; then
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7299 $as_echo "$CC" >&6; }
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7306 test -n "$CC" && break
7309 if test -z "$CC"; then
7311 for ac_prog in icc ecc
7313 # Extract the first word of "$ac_prog", so it can be a program name with args.
7314 set dummy $ac_prog; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7320 if test -n "$ac_ct_CC"; then
7321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_ac_ct_CC="$ac_prog"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7341 if test -n "$ac_ct_CC"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7343 $as_echo "$ac_ct_CC" >&6; }
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7350 test -n "$ac_ct_CC" && break
7353 if test "x$ac_ct_CC" = x; then
7356 case $cross_compiling:$ac_tool_warned in
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7367 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7369 as_fn_error "no acceptable C compiler found in \$PATH
7370 See \`config.log' for more details." "$LINENO" 5; }
7372 # Provide some information about the compiler.
7373 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7376 for ac_option in --version -v -V -qversion; do
7377 { { ac_try="$ac_compiler $ac_option >&5"
7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7380 *) ac_try_echo=$ac_try;;
7382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7383 $as_echo "$ac_try_echo"; } >&5
7384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7386 if test -s conftest.err; then
7388 ... rest of stderr output deleted ...
7389 10q' conftest.err >conftest.er1
7390 cat conftest.er1 >&5
7392 rm -f conftest.er1 conftest.err
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7398 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7399 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7416 if ac_fn_c_try_compile "$LINENO"; then :
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7426 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7427 if test $ac_compiler_gnu = yes; then
7432 ac_test_CFLAGS=${CFLAGS+set}
7433 ac_save_CFLAGS=$CFLAGS
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7435 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7436 if test "${ac_cv_prog_cc_g+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7439 ac_save_c_werror_flag=$ac_c_werror_flag
7440 ac_c_werror_flag=yes
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7454 if ac_fn_c_try_compile "$LINENO"; then :
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7469 if ac_fn_c_try_compile "$LINENO"; then :
7472 ac_c_werror_flag=$ac_save_c_werror_flag
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7485 if ac_fn_c_try_compile "$LINENO"; then :
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493 ac_c_werror_flag=$ac_save_c_werror_flag
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7496 $as_echo "$ac_cv_prog_cc_g" >&6; }
7497 if test "$ac_test_CFLAGS" = set; then
7498 CFLAGS=$ac_save_CFLAGS
7499 elif test $ac_cv_prog_cc_g = yes; then
7500 if test "$GCC" = yes; then
7506 if test "$GCC" = yes; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7513 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7514 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7517 ac_cv_prog_cc_c89=no
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 #include <sys/types.h>
7524 #include <sys/stat.h>
7525 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7526 struct buf { int x; };
7527 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7528 static char *e (p, i)
7534 static char *f (char * (*g) (char **, int), char **p, ...)
7539 s = g (p, va_arg (v,int));
7544 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7545 function prototypes and stuff, but not '\xHH' hex character constants.
7546 These don't provoke an error unfortunately, instead are silently treated
7547 as 'x'. The following induces an error, until -std is added to get
7548 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7549 array size at least. It's necessary to write '\x00'==0 to get something
7550 that's true only with -std. */
7551 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7553 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7554 inside strings and character constants. */
7556 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7558 int test (int i, double x);
7559 struct s1 {int (*f) (int a);};
7560 struct s2 {int (*f) (double a);};
7561 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7567 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7572 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7573 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7575 CC="$ac_save_CC $ac_arg"
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_prog_cc_c89=$ac_arg
7579 rm -f core conftest.err conftest.$ac_objext
7580 test "x$ac_cv_prog_cc_c89" != "xno" && break
7582 rm -f conftest.$ac_ext
7587 case "x$ac_cv_prog_cc_c89" in
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7590 $as_echo "none needed" >&6; } ;;
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7593 $as_echo "unsupported" >&6; } ;;
7595 CC="$CC $ac_cv_prog_cc_c89"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7597 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7599 if test "x$ac_cv_prog_cc_c89" != xno; then :
7604 ac_cpp='$CPP $CPPFLAGS'
7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7609 if test -z "$CC"; then
7610 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7614 if test -z "$CC"; then
7615 # No C compiler specified... We rely on Autoconf to find the best
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if test "${ac_cv_prog_CC+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7629 if test -n "$CC"; then
7630 ac_cv_prog_CC="$CC" # Let the user override the test.
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 if test -n "$CC"; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7652 $as_echo "$CC" >&6; }
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655 $as_echo "no" >&6; }
7660 if test -z "$ac_cv_prog_CC"; then
7662 # Extract the first word of "gcc", so it can be a program name with args.
7663 set dummy gcc; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7669 if test -n "$ac_ct_CC"; then
7670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_ac_ct_CC="gcc"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7690 if test -n "$ac_ct_CC"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7692 $as_echo "$ac_ct_CC" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7698 if test "x$ac_ct_CC" = x; then
7701 case $cross_compiling:$ac_tool_warned in
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705 ac_tool_warned=yes ;;
7713 if test -z "$CC"; then
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}cc; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if test "${ac_cv_prog_CC+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7722 if test -n "$CC"; then
7723 ac_cv_prog_CC="$CC" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_CC="${ac_tool_prefix}cc"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 if test -n "$CC"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7745 $as_echo "$CC" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7754 if test -z "$CC"; then
7755 # Extract the first word of "cc", so it can be a program name with args.
7756 set dummy cc; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_CC+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$CC"; then
7763 ac_cv_prog_CC="$CC" # Let the user override the test.
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7774 ac_prog_rejected=yes
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 if test $ac_prog_rejected = yes; then
7786 # We found a bogon in the path, so make sure we never use it.
7787 set dummy $ac_cv_prog_CC
7789 if test $# != 0; then
7790 # We chose a different compiler from the bogus one.
7791 # However, it has the same basename, so the bogon will be chosen
7792 # first if we set CC to just the basename; use the full file name.
7794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7800 if test -n "$CC"; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7802 $as_echo "$CC" >&6; }
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 $as_echo "no" >&6; }
7810 if test -z "$CC"; then
7811 if test -n "$ac_tool_prefix"; then
7812 for ac_prog in cl.exe
7814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if test "${ac_cv_prog_CC+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$CC"; then
7822 ac_cv_prog_CC="$CC" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 if test -n "$CC"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7844 $as_echo "$CC" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7851 test -n "$CC" && break
7854 if test -z "$CC"; then
7856 for ac_prog in cl.exe
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy $ac_prog; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
7865 if test -n "$ac_ct_CC"; then
7866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7875 ac_cv_prog_ac_ct_CC="$ac_prog"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7886 if test -n "$ac_ct_CC"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7888 $as_echo "$ac_ct_CC" >&6; }
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 test -n "$ac_ct_CC" && break
7898 if test "x$ac_ct_CC" = x; then
7901 case $cross_compiling:$ac_tool_warned in
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905 ac_tool_warned=yes ;;
7914 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7916 as_fn_error "no acceptable C compiler found in \$PATH
7917 See \`config.log' for more details." "$LINENO" 5; }
7919 # Provide some information about the compiler.
7920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7923 for ac_option in --version -v -V -qversion; do
7924 { { ac_try="$ac_compiler $ac_option >&5"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7930 $as_echo "$ac_try_echo"; } >&5
7931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7933 if test -s conftest.err; then
7935 ... rest of stderr output deleted ...
7936 10q' conftest.err >conftest.er1
7937 cat conftest.er1 >&5
7939 rm -f conftest.er1 conftest.err
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7941 test $ac_status = 0; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7945 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7946 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7947 $as_echo_n "(cached) " >&6
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7963 if ac_fn_c_try_compile "$LINENO"; then :
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7973 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7974 if test $ac_compiler_gnu = yes; then
7979 ac_test_CFLAGS=${CFLAGS+set}
7980 ac_save_CFLAGS=$CFLAGS
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7982 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7983 if test "${ac_cv_prog_cc_g+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7986 ac_save_c_werror_flag=$ac_c_werror_flag
7987 ac_c_werror_flag=yes
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
8001 if ac_fn_c_try_compile "$LINENO"; then :
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8016 if ac_fn_c_try_compile "$LINENO"; then :
8019 ac_c_werror_flag=$ac_save_c_werror_flag
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */