2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='LTLIBOBJS
787 TM_MULTILIB_EXCEPTIONS_CONFIG
796 build_xm_include_list
798 build_install_headers_dir
800 all_selected_languages
819 ORIGINAL_NM_FOR_TARGET
821 ORIGINAL_LD_FOR_TARGET
823 ORIGINAL_AS_FOR_TARGET
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
903 ENABLE_BUILD_WITH_CXX
906 valgrind_path_defines
978 program_transform_name
989 ac_subst_files='language_hooks'
991 enable_option_checking
996 enable_generated_files_in_srcdir
1002 enable_werror_always
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1010 enable_decimal_float
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1031 enable_win32_registry
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1046 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 ac_unrecognized_opts=
1071 ac_unrecognized_sep=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file=/dev/null
1081 program_transform_name=s,x,x,
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir='${exec_prefix}/bin'
1096 sbindir='${exec_prefix}/sbin'
1097 libexecdir='${exec_prefix}/libexec'
1098 datarootdir='${prefix}/share'
1099 datadir='${datarootdir}'
1100 sysconfdir='${prefix}/etc'
1101 sharedstatedir='${prefix}/com'
1102 localstatedir='${prefix}/var'
1103 includedir='${prefix}/include'
1104 oldincludedir='/usr/include'
1105 docdir='${datarootdir}/doc/${PACKAGE}'
1106 infodir='${datarootdir}/info'
1111 libdir='${exec_prefix}/lib'
1112 localedir='${datarootdir}/locale'
1113 mandir='${datarootdir}/man'
1119 # If the previous option needs an argument, assign it.
1120 if test -n "$ac_prev"; then
1121 eval $ac_prev=\$ac_option
1127 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1157 -datadir | --datadir | --datadi | --datad)
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval enable_$ac_useropt=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid feature name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_$ac_useropt"
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1240 htmldir=$ac_optarg ;;
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1254 -libdir | --libdir | --libdi | --libd)
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1345 -psdir | --psdir | --psdi | --psd | --ps)
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1358 sbindir=$ac_optarg ;;
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1369 sharedstatedir=$ac_optarg ;;
1371 -site | --site | --sit)
1373 -site=* | --site=* | --sit=*)
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1413 eval with_$ac_useropt=\$ac_optarg ;;
1415 -without-* | --without-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1429 eval with_$ac_useropt=no ;;
1432 # Obsolete; use --with-x.
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1449 -*) as_fn_error "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1474 if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error "missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1482 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1487 # Check all directory arguments for consistency.
1488 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val=\$$ac_var
1494 # Remove trailing slashes.
1497 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\$ac_val;;
1500 # Be sure to have absolute directory names.
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1505 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1513 target=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1520 If a cross compiler is detected then cross compile mode will be used." >&2
1521 elif test "x$build_alias" != "x$host_alias"; then
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1529 test "$silent" = yes && exec 6>/dev/null
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535 as_fn_error "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537 as_fn_error "pwd does not report name of working directory"
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542 ac_srcdir_defaulted=yes
1543 # Try the directory containing this script, then the parent directory.
1544 ac_confdir=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546 X"$as_myself" : 'X\(//\)[^/]' \| \
1547 X"$as_myself" : 'X\(//\)$' \| \
1548 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1572 ac_srcdir_defaulted=no
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1578 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1580 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1590 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1592 for ac_var in $ac_precious_vars; do
1593 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1594 eval ac_env_${ac_var}_value=\$${ac_var}
1595 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1600 # Report the --help message.
1602 if test "$ac_init_help" = "long"; then
1603 # Omit some internal or obsolete options to make the list less imposing.
1604 # This message is too long to be a string in the A/UX 3.1 sh.
1606 \`configure' configures this package to adapt to many kinds of systems.
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE. See below for descriptions of some of the useful variables.
1613 Defaults for the options are specified in brackets.
1616 -h, --help display this help and exit
1617 --help=short display options specific to this package
1618 --help=recursive display the short help of all the included packages
1619 -V, --version display version information and exit
1620 -q, --quiet, --silent do not print \`checking...' messages
1621 --cache-file=FILE cache test results in FILE [disabled]
1622 -C, --config-cache alias for \`--cache-file=config.cache'
1623 -n, --no-create do not create output files
1624 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1626 Installation directories:
1627 --prefix=PREFIX install architecture-independent files in PREFIX
1628 [$ac_default_prefix]
1629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1637 For better control, use the options below.
1639 Fine tuning of the installation directories:
1640 --bindir=DIR user executables [EPREFIX/bin]
1641 --sbindir=DIR system admin executables [EPREFIX/sbin]
1642 --libexecdir=DIR program executables [EPREFIX/libexec]
1643 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1644 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1645 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1646 --libdir=DIR object code libraries [EPREFIX/lib]
1647 --includedir=DIR C header files [PREFIX/include]
1648 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1649 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1650 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1651 --infodir=DIR info documentation [DATAROOTDIR/info]
1652 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1653 --mandir=DIR man documentation [DATAROOTDIR/man]
1654 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1655 --htmldir=DIR html documentation [DOCDIR]
1656 --dvidir=DIR dvi documentation [DOCDIR]
1657 --pdfdir=DIR pdf documentation [DOCDIR]
1658 --psdir=DIR ps documentation [DOCDIR]
1664 --program-prefix=PREFIX prepend PREFIX to installed program names
1665 --program-suffix=SUFFIX append SUFFIX to installed program names
1666 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1669 --build=BUILD configure for building on BUILD [guessed]
1670 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1671 --target=TARGET configure for building compilers for TARGET [HOST]
1675 if test -n "$ac_init_help"; then
1680 --disable-option-checking ignore unrecognized --enable/--with options
1681 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1682 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1683 --enable-generated-files-in-srcdir
1684 put copies of generated files in source dir
1685 intended for creating source tarballs for users
1686 without texinfo bison or flex.
1687 --enable-werror-always enable -Werror despite compiler version
1688 --enable-checking=LIST
1689 enable expensive run-time checks. With LIST,
1690 enable only specific categories of checks.
1691 Categories are: yes,no,all,none,release.
1692 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1693 rtlflag,rtl,runtime,tree,valgrind,types.
1694 --enable-coverage=LEVEL
1695 enable compiler's code coverage collection.
1696 Use to measure compiler performance and locate
1697 unused parts of the compiler. With LEVEL, specify
1698 optimization. Values are opt, noopt,
1700 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1701 --enable-build-with-cxx build with C++ compiler instead of C compiler
1702 --enable-multilib enable library support for multiple ABIs
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid'
1706 or 'dpd' choses which decimal floating point format
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads enable thread usage for target GCC
1710 --enable-threads=LIB use LIB thread package for target GCC
1711 --enable-tls enable or disable generation of tls code
1712 overriding the assembler check for tls support
1713 --enable-objc-gc enable the use of Boehm's garbage collector with
1714 the GNU Objective-C runtime
1715 --disable-shared don't provide a shared libgcc
1716 --enable-intermodule build the compiler in one step
1717 --enable-languages=LIST specify which front-ends to build
1718 --disable-rpath do not hardcode runtime library paths
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-sjlj-exceptions
1721 arrange to use setjmp/longjmp exception handling
1722 --enable-secureplt enable -msecure-plt by default for PowerPC
1723 --enable-cld enable -mcld by default for 32bit x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the
1726 Registry on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-maintainer-mode
1741 enable make rules and dependencies not useful
1742 (and sometimes confusing) to the casual installer
1743 --enable-version-specific-runtime-libs
1744 specify that runtime libraries should be
1745 installed in a compiler-specific directory
1746 --enable-plugin enable plugin support
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-build-libsubdir=DIR Directory where to find libraries for build system
1752 --with-local-prefix=DIR specifies directory to put local include
1753 --with-gxx-include-dir=DIR
1754 specifies directory to put g++ header files
1755 --with-cpp-install-dir=DIR
1756 install the user visible C preprocessor in DIR
1757 (relative to PREFIX) as well as PREFIX/bin
1758 --with-gnu-ld arrange to work with GNU ld.
1759 --with-ld arrange to use the specified ld (full pathname)
1760 --with-demangler-in-ld try to use demangler in GNU ld.
1761 --with-gnu-as arrange to work with GNU as
1762 --with-as arrange to use the specified as (full pathname)
1763 --with-stabs arrange to use stabs instead of host debug format
1764 --with-dwarf2 force the default debug format to be DWARF 2
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1768 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1769 --with-bugurl=URL Direct users to URL to report a bug
1770 --with-multilib-list Select multilibs (SH only)
1771 --with-gnu-ld assume the C compiler uses GNU ld default=no
1772 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1773 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1774 --with-system-libunwind use installed libunwind
1775 --with-pic try to use only PIC/non-PIC objects [default=use
1777 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1778 --with-long-double-128 Use 128-bit long double by default.
1779 --with-gc={page,zone} choose the garbage collection mechanism to use
1781 --with-system-zlib use installed libz
1782 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1784 Some influential environment variables:
1785 CC C compiler command
1786 CFLAGS C compiler flags
1787 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1788 nonstandard directory <lib dir>
1789 LIBS libraries to pass to the linker, e.g. -l<library>
1790 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1791 you have headers in a nonstandard directory <include dir>
1792 CXX C++ compiler command
1793 CXXFLAGS C++ compiler flags
1795 CXXCPP C++ preprocessor
1796 GMPLIBS How to link GMP
1797 GMPINC How to find GMP include files
1798 PPLLIBS How to link PPL
1799 PPLINC How to find PPL include files
1800 CLOOGLIBS How to link CLOOG
1801 CLOOGINC How to find CLOOG include files
1803 Use these variables to override the choices made by `configure' or to help
1804 it to find libraries and programs with nonstandard names/locations.
1806 Report bugs to the package provider.
1811 if test "$ac_init_help" = "recursive"; then
1812 # If there are subdirs, report their specific --help.
1813 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1814 test -d "$ac_dir" ||
1815 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1823 # A ".." for each directory in $ac_dir_suffix.
1824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1825 case $ac_top_builddir_sub in
1826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1830 ac_abs_top_builddir=$ac_pwd
1831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1832 # for backward compatibility:
1833 ac_top_builddir=$ac_top_build_prefix
1836 .) # We are building in place.
1838 ac_top_srcdir=$ac_top_builddir_sub
1839 ac_abs_top_srcdir=$ac_pwd ;;
1840 [\\/]* | ?:[\\/]* ) # Absolute name.
1841 ac_srcdir=$srcdir$ac_dir_suffix;
1842 ac_top_srcdir=$srcdir
1843 ac_abs_top_srcdir=$srcdir ;;
1845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1846 ac_top_srcdir=$ac_top_build_prefix$srcdir
1847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1851 cd "$ac_dir" || { ac_status=$?; continue; }
1852 # Check for guested configure.
1853 if test -f "$ac_srcdir/configure.gnu"; then
1855 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1856 elif test -f "$ac_srcdir/configure"; then
1858 $SHELL "$ac_srcdir/configure" --help=recursive
1860 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1862 cd "$ac_pwd" || { ac_status=$?; break; }
1866 test -n "$ac_init_help" && exit $ac_status
1867 if $ac_init_version; then
1870 generated by GNU Autoconf 2.64
1872 Copyright (C) 2009 Free Software Foundation, Inc.
1873 This configure script is free software; the Free Software Foundation
1874 gives unlimited permission to copy, distribute and modify it.
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919 } # ac_fn_c_try_compile
1921 # ac_fn_cxx_try_compile LINENO
1922 # ----------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 } # ac_fn_cxx_try_compile
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } >/dev/null && {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2001 ac_fn_c_check_header_mongrel ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_header_compiler=yes
2025 ac_header_compiler=no
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 ac_header_preproc=yes
2041 ac_header_preproc=no
2043 rm -f conftest.err conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2073 eval "$3=\$ac_header_compiler"
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2086 # that executables *can* be run.
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_link"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>&5
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101 { { case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_try") 2>&5
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; }; }; then :
2113 $as_echo "$as_me: program exited with status $ac_status" >&5
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2117 ac_retval=$ac_status
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2125 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126 # -------------------------------------------------------
2127 # Tests whether HEADER exists and can be compiled using the include files in
2128 # INCLUDES, setting the cache variable VAR accordingly.
2129 ac_fn_c_check_header_compile ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 } # ac_fn_c_check_header_compile
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2161 ac_fn_c_compute_int ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid; break
2198 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2199 if test $ac_lo -le $ac_mid; then
2203 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2214 static int test_array [1 - 2 * !(($2) < 0)];
2221 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_lo=$ac_mid; break
2240 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2241 if test $ac_mid -le $ac_hi; then
2245 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2271 if ac_fn_c_try_compile "$LINENO"; then :
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2294 FILE *f = fopen ("conftest.val", "w");
2299 long int i = longval ();
2302 fprintf (f, "%ld", i);
2306 unsigned long int i = ulongval ();
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2319 if ac_fn_c_try_run "$LINENO"; then :
2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325 conftest.$ac_objext conftest.beam conftest.$ac_ext
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_check_type
2388 # ac_fn_c_find_intX_t LINENO BITS VAR
2389 # -----------------------------------
2390 # Finds a signed integer type with width BITS, setting cache variable VAR
2392 ac_fn_c_find_intX_t ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2396 $as_echo_n "checking for int$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398 $as_echo_n "(cached) " >&6
2401 for ac_type in int$2_t 'int' 'long int' \
2402 'long long int' 'short int' 'signed char'; do
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2419 $ac_includes_default
2423 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2424 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2438 eval "$3=\$ac_type" ;;
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 if test "x$as_val" = x""no; then :
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 } # ac_fn_c_find_intX_t
2459 # ac_fn_c_try_link LINENO
2460 # -----------------------
2461 # Try to link conftest.$ac_ext, and return whether this succeeded.
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 rm -f conftest.$ac_objext conftest$ac_exeext
2466 if { { ac_try="$ac_link"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_link") 2>conftest.err
2475 if test -s conftest.err; then
2476 grep -v '^ *+' conftest.err >conftest.er1
2477 cat conftest.er1 >&5
2478 mv -f conftest.er1 conftest.err
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; } && {
2482 test -z "$ac_c_werror_flag" ||
2483 test ! -s conftest.err
2484 } && test -s conftest$ac_exeext && {
2485 test "$cross_compiling" = yes ||
2486 $as_test_x conftest$ac_exeext
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2496 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2497 # interfere with the next link command; also delete a directory that is
2498 # left behind by Apple's compiler. We do this before executing the actions.
2499 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2500 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2503 } # ac_fn_c_try_link
2505 # ac_fn_c_find_uintX_t LINENO BITS VAR
2506 # ------------------------------------
2507 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2509 ac_fn_c_find_uintX_t ()
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2513 $as_echo_n "checking for uint$2_t... " >&6; }
2514 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515 $as_echo_n "(cached) " >&6
2518 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2519 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2522 $ac_includes_default
2526 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2533 if ac_fn_c_try_compile "$LINENO"; then :
2538 eval "$3=\$ac_type" ;;
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 if test "x$as_val" = x""no; then :
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555 } # ac_fn_c_find_uintX_t
2557 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2558 # ----------------------------------------------
2559 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2560 ac_fn_c_check_header_preproc ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2566 $as_echo_n "(cached) " >&6
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2572 if ac_fn_c_try_cpp "$LINENO"; then :
2577 rm -f conftest.err conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_c_check_header_preproc
2586 # ac_fn_c_check_func LINENO FUNC VAR
2587 # ----------------------------------
2588 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2589 ac_fn_c_check_func ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 $as_echo_n "checking for $2... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2599 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2601 #define $2 innocuous_$2
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char $2 (); below.
2605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2606 <limits.h> exists even on freestanding compilers. */
2609 # include <limits.h>
2611 # include <assert.h>
2616 /* Override any GCC internal prototype to avoid an error.
2617 Use char because int might match the return type of a GCC
2618 builtin and then its argument prototype would still apply. */
2623 /* The GNU C library defines this for functions which it implements
2624 to always fail with ENOSYS. Some functions are actually named
2625 something starting with __ and the normal name is an alias. */
2626 #if defined __stub_$2 || defined __stub___$2
2638 if ac_fn_c_try_link "$LINENO"; then :
2643 rm -f core conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651 } # ac_fn_c_check_func
2653 # ac_fn_cxx_try_cpp LINENO
2654 # ------------------------
2655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2656 ac_fn_cxx_try_cpp ()
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 if { { ac_try="$ac_cpp conftest.$ac_ext"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2668 if test -s conftest.err; then
2669 grep -v '^ *+' conftest.err >conftest.er1
2670 cat conftest.er1 >&5
2671 mv -f conftest.er1 conftest.err
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; } >/dev/null && {
2675 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2676 test ! -s conftest.err
2680 $as_echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688 } # ac_fn_cxx_try_cpp
2690 # ac_fn_cxx_try_link LINENO
2691 # -------------------------
2692 # Try to link conftest.$ac_ext, and return whether this succeeded.
2693 ac_fn_cxx_try_link ()
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 rm -f conftest.$ac_objext conftest$ac_exeext
2697 if { { ac_try="$ac_link"
2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700 *) ac_try_echo=$ac_try;;
2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2703 $as_echo "$ac_try_echo"; } >&5
2704 (eval "$ac_link") 2>conftest.err
2706 if test -s conftest.err; then
2707 grep -v '^ *+' conftest.err >conftest.er1
2708 cat conftest.er1 >&5
2709 mv -f conftest.er1 conftest.err
2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712 test $ac_status = 0; } && {
2713 test -z "$ac_cxx_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest$ac_exeext && {
2716 test "$cross_compiling" = yes ||
2717 $as_test_x conftest$ac_exeext
2721 $as_echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2728 # interfere with the next link command; also delete a directory that is
2729 # left behind by Apple's compiler. We do this before executing the actions.
2730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2734 } # ac_fn_cxx_try_link
2735 cat >config.log <<_ACEOF
2736 This file contains any messages produced by compilers while
2737 running configure, to aid debugging if configure makes a mistake.
2739 It was created by $as_me, which was
2740 generated by GNU Autoconf 2.64. Invocation command line was
2752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2753 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2754 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2755 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2756 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2764 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 $as_echo "PATH: $as_dir"
2792 # Keep a trace of the command line.
2793 # Strip out --no-create and --no-recursion so they do not pile up.
2794 # Strip out --silent because we don't want to record it for future runs.
2795 # Also quote any args containing shell meta-characters.
2796 # Make two passes to allow for proper duplicate-argument suppression.
2800 ac_must_keep_next=false
2806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2808 | -silent | --silent | --silen | --sile | --sil)
2811 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2816 as_fn_append ac_configure_args1 " '$ac_arg'"
2817 if test $ac_must_keep_next = true; then
2818 ac_must_keep_next=false # Got value, back to normal.
2821 *=* | --config-cache | -C | -disable-* | --disable-* \
2822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2824 | -with-* | --with-* | -without-* | --without-* | --x)
2825 case "$ac_configure_args0 " in
2826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2829 -* ) ac_must_keep_next=true ;;
2832 as_fn_append ac_configure_args " '$ac_arg'"
2837 { ac_configure_args0=; unset ac_configure_args0;}
2838 { ac_configure_args1=; unset ac_configure_args1;}
2840 # When interrupted or exit'd, cleanup temporary files, and complete
2841 # config.log. We remove comments because anyway the quotes in there
2842 # would cause problems or look ugly.
2843 # WARNING: Use '\'' to represent an apostrophe within the trap.
2844 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2845 trap 'exit_status=$?
2846 # Save into config.log some information that might help in debugging.
2851 ## ---------------- ##
2852 ## Cache variables. ##
2853 ## ---------------- ##
2856 # The following way of writing the cache mishandles newlines in values,
2858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2859 eval ac_val=\$$ac_var
2863 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2864 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2867 _ | IFS | as_nl) ;; #(
2868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2869 *) { eval $ac_var=; unset $ac_var;} ;;
2874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2875 *${as_nl}ac_space=\ *)
2877 "s/'\''/'\''\\\\'\'''\''/g;
2878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2889 ## ----------------- ##
2890 ## Output variables. ##
2891 ## ----------------- ##
2894 for ac_var in $ac_subst_vars
2896 eval ac_val=\$$ac_var
2898 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2900 $as_echo "$ac_var='\''$ac_val'\''"
2904 if test -n "$ac_subst_files"; then
2906 ## ------------------- ##
2907 ## File substitutions. ##
2908 ## ------------------- ##
2911 for ac_var in $ac_subst_files
2913 eval ac_val=\$$ac_var
2915 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917 $as_echo "$ac_var='\''$ac_val'\''"
2922 if test -s confdefs.h; then
2932 test "$ac_signal" != 0 &&
2933 $as_echo "$as_me: caught signal $ac_signal"
2934 $as_echo "$as_me: exit $exit_status"
2936 rm -f core *.core core.conftest.* &&
2937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2940 for ac_signal in 1 2 13 15; do
2941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2946 rm -f -r conftest* confdefs.h
2948 $as_echo "/* confdefs.h */" > confdefs.h
2950 # Predefined preprocessor variables.
2952 cat >>confdefs.h <<_ACEOF
2953 #define PACKAGE_NAME "$PACKAGE_NAME"
2956 cat >>confdefs.h <<_ACEOF
2957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2960 cat >>confdefs.h <<_ACEOF
2961 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2964 cat >>confdefs.h <<_ACEOF
2965 #define PACKAGE_STRING "$PACKAGE_STRING"
2968 cat >>confdefs.h <<_ACEOF
2969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE_URL "$PACKAGE_URL"
2977 # Let the site file select an alternate cache file if it wants to.
2978 # Prefer an explicitly selected file to automatically selected ones.
2981 if test -n "$CONFIG_SITE"; then
2982 ac_site_file1=$CONFIG_SITE
2983 elif test "x$prefix" != xNONE; then
2984 ac_site_file1=$prefix/share/config.site
2985 ac_site_file2=$prefix/etc/config.site
2987 ac_site_file1=$ac_default_prefix/share/config.site
2988 ac_site_file2=$ac_default_prefix/etc/config.site
2990 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2992 test "x$ac_site_file" = xNONE && continue
2993 if test -r "$ac_site_file"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2995 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2996 sed 's/^/| /' "$ac_site_file" >&5
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special
3003 # files actually), so we avoid doing that.
3004 if test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3018 # Check that the precious variables saved in the cache have kept the same
3020 ac_cache_corrupted=false
3021 for ac_var in $ac_precious_vars; do
3022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3023 eval ac_new_set=\$ac_env_${ac_var}_set
3024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3025 eval ac_new_val=\$ac_env_${ac_var}_value
3026 case $ac_old_set,$ac_new_set in
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3030 ac_cache_corrupted=: ;;
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3037 if test "x$ac_old_val" != "x$ac_new_val"; then
3038 # differences in whitespace do not lead to failure.
3039 ac_old_val_w=`echo x $ac_old_val`
3040 ac_new_val_w=`echo x $ac_new_val`
3041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3044 ac_cache_corrupted=:
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3048 eval $ac_var=\$ac_old_val
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3056 # Pass precious variables to config.status.
3057 if test "$ac_new_set" = set; then
3059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3060 *) ac_arg=$ac_var=$ac_new_val ;;
3062 case " $ac_configure_args " in
3063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3068 if $ac_cache_corrupted; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3073 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3075 ## -------------------- ##
3076 ## Main body of script. ##
3077 ## -------------------- ##
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3093 gcc_version=`cat $srcdir/BASE-VER`
3095 # Determine the host, build, and target systems
3097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3098 for ac_t in install-sh install.sh shtool; do
3099 if test -f "$ac_dir/$ac_t"; then
3101 ac_install_sh="$ac_aux_dir/$ac_t -c"
3106 if test -z "$ac_aux_dir"; then
3107 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3110 # These three variables are undocumented and unsupported,
3111 # and are intended to be withdrawn in a future Autoconf release.
3112 # They can cause serious problems if a builder's source tree is in a directory
3113 # whose full name contains unusual characters.
3114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3119 # Make sure we can run config.sub.
3120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3121 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3124 $as_echo_n "checking build system type... " >&6; }
3125 if test "${ac_cv_build+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3128 ac_build_alias=$build_alias
3129 test "x$ac_build_alias" = x &&
3130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3131 test "x$ac_build_alias" = x &&
3132 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3134 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3138 $as_echo "$ac_cv_build" >&6; }
3139 case $ac_cv_build in
3141 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3144 ac_save_IFS=$IFS; IFS='-'
3150 # Remember, the first character of IFS is used to create $*,
3151 # except with old shells:
3154 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3158 $as_echo_n "checking host system type... " >&6; }
3159 if test "${ac_cv_host+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3162 if test "x$host_alias" = x; then
3163 ac_cv_host=$ac_cv_build
3165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3166 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3171 $as_echo "$ac_cv_host" >&6; }
3174 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3177 ac_save_IFS=$IFS; IFS='-'
3183 # Remember, the first character of IFS is used to create $*,
3184 # except with old shells:
3187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3191 $as_echo_n "checking target system type... " >&6; }
3192 if test "${ac_cv_target+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3195 if test "x$target_alias" = x; then
3196 ac_cv_target=$ac_cv_host
3198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3199 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3204 $as_echo "$ac_cv_target" >&6; }
3205 case $ac_cv_target in
3207 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3209 target=$ac_cv_target
3210 ac_save_IFS=$IFS; IFS='-'
3216 # Remember, the first character of IFS is used to create $*,
3217 # except with old shells:
3220 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3223 # The aliases save the names the user supplied, while $host etc.
3224 # will get canonicalized.
3225 test -n "$target_alias" &&
3226 test "$program_prefix$program_suffix$program_transform_name" = \
3228 program_prefix=${target_alias}-
3230 # Determine the noncanonical target name, for directory use.
3231 case ${build_alias} in
3232 "") build_noncanonical=${build} ;;
3233 *) build_noncanonical=${build_alias} ;;
3236 case ${host_alias} in
3237 "") host_noncanonical=${build_noncanonical} ;;
3238 *) host_noncanonical=${host_alias} ;;
3241 case ${target_alias} in
3242 "") target_noncanonical=${host_noncanonical} ;;
3243 *) target_noncanonical=${target_alias} ;;
3249 # Determine the target- and build-specific subdirectories
3251 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3252 # have matching libraries, they should use host libraries: Makefile.tpl
3253 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3254 # However, they still use the build modules, because the corresponding
3255 # host modules (e.g. bison) are only built for the host when bootstrap
3257 # - build_subdir is where we find build modules, and never changes.
3258 # - build_libsubdir is where we find build libraries, and can be overridden.
3260 # Prefix 'build-' so this never conflicts with target_subdir.
3261 build_subdir="build-${build_noncanonical}"
3263 # Check whether --with-build-libsubdir was given.
3264 if test "${with_build_libsubdir+set}" = set; then :
3265 withval=$with_build_libsubdir; build_libsubdir="$withval"
3267 build_libsubdir="$build_subdir"
3270 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3271 if ( test $srcdir = . && test -d gcc ) \
3272 || test -d $srcdir/../host-${host_noncanonical}; then
3273 host_subdir="host-${host_noncanonical}"
3278 target_subdir=${target_noncanonical}
3281 # Set program_transform_name
3282 test "$program_prefix" != NONE &&
3283 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3284 # Use a double $ so make ignores it.
3285 test "$program_suffix" != NONE &&
3286 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3287 # Double any \ or $.
3288 # By default was `s,x,x', remove it if useless.
3289 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3290 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3293 # Check for bogus environment variables.
3294 # Test if LIBRARY_PATH contains the notation for the current directory
3295 # since this would lead to problems installing/building glibc.
3296 # LIBRARY_PATH contains the current directory if one of the following
3298 # - one of the terminals (":" and ";") is the first or last sign
3299 # - two terminals occur directly after each other
3300 # - the path contains an element with a dot in it
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3302 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3303 case ${LIBRARY_PATH} in
3304 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3305 library_path_setting="contains current directory"
3308 library_path_setting="ok"
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3312 $as_echo "$library_path_setting" >&6; }
3313 if test "$library_path_setting" != "ok"; then
3315 *** LIBRARY_PATH shouldn't contain the current directory when
3316 *** building gcc. Please change the environment variable
3317 *** and run configure again." "$LINENO" 5
3320 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3321 # since this would lead to problems installing/building glibc.
3322 # GCC_EXEC_PREFIX contains the current directory if one of the following
3324 # - one of the terminals (":" and ";") is the first or last sign
3325 # - two terminals occur directly after each other
3326 # - the path contains an element with a dot in it
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3328 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3329 case ${GCC_EXEC_PREFIX} in
3330 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3331 gcc_exec_prefix_setting="contains current directory"
3334 gcc_exec_prefix_setting="ok"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3338 $as_echo "$gcc_exec_prefix_setting" >&6; }
3339 if test "$gcc_exec_prefix_setting" != "ok"; then
3341 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3342 *** building gcc. Please change the environment variable
3343 *** and run configure again." "$LINENO" 5
3350 # Specify the local prefix
3353 # Check whether --with-local-prefix was given.
3354 if test "${with_local_prefix+set}" = set; then :
3355 withval=$with_local_prefix; case "${withval}" in
3356 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3358 *) local_prefix=$with_local_prefix ;;
3363 # Default local prefix if it is empty
3364 if test x$local_prefix = x; then
3365 local_prefix=/usr/local
3368 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3369 # passed in by the toplevel make and thus we'd get different behavior
3370 # depending on where we built the sources.
3371 gcc_gxx_include_dir=
3372 # Specify the g++ header file directory
3374 # Check whether --with-gxx-include-dir was given.
3375 if test "${with_gxx_include_dir+set}" = set; then :
3376 withval=$with_gxx_include_dir; case "${withval}" in
3377 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3379 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3384 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3385 if test x${gcc_gxx_include_dir} = x; then
3386 if test x${enable_version_specific_runtime_libs} = xyes; then
3387 gcc_gxx_include_dir='${libsubdir}/include/c++'
3389 libstdcxx_incdir='include/c++/$(version)'
3390 if test x$host != x$target; then
3391 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3393 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3398 # Check whether --with-cpp_install_dir was given.
3399 if test "${with_cpp_install_dir+set}" = set; then :
3400 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3401 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3402 elif test x$withval != xno; then
3403 cpp_install_dir=$withval
3408 # We would like to our source tree to be readonly. However when releases or
3409 # pre-releases are generated, the flex/bison generated files as well as the
3410 # various formats of manuals need to be included along with the rest of the
3411 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3415 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3416 # Check whether --enable-generated-files-in-srcdir was given.
3417 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3418 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3420 generated_files_in_srcdir=no
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3425 $as_echo "$generated_files_in_srcdir" >&6; }
3427 if test "$generated_files_in_srcdir" = "yes"; then
3434 # -------------------
3435 # Find default linker
3436 # -------------------
3440 # Check whether --with-gnu-ld was given.
3441 if test "${with_gnu_ld+set}" = set; then :
3442 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3448 # With pre-defined ld
3450 # Check whether --with-ld was given.
3451 if test "${with_ld+set}" = set; then :
3452 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3455 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3456 if test ! -x "$DEFAULT_LINKER"; then
3457 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3458 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3462 cat >>confdefs.h <<_ACEOF
3463 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3468 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3470 cat >>confdefs.h <<_ACEOF
3471 #define HAVE_GNU_LD $gnu_ld
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3476 $as_echo_n "checking whether a default linker was specified... " >&6; }
3477 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3478 if test x"$gnu_ld_flag" = x"no"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3480 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3483 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3490 # With demangler in GNU ld
3492 # Check whether --with-demangler-in-ld was given.
3493 if test "${with_demangler_in_ld+set}" = set; then :
3494 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3500 # ----------------------
3501 # Find default assembler
3502 # ----------------------
3506 # Check whether --with-gnu-as was given.
3507 if test "${with_gnu_as+set}" = set; then :
3508 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3515 # Check whether --with-as was given.
3516 if test "${with_as+set}" = set; then :
3517 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3520 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3521 if test ! -x "$DEFAULT_ASSEMBLER"; then
3522 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3523 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3527 cat >>confdefs.h <<_ACEOF
3528 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3533 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3535 cat >>confdefs.h <<_ACEOF
3536 #define HAVE_GNU_AS $gnu_as
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3541 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3542 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3543 if test x"$gas_flag" = x"no"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3545 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3548 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3559 # If a non-executable a.out is present (e.g. created by GNU as above even if
3560 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3561 # file, even when creating an executable, so an execution test fails.
3562 # Remove possible default executable files to avoid this.
3564 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3565 # Autoconf includes it.
3566 rm -f a.out a.exe b.out
3568 # Find the native compiler
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if test "${ac_cv_prog_CC+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3613 if test -z "$ac_cv_prog_CC"; then
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3620 $as_echo_n "(cached) " >&6
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632 ac_cv_prog_ac_ct_CC="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3651 if test "x$ac_ct_CC" = x; then
3654 case $cross_compiling:$ac_tool_warned in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if test "${ac_cv_prog_CC+set}" = set; then :
3673 $as_echo_n "(cached) " >&6
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685 ac_cv_prog_CC="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if test "${ac_cv_prog_CC+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected=yes
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy $ac_cv_prog_CC
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in cl.exe
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if test "${ac_cv_prog_CC+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.