2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Scilab 5.
6 # Report bugs to <http://bugzilla.scilab.org/>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugzilla.scilab.org/ about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='Scilab'
593 PACKAGE_TARNAME='scilab'
595 PACKAGE_STRING='Scilab 5'
596 PACKAGE_BUGREPORT='http://bugzilla.scilab.org/'
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
664 COMPILATION_TESTS_FALSE
665 COMPILATION_TESTS_TRUE
667 INSTALL_HELP_XML_FALSE
668 INSTALL_HELP_XML_TRUE
705 GENERATE_LOCALIZATION_FILES_FALSE
706 GENERATE_LOCALIZATION_FILES_TRUE
731 XGETTEXT_EXTRA_OPTIONS
739 GETTEXT_MACRO_VERSION
758 SWIG_RUNTIME_LIBS_DIR
812 USE_DYNAMIC_STACK_FALSE
813 USE_DYNAMIC_STACK_TRUE
820 IS_MIPS_SGI_IRIX_FALSE
821 IS_MIPS_SGI_IRIX_TRUE
870 MAINTAINER_MODE_FALSE
873 RELOCATABLE_VIA_LD_FALSE
874 RELOCATABLE_VIA_LD_TRUE
899 INSTALL_STRIP_PROGRAM
902 SCILAB_BINARY_VERSION
903 SCILAB_LIBRARY_VERSION
904 SCILAB_VERSION_MAINTENANCE
934 program_transform_name
947 enable_option_checking
952 enable_maintainer_mode
953 enable_dependency_tracking
961 enable_stop_on_warning
967 enable_compilation_tests
972 with_min_macosx_version
987 enable_build_localization
1006 with_install_help_xml
1014 ac_precious_vars='build_alias
1037 # Initialize some variables set by options.
1039 ac_init_version=false
1040 ac_unrecognized_opts=
1041 ac_unrecognized_sep=
1042 # The variables have the same names as the options, with
1043 # dashes changed to underlines.
1044 cache_file=/dev/null
1051 program_transform_name=s,x,x,
1059 # Installation directory options.
1060 # These are left unexpanded so users can "make install exec_prefix=/foo"
1061 # and all the variables that are supposed to be based on exec_prefix
1062 # by default will actually change.
1063 # Use braces instead of parens because sh, perl, etc. also accept them.
1064 # (The list follows the same order as the GNU Coding Standards.)
1065 bindir='${exec_prefix}/bin'
1066 sbindir='${exec_prefix}/sbin'
1067 libexecdir='${exec_prefix}/libexec'
1068 datarootdir='${prefix}/share'
1069 datadir='${datarootdir}'
1070 sysconfdir='${prefix}/etc'
1071 sharedstatedir='${prefix}/com'
1072 localstatedir='${prefix}/var'
1073 includedir='${prefix}/include'
1074 oldincludedir='/usr/include'
1075 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1076 infodir='${datarootdir}/info'
1081 libdir='${exec_prefix}/lib'
1082 localedir='${datarootdir}/locale'
1083 mandir='${datarootdir}/man'
1089 # If the previous option needs an argument, assign it.
1090 if test -n "$ac_prev"; then
1091 eval $ac_prev=\$ac_option
1097 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1102 # Accept the important Cygnus configure options, so we can diagnose typos.
1104 case $ac_dashdash$ac_option in
1108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1111 bindir=$ac_optarg ;;
1113 -build | --build | --buil | --bui | --bu)
1114 ac_prev=build_alias ;;
1115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1116 build_alias=$ac_optarg ;;
1118 -cache-file | --cache-file | --cache-fil | --cache-fi \
1119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1120 ac_prev=cache_file ;;
1121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1123 cache_file=$ac_optarg ;;
1125 --config-cache | -C)
1126 cache_file=config.cache ;;
1128 -datadir | --datadir | --datadi | --datad)
1130 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1131 datadir=$ac_optarg ;;
1133 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1134 | --dataroo | --dataro | --datar)
1135 ac_prev=datarootdir ;;
1136 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1137 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1138 datarootdir=$ac_optarg ;;
1140 -disable-* | --disable-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid feature name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_$ac_useropt"
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval enable_$ac_useropt=no ;;
1156 -docdir | --docdir | --docdi | --doc | --do)
1158 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1159 docdir=$ac_optarg ;;
1161 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1163 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1164 dvidir=$ac_optarg ;;
1166 -enable-* | --enable-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid feature name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "enable_$ac_useropt"
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval enable_$ac_useropt=\$ac_optarg ;;
1182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1184 | --exec | --exe | --ex)
1185 ac_prev=exec_prefix ;;
1186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1188 | --exec=* | --exe=* | --ex=*)
1189 exec_prefix=$ac_optarg ;;
1191 -gas | --gas | --ga | --g)
1192 # Obsolete; use --with-gas.
1195 -help | --help | --hel | --he | -h)
1196 ac_init_help=long ;;
1197 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1198 ac_init_help=recursive ;;
1199 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1200 ac_init_help=short ;;
1202 -host | --host | --hos | --ho)
1203 ac_prev=host_alias ;;
1204 -host=* | --host=* | --hos=* | --ho=*)
1205 host_alias=$ac_optarg ;;
1207 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211 htmldir=$ac_optarg ;;
1213 -includedir | --includedir | --includedi | --included | --include \
1214 | --includ | --inclu | --incl | --inc)
1215 ac_prev=includedir ;;
1216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1217 | --includ=* | --inclu=* | --incl=* | --inc=*)
1218 includedir=$ac_optarg ;;
1220 -infodir | --infodir | --infodi | --infod | --info | --inf)
1222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1223 infodir=$ac_optarg ;;
1225 -libdir | --libdir | --libdi | --libd)
1227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1228 libdir=$ac_optarg ;;
1230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1231 | --libexe | --libex | --libe)
1232 ac_prev=libexecdir ;;
1233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1234 | --libexe=* | --libex=* | --libe=*)
1235 libexecdir=$ac_optarg ;;
1237 -localedir | --localedir | --localedi | --localed | --locale)
1238 ac_prev=localedir ;;
1239 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1240 localedir=$ac_optarg ;;
1242 -localstatedir | --localstatedir | --localstatedi | --localstated \
1243 | --localstate | --localstat | --localsta | --localst | --locals)
1244 ac_prev=localstatedir ;;
1245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1246 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1247 localstatedir=$ac_optarg ;;
1249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1252 mandir=$ac_optarg ;;
1254 -nfp | --nfp | --nf)
1255 # Obsolete; use --without-fp.
1258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1259 | --no-cr | --no-c | -n)
1262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1268 | --oldin | --oldi | --old | --ol | --o)
1269 ac_prev=oldincludedir ;;
1270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1273 oldincludedir=$ac_optarg ;;
1275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1278 prefix=$ac_optarg ;;
1280 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1281 | --program-pre | --program-pr | --program-p)
1282 ac_prev=program_prefix ;;
1283 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1285 program_prefix=$ac_optarg ;;
1287 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1288 | --program-suf | --program-su | --program-s)
1289 ac_prev=program_suffix ;;
1290 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1292 program_suffix=$ac_optarg ;;
1294 -program-transform-name | --program-transform-name \
1295 | --program-transform-nam | --program-transform-na \
1296 | --program-transform-n | --program-transform- \
1297 | --program-transform | --program-transfor \
1298 | --program-transfo | --program-transf \
1299 | --program-trans | --program-tran \
1300 | --progr-tra | --program-tr | --program-t)
1301 ac_prev=program_transform_name ;;
1302 -program-transform-name=* | --program-transform-name=* \
1303 | --program-transform-nam=* | --program-transform-na=* \
1304 | --program-transform-n=* | --program-transform-=* \
1305 | --program-transform=* | --program-transfor=* \
1306 | --program-transfo=* | --program-transf=* \
1307 | --program-trans=* | --program-tran=* \
1308 | --progr-tra=* | --program-tr=* | --program-t=*)
1309 program_transform_name=$ac_optarg ;;
1311 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1314 pdfdir=$ac_optarg ;;
1316 -psdir | --psdir | --psdi | --psd | --ps)
1318 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1322 | -silent | --silent | --silen | --sile | --sil)
1325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329 sbindir=$ac_optarg ;;
1331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1333 | --sharedst | --shareds | --shared | --share | --shar \
1335 ac_prev=sharedstatedir ;;
1336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340 sharedstatedir=$ac_optarg ;;
1342 -site | --site | --sit)
1344 -site=* | --site=* | --sit=*)
1347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1350 srcdir=$ac_optarg ;;
1352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1353 | --syscon | --sysco | --sysc | --sys | --sy)
1354 ac_prev=sysconfdir ;;
1355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1357 sysconfdir=$ac_optarg ;;
1359 -target | --target | --targe | --targ | --tar | --ta | --t)
1360 ac_prev=target_alias ;;
1361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1362 target_alias=$ac_optarg ;;
1364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1367 -version | --version | --versio | --versi | --vers | -V)
1368 ac_init_version=: ;;
1371 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1374 as_fn_error $? "invalid package name: $ac_useropt"
1375 ac_useropt_orig=$ac_useropt
1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377 case $ac_user_opts in
1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1382 ac_unrecognized_sep=', ';;
1384 eval with_$ac_useropt=\$ac_optarg ;;
1386 -without-* | --without-*)
1387 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1388 # Reject names that are not valid shell variable names.
1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1390 as_fn_error $? "invalid package name: $ac_useropt"
1391 ac_useropt_orig=$ac_useropt
1392 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1393 case $ac_user_opts in
1397 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1398 ac_unrecognized_sep=', ';;
1400 eval with_$ac_useropt=no ;;
1403 # Obsolete; use --with-x.
1406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1407 | --x-incl | --x-inc | --x-in | --x-i)
1408 ac_prev=x_includes ;;
1409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1411 x_includes=$ac_optarg ;;
1413 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1415 ac_prev=x_libraries ;;
1416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1418 x_libraries=$ac_optarg ;;
1420 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1421 Try \`$0 --help' for more information"
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 case $ac_envvar in #(
1428 '' | [0-9]* | *[!_$as_cr_alnum]* )
1429 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1431 eval $ac_envvar=\$ac_optarg
1432 export $ac_envvar ;;
1435 # FIXME: should be removed in autoconf 3.0.
1436 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1437 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1438 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1439 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1445 if test -n "$ac_prev"; then
1446 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1447 as_fn_error $? "missing argument to $ac_option"
1450 if test -n "$ac_unrecognized_opts"; then
1451 case $enable_option_checking in
1453 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1454 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458 # Check all directory arguments for consistency.
1459 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1460 datadir sysconfdir sharedstatedir localstatedir includedir \
1461 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1462 libdir localedir mandir
1464 eval ac_val=\$$ac_var
1465 # Remove trailing slashes.
1468 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1469 eval $ac_var=\$ac_val;;
1471 # Be sure to have absolute directory names.
1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1479 # There might be people who depend on the old broken behavior: `$host'
1480 # used to hold the argument of --host etc.
1481 # FIXME: To remove some day.
1484 target=$target_alias
1486 # FIXME: To remove some day.
1487 if test "x$host_alias" != x; then
1488 if test "x$build_alias" = x; then
1489 cross_compiling=maybe
1490 elif test "x$build_alias" != "x$host_alias"; then
1496 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498 test "$silent" = yes && exec 6>/dev/null
1501 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1502 ac_ls_di=`ls -di .` &&
1503 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1504 as_fn_error $? "working directory cannot be determined"
1505 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1506 as_fn_error $? "pwd does not report name of working directory"
1509 # Find the source files, if location was not specified.
1510 if test -z "$srcdir"; then
1511 ac_srcdir_defaulted=yes
1512 # Try the directory containing this script, then the parent directory.
1513 ac_confdir=`$as_dirname -- "$as_myself" ||
1514 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1515 X"$as_myself" : 'X\(//\)[^/]' \| \
1516 X"$as_myself" : 'X\(//\)$' \| \
1517 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1518 $as_echo X"$as_myself" |
1519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1541 ac_srcdir_defaulted=no
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1544 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1545 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1547 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1551 # When building in place, set srcdir=.
1552 if test "$ac_abs_confdir" = "$ac_pwd"; then
1555 # Remove unnecessary trailing slashes from srcdir.
1556 # Double slashes in file names in object file debugging info
1557 # mess up M-x gdb in Emacs.
1559 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 for ac_var in $ac_precious_vars; do
1562 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1563 eval ac_env_${ac_var}_value=\$${ac_var}
1564 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1565 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 # Report the --help message.
1571 if test "$ac_init_help" = "long"; then
1572 # Omit some internal or obsolete options to make the list less imposing.
1573 # This message is too long to be a string in the A/UX 3.1 sh.
1575 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1577 Usage: $0 [OPTION]... [VAR=VALUE]...
1579 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1580 VAR=VALUE. See below for descriptions of some of the useful variables.
1582 Defaults for the options are specified in brackets.
1585 -h, --help display this help and exit
1586 --help=short display options specific to this package
1587 --help=recursive display the short help of all the included packages
1588 -V, --version display version information and exit
1589 -q, --quiet, --silent do not print \`checking ...' messages
1590 --cache-file=FILE cache test results in FILE [disabled]
1591 -C, --config-cache alias for \`--cache-file=config.cache'
1592 -n, --no-create do not create output files
1593 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1595 Installation directories:
1596 --prefix=PREFIX install architecture-independent files in PREFIX
1597 [$ac_default_prefix]
1598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1601 By default, \`make install' will install all the files in
1602 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1603 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1604 for instance \`--prefix=\$HOME'.
1606 For better control, use the options below.
1608 Fine tuning of the installation directories:
1609 --bindir=DIR user executables [EPREFIX/bin]
1610 --sbindir=DIR system admin executables [EPREFIX/sbin]
1611 --libexecdir=DIR program executables [EPREFIX/libexec]
1612 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1613 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1614 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1615 --libdir=DIR object code libraries [EPREFIX/lib]
1616 --includedir=DIR C header files [PREFIX/include]
1617 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1618 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1619 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1620 --infodir=DIR info documentation [DATAROOTDIR/info]
1621 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1622 --mandir=DIR man documentation [DATAROOTDIR/man]
1623 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1624 --htmldir=DIR html documentation [DOCDIR]
1625 --dvidir=DIR dvi documentation [DOCDIR]
1626 --pdfdir=DIR pdf documentation [DOCDIR]
1627 --psdir=DIR ps documentation [DOCDIR]
1633 --program-prefix=PREFIX prepend PREFIX to installed program names
1634 --program-suffix=SUFFIX append SUFFIX to installed program names
1635 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1638 --x-includes=DIR X include files are in DIR
1639 --x-libraries=DIR X library files are in DIR
1642 --build=BUILD configure for building on BUILD [guessed]
1643 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 if test -n "$ac_init_help"; then
1648 case $ac_init_help in
1649 short | recursive ) echo "Configuration of Scilab 5:";;
1654 --disable-option-checking ignore unrecognized --enable/--with options
1655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1657 --disable-largefile omit support for large files
1658 --enable-relocatable install a package that can be moved in the filesystem
1659 --disable-rpath do not hardcode runtime library paths
1660 --enable-maintainer-mode enable make rules and dependencies not useful
1661 (and sometimes confusing) to the casual installer
1662 --disable-dependency-tracking speeds up one-time build
1663 --enable-dependency-tracking do not reject slow dependency extractors
1664 --enable-debug Do not optimize and print warning messages
1665 (C/C++/Fortran/Java code)
1666 --enable-debug-C Do not optimize and print warning messages (C code)
1667 --enable-debug-CXX Do not optimize and print warning messages (C++
1669 --enable-debug-java Print warning messages and line numbers (Java code)
1670 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1672 --enable-debug-linker Print warning messages from the linker (ld)
1673 --enable-code-coverage Enable code coverage
1674 --enable-stop-on-warning
1675 Stop the compilation on the first warning found in
1677 --enable-compilation-tests
1678 Enable unitary tests and checks at compilation time
1679 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1680 Java Development Kit (JDK) is mandatory for this
1682 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1683 (A Java Development Kit (JDK) is mandatory for this
1685 --disable-nls do not use Native Language Support
1686 --disable-build-localization
1687 Disable the localization build
1689 --disable-build-help Disable the help build
1691 --enable-static[=PKGS] build static libraries [default=no]
1692 --enable-shared[=PKGS] build shared libraries [default=yes]
1693 --enable-fast-install[=PKGS]
1694 optimize for fast installation [default=yes]
1695 --disable-libtool-lock avoid locking (might break parallel builds)
1696 --disable-ccache Disable the use of ccache
1700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1702 --with-gnu-ld assume the C compiler uses GNU ld default=no
1703 --with-gcc Use gcc C compiler
1704 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1705 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1706 compilers (GNU/Linux only)
1707 --without-tk Disable the interface to Tcl/Tk
1708 --without-javasci Disable the Java/Scilab interface (javasci)
1709 --without-gui Disable the Scilab Graphical User Interface (GUI).
1710 Intended for embedded/clustering/grid Scilab
1711 --with-fink-prefix Provide a fink prefix. Default: /sw/
1712 --with-min-macosx-version
1713 Force compilers to generate binaries compatible with
1714 MacOSX minimal version.
1715 --with-hdf5-include=DIR Set the path to the HDF5 headers
1716 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1717 --without-xcos Disable Xcos
1718 --without-modelica Disable the OCaml module (modelica)
1719 --with-jdk=DIR use JDK from DIR
1720 --with-ant=DIR Use ant from DIR
1721 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1722 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1723 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1724 --without-libintl-prefix don't search for libintl in includedir and libdir
1725 --without-fftw Disable the interface to the FFTW 3 library
1726 --with-fftw-include=DIR Set the path to the FFTW headers
1727 --with-fftw-library=DIR Set the path to the FFTW libraries
1728 --without-openmp Disable the usage of OpenMP (parallelization of some
1730 --with-libxml2=PREFIX Set the path to your libxml2 installation
1731 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1733 --with-lapack-library=DIR
1734 set the path to the LAPACK library
1735 --without-arpack-ng Disable the interface to ARPACK-NG
1736 --with-arpack-library=DIR
1737 set the path to the ARPACK library
1738 --without-umfpack Disable the interface to the UMFPACK library
1739 --with-umfpack-library=DIR
1740 Set the path to the UMFPACK libraries
1741 --with-umfpack-include=DIR
1742 Set the path to the UMFPACK headers
1743 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1744 Expression Library) installation
1745 --with-tcl-library=DIR Set the path to the TCL library
1746 --with-tcl-include=DIR Set the path to the TCL headers
1747 --with-tk-library=DIR Set the path to the TK library
1748 --with-tk-include=DIR Set the path to the TK headers
1749 --with-x use the X Window System
1750 --without-matio Disable the interface to Matio (MAT File I/O
1752 --with-matio-include=DIR
1753 Set the path to the MATIO headers
1754 --with-matio-library=DIR
1755 Set the path to the MATIO libraries
1756 --with-docbook=DIR Set the path to the docbook package
1757 --with-install-help-xml make install will install XML files
1759 --with-pic try to use only PIC/non-PIC objects [default=use
1761 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1763 Some influential environment variables:
1764 CC C compiler command
1765 CFLAGS C compiler flags
1766 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1767 nonstandard directory <lib dir>
1768 LIBS libraries to pass to the linker, e.g. -l<library>
1769 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1770 you have headers in a nonstandard directory <include dir>
1772 PKG_CONFIG path to pkg-config utility
1773 F77 Fortran 77 compiler command
1774 FFLAGS Fortran 77 compiler flags
1775 CXX C++ compiler command
1776 CXXFLAGS C++ compiler flags
1777 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1778 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1779 XMKMF Path to xmkmf, Makefile generator for X Window System
1781 C compiler flags for MATIO, overriding pkg-config
1782 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1783 CXXCPP C++ preprocessor
1785 Use these variables to override the choices made by `configure' or to help
1786 it to find libraries and programs with nonstandard names/locations.
1788 Report bugs to <http://bugzilla.scilab.org/>.
1793 if test "$ac_init_help" = "recursive"; then
1794 # If there are subdirs, report their specific --help.
1795 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1796 test -d "$ac_dir" ||
1797 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1805 # A ".." for each directory in $ac_dir_suffix.
1806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1807 case $ac_top_builddir_sub in
1808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1812 ac_abs_top_builddir=$ac_pwd
1813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1814 # for backward compatibility:
1815 ac_top_builddir=$ac_top_build_prefix
1818 .) # We are building in place.
1820 ac_top_srcdir=$ac_top_builddir_sub
1821 ac_abs_top_srcdir=$ac_pwd ;;
1822 [\\/]* | ?:[\\/]* ) # Absolute name.
1823 ac_srcdir=$srcdir$ac_dir_suffix;
1824 ac_top_srcdir=$srcdir
1825 ac_abs_top_srcdir=$srcdir ;;
1827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1828 ac_top_srcdir=$ac_top_build_prefix$srcdir
1829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1833 cd "$ac_dir" || { ac_status=$?; continue; }
1834 # Check for guested configure.
1835 if test -f "$ac_srcdir/configure.gnu"; then
1837 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1838 elif test -f "$ac_srcdir/configure"; then
1840 $SHELL "$ac_srcdir/configure" --help=recursive
1842 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1844 cd "$ac_pwd" || { ac_status=$?; break; }
1848 test -n "$ac_init_help" && exit $ac_status
1849 if $ac_init_version; then
1852 generated by GNU Autoconf 2.69
1854 Copyright (C) 2012 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1861 ## ------------------------ ##
1862 ## Autoconf initialization. ##
1863 ## ------------------------ ##
1865 # ac_fn_c_try_compile LINENO
1866 # --------------------------
1867 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext
1872 if { { ac_try="$ac_compile"
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_compile") 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; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest.$ac_objext; then :
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_c_try_compile
1903 # ac_fn_c_try_cpp LINENO
1904 # ----------------------
1905 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1945 ac_fn_c_check_header_mongrel ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1969 ac_header_compiler=no
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1985 ac_header_preproc=no
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ( $as_echo "## ------------------------------------------ ##
2011 ## Report this to http://bugzilla.scilab.org/ ##
2012 ## ------------------------------------------ ##"
2013 ) | sed "s/^/$as_me: WARNING: /" >&2
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 eval "$3=\$ac_header_compiler"
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_header_mongrel
2031 # ac_fn_c_try_run LINENO
2032 # ----------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2034 # that executables *can* be run.
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if { { ac_try="$ac_link"
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>&5
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2049 { { case "(($ac_try" in
2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051 *) ac_try_echo=$ac_try;;
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055 (eval "$ac_try") 2>&5
2057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2058 test $ac_status = 0; }; }; then :
2061 $as_echo "$as_me: program exited with status $ac_status" >&5
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2065 ac_retval=$ac_status
2067 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 as_fn_set_status $ac_retval
2073 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists and can be compiled using the include files in
2076 # INCLUDES, setting the cache variable VAR accordingly.
2077 ac_fn_c_check_header_compile ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083 $as_echo_n "(cached) " >&6
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2090 if ac_fn_c_try_compile "$LINENO"; then :
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_header_compile
2104 # ac_fn_c_try_link LINENO
2105 # -----------------------
2106 # Try to link conftest.$ac_ext, and return whether this succeeded.
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 rm -f conftest.$ac_objext conftest$ac_exeext
2111 if { { ac_try="$ac_link"
2113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2114 *) ac_try_echo=$ac_try;;
2116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_link") 2>conftest.err
2120 if test -s conftest.err; then
2121 grep -v '^ *+' conftest.err >conftest.er1
2122 cat conftest.er1 >&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } && {
2127 test -z "$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2129 } && test -s conftest$ac_exeext && {
2130 test "$cross_compiling" = yes ||
2131 test -x conftest$ac_exeext
2135 $as_echo "$as_me: failed program was:" >&5
2136 sed 's/^/| /' conftest.$ac_ext >&5
2140 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2141 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2142 # interfere with the next link command; also delete a directory that is
2143 # left behind by Apple's compiler. We do this before executing the actions.
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146 as_fn_set_status $ac_retval
2148 } # ac_fn_c_try_link
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if eval \${$3+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2165 #define $2 innocuous_$2
2167 /* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char $2 (); below.
2169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2170 <limits.h> exists even on freestanding compilers. */
2173 # include <limits.h>
2175 # include <assert.h>
2180 /* Override any GCC internal prototype to avoid an error.
2181 Use char because int might match the return type of a GCC
2182 builtin and then its argument prototype would still apply. */
2187 /* The GNU C library defines this for functions which it implements
2188 to always fail with ENOSYS. Some functions are actually named
2189 something starting with __ and the normal name is an alias. */
2190 #if defined __stub_$2 || defined __stub___$2
2202 if ac_fn_c_try_link "$LINENO"; then :
2207 rm -f core conftest.err conftest.$ac_objext \
2208 conftest$ac_exeext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_func
2217 # ac_fn_f77_try_compile LINENO
2218 # ----------------------------
2219 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2220 ac_fn_f77_try_compile ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 rm -f conftest.$ac_objext
2224 if { { ac_try="$ac_compile"
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230 $as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_compile") 2>conftest.err
2233 if test -s conftest.err; then
2234 grep -v '^ *+' conftest.err >conftest.er1
2235 cat conftest.er1 >&5
2236 mv -f conftest.er1 conftest.err
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; } && {
2240 test -z "$ac_f77_werror_flag" ||
2241 test ! -s conftest.err
2242 } && test -s conftest.$ac_objext; then :
2245 $as_echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status $ac_retval
2253 } # ac_fn_f77_try_compile
2255 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2256 # --------------------------------------------
2257 # Tries to find the compile-time value of EXPR in a program that includes
2258 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2260 ac_fn_c_compute_int ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 if test "$cross_compiling" = yes; then
2264 # Depending upon the size, compute the lo and hi bounds.
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2271 static int test_array [1 - 2 * !(($2) >= 0)];
2273 return test_array [0];
2279 if ac_fn_c_try_compile "$LINENO"; then :
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2290 return test_array [0];
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297 ac_hi=$ac_mid; break
2299 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2300 if test $ac_lo -le $ac_mid; then
2304 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2315 static int test_array [1 - 2 * !(($2) < 0)];
2317 return test_array [0];
2323 if ac_fn_c_try_compile "$LINENO"; then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2332 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2334 return test_array [0];
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 ac_lo=$ac_mid; break
2343 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2344 if test $ac_mid -le $ac_hi; then
2348 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 # Binary search between lo and hi bounds.
2359 while test "x$ac_lo" != "x$ac_hi"; do
2360 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2367 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2369 return test_array [0];
2375 if ac_fn_c_try_compile "$LINENO"; then :
2378 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2390 static long int longval () { return $2; }
2391 static unsigned long int ulongval () { return $2; }
2398 FILE *f = fopen ("conftest.val", "w");
2403 long int i = longval ();
2406 fprintf (f, "%ld", i);
2410 unsigned long int i = ulongval ();
2413 fprintf (f, "%lu", i);
2415 /* Do not output a trailing newline, as this causes \r\n confusion
2416 on some platforms. */
2417 return ferror (f) || fclose (f) != 0;
2423 if ac_fn_c_try_run "$LINENO"; then :
2424 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2429 conftest.$ac_objext conftest.beam conftest.$ac_ext
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434 as_fn_set_status $ac_retval
2436 } # ac_fn_c_compute_int
2438 # ac_fn_cxx_try_compile LINENO
2439 # ----------------------------
2440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2441 ac_fn_cxx_try_compile ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 rm -f conftest.$ac_objext
2445 if { { ac_try="$ac_compile"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2451 $as_echo "$ac_try_echo"; } >&5
2452 (eval "$ac_compile") 2>conftest.err
2454 if test -s conftest.err; then
2455 grep -v '^ *+' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 mv -f conftest.er1 conftest.err
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; } && {
2461 test -z "$ac_cxx_werror_flag" ||
2462 test ! -s conftest.err
2463 } && test -s conftest.$ac_objext; then :
2466 $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472 as_fn_set_status $ac_retval
2474 } # ac_fn_cxx_try_compile
2476 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2477 # ----------------------------------------------------
2478 # Tries to find if the field MEMBER exists in type AGGR, after including
2479 # INCLUDES, setting cache variable VAR accordingly.
2480 ac_fn_c_check_member ()
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2484 $as_echo_n "checking for $2.$3... " >&6; }
2485 if eval \${$4+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2501 if ac_fn_c_try_compile "$LINENO"; then :
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2511 if (sizeof ac_aggr.$3)
2517 if ac_fn_c_try_compile "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531 } # ac_fn_c_check_member
2533 # ac_fn_cxx_try_run LINENO
2534 # ------------------------
2535 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2536 # that executables *can* be run.
2537 ac_fn_cxx_try_run ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 if { { ac_try="$ac_link"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_link") 2>&5
2549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2550 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2551 { { case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2556 $as_echo "$ac_try_echo"; } >&5
2557 (eval "$ac_try") 2>&5
2559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2560 test $ac_status = 0; }; }; then :
2563 $as_echo "$as_me: program exited with status $ac_status" >&5
2564 $as_echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 ac_retval=$ac_status
2569 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 as_fn_set_status $ac_retval
2573 } # ac_fn_cxx_try_run
2575 # ac_fn_cxx_try_cpp LINENO
2576 # ------------------------
2577 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2578 ac_fn_cxx_try_cpp ()
2580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2581 if { { ac_try="$ac_cpp conftest.$ac_ext"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2590 if test -s conftest.err; then
2591 grep -v '^ *+' conftest.err >conftest.er1
2592 cat conftest.er1 >&5
2593 mv -f conftest.er1 conftest.err
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; } > conftest.i && {
2597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2598 test ! -s conftest.err
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 as_fn_set_status $ac_retval
2610 } # ac_fn_cxx_try_cpp
2612 # ac_fn_cxx_try_link LINENO
2613 # -------------------------
2614 # Try to link conftest.$ac_ext, and return whether this succeeded.
2615 ac_fn_cxx_try_link ()
2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { { ac_try="$ac_link"
2621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622 *) ac_try_echo=$ac_try;;
2624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625 $as_echo "$ac_try_echo"; } >&5
2626 (eval "$ac_link") 2>conftest.err
2628 if test -s conftest.err; then
2629 grep -v '^ *+' conftest.err >conftest.er1
2630 cat conftest.er1 >&5
2631 mv -f conftest.er1 conftest.err
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; } && {
2635 test -z "$ac_cxx_werror_flag" ||
2636 test ! -s conftest.err
2637 } && test -s conftest$ac_exeext && {
2638 test "$cross_compiling" = yes ||
2639 test -x conftest$ac_exeext
2643 $as_echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2650 # interfere with the next link command; also delete a directory that is
2651 # left behind by Apple's compiler. We do this before executing the actions.
2652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654 as_fn_set_status $ac_retval
2656 } # ac_fn_cxx_try_link
2658 # ac_fn_f77_try_link LINENO
2659 # -------------------------
2660 # Try to link conftest.$ac_ext, and return whether this succeeded.
2661 ac_fn_f77_try_link ()
2663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664 rm -f conftest.$ac_objext conftest$ac_exeext
2665 if { { ac_try="$ac_link"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2671 $as_echo "$ac_try_echo"; } >&5
2672 (eval "$ac_link") 2>conftest.err
2674 if test -s conftest.err; then
2675 grep -v '^ *+' conftest.err >conftest.er1
2676 cat conftest.er1 >&5
2677 mv -f conftest.er1 conftest.err
2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680 test $ac_status = 0; } && {
2681 test -z "$ac_f77_werror_flag" ||
2682 test ! -s conftest.err
2683 } && test -s conftest$ac_exeext && {
2684 test "$cross_compiling" = yes ||
2685 test -x conftest$ac_exeext
2689 $as_echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2696 # interfere with the next link command; also delete a directory that is
2697 # left behind by Apple's compiler. We do this before executing the actions.
2698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 as_fn_set_status $ac_retval
2702 } # ac_fn_f77_try_link
2703 cat >config.log <<_ACEOF
2704 This file contains any messages produced by compilers while
2705 running configure, to aid debugging if configure makes a mistake.
2707 It was created by Scilab $as_me 5, which was
2708 generated by GNU Autoconf 2.69. Invocation command line was
2720 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2721 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2722 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2723 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2724 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2726 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2727 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2729 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2730 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2731 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2732 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2733 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2734 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2735 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 $as_echo "PATH: $as_dir"
2760 # Keep a trace of the command line.
2761 # Strip out --no-create and --no-recursion so they do not pile up.
2762 # Strip out --silent because we don't want to record it for future runs.
2763 # Also quote any args containing shell meta-characters.
2764 # Make two passes to allow for proper duplicate-argument suppression.
2768 ac_must_keep_next=false
2774 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2776 | -silent | --silent | --silen | --sile | --sil)
2779 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2782 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2784 as_fn_append ac_configure_args1 " '$ac_arg'"
2785 if test $ac_must_keep_next = true; then
2786 ac_must_keep_next=false # Got value, back to normal.
2789 *=* | --config-cache | -C | -disable-* | --disable-* \
2790 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2791 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2792 | -with-* | --with-* | -without-* | --without-* | --x)
2793 case "$ac_configure_args0 " in
2794 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2797 -* ) ac_must_keep_next=true ;;
2800 as_fn_append ac_configure_args " '$ac_arg'"
2805 { ac_configure_args0=; unset ac_configure_args0;}
2806 { ac_configure_args1=; unset ac_configure_args1;}
2808 # When interrupted or exit'd, cleanup temporary files, and complete
2809 # config.log. We remove comments because anyway the quotes in there
2810 # would cause problems or look ugly.
2811 # WARNING: Use '\'' to represent an apostrophe within the trap.
2812 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2813 trap 'exit_status=$?
2814 # Save into config.log some information that might help in debugging.
2818 $as_echo "## ---------------- ##
2819 ## Cache variables. ##
2820 ## ---------------- ##"
2822 # The following way of writing the cache mishandles newlines in values,
2824 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2825 eval ac_val=\$$ac_var
2829 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2833 _ | IFS | as_nl) ;; #(
2834 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2835 *) { eval $ac_var=; unset $ac_var;} ;;
2840 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2841 *${as_nl}ac_space=\ *)
2843 "s/'\''/'\''\\\\'\'''\''/g;
2844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2847 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2854 $as_echo "## ----------------- ##
2855 ## Output variables. ##
2856 ## ----------------- ##"
2858 for ac_var in $ac_subst_vars
2860 eval ac_val=\$$ac_var
2862 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2864 $as_echo "$ac_var='\''$ac_val'\''"
2868 if test -n "$ac_subst_files"; then
2869 $as_echo "## ------------------- ##
2870 ## File substitutions. ##
2871 ## ------------------- ##"
2873 for ac_var in $ac_subst_files
2875 eval ac_val=\$$ac_var
2877 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2879 $as_echo "$ac_var='\''$ac_val'\''"
2884 if test -s confdefs.h; then
2885 $as_echo "## ----------- ##
2892 test "$ac_signal" != 0 &&
2893 $as_echo "$as_me: caught signal $ac_signal"
2894 $as_echo "$as_me: exit $exit_status"
2896 rm -f core *.core core.conftest.* &&
2897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2900 for ac_signal in 1 2 13 15; do
2901 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2906 rm -f -r conftest* confdefs.h
2908 $as_echo "/* confdefs.h */" > confdefs.h
2910 # Predefined preprocessor variables.
2912 cat >>confdefs.h <<_ACEOF
2913 #define PACKAGE_NAME "$PACKAGE_NAME"
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE_STRING "$PACKAGE_STRING"
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_URL "$PACKAGE_URL"
2937 # Let the site file select an alternate cache file if it wants to.
2938 # Prefer an explicitly selected file to automatically selected ones.
2941 if test -n "$CONFIG_SITE"; then
2942 # We do not want a PATH search for config.site.
2943 case $CONFIG_SITE in #((
2944 -*) ac_site_file1=./$CONFIG_SITE;;
2945 */*) ac_site_file1=$CONFIG_SITE;;
2946 *) ac_site_file1=./$CONFIG_SITE;;
2948 elif test "x$prefix" != xNONE; then
2949 ac_site_file1=$prefix/share/config.site
2950 ac_site_file2=$prefix/etc/config.site
2952 ac_site_file1=$ac_default_prefix/share/config.site
2953 ac_site_file2=$ac_default_prefix/etc/config.site
2955 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2957 test "x$ac_site_file" = xNONE && continue
2958 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2960 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2961 sed 's/^/| /' "$ac_site_file" >&5
2963 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2965 as_fn_error $? "failed to load site script $ac_site_file
2966 See \`config.log' for more details" "$LINENO" 5; }
2970 if test -r "$cache_file"; then
2971 # Some versions of bash will fail to source /dev/null (special files
2972 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2973 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2975 $as_echo "$as_me: loading cache $cache_file" >&6;}
2977 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2978 *) . "./$cache_file";;
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2983 $as_echo "$as_me: creating cache $cache_file" >&6;}
2987 gt_needs="$gt_needs "
2988 # Check that the precious variables saved in the cache have kept the same
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993 eval ac_new_set=\$ac_env_${ac_var}_set
2994 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995 eval ac_new_val=\$ac_env_${ac_var}_value
2996 case $ac_old_set,$ac_new_set in
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000 ac_cache_corrupted=: ;;
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3007 if test "x$ac_old_val" != "x$ac_new_val"; then
3008 # differences in whitespace do not lead to failure.
3009 ac_old_val_w=`echo x $ac_old_val`
3010 ac_new_val_w=`echo x $ac_new_val`
3011 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014 ac_cache_corrupted=:
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018 eval $ac_var=\$ac_old_val
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3021 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3026 # Pass precious variables to config.status.
3027 if test "$ac_new_set" = set; then
3029 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030 *) ac_arg=$ac_var=$ac_new_val ;;
3032 case " $ac_configure_args " in
3033 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3034 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3038 if $ac_cache_corrupted; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3045 ## -------------------- ##
3046 ## Main body of script. ##
3047 ## -------------------- ##
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 SCI_BUILDDIR="`pwd`"
3060 SCI_SRCDIR="$srcdir"
3061 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3063 SCILAB_VERSION_MAJOR=5
3064 SCILAB_VERSION_MINOR=4
3065 SCILAB_VERSION_MAINTENANCE=0
3071 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3074 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3077 #shared library versioning
3078 #GENERIC_LIBRARY_VERSION=1:2:0
3082 # current:revision:age
3084 # | | +- increment if interfaces have been added
3085 # | | set to zero if interfaces have been removed
3087 # | +- increment if source code has changed
3088 # | set to zero if current is incremented
3089 # +- increment if interfaces have been added, removed or changed
3091 # Check if we have a space in the path to the source tree
3092 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3093 if test "$SPACE_IN_PATH" = "0"; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3095 $as_echo "$as_me: WARNING: =====================================" >&2;}
3096 { $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
3097 $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;}
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3099 $as_echo "$as_me: WARNING: =====================================" >&2;}
3104 for ac_dir in config "$srcdir"/config; do
3105 if test -f "$ac_dir/install-sh"; then
3107 ac_install_sh="$ac_aux_dir/install-sh -c"
3109 elif test -f "$ac_dir/install.sh"; then
3111 ac_install_sh="$ac_aux_dir/install.sh -c"
3113 elif test -f "$ac_dir/shtool"; then
3115 ac_install_sh="$ac_aux_dir/shtool install -c"
3119 if test -z "$ac_aux_dir"; then
3120 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3123 # These three variables are undocumented and unsupported,
3124 # and are intended to be withdrawn in a future Autoconf release.
3125 # They can cause serious problems if a builder's source tree is in a directory
3126 # whose full name contains unusual characters.
3127 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3128 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3129 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3132 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3136 # expand $ac_aux_dir to an absolute path
3137 am_aux_dir=`cd $ac_aux_dir && pwd`
3139 if test x"${install_sh}" != xset; then
3142 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3144 install_sh="\${SHELL} $am_aux_dir/install-sh"
3148 # Installed binaries are usually stripped using `strip' when the user
3149 # run `make install-strip'. However `strip' might not be the right
3150 # tool to use in cross-compilation environments, therefore Automake
3151 # will honor the `STRIP' environment variable to overrule this program.
3152 if test "$cross_compiling" != no; then
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}strip; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_STRIP+:} false; then :
3159 $as_echo_n "(cached) " >&6
3161 if test -n "$STRIP"; then
3162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 STRIP=$ac_cv_prog_STRIP
3182 if test -n "$STRIP"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3184 $as_echo "$STRIP" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_prog_STRIP"; then
3194 # Extract the first word of "strip", so it can be a program name with args.
3195 set dummy strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$ac_ct_STRIP"; then
3202 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_STRIP="strip"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3222 if test -n "$ac_ct_STRIP"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3224 $as_echo "$ac_ct_STRIP" >&6; }
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3230 if test "x$ac_ct_STRIP" = x; then
3233 case $cross_compiling:$ac_tool_warned in
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3242 STRIP="$ac_cv_prog_STRIP"
3246 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3249 $as_echo_n "checking whether ln -s works... " >&6; }
3251 if test "$LN_S" = "ln -s"; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3256 $as_echo "no, using $LN_S" >&6; }
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3304 if test -z "$ac_cv_prog_CC"; then
3306 # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3342 if test "x$ac_ct_CC" = x; then
3345 case $cross_compiling:$ac_tool_warned in
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376 ac_cv_prog_CC="${ac_tool_prefix}cc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3398 if test -z "$CC"; then
3399 # Extract the first word of "cc", so it can be a program name with args.
3400 set dummy cc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418 ac_prog_rejected=yes
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test $ac_prog_rejected = yes; then
3430 # We found a bogon in the path, so make sure we never use it.
3431 set dummy $ac_cv_prog_CC
3433 if test $# != 0; then
3434 # We chose a different compiler from the bogus one.
3435 # However, it has the same basename, so the bogon will be chosen
3436 # first if we set CC to just the basename; use the full file name.
3438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 for ac_prog in cl.exe
3458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if ${ac_cv_prog_CC+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3495 test -n "$CC" && break
3498 if test -z "$CC"; then
3500 for ac_prog in cl.exe
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_ac_ct_CC="$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3532 $as_echo "$ac_ct_CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3539 test -n "$ac_ct_CC" && break
3542 if test "x$ac_ct_CC" = x; then
3545 case $cross_compiling:$ac_tool_warned in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error $? "no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details" "$LINENO" 5; }
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3567 for ac_option in --version -v -V -qversion; do
3568 { { ac_try="$ac_compiler $ac_option >&5"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3577 if test -s conftest.err; then
3579 ... rest of stderr output deleted ...
3580 10q' conftest.err >conftest.er1
3581 cat conftest.er1 >&5
3583 rm -f conftest.er1 conftest.err
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3605 $as_echo_n "checking whether the C compiler works... " >&6; }
3606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3608 # The possible output files:
3609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3612 for ac_file in $ac_files
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 if { { ac_try="$ac_link_default"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link_default") 2>&5
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }; then :
3632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3635 # so that the user can short-circuit this test for compilers unknown to
3637 for ac_file in $ac_files ''
3639 test -f "$ac_file" || continue
3641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3644 # We found the default executable, but exeext='' is most
3648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652 # We set ac_cv_exeext here because the later test for it is not
3653 # safe: cross compilers may not add the suffix if given an `-o'
3654 # argument, so we may need to know it at that point already.
3655 # Even if this section looks crufty: it has the advantage of
3662 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667 if test -z "$ac_file"; then :
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 $as_echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error 77 "C compiler cannot create executables
3676 See \`config.log' for more details" "$LINENO" 5; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3679 $as_echo "yes" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3682 $as_echo_n "checking for C compiler default output file name... " >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3684 $as_echo "$ac_file" >&6; }
3685 ac_exeext=$ac_cv_exeext
3687 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3688 ac_clean_files=$ac_clean_files_save
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3690 $as_echo_n "checking for suffix of executables... " >&6; }
3691 if { { ac_try="$ac_link"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_link") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3703 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3704 # work properly (i.e., refer to `conftest.exe'), while it won't with
3706 for ac_file in conftest.exe conftest conftest.*; do
3707 test -f "$ac_file" || continue
3709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3710 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 rm -f conftest conftest$ac_cv_exeext
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3723 $as_echo "$ac_cv_exeext" >&6; }
3725 rm -f conftest.$ac_ext
3726 EXEEXT=$ac_cv_exeext
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3734 FILE *f = fopen ("conftest.out", "w");
3735 return ferror (f) || fclose (f) != 0;
3741 ac_clean_files="$ac_clean_files conftest.out"
3742 # Check that the compiler produces executables we can run. If not, either
3743 # the compiler is broken, or we cross compile.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3745 $as_echo_n "checking whether we are cross compiling... " >&6; }
3746 if test "$cross_compiling" != yes; then
3747 { { ac_try="$ac_link"
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link") 2>&5
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }
3758 if { ac_try='./conftest$ac_cv_exeext'
3759 { { case "(($ac_try" in
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_try") 2>&5
3767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768 test $ac_status = 0; }; }; then
3771 if test "$cross_compiling" = maybe; then
3774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3776 as_fn_error $? "cannot run C compiled programs.
3777 If you meant to cross compile, use \`--host'.
3778 See \`config.log' for more details" "$LINENO" 5; }
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3783 $as_echo "$cross_compiling" >&6; }
3785 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3786 ac_clean_files=$ac_clean_files_save
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3788 $as_echo_n "checking for suffix of object files... " >&6; }
3789 if ${ac_cv_objext+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3803 rm -f conftest.o conftest.obj
3804 if { { ac_try="$ac_compile"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810 $as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compile") 2>&5
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }; then :
3815 for ac_file in conftest.o conftest.obj conftest.*; do
3816 test -f "$ac_file" || continue;
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3819 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error $? "cannot compute suffix of object files: cannot compile
3830 See \`config.log' for more details" "$LINENO" 5; }
3832 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3835 $as_echo "$ac_cv_objext" >&6; }
3836 OBJEXT=$ac_cv_objext
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3839 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3840 if ${ac_cv_c_compiler_gnu+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3857 if ac_fn_c_try_compile "$LINENO"; then :
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3867 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3868 if test $ac_compiler_gnu = yes; then
3873 ac_test_CFLAGS=${CFLAGS+set}
3874 ac_save_CFLAGS=$CFLAGS
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3876 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3877 if ${ac_cv_prog_cc_g+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 ac_save_c_werror_flag=$ac_c_werror_flag
3881 ac_c_werror_flag=yes
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3895 if ac_fn_c_try_compile "$LINENO"; then :
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3910 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939 CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941 if test "$GCC" = yes; then
3947 if test "$GCC" = yes; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if ${ac_cv_prog_cc_c89+:} false; then :
3956 $as_echo_n "(cached) " >&6
3958 ac_cv_prog_cc_c89=no
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3965 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3966 struct buf { int x; };
3967 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3968 static char *e (p, i)
3974 static char *f (char * (*g) (char **, int), char **p, ...)
3979 s = g (p, va_arg (v,int));
3984 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3985 function prototypes and stuff, but not '\xHH' hex character constants.
3986 These don't provoke an error unfortunately, instead are silently treated
3987 as 'x'. The following induces an error, until -std is added to get
3988 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3989 array size at least. It's necessary to write '\x00'==0 to get something
3990 that's true only with -std. */
3991 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3993 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3994 inside strings and character constants. */
3996 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3998 int test (int i, double x);
3999 struct s1 {int (*f) (int a);};
4000 struct s2 {int (*f) (double a);};
4001 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4012 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4013 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4015 CC="$ac_save_CC $ac_arg"
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_cv_prog_cc_c89=$ac_arg
4019 rm -f core conftest.err conftest.$ac_objext
4020 test "x$ac_cv_prog_cc_c89" != "xno" && break
4022 rm -f conftest.$ac_ext
4027 case "x$ac_cv_prog_cc_c89" in
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4030 $as_echo "none needed" >&6; } ;;
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4033 $as_echo "unsupported" >&6; } ;;
4035 CC="$CC $ac_cv_prog_cc_c89"
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4037 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4039 if test "x$ac_cv_prog_cc_c89" != xno; then :
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 # Check whether --enable-largefile was given.
4052 if test "${enable_largefile+set}" = set; then :
4053 enableval=$enable_largefile;
4056 if test "$enable_largefile" != no; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4059 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4060 if ${ac_cv_sys_largefile_CC+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 ac_cv_sys_largefile_CC=no
4064 if test "$GCC" != yes; then
4067 # IRIX 6.2 and later do not support large files by default,
4068 # so use the C compiler's -n32 option if that helps.
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <sys/types.h>
4072 /* Check that off_t can represent 2**63 - 1 correctly.
4073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4074 since some C++ compilers masquerading as C compilers
4075 incorrectly reject 9223372036854775807. */
4076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4078 && LARGE_OFF_T % 2147483647 == 1)
4088 if ac_fn_c_try_compile "$LINENO"; then :
4091 rm -f core conftest.err conftest.$ac_objext
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 ac_cv_sys_largefile_CC=' -n32'; break
4096 rm -f core conftest.err conftest.$ac_objext
4100 rm -f conftest.$ac_ext
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4104 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4105 if test "$ac_cv_sys_largefile_CC" != no; then
4106 CC=$CC$ac_cv_sys_largefile_CC
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4110 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4111 if ${ac_cv_sys_file_offset_bits+:} false; then :
4112 $as_echo_n "(cached) " >&6
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 /* Check that off_t can represent 2**63 - 1 correctly.
4119 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4120 since some C++ compilers masquerading as C compilers
4121 incorrectly reject 9223372036854775807. */
4122 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4123 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4124 && LARGE_OFF_T % 2147483647 == 1)
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_sys_file_offset_bits=no; break
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #define _FILE_OFFSET_BITS 64
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_sys_file_offset_bits=64; break
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 ac_cv_sys_file_offset_bits=unknown
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4167 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4168 case $ac_cv_sys_file_offset_bits in #(
4171 cat >>confdefs.h <<_ACEOF
4172 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4177 if test $ac_cv_sys_file_offset_bits = unknown; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4179 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4180 if ${ac_cv_sys_large_files+:} false; then :
4181 $as_echo_n "(cached) " >&6
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186 #include <sys/types.h>
4187 /* Check that off_t can represent 2**63 - 1 correctly.
4188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4189 since some C++ compilers masquerading as C compilers
4190 incorrectly reject 9223372036854775807. */
4191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4193 && LARGE_OFF_T % 2147483647 == 1)
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_sys_large_files=no; break
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #define _LARGE_FILES 1
4210 #include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213 since some C++ compilers masquerading as C compilers
4214 incorrectly reject 9223372036854775807. */
4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217 && LARGE_OFF_T % 2147483647 == 1)
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_sys_large_files=1; break
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 ac_cv_sys_large_files=unknown
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4236 $as_echo "$ac_cv_sys_large_files" >&6; }
4237 case $ac_cv_sys_large_files in #(
4240 cat >>confdefs.h <<_ACEOF
4241 #define _LARGE_FILES $ac_cv_sys_large_files
4251 echo "ac: $ac_cv_sys_file_offset_bits"
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4253 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4254 if ${largefile64_cv_source+:} false; then :
4255 $as_echo_n "(cached) " >&6
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4261 #include <sys/types.h>
4262 #include <sys/stat.h>
4269 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4275 if ac_fn_c_try_compile "$LINENO"; then :
4277 largefile64_source="no"
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4284 #define _LARGEFILE64_SOURCE
4285 #include <sys/types.h>
4286 #include <sys/stat.h>
4293 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4299 if ac_fn_c_try_compile "$LINENO"; then :
4301 largefile64_source="yes"
4305 largefile64_source="unknown"
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4315 $as_echo "$largefile64_cv_source" >&6; }
4317 if test "x$largefile64_source" = "xyes"; then
4318 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4319 enable_largefile="yes"
4320 elif test "x$largefile64_source" = "xunknown"; then
4322 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4326 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4327 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4328 enable_largefile="yes"
4331 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4332 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4333 enable_largefile="yes"
4338 # In order to be able to change the scilab directory
4339 # See http://wiki.debian.org/RpathIssue
4340 # Find a good install program. We prefer a C program (faster),
4341 # so one script is as good as another. But avoid the broken or
4342 # incompatible versions:
4343 # SysV /etc/install, /usr/sbin/install
4344 # SunOS /usr/etc/install
4345 # IRIX /sbin/install
4347 # AmigaOS /C/install, which installs bootblocks on floppy discs
4348 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4351 # OS/2's system install, which has a completely different semantic
4352 # ./install, which can be erroneously created by make from ./install.sh.
4353 # Reject install programs that cannot install multiple files.
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4355 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4356 if test -z "$INSTALL"; then
4357 if ${ac_cv_path_install+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 # Account for people who put trailing slashes in PATH elements.
4366 case $as_dir/ in #((
4367 ./ | .// | /[cC]/* | \
4368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4369 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4372 # OSF1 and SCO ODT 3.0 have their own names for install.
4373 # Don't use installbsd from OSF since it installs stuff as root
4375 for ac_prog in ginstall scoinst install; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4378 if test $ac_prog = install &&
4379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4380 # AIX install. It has an incompatible calling convention.
4382 elif test $ac_prog = install &&
4383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4384 # program-specific install script used by HP pwplus--don't use.
4387 rm -rf conftest.one conftest.two conftest.dir
4388 echo one > conftest.one
4389 echo two > conftest.two
4391 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4392 test -s conftest.one && test -s conftest.two &&
4393 test -s conftest.dir/conftest.one &&
4394 test -s conftest.dir/conftest.two
4396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4409 rm -rf conftest.one conftest.two conftest.dir
4412 if test "${ac_cv_path_install+set}" = set; then
4413 INSTALL=$ac_cv_path_install
4415 # As a last resort, use the slow shell script. Don't cache a
4416 # value for INSTALL within a source directory, because that will
4417 # break other packages using the cache if that directory is
4418 # removed, or if the value is a relative name.
4419 INSTALL=$ac_install_sh
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4423 $as_echo "$INSTALL" >&6; }
4425 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4426 # It thinks the first close brace ends the variable substitution.
4427 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4429 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4431 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4433 # Make sure we can run config.sub.
4434 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4435 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4438 $as_echo_n "checking build system type... " >&6; }
4439 if ${ac_cv_build+:} false; then :
4440 $as_echo_n "(cached) " >&6
4442 ac_build_alias=$build_alias
4443 test "x$ac_build_alias" = x &&
4444 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4445 test "x$ac_build_alias" = x &&
4446 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4447 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4452 $as_echo "$ac_cv_build" >&6; }
4453 case $ac_cv_build in
4455 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4458 ac_save_IFS=$IFS; IFS='-'
4464 # Remember, the first character of IFS is used to create $*,
4465 # except with old shells:
4468 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4472 $as_echo_n "checking host system type... " >&6; }
4473 if ${ac_cv_host+:} false; then :
4474 $as_echo_n "(cached) " >&6
4476 if test "x$host_alias" = x; then
4477 ac_cv_host=$ac_cv_build
4479 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4485 $as_echo "$ac_cv_host" >&6; }
4488 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4491 ac_save_IFS=$IFS; IFS='-'
4497 # Remember, the first character of IFS is used to create $*,
4498 # except with old shells:
4501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4505 # Check whether --with-gnu-ld was given.
4506 if test "${with_gnu_ld+set}" = set; then :
4507 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4512 # Prepare PATH_SEPARATOR.
4513 # The user is always right.
4514 if test "${PATH_SEPARATOR+set}" != set; then
4515 echo "#! /bin/sh" >conf$$.sh
4516 echo "exit 0" >>conf$$.sh
4518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4526 if test "$GCC" = yes; then
4527 # Check if gcc -print-prog-name=ld gives a path.
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4529 $as_echo_n "checking for ld used by GCC... " >&6; }
4532 # gcc leaves a trailing carriage return which upsets mingw
4533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4538 # Accept absolute paths.
4539 [\\/]* | [A-Za-z]:[\\/]*)
4540 re_direlt='/[^/][^/]*/\.\./'
4541 # Canonicalize the path of ld
4542 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4543 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4544 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4546 test -z "$LD" && LD="$ac_prog"
4549 # If it fails, then pretend we aren't using GCC.
4553 # If it is relative, then search for the first ld in PATH.
4557 elif test "$with_gnu_ld" = yes; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4559 $as_echo_n "checking for GNU ld... " >&6; }
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4562 $as_echo_n "checking for non-GNU ld... " >&6; }
4564 if ${acl_cv_path_LD+:} false; then :
4565 $as_echo_n "(cached) " >&6
4567 if test -z "$LD"; then
4568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4569 for ac_dir in $PATH; do
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4572 acl_cv_path_LD="$ac_dir/$ac_prog"
4573 # Check to see if the program is GNU ld. I'd rather use --version,
4574 # but apparently some GNU ld's only accept -v.
4575 # Break only if it was the GNU/non-GNU ld that we prefer.
4576 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4577 *GNU* | *'with BFD'*)
4578 test "$with_gnu_ld" != no && break ;;
4580 test "$with_gnu_ld" != yes && break ;;
4586 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4590 LD="$acl_cv_path_LD"
4591 if test -n "$LD"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4593 $as_echo "$LD" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4598 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4601 if ${acl_cv_prog_gnu_ld+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4605 case `$LD -v 2>&1 </dev/null` in
4606 *GNU* | *'with BFD'*)
4607 acl_cv_prog_gnu_ld=yes ;;
4609 acl_cv_prog_gnu_ld=no ;;
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4613 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4614 with_gnu_ld=$acl_cv_prog_gnu_ld
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4619 $as_echo_n "checking for shared library path variable... " >&6; }
4620 if ${acl_cv_libpath+:} false; then :
4621 $as_echo_n "(cached) " >&6
4625 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4628 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4632 $as_echo "$acl_cv_libpath" >&6; }
4633 shlibpath_var="$acl_cv_shlibpath_var"
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4637 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4638 # Check whether --enable-relocatable was given.
4639 if test "${enable_relocatable+set}" = set; then :
4640 enableval=$enable_relocatable; if test "$enableval" != no; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4652 $as_echo "$RELOCATABLE" >&6; }
4656 if test "X$prefix" = "XNONE"; then
4657 reloc_final_prefix="$ac_default_prefix"
4659 reloc_final_prefix="$prefix"
4662 cat >>confdefs.h <<_ACEOF
4663 #define INSTALLPREFIX "${reloc_final_prefix}"
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4674 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4675 # On Suns, sometimes $CPP names a directory.
4676 if test -n "$CPP" && test -d "$CPP"; then
4679 if test -z "$CPP"; then
4680 if ${ac_cv_prog_CPP+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 # Double quotes because CPP needs to be expanded
4684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4687 for ac_c_preproc_warn_flag in '' yes
4689 # Use a header file that comes with gcc, so configuring glibc
4690 # with a fresh cross-compiler works.
4691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4692 # <limits.h> exists even on freestanding compilers.
4693 # On the NeXT, cc -E runs the code through the compiler's parser,
4694 # not just through cpp. "Syntax error" is here to catch this case.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4698 # include <limits.h>
4700 # include <assert.h>
4704 if ac_fn_c_try_cpp "$LINENO"; then :
4707 # Broken: fails on valid input.
4710 rm -f conftest.err conftest.i conftest.$ac_ext
4712 # OK, works on sane cases. Now check whether nonexistent headers
4713 # can be detected and how.
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if ac_fn_c_try_cpp "$LINENO"; then :
4719 # Broken: success on invalid input.
4722 # Passes both tests.
4726 rm -f conftest.err conftest.i conftest.$ac_ext
4729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730 rm -f conftest.i conftest.err conftest.$ac_ext
4731 if $ac_preproc_ok; then :
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4744 $as_echo "$CPP" >&6; }
4746 for ac_c_preproc_warn_flag in '' yes
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
4750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
4752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4757 # include <limits.h>
4759 # include <assert.h>
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4766 # Broken: fails on valid input.
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4771 # OK, works on sane cases. Now check whether nonexistent headers
4772 # can be detected and how.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4777 if ac_fn_c_try_cpp "$LINENO"; then :
4778 # Broken: success on invalid input.
4781 # Passes both tests.
4785 rm -f conftest.err conftest.i conftest.$ac_ext
4788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4789 rm -f conftest.i conftest.err conftest.$ac_ext
4790 if $ac_preproc_ok; then :
4793 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4795 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4796 See \`config.log' for more details" "$LINENO" 5; }
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4807 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4808 if ${ac_cv_path_GREP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -z "$GREP"; then
4812 ac_path_GREP_found=false
4813 # Loop through the user's path and test for each of PROGNAME-LIST
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4818 test -z "$as_dir" && as_dir=.
4819 for ac_prog in grep ggrep; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4822 as_fn_executable_p "$ac_path_GREP" || continue
4823 # Check for GNU ac_path_GREP and select it if it is found.
4824 # Check for GNU $ac_path_GREP
4825 case `"$ac_path_GREP" --version 2>&1` in
4827 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4830 $as_echo_n 0123456789 >"conftest.in"
4833 cat "conftest.in" "conftest.in" >"conftest.tmp"
4834 mv "conftest.tmp" "conftest.in"
4835 cp "conftest.in" "conftest.nl"
4836 $as_echo 'GREP' >> "conftest.nl"
4837 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4839 as_fn_arith $ac_count + 1 && ac_count=$as_val
4840 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4841 # Best one so far, save it but keep looking for a better one
4842 ac_cv_path_GREP="$ac_path_GREP"
4843 ac_path_GREP_max=$ac_count
4845 # 10*(2^10) chars as input seems more than enough
4846 test $ac_count -gt 10 && break
4848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4851 $ac_path_GREP_found && break 3
4856 if test -z "$ac_cv_path_GREP"; then
4857 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4860 ac_cv_path_GREP=$GREP
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4865 $as_echo "$ac_cv_path_GREP" >&6; }
4866 GREP="$ac_cv_path_GREP"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4870 $as_echo_n "checking for egrep... " >&6; }
4871 if ${ac_cv_path_EGREP+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4875 then ac_cv_path_EGREP="$GREP -E"
4877 if test -z "$EGREP"; then
4878 ac_path_EGREP_found=false
4879 # Loop through the user's path and test for each of PROGNAME-LIST
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4884 test -z "$as_dir" && as_dir=.
4885 for ac_prog in egrep; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4888 as_fn_executable_p "$ac_path_EGREP" || continue
4889 # Check for GNU ac_path_EGREP and select it if it is found.
4890 # Check for GNU $ac_path_EGREP
4891 case `"$ac_path_EGREP" --version 2>&1` in
4893 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4896 $as_echo_n 0123456789 >"conftest.in"
4899 cat "conftest.in" "conftest.in" >"conftest.tmp"
4900 mv "conftest.tmp" "conftest.in"
4901 cp "conftest.in" "conftest.nl"
4902 $as_echo 'EGREP' >> "conftest.nl"
4903 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4904 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4905 as_fn_arith $ac_count + 1 && ac_count=$as_val
4906 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4907 # Best one so far, save it but keep looking for a better one
4908 ac_cv_path_EGREP="$ac_path_EGREP"
4909 ac_path_EGREP_max=$ac_count
4911 # 10*(2^10) chars as input seems more than enough
4912 test $ac_count -gt 10 && break
4914 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917 $ac_path_EGREP_found && break 3
4922 if test -z "$ac_cv_path_EGREP"; then
4923 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4926 ac_cv_path_EGREP=$EGREP
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4932 $as_echo "$ac_cv_path_EGREP" >&6; }
4933 EGREP="$ac_cv_path_EGREP"
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4937 $as_echo_n "checking for ANSI C header files... " >&6; }
4938 if ${ac_cv_header_stdc+:} false; then :
4939 $as_echo_n "(cached) " >&6
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4956 if ac_fn_c_try_compile "$LINENO"; then :
4957 ac_cv_header_stdc=yes
4959 ac_cv_header_stdc=no
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 if test $ac_cv_header_stdc = yes; then
4964 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4971 $EGREP "memchr" >/dev/null 2>&1; then :
4974 ac_cv_header_stdc=no
4980 if test $ac_cv_header_stdc = yes; then
4981 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "free" >/dev/null 2>&1; then :
4991 ac_cv_header_stdc=no
4997 if test $ac_cv_header_stdc = yes; then
4998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999 if test "$cross_compiling" = yes; then :
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5006 #if ((' ' & 0x0FF) == 0x020)
5007 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5008 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5010 # define ISLOWER(c) \
5011 (('a' <= (c) && (c) <= 'i') \
5012 || ('j' <= (c) && (c) <= 'r') \
5013 || ('s' <= (c) && (c) <= 'z'))
5014 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5017 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5022 for (i = 0; i < 256; i++)
5023 if (XOR (islower (i), ISLOWER (i))
5024 || toupper (i) != TOUPPER (i))
5029 if ac_fn_c_try_run "$LINENO"; then :
5032 ac_cv_header_stdc=no
5034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5035 conftest.$ac_objext conftest.beam conftest.$ac_ext
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5041 $as_echo "$ac_cv_header_stdc" >&6; }
5042 if test $ac_cv_header_stdc = yes; then
5044 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5048 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5049 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5050 inttypes.h stdint.h unistd.h
5052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5053 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5055 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5056 cat >>confdefs.h <<_ACEOF
5057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 use_elf_origin_trick=no
5073 if test $RELOCATABLE = yes; then
5074 # --enable-relocatable implies --disable-rpath
5077 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5079 for ac_header in unistd.h mach-o/dyld.h
5081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5083 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5084 cat >>confdefs.h <<_ACEOF
5085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5092 for ac_func in _NSGetExecutablePath
5094 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5095 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5096 cat >>confdefs.h <<_ACEOF
5097 #define HAVE__NSGETEXECUTABLEPATH 1
5104 mingw*) is_noop=yes ;;
5105 linux*) use_elf_origin_trick=yes ;;
5107 if test $is_noop = yes; then
5108 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5110 if test $use_elf_origin_trick = yes; then
5111 case "$ac_aux_dir" in
5112 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5113 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5115 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5117 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\""
5118 case "$ac_aux_dir" in
5119 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5120 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5128 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5129 RELOCATABLE_VIA_LD_TRUE=
5130 RELOCATABLE_VIA_LD_FALSE='#'
5132 RELOCATABLE_VIA_LD_TRUE='#'
5133 RELOCATABLE_VIA_LD_FALSE=
5139 if test $RELOCATABLE = yes; then
5140 case " $LIBOBJS " in
5141 *" relocatable.$ac_objext "* ) ;;
5142 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5150 if test "X$prefix" = "XNONE"; then
5151 reloc_final_prefix="$ac_default_prefix"
5153 reloc_final_prefix="$prefix"
5156 cat >>confdefs.h <<_ACEOF
5157 #define INSTALLPREFIX "${reloc_final_prefix}"
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5164 $as_echo_n "checking for shared library run path origin... " >&6; }
5165 if ${acl_cv_rpath+:} false; then :
5166 $as_echo_n "(cached) " >&6
5169 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5170 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5177 $as_echo "$acl_cv_rpath" >&6; }
5179 acl_libext="$acl_cv_libext"
5180 acl_shlibext="$acl_cv_shlibext"
5181 acl_libname_spec="$acl_cv_libname_spec"
5182 acl_library_names_spec="$acl_cv_library_names_spec"
5183 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5184 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5185 acl_hardcode_direct="$acl_cv_hardcode_direct"
5186 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5187 # Check whether --enable-rpath was given.
5188 if test "${enable_rpath+set}" = set; then :
5189 enableval=$enable_rpath; :
5196 # If configure detect that timestamp changed,
5197 # it tries to rebuild configure & makefile which can be a painmaker
5198 # if the version is different
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5201 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5202 # Check whether --enable-maintainer-mode was given.
5203 if test "${enable_maintainer_mode+set}" = set; then :
5204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5206 USE_MAINTAINER_MODE=no
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5210 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5211 if test $USE_MAINTAINER_MODE = yes; then
5212 MAINTAINER_MODE_TRUE=
5213 MAINTAINER_MODE_FALSE='#'
5215 MAINTAINER_MODE_TRUE='#'
5216 MAINTAINER_MODE_FALSE=
5219 MAINT=$MAINTAINER_MODE_TRUE
5223 am__api_version='1.11'
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5226 $as_echo_n "checking whether build environment is sane... " >&6; }
5229 echo timestamp > conftest.file
5230 # Reject unsafe characters in $srcdir or the absolute working directory
5231 # name. Accept space and tab only in the latter.
5235 *[\\\"\#\$\&\'\`$am_lf]*)
5236 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5239 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5240 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5243 # Do `set' in a subshell so we don't clobber the current shell's
5244 # arguments. Must try -L first in case configure is actually a
5245 # symlink; some systems play weird games with the mod time of symlinks
5246 # (eg FreeBSD returns the mod time of the symlink's containing
5249 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5250 if test "$*" = "X"; then
5252 set X `ls -t "$srcdir/configure" conftest.file`
5255 if test "$*" != "X $srcdir/configure conftest.file" \
5256 && test "$*" != "X conftest.file $srcdir/configure"; then
5258 # If neither matched, then we have a broken ls. This can happen
5259 # if, for instance, CONFIG_SHELL is bash and it inherits a
5260 # broken ls alias from the environment. This has actually
5261 # happened. Such a system could not be considered "sane".
5262 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5263 alias in your environment" "$LINENO" 5
5266 test "$2" = conftest.file
5272 as_fn_error $? "newly created file is older than distributed files!
5273 Check your system clock" "$LINENO" 5
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5276 $as_echo "yes" >&6; }
5277 test "$program_prefix" != NONE &&
5278 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5279 # Use a double $ so make ignores it.
5280 test "$program_suffix" != NONE &&
5281 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5282 # Double any \ or $.
5283 # By default was `s,x,x', remove it if useless.
5284 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5285 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5287 if test x"${MISSING+set}" != xset; then
5290 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5292 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5295 # Use eval to expand $SHELL
5296 if eval "$MISSING --run true"; then
5297 am_missing_run="$MISSING --run "
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5301 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5305 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5306 if test -z "$MKDIR_P"; then
5307 if ${ac_cv_path_mkdir+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in mkdir gmkdir; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5318 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5319 'mkdir (GNU coreutils) '* | \
5320 'mkdir (coreutils) '* | \
5321 'mkdir (fileutils) '4.1*)
5322 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5332 test -d ./--version && rmdir ./--version
5333 if test "${ac_cv_path_mkdir+set}" = set; then
5334 MKDIR_P="$ac_cv_path_mkdir -p"
5336 # As a last resort, use the slow shell script. Don't cache a
5337 # value for MKDIR_P within a source directory, because that will
5338 # break other packages using the cache if that directory is
5339 # removed, or if the value is a relative name.
5340 MKDIR_P="$ac_install_sh -d"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5344 $as_echo "$MKDIR_P" >&6; }
5348 [\\/$]* | ?:[\\/]*) ;;
5349 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5352 for ac_prog in gawk mawk nawk awk
5354 # Extract the first word of "$ac_prog", so it can be a program name with args.
5355 set dummy $ac_prog; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_prog_AWK+:} false; then :
5359 $as_echo_n "(cached) " >&6
5361 if test -n "$AWK"; then
5362 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_AWK="$ac_prog"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 if test -n "$AWK"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5384 $as_echo "$AWK" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5391 test -n "$AWK" && break
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5395 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5397 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5398 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5399 $as_echo_n "(cached) " >&6
5401 cat >conftest.make <<\_ACEOF
5404 @echo '@@@%%%=$(MAKE)=@@@%%%'
5406 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5407 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5409 eval ac_cv_prog_make_${ac_make}_set=yes;;
5411 eval ac_cv_prog_make_${ac_make}_set=no;;
5415 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417 $as_echo "yes" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 SET_MAKE="MAKE=${MAKE-make}"
5425 rm -rf .tst 2>/dev/null
5426 mkdir .tst 2>/dev/null
5427 if test -d .tst; then
5432 rmdir .tst 2>/dev/null
5434 DEPDIR="${am__leading_dot}deps"
5436 ac_config_commands="$ac_config_commands depfiles"
5439 am_make=${MAKE-make}
5440 cat > confinc << 'END'
5442 @echo this is the am__doit target
5445 # If we don't find an include directive, just comment out the code.
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5447 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5451 # First try GNU make style include.
5452 echo "include confinc" > confmf
5453 # Ignore all kinds of additional output from `make'.
5454 case `$am_make -s -f confmf 2> /dev/null` in #(
5455 *the\ am__doit\ target*)
5461 # Now try BSD make style include.
5462 if test "$am__include" = "#"; then
5463 echo '.include "confinc"' > confmf
5464 case `$am_make -s -f confmf 2> /dev/null` in #(
5465 *the\ am__doit\ target*)
5466 am__include=.include
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5475 $as_echo "$_am_result" >&6; }
5476 rm -f confinc confmf
5478 # Check whether --enable-dependency-tracking was given.
5479 if test "${enable_dependency_tracking+set}" = set; then :
5480 enableval=$enable_dependency_tracking;
5483 if test "x$enable_dependency_tracking" != xno; then
5484 am_depcomp="$ac_aux_dir/depcomp"
5488 if test "x$enable_dependency_tracking" != xno; then
5497 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5498 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5499 # is not polluted with repeated "-I."
5500 am__isrc=' -I$(srcdir)'
5501 # test to see if srcdir already configured
5502 if test -f $srcdir/config.status; then
5503 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5507 # test whether we have cygpath
5508 if test -z "$CYGPATH_W"; then
5509 if (cygpath --version) >/dev/null 2>/dev/null; then
5510 CYGPATH_W='cygpath -w'
5517 # Define the identity of the package.
5522 cat >>confdefs.h <<_ACEOF
5523 #define PACKAGE "$PACKAGE"
5527 cat >>confdefs.h <<_ACEOF
5528 #define VERSION "$VERSION"
5531 # Some tools Automake needs.
5533 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5536 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5539 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5542 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5545 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5547 # We need awk for the "check" target. The system "awk" is bad on
5549 # Always define AMTAR for backward compatibility. Yes, it's still used
5550 # in the wild :-( We should find a proper way to deprecate it ...
5553 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5558 depcc="$CC" am_compiler_list=
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5561 $as_echo_n "checking dependency style of $depcc... " >&6; }
5562 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5566 # We make a subdir and do the tests there. Otherwise we can end up
5567 # making bogus files that we don't know about and never remove. For
5568 # instance it was reported that on HP-UX the gcc test will end up
5569 # making a dummy file named `D' -- because `-MD' means `put the output
5573 # Copy depcomp to subdir because otherwise we won't find it if we're
5574 # using a relative directory.
5575 cp "$am_depcomp" conftest.dir
5577 # We will build objects and dependencies in a subdirectory because
5578 # it helps to detect inapplicable dependency modes. For instance
5579 # both Tru64's cc and ICC support -MD to output dependencies as a
5580 # side effect of compilation, but ICC will put the dependencies in
5581 # the current directory while Tru64 will put them in the object
5585 am_cv_CC_dependencies_compiler_type=none
5586 if test "$am_compiler_list" = ""; then
5587 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5590 case " $depcc " in #(
5591 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5594 for depmode in $am_compiler_list; do
5595 # Setup a source with many dependencies, because some compilers
5596 # like to wrap large dependency lists on column 80 (with \), and
5597 # we should not choose a depcomp mode which is confused by this.
5599 # We need to recreate these files for each test, as the compiler may
5600 # overwrite some of them when testing with obscure command lines.
5601 # This happens at least with the AIX C compiler.
5603 for i in 1 2 3 4 5 6; do
5604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5606 # Solaris 8's {/usr,}/bin/sh.
5607 touch sub/conftst$i.h
5609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5611 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612 # mode. It turns out that the SunPro C++ compiler does not properly
5613 # handle `-M -o', and we need to detect this. Also, some Intel
5614 # versions had trouble with output in subdirs
5615 am__obj=sub/conftest.${OBJEXT-o}
5616 am__minus_obj="-o $am__obj"
5619 # This depmode causes a compiler race in universal mode.
5620 test "$am__universal" = false || continue
5623 # after this tag, mechanisms are not by side-effect, so they'll
5624 # only be used when explicitly requested
5625 if test "x$enable_dependency_tracking" = xyes; then
5631 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5632 # This compiler won't grok `-c -o', but also, the minuso test has
5633 # not run yet. These depmodes are late enough in the game, and
5634 # so weak that their functioning should not be impacted.
5635 am__obj=conftest.${OBJEXT-o}
5640 if depmode=$depmode \
5641 source=sub/conftest.c object=$am__obj \
5642 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5643 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5644 >/dev/null 2>conftest.err &&
5645 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5646 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5647 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5648 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5649 # icc doesn't choke on unknown options, it will just issue warnings
5650 # or remarks (even with -Werror). So we grep stderr for any message
5651 # that says an option was ignored or not supported.
5652 # When given -MP, icc 7.0 and 7.1 complain thusly:
5653 # icc: Command line warning: ignoring option '-M'; no argument required
5654 # The diagnosis changed in icc 8.0:
5655 # icc: Command line remark: option '-MP' not supported
5656 if (grep 'ignoring option' conftest.err ||
5657 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5658 am_cv_CC_dependencies_compiler_type=$depmode
5667 am_cv_CC_dependencies_compiler_type=none
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5672 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5673 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5676 test "x$enable_dependency_tracking" != xno \
5677 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5679 am__fastdepCC_FALSE='#'
5681 am__fastdepCC_TRUE='#'
5682 am__fastdepCC_FALSE=
5686 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5690 #################################
5691 ## all the --with-* argument help
5692 #################################
5695 # Check whether --enable-debug was given.
5696 if test "${enable_debug+set}" = set; then :
5697 enableval=$enable_debug;
5701 # Check whether --enable-debug-C was given.
5702 if test "${enable_debug_C+set}" = set; then :
5703 enableval=$enable_debug_C;
5707 # Check whether --enable-debug-CXX was given.
5708 if test "${enable_debug_CXX+set}" = set; then :
5709 enableval=$enable_debug_CXX;
5713 # Check whether --enable-debug-java was given.
5714 if test "${enable_debug_java+set}" = set; then :
5715 enableval=$enable_debug_java;
5719 # Check whether --enable-debug-fortran was given.
5720 if test "${enable_debug_fortran+set}" = set; then :
5721 enableval=$enable_debug_fortran;
5725 # Check whether --enable-debug-linker was given.
5726 if test "${enable_debug_linker+set}" = set; then :
5727 enableval=$enable_debug_linker;
5731 # Check whether --enable-code-coverage was given.
5732 if test "${enable_code_coverage+set}" = set; then :
5733 enableval=$enable_code_coverage;
5737 # Check whether --enable-stop-on-warning was given.
5738 if test "${enable_stop_on_warning+set}" = set; then :
5739 enableval=$enable_stop_on_warning;
5744 # Check whether --with-gcc was given.
5745 if test "${with_gcc+set}" = set; then :
5751 # Check whether --with-gfortran was given.
5752 if test "${with_gfortran+set}" = set; then :
5753 withval=$with_gfortran;
5758 # Check whether --with-intelcompilers was given.
5759 if test "${with_intelcompilers+set}" = set; then :
5760 withval=$with_intelcompilers;
5765 # Check whether --with-tk was given.
5766 if test "${with_tk+set}" = set; then :
5772 # Check whether --with-javasci was given.
5773 if test "${with_javasci+set}" = set; then :
5774 withval=$with_javasci;
5778 # Check whether --enable-compilation-tests was given.
5779 if test "${enable_compilation_tests+set}" = set; then :
5780 enableval=$enable_compilation_tests;
5785 # Check whether --with-gui was given.
5786 if test "${with_gui+set}" = set; then :
5791 # Check whether --enable-build-swig was given.
5792 if test "${enable_build_swig+set}" = set; then :
5793 enableval=$enable_build_swig;
5797 # Check whether --enable-build-giws was given.
5798 if test "${enable_build_giws+set}" = set; then :
5799 enableval=$enable_build_giws;
5804 ################################################
5805 ########## compilator & misc programs detection
5806 ################################################
5809 ac_cpp='$CPP $CPPFLAGS'
5810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5815 # On Suns, sometimes $CPP names a directory.
5816 if test -n "$CPP" && test -d "$CPP"; then
5819 if test -z "$CPP"; then
5820 if ${ac_cv_prog_CPP+:} false; then :
5821 $as_echo_n "(cached) " >&6
5823 # Double quotes because CPP needs to be expanded
5824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5827 for ac_c_preproc_warn_flag in '' yes
5829 # Use a header file that comes with gcc, so configuring glibc
5830 # with a fresh cross-compiler works.
5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5832 # <limits.h> exists even on freestanding compilers.
5833 # On the NeXT, cc -E runs the code through the compiler's parser,
5834 # not just through cpp. "Syntax error" is here to catch this case.
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5838 # include <limits.h>
5840 # include <assert.h>
5844 if ac_fn_c_try_cpp "$LINENO"; then :
5847 # Broken: fails on valid input.
5850 rm -f conftest.err conftest.i conftest.$ac_ext
5852 # OK, works on sane cases. Now check whether nonexistent headers
5853 # can be detected and how.
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <ac_nonexistent.h>
5858 if ac_fn_c_try_cpp "$LINENO"; then :
5859 # Broken: success on invalid input.
5862 # Passes both tests.
5866 rm -f conftest.err conftest.i conftest.$ac_ext
5869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5870 rm -f conftest.i conftest.err conftest.$ac_ext
5871 if $ac_preproc_ok; then :
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5884 $as_echo "$CPP" >&6; }
5886 for ac_c_preproc_warn_flag in '' yes
5888 # Use a header file that comes with gcc, so configuring glibc
5889 # with a fresh cross-compiler works.
5890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5891 # <limits.h> exists even on freestanding compilers.
5892 # On the NeXT, cc -E runs the code through the compiler's parser,
5893 # not just through cpp. "Syntax error" is here to catch this case.
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 # include <limits.h>
5899 # include <assert.h>
5903 if ac_fn_c_try_cpp "$LINENO"; then :
5906 # Broken: fails on valid input.
5909 rm -f conftest.err conftest.i conftest.$ac_ext
5911 # OK, works on sane cases. Now check whether nonexistent headers
5912 # can be detected and how.
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <ac_nonexistent.h>
5917 if ac_fn_c_try_cpp "$LINENO"; then :
5918 # Broken: success on invalid input.
5921 # Passes both tests.
5925 rm -f conftest.err conftest.i conftest.$ac_ext
5928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5929 rm -f conftest.i conftest.err conftest.$ac_ext
5930 if $ac_preproc_ok; then :
5933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5935 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5936 See \`config.log' for more details" "$LINENO" 5; }
5940 ac_cpp='$CPP $CPPFLAGS'
5941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5946 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5947 if ${ac_cv_path_GREP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -z "$GREP"; then
5951 ac_path_GREP_found=false
5952 # Loop through the user's path and test for each of PROGNAME-LIST
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5957 test -z "$as_dir" && as_dir=.
5958 for ac_prog in grep ggrep; do
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5961 as_fn_executable_p "$ac_path_GREP" || continue
5962 # Check for GNU ac_path_GREP and select it if it is found.
5963 # Check for GNU $ac_path_GREP
5964 case `"$ac_path_GREP" --version 2>&1` in
5966 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5969 $as_echo_n 0123456789 >"conftest.in"
5972 cat "conftest.in" "conftest.in" >"conftest.tmp"
5973 mv "conftest.tmp" "conftest.in"
5974 cp "conftest.in" "conftest.nl"
5975 $as_echo 'GREP' >> "conftest.nl"
5976 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5978 as_fn_arith $ac_count + 1 && ac_count=$as_val
5979 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5980 # Best one so far, save it but keep looking for a better one
5981 ac_cv_path_GREP="$ac_path_GREP"
5982 ac_path_GREP_max=$ac_count
5984 # 10*(2^10) chars as input seems more than enough
5985 test $ac_count -gt 10 && break
5987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5990 $ac_path_GREP_found && break 3
5995 if test -z "$ac_cv_path_GREP"; then
5996 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5999 ac_cv_path_GREP=$GREP
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6004 $as_echo "$ac_cv_path_GREP" >&6; }
6005 GREP="$ac_cv_path_GREP"
6010 #### Mac OS X set of fink path with provided
6014 # Check whether --with-fink_prefix was given.
6015 if test "${with_fink_prefix+set}" = set; then :
6016 withval=$with_fink_prefix;
6019 # Need MacosX Version to specify some path.
6021 *Darwin* | *darwin*)
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6024 $as_echo_n "checking Mac OS X Version... " >&6; }
6025 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6026 case $macosx_version in
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6029 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6033 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6037 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6041 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6044 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 or 10.8 are needed. Found $macosx_version" "$LINENO" 5
6053 if test -n "$with_fink_prefix"; then
6054 # If with-fink-prefix is provided, use the provided path to make sure that we will
6055 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6056 # Therefor, we use the one in fink)
6057 FINK_PREFIX="$with_fink_prefix/"
6059 # Exec the init script of fink to make sure that the env is set
6060 if test -f $with_fink_prefix/bin/init.sh; then
6061 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6062 source $with_fink_prefix/bin/init.sh
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6065 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6071 #Append to the default flags on Apple machines
6072 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6073 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6078 # Check whether --with-min_macosx_version was given.
6079 if test "${with_min_macosx_version+set}" = set; then :
6080 withval=$with_min_macosx_version;
6085 if test -n "$with_min_macosx_version"; then
6086 MIN_MACOSX_VERSION=$with_min_macosx_version
6087 #Append to the default flags on Apple machines
6088 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6089 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6090 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6091 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6092 # We need this to be passed to all linker commands
6093 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6099 #####################################################
6100 ## Look for pkg-config
6101 #####################################################
6104 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6105 if test -n "$ac_tool_prefix"; then
6106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6111 $as_echo_n "(cached) " >&6
6115 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6137 if test -n "$PKG_CONFIG"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6139 $as_echo "$PKG_CONFIG" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6147 if test -z "$ac_cv_path_PKG_CONFIG"; then
6148 ac_pt_PKG_CONFIG=$PKG_CONFIG
6149 # Extract the first word of "pkg-config", so it can be a program name with args.
6150 set dummy pkg-config; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6154 $as_echo_n "(cached) " >&6
6156 case $ac_pt_PKG_CONFIG in
6158 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6180 if test -n "$ac_pt_PKG_CONFIG"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6182 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6188 if test "x$ac_pt_PKG_CONFIG" = x; then
6191 case $cross_compiling:$ac_tool_warned in
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6197 PKG_CONFIG=$ac_pt_PKG_CONFIG
6200 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6204 if test -n "$PKG_CONFIG"; then
6205 _pkg_min_version=0.9.0
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6207 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6208 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6210 $as_echo "yes" >&6; }
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6219 #####################################################
6220 ## check if options are correct (or not)
6221 #####################################################
6223 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6224 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6227 ######## fortran ########
6229 if test "$with_gfortran" = yes; then
6231 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6232 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6233 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6234 if test -n "$ac_tool_prefix"; then
6235 for ac_prog in gfortran
6237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_F77+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$F77"; then
6245 ac_cv_prog_F77="$F77" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 if test -n "$F77"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6267 $as_echo "$F77" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6274 test -n "$F77" && break
6277 if test -z "$F77"; then
6279 for ac_prog in gfortran
6281 # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if test -n "$ac_ct_F77"; then
6289 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6298 ac_cv_prog_ac_ct_F77="$ac_prog"
6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6309 if test -n "$ac_ct_F77"; then
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6311 $as_echo "$ac_ct_F77" >&6; }
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314 $as_echo "no" >&6; }
6318 test -n "$ac_ct_F77" && break
6321 if test "x$ac_ct_F77" = x; then
6324 case $cross_compiling:$ac_tool_warned in
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6335 # Provide some information about the compiler.
6336 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6339 for ac_option in --version -v -V -qversion; do
6340 { { ac_try="$ac_compiler $ac_option >&5"
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6346 $as_echo "$ac_try_echo"; } >&5
6347 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6349 if test -s conftest.err; then
6351 ... rest of stderr output deleted ...
6352 10q' conftest.err >conftest.er1
6353 cat conftest.er1 >&5
6355 rm -f conftest.er1 conftest.err
6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6357 test $ac_status = 0; }
6361 # If we don't use `.F' as extension, the preprocessor is not run on the
6362 # input file. (Note that this only needs to work for GNU compilers.)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6366 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6367 if ${ac_cv_f77_compiler_gnu+:} false; then :
6368 $as_echo_n "(cached) " >&6
6370 cat > conftest.$ac_ext <<_ACEOF
6378 if ac_fn_f77_try_compile "$LINENO"; then :
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6388 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6390 ac_test_FFLAGS=${FFLAGS+set}
6391 ac_save_FFLAGS=$FFLAGS
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6394 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6395 if ${ac_cv_prog_f77_g+:} false; then :
6396 $as_echo_n "(cached) " >&6
6399 cat > conftest.$ac_ext <<_ACEOF
6404 if ac_fn_f77_try_compile "$LINENO"; then :
6405 ac_cv_prog_f77_g=yes
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6413 $as_echo "$ac_cv_prog_f77_g" >&6; }
6414 if test "$ac_test_FFLAGS" = set; then
6415 FFLAGS=$ac_save_FFLAGS
6416 elif test $ac_cv_prog_f77_g = yes; then
6417 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6423 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6430 if test $ac_compiler_gnu = yes; then
6436 ac_cpp='$CPP $CPPFLAGS'
6437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441 if test -z "$F77"; then
6442 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6446 if test "$with_intelcompilers" = yes; then
6448 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6449 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6450 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6451 if test -n "$ac_tool_prefix"; then
6452 for ac_prog in ifc ifort
6454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_F77+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$F77"; then
6462 ac_cv_prog_F77="$F77" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 if test -n "$F77"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6484 $as_echo "$F77" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6491 test -n "$F77" && break
6494 if test -z "$F77"; then
6496 for ac_prog in ifc ifort
6498 # Extract the first word of "$ac_prog", so it can be a program name with args.
6499 set dummy $ac_prog; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 if test -n "$ac_ct_F77"; then
6506 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_F77="$ac_prog"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6526 if test -n "$ac_ct_F77"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6528 $as_echo "$ac_ct_F77" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6535 test -n "$ac_ct_F77" && break
6538 if test "x$ac_ct_F77" = x; then
6541 case $cross_compiling:$ac_tool_warned in
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6545 ac_tool_warned=yes ;;
6552 # Provide some information about the compiler.
6553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6556 for ac_option in --version -v -V -qversion; do
6557 { { ac_try="$ac_compiler $ac_option >&5"
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6563 $as_echo "$ac_try_echo"; } >&5
6564 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6566 if test -s conftest.err; then
6568 ... rest of stderr output deleted ...
6569 10q' conftest.err >conftest.er1
6570 cat conftest.er1 >&5
6572 rm -f conftest.er1 conftest.err
6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574 test $ac_status = 0; }
6578 # If we don't use `.F' as extension, the preprocessor is not run on the
6579 # input file. (Note that this only needs to work for GNU compilers.)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6583 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6584 if ${ac_cv_f77_compiler_gnu+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 cat > conftest.$ac_ext <<_ACEOF
6595 if ac_fn_f77_try_compile "$LINENO"; then :
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6605 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6607 ac_test_FFLAGS=${FFLAGS+set}
6608 ac_save_FFLAGS=$FFLAGS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6611 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6612 if ${ac_cv_prog_f77_g+:} false; then :
6613 $as_echo_n "(cached) " >&6
6616 cat > conftest.$ac_ext <<_ACEOF
6621 if ac_fn_f77_try_compile "$LINENO"; then :
6622 ac_cv_prog_f77_g=yes
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6630 $as_echo "$ac_cv_prog_f77_g" >&6; }
6631 if test "$ac_test_FFLAGS" = set; then
6632 FFLAGS=$ac_save_FFLAGS
6633 elif test $ac_cv_prog_f77_g = yes; then
6634 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6640 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6647 if test $ac_compiler_gnu = yes; then
6653 ac_cpp='$CPP $CPPFLAGS'
6654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6658 if test -z "$F77"; then
6659 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6663 if test -z "$F77"; then
6664 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6666 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6667 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6669 if test -n "$ac_tool_prefix"; then
6670 for ac_prog in gfortran ifc ifort
6672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675 $as_echo_n "checking for $ac_word... " >&6; }
6676 if ${ac_cv_prog_F77+:} false; then :
6677 $as_echo_n "(cached) " >&6
6679 if test -n "$F77"; then
6680 ac_cv_prog_F77="$F77" # Let the user override the test.
6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 if test -n "$F77"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6702 $as_echo "$F77" >&6; }
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705 $as_echo "no" >&6; }
6709 test -n "$F77" && break
6712 if test -z "$F77"; then
6714 for ac_prog in gfortran ifc ifort
6716 # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_F77"; then
6724 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_F77="$ac_prog"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6744 if test -n "$ac_ct_F77"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6746 $as_echo "$ac_ct_F77" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6753 test -n "$ac_ct_F77" && break
6756 if test "x$ac_ct_F77" = x; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6763 ac_tool_warned=yes ;;
6770 # Provide some information about the compiler.
6771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6774 for ac_option in --version -v -V -qversion; do
6775 { { ac_try="$ac_compiler $ac_option >&5"
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6781 $as_echo "$ac_try_echo"; } >&5
6782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6784 if test -s conftest.err; then
6786 ... rest of stderr output deleted ...
6787 10q' conftest.err >conftest.er1
6788 cat conftest.er1 >&5
6790 rm -f conftest.er1 conftest.err
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }
6796 # If we don't use `.F' as extension, the preprocessor is not run on the
6797 # input file. (Note that this only needs to work for GNU compilers.)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6801 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6802 if ${ac_cv_f77_compiler_gnu+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 cat > conftest.$ac_ext <<_ACEOF
6813 if ac_fn_f77_try_compile "$LINENO"; then :
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6823 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6825 ac_test_FFLAGS=${FFLAGS+set}
6826 ac_save_FFLAGS=$FFLAGS
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6829 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6830 if ${ac_cv_prog_f77_g+:} false; then :
6831 $as_echo_n "(cached) " >&6
6834 cat > conftest.$ac_ext <<_ACEOF
6839 if ac_fn_f77_try_compile "$LINENO"; then :
6840 ac_cv_prog_f77_g=yes
6844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6848 $as_echo "$ac_cv_prog_f77_g" >&6; }
6849 if test "$ac_test_FFLAGS" = set; then
6850 FFLAGS=$ac_save_FFLAGS
6851 elif test $ac_cv_prog_f77_g = yes; then
6852 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6858 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6865 if test $ac_compiler_gnu = yes; then
6871 ac_cpp='$CPP $CPPFLAGS'
6872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876 if test -z "$F77"; then
6877 # Best effort to find a compiler (might be g77)
6879 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6880 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6882 if test -n "$ac_tool_prefix"; then
6883 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_F77+:} false; then :
6890 $as_echo_n "(cached) " >&6
6892 if test -n "$F77"; then
6893 ac_cv_prog_F77="$F77" # Let the user override the test.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 if test -n "$F77"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6915 $as_echo "$F77" >&6; }
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6922 test -n "$F77" && break
6925 if test -z "$F77"; then
6927 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
6929 # Extract the first word of "$ac_prog", so it can be a program name with args.
6930 set dummy $ac_prog; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6934 $as_echo_n "(cached) " >&6
6936 if test -n "$ac_ct_F77"; then
6937 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_ac_ct_F77="$ac_prog"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6957 if test -n "$ac_ct_F77"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6959 $as_echo "$ac_ct_F77" >&6; }
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6966 test -n "$ac_ct_F77" && break
6969 if test "x$ac_ct_F77" = x; then
6972 case $cross_compiling:$ac_tool_warned in
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6983 # Provide some information about the compiler.
6984 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6987 for ac_option in --version -v -V -qversion; do
6988 { { ac_try="$ac_compiler $ac_option >&5"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6994 $as_echo "$ac_try_echo"; } >&5
6995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6997 if test -s conftest.err; then
6999 ... rest of stderr output deleted ...
7000 10q' conftest.err >conftest.er1
7001 cat conftest.er1 >&5
7003 rm -f conftest.er1 conftest.err
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }
7009 # If we don't use `.F' as extension, the preprocessor is not run on the
7010 # input file. (Note that this only needs to work for GNU compilers.)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7014 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7015 if ${ac_cv_f77_compiler_gnu+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 cat > conftest.$ac_ext <<_ACEOF
7026 if ac_fn_f77_try_compile "$LINENO"; then :
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7036 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7038 ac_test_FFLAGS=${FFLAGS+set}
7039 ac_save_FFLAGS=$FFLAGS
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7042 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7043 if ${ac_cv_prog_f77_g+:} false; then :
7044 $as_echo_n "(cached) " >&6
7047 cat > conftest.$ac_ext <<_ACEOF
7052 if ac_fn_f77_try_compile "$LINENO"; then :
7053 ac_cv_prog_f77_g=yes
7057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7061 $as_echo "$ac_cv_prog_f77_g" >&6; }
7062 if test "$ac_test_FFLAGS" = set; then
7063 FFLAGS=$ac_save_FFLAGS
7064 elif test $ac_cv_prog_f77_g = yes; then
7065 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7071 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7078 if test $ac_compiler_gnu = yes; then
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7093 # case statements were introduced in fortran 90 so we can use that
7094 # as a test to see if our compiler is fortran 90 compatible.
7096 if test -z "$F77"; then
7097 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7101 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7104 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7105 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7106 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7109 cat > conftest.$ac_ext <<_ACEOF
7115 print*, "case is 1, i is ", i
7117 print*, "case is 2 to 3, i is ", i
7119 print*, "default case, i is ", i
7125 if ac_fn_f77_try_compile "$LINENO"; then :
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127 $as_echo "yes" >&6; }
7129 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 ############ C ###############
7149 if test "$with_gcc" = yes; then
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_CC+:} false; then :
7163 $as_echo_n "(cached) " >&6
7165 if test -n "$CC"; then
7166 ac_cv_prog_CC="$CC" # Let the user override the test.
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 if test -n "$CC"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7188 $as_echo "$CC" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7195 test -n "$CC" && break
7198 if test -z "$CC"; then
7202 # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$ac_ct_CC"; then
7210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_CC="$ac_prog"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7230 if test -n "$ac_ct_CC"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7232 $as_echo "$ac_ct_CC" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7239 test -n "$ac_ct_CC" && break
7242 if test "x$ac_ct_CC" = x; then
7245 case $cross_compiling:$ac_tool_warned in
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "no acceptable C compiler found in \$PATH
7259 See \`config.log' for more details" "$LINENO" 5; }
7261 # Provide some information about the compiler.
7262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7265 for ac_option in --version -v -V -qversion; do
7266 { { ac_try="$ac_compiler $ac_option >&5"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7272 $as_echo "$ac_try_echo"; } >&5
7273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7275 if test -s conftest.err; then
7277 ... rest of stderr output deleted ...
7278 10q' conftest.err >conftest.er1
7279 cat conftest.er1 >&5
7281 rm -f conftest.er1 conftest.err
7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7288 if ${ac_cv_c_compiler_gnu+:} false; then :
7289 $as_echo_n "(cached) " >&6
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7305 if ac_fn_c_try_compile "$LINENO"; then :
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7316 if test $ac_compiler_gnu = yes; then
7321 ac_test_CFLAGS=${CFLAGS+set}
7322 ac_save_CFLAGS=$CFLAGS
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7325 if ${ac_cv_prog_cc_g+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 ac_save_c_werror_flag=$ac_c_werror_flag
7329 ac_c_werror_flag=yes
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333 /* end confdefs.h. */
7343 if ac_fn_c_try_compile "$LINENO"; then :
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7358 if ac_fn_c_try_compile "$LINENO"; then :
7361 ac_c_werror_flag=$ac_save_c_werror_flag
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7374 if ac_fn_c_try_compile "$LINENO"; then :
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 ac_c_werror_flag=$ac_save_c_werror_flag
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7385 $as_echo "$ac_cv_prog_cc_g" >&6; }
7386 if test "$ac_test_CFLAGS" = set; then
7387 CFLAGS=$ac_save_CFLAGS
7388 elif test $ac_cv_prog_cc_g = yes; then
7389 if test "$GCC" = yes; then
7395 if test "$GCC" = yes; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7403 if ${ac_cv_prog_cc_c89+:} false; then :
7404 $as_echo_n "(cached) " >&6
7406 ac_cv_prog_cc_c89=no
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409 /* end confdefs.h. */
7413 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7414 struct buf { int x; };
7415 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7416 static char *e (p, i)
7422 static char *f (char * (*g) (char **, int), char **p, ...)
7427 s = g (p, va_arg (v,int));
7432 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7433 function prototypes and stuff, but not '\xHH' hex character constants.
7434 These don't provoke an error unfortunately, instead are silently treated
7435 as 'x'. The following induces an error, until -std is added to get
7436 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7437 array size at least. It's necessary to write '\x00'==0 to get something
7438 that's true only with -std. */
7439 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7441 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7442 inside strings and character constants. */
7444 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7446 int test (int i, double x);
7447 struct s1 {int (*f) (int a);};
7448 struct s2 {int (*f) (double a);};
7449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7460 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7461 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7463 CC="$ac_save_CC $ac_arg"
7464 if ac_fn_c_try_compile "$LINENO"; then :
7465 ac_cv_prog_cc_c89=$ac_arg
7467 rm -f core conftest.err conftest.$ac_objext
7468 test "x$ac_cv_prog_cc_c89" != "xno" && break
7470 rm -f conftest.$ac_ext
7475 case "x$ac_cv_prog_cc_c89" in
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7478 $as_echo "none needed" >&6; } ;;
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7481 $as_echo "unsupported" >&6; } ;;
7483 CC="$CC $ac_cv_prog_cc_c89"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7485 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7487 if test "x$ac_cv_prog_cc_c89" != xno; then :
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497 if test -z "$CC"; then
7498 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7502 if test "$with_intelcompilers" = yes; then
7504 ac_cpp='$CPP $CPPFLAGS'
7505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508 if test -n "$ac_tool_prefix"; then
7509 for ac_prog in icc ecc
7511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_CC+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$CC"; then
7519 ac_cv_prog_CC="$CC" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 if test -n "$CC"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7541 $as_echo "$CC" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7548 test -n "$CC" && break
7551 if test -z "$CC"; then
7553 for ac_prog in icc ecc
7555 # Extract the first word of "$ac_prog", so it can be a program name with args.
7556 set dummy $ac_prog; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7560 $as_echo_n "(cached) " >&6
7562 if test -n "$ac_ct_CC"; then
7563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 test -z "$as_dir" && as_dir=.
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_CC="$ac_prog"
7573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7583 if test -n "$ac_ct_CC"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7585 $as_echo "$ac_ct_CC" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7592 test -n "$ac_ct_CC" && break
7595 if test "x$ac_ct_CC" = x; then
7598 case $cross_compiling:$ac_tool_warned in
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7602 ac_tool_warned=yes ;;
7609 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7611 as_fn_error $? "no acceptable C compiler found in \$PATH
7612 See \`config.log' for more details" "$LINENO" 5; }
7614 # Provide some information about the compiler.
7615 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7618 for ac_option in --version -v -V -qversion; do
7619 { { ac_try="$ac_compiler $ac_option >&5"
7621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7622 *) ac_try_echo=$ac_try;;
7624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7625 $as_echo "$ac_try_echo"; } >&5
7626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7628 if test -s conftest.err; then
7630 ... rest of stderr output deleted ...
7631 10q' conftest.err >conftest.er1
7632 cat conftest.er1 >&5
7634 rm -f conftest.er1 conftest.err
7635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7636 test $ac_status = 0; }
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7641 if ${ac_cv_c_compiler_gnu+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7658 if ac_fn_c_try_compile "$LINENO"; then :
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7669 if test $ac_compiler_gnu = yes; then
7674 ac_test_CFLAGS=${CFLAGS+set}
7675 ac_save_CFLAGS=$CFLAGS
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7678 if ${ac_cv_prog_cc_g+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 ac_save_c_werror_flag=$ac_c_werror_flag
7682 ac_c_werror_flag=yes
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7696 if ac_fn_c_try_compile "$LINENO"; then :
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7711 if ac_fn_c_try_compile "$LINENO"; then :
7714 ac_c_werror_flag=$ac_save_c_werror_flag
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7727 if ac_fn_c_try_compile "$LINENO"; then :
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 ac_c_werror_flag=$ac_save_c_werror_flag
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7738 $as_echo "$ac_cv_prog_cc_g" >&6; }
7739 if test "$ac_test_CFLAGS" = set; then
7740 CFLAGS=$ac_save_CFLAGS
7741 elif test $ac_cv_prog_cc_g = yes; then
7742 if test "$GCC" = yes; then
7748 if test "$GCC" = yes; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7755 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7756 if ${ac_cv_prog_cc_c89+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 ac_cv_prog_cc_c89=no
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7767 struct buf { int x; };
7768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7769 static char *e (p, i)
7775 static char *f (char * (*g) (char **, int), char **p, ...)
7780 s = g (p, va_arg (v,int));
7785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7786 function prototypes and stuff, but not '\xHH' hex character constants.
7787 These don't provoke an error unfortunately, instead are silently treated
7788 as 'x'. The following induces an error, until -std is added to get
7789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7790 array size at least. It's necessary to write '\x00'==0 to get something
7791 that's true only with -std. */
7792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7795 inside strings and character constants. */
7797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7799 int test (int i, double x);
7800 struct s1 {int (*f) (int a);};
7801 struct s2 {int (*f) (double a);};
7802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7816 CC="$ac_save_CC $ac_arg"
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_prog_cc_c89=$ac_arg
7820 rm -f core conftest.err conftest.$ac_objext
7821 test "x$ac_cv_prog_cc_c89" != "xno" && break
7823 rm -f conftest.$ac_ext
7828 case "x$ac_cv_prog_cc_c89" in
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7831 $as_echo "none needed" >&6; } ;;
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7834 $as_echo "unsupported" >&6; } ;;
7836 CC="$CC $ac_cv_prog_cc_c89"
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7840 if test "x$ac_cv_prog_cc_c89" != xno; then :
7845 ac_cpp='$CPP $CPPFLAGS'
7846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850 if test -z "$CC"; then
7851 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7855 if test -z "$CC"; then
7856 # No C compiler specified... We rely on Autoconf to find the best
7858 ac_cpp='$CPP $CPPFLAGS'
7859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862 if test -n "$ac_tool_prefix"; then
7863 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7864 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_CC+:} false; then :
7868 $as_echo_n "(cached) " >&6
7870 if test -n "$CC"; then
7871 ac_cv_prog_CC="$CC" # Let the user override the test.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 if test -n "$CC"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7893 $as_echo "$CC" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7901 if test -z "$ac_cv_prog_CC"; then
7903 # Extract the first word of "gcc", so it can be a program name with args.
7904 set dummy gcc; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7908 $as_echo_n "(cached) " >&6
7910 if test -n "$ac_ct_CC"; then
7911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir=.
7918 for ac_exec_ext in '' $ac_executable_extensions; do
7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920 ac_cv_prog_ac_ct_CC="gcc"
7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7931 if test -n "$ac_ct_CC"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7933 $as_echo "$ac_ct_CC" >&6; }
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7939 if test "x$ac_ct_CC" = x; then
7942 case $cross_compiling:$ac_tool_warned in
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7946 ac_tool_warned=yes ;;
7954 if test -z "$CC"; then
7955 if test -n "$ac_tool_prefix"; then
7956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7957 set dummy ${ac_tool_prefix}cc; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if ${ac_cv_prog_CC+:} false; then :
7961 $as_echo_n "(cached) " >&6
7963 if test -n "$CC"; then
7964 ac_cv_prog_CC="$CC" # Let the user override the test.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_CC="${ac_tool_prefix}cc"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 if test -n "$CC"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7986 $as_echo "$CC" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7995 if test -z "$CC"; then
7996 # Extract the first word of "cc", so it can be a program name with args.
7997 set dummy cc; ac_word=$2
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7999 $as_echo_n "checking for $ac_word... " >&6; }
8000 if ${ac_cv_prog_CC+:} false; then :
8001 $as_echo_n "(cached) " >&6
8003 if test -n "$CC"; then
8004 ac_cv_prog_CC="$CC" # Let the user override the test.
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8015 ac_prog_rejected=yes
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 if test $ac_prog_rejected = yes; then
8027 # We found a bogon in the path, so make sure we never use it.
8028 set dummy $ac_cv_prog_CC
8030 if test $# != 0; then
8031 # We chose a different compiler from the bogus one.