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
670 INSTALL_HELP_XML_FALSE
671 INSTALL_HELP_XML_TRUE
708 GENERATE_LOCALIZATION_FILES_FALSE
709 GENERATE_LOCALIZATION_FILES_TRUE
734 XGETTEXT_EXTRA_OPTIONS
742 GETTEXT_MACRO_VERSION
761 SWIG_RUNTIME_LIBS_DIR
815 USE_DYNAMIC_STACK_FALSE
816 USE_DYNAMIC_STACK_TRUE
823 IS_MIPS_SGI_IRIX_FALSE
824 IS_MIPS_SGI_IRIX_TRUE
873 MAINTAINER_MODE_FALSE
876 RELOCATABLE_VIA_LD_FALSE
877 RELOCATABLE_VIA_LD_TRUE
902 INSTALL_STRIP_PROGRAM
905 SCILAB_BINARY_VERSION
906 SCILAB_LIBRARY_VERSION
907 SCILAB_VERSION_MAINTENANCE
937 program_transform_name
950 enable_option_checking
955 enable_maintainer_mode
956 enable_dependency_tracking
964 enable_stop_on_warning
970 enable_compilation_tests
975 with_min_macosx_version
990 enable_build_localization
1009 with_install_help_xml
1010 enable_build_doxygen
1018 ac_precious_vars='build_alias
1041 # Initialize some variables set by options.
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1055 program_transform_name=s,x,x,
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 includedir='${prefix}/include'
1078 oldincludedir='/usr/include'
1079 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1080 infodir='${datarootdir}/info'
1085 libdir='${exec_prefix}/lib'
1086 localedir='${datarootdir}/locale'
1087 mandir='${datarootdir}/man'
1093 # If the previous option needs an argument, assign it.
1094 if test -n "$ac_prev"; then
1095 eval $ac_prev=\$ac_option
1101 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1132 -datadir | --datadir | --datadi | --datad)
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1144 -disable-* | --disable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval enable_$ac_useropt=no ;;
1160 -docdir | --docdir | --docdi | --doc | --do)
1162 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163 docdir=$ac_optarg ;;
1165 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1167 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168 dvidir=$ac_optarg ;;
1170 -enable-* | --enable-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid feature name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "enable_$ac_useropt"
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval enable_$ac_useropt=\$ac_optarg ;;
1186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188 | --exec | --exe | --ex)
1189 ac_prev=exec_prefix ;;
1190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192 | --exec=* | --exe=* | --ex=*)
1193 exec_prefix=$ac_optarg ;;
1195 -gas | --gas | --ga | --g)
1196 # Obsolete; use --with-gas.
1199 -help | --help | --hel | --he | -h)
1200 ac_init_help=long ;;
1201 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202 ac_init_help=recursive ;;
1203 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204 ac_init_help=short ;;
1206 -host | --host | --hos | --ho)
1207 ac_prev=host_alias ;;
1208 -host=* | --host=* | --hos=* | --ho=*)
1209 host_alias=$ac_optarg ;;
1211 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215 htmldir=$ac_optarg ;;
1217 -includedir | --includedir | --includedi | --included | --include \
1218 | --includ | --inclu | --incl | --inc)
1219 ac_prev=includedir ;;
1220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221 | --includ=* | --inclu=* | --incl=* | --inc=*)
1222 includedir=$ac_optarg ;;
1224 -infodir | --infodir | --infodi | --infod | --info | --inf)
1226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227 infodir=$ac_optarg ;;
1229 -libdir | --libdir | --libdi | --libd)
1231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232 libdir=$ac_optarg ;;
1234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235 | --libexe | --libex | --libe)
1236 ac_prev=libexecdir ;;
1237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238 | --libexe=* | --libex=* | --libe=*)
1239 libexecdir=$ac_optarg ;;
1241 -localedir | --localedir | --localedi | --localed | --locale)
1242 ac_prev=localedir ;;
1243 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244 localedir=$ac_optarg ;;
1246 -localstatedir | --localstatedir | --localstatedi | --localstated \
1247 | --localstate | --localstat | --localsta | --localst | --locals)
1248 ac_prev=localstatedir ;;
1249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251 localstatedir=$ac_optarg ;;
1253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256 mandir=$ac_optarg ;;
1258 -nfp | --nfp | --nf)
1259 # Obsolete; use --without-fp.
1262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263 | --no-cr | --no-c | -n)
1266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272 | --oldin | --oldi | --old | --ol | --o)
1273 ac_prev=oldincludedir ;;
1274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277 oldincludedir=$ac_optarg ;;
1279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282 prefix=$ac_optarg ;;
1284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285 | --program-pre | --program-pr | --program-p)
1286 ac_prev=program_prefix ;;
1287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289 program_prefix=$ac_optarg ;;
1291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292 | --program-suf | --program-su | --program-s)
1293 ac_prev=program_suffix ;;
1294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296 program_suffix=$ac_optarg ;;
1298 -program-transform-name | --program-transform-name \
1299 | --program-transform-nam | --program-transform-na \
1300 | --program-transform-n | --program-transform- \
1301 | --program-transform | --program-transfor \
1302 | --program-transfo | --program-transf \
1303 | --program-trans | --program-tran \
1304 | --progr-tra | --program-tr | --program-t)
1305 ac_prev=program_transform_name ;;
1306 -program-transform-name=* | --program-transform-name=* \
1307 | --program-transform-nam=* | --program-transform-na=* \
1308 | --program-transform-n=* | --program-transform-=* \
1309 | --program-transform=* | --program-transfor=* \
1310 | --program-transfo=* | --program-transf=* \
1311 | --program-trans=* | --program-tran=* \
1312 | --progr-tra=* | --program-tr=* | --program-t=*)
1313 program_transform_name=$ac_optarg ;;
1315 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318 pdfdir=$ac_optarg ;;
1320 -psdir | --psdir | --psdi | --psd | --ps)
1322 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326 | -silent | --silent | --silen | --sile | --sil)
1329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333 sbindir=$ac_optarg ;;
1335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337 | --sharedst | --shareds | --shared | --share | --shar \
1339 ac_prev=sharedstatedir ;;
1340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344 sharedstatedir=$ac_optarg ;;
1346 -site | --site | --sit)
1348 -site=* | --site=* | --sit=*)
1351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354 srcdir=$ac_optarg ;;
1356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357 | --syscon | --sysco | --sysc | --sys | --sy)
1358 ac_prev=sysconfdir ;;
1359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361 sysconfdir=$ac_optarg ;;
1363 -target | --target | --targe | --targ | --tar | --ta | --t)
1364 ac_prev=target_alias ;;
1365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366 target_alias=$ac_optarg ;;
1368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1371 -version | --version | --versio | --versi | --vers | -V)
1372 ac_init_version=: ;;
1375 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1388 eval with_$ac_useropt=\$ac_optarg ;;
1390 -without-* | --without-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394 as_fn_error $? "invalid package name: $ac_useropt"
1395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1404 eval with_$ac_useropt=no ;;
1407 # Obsolete; use --with-x.
1410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411 | --x-incl | --x-inc | --x-in | --x-i)
1412 ac_prev=x_includes ;;
1413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415 x_includes=$ac_optarg ;;
1417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419 ac_prev=x_libraries ;;
1420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422 x_libraries=$ac_optarg ;;
1424 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information"
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 case $ac_envvar in #(
1432 '' | [0-9]* | *[!_$as_cr_alnum]* )
1433 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1435 eval $ac_envvar=\$ac_optarg
1436 export $ac_envvar ;;
1439 # FIXME: should be removed in autoconf 3.0.
1440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1449 if test -n "$ac_prev"; then
1450 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451 as_fn_error $? "missing argument to $ac_option"
1454 if test -n "$ac_unrecognized_opts"; then
1455 case $enable_option_checking in
1457 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 # Check all directory arguments for consistency.
1463 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1468 eval ac_val=\$$ac_var
1469 # Remove trailing slashes.
1472 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473 eval $ac_var=\$ac_val;;
1475 # Be sure to have absolute directory names.
1477 [\\/$]* | ?:[\\/]* ) continue;;
1478 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1488 target=$target_alias
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492 if test "x$build_alias" = x; then
1493 cross_compiling=maybe
1494 elif test "x$build_alias" != "x$host_alias"; then
1500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502 test "$silent" = yes && exec 6>/dev/null
1505 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1506 ac_ls_di=`ls -di .` &&
1507 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1508 as_fn_error $? "working directory cannot be determined"
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 as_fn_error $? "pwd does not report name of working directory"
1513 # Find the source files, if location was not specified.
1514 if test -z "$srcdir"; then
1515 ac_srcdir_defaulted=yes
1516 # Try the directory containing this script, then the parent directory.
1517 ac_confdir=`$as_dirname -- "$as_myself" ||
1518 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1519 X"$as_myself" : 'X\(//\)[^/]' \| \
1520 X"$as_myself" : 'X\(//\)$' \| \
1521 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1522 $as_echo X"$as_myself" |
1523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1541 if test ! -r "$srcdir/$ac_unique_file"; then
1545 ac_srcdir_defaulted=no
1547 if test ! -r "$srcdir/$ac_unique_file"; then
1548 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1549 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1555 # When building in place, set srcdir=.
1556 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559 # Remove unnecessary trailing slashes from srcdir.
1560 # Double slashes in file names in object file debugging info
1561 # mess up M-x gdb in Emacs.
1563 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 for ac_var in $ac_precious_vars; do
1566 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_env_${ac_var}_value=\$${ac_var}
1568 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 # Report the --help message.
1575 if test "$ac_init_help" = "long"; then
1576 # Omit some internal or obsolete options to make the list less imposing.
1577 # This message is too long to be a string in the A/UX 3.1 sh.
1579 \`configure' configures Scilab 5 to adapt to many kinds of systems.
1581 Usage: $0 [OPTION]... [VAR=VALUE]...
1583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1584 VAR=VALUE. See below for descriptions of some of the useful variables.
1586 Defaults for the options are specified in brackets.
1589 -h, --help display this help and exit
1590 --help=short display options specific to this package
1591 --help=recursive display the short help of all the included packages
1592 -V, --version display version information and exit
1593 -q, --quiet, --silent do not print \`checking ...' messages
1594 --cache-file=FILE cache test results in FILE [disabled]
1595 -C, --config-cache alias for \`--cache-file=config.cache'
1596 -n, --no-create do not create output files
1597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1599 Installation directories:
1600 --prefix=PREFIX install architecture-independent files in PREFIX
1601 [$ac_default_prefix]
1602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1605 By default, \`make install' will install all the files in
1606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1608 for instance \`--prefix=\$HOME'.
1610 For better control, use the options below.
1612 Fine tuning of the installation directories:
1613 --bindir=DIR user executables [EPREFIX/bin]
1614 --sbindir=DIR system admin executables [EPREFIX/sbin]
1615 --libexecdir=DIR program executables [EPREFIX/libexec]
1616 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1617 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1618 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1619 --libdir=DIR object code libraries [EPREFIX/lib]
1620 --includedir=DIR C header files [PREFIX/include]
1621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1624 --infodir=DIR info documentation [DATAROOTDIR/info]
1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1626 --mandir=DIR man documentation [DATAROOTDIR/man]
1627 --docdir=DIR documentation root [DATAROOTDIR/doc/scilab]
1628 --htmldir=DIR html documentation [DOCDIR]
1629 --dvidir=DIR dvi documentation [DOCDIR]
1630 --pdfdir=DIR pdf documentation [DOCDIR]
1631 --psdir=DIR ps documentation [DOCDIR]
1637 --program-prefix=PREFIX prepend PREFIX to installed program names
1638 --program-suffix=SUFFIX append SUFFIX to installed program names
1639 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1642 --x-includes=DIR X include files are in DIR
1643 --x-libraries=DIR X library files are in DIR
1646 --build=BUILD configure for building on BUILD [guessed]
1647 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1651 if test -n "$ac_init_help"; then
1652 case $ac_init_help in
1653 short | recursive ) echo "Configuration of Scilab 5:";;
1658 --disable-option-checking ignore unrecognized --enable/--with options
1659 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1660 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1661 --disable-largefile omit support for large files
1662 --enable-relocatable install a package that can be moved in the filesystem
1663 --disable-rpath do not hardcode runtime library paths
1664 --enable-maintainer-mode enable make rules and dependencies not useful
1665 (and sometimes confusing) to the casual installer
1666 --disable-dependency-tracking speeds up one-time build
1667 --enable-dependency-tracking do not reject slow dependency extractors
1668 --enable-debug Do not optimize and print warning messages
1669 (C/C++/Fortran/Java code)
1670 --enable-debug-C Do not optimize and print warning messages (C code)
1671 --enable-debug-CXX Do not optimize and print warning messages (C++
1673 --enable-debug-java Print warning messages and line numbers (Java code)
1674 --enable-debug-fortran Do not optimize and print warning messages (Fortran
1676 --enable-debug-linker Print warning messages from the linker (ld)
1677 --enable-code-coverage Enable code coverage
1678 --enable-stop-on-warning
1679 Stop the compilation on the first warning found in
1681 --enable-compilation-tests
1682 Enable unitary tests and checks at compilation time
1683 --enable-build-swig Regenerate Java => C wrappers produces by Swig (A
1684 Java Development Kit (JDK) is mandatory for this
1686 --enable-build-giws Regenerate C/C++ => Java wrappers produces by Giws
1687 (A Java Development Kit (JDK) is mandatory for this
1689 --disable-nls do not use Native Language Support
1690 --disable-build-localization
1691 Disable the localization build
1693 --disable-build-help Disable the help build
1695 --enable-build-doxygen Generate doxygen C/C++ documentation
1696 --enable-static[=PKGS] build static libraries [default=no]
1697 --enable-shared[=PKGS] build shared libraries [default=yes]
1698 --enable-fast-install[=PKGS]
1699 optimize for fast installation [default=yes]
1700 --disable-libtool-lock avoid locking (might break parallel builds)
1701 --disable-ccache Disable the use of ccache
1705 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1706 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1707 --with-gnu-ld assume the C compiler uses GNU ld default=no
1708 --with-gcc Use gcc C compiler
1709 --with-gfortran Use gfortran, GNU Fortran 95 compiler
1710 --with-intelcompilers Use Intel C (icc) and Fortran (ifort) proprietary
1711 compilers (GNU/Linux only)
1712 --without-tk Disable the interface to Tcl/Tk
1713 --without-javasci Disable the Java/Scilab interface (javasci)
1714 --without-gui Disable the Scilab Graphical User Interface (GUI).
1715 Intended for embedded/clustering/grid Scilab
1716 --with-fink-prefix Provide a fink prefix. Default: /sw/
1717 --with-min-macosx-version
1718 Force compilers to generate binaries compatible with
1719 MacOSX minimal version.
1720 --with-hdf5-include=DIR Set the path to the HDF5 headers
1721 --with-hdf5-library=DIR Set the path to the HDF5 libraries
1722 --without-xcos Disable Xcos
1723 --without-modelica Disable the OCaml module (modelica)
1724 --with-jdk=DIR use JDK from DIR
1725 --with-ant=DIR Use ant from DIR
1726 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1727 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1728 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1729 --without-libintl-prefix don't search for libintl in includedir and libdir
1730 --without-fftw Disable the interface to the FFTW 3 library
1731 --with-fftw-include=DIR Set the path to the FFTW headers
1732 --with-fftw-library=DIR Set the path to the FFTW libraries
1733 --without-openmp Disable the usage of OpenMP (parallelization of some
1735 --with-libxml2=PREFIX Set the path to your libxml2 installation
1736 --with-blas-library=DIR set the path to the BLAS (refblas, Atlas, MKL...)
1738 --with-lapack-library=DIR
1739 set the path to the LAPACK library
1740 --without-arpack-ng Disable the interface to ARPACK-NG
1741 --with-arpack-library=DIR
1742 set the path to the ARPACK library
1743 --without-umfpack Disable the interface to the UMFPACK library
1744 --with-umfpack-library=DIR
1745 Set the path to the UMFPACK libraries
1746 --with-umfpack-include=DIR
1747 Set the path to the UMFPACK headers
1748 --with-pcre=DIR Set the path to your PCRE (Perl 5 Compatible Regular
1749 Expression Library) installation
1750 --with-tcl-library=DIR Set the path to the TCL library
1751 --with-tcl-include=DIR Set the path to the TCL headers
1752 --with-tk-library=DIR Set the path to the TK library
1753 --with-tk-include=DIR Set the path to the TK headers
1754 --with-x use the X Window System
1755 --without-matio Disable the interface to Matio (MAT File I/O
1757 --with-matio-include=DIR
1758 Set the path to the MATIO headers
1759 --with-matio-library=DIR
1760 Set the path to the MATIO libraries
1761 --with-docbook=DIR Set the path to the docbook package
1762 --with-install-help-xml make install will install XML files
1764 --with-pic try to use only PIC/non-PIC objects [default=use
1766 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1768 Some influential environment variables:
1769 CC C compiler command
1770 CFLAGS C compiler flags
1771 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1772 nonstandard directory <lib dir>
1773 LIBS libraries to pass to the linker, e.g. -l<library>
1774 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1775 you have headers in a nonstandard directory <include dir>
1777 PKG_CONFIG path to pkg-config utility
1778 F77 Fortran 77 compiler command
1779 FFLAGS Fortran 77 compiler flags
1780 CXX C++ compiler command
1781 CXXFLAGS C++ compiler flags
1782 PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1783 PCRE_LIBS linker flags for PCRE, overriding pkg-config
1784 XMKMF Path to xmkmf, Makefile generator for X Window System
1786 C compiler flags for MATIO, overriding pkg-config
1787 MATIO_LIBS linker flags for MATIO, overriding pkg-config
1788 CXXCPP C++ preprocessor
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1793 Report bugs to <http://bugzilla.scilab.org/>.
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1823 .) # We are building in place.
1825 ac_top_srcdir=$ac_top_builddir_sub
1826 ac_abs_top_srcdir=$ac_pwd ;;
1827 [\\/]* | ?:[\\/]* ) # Absolute name.
1828 ac_srcdir=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir=$srcdir
1830 ac_abs_top_srcdir=$srcdir ;;
1832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" || { ac_status=$?; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1849 cd "$ac_pwd" || { ac_status=$?; break; }
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1857 generated by GNU Autoconf 2.69
1859 Copyright (C) 2012 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 as_fn_set_status $ac_retval
1906 } # ac_fn_c_try_compile
1908 # ac_fn_c_try_cpp LINENO
1909 # ----------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if { { ac_try="$ac_cpp conftest.$ac_ext"
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } > conftest.i && {
1930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1945 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1950 ac_fn_c_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if eval \${$3+:} false; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 if ac_fn_c_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.i conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2015 ( $as_echo "## ------------------------------------------ ##
2016 ## Report this to http://bugzilla.scilab.org/ ##
2017 ## ------------------------------------------ ##"
2018 ) | sed "s/^/$as_me: WARNING: /" >&2
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_mongrel
2036 # ac_fn_c_try_run LINENO
2037 # ----------------------
2038 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2039 # that executables *can* be run.
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if { { ac_try="$ac_link"
2045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2046 *) ac_try_echo=$ac_try;;
2048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2049 $as_echo "$ac_try_echo"; } >&5
2050 (eval "$ac_link") 2>&5
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2054 { { case "(($ac_try" in
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_try") 2>&5
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; }; }; then :
2066 $as_echo "$as_me: program exited with status $ac_status" >&5
2067 $as_echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.$ac_ext >&5
2070 ac_retval=$ac_status
2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074 as_fn_set_status $ac_retval
2078 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2079 # -------------------------------------------------------
2080 # Tests whether HEADER exists and can be compiled using the include files in
2081 # INCLUDES, setting the cache variable VAR accordingly.
2082 ac_fn_c_check_header_compile ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2095 if ac_fn_c_try_compile "$LINENO"; then :
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_header_compile
2109 # ac_fn_c_try_link LINENO
2110 # -----------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded.
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 rm -f conftest.$ac_objext conftest$ac_exeext
2116 if { { ac_try="$ac_link"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123 (eval "$ac_link") 2>conftest.err
2125 if test -s conftest.err; then
2126 grep -v '^ *+' conftest.err >conftest.er1
2127 cat conftest.er1 >&5
2128 mv -f conftest.er1 conftest.err
2130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131 test $ac_status = 0; } && {
2132 test -z "$ac_c_werror_flag" ||
2133 test ! -s conftest.err
2134 } && test -s conftest$ac_exeext && {
2135 test "$cross_compiling" = yes ||
2136 test -x conftest$ac_exeext
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2145 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2146 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2147 # interfere with the next link command; also delete a directory that is
2148 # left behind by Apple's compiler. We do this before executing the actions.
2149 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 as_fn_set_status $ac_retval
2153 } # ac_fn_c_try_link
2155 # ac_fn_c_check_func LINENO FUNC VAR
2156 # ----------------------------------
2157 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2158 ac_fn_c_check_func ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if eval \${$3+:} false; then :
2164 $as_echo_n "(cached) " >&6
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2170 #define $2 innocuous_$2
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $2 (); below.
2174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2175 <limits.h> exists even on freestanding compilers. */
2178 # include <limits.h>
2180 # include <assert.h>
2185 /* Override any GCC internal prototype to avoid an error.
2186 Use char because int might match the return type of a GCC
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined __stub_$2 || defined __stub___$2
2207 if ac_fn_c_try_link "$LINENO"; then :
2212 rm -f core conftest.err conftest.$ac_objext \
2213 conftest$ac_exeext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 } # ac_fn_c_check_func
2222 # ac_fn_f77_try_compile LINENO
2223 # ----------------------------
2224 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2225 ac_fn_f77_try_compile ()
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 rm -f conftest.$ac_objext
2229 if { { ac_try="$ac_compile"
2231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2232 *) ac_try_echo=$ac_try;;
2234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2235 $as_echo "$ac_try_echo"; } >&5
2236 (eval "$ac_compile") 2>conftest.err
2238 if test -s conftest.err; then
2239 grep -v '^ *+' conftest.err >conftest.er1
2240 cat conftest.er1 >&5
2241 mv -f conftest.er1 conftest.err
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; } && {
2245 test -z "$ac_f77_werror_flag" ||
2246 test ! -s conftest.err
2247 } && test -s conftest.$ac_objext; then :
2250 $as_echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 as_fn_set_status $ac_retval
2258 } # ac_fn_f77_try_compile
2260 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2261 # --------------------------------------------
2262 # Tries to find the compile-time value of EXPR in a program that includes
2263 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2265 ac_fn_c_compute_int ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if test "$cross_compiling" = yes; then
2269 # Depending upon the size, compute the lo and hi bounds.
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) >= 0)];
2278 return test_array [0];
2284 if ac_fn_c_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 return test_array [0];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 ac_hi=$ac_mid; break
2304 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2305 if test $ac_lo -le $ac_mid; then
2309 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) < 0)];
2322 return test_array [0];
2328 if ac_fn_c_try_compile "$LINENO"; then :
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2337 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2339 return test_array [0];
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 ac_lo=$ac_mid; break
2348 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2349 if test $ac_mid -le $ac_hi; then
2353 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 # Binary search between lo and hi bounds.
2364 while test "x$ac_lo" != "x$ac_hi"; do
2365 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h. */
2372 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2374 return test_array [0];
2380 if ac_fn_c_try_compile "$LINENO"; then :
2383 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2395 static long int longval () { return $2; }
2396 static unsigned long int ulongval () { return $2; }
2403 FILE *f = fopen ("conftest.val", "w");
2408 long int i = longval ();
2411 fprintf (f, "%ld", i);
2415 unsigned long int i = ulongval ();
2418 fprintf (f, "%lu", i);
2420 /* Do not output a trailing newline, as this causes \r\n confusion
2421 on some platforms. */
2422 return ferror (f) || fclose (f) != 0;
2428 if ac_fn_c_try_run "$LINENO"; then :
2429 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2434 conftest.$ac_objext conftest.beam conftest.$ac_ext
2438 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2439 as_fn_set_status $ac_retval
2441 } # ac_fn_c_compute_int
2443 # ac_fn_cxx_try_compile LINENO
2444 # ----------------------------
2445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2446 ac_fn_cxx_try_compile ()
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 rm -f conftest.$ac_objext
2450 if { { ac_try="$ac_compile"
2452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453 *) ac_try_echo=$ac_try;;
2455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2456 $as_echo "$ac_try_echo"; } >&5
2457 (eval "$ac_compile") 2>conftest.err
2459 if test -s conftest.err; then
2460 grep -v '^ *+' conftest.err >conftest.er1
2461 cat conftest.er1 >&5
2462 mv -f conftest.er1 conftest.err
2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465 test $ac_status = 0; } && {
2466 test -z "$ac_cxx_werror_flag" ||
2467 test ! -s conftest.err
2468 } && test -s conftest.$ac_objext; then :
2471 $as_echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2476 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2477 as_fn_set_status $ac_retval
2479 } # ac_fn_cxx_try_compile
2481 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2482 # ----------------------------------------------------
2483 # Tries to find if the field MEMBER exists in type AGGR, after including
2484 # INCLUDES, setting cache variable VAR accordingly.
2485 ac_fn_c_check_member ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2489 $as_echo_n "checking for $2.$3... " >&6; }
2490 if eval \${$4+:} false; then :
2491 $as_echo_n "(cached) " >&6
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2506 if ac_fn_c_try_compile "$LINENO"; then :
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2516 if (sizeof ac_aggr.$3)
2522 if ac_fn_c_try_compile "$LINENO"; then :
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 } # ac_fn_c_check_member
2538 # ac_fn_cxx_try_run LINENO
2539 # ------------------------
2540 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2541 # that executables *can* be run.
2542 ac_fn_cxx_try_run ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 if { { ac_try="$ac_link"
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2551 $as_echo "$ac_try_echo"; } >&5
2552 (eval "$ac_link") 2>&5
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2556 { { case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_try") 2>&5
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }; }; then :
2568 $as_echo "$as_me: program exited with status $ac_status" >&5
2569 $as_echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 ac_retval=$ac_status
2574 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576 as_fn_set_status $ac_retval
2578 } # ac_fn_cxx_try_run
2580 # ac_fn_cxx_try_cpp LINENO
2581 # ------------------------
2582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2583 ac_fn_cxx_try_cpp ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 if { { ac_try="$ac_cpp conftest.$ac_ext"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2592 $as_echo "$ac_try_echo"; } >&5
2593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2595 if test -s conftest.err; then
2596 grep -v '^ *+' conftest.err >conftest.er1
2597 cat conftest.er1 >&5
2598 mv -f conftest.er1 conftest.err
2600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2601 test $ac_status = 0; } > conftest.i && {
2602 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2603 test ! -s conftest.err
2607 $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2613 as_fn_set_status $ac_retval
2615 } # ac_fn_cxx_try_cpp
2617 # ac_fn_cxx_try_link LINENO
2618 # -------------------------
2619 # Try to link conftest.$ac_ext, and return whether this succeeded.
2620 ac_fn_cxx_try_link ()
2622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { { ac_try="$ac_link"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link") 2>conftest.err
2633 if test -s conftest.err; then
2634 grep -v '^ *+' conftest.err >conftest.er1
2635 cat conftest.er1 >&5
2636 mv -f conftest.er1 conftest.err
2638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2639 test $ac_status = 0; } && {
2640 test -z "$ac_cxx_werror_flag" ||
2641 test ! -s conftest.err
2642 } && test -s conftest$ac_exeext && {
2643 test "$cross_compiling" = yes ||
2644 test -x conftest$ac_exeext
2648 $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2653 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2654 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2655 # interfere with the next link command; also delete a directory that is
2656 # left behind by Apple's compiler. We do this before executing the actions.
2657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_cxx_try_link
2663 # ac_fn_f77_try_link LINENO
2664 # -------------------------
2665 # Try to link conftest.$ac_ext, and return whether this succeeded.
2666 ac_fn_f77_try_link ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 rm -f conftest.$ac_objext conftest$ac_exeext
2670 if { { ac_try="$ac_link"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676 $as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_link") 2>conftest.err
2679 if test -s conftest.err; then
2680 grep -v '^ *+' conftest.err >conftest.er1
2681 cat conftest.er1 >&5
2682 mv -f conftest.er1 conftest.err
2684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685 test $ac_status = 0; } && {
2686 test -z "$ac_f77_werror_flag" ||
2687 test ! -s conftest.err
2688 } && test -s conftest$ac_exeext && {
2689 test "$cross_compiling" = yes ||
2690 test -x conftest$ac_exeext
2694 $as_echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2699 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2700 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2701 # interfere with the next link command; also delete a directory that is
2702 # left behind by Apple's compiler. We do this before executing the actions.
2703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2705 as_fn_set_status $ac_retval
2707 } # ac_fn_f77_try_link
2708 cat >config.log <<_ACEOF
2709 This file contains any messages produced by compilers while
2710 running configure, to aid debugging if configure makes a mistake.
2712 It was created by Scilab $as_me 5, which was
2713 generated by GNU Autoconf 2.69. Invocation command line was
2725 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2726 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2727 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2728 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2729 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2731 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2732 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2734 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2735 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2736 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2737 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2738 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2739 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2740 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 $as_echo "PATH: $as_dir"
2765 # Keep a trace of the command line.
2766 # Strip out --no-create and --no-recursion so they do not pile up.
2767 # Strip out --silent because we don't want to record it for future runs.
2768 # Also quote any args containing shell meta-characters.
2769 # Make two passes to allow for proper duplicate-argument suppression.
2773 ac_must_keep_next=false
2779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2781 | -silent | --silent | --silen | --sile | --sil)
2784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2787 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2789 as_fn_append ac_configure_args1 " '$ac_arg'"
2790 if test $ac_must_keep_next = true; then
2791 ac_must_keep_next=false # Got value, back to normal.
2794 *=* | --config-cache | -C | -disable-* | --disable-* \
2795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2797 | -with-* | --with-* | -without-* | --without-* | --x)
2798 case "$ac_configure_args0 " in
2799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2802 -* ) ac_must_keep_next=true ;;
2805 as_fn_append ac_configure_args " '$ac_arg'"
2810 { ac_configure_args0=; unset ac_configure_args0;}
2811 { ac_configure_args1=; unset ac_configure_args1;}
2813 # When interrupted or exit'd, cleanup temporary files, and complete
2814 # config.log. We remove comments because anyway the quotes in there
2815 # would cause problems or look ugly.
2816 # WARNING: Use '\'' to represent an apostrophe within the trap.
2817 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2818 trap 'exit_status=$?
2819 # Save into config.log some information that might help in debugging.
2823 $as_echo "## ---------------- ##
2824 ## Cache variables. ##
2825 ## ---------------- ##"
2827 # The following way of writing the cache mishandles newlines in values,
2829 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2830 eval ac_val=\$$ac_var
2834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2838 _ | IFS | as_nl) ;; #(
2839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2840 *) { eval $ac_var=; unset $ac_var;} ;;
2845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2846 *${as_nl}ac_space=\ *)
2848 "s/'\''/'\''\\\\'\'''\''/g;
2849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2859 $as_echo "## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##"
2863 for ac_var in $ac_subst_vars
2865 eval ac_val=\$$ac_var
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2869 $as_echo "$ac_var='\''$ac_val'\''"
2873 if test -n "$ac_subst_files"; then
2874 $as_echo "## ------------------- ##
2875 ## File substitutions. ##
2876 ## ------------------- ##"
2878 for ac_var in $ac_subst_files
2880 eval ac_val=\$$ac_var
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2884 $as_echo "$ac_var='\''$ac_val'\''"
2889 if test -s confdefs.h; then
2890 $as_echo "## ----------- ##
2897 test "$ac_signal" != 0 &&
2898 $as_echo "$as_me: caught signal $ac_signal"
2899 $as_echo "$as_me: exit $exit_status"
2901 rm -f core *.core core.conftest.* &&
2902 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2905 for ac_signal in 1 2 13 15; do
2906 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2910 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2911 rm -f -r conftest* confdefs.h
2913 $as_echo "/* confdefs.h */" > confdefs.h
2915 # Predefined preprocessor variables.
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_NAME "$PACKAGE_NAME"
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_STRING "$PACKAGE_STRING"
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_URL "$PACKAGE_URL"
2942 # Let the site file select an alternate cache file if it wants to.
2943 # Prefer an explicitly selected file to automatically selected ones.
2946 if test -n "$CONFIG_SITE"; then
2947 # We do not want a PATH search for config.site.
2948 case $CONFIG_SITE in #((
2949 -*) ac_site_file1=./$CONFIG_SITE;;
2950 */*) ac_site_file1=$CONFIG_SITE;;
2951 *) ac_site_file1=./$CONFIG_SITE;;
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2962 test "x$ac_site_file" = xNONE && continue
2963 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2968 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "failed to load site script $ac_site_file
2971 See \`config.log' for more details" "$LINENO" 5; }
2975 if test -r "$cache_file"; then
2976 # Some versions of bash will fail to source /dev/null (special files
2977 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2978 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2980 $as_echo "$as_me: loading cache $cache_file" >&6;}
2982 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2983 *) . "./$cache_file";;
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2988 $as_echo "$as_me: creating cache $cache_file" >&6;}
2992 gt_needs="$gt_needs "
2993 # Check that the precious variables saved in the cache have kept the same
2995 ac_cache_corrupted=false
2996 for ac_var in $ac_precious_vars; do
2997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2998 eval ac_new_set=\$ac_env_${ac_var}_set
2999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3000 eval ac_new_val=\$ac_env_${ac_var}_value
3001 case $ac_old_set,$ac_new_set in
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3005 ac_cache_corrupted=: ;;
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3009 ac_cache_corrupted=: ;;
3012 if test "x$ac_old_val" != "x$ac_new_val"; then
3013 # differences in whitespace do not lead to failure.
3014 ac_old_val_w=`echo x $ac_old_val`
3015 ac_new_val_w=`echo x $ac_new_val`
3016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3019 ac_cache_corrupted=:
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3023 eval $ac_var=\$ac_old_val
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3031 # Pass precious variables to config.status.
3032 if test "$ac_new_set" = set; then
3034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3035 *) ac_arg=$ac_var=$ac_new_val ;;
3037 case " $ac_configure_args " in
3038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3039 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3043 if $ac_cache_corrupted; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3048 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3050 ## -------------------- ##
3051 ## Main body of script. ##
3052 ## -------------------- ##
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 SCI_BUILDDIR="`pwd`"
3065 SCI_SRCDIR="$srcdir"
3066 SCI_SRCDIR_FULL="`cd $SCI_SRCDIR && pwd`"
3068 SCILAB_VERSION_MAJOR=5
3069 SCILAB_VERSION_MINOR=4
3070 SCILAB_VERSION_MAINTENANCE=1
3076 SCILAB_LIBRARY_VERSION=$SCILAB_VERSION_MAJOR:$SCILAB_VERSION_MINOR:$SCILAB_VERSION_MAINTENANCE
3079 SCILAB_BINARY_VERSION=$SCILAB_VERSION_MAJOR.$SCILAB_VERSION_MINOR.$SCILAB_VERSION_MAINTENANCE
3082 #shared library versioning
3083 #GENERIC_LIBRARY_VERSION=1:2:0
3087 # current:revision:age
3089 # | | +- increment if interfaces have been added
3090 # | | set to zero if interfaces have been removed
3092 # | +- increment if source code has changed
3093 # | set to zero if current is incremented
3094 # +- increment if interfaces have been added, removed or changed
3096 # Check if we have a space in the path to the source tree
3097 SPACE_IN_PATH=`echo "$SCI_SRCDIR_FULL"|grep " " > /dev/null; echo $?`
3098 if test "$SPACE_IN_PATH" = "0"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3100 $as_echo "$as_me: WARNING: =====================================" >&2;}
3101 { $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
3102 $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;}
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: =====================================" >&5
3104 $as_echo "$as_me: WARNING: =====================================" >&2;}
3109 for ac_dir in config "$srcdir"/config; do
3110 if test -f "$ac_dir/install-sh"; then
3112 ac_install_sh="$ac_aux_dir/install-sh -c"
3114 elif test -f "$ac_dir/install.sh"; then
3116 ac_install_sh="$ac_aux_dir/install.sh -c"
3118 elif test -f "$ac_dir/shtool"; then
3120 ac_install_sh="$ac_aux_dir/shtool install -c"
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3137 ac_config_headers="$ac_config_headers modules/core/includes/machine.h"
3141 # expand $ac_aux_dir to an absolute path
3142 am_aux_dir=`cd $ac_aux_dir && pwd`
3144 if test x"${install_sh}" != xset; then
3147 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3149 install_sh="\${SHELL} $am_aux_dir/install-sh"
3153 # Installed binaries are usually stripped using `strip' when the user
3154 # run `make install-strip'. However `strip' might not be the right
3155 # tool to use in cross-compilation environments, therefore Automake
3156 # will honor the `STRIP' environment variable to overrule this program.
3157 if test "$cross_compiling" != no; then
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}strip; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_STRIP+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$STRIP"; then
3167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 STRIP=$ac_cv_prog_STRIP
3187 if test -n "$STRIP"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3189 $as_echo "$STRIP" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$ac_cv_prog_STRIP"; then
3199 # Extract the first word of "strip", so it can be a program name with args.
3200 set dummy strip; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -n "$ac_ct_STRIP"; then
3207 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_STRIP="strip"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3227 if test -n "$ac_ct_STRIP"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3229 $as_echo "$ac_ct_STRIP" >&6; }
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3235 if test "x$ac_ct_STRIP" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3247 STRIP="$ac_cv_prog_STRIP"
3251 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3254 $as_echo_n "checking whether ln -s works... " >&6; }
3256 if test "$LN_S" = "ln -s"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3261 $as_echo "no, using $LN_S" >&6; }
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301 $as_echo "$CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3309 if test -z "$ac_cv_prog_CC"; then
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 $as_echo "$ac_ct_CC" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3347 if test "x$ac_ct_CC" = x; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354 ac_tool_warned=yes ;;
3362 if test -z "$CC"; then
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}cc; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="${ac_tool_prefix}cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3403 if test -z "$CC"; then
3404 # Extract the first word of "cc", so it can be a program name with args.
3405 set dummy cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423 ac_prog_rejected=yes
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 if test $ac_prog_rejected = yes; then
3435 # We found a bogon in the path, so make sure we never use it.
3436 set dummy $ac_cv_prog_CC
3438 if test $# != 0; then
3439 # We chose a different compiler from the bogus one.
3440 # However, it has the same basename, so the bogon will be chosen
3441 # first if we set CC to just the basename; use the full file name.
3443 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$CC"; then
3460 if test -n "$ac_tool_prefix"; then
3461 for ac_prog in cl.exe
3463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3500 test -n "$CC" && break
3503 if test -z "$CC"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_prog", so it can be a program name with args.
3508 set dummy $ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$ac_ct_CC"; then
3515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_ac_ct_CC="$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 $as_echo "$ac_ct_CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$ac_ct_CC" && break
3547 if test "x$ac_ct_CC" = x; then
3550 case $cross_compiling:$ac_tool_warned in
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565 as_fn_error $? "no acceptable C compiler found in \$PATH
3566 See \`config.log' for more details" "$LINENO" 5; }
3568 # Provide some information about the compiler.
3569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3572 for ac_option in --version -v -V -qversion; do
3573 { { ac_try="$ac_compiler $ac_option >&5"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3582 if test -s conftest.err; then
3584 ... rest of stderr output deleted ...
3585 10q' conftest.err >conftest.er1
3586 cat conftest.er1 >&5
3588 rm -f conftest.er1 conftest.err
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3604 ac_clean_files_save=$ac_clean_files
3605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606 # Try to create an executable without -o first, disregard a.out.
3607 # It will help us diagnose broken compilers, and finding out an intuition
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613 # The possible output files:
3614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3617 for ac_file in $ac_files
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 if { { ac_try="$ac_link_default"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_link_default") 2>&5
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; then :
3637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3640 # so that the user can short-circuit this test for compilers unknown to
3642 for ac_file in $ac_files ''
3644 test -f "$ac_file" || continue
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3649 # We found the default executable, but exeext='' is most
3653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 # We set ac_cv_exeext here because the later test for it is not
3658 # safe: cross compilers may not add the suffix if given an `-o'
3659 # argument, so we may need to know it at that point already.
3660 # Even if this section looks crufty: it has the advantage of
3667 test "$ac_cv_exeext" = no && ac_cv_exeext=
3672 if test -z "$ac_file"; then :
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error 77 "C compiler cannot create executables
3681 See \`config.log' for more details" "$LINENO" 5; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687 $as_echo_n "checking for C compiler default output file name... " >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689 $as_echo "$ac_file" >&6; }
3690 ac_exeext=$ac_cv_exeext
3692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693 ac_clean_files=$ac_clean_files_save
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { { ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_link") 2>&5
3705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706 test $ac_status = 0; }; then :
3707 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 for ac_file in conftest.exe conftest conftest.*; do
3712 test -f "$ac_file" || continue
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details" "$LINENO" 5; }
3726 rm -f conftest conftest$ac_cv_exeext
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728 $as_echo "$ac_cv_exeext" >&6; }
3730 rm -f conftest.$ac_ext
3731 EXEEXT=$ac_cv_exeext
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3739 FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3746 ac_clean_files="$ac_clean_files conftest.out"
3747 # Check that the compiler produces executables we can run. If not, either
3748 # the compiler is broken, or we cross compile.
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750 $as_echo_n "checking whether we are cross compiling... " >&6; }
3751 if test "$cross_compiling" != yes; then
3752 { { ac_try="$ac_link"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759 (eval "$ac_link") 2>&5
3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762 test $ac_status = 0; }
3763 if { ac_try='./conftest$ac_cv_exeext'
3764 { { case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_try") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; }; then
3776 if test "$cross_compiling" = maybe; then
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error $? "cannot run C compiled programs.
3782 If you meant to cross compile, use \`--host'.
3783 See \`config.log' for more details" "$LINENO" 5; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788 $as_echo "$cross_compiling" >&6; }
3790 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791 ac_clean_files=$ac_clean_files_save
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793 $as_echo_n "checking for suffix of object files... " >&6; }
3794 if ${ac_cv_objext+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 rm -f conftest.o conftest.obj
3809 if { { ac_try="$ac_compile"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compile") 2>&5
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 for ac_file in conftest.o conftest.obj conftest.*; do
3821 test -f "$ac_file" || continue;
3823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of object files: cannot compile
3835 See \`config.log' for more details" "$LINENO" 5; }
3837 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840 $as_echo "$ac_cv_objext" >&6; }
3841 OBJEXT=$ac_cv_objext
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845 if ${ac_cv_c_compiler_gnu+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3862 if ac_fn_c_try_compile "$LINENO"; then :
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873 if test $ac_compiler_gnu = yes; then
3878 ac_test_CFLAGS=${CFLAGS+set}
3879 ac_save_CFLAGS=$CFLAGS
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3882 if ${ac_cv_prog_cc_g+:} false; then :
3883 $as_echo_n "(cached) " >&6
3885 ac_save_c_werror_flag=$ac_c_werror_flag
3886 ac_c_werror_flag=yes
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3915 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_c_werror_flag=$ac_save_c_werror_flag
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3931 if ac_fn_c_try_compile "$LINENO"; then :
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 ac_c_werror_flag=$ac_save_c_werror_flag
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942 $as_echo "$ac_cv_prog_cc_g" >&6; }
3943 if test "$ac_test_CFLAGS" = set; then
3944 CFLAGS=$ac_save_CFLAGS
3945 elif test $ac_cv_prog_cc_g = yes; then
3946 if test "$GCC" = yes; then
3952 if test "$GCC" = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960 if ${ac_cv_prog_cc_c89+:} false; then :
3961 $as_echo_n "(cached) " >&6
3963 ac_cv_prog_cc_c89=no
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3984 s = g (p, va_arg (v,int));
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3990 function prototypes and stuff, but not '\xHH' hex character constants.
3991 These don't provoke an error unfortunately, instead are silently treated
3992 as 'x'. The following induces an error, until -std is added to get
3993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3994 array size at least. It's necessary to write '\x00'==0 to get something
3995 that's true only with -std. */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999 inside strings and character constants. */
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 CC="$ac_save_CC $ac_arg"
4021 if ac_fn_c_try_compile "$LINENO"; then :
4022 ac_cv_prog_cc_c89=$ac_arg
4024 rm -f core conftest.err conftest.$ac_objext
4025 test "x$ac_cv_prog_cc_c89" != "xno" && break
4027 rm -f conftest.$ac_ext
4032 case "x$ac_cv_prog_cc_c89" in
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4035 $as_echo "none needed" >&6; } ;;
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038 $as_echo "unsupported" >&6; } ;;
4040 CC="$CC $ac_cv_prog_cc_c89"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4042 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4044 if test "x$ac_cv_prog_cc_c89" != xno; then :
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 # Check whether --enable-largefile was given.
4057 if test "${enable_largefile+set}" = set; then :
4058 enableval=$enable_largefile;
4061 if test "$enable_largefile" != no; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4064 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4065 if ${ac_cv_sys_largefile_CC+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 ac_cv_sys_largefile_CC=no
4069 if test "$GCC" != yes; then
4072 # IRIX 6.2 and later do not support large files by default,
4073 # so use the C compiler's -n32 option if that helps.
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <sys/types.h>
4077 /* Check that off_t can represent 2**63 - 1 correctly.
4078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4079 since some C++ compilers masquerading as C compilers
4080 incorrectly reject 9223372036854775807. */
4081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4083 && LARGE_OFF_T % 2147483647 == 1)
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_cv_sys_largefile_CC=' -n32'; break
4101 rm -f core conftest.err conftest.$ac_objext
4105 rm -f conftest.$ac_ext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4110 if test "$ac_cv_sys_largefile_CC" != no; then
4111 CC=$CC$ac_cv_sys_largefile_CC
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4116 if ${ac_cv_sys_file_offset_bits+:} false; then :
4117 $as_echo_n "(cached) " >&6
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/types.h>
4123 /* Check that off_t can represent 2**63 - 1 correctly.
4124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4125 since some C++ compilers masquerading as C compilers
4126 incorrectly reject 9223372036854775807. */
4127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4129 && LARGE_OFF_T % 2147483647 == 1)
4139 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_sys_file_offset_bits=no; break
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4145 #define _FILE_OFFSET_BITS 64
4146 #include <sys/types.h>
4147 /* Check that off_t can represent 2**63 - 1 correctly.
4148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4149 since some C++ compilers masquerading as C compilers
4150 incorrectly reject 9223372036854775807. */
4151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4153 && LARGE_OFF_T % 2147483647 == 1)
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_sys_file_offset_bits=64; break
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_cv_sys_file_offset_bits=unknown
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4172 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4173 case $ac_cv_sys_file_offset_bits in #(
4176 cat >>confdefs.h <<_ACEOF
4177 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4182 if test $ac_cv_sys_file_offset_bits = unknown; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4184 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4185 if ${ac_cv_sys_large_files+:} false; then :
4186 $as_echo_n "(cached) " >&6
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <sys/types.h>
4192 /* Check that off_t can represent 2**63 - 1 correctly.
4193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4194 since some C++ compilers masquerading as C compilers
4195 incorrectly reject 9223372036854775807. */
4196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4198 && LARGE_OFF_T % 2147483647 == 1)
4208 if ac_fn_c_try_compile "$LINENO"; then :
4209 ac_cv_sys_large_files=no; break
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4214 #define _LARGE_FILES 1
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_sys_large_files=1; break
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_sys_large_files=unknown
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4241 $as_echo "$ac_cv_sys_large_files" >&6; }
4242 case $ac_cv_sys_large_files in #(
4245 cat >>confdefs.h <<_ACEOF
4246 #define _LARGE_FILES $ac_cv_sys_large_files
4256 echo "ac: $ac_cv_sys_file_offset_bits"
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE64_SOURCE value needed for large files" >&5
4258 $as_echo_n "checking for _LARGEFILE64_SOURCE value needed for large files... " >&6; }
4259 if ${largefile64_cv_source+:} false; then :
4260 $as_echo_n "(cached) " >&6
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4266 #include <sys/types.h>
4267 #include <sys/stat.h>
4274 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4280 if ac_fn_c_try_compile "$LINENO"; then :
4282 largefile64_source="no"
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4289 #define _LARGEFILE64_SOURCE
4290 #include <sys/types.h>
4291 #include <sys/stat.h>
4298 int fd = open ("__o_largefile", O_CREAT | O_RDWR | O_LARGEFILE, 0644);
4304 if ac_fn_c_try_compile "$LINENO"; then :
4306 largefile64_source="yes"
4310 largefile64_source="unknown"
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $largefile64_cv_source" >&5
4320 $as_echo "$largefile64_cv_source" >&6; }
4322 if test "x$largefile64_source" = "xyes"; then
4323 LARGEFILE_CFLAGS="-D_LARGEFILE64_SOURCE"
4324 enable_largefile="yes"
4325 elif test "x$largefile64_source" = "xunknown"; then
4327 $as_echo "#define O_LARGEFILE 0" >>confdefs.h
4331 if test -n "$ac_cv_sys_large_files" -a "x$ac_cv_sys_large_files" != "xno"; then
4332 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGE_FILES"
4333 enable_largefile="yes"
4336 if test "x$ac_cv_sys_file_offset_bits" != "xno"; then
4337 LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
4338 enable_largefile="yes"
4343 # In order to be able to change the scilab directory
4344 # See http://wiki.debian.org/RpathIssue
4345 # Find a good install program. We prefer a C program (faster),
4346 # so one script is as good as another. But avoid the broken or
4347 # incompatible versions:
4348 # SysV /etc/install, /usr/sbin/install
4349 # SunOS /usr/etc/install
4350 # IRIX /sbin/install
4352 # AmigaOS /C/install, which installs bootblocks on floppy discs
4353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4356 # OS/2's system install, which has a completely different semantic
4357 # ./install, which can be erroneously created by make from ./install.sh.
4358 # Reject install programs that cannot install multiple files.
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4361 if test -z "$INSTALL"; then
4362 if ${ac_cv_path_install+:} false; then :
4363 $as_echo_n "(cached) " >&6
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 # Account for people who put trailing slashes in PATH elements.
4371 case $as_dir/ in #((
4372 ./ | .// | /[cC]/* | \
4373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4377 # OSF1 and SCO ODT 3.0 have their own names for install.
4378 # Don't use installbsd from OSF since it installs stuff as root
4380 for ac_prog in ginstall scoinst install; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4383 if test $ac_prog = install &&
4384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385 # AIX install. It has an incompatible calling convention.
4387 elif test $ac_prog = install &&
4388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389 # program-specific install script used by HP pwplus--don't use.
4392 rm -rf conftest.one conftest.two conftest.dir
4393 echo one > conftest.one
4394 echo two > conftest.two
4396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4397 test -s conftest.one && test -s conftest.two &&
4398 test -s conftest.dir/conftest.one &&
4399 test -s conftest.dir/conftest.two
4401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4414 rm -rf conftest.one conftest.two conftest.dir
4417 if test "${ac_cv_path_install+set}" = set; then
4418 INSTALL=$ac_cv_path_install
4420 # As a last resort, use the slow shell script. Don't cache a
4421 # value for INSTALL within a source directory, because that will
4422 # break other packages using the cache if that directory is
4423 # removed, or if the value is a relative name.
4424 INSTALL=$ac_install_sh
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4428 $as_echo "$INSTALL" >&6; }
4430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4431 # It thinks the first close brace ends the variable substitution.
4432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4438 # Make sure we can run config.sub.
4439 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4440 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4443 $as_echo_n "checking build system type... " >&6; }
4444 if ${ac_cv_build+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 ac_build_alias=$build_alias
4448 test "x$ac_build_alias" = x &&
4449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4450 test "x$ac_build_alias" = x &&
4451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4457 $as_echo "$ac_cv_build" >&6; }
4458 case $ac_cv_build in
4460 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4463 ac_save_IFS=$IFS; IFS='-'
4469 # Remember, the first character of IFS is used to create $*,
4470 # except with old shells:
4473 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4477 $as_echo_n "checking host system type... " >&6; }
4478 if ${ac_cv_host+:} false; then :
4479 $as_echo_n "(cached) " >&6
4481 if test "x$host_alias" = x; then
4482 ac_cv_host=$ac_cv_build
4484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4490 $as_echo "$ac_cv_host" >&6; }
4493 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4496 ac_save_IFS=$IFS; IFS='-'
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4506 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4510 # Check whether --with-gnu-ld was given.
4511 if test "${with_gnu_ld+set}" = set; then :
4512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4517 # Prepare PATH_SEPARATOR.
4518 # The user is always right.
4519 if test "${PATH_SEPARATOR+set}" != set; then
4520 echo "#! /bin/sh" >conf$$.sh
4521 echo "exit 0" >>conf$$.sh
4523 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4531 if test "$GCC" = yes; then
4532 # Check if gcc -print-prog-name=ld gives a path.
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4534 $as_echo_n "checking for ld used by GCC... " >&6; }
4537 # gcc leaves a trailing carriage return which upsets mingw
4538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4543 # Accept absolute paths.
4544 [\\/]* | [A-Za-z]:[\\/]*)
4545 re_direlt='/[^/][^/]*/\.\./'
4546 # Canonicalize the path of ld
4547 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4548 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4549 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4551 test -z "$LD" && LD="$ac_prog"
4554 # If it fails, then pretend we aren't using GCC.
4558 # If it is relative, then search for the first ld in PATH.
4562 elif test "$with_gnu_ld" = yes; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4564 $as_echo_n "checking for GNU ld... " >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4567 $as_echo_n "checking for non-GNU ld... " >&6; }
4569 if ${acl_cv_path_LD+:} false; then :
4570 $as_echo_n "(cached) " >&6
4572 if test -z "$LD"; then
4573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4574 for ac_dir in $PATH; do
4575 test -z "$ac_dir" && ac_dir=.
4576 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4577 acl_cv_path_LD="$ac_dir/$ac_prog"
4578 # Check to see if the program is GNU ld. I'd rather use --version,
4579 # but apparently some GNU ld's only accept -v.
4580 # Break only if it was the GNU/non-GNU ld that we prefer.
4581 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4582 *GNU* | *'with BFD'*)
4583 test "$with_gnu_ld" != no && break ;;
4585 test "$with_gnu_ld" != yes && break ;;
4591 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4595 LD="$acl_cv_path_LD"
4596 if test -n "$LD"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4598 $as_echo "$LD" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4603 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4605 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4606 if ${acl_cv_prog_gnu_ld+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4610 case `$LD -v 2>&1 </dev/null` in
4611 *GNU* | *'with BFD'*)
4612 acl_cv_prog_gnu_ld=yes ;;
4614 acl_cv_prog_gnu_ld=no ;;
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4618 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4619 with_gnu_ld=$acl_cv_prog_gnu_ld
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library path variable" >&5
4624 $as_echo_n "checking for shared library path variable... " >&6; }
4625 if ${acl_cv_libpath+:} false; then :
4626 $as_echo_n "(cached) " >&6
4630 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
4633 acl_cv_libpath=${acl_cv_shlibpath_var:-none}
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libpath" >&5
4637 $as_echo "$acl_cv_libpath" >&6; }
4638 shlibpath_var="$acl_cv_shlibpath_var"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
4642 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
4643 # Check whether --enable-relocatable was given.
4644 if test "${enable_relocatable+set}" = set; then :
4645 enableval=$enable_relocatable; if test "$enableval" != no; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
4657 $as_echo "$RELOCATABLE" >&6; }
4661 if test "X$prefix" = "XNONE"; then
4662 reloc_final_prefix="$ac_default_prefix"
4664 reloc_final_prefix="$prefix"
4667 cat >>confdefs.h <<_ACEOF
4668 #define INSTALLPREFIX "${reloc_final_prefix}"
4674 ac_cpp='$CPP $CPPFLAGS'
4675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4680 # On Suns, sometimes $CPP names a directory.
4681 if test -n "$CPP" && test -d "$CPP"; then
4684 if test -z "$CPP"; then
4685 if ${ac_cv_prog_CPP+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 # Double quotes because CPP needs to be expanded
4689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4692 for ac_c_preproc_warn_flag in '' yes
4694 # Use a header file that comes with gcc, so configuring glibc
4695 # with a fresh cross-compiler works.
4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 # <limits.h> exists even on freestanding compilers.
4698 # On the NeXT, cc -E runs the code through the compiler's parser,
4699 # not just through cpp. "Syntax error" is here to catch this case.
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4703 # include <limits.h>
4705 # include <assert.h>
4709 if ac_fn_c_try_cpp "$LINENO"; then :
4712 # Broken: fails on valid input.
4715 rm -f conftest.err conftest.i conftest.$ac_ext
4717 # OK, works on sane cases. Now check whether nonexistent headers
4718 # can be detected and how.
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <ac_nonexistent.h>
4723 if ac_fn_c_try_cpp "$LINENO"; then :
4724 # Broken: success on invalid input.
4727 # Passes both tests.
4731 rm -f conftest.err conftest.i conftest.$ac_ext
4734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4735 rm -f conftest.i conftest.err conftest.$ac_ext
4736 if $ac_preproc_ok; then :
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4749 $as_echo "$CPP" >&6; }
4751 for ac_c_preproc_warn_flag in '' yes
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4762 # include <limits.h>
4764 # include <assert.h>
4768 if ac_fn_c_try_cpp "$LINENO"; then :
4771 # Broken: fails on valid input.
4774 rm -f conftest.err conftest.i conftest.$ac_ext
4776 # OK, works on sane cases. Now check whether nonexistent headers
4777 # can be detected and how.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <ac_nonexistent.h>
4782 if ac_fn_c_try_cpp "$LINENO"; then :
4783 # Broken: success on invalid input.
4786 # Passes both tests.
4790 rm -f conftest.err conftest.i conftest.$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.i conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then :
4798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4800 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4801 See \`config.log' for more details" "$LINENO" 5; }
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4812 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4813 if ${ac_cv_path_GREP+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -z "$GREP"; then
4817 ac_path_GREP_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 test -z "$as_dir" && as_dir=.
4824 for ac_prog in grep ggrep; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4827 as_fn_executable_p "$ac_path_GREP" || continue
4828 # Check for GNU ac_path_GREP and select it if it is found.
4829 # Check for GNU $ac_path_GREP
4830 case `"$ac_path_GREP" --version 2>&1` in
4832 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4835 $as_echo_n 0123456789 >"conftest.in"
4838 cat "conftest.in" "conftest.in" >"conftest.tmp"
4839 mv "conftest.tmp" "conftest.in"
4840 cp "conftest.in" "conftest.nl"
4841 $as_echo 'GREP' >> "conftest.nl"
4842 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844 as_fn_arith $ac_count + 1 && ac_count=$as_val
4845 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4846 # Best one so far, save it but keep looking for a better one
4847 ac_cv_path_GREP="$ac_path_GREP"
4848 ac_path_GREP_max=$ac_count
4850 # 10*(2^10) chars as input seems more than enough
4851 test $ac_count -gt 10 && break
4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 $ac_path_GREP_found && break 3
4861 if test -z "$ac_cv_path_GREP"; then
4862 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865 ac_cv_path_GREP=$GREP
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4870 $as_echo "$ac_cv_path_GREP" >&6; }
4871 GREP="$ac_cv_path_GREP"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4875 $as_echo_n "checking for egrep... " >&6; }
4876 if ${ac_cv_path_EGREP+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4880 then ac_cv_path_EGREP="$GREP -E"
4882 if test -z "$EGREP"; then
4883 ac_path_EGREP_found=false
4884 # Loop through the user's path and test for each of PROGNAME-LIST
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889 test -z "$as_dir" && as_dir=.
4890 for ac_prog in egrep; do
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4893 as_fn_executable_p "$ac_path_EGREP" || continue
4894 # Check for GNU ac_path_EGREP and select it if it is found.
4895 # Check for GNU $ac_path_EGREP
4896 case `"$ac_path_EGREP" --version 2>&1` in
4898 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4901 $as_echo_n 0123456789 >"conftest.in"
4904 cat "conftest.in" "conftest.in" >"conftest.tmp"
4905 mv "conftest.tmp" "conftest.in"
4906 cp "conftest.in" "conftest.nl"
4907 $as_echo 'EGREP' >> "conftest.nl"
4908 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4910 as_fn_arith $ac_count + 1 && ac_count=$as_val
4911 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4912 # Best one so far, save it but keep looking for a better one
4913 ac_cv_path_EGREP="$ac_path_EGREP"
4914 ac_path_EGREP_max=$ac_count
4916 # 10*(2^10) chars as input seems more than enough
4917 test $ac_count -gt 10 && break
4919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4922 $ac_path_EGREP_found && break 3
4927 if test -z "$ac_cv_path_EGREP"; then
4928 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 ac_cv_path_EGREP=$EGREP
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4937 $as_echo "$ac_cv_path_EGREP" >&6; }
4938 EGREP="$ac_cv_path_EGREP"
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4942 $as_echo_n "checking for ANSI C header files... " >&6; }
4943 if ${ac_cv_header_stdc+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4961 if ac_fn_c_try_compile "$LINENO"; then :
4962 ac_cv_header_stdc=yes
4964 ac_cv_header_stdc=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968 if test $ac_cv_header_stdc = yes; then
4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4976 $EGREP "memchr" >/dev/null 2>&1; then :
4979 ac_cv_header_stdc=no
4985 if test $ac_cv_header_stdc = yes; then
4986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4993 $EGREP "free" >/dev/null 2>&1; then :
4996 ac_cv_header_stdc=no
5002 if test $ac_cv_header_stdc = yes; then
5003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5004 if test "$cross_compiling" = yes; then :
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5011 #if ((' ' & 0x0FF) == 0x020)
5012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5015 # define ISLOWER(c) \
5016 (('a' <= (c) && (c) <= 'i') \
5017 || ('j' <= (c) && (c) <= 'r') \
5018 || ('s' <= (c) && (c) <= 'z'))
5019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5027 for (i = 0; i < 256; i++)
5028 if (XOR (islower (i), ISLOWER (i))
5029 || toupper (i) != TOUPPER (i))
5034 if ac_fn_c_try_run "$LINENO"; then :
5037 ac_cv_header_stdc=no
5039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5040 conftest.$ac_objext conftest.beam conftest.$ac_ext
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5046 $as_echo "$ac_cv_header_stdc" >&6; }
5047 if test $ac_cv_header_stdc = yes; then
5049 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5053 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5055 inttypes.h stdint.h unistd.h
5057 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5058 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5061 cat >>confdefs.h <<_ACEOF
5062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5077 use_elf_origin_trick=no
5078 if test $RELOCATABLE = yes; then
5079 # --enable-relocatable implies --disable-rpath
5082 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
5084 for ac_header in unistd.h mach-o/dyld.h
5086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5089 cat >>confdefs.h <<_ACEOF
5090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5097 for ac_func in _NSGetExecutablePath
5099 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
5100 if test "x$ac_cv_func__NSGetExecutablePath" = xyes; then :
5101 cat >>confdefs.h <<_ACEOF
5102 #define HAVE__NSGETEXECUTABLEPATH 1
5109 mingw*) is_noop=yes ;;
5110 linux*) use_elf_origin_trick=yes ;;
5112 if test $is_noop = yes; then
5113 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
5115 if test $use_elf_origin_trick = yes; then
5116 case "$ac_aux_dir" in
5117 /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
5118 *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
5120 SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
5122 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\""
5123 case "$ac_aux_dir" in
5124 /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
5125 *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
5133 if test $is_noop = yes || test $use_elf_origin_trick = yes; then
5134 RELOCATABLE_VIA_LD_TRUE=
5135 RELOCATABLE_VIA_LD_FALSE='#'
5137 RELOCATABLE_VIA_LD_TRUE='#'
5138 RELOCATABLE_VIA_LD_FALSE=
5144 if test $RELOCATABLE = yes; then
5145 case " $LIBOBJS " in
5146 *" relocatable.$ac_objext "* ) ;;
5147 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
5155 if test "X$prefix" = "XNONE"; then
5156 reloc_final_prefix="$ac_default_prefix"
5158 reloc_final_prefix="$prefix"
5161 cat >>confdefs.h <<_ACEOF
5162 #define INSTALLPREFIX "${reloc_final_prefix}"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5169 $as_echo_n "checking for shared library run path origin... " >&6; }
5170 if ${acl_cv_rpath+:} false; then :
5171 $as_echo_n "(cached) " >&6
5174 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5175 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5182 $as_echo "$acl_cv_rpath" >&6; }
5184 acl_libext="$acl_cv_libext"
5185 acl_shlibext="$acl_cv_shlibext"
5186 acl_libname_spec="$acl_cv_libname_spec"
5187 acl_library_names_spec="$acl_cv_library_names_spec"
5188 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5189 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5190 acl_hardcode_direct="$acl_cv_hardcode_direct"
5191 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5192 # Check whether --enable-rpath was given.
5193 if test "${enable_rpath+set}" = set; then :
5194 enableval=$enable_rpath; :
5201 # If configure detect that timestamp changed,
5202 # it tries to rebuild configure & makefile which can be a painmaker
5203 # if the version is different
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5206 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5207 # Check whether --enable-maintainer-mode was given.
5208 if test "${enable_maintainer_mode+set}" = set; then :
5209 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5211 USE_MAINTAINER_MODE=no
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5215 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5216 if test $USE_MAINTAINER_MODE = yes; then
5217 MAINTAINER_MODE_TRUE=
5218 MAINTAINER_MODE_FALSE='#'
5220 MAINTAINER_MODE_TRUE='#'
5221 MAINTAINER_MODE_FALSE=
5224 MAINT=$MAINTAINER_MODE_TRUE
5228 am__api_version='1.11'
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5231 $as_echo_n "checking whether build environment is sane... " >&6; }
5234 echo timestamp > conftest.file
5235 # Reject unsafe characters in $srcdir or the absolute working directory
5236 # name. Accept space and tab only in the latter.
5240 *[\\\"\#\$\&\'\`$am_lf]*)
5241 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5244 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5245 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5248 # Do `set' in a subshell so we don't clobber the current shell's
5249 # arguments. Must try -L first in case configure is actually a
5250 # symlink; some systems play weird games with the mod time of symlinks
5251 # (eg FreeBSD returns the mod time of the symlink's containing
5254 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5255 if test "$*" = "X"; then
5257 set X `ls -t "$srcdir/configure" conftest.file`
5260 if test "$*" != "X $srcdir/configure conftest.file" \
5261 && test "$*" != "X conftest.file $srcdir/configure"; then
5263 # If neither matched, then we have a broken ls. This can happen
5264 # if, for instance, CONFIG_SHELL is bash and it inherits a
5265 # broken ls alias from the environment. This has actually
5266 # happened. Such a system could not be considered "sane".
5267 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5268 alias in your environment" "$LINENO" 5
5271 test "$2" = conftest.file
5277 as_fn_error $? "newly created file is older than distributed files!
5278 Check your system clock" "$LINENO" 5
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5281 $as_echo "yes" >&6; }
5282 test "$program_prefix" != NONE &&
5283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5284 # Use a double $ so make ignores it.
5285 test "$program_suffix" != NONE &&
5286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5287 # Double any \ or $.
5288 # By default was `s,x,x', remove it if useless.
5289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5292 if test x"${MISSING+set}" != xset; then
5295 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5297 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5300 # Use eval to expand $SHELL
5301 if eval "$MISSING --run true"; then
5302 am_missing_run="$MISSING --run "
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
5306 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5310 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5311 if test -z "$MKDIR_P"; then
5312 if ${ac_cv_path_mkdir+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5319 test -z "$as_dir" && as_dir=.
5320 for ac_prog in mkdir gmkdir; do
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5323 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5324 'mkdir (GNU coreutils) '* | \
5325 'mkdir (coreutils) '* | \
5326 'mkdir (fileutils) '4.1*)
5327 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5337 test -d ./--version && rmdir ./--version
5338 if test "${ac_cv_path_mkdir+set}" = set; then
5339 MKDIR_P="$ac_cv_path_mkdir -p"
5341 # As a last resort, use the slow shell script. Don't cache a
5342 # value for MKDIR_P within a source directory, because that will
5343 # break other packages using the cache if that directory is
5344 # removed, or if the value is a relative name.
5345 MKDIR_P="$ac_install_sh -d"
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5349 $as_echo "$MKDIR_P" >&6; }
5353 [\\/$]* | ?:[\\/]*) ;;
5354 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5357 for ac_prog in gawk mawk nawk awk
5359 # Extract the first word of "$ac_prog", so it can be a program name with args.
5360 set dummy $ac_prog; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_AWK+:} false; then :
5364 $as_echo_n "(cached) " >&6
5366 if test -n "$AWK"; then
5367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_AWK="$ac_prog"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 if test -n "$AWK"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5389 $as_echo "$AWK" >&6; }
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5396 test -n "$AWK" && break
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5400 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5402 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5403 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5404 $as_echo_n "(cached) " >&6
5406 cat >conftest.make <<\_ACEOF
5409 @echo '@@@%%%=$(MAKE)=@@@%%%'
5411 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5412 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5414 eval ac_cv_prog_make_${ac_make}_set=yes;;
5416 eval ac_cv_prog_make_${ac_make}_set=no;;
5420 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5422 $as_echo "yes" >&6; }
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 SET_MAKE="MAKE=${MAKE-make}"
5430 rm -rf .tst 2>/dev/null
5431 mkdir .tst 2>/dev/null
5432 if test -d .tst; then
5437 rmdir .tst 2>/dev/null
5439 DEPDIR="${am__leading_dot}deps"
5441 ac_config_commands="$ac_config_commands depfiles"
5444 am_make=${MAKE-make}
5445 cat > confinc << 'END'
5447 @echo this is the am__doit target
5450 # If we don't find an include directive, just comment out the code.
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5452 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5456 # First try GNU make style include.
5457 echo "include confinc" > confmf
5458 # Ignore all kinds of additional output from `make'.
5459 case `$am_make -s -f confmf 2> /dev/null` in #(
5460 *the\ am__doit\ target*)
5466 # Now try BSD make style include.
5467 if test "$am__include" = "#"; then
5468 echo '.include "confinc"' > confmf
5469 case `$am_make -s -f confmf 2> /dev/null` in #(
5470 *the\ am__doit\ target*)
5471 am__include=.include
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5480 $as_echo "$_am_result" >&6; }
5481 rm -f confinc confmf
5483 # Check whether --enable-dependency-tracking was given.
5484 if test "${enable_dependency_tracking+set}" = set; then :
5485 enableval=$enable_dependency_tracking;
5488 if test "x$enable_dependency_tracking" != xno; then
5489 am_depcomp="$ac_aux_dir/depcomp"
5493 if test "x$enable_dependency_tracking" != xno; then
5502 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5503 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5504 # is not polluted with repeated "-I."
5505 am__isrc=' -I$(srcdir)'
5506 # test to see if srcdir already configured
5507 if test -f $srcdir/config.status; then
5508 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5512 # test whether we have cygpath
5513 if test -z "$CYGPATH_W"; then
5514 if (cygpath --version) >/dev/null 2>/dev/null; then
5515 CYGPATH_W='cygpath -w'
5522 # Define the identity of the package.
5527 cat >>confdefs.h <<_ACEOF
5528 #define PACKAGE "$PACKAGE"
5532 cat >>confdefs.h <<_ACEOF
5533 #define VERSION "$VERSION"
5536 # Some tools Automake needs.
5538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5552 # We need awk for the "check" target. The system "awk" is bad on
5554 # Always define AMTAR for backward compatibility. Yes, it's still used
5555 # in the wild :-( We should find a proper way to deprecate it ...
5558 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5563 depcc="$CC" am_compiler_list=
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5566 $as_echo_n "checking dependency style of $depcc... " >&6; }
5567 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5571 # We make a subdir and do the tests there. Otherwise we can end up
5572 # making bogus files that we don't know about and never remove. For
5573 # instance it was reported that on HP-UX the gcc test will end up
5574 # making a dummy file named `D' -- because `-MD' means `put the output
5578 # Copy depcomp to subdir because otherwise we won't find it if we're
5579 # using a relative directory.
5580 cp "$am_depcomp" conftest.dir
5582 # We will build objects and dependencies in a subdirectory because
5583 # it helps to detect inapplicable dependency modes. For instance
5584 # both Tru64's cc and ICC support -MD to output dependencies as a
5585 # side effect of compilation, but ICC will put the dependencies in
5586 # the current directory while Tru64 will put them in the object
5590 am_cv_CC_dependencies_compiler_type=none
5591 if test "$am_compiler_list" = ""; then
5592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5595 case " $depcc " in #(
5596 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5599 for depmode in $am_compiler_list; do
5600 # Setup a source with many dependencies, because some compilers
5601 # like to wrap large dependency lists on column 80 (with \), and
5602 # we should not choose a depcomp mode which is confused by this.
5604 # We need to recreate these files for each test, as the compiler may
5605 # overwrite some of them when testing with obscure command lines.
5606 # This happens at least with the AIX C compiler.
5608 for i in 1 2 3 4 5 6; do
5609 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5610 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5611 # Solaris 8's {/usr,}/bin/sh.
5612 touch sub/conftst$i.h
5614 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5616 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5617 # mode. It turns out that the SunPro C++ compiler does not properly
5618 # handle `-M -o', and we need to detect this. Also, some Intel
5619 # versions had trouble with output in subdirs
5620 am__obj=sub/conftest.${OBJEXT-o}
5621 am__minus_obj="-o $am__obj"
5624 # This depmode causes a compiler race in universal mode.
5625 test "$am__universal" = false || continue
5628 # after this tag, mechanisms are not by side-effect, so they'll
5629 # only be used when explicitly requested
5630 if test "x$enable_dependency_tracking" = xyes; then
5636 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5637 # This compiler won't grok `-c -o', but also, the minuso test has
5638 # not run yet. These depmodes are late enough in the game, and
5639 # so weak that their functioning should not be impacted.
5640 am__obj=conftest.${OBJEXT-o}
5645 if depmode=$depmode \
5646 source=sub/conftest.c object=$am__obj \
5647 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5648 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5649 >/dev/null 2>conftest.err &&
5650 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5651 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5652 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5653 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5654 # icc doesn't choke on unknown options, it will just issue warnings
5655 # or remarks (even with -Werror). So we grep stderr for any message
5656 # that says an option was ignored or not supported.
5657 # When given -MP, icc 7.0 and 7.1 complain thusly:
5658 # icc: Command line warning: ignoring option '-M'; no argument required
5659 # The diagnosis changed in icc 8.0:
5660 # icc: Command line remark: option '-MP' not supported
5661 if (grep 'ignoring option' conftest.err ||
5662 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5663 am_cv_CC_dependencies_compiler_type=$depmode
5672 am_cv_CC_dependencies_compiler_type=none
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5677 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5678 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5681 test "x$enable_dependency_tracking" != xno \
5682 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5684 am__fastdepCC_FALSE='#'
5686 am__fastdepCC_TRUE='#'
5687 am__fastdepCC_FALSE=
5691 # Not using -Werror because we override {C,F}FLAGS in order to disable optimisation
5695 #################################
5696 ## all the --with-* argument help
5697 #################################
5700 # Check whether --enable-debug was given.
5701 if test "${enable_debug+set}" = set; then :
5702 enableval=$enable_debug;
5706 # Check whether --enable-debug-C was given.
5707 if test "${enable_debug_C+set}" = set; then :
5708 enableval=$enable_debug_C;
5712 # Check whether --enable-debug-CXX was given.
5713 if test "${enable_debug_CXX+set}" = set; then :
5714 enableval=$enable_debug_CXX;
5718 # Check whether --enable-debug-java was given.
5719 if test "${enable_debug_java+set}" = set; then :
5720 enableval=$enable_debug_java;
5724 # Check whether --enable-debug-fortran was given.
5725 if test "${enable_debug_fortran+set}" = set; then :
5726 enableval=$enable_debug_fortran;
5730 # Check whether --enable-debug-linker was given.
5731 if test "${enable_debug_linker+set}" = set; then :
5732 enableval=$enable_debug_linker;
5736 # Check whether --enable-code-coverage was given.
5737 if test "${enable_code_coverage+set}" = set; then :
5738 enableval=$enable_code_coverage;
5742 # Check whether --enable-stop-on-warning was given.
5743 if test "${enable_stop_on_warning+set}" = set; then :
5744 enableval=$enable_stop_on_warning;
5749 # Check whether --with-gcc was given.
5750 if test "${with_gcc+set}" = set; then :
5756 # Check whether --with-gfortran was given.
5757 if test "${with_gfortran+set}" = set; then :
5758 withval=$with_gfortran;
5763 # Check whether --with-intelcompilers was given.
5764 if test "${with_intelcompilers+set}" = set; then :
5765 withval=$with_intelcompilers;
5770 # Check whether --with-tk was given.
5771 if test "${with_tk+set}" = set; then :
5777 # Check whether --with-javasci was given.
5778 if test "${with_javasci+set}" = set; then :
5779 withval=$with_javasci;
5783 # Check whether --enable-compilation-tests was given.
5784 if test "${enable_compilation_tests+set}" = set; then :
5785 enableval=$enable_compilation_tests;
5790 # Check whether --with-gui was given.
5791 if test "${with_gui+set}" = set; then :
5796 # Check whether --enable-build-swig was given.
5797 if test "${enable_build_swig+set}" = set; then :
5798 enableval=$enable_build_swig;
5802 # Check whether --enable-build-giws was given.
5803 if test "${enable_build_giws+set}" = set; then :
5804 enableval=$enable_build_giws;
5809 ################################################
5810 ########## compilator & misc programs detection
5811 ################################################
5814 ac_cpp='$CPP $CPPFLAGS'
5815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5820 # On Suns, sometimes $CPP names a directory.
5821 if test -n "$CPP" && test -d "$CPP"; then
5824 if test -z "$CPP"; then
5825 if ${ac_cv_prog_CPP+:} false; then :
5826 $as_echo_n "(cached) " >&6
5828 # Double quotes because CPP needs to be expanded
5829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5832 for ac_c_preproc_warn_flag in '' yes
5834 # Use a header file that comes with gcc, so configuring glibc
5835 # with a fresh cross-compiler works.
5836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5837 # <limits.h> exists even on freestanding compilers.
5838 # On the NeXT, cc -E runs the code through the compiler's parser,
5839 # not just through cpp. "Syntax error" is here to catch this case.
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5843 # include <limits.h>
5845 # include <assert.h>
5849 if ac_fn_c_try_cpp "$LINENO"; then :
5852 # Broken: fails on valid input.
5855 rm -f conftest.err conftest.i conftest.$ac_ext
5857 # OK, works on sane cases. Now check whether nonexistent headers
5858 # can be detected and how.
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5860 /* end confdefs.h. */
5861 #include <ac_nonexistent.h>
5863 if ac_fn_c_try_cpp "$LINENO"; then :
5864 # Broken: success on invalid input.
5867 # Passes both tests.
5871 rm -f conftest.err conftest.i conftest.$ac_ext
5874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5875 rm -f conftest.i conftest.err conftest.$ac_ext
5876 if $ac_preproc_ok; then :
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5889 $as_echo "$CPP" >&6; }
5891 for ac_c_preproc_warn_flag in '' yes
5893 # Use a header file that comes with gcc, so configuring glibc
5894 # with a fresh cross-compiler works.
5895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5896 # <limits.h> exists even on freestanding compilers.
5897 # On the NeXT, cc -E runs the code through the compiler's parser,
5898 # not just through cpp. "Syntax error" is here to catch this case.
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5902 # include <limits.h>
5904 # include <assert.h>
5908 if ac_fn_c_try_cpp "$LINENO"; then :
5911 # Broken: fails on valid input.
5914 rm -f conftest.err conftest.i conftest.$ac_ext
5916 # OK, works on sane cases. Now check whether nonexistent headers
5917 # can be detected and how.
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5920 #include <ac_nonexistent.h>
5922 if ac_fn_c_try_cpp "$LINENO"; then :
5923 # Broken: success on invalid input.
5926 # Passes both tests.
5930 rm -f conftest.err conftest.i conftest.$ac_ext
5933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934 rm -f conftest.i conftest.err conftest.$ac_ext
5935 if $ac_preproc_ok; then :
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5941 See \`config.log' for more details" "$LINENO" 5; }
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5951 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5952 if ${ac_cv_path_GREP+:} false; then :
5953 $as_echo_n "(cached) " >&6
5955 if test -z "$GREP"; then
5956 ac_path_GREP_found=false
5957 # Loop through the user's path and test for each of PROGNAME-LIST
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5962 test -z "$as_dir" && as_dir=.
5963 for ac_prog in grep ggrep; do
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5966 as_fn_executable_p "$ac_path_GREP" || continue
5967 # Check for GNU ac_path_GREP and select it if it is found.
5968 # Check for GNU $ac_path_GREP
5969 case `"$ac_path_GREP" --version 2>&1` in
5971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5974 $as_echo_n 0123456789 >"conftest.in"
5977 cat "conftest.in" "conftest.in" >"conftest.tmp"
5978 mv "conftest.tmp" "conftest.in"
5979 cp "conftest.in" "conftest.nl"
5980 $as_echo 'GREP' >> "conftest.nl"
5981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5983 as_fn_arith $ac_count + 1 && ac_count=$as_val
5984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5985 # Best one so far, save it but keep looking for a better one
5986 ac_cv_path_GREP="$ac_path_GREP"
5987 ac_path_GREP_max=$ac_count
5989 # 10*(2^10) chars as input seems more than enough
5990 test $ac_count -gt 10 && break
5992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5995 $ac_path_GREP_found && break 3
6000 if test -z "$ac_cv_path_GREP"; then
6001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6004 ac_cv_path_GREP=$GREP
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6009 $as_echo "$ac_cv_path_GREP" >&6; }
6010 GREP="$ac_cv_path_GREP"
6015 #### Mac OS X set of fink path with provided
6019 # Check whether --with-fink_prefix was given.
6020 if test "${with_fink_prefix+set}" = set; then :
6021 withval=$with_fink_prefix;
6024 # Need MacosX Version to specify some path.
6026 *Darwin* | *darwin*)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mac OS X Version" >&5
6029 $as_echo_n "checking Mac OS X Version... " >&6; }
6030 macosx_version=`defaults read loginwindow SystemVersionStampAsString`
6031 case $macosx_version in
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.8 - Mountain Lion." >&5
6034 $as_echo "Mac OS X 10.8 - Mountain Lion." >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.7 - Lion." >&5
6038 $as_echo "Mac OS X 10.7 - Lion." >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.6 - Snow Leopard." >&5
6042 $as_echo "Mac OS X 10.6 - Snow Leopard." >&6; }
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mac OS X 10.5 - Leopard." >&5
6046 $as_echo "Mac OS X 10.5 - Leopard." >&6; }
6049 as_fn_error $? "MacOSX 10.5, 10.6, 10.7 or 10.8 are needed. Found $macosx_version" "$LINENO" 5
6058 if test -n "$with_fink_prefix"; then
6059 # If with-fink-prefix is provided, use the provided path to make sure that we will
6060 # use it to detect dependencies (for example, gfortran is not provided in xcode.
6061 # Therefor, we use the one in fink)
6062 FINK_PREFIX="$with_fink_prefix/"
6064 # Exec the init script of fink to make sure that the env is set
6065 if test -f $with_fink_prefix/bin/init.sh; then
6066 echo "source $with_fink_prefix/bin/init.sh executed to set the env"
6067 source $with_fink_prefix/bin/init.sh
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&5
6070 $as_echo "$as_me: WARNING: Could not find the fink init.sh script: $with_fink_prefix/bin/init.sh" >&2;}
6076 #Append to the default flags on Apple machines
6077 CPPFLAGS="$CPPFLAGS -I$FINK_PREFIX/include/"
6078 LDFLAGS="$LDFLAGS -L$FINK_PREFIX/lib/"
6083 # Check whether --with-min_macosx_version was given.
6084 if test "${with_min_macosx_version+set}" = set; then :
6085 withval=$with_min_macosx_version;
6090 if test -n "$with_min_macosx_version"; then
6091 MIN_MACOSX_VERSION=$with_min_macosx_version
6092 #Append to the default flags on Apple machines
6093 ARCH_CFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6094 ARCH_CXXFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6095 ARCH_FFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6096 ARCH_LDFLAGS="-mmacosx-version-min=$MIN_MACOSX_VERSION"
6097 # We need this to be passed to all linker commands
6098 LDFLAGS="$LDFLAGS -mmacosx-version-min=$MIN_MACOSX_VERSION"
6104 #####################################################
6105 ## Look for pkg-config
6106 #####################################################
6109 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6110 if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6116 $as_echo_n "(cached) " >&6
6120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6142 if test -n "$PKG_CONFIG"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6144 $as_echo "$PKG_CONFIG" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6152 if test -z "$ac_cv_path_PKG_CONFIG"; then
6153 ac_pt_PKG_CONFIG=$PKG_CONFIG
6154 # Extract the first word of "pkg-config", so it can be a program name with args.
6155 set dummy pkg-config; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6159 $as_echo_n "(cached) " >&6
6161 case $ac_pt_PKG_CONFIG in
6163 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6185 if test -n "$ac_pt_PKG_CONFIG"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6187 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6193 if test "x$ac_pt_PKG_CONFIG" = x; then
6196 case $cross_compiling:$ac_tool_warned in
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6202 PKG_CONFIG=$ac_pt_PKG_CONFIG
6205 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6209 if test -n "$PKG_CONFIG"; then
6210 _pkg_min_version=0.9.0
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6212 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6213 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6215 $as_echo "yes" >&6; }
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6224 #####################################################
6225 ## check if options are correct (or not)
6226 #####################################################
6228 if test "$with_intelcompilers" = yes -a "$with_gcc" = yes; then
6229 as_fn_error $? "Conflicting options : you specified two compiler series" "$LINENO" 5
6232 ######## fortran ########
6234 if test "$with_gfortran" = yes; then
6236 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6237 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6239 if test -n "$ac_tool_prefix"; then
6240 for ac_prog in gfortran
6242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_F77+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$F77"; then
6250 ac_cv_prog_F77="$F77" # Let the user override the test.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 if test -n "$F77"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6272 $as_echo "$F77" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6279 test -n "$F77" && break
6282 if test -z "$F77"; then
6284 for ac_prog in gfortran
6286 # Extract the first word of "$ac_prog", so it can be a program name with args.
6287 set dummy $ac_prog; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6291 $as_echo_n "(cached) " >&6
6293 if test -n "$ac_ct_F77"; then
6294 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_F77="$ac_prog"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6314 if test -n "$ac_ct_F77"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6316 $as_echo "$ac_ct_F77" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6323 test -n "$ac_ct_F77" && break
6326 if test "x$ac_ct_F77" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6340 # Provide some information about the compiler.
6341 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6344 for ac_option in --version -v -V -qversion; do
6345 { { ac_try="$ac_compiler $ac_option >&5"
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6351 $as_echo "$ac_try_echo"; } >&5
6352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6354 if test -s conftest.err; then
6356 ... rest of stderr output deleted ...
6357 10q' conftest.err >conftest.er1
6358 cat conftest.er1 >&5
6360 rm -f conftest.er1 conftest.err
6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362 test $ac_status = 0; }
6366 # If we don't use `.F' as extension, the preprocessor is not run on the
6367 # input file. (Note that this only needs to work for GNU compilers.)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6371 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6372 if ${ac_cv_f77_compiler_gnu+:} false; then :
6373 $as_echo_n "(cached) " >&6
6375 cat > conftest.$ac_ext <<_ACEOF
6383 if ac_fn_f77_try_compile "$LINENO"; then :
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6393 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6395 ac_test_FFLAGS=${FFLAGS+set}
6396 ac_save_FFLAGS=$FFLAGS
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6399 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6400 if ${ac_cv_prog_f77_g+:} false; then :
6401 $as_echo_n "(cached) " >&6
6404 cat > conftest.$ac_ext <<_ACEOF
6409 if ac_fn_f77_try_compile "$LINENO"; then :
6410 ac_cv_prog_f77_g=yes
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6418 $as_echo "$ac_cv_prog_f77_g" >&6; }
6419 if test "$ac_test_FFLAGS" = set; then
6420 FFLAGS=$ac_save_FFLAGS
6421 elif test $ac_cv_prog_f77_g = yes; then
6422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6428 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6435 if test $ac_compiler_gnu = yes; then
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6446 if test -z "$F77"; then
6447 as_fn_error $? "You asked me to use gfortran but i haven't been able to find it" "$LINENO" 5
6451 if test "$with_intelcompilers" = yes; then
6453 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6454 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6456 if test -n "$ac_tool_prefix"; then
6457 for ac_prog in ifc ifort
6459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_F77+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$F77"; then
6467 ac_cv_prog_F77="$F77" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 if test -n "$F77"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6489 $as_echo "$F77" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 test -n "$F77" && break
6499 if test -z "$F77"; then
6501 for ac_prog in ifc ifort
6503 # Extract the first word of "$ac_prog", so it can be a program name with args.
6504 set dummy $ac_prog; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 if test -n "$ac_ct_F77"; then
6511 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520 ac_cv_prog_ac_ct_F77="$ac_prog"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6531 if test -n "$ac_ct_F77"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6533 $as_echo "$ac_ct_F77" >&6; }
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6540 test -n "$ac_ct_F77" && break
6543 if test "x$ac_ct_F77" = x; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6557 # Provide some information about the compiler.
6558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6561 for ac_option in --version -v -V -qversion; do
6562 { { ac_try="$ac_compiler $ac_option >&5"
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6568 $as_echo "$ac_try_echo"; } >&5
6569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6571 if test -s conftest.err; then
6573 ... rest of stderr output deleted ...
6574 10q' conftest.err >conftest.er1
6575 cat conftest.er1 >&5
6577 rm -f conftest.er1 conftest.err
6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }
6583 # If we don't use `.F' as extension, the preprocessor is not run on the
6584 # input file. (Note that this only needs to work for GNU compilers.)
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6588 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6589 if ${ac_cv_f77_compiler_gnu+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 cat > conftest.$ac_ext <<_ACEOF
6600 if ac_fn_f77_try_compile "$LINENO"; then :
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6610 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6612 ac_test_FFLAGS=${FFLAGS+set}
6613 ac_save_FFLAGS=$FFLAGS
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6616 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6617 if ${ac_cv_prog_f77_g+:} false; then :
6618 $as_echo_n "(cached) " >&6
6621 cat > conftest.$ac_ext <<_ACEOF
6626 if ac_fn_f77_try_compile "$LINENO"; then :
6627 ac_cv_prog_f77_g=yes
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6635 $as_echo "$ac_cv_prog_f77_g" >&6; }
6636 if test "$ac_test_FFLAGS" = set; then
6637 FFLAGS=$ac_save_FFLAGS
6638 elif test $ac_cv_prog_f77_g = yes; then
6639 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6645 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6652 if test $ac_compiler_gnu = yes; then
6658 ac_cpp='$CPP $CPPFLAGS'
6659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663 if test -z "$F77"; then
6664 as_fn_error $? "You asked me to use ifc (intel fortran compiler) but i haven't been able to find it" "$LINENO" 5
6668 if test -z "$F77"; then
6669 ## No Fortran compiler specified... Prefer gfortran and intel compilers
6671 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6672 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6673 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6674 if test -n "$ac_tool_prefix"; then
6675 for ac_prog in gfortran ifc ifort
6677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6678 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_F77+:} false; then :
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$F77"; then
6685 ac_cv_prog_F77="$F77" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 if test -n "$F77"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6707 $as_echo "$F77" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6714 test -n "$F77" && break
6717 if test -z "$F77"; then
6719 for ac_prog in gfortran ifc ifort
6721 # Extract the first word of "$ac_prog", so it can be a program name with args.
6722 set dummy $ac_prog; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6726 $as_echo_n "(cached) " >&6
6728 if test -n "$ac_ct_F77"; then
6729 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738 ac_cv_prog_ac_ct_F77="$ac_prog"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6749 if test -n "$ac_ct_F77"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6751 $as_echo "$ac_ct_F77" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6758 test -n "$ac_ct_F77" && break
6761 if test "x$ac_ct_F77" = x; then
6764 case $cross_compiling:$ac_tool_warned in
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6775 # Provide some information about the compiler.
6776 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6779 for ac_option in --version -v -V -qversion; do
6780 { { ac_try="$ac_compiler $ac_option >&5"
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6786 $as_echo "$ac_try_echo"; } >&5
6787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6789 if test -s conftest.err; then
6791 ... rest of stderr output deleted ...
6792 10q' conftest.err >conftest.er1
6793 cat conftest.er1 >&5
6795 rm -f conftest.er1 conftest.err
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }
6801 # If we don't use `.F' as extension, the preprocessor is not run on the
6802 # input file. (Note that this only needs to work for GNU compilers.)
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6806 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6807 if ${ac_cv_f77_compiler_gnu+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 cat > conftest.$ac_ext <<_ACEOF
6818 if ac_fn_f77_try_compile "$LINENO"; then :
6823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6828 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6830 ac_test_FFLAGS=${FFLAGS+set}
6831 ac_save_FFLAGS=$FFLAGS
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6834 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6835 if ${ac_cv_prog_f77_g+:} false; then :
6836 $as_echo_n "(cached) " >&6
6839 cat > conftest.$ac_ext <<_ACEOF
6844 if ac_fn_f77_try_compile "$LINENO"; then :
6845 ac_cv_prog_f77_g=yes
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6853 $as_echo "$ac_cv_prog_f77_g" >&6; }
6854 if test "$ac_test_FFLAGS" = set; then
6855 FFLAGS=$ac_save_FFLAGS
6856 elif test $ac_cv_prog_f77_g = yes; then
6857 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6863 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6870 if test $ac_compiler_gnu = yes; then
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881 if test -z "$F77"; then
6882 # Best effort to find a compiler (might be g77)
6884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6887 if test -n "$ac_tool_prefix"; then
6888 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
6890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_F77+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$F77"; then
6898 ac_cv_prog_F77="$F77" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 if test -n "$F77"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6920 $as_echo "$F77" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6927 test -n "$F77" && break
6930 if test -z "$F77"; then
6932 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
6934 # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy $ac_prog; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_ac_ct_F77+:} false; then :
6939 $as_echo_n "(cached) " >&6
6941 if test -n "$ac_ct_F77"; then
6942 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_ac_ct_F77="$ac_prog"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6962 if test -n "$ac_ct_F77"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6964 $as_echo "$ac_ct_F77" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6971 test -n "$ac_ct_F77" && break
6974 if test "x$ac_ct_F77" = x; then
6977 case $cross_compiling:$ac_tool_warned in
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6988 # Provide some information about the compiler.
6989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6992 for ac_option in --version -v -V -qversion; do
6993 { { ac_try="$ac_compiler $ac_option >&5"
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6999 $as_echo "$ac_try_echo"; } >&5
7000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7002 if test -s conftest.err; then
7004 ... rest of stderr output deleted ...
7005 10q' conftest.err >conftest.er1
7006 cat conftest.er1 >&5
7008 rm -f conftest.er1 conftest.err
7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7010 test $ac_status = 0; }
7014 # If we don't use `.F' as extension, the preprocessor is not run on the
7015 # input file. (Note that this only needs to work for GNU compilers.)
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7019 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7020 if ${ac_cv_f77_compiler_gnu+:} false; then :
7021 $as_echo_n "(cached) " >&6
7023 cat > conftest.$ac_ext <<_ACEOF
7031 if ac_fn_f77_try_compile "$LINENO"; then :
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7041 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7043 ac_test_FFLAGS=${FFLAGS+set}
7044 ac_save_FFLAGS=$FFLAGS
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7047 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7048 if ${ac_cv_prog_f77_g+:} false; then :
7049 $as_echo_n "(cached) " >&6
7052 cat > conftest.$ac_ext <<_ACEOF
7057 if ac_fn_f77_try_compile "$LINENO"; then :
7058 ac_cv_prog_f77_g=yes
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7066 $as_echo "$ac_cv_prog_f77_g" >&6; }
7067 if test "$ac_test_FFLAGS" = set; then
7068 FFLAGS=$ac_save_FFLAGS
7069 elif test $ac_cv_prog_f77_g = yes; then
7070 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7076 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7083 if test $ac_compiler_gnu = yes; then
7089 ac_cpp='$CPP $CPPFLAGS'
7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 # case statements were introduced in fortran 90 so we can use that
7099 # as a test to see if our compiler is fortran 90 compatible.
7101 if test -z "$F77"; then
7102 as_fn_error $? "No fortran compiler found. Cannot compile scilab without a fortran compiler" "$LINENO" 5
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $F77 is a fortran 90 compatible compiler" >&5
7106 $as_echo_n "checking if $F77 is a fortran 90 compatible compiler... " >&6; }
7109 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7110 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7114 cat > conftest.$ac_ext <<_ACEOF
7120 print*, "case is 1, i is ", i
7122 print*, "case is 2 to 3, i is ", i
7124 print*, "default case, i is ", i
7130 if ac_fn_f77_try_compile "$LINENO"; then :
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7132 $as_echo "yes" >&6; }
7134 $as_echo "#define G95_FORTRAN /**/" >>confdefs.h
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 ############ C ###############
7154 if test "$with_gcc" = yes; then
7156 ac_cpp='$CPP $CPPFLAGS'
7157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7160 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_CC+:} false; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$CC"; then
7171 ac_cv_prog_CC="$CC" # Let the user override the test.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7191 if test -n "$CC"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7193 $as_echo "$CC" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7200 test -n "$CC" && break
7203 if test -z "$CC"; then
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7212 $as_echo_n "(cached) " >&6
7214 if test -n "$ac_ct_CC"; then
7215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_CC="$ac_prog"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7235 if test -n "$ac_ct_CC"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7237 $as_echo "$ac_ct_CC" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7244 test -n "$ac_ct_CC" && break
7247 if test "x$ac_ct_CC" = x; then
7250 case $cross_compiling:$ac_tool_warned in
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7254 ac_tool_warned=yes ;;
7261 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7263 as_fn_error $? "no acceptable C compiler found in \$PATH
7264 See \`config.log' for more details" "$LINENO" 5; }
7266 # Provide some information about the compiler.
7267 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7270 for ac_option in --version -v -V -qversion; do
7271 { { ac_try="$ac_compiler $ac_option >&5"
7273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7277 $as_echo "$ac_try_echo"; } >&5
7278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7280 if test -s conftest.err; then
7282 ... rest of stderr output deleted ...
7283 10q' conftest.err >conftest.er1
7284 cat conftest.er1 >&5
7286 rm -f conftest.er1 conftest.err
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7292 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7293 if ${ac_cv_c_compiler_gnu+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7310 if ac_fn_c_try_compile "$LINENO"; then :
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7316 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7320 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7321 if test $ac_compiler_gnu = yes; then
7326 ac_test_CFLAGS=${CFLAGS+set}
7327 ac_save_CFLAGS=$CFLAGS
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7329 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7330 if ${ac_cv_prog_cc_g+:} false; then :
7331 $as_echo_n "(cached) " >&6
7333 ac_save_c_werror_flag=$ac_c_werror_flag
7334 ac_c_werror_flag=yes
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_compile "$LINENO"; then :
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7363 if ac_fn_c_try_compile "$LINENO"; then :
7366 ac_c_werror_flag=$ac_save_c_werror_flag
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7379 if ac_fn_c_try_compile "$LINENO"; then :
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 ac_c_werror_flag=$ac_save_c_werror_flag
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7390 $as_echo "$ac_cv_prog_cc_g" >&6; }
7391 if test "$ac_test_CFLAGS" = set; then
7392 CFLAGS=$ac_save_CFLAGS
7393 elif test $ac_cv_prog_cc_g = yes; then
7394 if test "$GCC" = yes; then
7400 if test "$GCC" = yes; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7407 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7408 if ${ac_cv_prog_cc_c89+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 ac_cv_prog_cc_c89=no
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7419 struct buf { int x; };
7420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7421 static char *e (p, i)
7427 static char *f (char * (*g) (char **, int), char **p, ...)
7432 s = g (p, va_arg (v,int));
7437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7438 function prototypes and stuff, but not '\xHH' hex character constants.
7439 These don't provoke an error unfortunately, instead are silently treated
7440 as 'x'. The following induces an error, until -std is added to get
7441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7442 array size at least. It's necessary to write '\x00'==0 to get something
7443 that's true only with -std. */
7444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7447 inside strings and character constants. */
7449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7451 int test (int i, double x);
7452 struct s1 {int (*f) (int a);};
7453 struct s2 {int (*f) (double a);};
7454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7468 CC="$ac_save_CC $ac_arg"
7469 if ac_fn_c_try_compile "$LINENO"; then :
7470 ac_cv_prog_cc_c89=$ac_arg
7472 rm -f core conftest.err conftest.$ac_objext
7473 test "x$ac_cv_prog_cc_c89" != "xno" && break
7475 rm -f conftest.$ac_ext
7480 case "x$ac_cv_prog_cc_c89" in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7483 $as_echo "none needed" >&6; } ;;
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7486 $as_echo "unsupported" >&6; } ;;
7488 CC="$CC $ac_cv_prog_cc_c89"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7492 if test "x$ac_cv_prog_cc_c89" != xno; then :
7497 ac_cpp='$CPP $CPPFLAGS'
7498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502 if test -z "$CC"; then
7503 as_fn_error $? "You asked me to use gcc but i haven't been able to find it" "$LINENO" 5
7507 if test "$with_intelcompilers" = yes; then
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513 if test -n "$ac_tool_prefix"; then
7514 for ac_prog in icc ecc
7516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_CC+:} false; then :
7521 $as_echo_n "(cached) " >&6
7523 if test -n "$CC"; then
7524 ac_cv_prog_CC="$CC" # Let the user override the test.
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 if test -n "$CC"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7546 $as_echo "$CC" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7553 test -n "$CC" && break
7556 if test -z "$CC"; then
7558 for ac_prog in icc ecc
7560 # Extract the first word of "$ac_prog", so it can be a program name with args.
7561 set dummy $ac_prog; ac_word=$2
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563 $as_echo_n "checking for $ac_word... " >&6; }
7564 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7565 $as_echo_n "(cached) " >&6
7567 if test -n "$ac_ct_CC"; then
7568 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7577 ac_cv_prog_ac_ct_CC="$ac_prog"
7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7588 if test -n "$ac_ct_CC"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7590 $as_echo "$ac_ct_CC" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7597 test -n "$ac_ct_CC" && break
7600 if test "x$ac_ct_CC" = x; then
7603 case $cross_compiling:$ac_tool_warned in
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7614 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7616 as_fn_error $? "no acceptable C compiler found in \$PATH
7617 See \`config.log' for more details" "$LINENO" 5; }
7619 # Provide some information about the compiler.
7620 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7623 for ac_option in --version -v -V -qversion; do
7624 { { ac_try="$ac_compiler $ac_option >&5"
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7630 $as_echo "$ac_try_echo"; } >&5
7631 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7633 if test -s conftest.err; then
7635 ... rest of stderr output deleted ...
7636 10q' conftest.err >conftest.er1
7637 cat conftest.er1 >&5
7639 rm -f conftest.er1 conftest.err
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; }
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7646 if ${ac_cv_c_compiler_gnu+:} false; then :
7647 $as_echo_n "(cached) " >&6
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7663 if ac_fn_c_try_compile "$LINENO"; then :
7668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7674 if test $ac_compiler_gnu = yes; then
7679 ac_test_CFLAGS=${CFLAGS+set}
7680 ac_save_CFLAGS=$CFLAGS
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7683 if ${ac_cv_prog_cc_g+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 ac_save_c_werror_flag=$ac_c_werror_flag
7687 ac_c_werror_flag=yes
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7701 if ac_fn_c_try_compile "$LINENO"; then :
7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7716 if ac_fn_c_try_compile "$LINENO"; then :
7719 ac_c_werror_flag=$ac_save_c_werror_flag
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7732 if ac_fn_c_try_compile "$LINENO"; then :
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7740 ac_c_werror_flag=$ac_save_c_werror_flag
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7743 $as_echo "$ac_cv_prog_cc_g" >&6; }
7744 if test "$ac_test_CFLAGS" = set; then
7745 CFLAGS=$ac_save_CFLAGS
7746 elif test $ac_cv_prog_cc_g = yes; then
7747 if test "$GCC" = yes; then
7753 if test "$GCC" = yes; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7761 if ${ac_cv_prog_cc_c89+:} false; then :
7762 $as_echo_n "(cached) " >&6
7764 ac_cv_prog_cc_c89=no
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7771 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7772 struct buf { int x; };
7773 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7774 static char *e (p, i)
7780 static char *f (char * (*g) (char **, int), char **p, ...)
7785 s = g (p, va_arg (v,int));
7790 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7791 function prototypes and stuff, but not '\xHH' hex character constants.
7792 These don't provoke an error unfortunately, instead are silently treated
7793 as 'x'. The following induces an error, until -std is added to get
7794 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7795 array size at least. It's necessary to write '\x00'==0 to get something
7796 that's true only with -std. */
7797 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7799 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7800 inside strings and character constants. */
7802 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7804 int test (int i, double x);
7805 struct s1 {int (*f) (int a);};
7806 struct s2 {int (*f) (double a);};
7807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7818 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7819 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7821 CC="$ac_save_CC $ac_arg"
7822 if ac_fn_c_try_compile "$LINENO"; then :
7823 ac_cv_prog_cc_c89=$ac_arg
7825 rm -f core conftest.err conftest.$ac_objext
7826 test "x$ac_cv_prog_cc_c89" != "xno" && break
7828 rm -f conftest.$ac_ext
7833 case "x$ac_cv_prog_cc_c89" in
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7836 $as_echo "none needed" >&6; } ;;
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7839 $as_echo "unsupported" >&6; } ;;
7841 CC="$CC $ac_cv_prog_cc_c89"
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7843 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7845 if test "x$ac_cv_prog_cc_c89" != xno; then :
7850 ac_cpp='$CPP $CPPFLAGS'
7851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7855 if test -z "$CC"; then
7856 as_fn_error $? "You asked me to use icc (intel C compiler) but I haven't been able to find it" "$LINENO" 5
7860 if test -z "$CC"; then
7861 # No C compiler specified... We rely on Autoconf to find the best
7863 ac_cpp='$CPP $CPPFLAGS'
7864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7867 if test -n "$ac_tool_prefix"; then
7868 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7869 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if ${ac_cv_prog_CC+:} false; then :
7873 $as_echo_n "(cached) " >&6
7875 if test -n "$CC"; then
7876 ac_cv_prog_CC="$CC" # Let the user override the test.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 if test -n "$CC"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7898 $as_echo "$CC" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7906 if test -z "$ac_cv_prog_CC"; then
7908 # Extract the first word of "gcc", so it can be a program name with args.
7909 set dummy gcc; ac_word=$2
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7911 $as_echo_n "checking for $ac_word... " >&6; }
7912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7913 $as_echo_n "(cached) " >&6
7915 if test -n "$ac_ct_CC"; then
7916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_prog_ac_ct_CC="gcc"
7926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7936 if test -n "$ac_ct_CC"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7938 $as_echo "$ac_ct_CC" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7944 if test "x$ac_ct_CC" = x; then
7947 case $cross_compiling:$ac_tool_warned in
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7951 ac_tool_warned=yes ;;
7959 if test -z "$CC"; then
7960 if test -n "$ac_tool_prefix"; then
7961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}cc; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_CC+:} false; then :
7966 $as_echo_n "(cached) " >&6
7968 if test -n "$CC"; then
7969 ac_cv_prog_CC="$CC" # Let the user override the test.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_CC="${ac_tool_prefix}cc"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 if test -n "$CC"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7991 $as_echo "$CC" >&6; }
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
8000 if test -z "$CC"; then
8001 # Extract the first word of "cc", so it can be a program name with args.
8002 set dummy cc; ac_word=$2
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8004 $as_echo_n "checking for $ac_word... " >&6; }
8005 if ${ac_cv_prog_CC+:} false; then :
8006 $as_echo_n "(cached) " >&6
8008 if test -n "$CC"; then
8009 ac_cv_prog_CC="$CC" # Let the user override the test.
8012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 test -z "$as_dir" && as_dir=.
8017 for ac_exec_ext in '' $ac_executable_extensions; do
8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8020 ac_prog_rejected=yes
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 if test $ac_prog_rejected = yes; then
8032 # We found a bogon in the path, so make sure we never use it.