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
794 IS_MIPS_SGI_IRIX_FALSE
795 IS_MIPS_SGI_IRIX_TRUE
842 MAINTAINER_MODE_FALSE
845 RELOCATABLE_VIA_LD_FALSE
846 RELOCATABLE_VIA_LD_TRUE
871 INSTALL_STRIP_PROGRAM
874 SCILAB_LIBRARY_VERSION
902 program_transform_name
915 enable_option_checking
920 enable_maintainer_mode
921 enable_dependency_tracking
936 enable_compilation_tests
959 enable_build_localization
976 with_install_help_xml
983 ac_precious_vars='build_alias
1004 # Initialize some variables set by options.
1006 ac_init_version=false
1007 ac_unrecognized_opts=
1008 ac_unrecognized_sep=
1009 # The variables have the same names as the options, with
1010 # dashes changed to underlines.
1011 cache_file=/dev/null
1018 program_transform_name=s,x,x,
1026 # Installation directory options.
1027 # These are left unexpanded so users can "make install exec_prefix=/foo"
1028 # and all the variables that are supposed to be based on exec_prefix
1029 # by default will actually change.
1030 # Use braces instead of parens because sh, perl, etc. also accept them.
1031 # (The list follows the same order as the GNU Coding Standards.)
1032 bindir='${exec_prefix}/bin'
1033 sbindir='${exec_prefix}/sbin'
1034 libexecdir='${exec_prefix}/libexec'
1035 datarootdir='${prefix}/share'
1036 datadir='${datarootdir}'
1037 sysconfdir='${prefix}/etc'
1038 sharedstatedir='${prefix}/com'
1039 localstatedir='${prefix}/var'
1040 includedir='${prefix}/include'
1041 oldincludedir='/usr/include'
1042 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1043 infodir='${datarootdir}/info'
1048 libdir='${exec_prefix}/lib'
1049 localedir='${datarootdir}/locale'
1050 mandir='${datarootdir}/man'
1056 # If the previous option needs an argument, assign it.
1057 if test -n "$ac_prev"; then
1058 eval $ac_prev=\$ac_option
1064 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068 # Accept the important Cygnus configure options, so we can diagnose typos.
1070 case $ac_dashdash$ac_option in
1074 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1076 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077 bindir=$ac_optarg ;;
1079 -build | --build | --buil | --bui | --bu)
1080 ac_prev=build_alias ;;
1081 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082 build_alias=$ac_optarg ;;
1084 -cache-file | --cache-file | --cache-fil | --cache-fi \
1085 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086 ac_prev=cache_file ;;
1087 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089 cache_file=$ac_optarg ;;
1091 --config-cache | -C)
1092 cache_file=config.cache ;;
1094 -datadir | --datadir | --datadi | --datad)
1096 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097 datadir=$ac_optarg ;;
1099 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100 | --dataroo | --dataro | --datar)
1101 ac_prev=datarootdir ;;
1102 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104 datarootdir=$ac_optarg ;;
1106 -disable-* | --disable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "enable_$ac_useropt"
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval enable_$ac_useropt=no ;;
1122 -docdir | --docdir | --docdi | --doc | --do)
1124 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125 docdir=$ac_optarg ;;
1127 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1129 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130 dvidir=$ac_optarg ;;
1132 -enable-* | --enable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1141 "enable_$ac_useropt"
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval enable_$ac_useropt=\$ac_optarg ;;
1148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150 | --exec | --exe | --ex)
1151 ac_prev=exec_prefix ;;
1152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154 | --exec=* | --exe=* | --ex=*)
1155 exec_prefix=$ac_optarg ;;
1157 -gas | --gas | --ga | --g)
1158 # Obsolete; use --with-gas.
1161 -help | --help | --hel | --he | -h)
1162 ac_init_help=long ;;
1163 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164 ac_init_help=recursive ;;
1165 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166 ac_init_help=short ;;
1168 -host | --host | --hos | --ho)
1169 ac_prev=host_alias ;;
1170 -host=* | --host=* | --hos=* | --ho=*)
1171 host_alias=$ac_optarg ;;
1173 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1175 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1177 htmldir=$ac_optarg ;;
1179 -includedir | --includedir | --includedi | --included | --include \
1180 | --includ | --inclu | --incl | --inc)
1181 ac_prev=includedir ;;
1182 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183 | --includ=* | --inclu=* | --incl=* | --inc=*)
1184 includedir=$ac_optarg ;;
1186 -infodir | --infodir | --infodi | --infod | --info | --inf)
1188 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189 infodir=$ac_optarg ;;
1191 -libdir | --libdir | --libdi | --libd)
1193 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194 libdir=$ac_optarg ;;
1196 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197 | --libexe | --libex | --libe)
1198 ac_prev=libexecdir ;;
1199 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200 | --libexe=* | --libex=* | --libe=*)
1201 libexecdir=$ac_optarg ;;
1203 -localedir | --localedir | --localedi | --localed | --locale)
1204 ac_prev=localedir ;;
1205 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206 localedir=$ac_optarg ;;
1208 -localstatedir | --localstatedir | --localstatedi | --localstated \
1209 | --localstate | --localstat | --localsta | --localst | --locals)
1210 ac_prev=localstatedir ;;
1211 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213 localstatedir=$ac_optarg ;;
1215 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1217 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218 mandir=$ac_optarg ;;
1220 -nfp | --nfp | --nf)
1221 # Obsolete; use --without-fp.
1224 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225 | --no-cr | --no-c | -n)
1228 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1232 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234 | --oldin | --oldi | --old | --ol | --o)
1235 ac_prev=oldincludedir ;;
1236 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239 oldincludedir=$ac_optarg ;;
1241 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1243 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244 prefix=$ac_optarg ;;
1246 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247 | --program-pre | --program-pr | --program-p)
1248 ac_prev=program_prefix ;;
1249 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251 program_prefix=$ac_optarg ;;
1253 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254 | --program-suf | --program-su | --program-s)
1255 ac_prev=program_suffix ;;
1256 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258 program_suffix=$ac_optarg ;;
1260 -program-transform-name | --program-transform-name \
1261 | --program-transform-nam | --program-transform-na \
1262 | --program-transform-n | --program-transform- \
1263 | --program-transform | --program-transfor \
1264 | --program-transfo | --program-transf \
1265 | --program-trans | --program-tran \
1266 | --progr-tra | --program-tr | --program-t)
1267 ac_prev=program_transform_name ;;
1268 -program-transform-name=* | --program-transform-name=* \
1269 | --program-transform-nam=* | --program-transform-na=* \
1270 | --program-transform-n=* | --program-transform-=* \
1271 | --program-transform=* | --program-transfor=* \
1272 | --program-transfo=* | --program-transf=* \
1273 | --program-trans=* | --program-tran=* \
1274 | --progr-tra=* | --program-tr=* | --program-t=*)
1275 program_transform_name=$ac_optarg ;;
1277 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1279 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280 pdfdir=$ac_optarg ;;
1282 -psdir | --psdir | --psdi | --psd | --ps)
1284 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1291 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1293 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1295 sbindir=$ac_optarg ;;
1297 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299 | --sharedst | --shareds | --shared | --share | --shar \
1301 ac_prev=sharedstatedir ;;
1302 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1306 sharedstatedir=$ac_optarg ;;
1308 -site | --site | --sit)
1310 -site=* | --site=* | --sit=*)
1313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316 srcdir=$ac_optarg ;;
1318 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319 | --syscon | --sysco | --sysc | --sys | --sy)
1320 ac_prev=sysconfdir ;;
1321 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323 sysconfdir=$ac_optarg ;;
1325 -target | --target | --targe | --targ | --tar | --ta | --t)
1326 ac_prev=target_alias ;;
1327 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328 target_alias=$ac_optarg ;;
1330 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1333 -version | --version | --versio | --versi | --vers | -V)
1334 ac_init_version=: ;;
1337 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340 as_fn_error "invalid package name: $ac_useropt"
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1350 eval with_$ac_useropt=\$ac_optarg ;;
1352 -without-* | --without-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error "invalid package name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1366 eval with_$ac_useropt=no ;;
1369 # Obsolete; use --with-x.
1372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373 | --x-incl | --x-inc | --x-in | --x-i)
1374 ac_prev=x_includes ;;
1375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377 x_includes=$ac_optarg ;;
1379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381 ac_prev=x_libraries ;;
1382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384 x_libraries=$ac_optarg ;;
1386 -*) as_fn_error "unrecognized option: \`$ac_option'
1387 Try \`$0 --help' for more information."
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 case $ac_envvar in #(
1394 '' | [0-9]* | *[!_$as_cr_alnum]* )
1395 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1397 eval $ac_envvar=\$ac_optarg
1398 export $ac_envvar ;;
1401 # FIXME: should be removed in autoconf 3.0.
1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1411 if test -n "$ac_prev"; then
1412 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413 as_fn_error "missing argument to $ac_option"
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1419 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1420 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 # Check all directory arguments for consistency.
1425 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426 datadir sysconfdir sharedstatedir localstatedir includedir \
1427 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428 libdir localedir mandir
1430 eval ac_val=\$$ac_var
1431 # Remove trailing slashes.
1434 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435 eval $ac_var=\$ac_val;;
1437 # Be sure to have absolute directory names.
1439 [\\/$]* | ?:[\\/]* ) continue;;
1440 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1450 target=$target_alias
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x; then
1454 if test "x$build_alias" = x; then
1455 cross_compiling=maybe
1456 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1457 If a cross compiler is detected then cross compile mode will be used." >&2
1458 elif test "x$build_alias" != "x$host_alias"; then
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1466 test "$silent" = yes && exec 6>/dev/null
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error "pwd does not report name of working directory"
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1509 ac_srcdir_defaulted=no
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 for ac_var in $ac_precious_vars; do
1530 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_${ac_var}_value=\$${ac_var}
1532 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1537 # Report the --help message.
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1543 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1550 Defaults for the options are specified in brackets.
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1574 For better control, use the options below.
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1606 --x-includes=DIR X include files are in DIR
1607 --x-libraries=DIR X library files are in DIR
1610 --build=BUILD configure for building on BUILD [guessed]
1611 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 if test -n "$ac_init_help"; then
1616 case $ac_init_help in
1617 short | recursive ) echo "Configuration of Scilab 5:";;
1622 --disable-option-checking ignore unrecognized --enable/--with options
1623 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1624 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1625 --disable-largefile omit support for large files
1626 --enable-relocatable install a package that can be moved in the filesystem
1627 --disable-rpath do not hardcode runtime library paths
1628 --enable-maintainer-mode enable make rules and dependencies not useful
1629 (and sometimes confusing) to the casual installer
1630 --disable-dependency-tracking speeds up one-time build
1631 --enable-dependency-tracking do not reject slow dependency extractors
1632 --enable-debug Do not optimize and print warning messages
1633 (C/C++/Fortran code)
1634 --enable-debug-C Do not optimize and print warning messages (C code)
1635 --enable-debug-CXX Do not optimize and print warning messages (C++
1637 --enable-debug-java Print warning messages and line numbers (Java code)
1638 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1640 --enable-debug-linker Print warning messages from the linker (ld)
1641 --enable-code-coverage Enable code coverage
1642 --enable-stop-on-warning
1643 Stop the compilation on the first warning found in
1645 --enable-compilation-tests
1646 Enable unitary tests and checks at compilation time
1647 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1648 Java Development Kit (JDK) is mandatory for this
1650 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1651 (A Java Development Kit (JDK) is mandatory for this
1653 --disable-nls do not use Native Language Support
1654 --disable-build-localization
1655 Disable the localization build
1657 --disable-build-help Disable the help build
1659 --enable-static[=PKGS] build static libraries [default=no]
1660 --enable-shared[=PKGS] build shared libraries [default=yes]
1661 --enable-fast-install[=PKGS]
1662 optimize for fast installation [default=yes]
1663 --disable-libtool-lock avoid locking (might break parallel builds)
1666 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1667 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-gcc Use gcc C compiler
1670 --with-g77 Use g77, GNU Fortran 77 compiler
1671 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1672 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1673 compilers (GNU/Linux only)
1674 --without-tk Disable the interface to Tcl/Tk
1675 --without-javasci Disable the Java/Scilab interface (javasci)
1676 --without-gui Disable the Scilab Graphical User Interface (GUI).
1677 Intended for embedded/clustering/grid Scilab
1678 --with-fink-prefix Provide a fink prefix. Default: /sw/
1679 --without-hdf5 Disable the interface to the HDF5 library
1680 --with-hdf5-include=DIR Set the path to the HDF5 headers
1681 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1682 --with-jdk=DIR use JDK from DIR
1683 --with-ant=DIR Use ant from DIR
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688 --without-scicos Disable Scicos
1689 --without-ocaml Disable the OCaml modules (modelica)
1690 --without-fftw Disable the interface to the FFTW 3 library
1691 --with-fftw-include=DIR Set the path to the FFTW headers
1692 --with-fftw-library=DIR Set the path to the FFTW libraries
1693 --without-pvm Disable the interface to the PVM library
1694 --with-pvm-include=DIR Set the path to the PVM headers
1695 --with-pvm-library=DIR Set the path to the PVM library directory
1696 --without-openmp Disable the usage of OpenMP (parallelization of some
1698 --with-libxml2=PREFIX Set the path to your libxml2 installation
1699 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1701 --with-lapack-library=DIR
1702 set the path to the LAPACK library
1703 --without-umfpack Disable the interface to the UMFPACK library
1704 --with-umfpack-library=DIR
1705 Set the path to the UMFPACK libraries
1706 --with-umfpack-include=DIR
1707 Set the path to the UMFPACK headers
1708 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1709 Expression Library) installation
1710 --with-tcl-library=DIR Set the path to the TCL library
1711 --with-tcl-include=DIR Set the path to the TCL headers
1712 --with-tk-library=DIR Set the path to the TK library
1713 --with-tk-include=DIR Set the path to the TK headers
1714 --with-x use the X Window System
1715 --without-matio Disable the interface to Matio (MAT File I/O
1717 --with-matio-include=DIR
1718 Set the path to the MATIO headers
1719 --with-matio-library=DIR
1720 Set the path to the MATIO libraries
1721 --with-docbook=DIR Set the path to the docbook package
1722 --with-install-help-xml make install will install XML files
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1728 Some influential environment variables:
1729 CC C compiler command
1730 CFLAGS C compiler flags
1731 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1732 nonstandard directory <lib dir>
1733 LIBS libraries to pass to the linker, e.g. -l<library>
1734 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1735 you have headers in a nonstandard directory <include dir>
1737 PKG_CONFIG path to pkg-config utility
1738 F77 Fortran 77 compiler command
1739 FFLAGS Fortran 77 compiler flags
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 XMKMF Path to xmkmf, Makefile generator for X Window System
1744 C compiler flags for MATIO, overriding pkg-config
1745 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1746 CXXCPP C++ preprocessor
1748 Use these variables to override the choices made by `configure' or to help
1749 it to find libraries and programs with nonstandard names/locations.
1751 Report bugs to <http://bugzilla.scilab.org/>.
1756 if test "$ac_init_help" = "recursive"; then
1757 # If there are subdirs, report their specific --help.
1758 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1759 test -d "$ac_dir" ||
1760 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1768 # A ".." for each directory in $ac_dir_suffix.
1769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1770 case $ac_top_builddir_sub in
1771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1775 ac_abs_top_builddir=$ac_pwd
1776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1777 # for backward compatibility:
1778 ac_top_builddir=$ac_top_build_prefix
1781 .) # We are building in place.
1783 ac_top_srcdir=$ac_top_builddir_sub
1784 ac_abs_top_srcdir=$ac_pwd ;;
1785 [\\/]* | ?:[\\/]* ) # Absolute name.
1786 ac_srcdir=$srcdir$ac_dir_suffix;
1787 ac_top_srcdir=$srcdir
1788 ac_abs_top_srcdir=$srcdir ;;
1790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1791 ac_top_srcdir=$ac_top_build_prefix$srcdir
1792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796 cd "$ac_dir" || { ac_status=$?; continue; }
1797 # Check for guested configure.
1798 if test -f "$ac_srcdir/configure.gnu"; then
1800 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1801 elif test -f "$ac_srcdir/configure"; then
1803 $SHELL "$ac_srcdir/configure" --help=recursive
1805 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1807 cd "$ac_pwd" || { ac_status=$?; break; }
1811 test -n "$ac_init_help" && exit $ac_status
1812 if $ac_init_version; then
1815 generated by GNU Autoconf 2.65
1817 Copyright (C) 2009 Free Software Foundation, Inc.
1818 This configure script is free software; the Free Software Foundation
1819 gives unlimited permission to copy, distribute and modify it.
1824 ## ------------------------ ##
1825 ## Autoconf initialization. ##
1826 ## ------------------------ ##
1828 # ac_fn_c_try_compile LINENO
1829 # --------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_compile
1866 # ac_fn_c_try_cpp LINENO
1867 # ----------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev/null && {
1888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 as_fn_set_status $ac_retval
1903 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906 # the include files in INCLUDES and setting the cache variable VAR
1908 ac_fn_c_check_header_mongrel ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913 $as_echo_n "checking for $2... " >&6; }
1914 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1921 # Is the header compilable?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923 $as_echo_n "checking $2 usability... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1932 ac_header_compiler=no
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936 $as_echo "$ac_header_compiler" >&6; }
1938 # Is the header present?
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940 $as_echo_n "checking $2 presence... " >&6; }
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1945 if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1948 ac_header_preproc=no
1950 rm -f conftest.err conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952 $as_echo "$ac_header_preproc" >&6; }
1954 # So? What about this header?
1955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 ## ------------------------------------------ ##
1975 ## Report this to http://bugzilla.scilab.org/ ##
1976 ## ------------------------------------------ ##
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1984 $as_echo_n "(cached) " >&6
1986 eval "$3=\$ac_header_compiler"
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994 } # ac_fn_c_check_header_mongrel
1996 # ac_fn_c_try_run LINENO
1997 # ----------------------
1998 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1999 # that executables *can* be run.
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_link"
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009 $as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_link") 2>&5
2012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2013 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2014 { { case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_try") 2>&5
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; }; }; then :
2026 $as_echo "$as_me: program exited with status $ac_status" >&5
2027 $as_echo "$as_me: failed program was:" >&5
2028 sed 's/^/| /' conftest.$ac_ext >&5
2030 ac_retval=$ac_status
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 as_fn_set_status $ac_retval
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2055 if ac_fn_c_try_compile "$LINENO"; then :
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 } # ac_fn_c_check_header_compile
2069 # ac_fn_c_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_c_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 $as_test_x conftest$ac_exeext
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 as_fn_set_status $ac_retval
2113 } # ac_fn_c_try_link
2115 # ac_fn_c_check_func LINENO FUNC VAR
2116 # ----------------------------------
2117 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2118 ac_fn_c_check_func ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2130 #define $2 innocuous_$2
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $2 (); below.
2134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2135 <limits.h> exists even on freestanding compilers. */
2138 # include <limits.h>
2140 # include <assert.h>
2145 /* Override any GCC internal prototype to avoid an error.
2146 Use char because int might match the return type of a GCC
2147 builtin and then its argument prototype would still apply. */
2152 /* The GNU C library defines this for functions which it implements
2153 to always fail with ENOSYS. Some functions are actually named
2154 something starting with __ and the normal name is an alias. */
2155 #if defined __stub_$2 || defined __stub___$2
2167 if ac_fn_c_try_link "$LINENO"; then :
2172 rm -f core conftest.err conftest.$ac_objext \
2173 conftest$ac_exeext conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 } # ac_fn_c_check_func
2182 # ac_fn_f77_try_compile LINENO
2183 # ----------------------------
2184 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_f77_try_compile ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 rm -f conftest.$ac_objext
2189 if { { ac_try="$ac_compile"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_compile") 2>conftest.err
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } && {
2205 test -z "$ac_f77_werror_flag" ||
2206 test ! -s conftest.err
2207 } && test -s conftest.$ac_objext; then :
2210 $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216 as_fn_set_status $ac_retval
2218 } # ac_fn_f77_try_compile
2220 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2221 # --------------------------------------------
2222 # Tries to find the compile-time value of EXPR in a program that includes
2223 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2225 ac_fn_c_compute_int ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if test "$cross_compiling" = yes; then
2229 # Depending upon the size, compute the lo and hi bounds.
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2236 static int test_array [1 - 2 * !(($2) >= 0)];
2243 if ac_fn_c_try_compile "$LINENO"; then :
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2259 if ac_fn_c_try_compile "$LINENO"; then :
2260 ac_hi=$ac_mid; break
2262 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2263 if test $ac_lo -le $ac_mid; then
2267 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2278 static int test_array [1 - 2 * !(($2) < 0)];
2285 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2294 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 ac_lo=$ac_mid; break
2304 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2305 if test $ac_mid -le $ac_hi; then
2309 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 # Binary search between lo and hi bounds.
2320 while test "x$ac_lo" != "x$ac_hi"; do
2321 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2328 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2335 if ac_fn_c_try_compile "$LINENO"; then :
2338 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2350 static long int longval () { return $2; }
2351 static unsigned long int ulongval () { return $2; }
2358 FILE *f = fopen ("conftest.val", "w");
2363 long int i = longval ();
2366 fprintf (f, "%ld", i);
2370 unsigned long int i = ulongval ();
2373 fprintf (f, "%lu", i);
2375 /* Do not output a trailing newline, as this causes \r\n confusion
2376 on some platforms. */
2377 return ferror (f) || fclose (f) != 0;
2383 if ac_fn_c_try_run "$LINENO"; then :
2384 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2389 conftest.$ac_objext conftest.beam conftest.$ac_ext
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394 as_fn_set_status $ac_retval
2396 } # ac_fn_c_compute_int
2398 # ac_fn_cxx_try_compile LINENO
2399 # ----------------------------
2400 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2401 ac_fn_cxx_try_compile ()
2403 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2404 rm -f conftest.$ac_objext
2405 if { { ac_try="$ac_compile"
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2411 $as_echo "$ac_try_echo"; } >&5
2412 (eval "$ac_compile") 2>conftest.err
2414 if test -s conftest.err; then
2415 grep -v '^ *+' conftest.err >conftest.er1
2416 cat conftest.er1 >&5
2417 mv -f conftest.er1 conftest.err
2419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2420 test $ac_status = 0; } && {
2421 test -z "$ac_cxx_werror_flag" ||
2422 test ! -s conftest.err
2423 } && test -s conftest.$ac_objext; then :
2426 $as_echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_cxx_try_compile
2436 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2437 # ----------------------------------------------------
2438 # Tries to find if the field MEMBER exists in type AGGR, after including
2439 # INCLUDES, setting cache variable VAR accordingly.
2440 ac_fn_c_check_member ()
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2444 $as_echo_n "checking for $2.$3... " >&6; }
2445 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2446 $as_echo_n "(cached) " >&6
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2461 if ac_fn_c_try_compile "$LINENO"; then :
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2471 if (sizeof ac_aggr.$3)
2477 if ac_fn_c_try_compile "$LINENO"; then :
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488 $as_echo "$ac_res" >&6; }
2489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2491 } # ac_fn_c_check_member
2493 # ac_fn_cxx_try_cpp LINENO
2494 # ------------------------
2495 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_cxx_try_cpp ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 if { { ac_try="$ac_cpp conftest.$ac_ext"
2501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502 *) ac_try_echo=$ac_try;;
2504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505 $as_echo "$ac_try_echo"; } >&5
2506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2508 if test -s conftest.err; then
2509 grep -v '^ *+' conftest.err >conftest.er1
2510 cat conftest.er1 >&5
2511 mv -f conftest.er1 conftest.err
2513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2514 test $ac_status = 0; } >/dev/null && {
2515 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2516 test ! -s conftest.err
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 as_fn_set_status $ac_retval
2528 } # ac_fn_cxx_try_cpp
2530 # ac_fn_cxx_try_link LINENO
2531 # -------------------------
2532 # Try to link conftest.$ac_ext, and return whether this succeeded.
2533 ac_fn_cxx_try_link ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 rm -f conftest.$ac_objext conftest$ac_exeext
2537 if { { ac_try="$ac_link"
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2543 $as_echo "$ac_try_echo"; } >&5
2544 (eval "$ac_link") 2>conftest.err
2546 if test -s conftest.err; then
2547 grep -v '^ *+' conftest.err >conftest.er1
2548 cat conftest.er1 >&5
2549 mv -f conftest.er1 conftest.err
2551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2552 test $ac_status = 0; } && {
2553 test -z "$ac_cxx_werror_flag" ||
2554 test ! -s conftest.err
2555 } && test -s conftest$ac_exeext && {
2556 test "$cross_compiling" = yes ||
2557 $as_test_x conftest$ac_exeext
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2568 # interfere with the next link command; also delete a directory that is
2569 # left behind by Apple's compiler. We do this before executing the actions.
2570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2572 as_fn_set_status $ac_retval
2574 } # ac_fn_cxx_try_link
2576 # ac_fn_f77_try_link LINENO
2577 # -------------------------
2578 # Try to link conftest.$ac_ext, and return whether this succeeded.
2579 ac_fn_f77_try_link ()
2581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2582 rm -f conftest.$ac_objext conftest$ac_exeext
2583 if { { ac_try="$ac_link"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2589 $as_echo "$ac_try_echo"; } >&5
2590 (eval "$ac_link") 2>conftest.err
2592 if test -s conftest.err; then
2593 grep -v '^ *+' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2595 mv -f conftest.er1 conftest.err
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; } && {
2599 test -z "$ac_f77_werror_flag" ||
2600 test ! -s conftest.err
2601 } && test -s conftest$ac_exeext && {
2602 test "$cross_compiling" = yes ||
2603 $as_test_x conftest$ac_exeext
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2614 # interfere with the next link command; also delete a directory that is
2615 # left behind by Apple's compiler. We do this before executing the actions.
2616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2618 as_fn_set_status $ac_retval
2620 } # ac_fn_f77_try_link
2621 cat >config.log <<_ACEOF
2622 This file contains any messages produced by compilers while
2623 running configure, to aid debugging if configure makes a mistake.
2625 It was created by Scilab $as_me 5, which was
2626 generated by GNU Autoconf 2.65. Invocation command line was
2638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 test -z "$as_dir" && as_dir=.
2662 $as_echo "PATH: $as_dir"
2678 # Keep a trace of the command line.
2679 # Strip out --no-create and --no-recursion so they do not pile up.
2680 # Strip out --silent because we don't want to record it for future runs.
2681 # Also quote any args containing shell meta-characters.
2682 # Make two passes to allow for proper duplicate-argument suppression.
2686 ac_must_keep_next=false
2692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2694 | -silent | --silent | --silen | --sile | --sil)
2697 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2700 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2702 as_fn_append ac_configure_args1 " '$ac_arg'"
2703 if test $ac_must_keep_next = true; then
2704 ac_must_keep_next=false # Got value, back to normal.
2707 *=* | --config-cache | -C | -disable-* | --disable-* \
2708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2710 | -with-* | --with-* | -without-* | --without-* | --x)
2711 case "$ac_configure_args0 " in
2712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2715 -* ) ac_must_keep_next=true ;;
2718 as_fn_append ac_configure_args " '$ac_arg'"
2723 { ac_configure_args0=; unset ac_configure_args0;}
2724 { ac_configure_args1=; unset ac_configure_args1;}
2726 # When interrupted or exit'd, cleanup temporary files, and complete
2727 # config.log. We remove comments because anyway the quotes in there
2728 # would cause problems or look ugly.
2729 # WARNING: Use '\'' to represent an apostrophe within the trap.
2730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2731 trap 'exit_status=$?
2732 # Save into config.log some information that might help in debugging.
2737 ## ---------------- ##
2738 ## Cache variables. ##
2739 ## ---------------- ##
2742 # The following way of writing the cache mishandles newlines in values,
2744 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2745 eval ac_val=\$$ac_var
2749 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2750 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2753 _ | IFS | as_nl) ;; #(
2754 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2755 *) { eval $ac_var=; unset $ac_var;} ;;
2760 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2761 *${as_nl}ac_space=\ *)
2763 "s/'\''/'\''\\\\'\'''\''/g;
2764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2767 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2775 ## ----------------- ##
2776 ## Output variables. ##
2777 ## ----------------- ##
2780 for ac_var in $ac_subst_vars
2782 eval ac_val=\$$ac_var
2784 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2786 $as_echo "$ac_var='\''$ac_val'\''"
2790 if test -n "$ac_subst_files"; then
2792 ## ------------------- ##
2793 ## File substitutions. ##
2794 ## ------------------- ##
2797 for ac_var in $ac_subst_files
2799 eval ac_val=\$$ac_var
2801 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2803 $as_echo "$ac_var='\''$ac_val'\''"
2808 if test -s confdefs.h; then
2818 test "$ac_signal" != 0 &&
2819 $as_echo "$as_me: caught signal $ac_signal"
2820 $as_echo "$as_me: exit $exit_status"
2822 rm -f core *.core core.conftest.* &&
2823 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2826 for ac_signal in 1 2 13 15; do
2827 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2831 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2832 rm -f -r conftest* confdefs.h
2834 $as_echo "/* confdefs.h */" > confdefs.h
2836 # Predefined preprocessor variables.
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_NAME "$PACKAGE_NAME"
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2846 cat >>confdefs.h <<_ACEOF
2847 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2850 cat >>confdefs.h <<_ACEOF
2851 #define PACKAGE_STRING "$PACKAGE_STRING"
2854 cat >>confdefs.h <<_ACEOF
2855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2858 cat >>confdefs.h <<_ACEOF
2859 #define PACKAGE_URL "$PACKAGE_URL"
2863 # Let the site file select an alternate cache file if it wants to.
2864 # Prefer an explicitly selected file to automatically selected ones.
2867 if test -n "$CONFIG_SITE"; then
2868 ac_site_file1=$CONFIG_SITE
2869 elif test "x$prefix" != xNONE; then
2870 ac_site_file1=$prefix/share/config.site
2871 ac_site_file2=$prefix/etc/config.site
2873 ac_site_file1=$ac_default_prefix/share/config.site
2874 ac_site_file2=$ac_default_prefix/etc/config.site
2876 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2878 test "x$ac_site_file" = xNONE && continue
2879 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2881 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2882 sed 's/^/| /' "$ac_site_file" >&5
2887 if test -r "$cache_file"; then
2888 # Some versions of bash will fail to source /dev/null (special files
2889 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2890 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2892 $as_echo "$as_me: loading cache $cache_file" >&6;}
2894 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2895 *) . "./$cache_file";;
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2900 $as_echo "$as_me: creating cache $cache_file" >&6;}
2904 gt_needs="$gt_needs "
2905 # Check that the precious variables saved in the cache have kept the same
2907 ac_cache_corrupted=false
2908 for ac_var in $ac_precious_vars; do
2909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2910 eval ac_new_set=\$ac_env_${ac_var}_set
2911 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2912 eval ac_new_val=\$ac_env_${ac_var}_value
2913 case $ac_old_set,$ac_new_set in
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2917 ac_cache_corrupted=: ;;
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2920 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2921 ac_cache_corrupted=: ;;
2924 if test "x$ac_old_val" != "x$ac_new_val"; then
2925 # differences in whitespace do not lead to failure.
2926 ac_old_val_w=`echo x $ac_old_val`
2927 ac_new_val_w=`echo x $ac_new_val`
2928 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2930 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2931 ac_cache_corrupted=:
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2934 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2935 eval $ac_var=\$ac_old_val
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2938 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2940 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2943 # Pass precious variables to config.status.
2944 if test "$ac_new_set" = set; then
2946 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2947 *) ac_arg=$ac_var=$ac_new_val ;;
2949 case " $ac_configure_args " in
2950 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2951 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2955 if $ac_cache_corrupted; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2959 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2960 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2962 ## -------------------- ##
2963 ## Main body of script. ##
2964 ## -------------------- ##
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976 SCI_BUILDDIR="`pwd`"
2977 SCI_SRCDIR="$srcdir"
2978 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
2980 SCILAB_LIBRARY_VERSION=5:3:0
2983 #shared library versioning
2984 #GENERIC_LIBRARY_VERSION=1:2:0
2988 # current:revision:age
2990 # | | +- increment if interfaces have been added
2991 # | | set to zero if interfaces have been removed
2993 # | +- increment if source code has changed
2994 # | set to zero if current is incremented
2995 # +- increment if interfaces have been added, removed or changed
2997 # Check if we have a space in the path to the source tree
2998 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
2999 if test "$SPACE_IN_PATH" = "0"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3001 $as_echo "$as_me: WARNING: =====================================" >&2;}
3002 { $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
3003 $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;}
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3005 $as_echo "$as_me: WARNING: =====================================" >&2;}
3010 for ac_dir in config "$srcdir"/config; do
3011 for ac_t in install-sh install.sh shtool; do
3012 if test -f "$ac_dir/$ac_t"; then
3014 ac_install_sh="$ac_aux_dir/$ac_t -c"
3019 if test -z "$ac_aux_dir"; then
3020 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3023 # These three variables are undocumented and unsupported,
3024 # and are intended to be withdrawn in a future Autoconf release.
3025 # They can cause serious problems if a builder's source tree is in a directory
3026 # whose full name contains unusual characters.
3027 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3028 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3029 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3032 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3036 # expand $ac_aux_dir to an absolute path
3037 am_aux_dir=`cd $ac_aux_dir && pwd`
3039 if test x"${install_sh}" != xset; then
3042 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3044 install_sh="\${SHELL} $am_aux_dir/install-sh"
3048 # Installed binaries are usually stripped using `strip' when the user
3049 # run `make install-strip'. However `strip' might not be the right
3050 # tool to use in cross-compilation environments, therefore Automake
3051 # will honor the `STRIP' environment variable to overrule this program.
3052 if test "$cross_compiling" != no; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}strip; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if test "${ac_cv_prog_STRIP+set}" = set; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$STRIP"; then
3062 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 STRIP=$ac_cv_prog_STRIP
3082 if test -n "$STRIP"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3084 $as_echo "$STRIP" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3092 if test -z "$ac_cv_prog_STRIP"; then
3094 # Extract the first word of "strip", so it can be a program name with args.
3095 set dummy strip; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$ac_ct_STRIP"; then
3102 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_STRIP="strip"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3122 if test -n "$ac_ct_STRIP"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3124 $as_echo "$ac_ct_STRIP" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3130 if test "x$ac_ct_STRIP" = x; then
3133 case $cross_compiling:$ac_tool_warned in
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137 ac_tool_warned=yes ;;
3142 STRIP="$ac_cv_prog_STRIP"
3146 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3149 $as_echo_n "checking whether ln -s works... " >&6; }
3151 if test "$LN_S" = "ln -s"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3153 $as_echo "yes" >&6; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3156 $as_echo "no, using $LN_S" >&6; }
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165 if test -n "$ac_tool_prefix"; then
3166 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if test "${ac_cv_prog_CC+set}" = set; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3183 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 if test -n "$CC"; then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3196 $as_echo "$CC" >&6; }
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3204 if test -z "$ac_cv_prog_CC"; then
3206 # Extract the first word of "gcc", so it can be a program name with args.
3207 set dummy gcc; ac_word=$2
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3211 $as_echo_n "(cached) " >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="gcc"
3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 $as_echo "no" >&6; }
3242 if test "x$ac_ct_CC" = x; then
3245 case $cross_compiling:$ac_tool_warned in
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3249 ac_tool_warned=yes ;;
3257 if test -z "$CC"; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}cc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if test "${ac_cv_prog_CC+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$CC"; then
3267 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_CC="${ac_tool_prefix}cc"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 if test -n "$CC"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3298 if test -z "$CC"; then
3299 # Extract the first word of "cc", so it can be a program name with args.
3300 set dummy cc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3318 ac_prog_rejected=yes
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test $ac_prog_rejected = yes; then
3330 # We found a bogon in the path, so make sure we never use it.
3331 set dummy $ac_cv_prog_CC
3333 if test $# != 0; then
3334 # We chose a different compiler from the bogus one.
3335 # However, it has the same basename, so the bogon will be chosen
3336 # first if we set CC to just the basename; use the full file name.
3338 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 for ac_prog in cl.exe
3358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3361 $as_echo_n "checking for $ac_word... " >&6; }
3362 if test "${ac_cv_prog_CC+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if test -n "$CC"; then
3366 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386 if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3395 test -n "$CC" && break
3398 if test -z "$CC"; then
3400 for ac_prog in cl.exe
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_ac_ct_CC="$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439 test -n "$ac_ct_CC" && break
3442 if test "x$ac_ct_CC" = x; then
3445 case $cross_compiling:$ac_tool_warned in
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3449 ac_tool_warned=yes ;;
3458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error "no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details." "$LINENO" 5; }
3463 # Provide some information about the compiler.
3464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3467 for ac_option in --version -v -V -qversion; do
3468 { { ac_try="$ac_compiler $ac_option >&5"
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3477 if test -s conftest.err; then
3479 ... rest of stderr output deleted ...
3480 10q' conftest.err >conftest.er1
3481 cat conftest.er1 >&5
3483 rm -f conftest.er1 conftest.err
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 ac_clean_files_save=$ac_clean_files
3500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3501 # Try to create an executable without -o first, disregard a.out.
3502 # It will help us diagnose broken compilers, and finding out an intuition
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3505 $as_echo_n "checking whether the C compiler works... " >&6; }
3506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3508 # The possible output files:
3509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3512 for ac_file in $ac_files
3515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 if { { ac_try="$ac_link_default"
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link_default") 2>&5
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3534 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3535 # so that the user can short-circuit this test for compilers unknown to
3537 for ac_file in $ac_files ''
3539 test -f "$ac_file" || continue
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3544 # We found the default executable, but exeext='' is most
3548 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3550 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 # We set ac_cv_exeext here because the later test for it is not
3553 # safe: cross compilers may not add the suffix if given an `-o'
3554 # argument, so we may need to know it at that point already.
3555 # Even if this section looks crufty: it has the advantage of
3562 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567 if test -z "$ac_file"; then :
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 { as_fn_set_status 77
3576 as_fn_error "C compiler cannot create executables
3577 See \`config.log' for more details." "$LINENO" 5; }; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3580 $as_echo "yes" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3583 $as_echo_n "checking for C compiler default output file name... " >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3585 $as_echo "$ac_file" >&6; }
3586 ac_exeext=$ac_cv_exeext
3588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3589 ac_clean_files=$ac_clean_files_save
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3591 $as_echo_n "checking for suffix of executables... " >&6; }
3592 if { { ac_try="$ac_link"
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link") 2>&5
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3604 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3605 # work properly (i.e., refer to `conftest.exe'), while it won't with
3607 for ac_file in conftest.exe conftest conftest.*; do
3608 test -f "$ac_file" || continue
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3611 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error "cannot compute suffix of executables: cannot compile and link
3620 See \`config.log' for more details." "$LINENO" 5; }
3622 rm -f conftest conftest$ac_cv_exeext
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3624 $as_echo "$ac_cv_exeext" >&6; }
3626 rm -f conftest.$ac_ext
3627 EXEEXT=$ac_cv_exeext
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3635 FILE *f = fopen ("conftest.out", "w");
3636 return ferror (f) || fclose (f) != 0;
3642 ac_clean_files="$ac_clean_files conftest.out"
3643 # Check that the compiler produces executables we can run. If not, either
3644 # the compiler is broken, or we cross compile.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3646 $as_echo_n "checking whether we are cross compiling... " >&6; }
3647 if test "$cross_compiling" != yes; then
3648 { { ac_try="$ac_link"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 $as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }
3659 if { ac_try='./conftest$ac_cv_exeext'
3660 { { case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_try") 2>&5
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; }; then
3672 if test "$cross_compiling" = maybe; then
3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3677 as_fn_error "cannot run C compiled programs.
3678 If you meant to cross compile, use \`--host'.
3679 See \`config.log' for more details." "$LINENO" 5; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3684 $as_echo "$cross_compiling" >&6; }
3686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3687 ac_clean_files=$ac_clean_files_save
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3689 $as_echo_n "checking for suffix of object files... " >&6; }
3690 if test "${ac_cv_objext+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 rm -f conftest.o conftest.obj
3705 if { { ac_try="$ac_compile"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_compile") 2>&5
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 for ac_file in conftest.o conftest.obj conftest.*; do
3717 test -f "$ac_file" || continue;
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error "cannot compute suffix of object files: cannot compile
3731 See \`config.log' for more details." "$LINENO" 5; }
3733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736 $as_echo "$ac_cv_objext" >&6; }
3737 OBJEXT=$ac_cv_objext
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3758 if ac_fn_c_try_compile "$LINENO"; then :
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3769 if test $ac_compiler_gnu = yes; then
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3796 if ac_fn_c_try_compile "$LINENO"; then :
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 if ac_fn_c_try_compile "$LINENO"; then :
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3838 $as_echo "$ac_cv_prog_cc_g" >&6; }
3839 if test "$ac_test_CFLAGS" = set; then
3840 CFLAGS=$ac_save_CFLAGS
3841 elif test $ac_cv_prog_cc_g = yes; then
3842 if test "$GCC" = yes; then
3848 if test "$GCC" = yes; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 ac_cv_prog_cc_c89=no
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3865 #include <sys/types.h>
3866 #include <sys/stat.h>
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3881 s = g (p, va_arg (v,int));
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 rm -f conftest.$ac_ext
3929 case "x$ac_cv_prog_cc_c89" in
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 # Check whether --enable-largefile was given.
3953 if test "${enable_largefile+set}" = set; then :
3954 enableval=$enable_largefile;
3957 if test "$enable_largefile" != no; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3960 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3961 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3964 ac_cv_sys_largefile_CC=no
3965 if test "$GCC" != yes; then
3968 # IRIX 6.2 and later do not support large files by default,
3969 # so use the C compiler's -n32 option if that helps.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972 #include <sys/types.h>
3973 /* Check that off_t can represent 2**63 - 1 correctly.
3974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3975 since some C++ compilers masquerading as C compilers
3976 incorrectly reject 9223372036854775807. */
3977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3979 && LARGE_OFF_T % 2147483647 == 1)
3989 if ac_fn_c_try_compile "$LINENO"; then :
3992 rm -f core conftest.err conftest.$ac_objext
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_sys_largefile_CC=' -n32'; break
3997 rm -f core conftest.err conftest.$ac_objext
4001 rm -f conftest.$ac_ext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4005 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4006 if test "$ac_cv_sys_largefile_CC" != no; then
4007 CC=$CC$ac_cv_sys_largefile_CC
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4011 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4012 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018 #include <sys/types.h>
4019 /* Check that off_t can represent 2**63 - 1 correctly.
4020 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4021 since some C++ compilers masquerading as C compilers
4022 incorrectly reject 9223372036854775807. */
4023 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4024 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4025 && LARGE_OFF_T % 2147483647 == 1)
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_sys_file_offset_bits=no; break
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #define _FILE_OFFSET_BITS 64
4042 #include <sys/types.h>
4043 /* Check that off_t can represent 2**63 - 1 correctly.
4044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4045 since some C++ compilers masquerading as C compilers
4046 incorrectly reject 9223372036854775807. */
4047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4049 && LARGE_OFF_T % 2147483647 == 1)
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_sys_file_offset_bits=64; break
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_cv_sys_file_offset_bits=unknown
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4068 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4069 case $ac_cv_sys_file_offset_bits in #(
4072 cat >>confdefs.h <<_ACEOF
4073 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4078 if test $ac_cv_sys_file_offset_bits = unknown; then
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4080 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4081 if test "${ac_cv_sys_large_files+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 #include <sys/types.h>
4088 /* Check that off_t can represent 2**63 - 1 correctly.
4089 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4090 since some C++ compilers masquerading as C compilers
4091 incorrectly reject 9223372036854775807. */
4092 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4093 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4094 && LARGE_OFF_T % 2147483647 == 1)
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105 ac_cv_sys_large_files=no; break
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4110 #define _LARGE_FILES 1
4111 #include <sys/types.h>
4112 /* Check that off_t can represent 2**63 - 1 correctly.
4113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4114 since some C++ compilers masquerading as C compilers
4115 incorrectly reject 9223372036854775807. */
4116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4118 && LARGE_OFF_T % 2147483647 == 1)
4128 if ac_fn_c_try_compile "$LINENO"; then :
4129 ac_cv_sys_large_files=1; break
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_cv_sys_large_files=unknown
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4137 $as_echo "$ac_cv_sys_large_files" >&6; }
4138 case $ac_cv_sys_large_files in #(
4141 cat >>confdefs.h <<_ACEOF
4142 #define _LARGE_FILES $ac_cv_sys_large_files
4151 # In order to be able to change the scilab directory
4152 # See http://wiki.debian.org/RpathIssue
4153 # Find a good install program. We prefer a C program (faster),
4154 # so one script is as good as another. But avoid the broken or
4155 # incompatible versions:
4156 # SysV /etc/install, /usr/sbin/install
4157 # SunOS /usr/etc/install
4158 # IRIX /sbin/install
4160 # AmigaOS /C/install, which installs bootblocks on floppy discs
4161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4164 # OS/2's system install, which has a completely different semantic
4165 # ./install, which can be erroneously created by make from ./install.sh.
4166 # Reject install programs that cannot install multiple files.
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4168 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4169 if test -z "$INSTALL"; then
4170 if test "${ac_cv_path_install+set}" = set; then :
4171 $as_echo_n "(cached) " >&6
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 # Account for people who put trailing slashes in PATH elements.
4179 case $as_dir/ in #((
4180 ./ | .// | /[cC]/* | \
4181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4182 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4185 # OSF1 and SCO ODT 3.0 have their own names for install.
4186 # Don't use installbsd from OSF since it installs stuff as root
4188 for ac_prog in ginstall scoinst install; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4191 if test $ac_prog = install &&
4192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4193 # AIX install. It has an incompatible calling convention.
4195 elif test $ac_prog = install &&
4196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4197 # program-specific install script used by HP pwplus--don't use.
4200 rm -rf conftest.one conftest.two conftest.dir
4201 echo one > conftest.one
4202 echo two > conftest.two
4204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4205 test -s conftest.one && test -s conftest.two &&
4206 test -s conftest.dir/conftest.one &&
4207 test -s conftest.dir/conftest.two
4209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4222 rm -rf conftest.one conftest.two conftest.dir
4225 if test "${ac_cv_path_install+set}" = set; then
4226 INSTALL=$ac_cv_path_install
4228 # As a last resort, use the slow shell script. Don't cache a
4229 # value for INSTALL within a source directory, because that will
4230 # break other packages using the cache if that directory is
4231 # removed, or if the value is a relative name.
4232 INSTALL=$ac_install_sh
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4236 $as_echo "$INSTALL" >&6; }
4238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4239 # It thinks the first close brace ends the variable substitution.
4240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4246 # Make sure we can run config.sub.
4247 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4248 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4251 $as_echo_n "checking build system type... " >&6; }
4252 if test "${ac_cv_build+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4255 ac_build_alias=$build_alias
4256 test "x$ac_build_alias" = x &&
4257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4258 test "x$ac_build_alias" = x &&
4259 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4261 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4265 $as_echo "$ac_cv_build" >&6; }
4266 case $ac_cv_build in
4268 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4271 ac_save_IFS=$IFS; IFS='-'
4277 # Remember, the first character of IFS is used to create $*,
4278 # except with old shells:
4281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4285 $as_echo_n "checking host system type... " >&6; }
4286 if test "${ac_cv_host+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4289 if test "x$host_alias" = x; then
4290 ac_cv_host=$ac_cv_build
4292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4293 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4298 $as_echo "$ac_cv_host" >&6; }
4301 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4304 ac_save_IFS=$IFS; IFS='-'
4310 # Remember, the first character of IFS is used to create $*,
4311 # except with old shells:
4314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4318 # Check whether --with-gnu-ld was given.
4319 if test "${with_gnu_ld+set}" = set; then :
4320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4325 # Prepare PATH_SEPARATOR.
4326 # The user is always right.
4327 if test "${PATH_SEPARATOR+set}" != set; then
4328 echo "#! /bin/sh" >conf$$.sh
4329 echo "exit 0" >>conf$$.sh
4331 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4339 if test "$GCC" = yes; then
4340 # Check if gcc -print-prog-name=ld gives a path.
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4342 $as_echo_n "checking for ld used by GCC... " >&6; }
4345 # gcc leaves a trailing carriage return which upsets mingw
4346 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4348 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4351 # Accept absolute paths.
4352 [\\/]* | [A-Za-z]:[\\/]*)
4353 re_direlt='/[^/][^/]*/\.\./'
4354 # Canonicalize the path of ld
4355 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4356 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4357 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4359 test -z "$LD" && LD="$ac_prog"
4362 # If it fails, then pretend we aren't using GCC.
4366 # If it is relative, then search for the first ld in PATH.
4370 elif test "$with_gnu_ld" = yes; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4372 $as_echo_n "checking for GNU ld... " >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4375 $as_echo_n "checking for non-GNU ld... " >&6; }
4377 if test "${acl_cv_path_LD+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4380 if test -z "$LD"; then
4381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4382 for ac_dir in $PATH; do
4383 test -z "$ac_dir" && ac_dir=.
4384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4385 acl_cv_path_LD="$ac_dir/$ac_prog"
4386 # Check to see if the program is GNU ld. I'd rather use --version,
4387 # but apparently some GNU ld's only accept -v.
4388 # Break only if it was the GNU/non-GNU ld that we prefer.
4389 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4390 *GNU* | *'with BFD'*)
4391 test "$with_gnu_ld" != no && break ;;
4393 test "$with_gnu_ld" != yes && break ;;
4399 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4403 LD="$acl_cv_path_LD"
4404 if test -n "$LD"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4406 $as_echo "$LD" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4411 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4414 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4417 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4418 case `$LD -v 2>&1 </dev/null` in
4419 *GNU* | *'with BFD'*)
4420 acl_cv_prog_gnu_ld=yes ;;
4422 acl_cv_prog_gnu_ld=no ;;
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4426 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4427 with_gnu_ld=$acl_cv_prog_gnu_ld
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4432 $as_echo_n "checking for shared library path variable... " >&6; }
4433 if test "${acl_cv_libpath+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4438 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4441 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4445 $as_echo "$acl_cv_libpath" >&6; }
4446 shlibpath_var="$acl_cv_shlibpath_var"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4450 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4451 # Check whether --enable-relocatable was given.
4452 if test "${enable_relocatable+set}" = set; then :
4453 enableval=$enable_relocatable; if test "$enableval" != no; then
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4465 $as_echo "$RELOCATABLE" >&6; }
4469 if test "X$prefix" = "XNONE"; then
4470 reloc_final_prefix="$ac_default_prefix"
4472 reloc_final_prefix="$prefix"
4475 cat >>confdefs.h <<_ACEOF
4476 #define INSTALLPREFIX "${reloc_final_prefix}"
4482 ac_cpp='$CPP $CPPFLAGS'
4483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4487 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4488 # On Suns, sometimes $CPP names a directory.
4489 if test -n "$CPP" && test -d "$CPP"; then
4492 if test -z "$CPP"; then
4493 if test "${ac_cv_prog_CPP+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4496 # Double quotes because CPP needs to be expanded
4497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4500 for ac_c_preproc_warn_flag in '' yes
4502 # Use a header file that comes with gcc, so configuring glibc
4503 # with a fresh cross-compiler works.
4504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 # <limits.h> exists even on freestanding compilers.
4506 # On the NeXT, cc -E runs the code through the compiler's parser,
4507 # not just through cpp. "Syntax error" is here to catch this case.
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4511 # include <limits.h>
4513 # include <assert.h>
4517 if ac_fn_c_try_cpp "$LINENO"; then :
4520 # Broken: fails on valid input.
4523 rm -f conftest.err conftest.$ac_ext
4525 # OK, works on sane cases. Now check whether nonexistent headers
4526 # can be detected and how.
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <ac_nonexistent.h>
4531 if ac_fn_c_try_cpp "$LINENO"; then :
4532 # Broken: success on invalid input.
4535 # Passes both tests.
4539 rm -f conftest.err conftest.$ac_ext
4542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543 rm -f conftest.err conftest.$ac_ext
4544 if $ac_preproc_ok; then :
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4557 $as_echo "$CPP" >&6; }
4559 for ac_c_preproc_warn_flag in '' yes
4561 # Use a header file that comes with gcc, so configuring glibc
4562 # with a fresh cross-compiler works.
4563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 # <limits.h> exists even on freestanding compilers.
4565 # On the NeXT, cc -E runs the code through the compiler's parser,
4566 # not just through cpp. "Syntax error" is here to catch this case.
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4570 # include <limits.h>
4572 # include <assert.h>
4576 if ac_fn_c_try_cpp "$LINENO"; then :
4579 # Broken: fails on valid input.
4582 rm -f conftest.err conftest.$ac_ext
4584 # OK, works on sane cases. Now check whether nonexistent headers
4585 # can be detected and how.
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4590 if ac_fn_c_try_cpp "$LINENO"; then :
4591 # Broken: success on invalid input.
4594 # Passes both tests.
4598 rm -f conftest.err conftest.$ac_ext
4601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4602 rm -f conftest.err conftest.$ac_ext
4603 if $ac_preproc_ok; then :
4606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4608 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details." "$LINENO" 5; }
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4620 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4621 if test "${ac_cv_path_GREP+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4624 if test -z "$GREP"; then
4625 ac_path_GREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in grep ggrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4636 # Check for GNU ac_path_GREP and select it if it is found.
4637 # Check for GNU $ac_path_GREP
4638 case `"$ac_path_GREP" --version 2>&1` in
4640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4643 $as_echo_n 0123456789 >"conftest.in"
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'GREP' >> "conftest.nl"
4650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_GREP="$ac_path_GREP"
4656 ac_path_GREP_max=$ac_count
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 $ac_path_GREP_found && break 3
4669 if test -z "$ac_cv_path_GREP"; then
4670 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673 ac_cv_path_GREP=$GREP
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4678 $as_echo "$ac_cv_path_GREP" >&6; }
4679 GREP="$ac_cv_path_GREP"
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4683 $as_echo_n "checking for egrep... " >&6; }
4684 if test "${ac_cv_path_EGREP+set}" = set; then :
4685 $as_echo_n "(cached) " >&6
4687 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4688 then ac_cv_path_EGREP="$GREP -E"
4690 if test -z "$EGREP"; then
4691 ac_path_EGREP_found=false
4692 # Loop through the user's path and test for each of PROGNAME-LIST
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4697 test -z "$as_dir" && as_dir=.
4698 for ac_prog in egrep; do
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4702 # Check for GNU ac_path_EGREP and select it if it is found.
4703 # Check for GNU $ac_path_EGREP
4704 case `"$ac_path_EGREP" --version 2>&1` in
4706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4709 $as_echo_n 0123456789 >"conftest.in"
4712 cat "conftest.in" "conftest.in" >"conftest.tmp"
4713 mv "conftest.tmp" "conftest.in"
4714 cp "conftest.in" "conftest.nl"
4715 $as_echo 'EGREP' >> "conftest.nl"
4716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4718 as_fn_arith $ac_count + 1 && ac_count=$as_val
4719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4720 # Best one so far, save it but keep looking for a better one
4721 ac_cv_path_EGREP="$ac_path_EGREP"
4722 ac_path_EGREP_max=$ac_count
4724 # 10*(2^10) chars as input seems more than enough
4725 test $ac_count -gt 10 && break
4727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4730 $ac_path_EGREP_found && break 3
4735 if test -z "$ac_cv_path_EGREP"; then
4736 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4739 ac_cv_path_EGREP=$EGREP
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4745 $as_echo "$ac_cv_path_EGREP" >&6; }
4746 EGREP="$ac_cv_path_EGREP"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4750 $as_echo_n "checking for ANSI C header files... " >&6; }
4751 if test "${ac_cv_header_stdc+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_header_stdc=yes
4772 ac_cv_header_stdc=no
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 if test $ac_cv_header_stdc = yes; then
4777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "memchr" >/dev/null 2>&1; then :
4787 ac_cv_header_stdc=no
4793 if test $ac_cv_header_stdc = yes; then
4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "free" >/dev/null 2>&1; then :
4804 ac_cv_header_stdc=no
4810 if test $ac_cv_header_stdc = yes; then
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4812 if test "$cross_compiling" = yes; then :
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4819 #if ((' ' & 0x0FF) == 0x020)
4820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4823 # define ISLOWER(c) \
4824 (('a' <= (c) && (c) <= 'i') \
4825 || ('j' <= (c) && (c) <= 'r') \
4826 || ('s' <= (c) && (c) <= 'z'))
4827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4835 for (i = 0; i < 256; i++)
4836 if (XOR (islower (i), ISLOWER (i))
4837 || toupper (i) != TOUPPER (i))
4842 if ac_fn_c_try_run "$LINENO"; then :
4845 ac_cv_header_stdc=no
4847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4848 conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4854 $as_echo "$ac_cv_header_stdc" >&6; }
4855 if test $ac_cv_header_stdc = yes; then
4857 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4861 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4862 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4863 inttypes.h stdint.h unistd.h
4865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4866 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4868 eval as_val=\$$as_ac_Header
4869 if test "x$as_val" = x""yes; then :
4870 cat >>confdefs.h <<_ACEOF
4871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4886 use_elf_origin_trick=no
4887 if test $RELOCATABLE = yes; then
4888 # --enable-relocatable implies --disable-rpath
4891 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
4893 for ac_header in unistd.h mach-o/dyld.h
4895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4897 eval as_val=\$$as_ac_Header
4898 if test "x$as_val" = x""yes; then :
4899 cat >>confdefs.h <<_ACEOF
4900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4907 for ac_func in _NSGetExecutablePath
4909 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
4910 if test "x$ac_cv_func__NSGetExecutablePath" = x""yes; then :
4911 cat >>confdefs.h <<_ACEOF
4912 #define HAVE__NSGETEXECUTABLEPATH 1
4919 mingw*) is_noop=yes ;;
4920 linux*) use_elf_origin_trick=yes ;;
4922 if test $is_noop = yes; then
4923 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
4925 if test $use_elf_origin_trick = yes; then
4926 case "$ac_aux_dir" in
4927 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
4928 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
4930 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
4932 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\""
4933 case "$ac_aux_dir" in
4934 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
4935 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
4943 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
4944 RELOCATABLE_VIA_LD_TRUE=
4945 RELOCATABLE_VIA_LD_FALSE='#'
4947 RELOCATABLE_VIA_LD_TRUE='#'
4948 RELOCATABLE_VIA_LD_FALSE=
4954 if test $RELOCATABLE = yes; then
4955 case " $LIBOBJS " in
4956 *" relocatable.$ac_objext "* ) ;;
4957 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
4965 if test "X$prefix" = "XNONE"; then
4966 reloc_final_prefix="$ac_default_prefix"
4968 reloc_final_prefix="$prefix"
4971 cat >>confdefs.h <<_ACEOF
4972 #define INSTALLPREFIX "${reloc_final_prefix}"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4979 $as_echo_n "checking for shared library run path origin... " >&6; }
4980 if test "${acl_cv_rpath+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4984 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4985 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4992 $as_echo "$acl_cv_rpath" >&6; }
4994 acl_libext="$acl_cv_libext"
4995 acl_shlibext="$acl_cv_shlibext"
4996 acl_libname_spec="$acl_cv_libname_spec"
4997 acl_library_names_spec="$acl_cv_library_names_spec"
4998 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4999 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5000 acl_hardcode_direct="$acl_cv_hardcode_direct"
5001 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5002 # Check whether --enable-rpath was given.
5003 if test "${enable_rpath+set}" = set; then :
5004 enableval=$enable_rpath; :
5011 # If configure detect that timestamp changed,
5012 # it tries to rebuild configure & makefile which can be a painmaker
5013 # if the version is different
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5016 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5017 # Check whether --enable-maintainer-mode was given.
5018 if test "${enable_maintainer_mode+set}" = set; then :
5019 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5021 USE_MAINTAINER_MODE=no
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5025 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5026 if test $USE_MAINTAINER_MODE = yes; then
5027 MAINTAINER_MODE_TRUE=
5028 MAINTAINER_MODE_FALSE='#'
5030 MAINTAINER_MODE_TRUE='#'
5031 MAINTAINER_MODE_FALSE=
5034 MAINT=$MAINTAINER_MODE_TRUE
5038 am__api_version='1.11'
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5041 $as_echo_n "checking whether build environment is sane... " >&6; }
5044 echo timestamp > conftest.file
5045 # Reject unsafe characters in $srcdir or the absolute working directory
5046 # name. Accept space and tab only in the latter.
5050 *[\\\"\#\$\&\'\`$am_lf]*)
5051 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5054 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5055 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5058 # Do `set' in a subshell so we don't clobber the current shell's
5059 # arguments. Must try -L first in case configure is actually a
5060 # symlink; some systems play weird games with the mod time of symlinks
5061 # (eg FreeBSD returns the mod time of the symlink's containing
5064 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5065 if test "$*" = "X"; then
5067 set X `ls -t "$srcdir/configure" conftest.file`
5070 if test "$*" != "X $srcdir/configure conftest.file" \
5071 && test "$*" != "X conftest.file $srcdir/configure"; then
5073 # If neither matched, then we have a broken ls. This can happen
5074 # if, for instance, CONFIG_SHELL is bash and it inherits a
5075 # broken ls alias from the environment. This has actually
5076 # happened. Such a system could not be considered "sane".
5077 as_fn_error "ls -t appears to fail. Make sure there is not a broken
5078 alias in your environment" "$LINENO" 5
5081 test "$2" = conftest.file
5087 as_fn_error "newly created file is older than distributed files!
5088 Check your system clock" "$LINENO" 5
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5092 test "$program_prefix" != NONE &&
5093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5094 # Use a double $ so make ignores it.
5095 test "$program_suffix" != NONE &&
5096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5097 # Double any \ or $.
5098 # By default was `s,x,x', remove it if useless.
5099 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5100 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5102 if test x"${MISSING+set}" != xset; then
5105 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5107 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5110 # Use eval to expand $SHELL
5111 if eval "$MISSING --run true"; then
5112 am_missing_run="$MISSING --run "
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5116 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5120 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5121 if test -z "$MKDIR_P"; then
5122 if test "${ac_cv_path_mkdir+set}" = set; then :
5123 $as_echo_n "(cached) " >&6
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5129 test -z "$as_dir" && as_dir=.
5130 for ac_prog in mkdir gmkdir; do
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
5133 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5134 'mkdir (GNU coreutils) '* | \
5135 'mkdir (coreutils) '* | \
5136 'mkdir (fileutils) '4.1*)
5137 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5147 test -d ./--version && rmdir ./--version
5148 if test "${ac_cv_path_mkdir+set}" = set; then
5149 MKDIR_P="$ac_cv_path_mkdir -p"
5151 # As a last resort, use the slow shell script. Don't cache a
5152 # value for MKDIR_P within a source directory, because that will
5153 # break other packages using the cache if that directory is
5154 # removed, or if the value is a relative name.
5155 MKDIR_P="$ac_install_sh -d"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5159 $as_echo "$MKDIR_P" >&6; }
5163 [\\/$]* | ?:[\\/]*) ;;
5164 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5167 for ac_prog in gawk mawk nawk awk
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_AWK+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5176 if test -n "$AWK"; then
5177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_AWK="$ac_prog"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 if test -n "$AWK"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5199 $as_echo "$AWK" >&6; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5206 test -n "$AWK" && break
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5213 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5214 $as_echo_n "(cached) " >&6
5216 cat >conftest.make <<\_ACEOF
5219 @echo '@@@%%%=$(MAKE)=@@@%%%'
5221 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5224 eval ac_cv_prog_make_${ac_make}_set=yes;;
5226 eval ac_cv_prog_make_${ac_make}_set=no;;
5230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5237 SET_MAKE="MAKE=${MAKE-make}"
5240 rm -rf .tst 2>/dev/null
5241 mkdir .tst 2>/dev/null
5242 if test -d .tst; then
5247 rmdir .tst 2>/dev/null
5249 DEPDIR="${am__leading_dot}deps"
5251 ac_config_commands="$ac_config_commands depfiles"
5254 am_make=${MAKE-make}
5255 cat > confinc << 'END'
5257 @echo this is the am__doit target
5260 # If we don't find an include directive, just comment out the code.
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5262 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5266 # First try GNU make style include.
5267 echo "include confinc" > confmf
5268 # Ignore all kinds of additional output from `make'.
5269 case `$am_make -s -f confmf 2> /dev/null` in #(
5270 *the\ am__doit\ target*)
5276 # Now try BSD make style include.
5277 if test "$am__include" = "#"; then
5278 echo '.include "confinc"' > confmf
5279 case `$am_make -s -f confmf 2> /dev/null` in #(
5280 *the\ am__doit\ target*)
5281 am__include=.include
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5290 $as_echo "$_am_result" >&6; }
5291 rm -f confinc confmf
5293 # Check whether --enable-dependency-tracking was given.
5294 if test "${enable_dependency_tracking+set}" = set; then :
5295 enableval=$enable_dependency_tracking;
5298 if test "x$enable_dependency_tracking" != xno; then
5299 am_depcomp="$ac_aux_dir/depcomp"
5302 if test "x$enable_dependency_tracking" != xno; then
5311 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5312 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5313 # is not polluted with repeated "-I."
5314 am__isrc=' -I$(srcdir)'
5315 # test to see if srcdir already configured
5316 if test -f $srcdir/config.status; then
5317 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5321 # test whether we have cygpath
5322 if test -z "$CYGPATH_W"; then
5323 if (cygpath --version) >/dev/null 2>/dev/null; then
5324 CYGPATH_W='cygpath -w'
5331 # Define the identity of the package.
5336 cat >>confdefs.h <<_ACEOF
5337 #define PACKAGE "$PACKAGE"
5341 cat >>confdefs.h <<_ACEOF
5342 #define VERSION "$VERSION"
5345 # Some tools Automake needs.
5347 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5350 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5353 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5356 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5359 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5361 # We need awk for the "check" target. The system "awk" is bad on
5363 # Always define AMTAR for backward compatibility.
5365 AMTAR=${AMTAR-"${am_missing_run}tar"}
5367 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5372 depcc="$CC" am_compiler_list=
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5375 $as_echo_n "checking dependency style of $depcc... " >&6; }
5376 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5379 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5380 # We make a subdir and do the tests there. Otherwise we can end up
5381 # making bogus files that we don't know about and never remove. For
5382 # instance it was reported that on HP-UX the gcc test will end up
5383 # making a dummy file named `D' -- because `-MD' means `put the output
5386 # Copy depcomp to subdir because otherwise we won't find it if we're
5387 # using a relative directory.
5388 cp "$am_depcomp" conftest.dir
5390 # We will build objects and dependencies in a subdirectory because
5391 # it helps to detect inapplicable dependency modes. For instance
5392 # both Tru64's cc and ICC support -MD to output dependencies as a
5393 # side effect of compilation, but ICC will put the dependencies in
5394 # the current directory while Tru64 will put them in the object
5398 am_cv_CC_dependencies_compiler_type=none
5399 if test "$am_compiler_list" = ""; then
5400 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5403 case " $depcc " in #(
5404 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5407 for depmode in $am_compiler_list; do
5408 # Setup a source with many dependencies, because some compilers
5409 # like to wrap large dependency lists on column 80 (with \), and
5410 # we should not choose a depcomp mode which is confused by this.
5412 # We need to recreate these files for each test, as the compiler may
5413 # overwrite some of them when testing with obscure command lines.
5414 # This happens at least with the AIX C compiler.
5416 for i in 1 2 3 4 5 6; do
5417 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5418 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5419 # Solaris 8's {/usr,}/bin/sh.
5420 touch sub/conftst$i.h
5422 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5424 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5425 # mode. It turns out that the SunPro C++ compiler does not properly
5426 # handle `-M -o', and we need to detect this. Also, some Intel
5427 # versions had trouble with output in subdirs
5428 am__obj=sub/conftest.${OBJEXT-o}
5429 am__minus_obj="-o $am__obj"
5432 # This depmode causes a compiler race in universal mode.
5433 test "$am__universal" = false || continue
5436 # after this tag, mechanisms are not by side-effect, so they'll
5437 # only be used when explicitly requested
5438 if test "x$enable_dependency_tracking" = xyes; then
5444 msvisualcpp | msvcmsys)
5445 # This compiler won't grok `-c -o', but also, the minuso test has
5446 # not run yet. These depmodes are late enough in the game, and
5447 # so weak that their functioning should not be impacted.
5448 am__obj=conftest.${OBJEXT-o}
5453 if depmode=$depmode \
5454 source=sub/conftest.c object=$am__obj \
5455 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5456 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5457 >/dev/null 2>conftest.err &&
5458 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5459 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5460 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5461 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5462 # icc doesn't choke on unknown options, it will just issue warnings
5463 # or remarks (even with -Werror). So we grep stderr for any message
5464 # that says an option was ignored or not supported.
5465 # When given -MP, icc 7.0 and 7.1 complain thusly:
5466 # icc: Command line warning: ignoring option '-M'; no argument required
5467 # The diagnosis changed in icc 8.0:
5468 # icc: Command line remark: option '-MP' not supported
5469 if (grep 'ignoring option' conftest.err ||
5470 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5471 am_cv_CC_dependencies_compiler_type=$depmode
5480 am_cv_CC_dependencies_compiler_type=none
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5485 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5486 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5489 test "x$enable_dependency_tracking" != xno \
5490 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5492 am__fastdepCC_FALSE='#'
5494 am__fastdepCC_TRUE='#'
5495 am__fastdepCC_FALSE=
5499 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5503 #################################
5504 ## all the --with-* argument help
5505 #################################
5508 # Check whether --enable-debug was given.
5509 if test "${enable_debug+set}" = set; then :
5510 enableval=$enable_debug;
5514 # Check whether --enable-debug-C was given.
5515 if test "${enable_debug_C+set}" = set; then :
5516 enableval=$enable_debug_C;
5520 # Check whether --enable-debug-CXX was given.
5521 if test "${enable_debug_CXX+set}" = set; then :
5522 enableval=$enable_debug_CXX;
5526 # Check whether --enable-debug-java was given.
5527 if test "${enable_debug_java+set}" = set; then :
5528 enableval=$enable_debug_java;
5532 # Check whether --enable-debug-fortran was given.
5533 if test "${enable_debug_fortran+set}" = set; then :
5534 enableval=$enable_debug_fortran;
5538 # Check whether --enable-debug-linker was given.
5539 if test "${enable_debug_linker+set}" = set; then :
5540 enableval=$enable_debug_linker;
5544 # Check whether --enable-code-coverage was given.
5545 if test "${enable_code_coverage+set}" = set; then :
5546 enableval=$enable_code_coverage;
5550 # Check whether --enable-stopOnWarning was given.
5551 if test "${enable_stopOnWarning+set}" = set; then :
5552 enableval=$enable_stopOnWarning;
5557 # Check whether --with-gcc was given.
5558 if test "${with_gcc+set}" = set; then :
5564 # Check whether --with-g77 was given.
5565 if test "${with_g77+set}" = set; then :
5571 # Check whether --with-gfortran was given.
5572 if test "${with_gfortran+set}" = set; then :
5573 withval=$with_gfortran;
5578 # Check whether --with-intelcompilers was given.
5579 if test "${with_intelcompilers+set}" = set; then :
5580 withval=$with_intelcompilers;
5585 # Check whether --with-tk was given.
5586 if test "${with_tk+set}" = set; then :
5592 # Check whether --with-javasci was given.
5593 if test "${with_javasci+set}" = set; then :
5594 withval=$with_javasci;
5598 # Check whether --enable-compilation-tests was given.
5599 if test "${enable_compilation_tests+set}" = set; then :
5600 enableval=$enable_compilation_tests;
5605 # Check whether --with-gui was given.
5606 if test "${with_gui+set}" = set; then :
5611 # Check whether --enable-build-swig was given.
5612 if test "${enable_build_swig+set}" = set; then :
5613 enableval=$enable_build_swig;
5617 # Check whether --enable-build-giws was given.
5618 if test "${enable_build_giws+set}" = set; then :
5619 enableval=$enable_build_giws;
5624 ################################################
5625 ########## compilator & misc programs detection
5626 ################################################
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5634 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5635 # On Suns, sometimes $CPP names a directory.
5636 if test -n "$CPP" && test -d "$CPP"; then
5639 if test -z "$CPP"; then
5640 if test "${ac_cv_prog_CPP+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
5643 # Double quotes because CPP needs to be expanded
5644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5647 for ac_c_preproc_warn_flag in '' yes
5649 # Use a header file that comes with gcc, so configuring glibc
5650 # with a fresh cross-compiler works.
5651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 # <limits.h> exists even on freestanding compilers.
5653 # On the NeXT, cc -E runs the code through the compiler's parser,
5654 # not just through cpp. "Syntax error" is here to catch this case.
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 # include <limits.h>
5660 # include <assert.h>
5664 if ac_fn_c_try_cpp "$LINENO"; then :
5667 # Broken: fails on valid input.
5670 rm -f conftest.err conftest.$ac_ext
5672 # OK, works on sane cases. Now check whether nonexistent headers
5673 # can be detected and how.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <ac_nonexistent.h>
5678 if ac_fn_c_try_cpp "$LINENO"; then :
5679 # Broken: success on invalid input.
5682 # Passes both tests.
5686 rm -f conftest.err conftest.$ac_ext
5689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5690 rm -f conftest.err conftest.$ac_ext
5691 if $ac_preproc_ok; then :
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5704 $as_echo "$CPP" >&6; }
5706 for ac_c_preproc_warn_flag in '' yes
5708 # Use a header file that comes with gcc, so configuring glibc
5709 # with a fresh cross-compiler works.
5710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5711 # <limits.h> exists even on freestanding compilers.
5712 # On the NeXT, cc -E runs the code through the compiler's parser,
5713 # not just through cpp. "Syntax error" is here to catch this case.
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5717 # include <limits.h>
5719 # include <assert.h>
5723 if ac_fn_c_try_cpp "$LINENO"; then :
5726 # Broken: fails on valid input.
5729 rm -f conftest.err conftest.$ac_ext
5731 # OK, works on sane cases. Now check whether nonexistent headers
5732 # can be detected and how.
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <ac_nonexistent.h>
5737 if ac_fn_c_try_cpp "$LINENO"; then :
5738 # Broken: success on invalid input.
5741 # Passes both tests.
5745 rm -f conftest.err conftest.$ac_ext
5748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5749 rm -f conftest.err conftest.$ac_ext
5750 if $ac_preproc_ok; then :
5753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5755 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5756 See \`config.log' for more details." "$LINENO" 5; }
5760 ac_cpp='$CPP $CPPFLAGS'
5761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5766 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5767 if test "${ac_cv_path_GREP+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5770 if test -z "$GREP"; then
5771 ac_path_GREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in grep ggrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5781 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5782 # Check for GNU ac_path_GREP and select it if it is found.
5783 # Check for GNU $ac_path_GREP
5784 case `"$ac_path_GREP" --version 2>&1` in
5786 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5789 $as_echo_n 0123456789 >"conftest.in"
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 $as_echo 'GREP' >> "conftest.nl"
5796 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 as_fn_arith $ac_count + 1 && ac_count=$as_val
5799 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_GREP="$ac_path_GREP"
5802 ac_path_GREP_max=$ac_count
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5810 $ac_path_GREP_found && break 3
5815 if test -z "$ac_cv_path_GREP"; then
5816 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5819 ac_cv_path_GREP=$GREP
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5824 $as_echo "$ac_cv_path_GREP" >&6; }
5825 GREP="$ac_cv_path_GREP"
5830 #### Mac OS X set of fink path with provided
5834 # Check whether --with-fink_prefix was given.
5835 if test "${with_fink_prefix+set}" = set; then :
5836 withval=$with_fink_prefix;
5842 if test -n "$with_fink_prefix"; then
5843 # If with-fink-prefix is provided, use the provided path to make sure that we will
5844 # use it to detect dependencies (for example, gfortran is not provided in xcode.
5845 # Therefor, we use the one in fink)
5846 FINK_PREFIX="$with_fink_prefix/"
5848 # Exec the init script of fink to make sure that the env is set
5849 if test -f $with_fink_prefix/bin/init.sh; then
5850 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
5851 source $with_fink_prefix/bin/init.sh
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
5854 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
5862 #####################################################
5863 ## Look for pkg-config
5864 #####################################################
5867 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5868 if test -n "$ac_tool_prefix"; then
5869 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5900 if test -n "$PKG_CONFIG"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5902 $as_echo "$PKG_CONFIG" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5910 if test -z "$ac_cv_path_PKG_CONFIG"; then
5911 ac_pt_PKG_CONFIG=$PKG_CONFIG
5912 # Extract the first word of "pkg-config", so it can be a program name with args.
5913 set dummy pkg-config; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 case $ac_pt_PKG_CONFIG in
5921 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5943 if test -n "$ac_pt_PKG_CONFIG"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5945 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5951 if test "x$ac_pt_PKG_CONFIG" = x; then
5954 case $cross_compiling:$ac_tool_warned in
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958 ac_tool_warned=yes ;;
5960 PKG_CONFIG=$ac_pt_PKG_CONFIG
5963 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5967 if test -n "$PKG_CONFIG"; then
5968 _pkg_min_version=0.9.0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5970 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5971 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5973 $as_echo "yes" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5982 #####################################################
5983 ## check if options are correct (or not)
5984 #####################################################
5986 if test "$with_g77" = yes -a "$with_gfortran" = yes; then
5987 as_fn_error "Conflicting options : you specified two fortran compiler" "$LINENO" 5
5990 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
5991 as_fn_error "Conflicting options : you specified two compiler series" "$LINENO" 5
5994 ######## fortran ########
5995 if test "$with_g77" = yes; then
5997 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5998 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6000 if test -n "$ac_tool_prefix"; then
6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006 $as_echo_n "checking for $ac_word... " >&6; }
6007 if test "${ac_cv_prog_F77+set}" = set; then :
6008 $as_echo_n "(cached) " >&6
6010 if test -n "$F77"; then
6011 ac_cv_prog_F77="$F77" # Let the user override the test.
6013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6020 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 if test -n "$F77"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6033 $as_echo "$F77" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6040 test -n "$F77" && break
6043 if test -z "$F77"; then
6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
6048 set dummy $ac_prog; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050 $as_echo_n "checking for $ac_word... " >&6; }
6051 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6054 if test -n "$ac_ct_F77"; then
6055 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_ac_ct_F77="$ac_prog"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6075 if test -n "$ac_ct_F77"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6077 $as_echo "$ac_ct_F77" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080 $as_echo "no" >&6; }
6084 test -n "$ac_ct_F77" && break
6087 if test "x$ac_ct_F77" = x; then
6090 case $cross_compiling:$ac_tool_warned in
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6094 ac_tool_warned=yes ;;
6101 # Provide some information about the compiler.
6102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6105 for ac_option in --version -v -V -qversion; do
6106 { { ac_try="$ac_compiler $ac_option >&5"
6108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6112 $as_echo "$ac_try_echo"; } >&5
6113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6115 if test -s conftest.err; then
6117 ... rest of stderr output deleted ...
6118 10q' conftest.err >conftest.er1
6119 cat conftest.er1 >&5
6121 rm -f conftest.er1 conftest.err
6122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123 test $ac_status = 0; }
6127 # If we don't use `.F' as extension, the preprocessor is not run on the
6128 # input file. (Note that this only needs to work for GNU compilers.)
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6132 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6133 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6134 $as_echo_n "(cached) " >&6
6136 cat > conftest.$ac_ext <<_ACEOF
6144 if ac_fn_f77_try_compile "$LINENO"; then :
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6154 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6156 ac_test_FFLAGS=${FFLAGS+set}
6157 ac_save_FFLAGS=$FFLAGS
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6160 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6161 if test "${ac_cv_prog_f77_g+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6165 cat > conftest.$ac_ext <<_ACEOF
6170 if ac_fn_f77_try_compile "$LINENO"; then :
6171 ac_cv_prog_f77_g=yes
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6179 $as_echo "$ac_cv_prog_f77_g" >&6; }
6180 if test "$ac_test_FFLAGS" = set; then
6181 FFLAGS=$ac_save_FFLAGS
6182 elif test $ac_cv_prog_f77_g = yes; then
6183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6189 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6196 if test $ac_compiler_gnu = yes; then
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 if test -z "$F77"; then
6208 as_fn_error "You asked me to use g77 but i haven't been able to find it" "$LINENO" 5
6212 if test "$with_gfortran" = yes; then
6214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6217 if test -n "$ac_tool_prefix"; then
6218 for ac_prog in gfortran
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if test "${ac_cv_prog_F77+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77="$F77" # Let the user override the test.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 if test -n "$F77"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6250 $as_echo "$F77" >&6; }
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6257 test -n "$F77" && break
6260 if test -z "$F77"; then
6262 for ac_prog in gfortran
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy $ac_prog; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_F77="$ac_prog"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6292 if test -n "$ac_ct_F77"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6294 $as_echo "$ac_ct_F77" >&6; }
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6301 test -n "$ac_ct_F77" && break
6304 if test "x$ac_ct_F77" = x; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6318 # Provide some information about the compiler.
6319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6322 for ac_option in --version -v -V -qversion; do
6323 { { ac_try="$ac_compiler $ac_option >&5"
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329 $as_echo "$ac_try_echo"; } >&5
6330 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6332 if test -s conftest.err; then
6334 ... rest of stderr output deleted ...
6335 10q' conftest.err >conftest.er1
6336 cat conftest.er1 >&5
6338 rm -f conftest.er1 conftest.err
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }
6344 # If we don't use `.F' as extension, the preprocessor is not run on the
6345 # input file. (Note that this only needs to work for GNU compilers.)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6349 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6350 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 cat > conftest.$ac_ext <<_ACEOF
6361 if ac_fn_f77_try_compile "$LINENO"; then :
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6371 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6373 ac_test_FFLAGS=${FFLAGS+set}
6374 ac_save_FFLAGS=$FFLAGS
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6377 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6378 if test "${ac_cv_prog_f77_g+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6382 cat > conftest.$ac_ext <<_ACEOF
6387 if ac_fn_f77_try_compile "$LINENO"; then :
6388 ac_cv_prog_f77_g=yes
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6396 $as_echo "$ac_cv_prog_f77_g" >&6; }
6397 if test "$ac_test_FFLAGS" = set; then
6398 FFLAGS=$ac_save_FFLAGS
6399 elif test $ac_cv_prog_f77_g = yes; then
6400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6406 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6413 if test $ac_compiler_gnu = yes; then
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 if test -z "$F77"; then
6425 as_fn_error "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6429 if test "$with_intelcompilers" = yes; then
6431 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6432 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6434 if test -n "$ac_tool_prefix"; then
6435 for ac_prog in ifc ifort
6437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if test "${ac_cv_prog_F77+set}" = set; then :
6442 $as_echo_n "(cached) " >&6
6444 if test -n "$F77"; then
6445 ac_cv_prog_F77="$F77" # Let the user override the test.
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 if test -n "$F77"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6467 $as_echo "$F77" >&6; }
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6474 test -n "$F77" && break
6477 if test -z "$F77"; then
6479 for ac_prog in ifc ifort
6481 # Extract the first word of "$ac_prog", so it can be a program name with args.
6482 set dummy $ac_prog; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6488 if test -n "$ac_ct_F77"; then
6489 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_F77="$ac_prog"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6509 if test -n "$ac_ct_F77"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6511 $as_echo "$ac_ct_F77" >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6518 test -n "$ac_ct_F77" && break
6521 if test "x$ac_ct_F77" = x; then
6524 case $cross_compiling:$ac_tool_warned in
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6535 # Provide some information about the compiler.
6536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6539 for ac_option in --version -v -V -qversion; do
6540 { { ac_try="$ac_compiler $ac_option >&5"
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6546 $as_echo "$ac_try_echo"; } >&5
6547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6549 if test -s conftest.err; then
6551 ... rest of stderr output deleted ...
6552 10q' conftest.err >conftest.er1
6553 cat conftest.er1 >&5
6555 rm -f conftest.er1 conftest.err
6556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6557 test $ac_status = 0; }
6561 # If we don't use `.F' as extension, the preprocessor is not run on the
6562 # input file. (Note that this only needs to work for GNU compilers.)
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6566 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6567 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6570 cat > conftest.$ac_ext <<_ACEOF
6578 if ac_fn_f77_try_compile "$LINENO"; then :
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6588 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6590 ac_test_FFLAGS=${FFLAGS+set}
6591 ac_save_FFLAGS=$FFLAGS
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6594 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6595 if test "${ac_cv_prog_f77_g+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6599 cat > conftest.$ac_ext <<_ACEOF
6604 if ac_fn_f77_try_compile "$LINENO"; then :
6605 ac_cv_prog_f77_g=yes
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6613 $as_echo "$ac_cv_prog_f77_g" >&6; }
6614 if test "$ac_test_FFLAGS" = set; then
6615 FFLAGS=$ac_save_FFLAGS
6616 elif test $ac_cv_prog_f77_g = yes; then
6617 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6623 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6630 if test $ac_compiler_gnu = yes; then
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641 if test -z "$F77"; then
6642 as_fn_error "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6646 if test -z "$F77"; then
6647 ## No Frotran compiler specified... We rely on Autoconf to find the best
6649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6652 if test -n "$ac_tool_prefix"; then
6653 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
6655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_F77+set}" = set; then :
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$F77"; then
6663 ac_cv_prog_F77="$F77" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 if test -n "$F77"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6685 $as_echo "$F77" >&6; }
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6692 test -n "$F77" && break
6695 if test -z "$F77"; then
6697 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
6699 # Extract the first word of "$ac_prog", so it can be a program name with args.
6700 set dummy $ac_prog; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$ac_ct_F77"; then
6707 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 ac_cv_prog_ac_ct_F77="$ac_prog"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6727 if test -n "$ac_ct_F77"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6729 $as_echo "$ac_ct_F77" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6736 test -n "$ac_ct_F77" && break
6739 if test "x$ac_ct_F77" = x; then
6742 case $cross_compiling:$ac_tool_warned in
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6746 ac_tool_warned=yes ;;
6753 # Provide some information about the compiler.
6754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6757 for ac_option in --version -v -V -qversion; do
6758 { { ac_try="$ac_compiler $ac_option >&5"
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6764 $as_echo "$ac_try_echo"; } >&5
6765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6767 if test -s conftest.err; then
6769 ... rest of stderr output deleted ...
6770 10q' conftest.err >conftest.er1
6771 cat conftest.er1 >&5
6773 rm -f conftest.er1 conftest.err
6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; }
6779 # If we don't use `.F' as extension, the preprocessor is not run on the
6780 # input file. (Note that this only needs to work for GNU compilers.)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6784 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6785 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6788 cat > conftest.$ac_ext <<_ACEOF
6796 if ac_fn_f77_try_compile "$LINENO"; then :
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6806 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6808 ac_test_FFLAGS=${FFLAGS+set}
6809 ac_save_FFLAGS=$FFLAGS
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6812 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6813 if test "${ac_cv_prog_f77_g+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6817 cat > conftest.$ac_ext <<_ACEOF
6822 if ac_fn_f77_try_compile "$LINENO"; then :
6823 ac_cv_prog_f77_g=yes
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6831 $as_echo "$ac_cv_prog_f77_g" >&6; }
6832 if test "$ac_test_FFLAGS" = set; then
6833 FFLAGS=$ac_save_FFLAGS
6834 elif test $ac_cv_prog_f77_g = yes; then
6835 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6841 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6848 if test $ac_compiler_gnu = yes; then
6854 ac_cpp='$CPP $CPPFLAGS'
6855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6862 # case statements were introduced in fortran 90 so we can use that
6863 # as a test to see if our compiler is fortran 90 compatible.
6865 if test -z "$F77"; then
6866 as_fn_error "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
6870 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
6873 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6874 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6878 cat > conftest.$ac_ext <<_ACEOF
6884 print*, "case is 1, i is ", i
6886 print*, "case is 2 to 3, i is ", i
6888 print*, "default case, i is ", i
6894 if ac_fn_f77_try_compile "$LINENO"; then :
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6896 $as_echo "yes" >&6; }
6898 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 ac_cpp='$CPP $CPPFLAGS'
6910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915 ############ C ###############
6918 if test "$with_gcc" = yes; then
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if test "${ac_cv_prog_CC+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6934 if test -n "$CC"; then
6935 ac_cv_prog_CC="$CC" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 if test -n "$CC"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6957 $as_echo "$CC" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6964 test -n "$CC" && break
6967 if test -z "$CC"; then
6971 # Extract the first word of "$ac_prog", so it can be a program name with args.
6972 set dummy $ac_prog; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 if test -n "$ac_ct_CC"; then
6979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_ac_ct_CC="$ac_prog"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6999 if test -n "$ac_ct_CC"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7001 $as_echo "$ac_ct_CC" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7008 test -n "$ac_ct_CC" && break
7011 if test "x$ac_ct_CC" = x; then
7014 case $cross_compiling:$ac_tool_warned in
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7018 ac_tool_warned=yes ;;
7025 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7027 as_fn_error "no acceptable C compiler found in \$PATH
7028 See \`config.log' for more details." "$LINENO" 5; }
7030 # Provide some information about the compiler.
7031 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7034 for ac_option in --version -v -V -qversion; do
7035 { { ac_try="$ac_compiler $ac_option >&5"
7037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7041 $as_echo "$ac_try_echo"; } >&5
7042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7044 if test -s conftest.err; then
7046 ... rest of stderr output deleted ...
7047 10q' conftest.err >conftest.er1
7048 cat conftest.er1 >&5
7050 rm -f conftest.er1 conftest.err
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7056 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7057 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7074 if ac_fn_c_try_compile "$LINENO"; then :
7079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7084 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7085 if test $ac_compiler_gnu = yes; then
7090 ac_test_CFLAGS=${CFLAGS+set}
7091 ac_save_CFLAGS=$CFLAGS
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7093 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7094 if test "${ac_cv_prog_cc_g+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 ac_save_c_werror_flag=$ac_c_werror_flag
7098 ac_c_werror_flag=yes
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_compile "$LINENO"; then :
7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117 /* end confdefs.h. */
7127 if ac_fn_c_try_compile "$LINENO"; then :
7130 ac_c_werror_flag=$ac_save_c_werror_flag
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7143 if ac_fn_c_try_compile "$LINENO"; then :
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 ac_c_werror_flag=$ac_save_c_werror_flag
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7154 $as_echo "$ac_cv_prog_cc_g" >&6; }
7155 if test "$ac_test_CFLAGS" = set; then
7156 CFLAGS=$ac_save_CFLAGS
7157 elif test $ac_cv_prog_cc_g = yes; then
7158 if test "$GCC" = yes; then
7164 if test "$GCC" = yes; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7171 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7172 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7175 ac_cv_prog_cc_c89=no
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7181 #include <sys/types.h>
7182 #include <sys/stat.h>
7183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7184 struct buf { int x; };
7185 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7186 static char *e (p, i)
7192 static char *f (char * (*g) (char **, int), char **p, ...)
7197 s = g (p, va_arg (v,int));
7202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7203 function prototypes and stuff, but not '\xHH' hex character constants.
7204 These don't provoke an error unfortunately, instead are silently treated
7205 as 'x'. The following induces an error, until -std is added to get
7206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7207 array size at least. It's necessary to write '\x00'==0 to get something
7208 that's true only with -std. */
7209 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7212 inside strings and character constants. */
7214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7216 int test (int i, double x);
7217 struct s1 {int (*f) (int a);};
7218 struct s2 {int (*f) (double a);};
7219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7233 CC="$ac_save_CC $ac_arg"
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 ac_cv_prog_cc_c89=$ac_arg
7237 rm -f core conftest.err conftest.$ac_objext
7238 test "x$ac_cv_prog_cc_c89" != "xno" && break
7240 rm -f conftest.$ac_ext
7245 case "x$ac_cv_prog_cc_c89" in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7248 $as_echo "none needed" >&6; } ;;
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7251 $as_echo "unsupported" >&6; } ;;
7253 CC="$CC $ac_cv_prog_cc_c89"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7257 if test "x$ac_cv_prog_cc_c89" != xno; 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
7267 if test -z "$CC"; then
7268 as_fn_error "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7272 if test "$with_intelcompilers" = yes; then
7274 ac_cpp='$CPP $CPPFLAGS'
7275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278 if test -n "$ac_tool_prefix"; then
7279 for ac_prog in icc ecc
7281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_CC+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 if test -n "$CC"; then
7289 ac_cv_prog_CC="$CC" # Let the user override the test.
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 if test -n "$CC"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7311 $as_echo "$CC" >&6; }
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7318 test -n "$CC" && break
7321 if test -z "$CC"; then
7323 for ac_prog in icc ecc
7325 # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7332 if test -n "$ac_ct_CC"; then
7333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342 ac_cv_prog_ac_ct_CC="$ac_prog"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7353 if test -n "$ac_ct_CC"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7355 $as_echo "$ac_ct_CC" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7362 test -n "$ac_ct_CC" && break
7365 if test "x$ac_ct_CC" = x; then
7368 case $cross_compiling:$ac_tool_warned in
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 as_fn_error "no acceptable C compiler found in \$PATH
7382 See \`config.log' for more details." "$LINENO" 5; }
7384 # Provide some information about the compiler.
7385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7388 for ac_option in --version -v -V -qversion; do
7389 { { ac_try="$ac_compiler $ac_option >&5"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7395 $as_echo "$ac_try_echo"; } >&5
7396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7398 if test -s conftest.err; then
7400 ... rest of stderr output deleted ...
7401 10q' conftest.err >conftest.er1
7402 cat conftest.er1 >&5
7404 rm -f conftest.er1 conftest.err
7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7411 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7428 if ac_fn_c_try_compile "$LINENO"; then :
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7439 if test $ac_compiler_gnu = yes; then
7444 ac_test_CFLAGS=${CFLAGS+set}
7445 ac_save_CFLAGS=$CFLAGS
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7448 if test "${ac_cv_prog_cc_g+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7451 ac_save_c_werror_flag=$ac_c_werror_flag
7452 ac_c_werror_flag=yes
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7466 if ac_fn_c_try_compile "$LINENO"; then :
7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7481 if ac_fn_c_try_compile "$LINENO"; then :
7484 ac_c_werror_flag=$ac_save_c_werror_flag
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7497 if ac_fn_c_try_compile "$LINENO"; then :
7500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 ac_c_werror_flag=$ac_save_c_werror_flag
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7508 $as_echo "$ac_cv_prog_cc_g" >&6; }
7509 if test "$ac_test_CFLAGS" = set; then
7510 CFLAGS=$ac_save_CFLAGS
7511 elif test $ac_cv_prog_cc_g = yes; then
7512 if test "$GCC" = yes; then
7518 if test "$GCC" = yes; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7526 if test "${ac_cv_prog_cc_c89+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7529 ac_cv_prog_cc_c89=no
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7535 #include <sys/types.h>
7536 #include <sys/stat.h>
7537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7538 struct buf { int x; };
7539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7540 static char *e (p, i)
7546 static char *f (char * (*g) (char **, int), char **p, ...)
7551 s = g (p, va_arg (v,int));
7556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7557 function prototypes and stuff, but not '\xHH' hex character constants.
7558 These don't provoke an error unfortunately, instead are silently treated
7559 as 'x'. The following induces an error, until -std is added to get
7560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7561 array size at least. It's necessary to write '\x00'==0 to get something
7562 that's true only with -std. */
7563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7566 inside strings and character constants. */
7568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7570 int test (int i, double x);
7571 struct s1 {int (*f) (int a);};
7572 struct s2 {int (*f) (double a);};
7573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7587 CC="$ac_save_CC $ac_arg"
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_prog_cc_c89=$ac_arg
7591 rm -f core conftest.err conftest.$ac_objext
7592 test "x$ac_cv_prog_cc_c89" != "xno" && break
7594 rm -f conftest.$ac_ext
7599 case "x$ac_cv_prog_cc_c89" in
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7602 $as_echo "none needed" >&6; } ;;
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7605 $as_echo "unsupported" >&6; } ;;
7607 CC="$CC $ac_cv_prog_cc_c89"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7609 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7611 if test "x$ac_cv_prog_cc_c89" != xno; then :
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 if test -z "$CC"; then
7622 as_fn_error "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7626 if test -z "$CC"; then
7627 # No C compiler specified... We rely on Autoconf to find the best
7629 ac_cpp='$CPP $CPPFLAGS'
7630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633 if test -n "$ac_tool_prefix"; then
7634 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if test "${ac_cv_prog_CC+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7641 if test -n "$CC"; then
7642 ac_cv_prog_CC="$CC" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 if test -n "$CC"; then
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7664 $as_echo "$CC" >&6; }
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7672 if test -z "$ac_cv_prog_CC"; then
7674 # Extract the first word of "gcc", so it can be a program name with args.
7675 set dummy gcc; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7681 if test -n "$ac_ct_CC"; then
7682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_ac_ct_CC="gcc"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7702 if test -n "$ac_ct_CC"; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7704 $as_echo "$ac_ct_CC" >&6; }
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7710 if test "x$ac_ct_CC" = x; then
7713 case $cross_compiling:$ac_tool_warned in
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7725 if test -z "$CC"; then
7726 if test -n "$ac_tool_prefix"; then
7727 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7728 set dummy ${ac_tool_prefix}cc; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if test "${ac_cv_prog_CC+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 if test -n "$CC"; then
7735 ac_cv_prog_CC="$CC" # Let the user override the test.
7737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 test -z "$as_dir" && as_dir=.
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744 ac_cv_prog_CC="${ac_tool_prefix}cc"
7745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 if test -n "$CC"; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7757 $as_echo "$CC" >&6; }
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 $as_echo "no" >&6; }
7766 if test -z "$CC"; then
7767 # Extract the first word of "cc", so it can be a program name with args.
7768 set dummy cc; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if test "${ac_cv_prog_CC+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7774 if test -n "$CC"; then
7775 ac_cv_prog_CC="$CC" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7786 ac_prog_rejected=yes
7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 if test $ac_prog_rejected = yes; then
7798 # We found a bogon in the path, so make sure we never use it.
7799 set dummy $ac_cv_prog_CC
7801 if test $# != 0; then
7802 # We chose a different compiler from the bogus one.
7803 # However, it has the same basename, so the bogon will be chosen
7804 # first if we set CC to just the basename; use the full file name.
7806 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7812 if test -n "$CC"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7814 $as_echo "$CC" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7822 if test -z "$CC"; then
7823 if test -n "$ac_tool_prefix"; then
7824 for ac_prog in cl.exe
7826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_CC+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$CC"; then
7834 ac_cv_prog_CC="$CC" # Let the user override the test.
7836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 if test -n "$CC"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7856 $as_echo "$CC" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7863 test -n "$CC" && break
7866 if test -z "$CC"; then
7868 for ac_prog in cl.exe
7870 # Extract the first word of "$ac_prog", so it can be a program name with args.
7871 set dummy $ac_prog; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7875 $as_echo_n "(cached) " >&6
7877 if test -n "$ac_ct_CC"; then
7878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7887 ac_cv_prog_ac_ct_CC="$ac_prog"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7898 if test -n "$ac_ct_CC"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7900 $as_echo "$ac_ct_CC" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7907 test -n "$ac_ct_CC" && break
7910 if test "x$ac_ct_CC" = x; then
7913 case $cross_compiling:$ac_tool_warned in
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7917 ac_tool_warned=yes ;;
7926 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7928 as_fn_error "no acceptable C compiler found in \$PATH
7929 See \`config.log' for more details." "$LINENO" 5; }
7931 # Provide some information about the compiler.
7932 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7935 for ac_option in --version -v -V -qversion; do
7936 { { ac_try="$ac_compiler $ac_option >&5"
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7942 $as_echo "$ac_try_echo"; } >&5
7943 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7945 if test -s conftest.err; then
7947 ... rest of stderr output deleted ...
7948 10q' conftest.err >conftest.er1
7949 cat conftest.er1 >&5
7951 rm -f conftest.er1 conftest.err
7952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7958 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7975 if ac_fn_c_try_compile "$LINENO"; then :
7980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7986 if test $ac_compiler_gnu = yes; then
7991 ac_test_CFLAGS=${CFLAGS+set}
7992 ac_save_CFLAGS=$CFLAGS
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7995 if test "${ac_cv_prog_cc_g+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
7998 ac_save_c_werror_flag=$ac_c_werror_flag
7999 ac_c_werror_flag=yes
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8013 if ac_fn_c_try_compile "$LINENO"; then :
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */