2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files in source dir
855 intended for creating source tarballs for users
856 without texinfo bison or flex.
857 --enable-werror-always enable -Werror always
858 --enable-werror enable -Werror in bootstrap stage2 and later
859 --enable-checking=LIST
860 enable expensive run-time checks. With LIST,
861 enable only specific categories of checks.
862 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
863 default is misc,tree,gc,rtlflag
864 --enable-coverage=LEVEL
865 enable compiler\'s code coverage collection.
866 Use to measure compiler performance and locate
867 unused parts of the compiler. With LEVEL, specify
868 optimization. Values are opt, noopt,
870 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
871 --enable-multilib enable library support for multiple ABIs
872 --enable-__cxa_atexit enable __cxa_atexit for C++
873 --enable-threads enable thread usage for target GCC
874 --enable-threads=LIB use LIB thread package for target GCC
875 --enable-objc-gc enable the use of Boehm's garbage collector with
876 the GNU Objective-C runtime
877 --disable-shared don't provide a shared libgcc
878 --enable-intermodule build the compiler in one step
879 --enable-languages=LIST specify which front-ends to build
880 --enable-initfini-array use .init_array/.fini_array sections
881 --enable-sjlj-exceptions
882 arrange to use setjmp/longjmp exception handling
883 --enable-libunwind-exceptions force use libunwind for exceptions
884 --disable-win32-registry
885 disable lookup of installation paths in the
886 Registry on Windows hosts
887 --enable-win32-registry enable registry lookup (default)
888 --enable-win32-registry=KEY
889 use KEY instead of GCC version as the last portion
891 --enable-maintainer-mode
892 enable make rules and dependencies not useful
893 (and sometimes confusing) to the casual installer
894 --enable-version-specific-runtime-libs
895 specify that runtime libraries should be
896 installed in a compiler-specific directory
899 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
900 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
901 --with-local-prefix=DIR specifies directory to put local include
902 --with-gxx-include-dir=DIR
903 specifies directory to put g++ header files
904 --with-cpp-install-dir=DIR
905 install the user visible C preprocessor in DIR
906 (relative to PREFIX) as well as PREFIX/bin
907 --with-gnu-ld arrange to work with GNU ld.
908 --with-ld arrange to use the specified ld (full pathname)
909 --with-gnu-as arrange to work with GNU as
910 --with-as arrange to use the specified as (full pathname)
911 --with-stabs arrange to use stabs instead of host debug format
912 --with-dwarf2 force the default debug format to be DWARF 2
913 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
914 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
915 --with-gc={page,zone} choose the garbage collection mechanism to use
917 --with-system-zlib use installed libz
918 --with-slibdir=DIR shared libraries in DIR LIBDIR
920 Some influential environment variables:
921 CC C compiler command
922 CFLAGS C compiler flags
923 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
924 nonstandard directory <lib dir>
925 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
926 headers in a nonstandard directory <include dir>
929 Use these variables to override the choices made by `configure' or to help
930 it to find libraries and programs with nonstandard names/locations.
935 if test "$ac_init_help" = "recursive"; then
936 # If there are subdirs, report their specific --help.
938 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
939 test -d $ac_dir || continue
942 if test "$ac_dir" != .; then
943 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
944 # A "../" for each directory in $ac_dir_suffix.
945 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 ac_dir_suffix= ac_top_builddir=
951 .) # No --srcdir option. We are building in place.
953 if test -z "$ac_top_builddir"; then
956 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958 [\\/]* | ?:[\\/]* ) # Absolute path.
959 ac_srcdir=$srcdir$ac_dir_suffix;
960 ac_top_srcdir=$srcdir ;;
962 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
963 ac_top_srcdir=$ac_top_builddir$srcdir ;;
966 # Do not use `cd foo && pwd` to compute absolute paths, because
967 # the directories may not exist.
969 .) ac_abs_builddir="$ac_dir";;
972 .) ac_abs_builddir=`pwd`;;
973 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
974 *) ac_abs_builddir=`pwd`/"$ac_dir";;
977 case $ac_abs_builddir in
978 .) ac_abs_top_builddir=${ac_top_builddir}.;;
980 case ${ac_top_builddir}. in
981 .) ac_abs_top_builddir=$ac_abs_builddir;;
982 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
983 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
986 case $ac_abs_builddir in
987 .) ac_abs_srcdir=$ac_srcdir;;
990 .) ac_abs_srcdir=$ac_abs_builddir;;
991 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
992 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
995 case $ac_abs_builddir in
996 .) ac_abs_top_srcdir=$ac_top_srcdir;;
998 case $ac_top_srcdir in
999 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1000 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1001 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1006 # Check for guested configure; otherwise get Cygnus style configure.
1007 if test -f $ac_srcdir/configure.gnu; then
1009 $SHELL $ac_srcdir/configure.gnu --help=recursive
1010 elif test -f $ac_srcdir/configure; then
1012 $SHELL $ac_srcdir/configure --help=recursive
1013 elif test -f $ac_srcdir/configure.ac ||
1014 test -f $ac_srcdir/configure.in; then
1016 $ac_configure --help
1018 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1024 test -n "$ac_init_help" && exit 0
1025 if $ac_init_version; then
1028 Copyright (C) 2003 Free Software Foundation, Inc.
1029 This configure script is free software; the Free Software Foundation
1030 gives unlimited permission to copy, distribute and modify it.
1036 This file contains any messages produced by compilers while
1037 running configure, to aid debugging if configure makes a mistake.
1039 It was created by $as_me, which was
1040 generated by GNU Autoconf 2.59. Invocation command line was
1051 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1052 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1053 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1054 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1055 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1057 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1058 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1060 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1061 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1062 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1063 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1064 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1065 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1066 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1074 test -z "$as_dir" && as_dir=.
1075 echo "PATH: $as_dir"
1090 # Keep a trace of the command line.
1091 # Strip out --no-create and --no-recursion so they do not pile up.
1092 # Strip out --silent because we don't want to record it for future runs.
1093 # Also quote any args containing shell meta-characters.
1094 # Make two passes to allow for proper duplicate-argument suppression.
1099 ac_must_keep_next=false
1105 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1109 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1110 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1113 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1115 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1116 if test $ac_must_keep_next = true; then
1117 ac_must_keep_next=false # Got value, back to normal.
1120 *=* | --config-cache | -C | -disable-* | --disable-* \
1121 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1122 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1123 | -with-* | --with-* | -without-* | --without-* | --x)
1124 case "$ac_configure_args0 " in
1125 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1128 -* ) ac_must_keep_next=true ;;
1131 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1132 # Get rid of the leading space.
1138 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1139 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1141 # When interrupted or exit'd, cleanup temporary files, and complete
1142 # config.log. We remove comments because anyway the quotes in there
1143 # would cause problems or look ugly.
1144 # WARNING: Be sure not to use single quotes in there, as some shells,
1145 # such as our DU 5.0 friend, will then `close' the trap.
1146 trap 'exit_status=$?
1147 # Save into config.log some information that might help in debugging.
1152 ## ---------------- ##
1153 ## Cache variables. ##
1154 ## ---------------- ##
1157 # The following way of writing the cache mishandles newlines in values,
1160 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1163 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1168 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1175 ## ----------------- ##
1176 ## Output variables. ##
1177 ## ----------------- ##
1180 for ac_var in $ac_subst_vars
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -n "$ac_subst_files"; then
1194 for ac_var in $ac_subst_files
1196 eval ac_val=$`echo $ac_var`
1197 echo "$ac_var='"'"'$ac_val'"'"'"
1202 if test -s confdefs.h; then
1209 sed "/^$/d" confdefs.h | sort
1212 test "$ac_signal" != 0 &&
1213 echo "$as_me: caught signal $ac_signal"
1214 echo "$as_me: exit $exit_status"
1216 rm -f core *.core &&
1217 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1220 for ac_signal in 1 2 13 15; do
1221 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1225 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1226 rm -rf conftest* confdefs.h
1227 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1230 # Predefined preprocessor variables.
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_NAME "$PACKAGE_NAME"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_STRING "$PACKAGE_STRING"
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1257 # Let the site file select an alternate cache file if it wants to.
1258 # Prefer explicitly selected file to automatically selected ones.
1259 if test -z "$CONFIG_SITE"; then
1260 if test "x$prefix" != xNONE; then
1261 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1263 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1266 for ac_site_file in $CONFIG_SITE; do
1267 if test -r "$ac_site_file"; then
1268 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1269 echo "$as_me: loading site script $ac_site_file" >&6;}
1270 sed 's/^/| /' "$ac_site_file" >&5
1275 if test -r "$cache_file"; then
1276 # Some versions of bash will fail to source /dev/null (special
1277 # files actually), so we avoid doing that.
1278 if test -f "$cache_file"; then
1279 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1280 echo "$as_me: loading cache $cache_file" >&6;}
1282 [\\/]* | ?:[\\/]* ) . $cache_file;;
1283 *) . ./$cache_file;;
1287 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1288 echo "$as_me: creating cache $cache_file" >&6;}
1292 # Check that the precious variables saved in the cache have kept the same
1294 ac_cache_corrupted=false
1295 for ac_var in `(set) 2>&1 |
1296 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1297 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1298 eval ac_new_set=\$ac_env_${ac_var}_set
1299 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1300 eval ac_new_val="\$ac_env_${ac_var}_value"
1301 case $ac_old_set,$ac_new_set in
1303 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1304 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1305 ac_cache_corrupted=: ;;
1307 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1308 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1309 ac_cache_corrupted=: ;;
1312 if test "x$ac_old_val" != "x$ac_new_val"; then
1313 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1314 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1315 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1316 echo "$as_me: former value: $ac_old_val" >&2;}
1317 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1318 echo "$as_me: current value: $ac_new_val" >&2;}
1319 ac_cache_corrupted=:
1322 # Pass precious variables to config.status.
1323 if test "$ac_new_set" = set; then
1325 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1327 *) ac_arg=$ac_var=$ac_new_val ;;
1329 case " $ac_configure_args " in
1330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1331 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1335 if $ac_cache_corrupted; then
1336 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1337 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1338 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1339 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1340 { (exit 1); exit 1; }; }
1344 ac_cpp='$CPP $CPPFLAGS'
1345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1368 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1371 # Determine the host, build, and target systems
1373 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1374 if test -f $ac_dir/install-sh; then
1376 ac_install_sh="$ac_aux_dir/install-sh -c"
1378 elif test -f $ac_dir/install.sh; then
1380 ac_install_sh="$ac_aux_dir/install.sh -c"
1382 elif test -f $ac_dir/shtool; then
1384 ac_install_sh="$ac_aux_dir/shtool install -c"
1388 if test -z "$ac_aux_dir"; then
1389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1390 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1391 { (exit 1); exit 1; }; }
1393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1397 # Make sure we can run config.sub.
1398 $ac_config_sub sun4 >/dev/null 2>&1 ||
1399 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1400 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1401 { (exit 1); exit 1; }; }
1403 echo "$as_me:$LINENO: checking build system type" >&5
1404 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1405 if test "${ac_cv_build+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 ac_cv_build_alias=$build_alias
1409 test -z "$ac_cv_build_alias" &&
1410 ac_cv_build_alias=`$ac_config_guess`
1411 test -z "$ac_cv_build_alias" &&
1412 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1413 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1414 { (exit 1); exit 1; }; }
1415 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1422 echo "${ECHO_T}$ac_cv_build" >&6
1424 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 echo "$as_me:$LINENO: checking host system type" >&5
1430 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1431 if test "${ac_cv_host+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_host_alias=$host_alias
1435 test -z "$ac_cv_host_alias" &&
1436 ac_cv_host_alias=$ac_cv_build_alias
1437 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1438 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1439 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1440 { (exit 1); exit 1; }; }
1443 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1444 echo "${ECHO_T}$ac_cv_host" >&6
1446 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1447 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1448 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451 echo "$as_me:$LINENO: checking target system type" >&5
1452 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1453 if test "${ac_cv_target+set}" = set; then
1454 echo $ECHO_N "(cached) $ECHO_C" >&6
1456 ac_cv_target_alias=$target_alias
1457 test "x$ac_cv_target_alias" = "x" &&
1458 ac_cv_target_alias=$ac_cv_host_alias
1459 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1461 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1462 { (exit 1); exit 1; }; }
1465 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1466 echo "${ECHO_T}$ac_cv_target" >&6
1467 target=$ac_cv_target
1468 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1469 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1470 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473 # The aliases save the names the user supplied, while $host etc.
1474 # will get canonicalized.
1475 test -n "$target_alias" &&
1476 test "$program_prefix$program_suffix$program_transform_name" = \
1478 program_prefix=${target_alias}-
1480 # Determine the noncanonical target name, for directory use.
1481 case ${build_alias} in
1482 "") build_noncanonical=${build} ;;
1483 *) build_noncanonical=${build_alias} ;;
1486 case ${host_alias} in
1487 "") host_noncanonical=${build_noncanonical} ;;
1488 *) host_noncanonical=${host_alias} ;;
1491 case ${target_alias} in
1492 "") target_noncanonical=${host_noncanonical} ;;
1493 *) target_noncanonical=${target_alias} ;;
1497 # Determine the target- and build-specific subdirectories
1498 # Prefix 'build-' so this never conflicts with target_subdir.
1499 build_subdir="build-${build_noncanonical}"
1500 # Not really a subdirectory, but here for completeness.
1503 target_subdir=${target_noncanonical}
1506 # Set program_transform_name
1507 test "$program_prefix" != NONE &&
1508 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1509 # Use a double $ so make ignores it.
1510 test "$program_suffix" != NONE &&
1511 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1512 # Double any \ or $. echo might interpret backslashes.
1513 # By default was `s,x,x', remove it if useless.
1514 cat <<\_ACEOF >conftest.sed
1515 s/[\\$]/&&/g;s/;s,x,x,$//
1517 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1521 # Check for bogus environment variables.
1522 # Test if LIBRARY_PATH contains the notation for the current directory
1523 # since this would lead to problems installing/building glibc.
1524 # LIBRARY_PATH contains the current directory if one of the following
1526 # - one of the terminals (":" and ";") is the first or last sign
1527 # - two terminals occur directly after each other
1528 # - the path contains an element with a dot in it
1529 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1530 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1531 case ${LIBRARY_PATH} in
1532 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1533 library_path_setting="contains current directory"
1536 library_path_setting="ok"
1539 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1540 echo "${ECHO_T}$library_path_setting" >&6
1541 if test "$library_path_setting" != "ok"; then
1542 { { echo "$as_me:$LINENO: error:
1543 *** LIBRARY_PATH shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&5
1546 echo "$as_me: error:
1547 *** LIBRARY_PATH shouldn't contain the current directory when
1548 *** building gcc. Please change the environment variable
1549 *** and run configure again." >&2;}
1550 { (exit 1); exit 1; }; }
1553 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # GCC_EXEC_PREFIX contains the current directory if one of the following
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1561 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1562 case ${GCC_EXEC_PREFIX} in
1563 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564 gcc_exec_prefix_setting="contains current directory"
1567 gcc_exec_prefix_setting="ok"
1570 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1571 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1572 if test "$gcc_exec_prefix_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1588 # Specify the local prefix
1591 # Check whether --with-local-prefix or --without-local-prefix was given.
1592 if test "${with_local_prefix+set}" = set; then
1593 withval="$with_local_prefix"
1594 case "${withval}" in
1595 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1596 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1597 { (exit 1); exit 1; }; } ;;
1599 *) local_prefix=$with_local_prefix ;;
1603 # Default local prefix if it is empty
1604 if test x$local_prefix = x; then
1605 local_prefix=/usr/local
1608 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1609 # passed in by the toplevel make and thus we'd get different behavior
1610 # depending on where we built the sources.
1611 gcc_gxx_include_dir=
1612 # Specify the g++ header file directory
1614 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1615 if test "${with_gxx_include_dir+set}" = set; then
1616 withval="$with_gxx_include_dir"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1619 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1622 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1626 if test x${gcc_gxx_include_dir} = x; then
1627 if test x${enable_version_specific_runtime_libs} = xyes; then
1628 gcc_gxx_include_dir='${libsubdir}/include/c++'
1630 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1631 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1636 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1637 if test "${with_cpp_install_dir+set}" = set; then
1638 withval="$with_cpp_install_dir"
1639 if test x$withval = xyes; then
1640 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1641 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1642 { (exit 1); exit 1; }; }
1643 elif test x$withval != xno; then
1644 cpp_install_dir=$withval
1648 # We would like to our source tree to be readonly. However when releases or
1649 # pre-releases are generated, the flex/bison generated files as well as the
1650 # various formats of manuals need to be included along with the rest of the
1651 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1654 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1655 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1656 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1657 if test "${enable_generated_files_in_srcdir+set}" = set; then
1658 enableval="$enable_generated_files_in_srcdir"
1659 generated_files_in_srcdir=$enableval
1661 generated_files_in_srcdir=no
1664 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1665 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1667 if test "$generated_files_in_srcdir" = "yes"; then
1674 # -------------------
1675 # Find default linker
1676 # -------------------
1680 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1681 if test "${with_gnu_ld+set}" = set; then
1682 withval="$with_gnu_ld"
1683 gnu_ld_flag="$with_gnu_ld"
1688 # With pre-defined ld
1690 # Check whether --with-ld or --without-ld was given.
1691 if test "${with_ld+set}" = set; then
1693 DEFAULT_LINKER="$with_ld"
1695 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1696 if test ! -x "$DEFAULT_LINKER"; then
1697 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1698 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1699 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1703 cat >>confdefs.h <<_ACEOF
1704 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1709 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1710 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1711 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1712 if test x"$gnu_ld_flag" = x"no"; then
1713 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1714 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1716 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1717 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1720 echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1724 # ----------------------
1725 # Find default assembler
1726 # ----------------------
1730 # Check whether --with-gnu-as or --without-gnu-as was given.
1731 if test "${with_gnu_as+set}" = set; then
1732 withval="$with_gnu_as"
1733 gas_flag="$with_gnu_as"
1739 # Check whether --with-as or --without-as was given.
1740 if test "${with_as+set}" = set; then
1742 DEFAULT_ASSEMBLER="$with_as"
1744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1745 if test ! -x "$DEFAULT_ASSEMBLER"; then
1746 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1747 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1748 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1752 cat >>confdefs.h <<_ACEOF
1753 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1758 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1759 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1760 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1761 if test x"$gas_flag" = x"no"; then
1762 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1763 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1765 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1766 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1777 # If a non-executable a.out is present (e.g. created by GNU as above even if
1778 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1779 # file, even when creating an executable, so an execution test fails.
1780 # Remove possible default executable files to avoid this.
1782 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1783 # Autoconf includes it.
1784 rm -f a.out a.exe b.out
1786 # Find the native compiler
1788 ac_cpp='$CPP $CPPFLAGS'
1789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792 if test -n "$ac_tool_prefix"; then
1793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1794 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 if test -n "$CC"; then
1821 echo "$as_me:$LINENO: result: $CC" >&5
1822 echo "${ECHO_T}$CC" >&6
1824 echo "$as_me:$LINENO: result: no" >&5
1825 echo "${ECHO_T}no" >&6
1829 if test -z "$ac_cv_prog_CC"; then
1831 # Extract the first word of "gcc", so it can be a program name with args.
1832 set dummy gcc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$ac_ct_CC"; then
1839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_ac_ct_CC="gcc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1871 if test -z "$CC"; then
1872 if test -n "$ac_tool_prefix"; then
1873 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1874 set dummy ${ac_tool_prefix}cc; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$CC"; then
1881 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890 ac_cv_prog_CC="${ac_tool_prefix}cc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 if test -n "$CC"; then
1901 echo "$as_me:$LINENO: result: $CC" >&5
1902 echo "${ECHO_T}$CC" >&6
1904 echo "$as_me:$LINENO: result: no" >&5
1905 echo "${ECHO_T}no" >&6
1909 if test -z "$ac_cv_prog_CC"; then
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$ac_ct_CC"; then
1919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928 ac_cv_prog_ac_ct_CC="cc"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1938 if test -n "$ac_ct_CC"; then
1939 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1940 echo "${ECHO_T}$ac_ct_CC" >&6
1942 echo "$as_me:$LINENO: result: no" >&5
1943 echo "${ECHO_T}no" >&6
1952 if test -z "$CC"; then
1953 # Extract the first word of "cc", so it can be a program name with args.
1954 set dummy cc; ac_word=$2
1955 echo "$as_me:$LINENO: checking for $ac_word" >&5
1956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957 if test "${ac_cv_prog_CC+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 if test -n "$CC"; then
1961 ac_cv_prog_CC="$CC" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1972 ac_prog_rejected=yes
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 if test $ac_prog_rejected = yes; then
1983 # We found a bogon in the path, so make sure we never use it.
1984 set dummy $ac_cv_prog_CC
1986 if test $# != 0; then
1987 # We chose a different compiler from the bogus one.
1988 # However, it has the same basename, so the bogon will be chosen
1989 # first if we set CC to just the basename; use the full file name.
1991 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1997 if test -n "$CC"; then
1998 echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2006 if test -z "$CC"; then
2007 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2027 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037 if test -n "$CC"; then
2038 echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2041 echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2045 test -n "$CC" && break
2048 if test -z "$CC"; then
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_CC="$ac_prog"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6
2083 echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6
2087 test -n "$ac_ct_CC" && break
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO:" \
2104 "checking for C compiler version" >&5
2105 ac_compiler=`set X $ac_compile; echo $2`
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2107 (eval $ac_compiler --version </dev/null >&5) 2>&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }
2111 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2112 (eval $ac_compiler -v </dev/null >&5) 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2117 (eval $ac_compiler -V </dev/null >&5) 2>&5
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2142 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2143 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2146 (eval $ac_link_default) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # Find the output, starting from the most likely. This scheme is
2151 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2154 # Be careful to initialize this variable, since it used to be cached.
2155 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2157 # b.out is created by i960 compilers.
2158 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2165 # This is the source file.
2168 # We found the default executable, but exeext='' is most
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # FIXME: I believe we export ac_cv_exeext for Libtool,
2174 # but it would be cool to find out if it's true. Does anybody
2175 # maintain Libtool? --akim.
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&2;}
2190 { (exit 77); exit 77; }; }
2193 ac_exeext=$ac_cv_exeext
2194 echo "$as_me:$LINENO: result: $ac_file" >&5
2195 echo "${ECHO_T}$ac_file" >&6
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204 if { ac_try='./$ac_file'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 if test "$cross_compiling" = maybe; then
2215 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2225 echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2228 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2229 ac_clean_files=$ac_clean_files_save
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2233 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2234 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2235 echo "${ECHO_T}$cross_compiling" >&6
2237 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2238 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2246 # work properly (i.e., refer to `conftest.exe'), while it won't with
2248 for ac_file in conftest.exe conftest conftest.*; do
2249 test -f "$ac_file" || continue
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2268 echo "${ECHO_T}$ac_cv_exeext" >&6
2270 rm -f conftest.$ac_ext
2271 EXEEXT=$ac_cv_exeext
2273 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2274 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2275 if test "${ac_cv_objext+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 cat >conftest.$ac_ext <<_ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>conftest.er1
2350 grep -v '^ *+' conftest.er1 >conftest.err
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2379 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2380 GCC=`test $ac_compiler_gnu = yes && echo yes`
2381 ac_test_CFLAGS=${CFLAGS+set}
2382 ac_save_CFLAGS=$CFLAGS
2384 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2385 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_g+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2435 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2436 if test "$ac_test_CFLAGS" = set; then
2437 CFLAGS=$ac_save_CFLAGS
2438 elif test $ac_cv_prog_cc_g = yes; then
2439 if test "$GCC" = yes; then
2445 if test "$GCC" = yes; then
2451 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2452 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2453 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2456 ac_cv_prog_cc_stdc=no
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2466 #include <sys/types.h>
2467 #include <sys/stat.h>
2468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2469 struct buf { int x; };
2470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2471 static char *e (p, i)
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2482 s = g (p, va_arg (v,int));
2487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2488 function prototypes and stuff, but not '\xHH' hex character constants.
2489 These don't provoke an error unfortunately, instead are silently treated
2490 as 'x'. The following induces an error, until -std1 is added to get
2491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2492 array size at least. It's necessary to write '\x00'==0 to get something
2493 that's true only with -std1. */
2494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2496 int test (int i, double x);
2497 struct s1 {int (*f) (int a);};
2498 struct s2 {int (*f) (double a);};
2499 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2505 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2510 # Don't try gcc -ansi; that turns off useful extensions and
2511 # breaks some systems' header files.
2512 # AIX -qlanglvl=ansi
2513 # Ultrix and OSF/1 -std1
2514 # HP-UX 10.20 and later -Ae
2515 # HP-UX older versions -Aa -D_HPUX_SOURCE
2516 # SVR4 -Xc -D__EXTENSIONS__
2517 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2519 CC="$ac_save_CC $ac_arg"
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 ac_cv_prog_cc_stdc=$ac_arg
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext
2550 rm -f conftest.$ac_ext conftest.$ac_objext
2555 case "x$ac_cv_prog_cc_stdc" in
2557 echo "$as_me:$LINENO: result: none needed" >&5
2558 echo "${ECHO_T}none needed" >&6 ;;
2560 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2562 CC="$CC $ac_cv_prog_cc_stdc" ;;
2565 # Some people use a C++ compiler to compile C. Since we use `exit',
2566 # in C++ we need to declare it. In case someone uses the same compiler
2567 # for both compiling C and C++ we need to have the C++ compiler decide
2568 # the declaration of exit, since it's the most demanding environment.
2569 cat >conftest.$ac_ext <<_ACEOF
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; } &&
2589 { ac_try='test -s conftest.$ac_objext'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 for ac_declaration in \
2597 'extern "C" void std::exit (int) throw (); using std::exit;' \
2598 'extern "C" void std::exit (int); using std::exit;' \
2599 'extern "C" void exit (int) throw ();' \
2600 'extern "C" void exit (int);' \
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; } &&
2634 { ac_try='test -s conftest.$ac_objext'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; }; then
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2648 cat >conftest.$ac_ext <<_ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693 if test -n "$ac_declaration"; then
2694 echo '#ifdef __cplusplus' >>confdefs.h
2695 echo $ac_declaration >>confdefs.h
2696 echo '#endif' >>confdefs.h
2700 echo "$as_me: failed program was:" >&5
2701 sed 's/^/| /' conftest.$ac_ext >&5
2704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2711 if test "x$CC" != xcc; then
2712 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2713 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2715 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2716 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2718 set dummy $CC; ac_cc=`echo $2 |
2719 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2720 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 # Make sure it works both with $CC and with simple cc.
2739 # We do the test twice because some compilers refuse to overwrite an
2740 # existing .o file with -o, though they will create one.
2741 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2742 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); };
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2754 if test "x$CC" != xcc; then
2755 # Test first that cc exists at all.
2756 if { ac_try='cc -c conftest.$ac_ext >&5'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2763 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); };
2777 # cc exists but doesn't like -o.
2778 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2783 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2788 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2789 echo "$as_me:$LINENO: result: yes" >&5
2790 echo "${ECHO_T}yes" >&6
2792 echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2795 cat >>confdefs.h <<\_ACEOF
2796 #define NO_MINUS_C_MINUS_O 1
2801 # autoconf is lame and doesn't give us any substitution variable for this.
2802 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2803 NO_MINUS_C_MINUS_O=yes
2805 OUTPUT_OPTION='-o $@'
2810 # -------------------------
2811 # Check C compiler features
2812 # -------------------------
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2820 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2821 # On Suns, sometimes $CPP names a directory.
2822 if test -n "$CPP" && test -d "$CPP"; then
2825 if test -z "$CPP"; then
2826 if test "${ac_cv_prog_CPP+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 # Double quotes because CPP needs to be expanded
2830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2833 for ac_c_preproc_warn_flag in '' yes
2835 # Use a header file that comes with gcc, so configuring glibc
2836 # with a fresh cross-compiler works.
2837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2838 # <limits.h> exists even on freestanding compilers.
2839 # On the NeXT, cc -E runs the code through the compiler's parser,
2840 # not just through cpp. "Syntax error" is here to catch this case.
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2848 # include <limits.h>
2850 # include <assert.h>
2854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } >/dev/null; then
2862 if test -s conftest.err; then
2863 ac_cpp_err=$ac_c_preproc_warn_flag
2864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2871 if test -z "$ac_cpp_err"; then
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2877 # Broken: fails on valid input.
2880 rm -f conftest.err conftest.$ac_ext
2882 # OK, works on sane cases. Now check whether non-existent headers
2883 # can be detected and how.
2884 cat >conftest.$ac_ext <<_ACEOF
2887 cat confdefs.h >>conftest.$ac_ext
2888 cat >>conftest.$ac_ext <<_ACEOF
2889 /* end confdefs.h. */
2890 #include <ac_nonexistent.h>
2892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2895 grep -v '^ *+' conftest.er1 >conftest.err
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } >/dev/null; then
2900 if test -s conftest.err; then
2901 ac_cpp_err=$ac_c_preproc_warn_flag
2902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2909 if test -z "$ac_cpp_err"; then
2910 # Broken: success on invalid input.
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2916 # Passes both tests.
2920 rm -f conftest.err conftest.$ac_ext
2923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2924 rm -f conftest.err conftest.$ac_ext
2925 if $ac_preproc_ok; then
2937 echo "$as_me:$LINENO: result: $CPP" >&5
2938 echo "${ECHO_T}$CPP" >&6
2940 for ac_c_preproc_warn_flag in '' yes
2942 # Use a header file that comes with gcc, so configuring glibc
2943 # with a fresh cross-compiler works.
2944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2945 # <limits.h> exists even on freestanding compilers.
2946 # On the NeXT, cc -E runs the code through the compiler's parser,
2947 # not just through cpp. "Syntax error" is here to catch this case.
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2955 # include <limits.h>
2957 # include <assert.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev/null; then
2969 if test -s conftest.err; then
2970 ac_cpp_err=$ac_c_preproc_warn_flag
2971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 # Broken: fails on valid input.
2987 rm -f conftest.err conftest.$ac_ext
2989 # OK, works on sane cases. Now check whether non-existent headers
2990 # can be detected and how.
2991 cat >conftest.$ac_ext <<_ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h. */
2997 #include <ac_nonexistent.h>
2999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } >/dev/null; then
3007 if test -s conftest.err; then
3008 ac_cpp_err=$ac_c_preproc_warn_flag
3009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3016 if test -z "$ac_cpp_err"; then
3017 # Broken: success on invalid input.
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 # Passes both tests.
3027 rm -f conftest.err conftest.$ac_ext
3030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3031 rm -f conftest.err conftest.$ac_ext
3032 if $ac_preproc_ok; then
3035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3049 echo "$as_me:$LINENO: checking for inline" >&5
3050 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3051 if test "${ac_cv_c_inline+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 for ac_kw in inline __inline__ __inline; do
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3064 static $ac_kw foo_t static_foo () {return 0; }
3065 $ac_kw foo_t foo () {return 0; }
3069 rm -f conftest.$ac_objext
3070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3071 (eval $ac_compile) 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } &&
3078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_c_inline=$ac_kw; break
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3101 echo "${ECHO_T}$ac_cv_c_inline" >&6
3104 case $ac_cv_c_inline in
3107 case $ac_cv_c_inline in
3109 *) ac_val=$ac_cv_c_inline;;
3111 cat >>confdefs.h <<_ACEOF
3113 #define inline $ac_val
3120 echo "$as_me:$LINENO: checking for long long int" >&5
3121 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3122 if test "${ac_cv_c_long_long+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3140 rm -f conftest.$ac_objext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3142 (eval $ac_compile) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest.$ac_objext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_c_long_long=yes
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_cv_c_long_long=no
3168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3171 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3172 if test $ac_cv_c_long_long = yes; then
3174 cat >>confdefs.h <<\_ACEOF
3175 #define HAVE_LONG_LONG 1
3179 echo "$as_me:$LINENO: checking for __int64" >&5
3180 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3181 if test "${ac_cv_c___int64+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 cat >conftest.$ac_ext <<_ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3230 echo "${ECHO_T}$ac_cv_c___int64" >&6
3231 if test $ac_cv_c___int64 = yes; then
3233 cat >>confdefs.h <<\_ACEOF
3234 #define HAVE___INT64 1
3239 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3240 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3241 if test "${gcc_cv_c__bool+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 cat >conftest.$ac_ext <<_ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261 (eval $ac_compile) 2>conftest.er1
3263 grep -v '^ *+' conftest.er1 >conftest.err
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3291 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3292 if test $gcc_cv_c__bool = yes; then
3294 cat >>confdefs.h <<\_ACEOF
3295 #define HAVE__BOOL 1
3301 # sizeof(char) is 1 by definition.
3302 echo "$as_me:$LINENO: checking size of void *" >&5
3303 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3304 if test "${ac_cv_sizeof_void_p+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3314 #include "confdefs.h"
3315 #include <sys/types.h>
3321 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>conftest.er1
3330 grep -v '^ *+' conftest.er1 >conftest.err
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); }; }; then
3347 ac_cv_sizeof_void_p=$ac_size
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3354 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3359 if test x$ac_cv_sizeof_void_p = x ; then
3360 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3361 echo "$as_me: error: cannot determine a size for void *" >&2;}
3362 { (exit 1); exit 1; }; }
3364 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3365 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3367 cat >>confdefs.h <<_ACEOF
3368 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3372 echo "$as_me:$LINENO: checking size of short" >&5
3373 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3374 if test "${ac_cv_sizeof_short+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3384 #include "confdefs.h"
3385 #include <sys/types.h>
3391 switch (0) case 0: case (sizeof (short) == $ac_size):;
3396 rm -f conftest.$ac_objext
3397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3398 (eval $ac_compile) 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 ac_cv_sizeof_short=$ac_size
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424 if test x$ac_cv_sizeof_short != x ; then break; fi
3429 if test x$ac_cv_sizeof_short = x ; then
3430 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3431 echo "$as_me: error: cannot determine a size for short" >&2;}
3432 { (exit 1); exit 1; }; }
3434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3435 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3437 cat >>confdefs.h <<_ACEOF
3438 #define SIZEOF_SHORT $ac_cv_sizeof_short
3442 echo "$as_me:$LINENO: checking size of int" >&5
3443 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3444 if test "${ac_cv_sizeof_int+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3461 switch (0) case 0: case (sizeof (int) == $ac_size):;
3466 rm -f conftest.$ac_objext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468 (eval $ac_compile) 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } &&
3475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_sizeof_int=$ac_size
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 if test x$ac_cv_sizeof_int != x ; then break; fi
3499 if test x$ac_cv_sizeof_int = x ; then
3500 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3501 echo "$as_me: error: cannot determine a size for int" >&2;}
3502 { (exit 1); exit 1; }; }
3504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3507 cat >>confdefs.h <<_ACEOF
3508 #define SIZEOF_INT $ac_cv_sizeof_int
3512 echo "$as_me:$LINENO: checking size of long" >&5
3513 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3514 if test "${ac_cv_sizeof_long+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 #include "confdefs.h"
3525 #include <sys/types.h>
3531 switch (0) case 0: case (sizeof (long) == $ac_size):;
3536 rm -f conftest.$ac_objext
3537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_cv_sizeof_long=$ac_size
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3564 if test x$ac_cv_sizeof_long != x ; then break; fi
3569 if test x$ac_cv_sizeof_long = x ; then
3570 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3571 echo "$as_me: error: cannot determine a size for long" >&2;}
3572 { (exit 1); exit 1; }; }
3574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3575 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3577 cat >>confdefs.h <<_ACEOF
3578 #define SIZEOF_LONG $ac_cv_sizeof_long
3582 if test $ac_cv_c_long_long = yes; then
3583 echo "$as_me:$LINENO: checking size of long long" >&5
3584 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3585 if test "${ac_cv_sizeof_long_long+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3589 cat >conftest.$ac_ext <<_ACEOF
3592 cat confdefs.h >>conftest.$ac_ext
3593 cat >>conftest.$ac_ext <<_ACEOF
3594 /* end confdefs.h. */
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3607 rm -f conftest.$ac_objext
3608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609 (eval $ac_compile) 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_sizeof_long_long=$ac_size
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3635 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3640 if test x$ac_cv_sizeof_long_long = x ; then
3641 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3642 echo "$as_me: error: cannot determine a size for long long" >&2;}
3643 { (exit 1); exit 1; }; }
3645 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3648 cat >>confdefs.h <<_ACEOF
3649 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3654 if test $ac_cv_c___int64 = yes; then
3655 echo "$as_me:$LINENO: checking size of __int64" >&5
3656 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3657 if test "${ac_cv_sizeof___int64+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3674 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3683 grep -v '^ *+' conftest.er1 >conftest.err
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_cv_sizeof___int64=$ac_size
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3712 if test x$ac_cv_sizeof___int64 = x ; then
3713 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3714 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3715 { (exit 1); exit 1; }; }
3717 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3718 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3720 cat >>confdefs.h <<_ACEOF
3721 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3727 # ---------------------
3728 # Warnings and checking
3729 # ---------------------
3731 # Check $CC warning features (if it's GCC).
3732 # We want to use -pedantic, but we don't want warnings about
3735 # So, we only use -pedantic if we can disable those warnings.
3737 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3738 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 save_CFLAGS="$CFLAGS"
3743 CFLAGS="-Wno-long-long"
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754 (eval $ac_compile) 2>conftest.er1
3756 grep -v '^ *+' conftest.er1 >conftest.err
3758 cat conftest.err >&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } &&
3761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; } &&
3767 { ac_try='test -s conftest.$ac_objext'
3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; }; then
3773 ac_cv_prog_cc_w_no_long_long=yes
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 ac_cv_prog_cc_w_no_long_long=no
3780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3781 CFLAGS="$save_CFLAGS"
3784 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3787 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3788 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3789 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 save_CFLAGS="$CFLAGS"
3793 CFLAGS="-Wno-variadic-macros"
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3802 rm -f conftest.$ac_objext
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 ac_cv_prog_cc_w_no_variadic_macros=yes
3825 echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 ac_cv_prog_cc_w_no_variadic_macros=no
3830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3831 CFLAGS="$save_CFLAGS"
3834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3835 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3838 if test $ac_cv_prog_cc_w_no_long_long = yes \
3839 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3840 strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
3844 # Add -Wold-style-definition if it's accepted
3845 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3846 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3847 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 save_CFLAGS="$CFLAGS"
3851 CFLAGS="-Wold-style-definition"
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3860 rm -f conftest.$ac_objext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3862 (eval $ac_compile) 2>conftest.er1
3864 grep -v '^ *+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest.$ac_objext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
3881 ac_cv_prog_cc_w_old_style_definition=yes
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_cv_prog_cc_w_old_style_definition=no
3888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3889 CFLAGS="$save_CFLAGS"
3892 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3893 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3894 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3895 strict1_warn="${strict1_warn} -Wold-style-definition"
3898 # Enable -Werror, period.
3899 # Check whether --enable-werror_always or --disable-werror_always was given.
3900 if test "${enable_werror_always+set}" = set; then
3901 enableval="$enable_werror_always"
3904 enable_werror_always=no
3906 if test x${enable_werror_always} = xyes ; then
3907 strict1_warn="${strict1_warn} -Werror"
3911 # If the native compiler is GCC, we can enable warnings even in stage1.
3912 # That's useful for people building cross-compilers, or just running a
3915 if test "x$GCC" = "xyes"; then
3916 warn_cflags='$(GCC_WARN_CFLAGS)'
3920 # Enable -Werror in bootstrap stage2 and later.
3921 # Change the default to "no" on release branches.
3922 # Check whether --enable-werror or --disable-werror was given.
3923 if test "${enable_werror+set}" = set; then
3924 enableval="$enable_werror"
3929 if test x$enable_werror = xyes ; then
3934 # Enable expensive internal checks
3935 # Check whether --enable-checking or --disable-checking was given.
3936 if test "${enable_checking+set}" = set; then
3937 enableval="$enable_checking"
3941 ac_rtlflag_checking=
3943 ac_gc_always_collect=
3945 case "${enableval}" in
3946 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3947 ac_rtlflag_checking=1 ;;
3949 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3950 set fnord $enableval; shift
3955 misc) ac_checking=1 ;;
3956 tree) ac_tree_checking=1 ;;
3957 rtlflag) ac_rtlflag_checking=1 ;;
3958 rtl) ac_rtl_checking=1 ;;
3959 gc) ac_gc_checking=1 ;;
3960 gcac) ac_gc_always_collect=1 ;;
3961 fold) ac_fold_checking=1 ;;
3962 valgrind) ac_checking_valgrind=1 ;;
3963 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3964 echo "$as_me: error: unknown check category $check" >&2;}
3965 { (exit 1); exit 1; }; } ;;
3972 # Enable some checks by default for development versions of GCC
3973 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3976 if test x$ac_checking != x ; then
3978 cat >>confdefs.h <<\_ACEOF
3979 #define ENABLE_CHECKING 1
3982 nocommon_flag=-fno-common
3985 if test x$ac_tree_checking != x ; then
3987 cat >>confdefs.h <<\_ACEOF
3988 #define ENABLE_TREE_CHECKING 1
3992 if test x$ac_rtl_checking != x ; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define ENABLE_RTL_CHECKING 1
3999 if test x$ac_rtlflag_checking != x ; then
4001 cat >>confdefs.h <<\_ACEOF
4002 #define ENABLE_RTL_FLAG_CHECKING 1
4006 if test x$ac_gc_checking != x ; then
4008 cat >>confdefs.h <<\_ACEOF
4009 #define ENABLE_GC_CHECKING 1
4013 if test x$ac_gc_always_collect != x ; then
4015 cat >>confdefs.h <<\_ACEOF
4016 #define ENABLE_GC_ALWAYS_COLLECT 1
4020 if test x$ac_fold_checking != x ; then
4022 cat >>confdefs.h <<\_ACEOF
4023 #define ENABLE_FOLD_CHECKING 1
4027 valgrind_path_defines=
4031 echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4033 if test "${ac_cv_prog_egrep+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4037 then ac_cv_prog_egrep='grep -E'
4038 else ac_cv_prog_egrep='egrep'
4041 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4042 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4043 EGREP=$ac_cv_prog_egrep
4046 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4047 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4048 if test "${ac_cv_header_stdc+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 cat >conftest.$ac_ext <<_ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4074 grep -v '^ *+' conftest.er1 >conftest.err
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 ac_cv_header_stdc=yes
4093 echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 ac_cv_header_stdc=no
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 if test $ac_cv_header_stdc = yes; then
4101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4102 cat >conftest.$ac_ext <<_ACEOF
4105 cat confdefs.h >>conftest.$ac_ext
4106 cat >>conftest.$ac_ext <<_ACEOF
4107 /* end confdefs.h. */
4111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4112 $EGREP "memchr" >/dev/null 2>&1; then
4115 ac_cv_header_stdc=no
4121 if test $ac_cv_header_stdc = yes; then
4122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "free" >/dev/null 2>&1; then
4136 ac_cv_header_stdc=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4144 if test "$cross_compiling" = yes; then
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4154 #if ((' ' & 0x0FF) == 0x020)
4155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4158 # define ISLOWER(c) \
4159 (('a' <= (c) && (c) <= 'i') \
4160 || ('j' <= (c) && (c) <= 'r') \
4161 || ('s' <= (c) && (c) <= 'z'))
4162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4170 for (i = 0; i < 256; i++)
4171 if (XOR (islower (i), ISLOWER (i))
4172 || toupper (i) != TOUPPER (i))
4177 rm -f conftest$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4190 echo "$as_me: program exited with status $ac_status" >&5
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_header_stdc=no
4197 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4201 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4202 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4203 if test $ac_cv_header_stdc = yes; then
4205 cat >>confdefs.h <<\_ACEOF
4206 #define STDC_HEADERS 1
4211 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4222 inttypes.h stdint.h unistd.h
4224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4225 echo "$as_me:$LINENO: checking for $ac_header" >&5
4226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 $ac_includes_default
4238 #include <$ac_header>
4240 rm -f conftest.$ac_objext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242 (eval $ac_compile) 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 eval "$as_ac_Header=yes"
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4266 eval "$as_ac_Header=no"
4268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4282 if test "${ac_cv_header_valgrind_h+set}" = set; then
4283 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4284 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4285 if test "${ac_cv_header_valgrind_h+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4289 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4291 # Is the header compilable?
4292 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4293 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4301 #include <valgrind.h>
4303 rm -f conftest.$ac_objext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305 (eval $ac_compile) 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_header_compiler=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_header_compiler=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4333 echo "${ECHO_T}$ac_header_compiler" >&6
4335 # Is the header present?
4336 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4337 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4338 cat >conftest.$ac_ext <<_ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4344 #include <valgrind.h>
4346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } >/dev/null; then
4354 if test -s conftest.err; then
4355 ac_cpp_err=$ac_c_preproc_warn_flag
4356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4363 if test -z "$ac_cpp_err"; then
4364 ac_header_preproc=yes
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4369 ac_header_preproc=no
4371 rm -f conftest.err conftest.$ac_ext
4372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4373 echo "${ECHO_T}$ac_header_preproc" >&6
4375 # So? What about this header?
4376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4379 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4382 ac_header_preproc=yes
4385 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4386 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4387 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4388 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4389 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4390 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4391 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4392 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4393 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4394 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4395 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4396 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4399 ## ------------------------------------------ ##
4400 ## Report this to the AC_PACKAGE_NAME lists. ##
4401 ## ------------------------------------------ ##
4404 sed "s/^/$as_me: WARNING: /" >&2
4407 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4408 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4409 if test "${ac_cv_header_valgrind_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 ac_cv_header_valgrind_h=$ac_header_preproc
4414 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4415 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4418 if test $ac_cv_header_valgrind_h = yes; then
4426 if test x$ac_checking_valgrind != x ; then
4427 # It is certainly possible that there's valgrind but no valgrind.h.
4428 # GCC relies on making annotations so we must have both.
4429 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4430 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4431 cat >conftest.$ac_ext <<_ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <valgrind/memcheck.h>
4438 #ifndef VALGRIND_DISCARD
4439 #error VALGRIND_DISCARD not defined
4442 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4445 grep -v '^ *+' conftest.er1 >conftest.err
4447 cat conftest.err >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); } >/dev/null; then
4450 if test -s conftest.err; then
4451 ac_cpp_err=$ac_c_preproc_warn_flag
4452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4459 if test -z "$ac_cpp_err"; then
4460 gcc_cv_header_valgrind_memcheck_h=yes
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 gcc_cv_header_valgrind_memcheck_h=no
4467 rm -f conftest.err conftest.$ac_ext
4468 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4469 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4470 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4471 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4478 #include <memcheck.h>
4479 #ifndef VALGRIND_DISCARD
4480 #error VALGRIND_DISCARD not defined
4483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null; then
4491 if test -s conftest.err; then
4492 ac_cpp_err=$ac_c_preproc_warn_flag
4493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4500 if test -z "$ac_cpp_err"; then
4501 gcc_cv_header_memcheck_h=yes
4503 echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 gcc_cv_header_memcheck_h=no
4508 rm -f conftest.err conftest.$ac_ext
4509 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4510 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4512 # Prepare PATH_SEPARATOR.
4513 # The user is always right.
4514 if test "${PATH_SEPARATOR+set}" != set; then
4515 echo "#! /bin/sh" >conf$$.sh
4516 echo "exit 0" >>conf$$.sh
4518 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4526 # Find out how to test for executable files. Don't use a zero-byte file,
4527 # as systems may use methods other than mode bits to determine executability.
4528 cat >conf$$.file <<_ASEOF
4532 chmod +x conf$$.file
4533 if test -x conf$$.file >/dev/null 2>&1; then
4534 ac_executable_p="test -x"
4536 ac_executable_p="test -f"
4540 # Extract the first word of "valgrind", so it can be a program name with args.
4541 set dummy valgrind; ac_word=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_valgrind_path+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 case "$valgrind_path" in
4549 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4552 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4553 for ac_dir in $PATH; do
4555 test -z "$ac_dir" && ac_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4558 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4559 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4569 valgrind_path="$ac_cv_path_valgrind_path"
4570 if test -n "$valgrind_path"; then
4571 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4572 echo "${ECHO_T}$valgrind_path" >&6
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 if test "x$valgrind_path" = "x" \
4579 || (test $have_valgrind_h = no \
4580 && test $gcc_cv_header_memcheck_h = no \
4581 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4582 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4583 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4584 { (exit 1); exit 1; }; }
4586 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4587 valgrind_command="$valgrind_path -q"
4589 cat >>confdefs.h <<\_ACEOF
4590 #define ENABLE_VALGRIND_CHECKING 1
4593 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4595 cat >>confdefs.h <<\_ACEOF
4596 #define HAVE_VALGRIND_MEMCHECK_H 1
4600 if test $gcc_cv_header_memcheck_h = yes; then
4602 cat >>confdefs.h <<\_ACEOF
4603 #define HAVE_MEMCHECK_H 1
4611 # Enable code coverage collection
4612 # Check whether --enable-coverage or --disable-coverage was given.
4613 if test "${enable_coverage+set}" = set; then
4614 enableval="$enable_coverage"
4615 case "${enableval}" in
4617 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4620 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4623 # a.k.a. --disable-coverage
4627 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4628 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4629 { (exit 1); exit 1; }; }
4637 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4638 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4639 enableval="$enable_gather_detailed_mem_stats"
4642 enable_gather_detailed_mem_stats=no
4644 if test x$enable_gather_detailed_mem_stats = xyes ; then
4646 cat >>confdefs.h <<\_ACEOF
4647 #define GATHER_STATISTICS 1
4652 # -------------------------------
4653 # Miscenalleous configure options
4654 # -------------------------------
4658 # Check whether --with-stabs or --without-stabs was given.
4659 if test "${with_stabs+set}" = set; then
4660 withval="$with_stabs"
4666 # Determine whether or not multilibs are enabled.
4667 # Check whether --enable-multilib or --disable-multilib was given.
4668 if test "${enable_multilib+set}" = set; then
4669 enableval="$enable_multilib"
4676 # Enable __cxa_atexit for C++.
4677 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4678 if test "${enable___cxa_atexit+set}" = set; then
4679 enableval="$enable___cxa_atexit"
4684 # Pass with no value to take the default
4685 # Pass with a value to specify a thread package
4686 # Check whether --enable-threads or --disable-threads was given.
4687 if test "${enable_threads+set}" = set; then
4688 enableval="$enable_threads"
4694 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4695 if test "${enable_objc_gc+set}" = set; then
4696 enableval="$enable_objc_gc"
4697 if test x$enable_objc_gc = xno; then
4707 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4708 if test "${with_dwarf2+set}" = set; then
4709 withval="$with_dwarf2"
4710 dwarf2="$with_dwarf2"
4715 # Check whether --enable-shared or --disable-shared was given.
4716 if test "${enable_shared+set}" = set; then
4717 enableval="$enable_shared"
4719 case $enable_shared in
4723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4724 for pkg in $enableval; do
4725 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4739 # Check whether --with-sysroot or --without-sysroot was given.
4740 if test "${with_sysroot+set}" = set; then
4741 withval="$with_sysroot"
4743 case ${with_sysroot} in
4744 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4745 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4748 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4749 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4751 if test "x$exec_prefix" = xNONE; then
4752 if test "x$prefix" = xNONE; then
4753 test_prefix=/usr/local
4758 test_prefix=$exec_prefix
4760 case ${TARGET_SYSTEM_ROOT} in
4761 "${test_prefix}"|"${test_prefix}/"*|\
4762 '${exec_prefix}'|'${exec_prefix}/'*)
4763 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4764 TARGET_SYSTEM_ROOT_DEFINE="$t"
4771 TARGET_SYSTEM_ROOT_DEFINE=
4772 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4779 # Build with intermodule optimisations
4780 # Check whether --enable-intermodule or --disable-intermodule was given.
4781 if test "${enable_intermodule+set}" = set; then
4782 enableval="$enable_intermodule"
4783 case ${enable_intermodule} in
4784 yes) onestep="-onestep";;
4792 # Sanity check enable_languages in case someone does not run the toplevel
4793 # configure # script.
4794 # Check whether --enable-languages or --disable-languages was given.
4795 if test "${enable_languages+set}" = set; then
4796 enableval="$enable_languages"
4797 case ,${enable_languages}, in
4799 # go safe -- we cannot be much sure without the toplevel
4801 # analysis of which target libs are present and usable
4805 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4806 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4807 { (exit 1); exit 1; }; }
4812 enable_languages=c,${enable_languages}
4820 for lang in ${srcdir}/*/config-lang.in
4823 # The odd quoting in the next line works around
4824 # an apparent bug in bash 1.12 on linux.
4825 ${srcdir}/[*]/config-lang.in) ;;
4827 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4828 if test "x$lang_alias" = x
4830 echo "$lang doesn't set \$language." 1>&2
4833 case ",$enable_languages," in
4835 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4842 # -------------------------
4843 # Checks for other programs
4844 # -------------------------
4846 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4847 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4848 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4849 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.make <<\_ACEOF
4854 @echo 'ac_maketemp="$(MAKE)"'
4856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4857 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4858 if test -n "$ac_maketemp"; then
4859 eval ac_cv_prog_make_${ac_make}_set=yes
4861 eval ac_cv_prog_make_${ac_make}_set=no
4865 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867 echo "${ECHO_T}yes" >&6
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 SET_MAKE="MAKE=${MAKE-make}"
4876 # Find some useful tools
4877 for ac_prog in gawk mawk nawk awk
4879 # Extract the first word of "$ac_prog", so it can be a program name with args.
4880 set dummy $ac_prog; ac_word=$2
4881 echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4883 if test "${ac_cv_prog_AWK+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$AWK"; then
4887 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_AWK="$ac_prog"
4897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 if test -n "$AWK"; then
4907 echo "$as_me:$LINENO: result: $AWK" >&5
4908 echo "${ECHO_T}$AWK" >&6
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4914 test -n "$AWK" && break
4917 # We need awk to run opts.sh (to create options.c and options.h).
4918 # Bail out if it's missing.
4920 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4921 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4925 echo "$as_me:$LINENO: checking whether ln works" >&5
4926 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4927 if test "${gcc_cv_prog_LN+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 rm -f conftestdata_t
4931 echo >conftestdata_f
4932 if ln conftestdata_f conftestdata_t 2>/dev/null
4936 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4938 gcc_cv_prog_LN="ln -s"
4943 rm -f conftestdata_f conftestdata_t
4946 LN="$gcc_cv_prog_LN"
4947 if test "$gcc_cv_prog_LN" = "ln"; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949 echo "${ECHO_T}yes" >&6
4951 if test "$gcc_cv_prog_LN" = "ln -s"; then
4952 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4953 echo "${ECHO_T}no, using ln -s" >&6
4955 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4956 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4960 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4961 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4962 if test "${gcc_cv_prog_LN_S+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 rm -f conftestdata_t
4966 echo >conftestdata_f
4967 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4969 gcc_cv_prog_LN_S="ln -s"
4971 if ln conftestdata_f conftestdata_t 2>/dev/null
4978 rm -f conftestdata_f conftestdata_t
4981 LN_S="$gcc_cv_prog_LN_S"
4982 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4983 echo "$as_me:$LINENO: result: yes" >&5
4984 echo "${ECHO_T}yes" >&6
4986 if test "$gcc_cv_prog_LN_S" = "ln"; then
4987 echo "$as_me:$LINENO: result: no, using ln" >&5
4988 echo "${ECHO_T}no, using ln" >&6
4990 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4991 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4995 if test -n "$ac_tool_prefix"; then
4996 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4998 echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5000 if test "${ac_cv_prog_RANLIB+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 if test -n "$RANLIB"; then
5004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5013 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 RANLIB=$ac_cv_prog_RANLIB
5023 if test -n "$RANLIB"; then
5024 echo "$as_me:$LINENO: result: $RANLIB" >&5
5025 echo "${ECHO_T}$RANLIB" >&6
5027 echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6
5032 if test -z "$ac_cv_prog_RANLIB"; then
5033 ac_ct_RANLIB=$RANLIB
5034 # Extract the first word of "ranlib", so it can be a program name with args.
5035 set dummy ranlib; ac_word=$2
5036 echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 if test -n "$ac_ct_RANLIB"; then
5042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 test -z "$as_dir" && as_dir=.
5049 for ac_exec_ext in '' $ac_executable_extensions; do
5050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5051 ac_cv_prog_ac_ct_RANLIB="ranlib"
5052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5062 if test -n "$ac_ct_RANLIB"; then
5063 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5064 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5070 RANLIB=$ac_ct_RANLIB
5072 RANLIB="$ac_cv_prog_RANLIB"
5075 # Find a good install program. We prefer a C program (faster),
5076 # so one script is as good as another. But avoid the broken or
5077 # incompatible versions:
5078 # SysV /etc/install, /usr/sbin/install
5079 # SunOS /usr/etc/install
5080 # IRIX /sbin/install
5082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5084 # ./install, which can be erroneously created by make from ./install.sh.
5085 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5086 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5087 if test -z "$INSTALL"; then
5088 if test "${ac_cv_path_install+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5092 for ac_dir in $PATH; do
5093 # Account for people who put trailing slashes in PATH elements.
5095 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5097 # OSF1 and SCO ODT 3.0 have their own names for install.
5098 for ac_prog in ginstall scoinst install; do
5099 if test -f $ac_dir/$ac_prog; then
5100 if test $ac_prog = install &&
5101 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5102 # AIX install. It has an incompatible calling convention.
5103 # OSF/1 installbsd also uses dspmsg, but is usable.
5106 ac_cv_path_install="$ac_dir/$ac_prog -c"
5117 if test "${ac_cv_path_install+set}" = set; then
5118 INSTALL="$ac_cv_path_install"
5120 # As a last resort, use the slow shell script. We don't cache a
5121 # path for INSTALL within a source directory, because that will
5122 # break other packages using the cache if that directory is
5123 # removed, or if the path is relative.
5124 INSTALL="$ac_install_sh"
5127 echo "$as_me:$LINENO: result: $INSTALL" >&5
5128 echo "${ECHO_T}$INSTALL" >&6
5130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5131 # It thinks the first close brace ends the variable substitution.
5132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5137 # See if cmp has --ignore-initial.
5138 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5139 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5140 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 gcc_cv_prog_cmp_skip=slowcompare
5146 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5147 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5150 gcc_cv_prog_cmp_skip=gnucompare
5153 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5154 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5155 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5158 gcc_cv_prog_cmp_skip=fastcompare
5165 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5166 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5167 make_compare_target=$gcc_cv_prog_cmp_skip
5171 # See if we have the mktemp command.
5172 # Extract the first word of "mktemp", so it can be a program name with args.
5173 set dummy mktemp; ac_word=$2
5174 echo "$as_me:$LINENO: checking for $ac_word" >&5
5175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5176 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 if test -n "$have_mktemp_command"; then
5180 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_have_mktemp_command="yes"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5199 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5200 if test -n "$have_mktemp_command"; then
5201 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5202 echo "${ECHO_T}$have_mktemp_command" >&6
5204 echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5209 # Do we have a single-tree copy of texinfo?
5210 if test -f $srcdir/../texinfo/Makefile.in; then
5211 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5212 gcc_cv_prog_makeinfo_modern=yes
5213 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5214 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5216 # See if makeinfo has been installed and is modern enough
5217 # that we can use it.
5218 # Extract the first word of "makeinfo", so it can be a program name with args.
5219 set dummy makeinfo; ac_word=$2
5220 echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test -n "$MAKEINFO"; then
5226 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_MAKEINFO="makeinfo"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 MAKEINFO=$ac_cv_prog_MAKEINFO
5245 if test -n "$MAKEINFO"; then
5246 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5247 echo "${ECHO_T}$MAKEINFO" >&6
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5253 if test -n "$MAKEINFO"; then
5254 # Found it, now check the version.
5255 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5256 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5257 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 ac_prog_version=`$MAKEINFO --version 2>&1 |
5261 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5262 echo "configure:5262: version of makeinfo is $ac_prog_version" >&5
5263 case $ac_prog_version in
5264 '') gcc_cv_prog_makeinfo_modern=no;;
5266 gcc_cv_prog_makeinfo_modern=yes;;
5267 *) gcc_cv_prog_makeinfo_modern=no;;
5271 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5272 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5274 gcc_cv_prog_makeinfo_modern=no
5279 if test $gcc_cv_prog_makeinfo_modern = no; then
5280 { echo "$as_me:$LINENO: WARNING:
5281 *** Makeinfo is missing or too old.
5282 *** Info documentation will not be built." >&5
5283 echo "$as_me: WARNING:
5284 *** Makeinfo is missing or too old.
5285 *** Info documentation will not be built." >&2;}
5291 # Is pod2man recent enough to regenerate manpages?
5292 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5293 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5294 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5295 echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6
5297 GENERATED_MANPAGES=generated-manpages
5299 echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6
5305 if test -f $srcdir/../flex/skel.c; then
5306 FLEX='$(objdir)/../flex/flex'
5308 # Extract the first word of "flex", so it can be a program name with args.
5309 set dummy flex; ac_word=$2
5310 echo "$as_me:$LINENO: checking for $ac_word" >&5
5311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312 if test "${ac_cv_prog_FLEX+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 if test -n "$FLEX"; then
5316 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_FLEX="flex"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5335 FLEX=$ac_cv_prog_FLEX
5336 if test -n "$FLEX"; then
5337 echo "$as_me:$LINENO: result: $FLEX" >&5
5338 echo "${ECHO_T}$FLEX" >&6
5340 echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5347 # The -L switch is so bison can find its skeleton file.
5348 if test -f $srcdir/../bison/bison.simple; then
5349 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5351 # Extract the first word of "bison", so it can be a program name with args.
5352 set dummy bison; ac_word=$2
5353 echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355 if test "${ac_cv_prog_BISON+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 if test -n "$BISON"; then
5359 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 ac_cv_prog_BISON="bison"
5369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5378 BISON=$ac_cv_prog_BISON
5379 if test -n "$BISON"; then
5380 echo "$as_me:$LINENO: result: $BISON" >&5
5381 echo "${ECHO_T}$BISON" >&6
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5389 # --------------------
5390 # Checks for C headers
5391 # --------------------
5393 echo "$as_me:$LINENO: checking for GNU C library" >&5
5394 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5395 if test "${gcc_cv_glibc+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 #include <features.h>
5409 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5410 #error Not a GNU C library system
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>conftest.er1
5420 grep -v '^ *+' conftest.er1 >conftest.err
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } &&
5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; } &&
5431 { ac_try='test -s conftest.$ac_objext'
5432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5439 echo "$as_me: failed program was:" >&5
5440 sed 's/^/| /' conftest.$ac_ext >&5
5444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5448 echo "${ECHO_T}$gcc_cv_glibc" >&6
5449 if test $gcc_cv_glibc = yes; then
5451 cat >>confdefs.h <<\_ACEOF
5452 #define _GNU_SOURCE 1
5457 # Need to reject headers which give warnings, so that the -Werror bootstrap
5458 # works later. *sigh* This needs to come before all header checks.
5460 ac_c_preproc_warn_flag=yes
5462 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5463 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5464 if test "${ac_cv_header_stdc+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>conftest.er1
5490 grep -v '^ *+' conftest.er1 >conftest.err
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; } &&
5501 { ac_try='test -s conftest.$ac_objext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 ac_cv_header_stdc=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_header_stdc=no
5514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5516 if test $ac_cv_header_stdc = yes; then
5517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "memchr" >/dev/null 2>&1; then
5531 ac_cv_header_stdc=no
5537 if test $ac_cv_header_stdc = yes; then
5538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5549 $EGREP "free" >/dev/null 2>&1; then
5552 ac_cv_header_stdc=no
5558 if test $ac_cv_header_stdc = yes; then
5559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5560 if test "$cross_compiling" = yes; then
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5570 #if ((' ' & 0x0FF) == 0x020)
5571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5574 # define ISLOWER(c) \
5575 (('a' <= (c) && (c) <= 'i') \
5576 || ('j' <= (c) && (c) <= 'r') \
5577 || ('s' <= (c) && (c) <= 'z'))
5578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5586 for (i = 0; i < 256; i++)
5587 if (XOR (islower (i), ISLOWER (i))
5588 || toupper (i) != TOUPPER (i))
5593 rm -f conftest$ac_exeext
5594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5606 echo "$as_me: program exited with status $ac_status" >&5
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5611 ac_cv_header_stdc=no
5613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5618 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5619 if test $ac_cv_header_stdc = yes; then
5621 cat >>confdefs.h <<\_ACEOF
5622 #define STDC_HEADERS 1
5627 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5628 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5629 if test "${ac_cv_header_time+set}" = set; then
5630 echo $ECHO_N "(cached) $ECHO_C" >&6
5632 cat >conftest.$ac_ext <<_ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #include <sys/types.h>
5639 #include <sys/time.h>
5645 if ((struct tm *) 0)
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1 >conftest.err
5657 cat conftest.err >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_header_time=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_header_time=no
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5682 echo "${ECHO_T}$ac_cv_header_time" >&6
5683 if test $ac_cv_header_time = yes; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define TIME_WITH_SYS_TIME 1
5691 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5692 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5693 if test "${ac_cv_header_stdbool_h+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <stdbool.h>
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1 >conftest.err
5717 cat conftest.err >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_cv_header_stdbool_h=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 ac_cv_header_stdbool_h=no
5739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5742 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5743 if test $ac_cv_header_stdbool_h = yes; then
5745 cat >>confdefs.h <<\_ACEOF
5746 #define HAVE_STDBOOL_H 1
5751 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5752 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5753 if test "${gcc_cv_header_string+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5763 #include <strings.h>
5772 rm -f conftest.$ac_objext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5774 (eval $ac_compile) 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } &&
5781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; } &&
5787 { ac_try='test -s conftest.$ac_objext'
5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; }; then
5793 gcc_cv_header_string=yes
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 gcc_cv_header_string=no
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5802 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5803 echo "${ECHO_T}$gcc_cv_header_string" >&6
5804 if test $gcc_cv_header_string = yes; then
5806 cat >>confdefs.h <<\_ACEOF
5807 #define STRING_WITH_STRINGS 1
5812 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5813 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5814 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5824 #include <sys/wait.h>
5826 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5829 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5837 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5842 rm -f conftest.$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5846 grep -v '^ *+' conftest.er1 >conftest.err
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; } &&
5857 { ac_try='test -s conftest.$ac_objext'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5863 ac_cv_header_sys_wait_h=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_header_sys_wait_h=no
5870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5873 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5874 if test $ac_cv_header_sys_wait_h = yes; then
5876 cat >>confdefs.h <<\_ACEOF
5877 #define HAVE_SYS_WAIT_H 1
5903 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5904 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5905 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5906 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909 echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 cat >conftest.$ac_ext <<_ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <$ac_header>
5922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } >/dev/null; then
5930 if test -s conftest.err; then
5931 ac_cpp_err=$ac_c_preproc_warn_flag
5932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5939 if test -z "$ac_cpp_err"; then
5940 eval "$as_ac_Header=yes"
5942 echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 eval "$as_ac_Header=no"
5947 rm -f conftest.err conftest.$ac_ext
5949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960 # Check for thread headers.
5961 echo "$as_me:$LINENO: checking for thread.h" >&5
5962 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_thread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev/null; then
5982 if test -s conftest.err; then
5983 ac_cpp_err=$ac_c_preproc_warn_flag
5984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991 if test -z "$ac_cpp_err"; then
5992 ac_cv_header_thread_h=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_header_thread_h=no
5999 rm -f conftest.err conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6003 if test $ac_cv_header_thread_h = yes; then
6009 echo "$as_me:$LINENO: checking for pthread.h" >&5
6010 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6011 if test "${ac_cv_header_pthread_h+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6020 #include <pthread.h>
6022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6025 grep -v '^ *+' conftest.er1 >conftest.err
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } >/dev/null; then
6030 if test -s conftest.err; then
6031 ac_cpp_err=$ac_c_preproc_warn_flag
6032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6039 if test -z "$ac_cpp_err"; then
6040 ac_cv_header_pthread_h=yes
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 ac_cv_header_pthread_h=no
6047 rm -f conftest.err conftest.$ac_ext
6049 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6050 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6051 if test $ac_cv_header_pthread_h = yes; then
6058 # These tests can't be done till we know if we have limits.h.
6059 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6060 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6061 if test "${gcc_cv_decl_char_bit+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 #ifdef HAVE_LIMITS_H
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "found" >/dev/null 2>&1; then
6079 gcc_cv_decl_char_bit=yes
6081 gcc_cv_decl_char_bit=no
6087 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6088 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6089 if test $gcc_cv_decl_char_bit = no; then
6090 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6091 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6092 if test "${gcc_cv_c_nbby+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 while test $i -lt 65; do
6098 cat >conftest.$ac_ext <<_ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h. */
6109 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6110 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6116 rm -f conftest.$ac_objext
6117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6118 (eval $ac_compile) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest.$ac_objext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 gcc_cv_c_nbby=$i; break
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6146 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6149 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6150 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6151 if test $gcc_cv_c_nbby = failed; then
6152 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6153 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6154 { (exit 1); exit 1; }; }
6157 cat >>confdefs.h <<_ACEOF
6158 #define CHAR_BIT $gcc_cv_c_nbby
6163 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6164 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6165 if test "${ac_cv_c_bigendian+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 ac_cv_c_bigendian=unknown
6169 # See if sys/param.h defines the BYTE_ORDER macro.
6170 cat >conftest.$ac_ext <<_ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176 #include <sys/types.h>
6177 #include <sys/param.h>
6182 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 # It does; now see whether it defined to BIG_ENDIAN or not.
6211 cat >conftest.$ac_ext <<_ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h. */
6217 #include <sys/types.h>
6218 #include <sys/param.h>
6223 #if BYTE_ORDER != BIG_ENDIAN
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6234 grep -v '^ *+' conftest.er1 >conftest.err
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_c_bigendian=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_c_bigendian=no
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265 if test $ac_cv_c_bigendian = unknown; then
6266 if test "$cross_compiling" = yes; then
6267 echo $ac_n "cross-compiling... " 2>&6
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 /* Are we little or big endian? From Harbison&Steele. */
6280 char c[sizeof (long)];
6283 exit (u.c[sizeof (long) - 1] == 1);
6286 rm -f conftest$ac_exeext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6288 (eval $ac_link) 2>&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_c_bigendian=no
6299 echo "$as_me: program exited with status $ac_status" >&5
6300 echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_c_bigendian=yes
6306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6311 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6312 if test $ac_cv_c_bigendian = unknown; then
6313 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6314 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6316 cat >conftest.c <<EOF
6317 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6318 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6319 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6320 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6321 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6322 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6323 int main() { _ascii (); _ebcdic (); return 0; }
6325 if test -f conftest.c ; then
6326 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6327 if test `grep -l BIGenDianSyS conftest.o` ; then
6328 echo $ac_n ' big endian probe OK, ' 1>&6
6329 ac_cv_c_bigendian=yes
6331 if test `grep -l LiTTleEnDian conftest.o` ; then
6332 echo $ac_n ' little endian probe OK, ' 1>&6
6333 if test $ac_cv_c_bigendian = yes ; then
6334 ac_cv_c_bigendian=unknown;
6336 ac_cv_c_bigendian=no
6339 echo $ac_n 'guessing bigendian ... ' >&6
6342 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6343 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6345 if test $ac_cv_c_bigendian = yes; then
6347 cat >>confdefs.h <<\_ACEOF
6348 #define WORDS_BIGENDIAN 1
6352 cat >>confdefs.h <<\_ACEOF
6353 #define HOST_WORDS_BIG_ENDIAN 1
6361 cat >>confdefs.h <<_ACEOF
6362 #define BYTEORDER $BYTEORDER
6365 if test $ac_cv_c_bigendian = unknown; then
6366 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6367 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6368 { (exit 1); exit 1; }; }
6376 # Stage specific cflags for build.
6380 if test x$GCC = xyes
6382 stage1_cflags="-Wa,-J"
6388 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6389 # sources; use -no-cpp-precomp to get to GNU cpp.
6390 # Apple's GCC has bugs in designated initializer handling, so disable
6392 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6397 # These libraries may be used by collect2.
6398 # We may need a special search path to get them linked.
6399 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6400 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6401 if test "${gcc_cv_collect2_libs+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 for libs in '' -lld -lmld \
6406 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6407 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6417 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 gcc_cv_collect2_libs="$libs"; break
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6459 rm -f conftest.err conftest.$ac_objext \
6460 conftest$ac_exeext conftest.$ac_ext
6463 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6465 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6466 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6467 case $gcc_cv_collect2_libs in
6469 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6473 # When building Ada code on Alpha, we need exc_resume which is usually in
6474 # -lexc. So test for it.
6477 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6478 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6479 if test "${ac_cv_search_exc_resume+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 ac_func_search_save_LIBS=$LIBS
6483 ac_cv_search_exc_resume=no
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_search_exc_resume="none required"
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6533 rm -f conftest.err conftest.$ac_objext \
6534 conftest$ac_exeext conftest.$ac_ext
6535 if test "$ac_cv_search_exc_resume" = no; then
6536 for ac_lib in exc; do
6537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6545 /* Override any gcc2 internal prototype to avoid an error. */
6549 /* We use char because int might match the return type of a gcc2
6550 builtin and then its argument prototype would still apply. */
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6562 (eval $ac_link) 2>conftest.er1
6564 grep -v '^ *+' conftest.er1 >conftest.err
6566 cat conftest.err >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } &&
6569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_cv_search_exc_resume="-l$ac_lib"
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6588 rm -f conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_func_search_save_LIBS
6594 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6595 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6596 if test "$ac_cv_search_exc_resume" != no; then
6597 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6605 # Some systems put ldexp and frexp in libm instead of libc; assume
6606 # they're both in the same place. jcf-dump needs them.
6609 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6610 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6611 if test "${ac_cv_search_ldexp+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 ac_func_search_save_LIBS=$LIBS
6615 ac_cv_search_ldexp=no
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6623 /* Override any gcc2 internal prototype to avoid an error. */
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6638 rm -f conftest.$ac_objext conftest$ac_exeext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_search_ldexp="none required"
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6665 rm -f conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_ldexp" = no; then
6669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6677 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest$ac_exeext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_cv_search_ldexp="-l$ac_lib"
6716 echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6720 rm -f conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6724 LIBS=$ac_func_search_save_LIBS
6726 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6727 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6728 if test "$ac_cv_search_ldexp" != no; then
6729 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6737 # Use <inttypes.h> only if it exists,
6738 # doesn't clash with <sys/types.h>, and declares intmax_t.
6739 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6740 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6741 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <inttypes.h>
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 (eval $ac_compile) 2>conftest.er1
6764 grep -v '^ *+' conftest.er1 >conftest.err
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 gcc_cv_header_inttypes_h=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 gcc_cv_header_inttypes_h=no
6788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6791 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6792 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6793 if test $gcc_cv_header_inttypes_h = yes; then
6795 cat >>confdefs.h <<\_ACEOF
6796 #define HAVE_INTTYPES_H 1
6827 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6828 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6829 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6830 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6834 echo "$as_me:$LINENO: checking for $ac_func" >&5
6835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6836 if eval "test \"\${$as_ac_var+set}\" = set"; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 cat >conftest.$ac_ext <<_ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6847 #define $ac_func innocuous_$ac_func
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func (); below.
6851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6852 <limits.h> exists even on freestanding compilers. */
6855 # include <limits.h>
6857 # include <assert.h>
6862 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6876 char (*f) () = $ac_func;
6885 return f != $ac_func;
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>conftest.er1
6894 grep -v '^ *+' conftest.er1 >conftest.err
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 eval "$as_ac_var=yes"
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 eval "$as_ac_var=no"
6918 rm -f conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6923 if test `eval echo '${'$as_ac_var'}'` = yes; then
6924 cat >>confdefs.h <<_ACEOF
6925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6932 if test x$ac_cv_func_mbstowcs = xyes; then
6933 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6934 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6935 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 if test "$cross_compiling" = yes; then
6939 gcc_cv_func_mbstowcs_works=yes
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6954 rm -f conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 (exit $ac_status); }; }; then
6965 gcc_cv_func_mbstowcs_works=yes
6967 echo "$as_me: program exited with status $ac_status" >&5
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6972 gcc_cv_func_mbstowcs_works=no
6974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6977 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6978 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6979 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_WORKING_MBSTOWCS 1
6988 echo "$as_me:$LINENO: checking for ssize_t" >&5
6989 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6990 if test "${ac_cv_type_ssize_t+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7005 if (sizeof (ssize_t))
7011 rm -f conftest.$ac_objext
7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7013 (eval $ac_compile) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } &&
7020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_type_ssize_t=yes
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7037 ac_cv_type_ssize_t=no
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7041 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7042 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7043 if test $ac_cv_type_ssize_t = yes; then
7047 cat >>confdefs.h <<_ACEOF
7054 # Try to determine the array type of the second argument of getgroups
7055 # for the target system (int or gid_t).
7056 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7057 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7058 if test "${ac_cv_type_uid_t+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <sys/types.h>
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "uid_t" >/dev/null 2>&1; then
7072 ac_cv_type_uid_t=yes
7079 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7080 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7081 if test $ac_cv_type_uid_t = no; then
7083 cat >>confdefs.h <<\_ACEOF
7088 cat >>confdefs.h <<\_ACEOF
7094 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7095 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7096 if test "${ac_cv_type_getgroups+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test "$cross_compiling" = yes; then
7100 ac_cv_type_getgroups=cross
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 /* Thanks to Mike Rendell for this test. */
7109 #include <sys/types.h>
7112 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7119 union { gid_t gval; long lval; } val;
7122 for (i = 0; i < NGID; i++)
7123 gidset[i] = val.gval;
7124 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7126 /* Exit non-zero if getgroups seems to require an array of ints. This
7127 happens when gid_t is short but getgroups modifies an array of ints. */
7128 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7131 rm -f conftest$ac_exeext
7132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7133 (eval $ac_link) 2>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7142 ac_cv_type_getgroups=gid_t
7144 echo "$as_me: program exited with status $ac_status" >&5
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7149 ac_cv_type_getgroups=int
7151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7153 if test $ac_cv_type_getgroups = cross; then
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7164 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7165 ac_cv_type_getgroups=gid_t
7167 ac_cv_type_getgroups=int
7173 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7174 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7176 cat >>confdefs.h <<_ACEOF
7177 #define GETGROUPS_T $ac_cv_type_getgroups
7181 if test "${target}" = "${build}"; then
7182 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7185 # This condition may need some tweaking. It should include all
7186 # targets where the array type of the second argument of getgroups
7187 # is int and the type of gid_t is not equivalent to int.
7188 *-*-sunos* | *-*-ultrix*)
7189 TARGET_GETGROUPS_T=int
7192 TARGET_GETGROUPS_T=gid_t
7198 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7199 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7200 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7203 if test "$cross_compiling" = yes; then
7204 gcc_cv_func_printf_ptr=no
7206 cat >conftest.$ac_ext <<_ACEOF
7209 cat confdefs.h >>conftest.$ac_ext
7210 cat >>conftest.$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7217 char *p = buf, *q = NULL;
7218 sprintf(buf, "%p", p);
7219 sscanf(buf, "%p", &q);
7223 rm -f conftest$ac_exeext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7225 (eval $ac_link) 2>&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7234 gcc_cv_func_printf_ptr=yes
7236 echo "$as_me: program exited with status $ac_status" >&5
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7241 gcc_cv_func_printf_ptr=no
7243 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7245 rm -f core core.* *.core
7247 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7248 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7249 if test $gcc_cv_func_printf_ptr = yes ; then
7251 cat >>confdefs.h <<\_ACEOF
7252 #define HAVE_PRINTF_PTR 1
7257 if test $ac_cv_header_sys_mman_h != yes \
7258 || test $ac_cv_func_mmap != yes; then
7259 gcc_cv_func_mmap_file=no
7260 gcc_cv_func_mmap_dev_zero=no
7261 gcc_cv_func_mmap_anon=no
7263 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7264 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7265 if test "${gcc_cv_func_mmap_file+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 # Add a system to this blacklist if
7269 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7270 # memory area containing the same data that you'd get if you applied
7271 # read() to the same fd. The only system known to have a problem here
7272 # is VMS, where text files have record structure.
7275 gcc_cv_func_mmap_file=no ;;
7277 gcc_cv_func_mmap_file=yes;;
7280 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7281 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7282 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7283 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7284 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 # Add a system to this blacklist if it has mmap() but /dev/zero
7288 # does not exist, or if mmapping /dev/zero does not give anonymous
7289 # zeroed pages with both the following properties:
7290 # 1. If you map N consecutive pages in with one call, and then
7291 # unmap any subset of those pages, the pages that were not
7292 # explicitly unmapped remain accessible.
7293 # 2. If you map two adjacent blocks of memory and then unmap them
7294 # both at once, they must both go away.
7295 # Systems known to be in this category are Windows (all variants),
7298 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7299 gcc_cv_func_mmap_dev_zero=no ;;
7301 gcc_cv_func_mmap_dev_zero=yes;;
7304 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7305 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7307 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7308 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7309 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7310 if test "${gcc_cv_decl_map_anon+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <sys/types.h>
7320 #include <sys/mman.h>
7323 #ifndef MAP_ANONYMOUS
7324 #define MAP_ANONYMOUS MAP_ANON
7330 int n = MAP_ANONYMOUS;
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>conftest.er1
7339 grep -v '^ *+' conftest.er1 >conftest.err
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; } &&
7350 { ac_try='test -s conftest.$ac_objext'
7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7356 gcc_cv_decl_map_anon=yes
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 gcc_cv_decl_map_anon=no
7363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7365 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7366 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7368 if test $gcc_cv_decl_map_anon = no; then
7369 gcc_cv_func_mmap_anon=no
7371 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7372 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7373 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7377 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7378 # doesn't give anonymous zeroed pages with the same properties listed
7379 # above for use of /dev/zero.
7380 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7382 vms* | cygwin* | pe | mingw* | sco* | udk* )
7383 gcc_cv_func_mmap_anon=no ;;
7385 gcc_cv_func_mmap_anon=yes;;
7388 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7389 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7393 if test $gcc_cv_func_mmap_file = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define HAVE_MMAP_FILE 1
7400 if test $gcc_cv_func_mmap_dev_zero = yes; then
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_MMAP_DEV_ZERO 1
7407 if test $gcc_cv_func_mmap_anon = yes; then
7409 cat >>confdefs.h <<\_ACEOF
7410 #define HAVE_MMAP_ANON 1
7418 # Under VMS, vfork works very differently than on Unix. The standard test
7419 # won't work, and it isn't easily adaptable. It makes more sense to
7421 ac_cv_func_vfork_works=yes
7424 echo "$as_me:$LINENO: checking for pid_t" >&5
7425 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7426 if test "${ac_cv_type_pid_t+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 cat >conftest.$ac_ext <<_ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 $ac_includes_default
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest.$ac_objext'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; }; then
7468 ac_cv_type_pid_t=yes
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7477 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7479 if test $ac_cv_type_pid_t = yes; then
7483 cat >>confdefs.h <<_ACEOF
7491 for ac_header in unistd.h vfork.h
7493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 echo "$as_me:$LINENO: checking for $ac_header" >&5
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <$ac_header>
7507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510 grep -v '^ *+' conftest.er1 >conftest.err
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } >/dev/null; then
7515 if test -s conftest.err; then
7516 ac_cpp_err=$ac_c_preproc_warn_flag
7517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7524 if test -z "$ac_cpp_err"; then
7525 eval "$as_ac_Header=yes"
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 eval "$as_ac_Header=no"
7532 rm -f conftest.err conftest.$ac_ext
7534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7546 for ac_func in fork vfork
7548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7549 echo "$as_me:$LINENO: checking for $ac_func" >&5
7550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7551 if eval "test \"\${$as_ac_var+set}\" = set"; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7562 #define $ac_func innocuous_$ac_func
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func (); below.
7566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567 <limits.h> exists even on freestanding compilers. */
7570 # include <limits.h>
7572 # include <assert.h>
7577 /* Override any gcc2 internal prototype to avoid an error. */
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7585 /* The GNU C library defines this for functions which it implements
7586 to always fail with ENOSYS. Some functions are actually named
7587 something starting with __ and the normal name is an alias. */
7588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7591 char (*f) () = $ac_func;
7600 return f != $ac_func;
7605 rm -f conftest.$ac_objext conftest$ac_exeext
7606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7607 (eval $ac_link) 2>conftest.er1
7609 grep -v '^ *+' conftest.er1 >conftest.err
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 eval "$as_ac_var=yes"
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 eval "$as_ac_var=no"
7633 rm -f conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7638 if test `eval echo '${'$as_ac_var'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7646 if test "x$ac_cv_func_fork" = xyes; then
7647 echo "$as_me:$LINENO: checking for working fork" >&5
7648 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7649 if test "${ac_cv_func_fork_works+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_fork_works=cross
7655 cat >conftest.$ac_ext <<_ACEOF
7656 /* By Ruediger Kuhlmann. */
7657 #include <sys/types.h>
7659 # include <unistd.h>
7661 /* Some systems only have a dummy stub for fork() */
7669 rm -f conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671 (eval $ac_link) 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); }; }; then
7680 ac_cv_func_fork_works=yes
7682 echo "$as_me: program exited with status $ac_status" >&5
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7687 ac_cv_func_fork_works=no
7689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7693 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7696 ac_cv_func_fork_works=$ac_cv_func_fork
7698 if test "x$ac_cv_func_fork_works" = xcross; then
7700 *-*-amigaos* | *-*-msdosdjgpp*)
7701 # Override, as these systems have only a dummy fork() stub
7702 ac_cv_func_fork_works=no
7705 ac_cv_func_fork_works=yes
7708 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7709 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7711 ac_cv_func_vfork_works=$ac_cv_func_vfork
7712 if test "x$ac_cv_func_vfork" = xyes; then
7713 echo "$as_me:$LINENO: checking for working vfork" >&5
7714 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7715 if test "${ac_cv_func_vfork_works+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 if test "$cross_compiling" = yes; then
7719 ac_cv_func_vfork_works=cross
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 /* Thanks to Paul Eggert for this test. */
7730 #include <sys/types.h>
7731 #include <sys/stat.h>
7732 #include <sys/wait.h>
7734 # include <unistd.h>
7739 /* On some sparc systems, changes by the child to local and incoming
7740 argument registers are propagated back to the parent. The compiler
7741 is told about this with #include <vfork.h>, but some compilers
7742 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7743 static variable whose address is put into a register that is
7744 clobbered by the vfork. */
7747 sparc_address_test (int arg)
7749 sparc_address_test (arg) int arg;
7770 pid_t parent = getpid ();
7773 sparc_address_test (0);
7778 /* Here is another test for sparc vfork register problems. This
7779 test uses lots of local variables, at least as many local
7780 variables as main has allocated so far including compiler
7781 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7782 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7783 reuse the register of parent for one of the local variables,
7784 since it will think that parent can't possibly be used any more
7785 in this routine. Assigning to the local variable will thus
7786 munge parent in the parent process. */
7788 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7789 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7790 /* Convince the compiler that p..p7 are live; otherwise, it might
7791 use the same hardware register for all 8 local variables. */
7792 if (p != p1 || p != p2 || p != p3 || p != p4
7793 || p != p5 || p != p6 || p != p7)
7796 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7797 from child file descriptors. If the child closes a descriptor
7798 before it execs or exits, this munges the parent's descriptor
7799 as well. Test for this by closing stdout in the child. */
7800 _exit(close(fileno(stdout)) != 0);
7805 while (wait(&status) != child)
7808 /* Was there some problem with vforking? */
7811 /* Did the child fail? (This shouldn't happen.) */
7814 /* Did the vfork/compiler bug occur? */
7815 || parent != getpid()
7817 /* Did the file descriptor bug occur? */
7818 || fstat(fileno(stdout), &st) != 0
7823 rm -f conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825 (eval $ac_link) 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_func_vfork_works=yes
7836 echo "$as_me: program exited with status $ac_status" >&5
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7841 ac_cv_func_vfork_works=no
7843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7846 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7847 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7850 if test "x$ac_cv_func_fork_works" = xcross; then
7851 ac_cv_func_vfork_works=$ac_cv_func_vfork
7852 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7853 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7856 if test "x$ac_cv_func_vfork_works" = xyes; then
7858 cat >>confdefs.h <<\_ACEOF
7859 #define HAVE_WORKING_VFORK 1
7864 cat >>confdefs.h <<\_ACEOF
7869 if test "x$ac_cv_func_fork_works" = xyes; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_WORKING_FORK 1
7880 am_cv_lib_iconv_ldpath=
7882 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7883 if test "${with_libiconv_prefix+set}" = set; then
7884 withval="$with_libiconv_prefix"
7886 for dir in `echo "$withval" | tr : ' '`; do
7887 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7888 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7894 for ac_header in iconv.h
7896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7897 echo "$as_me:$LINENO: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <$ac_header>
7910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } >/dev/null; then
7918 if test -s conftest.err; then
7919 ac_cpp_err=$ac_c_preproc_warn_flag
7920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7927 if test -z "$ac_cpp_err"; then
7928 eval "$as_ac_Header=yes"
7930 echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7933 eval "$as_ac_Header=no"
7935 rm -f conftest.err conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7940 cat >>confdefs.h <<_ACEOF
7941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 echo "$as_me:$LINENO: checking for iconv" >&5
7949 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7950 if test "${am_cv_func_iconv+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 am_cv_func_iconv="no, consider installing GNU libiconv"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7967 iconv_t cd = iconv_open("","");
7968 iconv(cd,NULL,NULL,NULL,NULL);
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7976 (eval $ac_link) 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try='test -s conftest$ac_exeext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7995 am_cv_func_iconv=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8001 rm -f conftest.err conftest.$ac_objext \
8002 conftest$ac_exeext conftest.$ac_ext
8003 if test "$am_cv_func_iconv" != yes; then
8004 am_save_LIBS="$LIBS"
8005 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8017 iconv_t cd = iconv_open("","");
8018 iconv(cd,NULL,NULL,NULL,NULL);
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026 (eval $ac_link) 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest$ac_exeext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8046 am_cv_func_iconv=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8052 rm -f conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 LIBS="$am_save_LIBS"
8058 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8059 echo "${ECHO_T}$am_cv_func_iconv" >&6
8060 if test "$am_cv_func_iconv" = yes; then
8062 cat >>confdefs.h <<\_ACEOF
8063 #define HAVE_ICONV 1
8066 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8067 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8068 if test "${am_cv_proto_iconv+set}" = set; then
8069 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8085 #if defined(__STDC__) || defined(__cplusplus)
8086 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8099 rm -f conftest.$ac_objext
8100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8101 (eval $ac_compile) 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } &&
8108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; } &&
8114 { ac_try='test -s conftest.$ac_objext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8120 am_cv_proto_iconv_arg1=""
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8125 am_cv_proto_iconv_arg1="const"
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8131 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8132 echo "$as_me:$LINENO: result: ${ac_t:-
8133 }$am_cv_proto_iconv" >&5
8134 echo "${ECHO_T}${ac_t:-
8135 }$am_cv_proto_iconv" >&6
8137 cat >>confdefs.h <<_ACEOF
8138 #define ICONV_CONST $am_cv_proto_iconv_arg1
8143 if test "$am_cv_lib_iconv" = yes; then
8144 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8148 # Until we have in-tree GNU iconv:
8153 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8154 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8155 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 cat >conftest.$ac_ext <<_ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8173 rm -f conftest.$ac_objext conftest$ac_exeext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 am_cv_val_LC_MESSAGES=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 am_cv_val_LC_MESSAGES=no
8201 rm -f conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8205 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8206 if test $am_cv_val_LC_MESSAGES = yes; then
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_LC_MESSAGES 1
8215 # We will need to find libiberty.h and ansidecl.h
8216 saved_CFLAGS="$CFLAGS"
8217 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8218 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8219 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8220 fprintf_unlocked strstr errno snprintf vasprintf \
8221 malloc realloc calloc free basename getopt clock
8223 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8224 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8225 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8226 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8236 #define $ac_tr_decl 1
8238 #include "ansidecl.h"
8245 char *(*pfn) = (char *(*)) $ac_func ;
8251 rm -f conftest.$ac_objext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8253 (eval $ac_compile) 2>conftest.er1
8255 grep -v '^ *+' conftest.er1 >conftest.err
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 eval "gcc_cv_have_decl_$ac_func=yes"
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8277 eval "gcc_cv_have_decl_$ac_func=no"
8279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8282 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8283 echo "$as_me:$LINENO: result: yes" >&5
8284 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8285 #define $ac_tr_decl 1
8289 echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8291 #define $ac_tr_decl 0
8297 if test x = y ; then
8299 cat >>confdefs.h <<\_ACEOF
8300 #define HAVE_DECL_GETENV 1
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_DECL_ATOL 1
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_DECL_SBRK 1
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_DECL_ABORT 1
8315 cat >>confdefs.h <<\_ACEOF
8316 #define HAVE_DECL_ATOF 1
8319 cat >>confdefs.h <<\_ACEOF
8320 #define HAVE_DECL_GETCWD 1
8323 cat >>confdefs.h <<\_ACEOF
8324 #define HAVE_DECL_GETWD 1
8328 cat >>confdefs.h <<\_ACEOF
8329 #define HAVE_DECL_STRSIGNAL 1
8332 cat >>confdefs.h <<\_ACEOF
8333 #define HAVE_DECL_PUTC_UNLOCKED 1
8336 cat >>confdefs.h <<\_ACEOF
8337 #define HAVE_DECL_FPUTS_UNLOCKED 1
8340 cat >>confdefs.h <<\_ACEOF
8341 #define HAVE_DECL_FWRITE_UNLOCKED 1
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8349 cat >>confdefs.h <<\_ACEOF
8350 #define HAVE_DECL_STRSTR 1
8353 cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_DECL_ERRNO 1
8357 cat >>confdefs.h <<\_ACEOF
8358 #define HAVE_DECL_SNPRINTF 1
8361 cat >>confdefs.h <<\_ACEOF
8362 #define HAVE_DECL_VASPRINTF 1
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_DECL_MALLOC 1
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_DECL_REALLOC 1
8374 cat >>confdefs.h <<\_ACEOF
8375 #define HAVE_DECL_CALLOC 1
8378 cat >>confdefs.h <<\_ACEOF
8379 #define HAVE_DECL_FREE 1
8382 cat >>confdefs.h <<\_ACEOF
8383 #define HAVE_DECL_BASENAME 1
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_DECL_GETOPT 1
8390 cat >>confdefs.h <<\_ACEOF
8391 #define HAVE_DECL_CLOCK 1
8396 for ac_func in getrlimit setrlimit getrusage
8398 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8399 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8400 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8401 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 #define $ac_tr_decl 1
8413 #include "ansidecl.h"
8415 #ifdef HAVE_SYS_RESOURCE_H
8416 #include <sys/resource.h>
8424 char *(*pfn) = (char *(*)) $ac_func ;
8430 rm -f conftest.$ac_objext
8431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; } &&
8445 { ac_try='test -s conftest.$ac_objext'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; }; then
8451 eval "gcc_cv_have_decl_$ac_func=yes"
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8456 eval "gcc_cv_have_decl_$ac_func=no"
8458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8461 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8462 echo "$as_me:$LINENO: result: yes" >&5
8463 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8464 #define $ac_tr_decl 1
8468 echo "$as_me:$LINENO: result: no" >&5
8469 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8470 #define $ac_tr_decl 0
8476 if test x = y ; then
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_DECL_GETRLIMIT 1
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_DECL_SETRLIMIT 1
8486 cat >>confdefs.h <<\_ACEOF
8487 #define HAVE_DECL_GETRUSAGE 1
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 #include "ansidecl.h"
8501 #ifdef HAVE_SYS_RESOURCE_H
8502 #include <sys/resource.h>
8513 rm -f conftest.$ac_objext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8515 (eval $ac_compile) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest.$ac_objext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8540 cat >>confdefs.h <<\_ACEOF
8545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8547 for ac_func in ldgetname
8549 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8550 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8551 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8552 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h. */
8562 #define $ac_tr_decl 1
8564 #include "ansidecl.h"
8575 char *(*pfn) = (char *(*)) $ac_func ;
8581 rm -f conftest.$ac_objext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8583 (eval $ac_compile) 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 eval "gcc_cv_have_decl_$ac_func=yes"
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 eval "gcc_cv_have_decl_$ac_func=no"
8609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8615 #define $ac_tr_decl 1
8619 echo "$as_me:$LINENO: result: no" >&5
8620 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8621 #define $ac_tr_decl 0
8627 if test x = y ; then
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_DECL_LDGETNAME 1
8635 for ac_func in times
8637 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8638 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8639 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8640 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 #define $ac_tr_decl 1
8652 #include "ansidecl.h"
8654 #ifdef HAVE_SYS_TIMES_H
8655 #include <sys/times.h>
8663 char *(*pfn) = (char *(*)) $ac_func ;
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>conftest.er1
8673 grep -v '^ *+' conftest.er1 >conftest.err
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; }; then
8690 eval "gcc_cv_have_decl_$ac_func=yes"
8692 echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8695 eval "gcc_cv_have_decl_$ac_func=no"
8697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8700 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8701 echo "$as_me:$LINENO: result: yes" >&5
8702 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8703 #define $ac_tr_decl 1
8707 echo "$as_me:$LINENO: result: no" >&5
8708 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8709 #define $ac_tr_decl 0
8715 if test x = y ; then
8717 cat >>confdefs.h <<\_ACEOF
8718 #define HAVE_DECL_TIMES 1
8723 # More time-related stuff.
8724 echo "$as_me:$LINENO: checking for struct tms" >&5
8725 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8726 if test "${ac_cv_struct_tms+set}" = set; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 cat >conftest.$ac_ext <<_ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8737 #include "ansidecl.h"
8739 #ifdef HAVE_SYS_TIMES_H
8740 #include <sys/times.h>
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 ac_cv_struct_tms=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8781 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8782 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8783 if test $ac_cv_struct_tms = yes; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define HAVE_STRUCT_TMS 1
8791 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8792 # revisit after autoconf 2.50.
8793 echo "$as_me:$LINENO: checking for clock_t" >&5
8794 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8795 if test "${gcc_cv_type_clock_t+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 #include "ansidecl.h"
8817 rm -f conftest.$ac_objext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819 (eval $ac_compile) 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; } &&
8832 { ac_try='test -s conftest.$ac_objext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 gcc_cv_type_clock_t=yes
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8843 gcc_cv_type_clock_t=no
8845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8847 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8848 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8849 if test $gcc_cv_type_clock_t = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_CLOCK_T 1
8857 echo "$as_me:$LINENO: checking for uchar" >&5
8858 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8859 if test "${gcc_cv_type_uchar+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 #include "ansidecl.h"
8875 if ((uchar *)0) return 0;
8876 if (sizeof(uchar)) return 0;
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>conftest.er1
8885 grep -v '^ *+' conftest.er1 >conftest.err
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
8896 { ac_try='test -s conftest.$ac_objext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_type_uchar=yes
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8911 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8912 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8913 if test $ac_cv_type_uchar = yes; then
8915 cat >>confdefs.h <<\_ACEOF
8916 #define HAVE_UCHAR 1
8921 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8922 CFLAGS="$saved_CFLAGS"
8924 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8925 if test "${enable_initfini_array+set}" = set; then
8926 enableval="$enable_initfini_array"
8930 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8931 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8932 if test "${gcc_cv_initfini_array+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 if test "$cross_compiling" = yes; then
8936 gcc_cv_initfini_array=no
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8946 int main (void) { return x; }
8947 int foo (void) { x = 0; }
8948 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8950 rm -f conftest$ac_exeext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952 (eval $ac_link) 2>&5
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; }; then
8961 gcc_cv_initfini_array=yes
8963 echo "$as_me: program exited with status $ac_status" >&5
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8968 gcc_cv_initfini_array=no
8970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8973 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8974 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8975 enable_initfini_array=$gcc_cv_initfini_array
8978 if test $enable_initfini_array = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_INITFINI_ARRAY 1
8986 # mkdir takes a single argument on some systems.
8987 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8988 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8989 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8999 #include <sys/types.h>
9000 #ifdef HAVE_SYS_STAT_H
9001 # include <sys/stat.h>
9003 #ifdef HAVE_UNISTD_H
9004 # include <unistd.h>
9006 #ifdef HAVE_DIRECT_H
9007 # include <direct.h>
9017 rm -f conftest.$ac_objext
9018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019 (eval $ac_compile) 2>conftest.er1
9021 grep -v '^ *+' conftest.er1 >conftest.err
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); } &&
9026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 gcc_cv_mkdir_takes_one_arg=no
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 gcc_cv_mkdir_takes_one_arg=yes
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9048 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9049 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9051 cat >>confdefs.h <<\_ACEOF
9052 #define MKDIR_TAKES_ONE_ARG 1
9064 # With Setjmp/Longjmp based exception handling.
9065 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9066 if test "${enable_sjlj_exceptions+set}" = set; then
9067 enableval="$enable_sjlj_exceptions"
9068 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9070 cat >>confdefs.h <<_ACEOF
9071 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9076 if test x$host = x$target; then
9077 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9078 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9079 if test "${ac_cv_lib_unwind_main+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 ac_check_lib_save_LIBS=$LIBS
9083 LIBS="-lunwind $LIBS"
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9100 rm -f conftest.$ac_objext conftest$ac_exeext
9101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102 (eval $ac_link) 2>conftest.er1
9104 grep -v '^ *+' conftest.er1 >conftest.err
9106 cat conftest.err >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } &&
9109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_cv_lib_unwind_main=yes
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9126 ac_cv_lib_unwind_main=no
9128 rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9133 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9134 if test $ac_cv_lib_unwind_main = yes; then
9135 use_libunwind_default=yes
9137 use_libunwind_default=no
9141 use_libunwind_default=no
9143 # Use libunwind based exception handling.
9144 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9145 if test "${enable_libunwind_exceptions+set}" = set; then
9146 enableval="$enable_libunwind_exceptions"
9147 use_libunwind_exceptions=$enableval
9149 use_libunwind_exceptions=$use_libunwind_default
9151 if test x"$use_libunwind_exceptions" = xyes; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define USE_LIBUNWIND_EXCEPTIONS 1
9159 # --------------------------------------------------------
9160 # Build, host, and target specific configuration fragments
9161 # --------------------------------------------------------
9163 # Collect build-machine-specific information.
9164 . ${srcdir}/config.build
9166 # Collect host-machine-specific information.
9167 . ${srcdir}/config.host
9171 # Collect target-machine-specific information.
9172 . ${srcdir}/config.gcc
9174 extra_objs="${host_extra_objs} ${extra_objs}"
9175 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9177 # Default the target-machine variables that were not explicitly set.
9178 if test x"$tm_file" = x
9179 then tm_file=$cpu_type/$cpu_type.h; fi
9181 if test x"$extra_headers" = x
9182 then extra_headers=; fi
9184 if test x$md_file = x
9185 then md_file=$cpu_type/$cpu_type.md; fi
9187 if test x$out_file = x
9188 then out_file=$cpu_type/$cpu_type.c; fi
9190 if test x"$tmake_file" = x
9191 then tmake_file=$cpu_type/t-$cpu_type
9194 if test x"$dwarf2" = xyes
9195 then tm_file="$tm_file tm-dwarf2.h"
9198 # Say what files are being used for the output code and MD file.
9199 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9200 echo "Using \`$srcdir/config/$md_file' as machine description file."
9202 # If any of the xm_file variables contain nonexistent files, warn
9203 # about them and drop them.
9206 for x in $build_xm_file; do
9207 if test -f $srcdir/config/$x
9209 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9210 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9216 for x in $host_xm_file; do
9217 if test -f $srcdir/config/$x
9219 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9220 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9226 for x in $xm_file; do
9227 if test -f $srcdir/config/$x
9229 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9230 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9236 for f in $tm_file; do
9239 if test $count = ax; then
9240 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9242 echo "Using the following target machine macro files:"
9243 for f in $tm_file; do
9244 echo " $srcdir/config/$f"
9248 if test x$need_64bit_hwint = xyes; then
9250 cat >>confdefs.h <<\_ACEOF
9251 #define NEED_64BIT_HOST_WIDE_INT 1
9257 for f in $host_xm_file; do
9260 if test $count = a; then
9262 elif test $count = ax; then
9263 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9265 echo "Using the following host machine macro files:"
9266 for f in $host_xm_file; do
9267 echo " $srcdir/config/$f"
9270 echo "Using ${out_host_hook_obj} for host machine hooks."
9272 if test "$host_xm_file" != "$build_xm_file"; then
9274 for f in $build_xm_file; do
9277 if test $count = a; then
9279 elif test $count = ax; then
9280 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9282 echo "Using the following build machine macro files:"
9283 for f in $build_xm_file; do
9284 echo " $srcdir/config/$f"
9293 # Check if a valid thread package
9294 case ${enable_threads} in
9297 target_thread_file='single'
9301 target_thread_file='single'
9303 aix | dce | gnat | irix | posix | rtems | \
9304 single | solaris | vxworks | win32 )
9305 target_thread_file=${enable_threads}
9308 echo "${enable_threads} is an unknown thread package" 1>&2
9313 if test x${thread_file} = x; then
9314 # No thread file set by target-specific clauses in config.gcc,
9315 # so use file chosen by default logic above
9316 thread_file=${target_thread_file}
9319 # Make gthr-default.h if we have a thread file.
9321 if test $thread_file != single; then
9322 rm -f gthr-default.h
9323 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9324 gthread_flags=-DHAVE_GTHR_DEFAULT
9332 if test x$enable___cxa_atexit = xyes || \
9333 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9334 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9335 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9336 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9347 #define __cxa_atexit innocuous___cxa_atexit
9349 /* System header to define __stub macros and hopefully few prototypes,
9350 which can conflict with char __cxa_atexit (); below.
9351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9352 <limits.h> exists even on freestanding compilers. */
9355 # include <limits.h>
9357 # include <assert.h>
9362 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9369 char __cxa_atexit ();
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9376 char (*f) () = __cxa_atexit;
9385 return f != __cxa_atexit;
9390 rm -f conftest.$ac_objext conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392 (eval $ac_link) 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_func___cxa_atexit=yes
9413 echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9416 ac_cv_func___cxa_atexit=no
9418 rm -f conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9421 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9422 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9423 if test $ac_cv_func___cxa_atexit = yes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define DEFAULT_USE_CXA_ATEXIT 1
9430 echo "__cxa_atexit can't be enabled on this target"
9435 # Look for a file containing extra machine modes.
9436 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9437 extra_modes_file='$(srcdir)'/config/${extra_modes}
9440 cat >>confdefs.h <<_ACEOF
9441 #define EXTRA_MODES_FILE "config/$extra_modes"
9446 # auto-host.h is the file containing items generated by autoconf and is
9447 # the first file included by config.h.
9448 # If host=build, it is correct to have bconfig include auto-host.h
9449 # as well. If host!=build, we are in error and need to do more
9450 # work to find out the build config parameters.
9451 if test x$host = x$build
9453 build_auto=auto-host.h
9456 # We create a subdir, then run autoconf in the subdir.
9457 # To prevent recursion we set host and build for the new
9458 # invocation of configure to the build for this invocation
9465 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9466 *) realsrcdir=../${srcdir};;
9468 saved_CFLAGS="${CFLAGS}"
9469 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9470 ${realsrcdir}/configure \
9471 --enable-languages=${enable_languages-all} \
9472 --target=$target_alias --host=$build_alias --build=$build_alias
9473 CFLAGS="${saved_CFLAGS}"
9475 # We just finished tests for the build machine, so rename
9476 # the file auto-build.h in the gcc directory.
9477 mv auto-host.h ../auto-build.h
9480 build_auto=auto-build.h
9481 FORBUILD=../${build_subdir}
9485 tm_file="${tm_file} defaults.h"
9486 tm_p_file="${tm_p_file} tm-preds.h"
9487 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9488 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9489 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9490 # put this back in temporarily.
9491 xm_file="ansidecl.h ${xm_file}"
9497 # Get the version trigger filename from the toplevel
9498 if test "${with_gcc_version_trigger+set}" = set; then
9499 gcc_version_trigger=$with_gcc_version_trigger
9501 gcc_version_trigger=${srcdir}/version.c
9503 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9504 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9506 # Compile in configure arguments.
9507 if test -f configargs.h ; then
9508 # Being re-configured.
9509 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9510 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9512 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9515 # Double all backslashes and backslash all quotes to turn
9516 # gcc_config_arguments into a C string.
9517 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9518 $gcc_config_arguments
9520 gcc_config_arguments_str=`cat conftest.out`
9523 cat > configargs.h <<EOF
9524 /* Generated automatically. */
9525 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9526 static const char thread_model[] = "$thread_file";
9528 static const struct {
9529 const char *name, *value;
9530 } configure_default_options[] = $configure_default_options;
9533 # Internationalization
9535 VERSION="$gcc_version"
9539 # If we haven't got the data from the intl directory,
9540 # assume NLS is disabled.
9548 if test -f ../intl/config.intl; then
9549 . ../intl/config.intl
9551 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9552 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9553 if test x"$USE_NLS" != xyes; then
9554 echo "$as_me:$LINENO: result: no" >&5
9555 echo "${ECHO_T}no" >&6
9557 echo "$as_me:$LINENO: result: yes" >&5
9558 echo "${ECHO_T}yes" >&6
9560 cat >>confdefs.h <<\_ACEOF
9561 #define ENABLE_NLS 1
9565 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9566 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9567 # Look for .po and .gmo files in the source directory.
9570 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9571 # If there aren't any .gmo files the shell will give us the
9572 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9574 case "$cat" in *\**)
9577 # The quadruple backslash is collapsed to a double backslash
9578 # by the backticks, then collapsed again by the double quotes,
9579 # leaving us with one backslash in the sed expression (right
9580 # before the dot that mustn't act as a wildcard).
9581 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9582 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9583 # The user is allowed to set LINGUAS to a list of languages to
9584 # install catalogs for. If it's empty that means "all of them."
9585 if test "x$LINGUAS" = x; then
9586 CATALOGS="$CATALOGS $cat"
9587 XLINGUAS="$XLINGUAS $lang"
9589 case "$LINGUAS" in *$lang*)
9590 CATALOGS="$CATALOGS $cat"
9591 XLINGUAS="$XLINGUAS $lang"
9597 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9598 echo "${ECHO_T}$LINGUAS" >&6
9601 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9602 # -liconv on the link line twice.
9603 case "$LIBINTL" in *$LIBICONV*)
9607 # Windows32 Registry support for specifying GCC installation paths.
9608 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9609 if test "${enable_win32_registry+set}" = set; then
9610 enableval="$enable_win32_registry"
9614 win32 | pe | cygwin* | mingw32* | uwin*)
9615 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9616 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9617 if test "x$enable_win32_registry" != xno; then
9619 cat >>confdefs.h <<\_ACEOF
9620 #define ENABLE_WIN32_REGISTRY 1
9623 echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6
9625 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9626 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9627 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 ac_func_search_save_LIBS=$LIBS
9631 ac_cv_search_RegOpenKeyExA=no
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any gcc2 internal prototype to avoid an error. */
9643 /* We use char because int might match the return type of a gcc2
9644 builtin and then its argument prototype would still apply. */
9645 char RegOpenKeyExA ();
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>conftest.er1
9658 grep -v '^ *+' conftest.er1 >conftest.err
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
9663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; }; then
9675 ac_cv_search_RegOpenKeyExA="none required"
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9681 rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9684 for ac_lib in advapi32; do
9685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9686 cat >conftest.$ac_ext <<_ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9693 /* Override any gcc2 internal prototype to avoid an error. */
9697 /* We use char because int might match the return type of a gcc2
9698 builtin and then its argument prototype would still apply. */
9699 char RegOpenKeyExA ();
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710 (eval $ac_link) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9736 rm -f conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9740 LIBS=$ac_func_search_save_LIBS
9742 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9743 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9744 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9745 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9750 echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6
9754 # Check if user specified a different registry key.
9755 case "x${enable_win32_registry}" in
9758 gcc_cv_win32_registry_key="$VERSION"
9761 # no registry lookup.
9762 gcc_cv_win32_registry_key=''
9765 # user-specified key.
9766 gcc_cv_win32_registry_key="$enable_win32_registry"
9770 if test "x$enable_win32_registry" != xno; then
9771 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9772 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9774 cat >>confdefs.h <<_ACEOF
9775 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9778 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9779 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9784 # Get an absolute path to the GCC top-level source directory
9785 holddir=`${PWDCMD-pwd}`
9787 topdir=`${PWDCMD-pwd}`
9790 # Conditionalize the makefile for this host machine.
9792 for f in ${host_xmake_file}
9794 if test -f ${srcdir}/config/$f
9796 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9800 # Conditionalize the makefile for this target machine.
9802 for f in ${tmake_file}
9804 if test -f ${srcdir}/config/$f
9806 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9809 tmake_file="${tmake_file_}"
9811 symbolic_link='ln -s'
9813 # If the host doesn't support symlinks, modify CC in
9814 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9815 # Otherwise, we can use "CC=$(CC)".
9817 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9819 cc_set_by_configure="\$(CC)"
9820 quoted_cc_set_by_configure="\$(CC)"
9821 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9822 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9825 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9827 symbolic_link="cp -p"
9831 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9832 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9833 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9834 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9838 out_object_file=`basename $out_file .c`.o
9842 for f in $tm_file; do
9845 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9846 tm_include_list="${tm_include_list} $f"
9849 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9850 tm_include_list="${tm_include_list} config/$f"
9857 for f in $tm_p_file; do
9860 tm_p_file_list="${tm_p_file_list} $f"
9861 tm_p_include_list="${tm_p_include_list} $f"
9864 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9865 tm_p_include_list="${tm_p_include_list} config/$f"
9871 for f in $xm_file; do
9874 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9875 xm_include_list="${xm_include_list} $f"
9878 xm_file_list="${xm_file_list} $f"
9879 xm_include_list="${xm_include_list} $f"
9882 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9883 xm_include_list="${xm_include_list} config/$f"
9889 host_xm_include_list=
9890 for f in $host_xm_file; do
9893 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9894 host_xm_include_list="${host_xm_include_list} $f"
9897 host_xm_file_list="${host_xm_file_list} $f"
9898 host_xm_include_list="${host_xm_include_list} $f"
9901 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9902 host_xm_include_list="${host_xm_include_list} config/$f"
9908 for f in $build_xm_file; do
9911 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9912 build_xm_include_list="${build_xm_include_list} $f"
9914 auto-build.h | auto-host.h )
9915 build_xm_file_list="${build_xm_file_list} $f"
9916 build_xm_include_list="${build_xm_include_list} $f"
9919 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9920 build_xm_include_list="${build_xm_include_list} config/$f"
9925 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9926 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9929 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9930 if test x$host != x$target
9932 CROSS="-DCROSS_COMPILE"
9934 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9935 case "$host","$target" in
9936 # Darwin crosses can use the host system's libraries and headers,
9937 # because of the fat library support. Of course, it must be the
9938 # same version of Darwin on both sides. Allow the user to
9939 # just say --target=foo-darwin without a version number to mean
9940 # "the version on this system".
9941 *-*-darwin*,*-*-darwin*)
9942 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9943 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9944 if test $hostos = $targetos -o $targetos = darwin ; then
9946 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9951 i?86-*-*,x86_64-*-* \
9952 | powerpc*-*-*,powerpc64*-*-*)
9953 CROSS="$CROSS -DNATIVE_CROSS" ;;
9955 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9956 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9957 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9960 # If this is a cross-compiler that does not
9961 # have its own set of headers then define
9964 # If this is using newlib, without having the headers available now,
9965 # then define inhibit_libc in LIBGCC2_CFLAGS.
9966 # This prevents libgcc2 from containing any code which requires libc
9969 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9970 test x$with_newlib = xyes ; } &&
9971 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9972 inhibit_libc=-Dinhibit_libc
9976 # When building gcc with a cross-compiler, we need to adjust things so
9977 # that the generator programs are still built with the native compiler.
9978 # Also, we cannot run fixincludes or fix-header.
9980 # These are the normal (build=host) settings:
9982 BUILD_PREFIX_1=ignore-
9983 CC_FOR_BUILD='$(CC)'
9984 BUILD_CFLAGS='$(ALL_CFLAGS)'
9986 STMP_FIXINC=stmp-fixinc
9988 # Possibly disable fixproto, on a per-target basis.
9989 case ${use_fixproto} in
9994 STMP_FIXPROTO=stmp-fixproto
9999 # And these apply if build != host, or we are generating coverage data
10000 if test x$build != x$host || test "x$coverage_flags" != x
10002 BUILD_PREFIX=build-
10003 BUILD_PREFIX_1=build-
10004 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10006 if test "x$TARGET_SYSTEM_ROOT" = x; then
10012 # Expand extra_headers to include complete path.
10013 # This substitutes for lots of t-* files.
10014 extra_headers_list=
10015 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10016 for file in ${extra_headers} ; do
10017 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10020 # Define collect2 in Makefile.
10021 case $host_can_use_collect2 in
10023 *) collect2='collect2$(exeext)' ;;
10027 # Add a definition of USE_COLLECT2 if system wants one.
10028 case $use_collect2 in
10029 no) use_collect2= ;;
10032 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10033 xm_defines="${xm_defines} USE_COLLECT2"
10034 case $host_can_use_collect2 in
10036 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10037 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10038 { (exit 1); exit 1; }; }
10044 # ---------------------------
10045 # Assembler & linker features
10046 # ---------------------------
10048 # Identify the assembler which will work hand-in-glove with the newly
10049 # built GCC, so that we can examine its features. This is the assembler
10050 # which will be driven by the driver program.
10052 # If build != host, and we aren't building gas in-tree, we identify a
10053 # build->target assembler and hope that it will have the same features
10054 # as the host->target assembler we'll be using.
10055 echo "$as_me:$LINENO: checking what assembler to use" >&5
10056 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10059 gcc_cv_gas_major_version=
10060 gcc_cv_gas_minor_version=
10061 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10062 if test -x "$DEFAULT_ASSEMBLER"; then
10063 gcc_cv_as="$DEFAULT_ASSEMBLER"
10064 elif test -x "$AS"; then
10066 elif test -x as$host_exeext; then
10067 # Build using assembler in the current directory.
10068 gcc_cv_as=./as$host_exeext
10069 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10070 && test -f ../gas/Makefile; then
10071 # Single tree build which includes gas.
10073 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10074 for f in $gcc_cv_as_bfd_srcdir/configure \
10075 $gcc_cv_as_gas_srcdir/configure \
10076 $gcc_cv_as_gas_srcdir/configure.in \
10077 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10078 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10079 if test x$gcc_cv_gas_version != x; then
10083 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10084 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10085 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10086 case $gcc_cv_gas_patch_version in
10087 "") gcc_cv_gas_patch_version="0" ;;
10089 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10090 + $gcc_cv_gas_minor_version \) \* 1000 \
10091 + $gcc_cv_gas_patch_version`
10093 rm -f as$host_exeext
10094 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10095 in_tree_gas_is_elf=no
10096 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10097 || (grep 'obj_format = multi' ../gas/Makefile \
10098 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10100 in_tree_gas_is_elf=yes
10104 if test "x$gcc_cv_as" = x; then
10105 # Search the same directories that the installed compiler will
10106 # search. Else we may find the wrong assembler and lose. If we
10107 # do not find a suitable assembler binary, then try the user's
10110 # Also note we have to check MD_EXEC_PREFIX before checking the
10111 # user's path. Unfortunately, there is no good way to get at the
10112 # value of MD_EXEC_PREFIX here. So we do a brute force search
10113 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10114 # to be fixed as part of the make/configure rewrite too.
10116 if test "x$exec_prefix" = xNONE; then
10117 if test "x$prefix" = xNONE; then
10118 test_prefix=/usr/local
10120 test_prefix=$prefix
10123 test_prefix=$exec_prefix
10126 # If the loop below does not find an assembler, then use whatever
10127 # one we can find in the users's path.
10129 if test "x$program_prefix" != xNONE; then
10130 gcc_cv_as=${program_prefix}as$host_exeext
10132 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10135 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10136 $test_prefix/libexec/gcc/$target_noncanonical \
10137 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10138 /usr/lib/gcc/$target_noncanonical \
10139 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10140 $test_prefix/$target_noncanonical/bin"
10142 if test x$host = x$target; then
10143 test_dirs="$test_dirs \
10148 /bsd43/usr/lib/cmplrs/cc \
10149 /usr/cross64/usr/bin \
10150 /usr/lib/cmplrs/cc \
10151 /sysv/usr/lib/cmplrs/cc \
10152 /svr4/usr/lib/cmplrs/cc \
10156 for dir in $test_dirs; do
10157 if test -x $dir/as$host_exeext; then
10158 gcc_cv_as=$dir/as$host_exeext
10163 case $in_tree_gas in
10165 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10166 echo "${ECHO_T}\"newly built gas\"" >&6
10169 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10170 echo "${ECHO_T}$gcc_cv_as" >&6
10174 # Identify the linker which will work hand-in-glove with the newly
10175 # built GCC, so that we can examine its features. This is the linker
10176 # which will be driven by the driver program.
10178 # If build != host, and we aren't building gas in-tree, we identify a
10179 # build->target linker and hope that it will have the same features
10180 # as the host->target linker we'll be using.
10181 echo "$as_me:$LINENO: checking what linker to use" >&5
10182 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10185 gcc_cv_gld_major_version=
10186 gcc_cv_gld_minor_version=
10187 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10188 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10189 if test -x "$DEFAULT_LINKER"; then
10190 gcc_cv_ld="$DEFAULT_LINKER"
10191 elif test -x "$LD_FOR_TARGET"; then
10192 gcc_cv_ld="$LD_FOR_TARGET"
10193 elif test -x "$LD" && test x$host = x$target; then
10195 elif test -x collect-ld$host_exeext; then
10196 # Build using linker in the current directory.
10197 gcc_cv_ld=./collect-ld$host_exeext
10198 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10199 && test -f ../ld/Makefile; then
10200 # Single tree build which includes ld.
10202 in_tree_ld_is_elf=no
10203 if (grep 'EMUL = .*elf' ../ld/Makefile \
10204 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10205 in_tree_ld_is_elf=yes
10207 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
10209 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10210 if test x$gcc_cv_gld_version != x; then
10214 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10215 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10216 rm -f collect-ld$host_exeext
10217 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10221 if test "x$gcc_cv_ld" = x; then
10222 # Search the same directories that the installed compiler will
10223 # search. Else we may find the wrong linker and lose. If we
10224 # do not find a suitable linker binary, then try the user's
10227 # Also note we have to check MD_EXEC_PREFIX before checking the
10228 # user's path. Unfortunately, there is no good way to get at the
10229 # value of MD_EXEC_PREFIX here. So we do a brute force search
10230 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10231 # to be fixed as part of the make/configure rewrite too.
10233 if test "x$exec_prefix" = xNONE; then
10234 if test "x$prefix" = xNONE; then
10235 test_prefix=/usr/local
10237 test_prefix=$prefix
10240 test_prefix=$exec_prefix
10243 # If the loop below does not find an linker, then use whatever
10244 # one we can find in the users's path.
10246 if test "x$program_prefix" != xNONE; then
10247 gcc_cv_ld=${program_prefix}ld$host_exeext
10249 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10252 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10253 $test_prefix/libexec/gcc/$target_noncanonical \
10254 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10255 /usr/lib/gcc/$target_noncanonical \
10256 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10257 $test_prefix/$target_noncanonical/bin"
10259 if test x$host = x$target; then
10260 test_dirs="$test_dirs \
10265 /bsd43/usr/lib/cmplrs/cc \
10266 /usr/cross64/usr/bin \
10267 /usr/lib/cmplrs/cc \
10268 /sysv/usr/lib/cmplrs/cc \
10269 /svr4/usr/lib/cmplrs/cc \
10273 for dir in $test_dirs; do
10274 if test -x $dir/ld$host_exeext; then
10275 gcc_cv_ld=$dir/ld$host_exeext
10280 case $in_tree_ld in
10282 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10283 echo "${ECHO_T}\"newly built ld\"" >&6
10286 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10287 echo "${ECHO_T}$gcc_cv_ld" >&6
10291 # Figure out what nm we will be using.
10292 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10293 echo "$as_me:$LINENO: checking what nm to use" >&5
10294 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10296 if test -x nm$host_exeext; then
10297 gcc_cv_nm=./nm$host_exeext
10298 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10299 && test -f ../binutils/Makefile; then
10300 # Single tree build which includes binutils.
10302 gcc_cv_nm=./nm$host_exeext
10303 rm -f nm$host_exeext
10304 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10305 elif test "x$program_prefix" != xNONE; then
10306 gcc_cv_nm=${program_prefix}nm$host_exeext
10308 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10310 case $in_tree_nm in
10311 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10312 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10313 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10314 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10317 # Figure out what objdump we will be using.
10318 echo "$as_me:$LINENO: checking what objdump to use" >&5
10319 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10321 if test -x objdump$host_exeext; then
10322 gcc_cv_objdump=./objdump$host_exeext
10323 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10324 && test -f ../binutils/Makefile; then
10325 # Single tree build which includes binutils.
10326 in_tree_objdump=yes
10327 gcc_cv_objdump=./objdump$host_exeext
10328 rm -f objdump$host_exeext
10329 $symbolic_link ../binutils/objdump$host_exeext \
10330 objdump$host_exeext 2>/dev/null
10331 elif test "x$program_prefix" != xNONE; then
10332 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10334 gcc_cv_objdump=`echo objdump | \
10335 sed "${program_transform_name}"`$host_exeext
10337 case $in_tree_objdump in
10338 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10339 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10340 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10341 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10344 # Figure out what assembler alignment features are present.
10345 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10346 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10347 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 gcc_cv_as_balign_and_p2align=no
10351 if test $in_tree_gas = yes; then
10352 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10353 then gcc_cv_as_balign_and_p2align=yes
10355 elif test x$gcc_cv_as != x; then
10357 .p2align 2' > conftest.s
10358 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }
10365 gcc_cv_as_balign_and_p2align=yes
10367 echo "configure: failed program was" >&5
10370 rm -f conftest.o conftest.s
10373 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10374 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10375 if test $gcc_cv_as_balign_and_p2align = yes; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10383 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10384 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10385 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 gcc_cv_as_max_skip_p2align=no
10389 if test $in_tree_gas = yes; then
10390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10391 then gcc_cv_as_max_skip_p2align=yes
10393 elif test x$gcc_cv_as != x; then
10394 echo '.p2align 4,,7' > conftest.s
10395 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }
10402 gcc_cv_as_max_skip_p2align=yes
10404 echo "configure: failed program was" >&5
10407 rm -f conftest.o conftest.s
10410 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10411 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10412 if test $gcc_cv_as_max_skip_p2align = yes; then
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10420 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10421 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10422 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 gcc_cv_as_subsection_m1=no
10426 if test $in_tree_gas = yes; then
10427 if test $in_tree_gas_is_elf = yes \
10428 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10429 then gcc_cv_as_subsection_m1=yes
10431 elif test x$gcc_cv_as != x; then
10432 echo 'conftest_label1: .word 0
10434 conftest_label2: .word 0
10435 .previous' > conftest.s
10436 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }
10443 if test x$gcc_cv_nm != x; then
10444 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10445 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10446 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10448 else gcc_cv_as_subsection_m1=yes
10450 rm -f conftest.nm1 conftest.nm2
10453 echo "configure: failed program was" >&5
10456 rm -f conftest.o conftest.s
10459 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10460 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10461 if test $gcc_cv_as_subsection_m1 = yes; then
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_GAS_SUBSECTION_ORDERING 1
10469 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10470 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10471 if test "${gcc_cv_as_weak+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 if test $in_tree_gas = yes; then
10476 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10477 then gcc_cv_as_weak=yes
10479 elif test x$gcc_cv_as != x; then
10480 echo ' .weak foobar' > conftest.s
10481 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }
10490 echo "configure: failed program was" >&5
10493 rm -f conftest.o conftest.s
10496 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10497 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10498 if test $gcc_cv_as_weak = yes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_GAS_WEAK 1
10506 # .hidden needs to be supported in both the assembler and the linker,
10507 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10508 # This is irritatingly difficult to feature test for; we have to check the
10509 # date string after the version number. If we've got an in-tree
10510 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10512 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10513 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10514 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10515 if test "${gcc_cv_as_hidden+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 gcc_cv_as_hidden=no
10519 if test $in_tree_gas = yes; then
10520 if test $in_tree_gas_is_elf = yes \
10521 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10522 then gcc_cv_as_hidden=yes
10524 elif test x$gcc_cv_as != x; then
10525 echo ' .hidden foobar
10526 foobar:' > conftest.s
10527 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }
10534 gcc_cv_as_hidden=yes
10536 echo "configure: failed program was" >&5
10539 rm -f conftest.o conftest.s
10542 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10543 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10546 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10547 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10548 if test "${gcc_cv_ld_hidden+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 if test $in_tree_ld = yes ; then
10552 gcc_cv_ld_hidden=no
10553 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
10554 && test $in_tree_ld_is_elf = yes; then
10555 gcc_cv_ld_hidden=yes
10558 gcc_cv_ld_hidden=yes
10559 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10560 if echo "$ld_ver" | grep GNU > /dev/null; then
10561 ld_vers=`echo $ld_ver | sed -n \
10562 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10563 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10564 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10565 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10566 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10567 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10568 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
10569 if test 0"$ld_date" -lt 20020404; then
10570 if test -n "$ld_date"; then
10571 # If there was date string, but was earlier than 2002-04-04, fail
10572 gcc_cv_ld_hidden=no
10573 elif test -z "$ld_vers"; then
10574 # If there was no date string nor ld version number, something is wrong
10575 gcc_cv_ld_hidden=no
10577 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10578 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10579 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10580 test -z "$ld_vers_patch" && ld_vers_patch=0
10581 if test "$ld_vers_major" -lt 2; then
10582 gcc_cv_ld_hidden=no
10583 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10584 gcc_cv_ld_hidden="no"
10585 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10586 gcc_cv_ld_hidden=no
10591 case "${target}" in
10592 hppa64*-*-hpux* | ia64*-*-hpux*)
10593 gcc_cv_ld_hidden=yes
10596 gcc_cv_ld_hidden=no
10602 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10603 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10604 libgcc_visibility=no
10606 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10607 libgcc_visibility=yes
10609 cat >>confdefs.h <<\_ACEOF
10610 #define HAVE_GAS_HIDDEN 1
10615 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10616 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10617 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10618 if test "${gcc_cv_as_leb128+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10621 gcc_cv_as_leb128=no
10622 if test $in_tree_gas = yes; then
10623 if test $in_tree_gas_is_elf = yes \
10624 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10625 then gcc_cv_as_leb128=yes
10627 elif test x$gcc_cv_as != x; then
10634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }
10641 # GAS versions before 2.11 do not support uleb128,
10642 # despite appearing to.
10643 # ??? There exists an elf-specific test that will crash
10644 # the assembler. Perhaps it's better to figure out whether
10645 # arbitrary sections are supported and try the test.
10646 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10647 if echo "$as_ver" | grep GNU > /dev/null; then
10648 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10649 as_major=`echo $as_ver | sed 's/\..*//'`
10650 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10651 if test $as_major -eq 2 && test $as_minor -lt 11
10653 else gcc_cv_as_leb128=yes
10657 echo "configure: failed program was" >&5
10660 rm -f conftest.o conftest.s
10663 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10664 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10665 if test $gcc_cv_as_leb128 = yes; then
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_AS_LEB128 1
10673 # GAS versions up to and including 2.11.0 may mis-optimize
10675 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10676 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10677 if test "${gcc_cv_as_eh_frame+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 gcc_cv_as_eh_frame=no
10681 if test $in_tree_gas = yes; then
10682 if test $in_tree_gas_is_elf = yes \
10683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10684 then gcc_cv_as_eh_frame=yes
10686 elif test x$gcc_cv_as != x; then
10693 .section .eh_frame,"aw",@progbits
10695 .4byte .LECIE1-.LSCIE1
10709 .4byte .LEFDE1-.LASFDE1
10711 .4byte .LASFDE1-__FRAME_BEGIN__
10718 .LEFDE1:' > conftest.s
10719 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }
10726 cat > conftest.lit <<EOF
10727 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10728 0010 01000000 12000000 18000000 00000000 ................
10729 0020 08000000 04080000 0044 .........D
10731 cat > conftest.big <<EOF
10732 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10733 0010 00000001 00000012 00000018 00000000 ................
10734 0020 00000008 04000000 0844 .........D
10736 # If the assembler didn't choke, and we can objdump,
10737 # and we got the correct data, then succeed.
10738 if test x$gcc_cv_objdump != x \
10739 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10740 | tail -3 > conftest.got \
10741 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10742 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10744 gcc_cv_as_eh_frame=yes
10745 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 gcc_cv_as_eh_frame=buggy
10753 # Uh oh, what do we do now?
10754 gcc_cv_as_eh_frame=no
10757 echo "configure: failed program was" >&5
10760 rm -f conftest.o conftest.s
10763 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10764 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10767 if test $gcc_cv_as_eh_frame = buggy; then
10769 cat >>confdefs.h <<\_ACEOF
10770 #define USE_AS_TRADITIONAL_FORMAT 1
10775 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10776 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10777 if test "${gcc_cv_as_shf_merge+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 gcc_cv_as_shf_merge=no
10781 if test $in_tree_gas = yes; then
10782 if test $in_tree_gas_is_elf = yes \
10783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10784 then gcc_cv_as_shf_merge=yes
10786 elif test x$gcc_cv_as != x; then
10787 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10788 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }
10795 gcc_cv_as_shf_merge=yes
10797 echo "configure: failed program was" >&5
10800 rm -f conftest.o conftest.s
10803 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10804 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10812 # Thread-local storage - the check is heavily parametrized.
10820 .section ".tdata","awT",@progbits
10823 ldq $27,__tls_get_addr($29) !literal!1
10824 lda $16,foo($29) !tlsgd!1
10825 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10826 ldq $27,__tls_get_addr($29) !literal!2
10827 lda $16,foo($29) !tlsldm!2
10828 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10829 ldq $1,foo($29) !gotdtprel
10830 ldah $2,foo($29) !dtprelhi
10831 lda $3,foo($2) !dtprello
10832 lda $4,foo($29) !dtprel
10833 ldq $1,foo($29) !gottprel
10834 ldah $2,foo($29) !tprelhi
10835 lda $3,foo($2) !tprello
10836 lda $4,foo($29) !tprel'
10839 tls_as_opt=--fatal-warnings
10843 .section ".tdata","awT",@progbits
10847 leal foo@TLSGD(,%ebx,1), %eax
10848 leal foo@TLSLDM(%ebx), %eax
10849 leal foo@DTPOFF(%eax), %edx
10850 movl foo@GOTTPOFF(%ebx), %eax
10851 subl foo@GOTTPOFF(%ebx), %eax
10852 addl foo@GOTNTPOFF(%ebx), %eax
10853 movl foo@INDNTPOFF, %eax
10854 movl $foo@TPOFF, %eax
10855 subl $foo@TPOFF, %eax
10856 leal foo@NTPOFF(%ecx), %eax'
10859 tls_as_opt=--fatal-warnings
10863 .section ".tdata","awT",@progbits
10867 leaq foo@TLSGD(%rip), %rdi
10868 leaq foo@TLSLD(%rip), %rdi
10869 leaq foo@DTPOFF(%rax), %rdx
10870 movq foo@GOTTPOFF(%rip), %rax
10871 movq $foo@TPOFF, %rax'
10874 tls_as_opt=--fatal-warnings
10878 .section ".tdata","awT",@progbits
10881 addl r16 = @ltoff(@dtpmod(foo#)), gp
10882 addl r17 = @ltoff(@dtprel(foo#)), gp
10883 addl r18 = @ltoff(@tprel(foo#)), gp
10884 addl r19 = @dtprel(foo#), gp
10885 adds r21 = @dtprel(foo#), r13
10886 movl r23 = @dtprel(foo#)
10887 addl r20 = @tprel(foo#), gp
10888 adds r22 = @tprel(foo#), r13
10889 movl r24 = @tprel(foo#)'
10892 tls_as_opt=--fatal-warnings
10896 .section ".tdata","awT",@progbits
10904 addi 3,31,ld0@got@tlsgd
10906 addi 3,31,x1@got@tlsld
10909 addis 9,3,x2@dtprel@ha
10910 addi 9,9,x2@dtprel@l
10911 lwz 9,x3@got@tprel(31)
10914 addis 9,2,x2@tprel@ha
10915 addi 9,9,x2@tprel@l'
10918 tls_as_opt="-a32 --fatal-warnings"
10922 .section ".tdata","awT",@progbits
10930 addi 3,2,ld0@got@tlsgd
10936 addi 3,2,x1@got@tlsld
10942 addis 9,3,x2@dtprel@ha
10943 addi 9,9,x2@dtprel@l
10946 ld 9,x3@got@dtprel(2)
10952 tls_as_opt="-a64 --fatal-warnings"
10956 .section ".tdata","awT",@progbits
10963 .long foo@GOTNTPOFF
10964 .long foo@INDNTPOFF
10965 l %r1,foo@GOTNTPOFF(%r12)
10966 l %r1,0(%r1):tls_load:foo
10967 bas %r14,0(%r1,%r13):tls_gdcall:foo
10968 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10971 tls_as_opt="-m31 --fatal-warnings"
10975 .section ".tdata","awT",@progbits
10982 .quad foo@GOTNTPOFF
10983 lg %r1,foo@GOTNTPOFF(%r12)
10984 larl %r1,foo@INDNTPOFF
10985 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10986 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10989 tls_as_opt="-m64 -Aesame --fatal-warnings"
10991 sh-*-* | sh[34]-*-*)
10993 .section ".tdata","awT",@progbits
11003 tls_as_opt=--fatal-warnings
11007 sparc*-sun-solaris2.*)
11014 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11016 .section ".tdata",#alloc,#write,#tls
11019 sethi %tgd_hi22(foo), %o0
11020 add %o0, %tgd_lo10(foo), %o1
11021 add %l7, %o1, %o0, %tgd_add(foo)
11022 call __tls_get_addr, %tgd_call(foo)
11023 sethi %tldm_hi22(foo), %l1
11024 add %l1, %tldm_lo10(foo), %l2
11025 add %l7, %l2, %o0, %tldm_add(foo)
11026 call __tls_get_addr, %tldm_call(foo)
11027 sethi %tldo_hix22(foo), %l3
11028 xor %l3, %tldo_lox10(foo), %l4
11029 add %o0, %l4, %l5, %tldo_add(foo)
11030 sethi %tie_hi22(foo), %o3
11031 add %o3, %tie_lo10(foo), %o3
11032 ld [%l7 + %o3], %o2, %tie_ld(foo)
11033 add %g7, %o2, %o4, %tie_add(foo)
11034 sethi %tle_hix22(foo), %l1
11035 xor %l1, %tle_lox10(foo), %o5
11036 ld [%g7 + %o5], %o1'
11041 .section ".tdata","awT",@progbits
11044 sethi %tgd_hi22(foo), %o0
11045 add %o0, %tgd_lo10(foo), %o1
11046 add %l7, %o1, %o0, %tgd_add(foo)
11047 call __tls_get_addr, %tgd_call(foo)
11048 sethi %tldm_hi22(foo), %l1
11049 add %l1, %tldm_lo10(foo), %l2
11050 add %l7, %l2, %o0, %tldm_add(foo)
11051 call __tls_get_addr, %tldm_call(foo)
11052 sethi %tldo_hix22(foo), %l3
11053 xor %l3, %tldo_lox10(foo), %l4
11054 add %o0, %l4, %l5, %tldo_add(foo)
11055 sethi %tie_hi22(foo), %o3
11056 add %o3, %tie_lo10(foo), %o3
11057 ld [%l7 + %o3], %o2, %tie_ld(foo)
11058 add %g7, %o2, %o4, %tie_add(foo)
11059 sethi %tle_hix22(foo), %l1
11060 xor %l1, %tle_lox10(foo), %o5
11061 ld [%g7 + %o5], %o1'
11064 tls_as_opt="-32 --fatal-warnings"
11068 if test -z "$tls_first_major"; then
11069 : # If we don't have a check, assume no support.
11071 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11072 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11073 if test "${gcc_cv_as_tls+set}" = set; then
11074 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 if test $in_tree_gas = yes; then
11078 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11079 then gcc_cv_as_tls=yes
11081 elif test x$gcc_cv_as != x; then
11082 echo "$conftest_s" > conftest.s
11083 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }
11092 echo "configure: failed program was" >&5
11095 rm -f conftest.o conftest.s
11098 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11099 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11100 if test $gcc_cv_as_tls = yes; then
11102 cat >>confdefs.h <<\_ACEOF
11103 #define HAVE_AS_TLS 1
11109 # Target-specific assembler checks.
11112 # All TARGET_ABI_OSF targets.
11113 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11114 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11115 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11116 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 gcc_cv_as_alpha_explicit_relocs=no
11120 if test $in_tree_gas = yes; then
11121 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11122 then gcc_cv_as_alpha_explicit_relocs=yes
11124 elif test x$gcc_cv_as != x; then
11125 echo ' .set nomacro
11127 extbl $3, $2, $3 !lituse_bytoff!1
11128 ldq $2, a($29) !literal!1
11129 ldq $4, b($29) !literal!2
11130 ldq_u $3, 0($2) !lituse_base!1
11131 ldq $27, f($29) !literal!5
11132 jsr $26, ($27), f !lituse_jsr!5
11133 ldah $29, 0($26) !gpdisp!3
11134 lda $0, c($29) !gprel
11135 ldah $1, d($29) !gprelhigh
11136 lda $1, d($1) !gprellow
11137 lda $29, 0($29) !gpdisp!3' > conftest.s
11138 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }
11145 gcc_cv_as_alpha_explicit_relocs=yes
11147 echo "configure: failed program was" >&5
11150 rm -f conftest.o conftest.s
11153 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11154 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11155 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11157 cat >>confdefs.h <<\_ACEOF
11158 #define HAVE_AS_EXPLICIT_RELOCS 1
11165 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11166 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11167 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 gcc_cv_as_cris_no_mul_bug=no
11171 if test $in_tree_gas = yes; then
11172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11173 then gcc_cv_as_cris_no_mul_bug=yes
11175 elif test x$gcc_cv_as != x; then
11176 echo '.text' > conftest.s
11177 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }
11184 gcc_cv_as_cris_no_mul_bug=yes
11186 echo "configure: failed program was" >&5
11189 rm -f conftest.o conftest.s
11192 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11193 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11194 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11196 cat >>confdefs.h <<\_ACEOF
11197 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11204 echo "$as_me:$LINENO: checking assembler for .register" >&5
11205 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11206 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 gcc_cv_as_sparc_register_op=no
11210 if test x$gcc_cv_as != x; then
11211 echo '.register %g2, #scratch' > conftest.s
11212 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; }
11219 gcc_cv_as_sparc_register_op=yes
11221 echo "configure: failed program was" >&5
11224 rm -f conftest.o conftest.s
11227 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11228 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11229 if test $gcc_cv_as_sparc_register_op = yes; then
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11237 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11238 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11239 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 gcc_cv_as_sparc_relax=no
11243 if test x$gcc_cv_as != x; then
11244 echo '.text' > conftest.s
11245 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }
11252 gcc_cv_as_sparc_relax=yes
11254 echo "configure: failed program was" >&5
11257 rm -f conftest.o conftest.s
11260 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11261 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11262 if test $gcc_cv_as_sparc_relax = yes; then
11264 cat >>confdefs.h <<\_ACEOF
11265 #define HAVE_AS_RELAX_OPTION 1
11270 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11271 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11272 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 gcc_cv_as_sparc_ua_pcrel=no
11276 if test x$gcc_cv_as != x; then
11283 .uaword %r_disp32(foo)' > conftest.s
11284 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }
11291 if test x$gcc_cv_ld != x \
11292 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11293 gcc_cv_as_sparc_ua_pcrel=yes
11297 echo "configure: failed program was" >&5
11300 rm -f conftest.o conftest.s
11303 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11304 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11305 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_AS_SPARC_UA_PCREL 1
11312 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11313 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11314 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 gcc_cv_as_sparc_ua_pcrel_hidden=no
11318 if test x$gcc_cv_as != x; then
11322 .uaword %r_disp32(foo)
11323 .byte 0x32, 0x33, 0x34
11327 .skip 4' > conftest.s
11328 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }
11335 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11336 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11337 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11338 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11339 if $gcc_cv_objdump -R conftest 2> /dev/null \
11340 | grep 'DISP32' > /dev/null 2>&1; then
11343 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11348 echo "configure: failed program was" >&5
11351 rm -f conftest.o conftest.s
11354 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11355 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11356 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11358 cat >>confdefs.h <<\_ACEOF
11359 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11364 fi # unaligned pcrel relocs
11366 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11367 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11368 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 gcc_cv_as_sparc_offsetable_lo10=no
11372 if test x$gcc_cv_as != x; then
11374 or %g1, %lo(ab) + 12, %g1
11375 or %g1, %lo(ab + 12), %g1' > conftest.s
11376 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }
11383 if test x$gcc_cv_objdump != x \
11384 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11385 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11386 gcc_cv_as_offsetable_lo10=yes
11389 echo "configure: failed program was" >&5
11392 rm -f conftest.o conftest.s
11395 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11396 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11397 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_AS_OFFSETABLE_LO10 1
11406 i[34567]86-*-* | x86_64-*-*)
11407 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11408 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11409 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 gcc_cv_as_ix86_filds_fists=no
11413 if test $in_tree_gas = yes; then
11414 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11415 then gcc_cv_as_ix86_filds_fists=yes
11417 elif test x$gcc_cv_as != x; then
11418 echo 'filds mem; fists mem' > conftest.s
11419 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }
11426 gcc_cv_as_ix86_filds_fists=yes
11428 echo "configure: failed program was" >&5
11431 rm -f conftest.o conftest.s
11434 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11435 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11436 if test $gcc_cv_as_ix86_filds_fists = yes; then
11438 cat >>confdefs.h <<\_ACEOF
11439 #define HAVE_GAS_FILDS_FISTS 1
11444 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11445 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11446 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 gcc_cv_as_ix86_cmov_sun_syntax=no
11450 if test x$gcc_cv_as != x; then
11451 echo 'cmovl.l %edx, %eax' > conftest.s
11452 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11454 (eval $ac_try) 2>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }
11459 gcc_cv_as_ix86_cmov_sun_syntax=yes
11461 echo "configure: failed program was" >&5
11464 rm -f conftest.o conftest.s
11467 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11468 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11469 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11477 # This one is used unconditionally by i386.[ch]; it is to be defined
11478 # to 1 if the feature is present, 0 otherwise.
11479 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11480 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11481 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 gcc_cv_as_ix86_gotoff_in_data=no
11485 if test $in_tree_gas = yes; then
11486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11487 then gcc_cv_as_ix86_gotoff_in_data=yes
11489 elif test x$gcc_cv_as != x; then
11494 .long .L0@GOTOFF' > conftest.s
11495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }
11502 gcc_cv_as_ix86_gotoff_in_data=yes
11504 echo "configure: failed program was" >&5
11507 rm -f conftest.o conftest.s
11510 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11511 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11514 cat >>confdefs.h <<_ACEOF
11515 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11521 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11522 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11523 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11524 echo $ECHO_N "(cached) $ECHO_C" >&6
11526 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11527 if test $in_tree_gas = yes; then
11528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11529 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11531 elif test x$gcc_cv_as != x; then
11533 addl r15 = @ltoffx(x#), gp
11535 ld8.mov r16 = [r15], x#' > conftest.s
11536 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }
11543 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11545 echo "configure: failed program was" >&5
11548 rm -f conftest.o conftest.s
11551 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11552 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11553 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11555 cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11565 *-*-aix*) conftest_s=' .csect .text[PR]
11567 *-*-darwin*) conftest_s=' .text
11569 *) conftest_s=' .text
11573 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11574 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11575 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 gcc_cv_as_powerpc_mfcrf=no
11579 if test $in_tree_gas = yes; then
11580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11581 then gcc_cv_as_powerpc_mfcrf=yes
11583 elif test x$gcc_cv_as != x; then
11584 echo "$conftest_s" > conftest.s
11585 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; }
11592 gcc_cv_as_powerpc_mfcrf=yes
11594 echo "configure: failed program was" >&5
11597 rm -f conftest.o conftest.s
11600 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11601 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11602 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11604 cat >>confdefs.h <<\_ACEOF
11605 #define HAVE_AS_MFCRF 1
11612 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11613 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11614 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 gcc_cv_as_mips_explicit_relocs=no
11618 if test $in_tree_gas = yes; then
11619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11620 then gcc_cv_as_mips_explicit_relocs=yes
11622 elif test x$gcc_cv_as != x; then
11623 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11624 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }
11631 gcc_cv_as_mips_explicit_relocs=yes
11633 echo "configure: failed program was" >&5
11636 rm -f conftest.o conftest.s
11639 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11640 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11641 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11642 if test x$target_cpu_default = x
11643 then target_cpu_default=MASK_EXPLICIT_RELOCS
11644 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11650 # ??? Not all targets support dwarf2 debug_line, even within a version
11651 # of gas. Moreover, we need to emit a valid instruction to trigger any
11652 # info to the output file. So, as supported targets are added to gas 2.11,
11653 # add some instruction here to (also) show we expect this might work.
11654 # ??? Once 2.11 is released, probably need to add first known working
11655 # version to the per-target configury.
11657 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11658 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11659 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11662 ia64*-*-* | s390*-*-*)
11669 if test x"$insn" != x; then
11671 .file 1 \"conftest.s\"
11674 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11675 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11676 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 gcc_cv_as_dwarf2_debug_line=no
11680 if test $in_tree_gas = yes; then
11681 if test $in_tree_gas_is_elf = yes \
11682 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11683 then gcc_cv_as_dwarf2_debug_line=yes
11685 elif test x$gcc_cv_as != x; then
11686 echo "$conftest_s" > conftest.s
11687 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }
11694 # ??? This fails with non-gnu grep. Maybe use objdump?
11695 if grep debug_line conftest.o > /dev/null 2>&1; then
11696 gcc_cv_as_dwarf2_debug_line=yes
11699 echo "configure: failed program was" >&5
11702 rm -f conftest.o conftest.s
11705 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11706 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11709 # The .debug_line file table must be in the exact order that
11710 # we specified the files, since these indices are also used
11711 # by DW_AT_decl_file. Approximate this test by testing if
11712 # the assembler bitches if the same index is assigned twice.
11713 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11714 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11715 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 gcc_cv_as_dwarf2_file_buggy=no
11719 if test x$gcc_cv_as != x; then
11720 echo ' .file 1 "foo.s"
11721 .file 1 "bar.s"' > conftest.s
11722 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }
11729 gcc_cv_as_dwarf2_file_buggy=yes
11731 echo "configure: failed program was" >&5
11734 rm -f conftest.o conftest.s
11737 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11738 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11741 if test $gcc_cv_as_dwarf2_debug_line = yes \
11742 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11744 cat >>confdefs.h <<\_ACEOF
11745 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11750 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11751 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11752 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 gcc_cv_as_gdwarf2_flag=no
11756 if test $in_tree_gas = yes; then
11757 if test $in_tree_gas_is_elf = yes \
11758 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11759 then gcc_cv_as_gdwarf2_flag=yes
11761 elif test x$gcc_cv_as != x; then
11762 echo "$insn" > conftest.s
11763 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }
11770 gcc_cv_as_gdwarf2_flag=yes
11772 echo "configure: failed program was" >&5
11775 rm -f conftest.o conftest.s
11778 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11779 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11780 if test $gcc_cv_as_gdwarf2_flag = yes; then
11782 cat >>confdefs.h <<\_ACEOF
11783 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11788 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11789 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11790 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 gcc_cv_as_gstabs_flag=no
11794 if test $in_tree_gas = yes; then
11795 if test $in_tree_gas_is_elf = yes \
11796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11797 then gcc_cv_as_gstabs_flag=yes
11799 elif test x$gcc_cv_as != x; then
11800 echo "$insn" > conftest.s
11801 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }
11808 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11809 # and warns about it, but still exits successfully. So check for
11811 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }
11818 else gcc_cv_as_gstabs_flag=yes
11821 echo "configure: failed program was" >&5
11824 rm -f conftest.o conftest.s
11827 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11828 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11829 if test $gcc_cv_as_gstabs_flag = yes; then
11831 cat >>confdefs.h <<\_ACEOF
11832 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11838 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11839 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11840 gcc_cv_ld_ro_rw_mix=unknown
11841 if test $in_tree_ld = yes ; then
11842 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
11843 && test $in_tree_ld_is_elf = yes; then
11844 gcc_cv_ld_ro_rw_mix=read-write
11846 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11847 echo '.section myfoosect, "a"' > conftest1.s
11848 echo '.section myfoosect, "aw"' > conftest2.s
11849 echo '.byte 1' >> conftest2.s
11850 echo '.section myfoosect, "a"' > conftest3.s
11851 echo '.byte 0' >> conftest3.s
11852 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11853 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11854 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11855 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11856 conftest2.o conftest3.o > /dev/null 2>&1; then
11857 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11858 | sed -e '/myfoosect/!d' -e N`
11859 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11860 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11861 gcc_cv_ld_ro_rw_mix=read-only
11863 gcc_cv_ld_ro_rw_mix=read-write
11867 rm -f conftest.* conftest[123].*
11869 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11876 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11877 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11879 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11880 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11881 gcc_cv_ld_eh_frame_hdr=no
11882 if test $in_tree_ld = yes ; then
11883 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
11884 && test $in_tree_ld_is_elf = yes; then
11885 gcc_cv_ld_eh_frame_hdr=yes
11887 elif test x$gcc_cv_ld != x; then
11888 # Check if linker supports --eh-frame-hdr option
11889 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11890 gcc_cv_ld_eh_frame_hdr=yes
11893 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define HAVE_LD_EH_FRAME_HDR 1
11900 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11901 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11903 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11904 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11906 if test $in_tree_ld = yes ; then
11907 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
11908 && test $in_tree_ld_is_elf = yes; then
11911 elif test x$gcc_cv_ld != x; then
11912 # Check if linker supports -pie option
11913 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11917 if test x"$gcc_cv_ld_pie" = xyes; then
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_LD_PIE 1
11924 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11925 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11931 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11932 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11933 gcc_cv_ld_as_needed=no
11934 if test $in_tree_ld = yes ; then
11935 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11936 && test $in_tree_ld_is_elf = yes; then
11937 gcc_cv_ld_as_needed=yes
11939 elif test x$gcc_cv_ld != x; then
11940 # Check if linker supports --as-needed and --no-as-needed options
11941 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
11942 gcc_cv_ld_as_needed=yes
11945 if test x"$gcc_cv_ld_as_needed" = xyes; then
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_LD_AS_NEEDED 1
11952 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11953 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11955 if test x$with_sysroot = x && test x$host = x$target \
11956 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define PREFIX_INCLUDE_DIR "$prefix/include"
11964 # Find out what GC implementation we want, or may, use.
11966 # Check whether --with-gc or --without-gc was given.
11967 if test "${with_gc+set}" = set; then
11974 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11975 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11976 { (exit 1); exit 1; }; }
11983 echo "Using $GGC for garbage collection."
11985 # Use the system's zlib library.
11987 zlibinc="-I\$(srcdir)/../zlib"
11989 # Check whether --with-system-zlib or --without-system-zlib was given.
11990 if test "${with_system_zlib+set}" = set; then
11991 withval="$with_system_zlib"
12000 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12001 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12002 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12003 if test "${enable_maintainer_mode+set}" = set; then
12004 enableval="$enable_maintainer_mode"
12005 maintainer_mode=$enableval
12010 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12011 echo "${ECHO_T}$maintainer_mode" >&6
12013 if test "$maintainer_mode" = "yes"; then
12023 # Make empty files to contain the specs and options for each language.
12024 # Then add #include lines to for a compiler that has specs and/or options.
12029 for subdir in . $subdirs
12031 if test -f $srcdir/$subdir/lang.opt; then
12032 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12034 if test -f $srcdir/$subdir/lang-specs.h; then
12035 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12037 if test -f $srcdir/$subdir/$subdir-tree.def; then
12038 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12042 # These (without "all_") are set in each config-lang.in.
12043 # `language' must be a single word so is spelled singularly.
12045 all_boot_languages=
12048 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12049 # List of language makefile fragments.
12050 all_lang_makefrags=
12051 # List of language subdirectory makefiles. Deprecated.
12052 all_lang_makefiles=
12053 # Files for gengtype
12054 all_gtfiles="$target_gtfiles"
12055 # Files for gengtype with language
12056 all_gtfiles_files_langs=
12057 all_gtfiles_files_files=
12059 # Add the language fragments.
12060 # Languages are added via two mechanisms. Some information must be
12061 # recorded in makefile variables, these are defined in config-lang.in.
12062 # We accumulate them and plug them into the main Makefile.
12063 # The other mechanism is a set of hooks for each of the main targets
12064 # like `clean', `install', etc.
12066 language_hooks="Make-hooks"
12076 . ${srcdir}/$s/config-lang.in
12077 if test "x$language" = x
12079 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12082 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12083 if test -f ${srcdir}/$s/Makefile.in
12084 then all_lang_makefiles="$s/Makefile"
12086 all_languages="$all_languages $language"
12087 if test "x$boot_language" = xyes
12089 all_boot_languages="$all_boot_languages $language"
12091 all_compilers="$all_compilers $compilers"
12092 all_stagestuff="$all_stagestuff $stagestuff"
12093 all_outputs="$all_outputs $outputs"
12094 all_gtfiles="$all_gtfiles $gtfiles"
12097 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12098 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12102 # Pick up gtfiles for c
12105 . ${srcdir}/c-config-lang.in
12106 all_gtfiles="$all_gtfiles $gtfiles"
12109 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12110 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12114 for language in $all_languages
12116 check_languages="$check_languages check-$language"
12119 # We link each language in with a set of hooks, reached indirectly via
12124 target_list="all.build all.cross start.encap rest.encap tags \
12125 install-normal install-common install-man \
12126 uninstall info man srcextra srcman srcinfo \
12127 mostlyclean clean distclean maintainer-clean \
12128 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12129 for t in $target_list
12132 for lang in $all_languages
12136 echo "lang.$t: $x" >> Make-hooks
12145 echo "dir ." > .gdbinit
12146 echo "dir ${srcdir}" >> .gdbinit
12147 if test x$gdb_needs_out_file_path = xyes
12149 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12151 if test "x$subdirs" != x; then
12154 echo "dir ${srcdir}/$s" >> .gdbinit
12157 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12159 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12160 # absolute path for gcc_tooldir based on inserting the number of up-directory
12161 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12162 # $(libsubdir)/@(unlibsubdir) based path.
12163 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12164 # make and thus we'd get different behavior depending on where we built the
12166 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12167 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12169 # An explanation of the sed strings:
12170 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12171 # -e 's|/$||' match a trailing forward slash and eliminates it
12172 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12173 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12175 # (*) Note this pattern overwrites the first character of the string
12176 # with a forward slash if one is not already present. This is not a
12177 # problem because the exact names of the sub-directories concerned is
12178 # unimportant, just the number of them matters.
12180 # The practical upshot of these patterns is like this:
12182 # prefix exec_prefix result
12183 # ------ ----------- ------
12184 # /foo /foo/bar ../
12185 # /foo/ /foo/bar ../
12186 # /foo /foo/bar/ ../
12187 # /foo/ /foo/bar/ ../
12188 # /foo /foo/bar/ugg ../../
12191 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12196 # Find a directory in which to install a shared libgcc.
12198 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12199 if test "${enable_version_specific_runtime_libs+set}" = set; then
12200 enableval="$enable_version_specific_runtime_libs"
12205 # Check whether --with-slibdir or --without-slibdir was given.
12206 if test "${with_slibdir+set}" = set; then
12207 withval="$with_slibdir"
12208 slibdir="$with_slibdir"
12210 if test "${enable_version_specific_runtime_libs+set}" = set; then
12211 slibdir='$(libsubdir)'
12212 elif test "$host" != "$target"; then
12213 slibdir='$(build_tooldir)/lib'
12215 slibdir='$(libdir)'
12220 objdir=`${PWDCMD-pwd}`
12223 # Substitute configuration variables
12292 # If it doesn't already exist, create document directory
12293 echo "checking for the document directory." 1>&2
12294 if test -d doc ; then
12301 if test x${build} = x${host} ; then
12302 if test x${host} = x${target} ; then
12303 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12305 echo "Links are now set up to build a cross-compiler" 1>&2
12306 echo " from ${host} to ${target}." 1>&2
12309 if test x${host} = x${target} ; then
12310 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12311 echo " for ${target}." 1>&2
12313 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12314 echo " from ${host} to ${target}." 1>&2
12318 # Configure the subdirectories
12319 # AC_CONFIG_SUBDIRS($subdirs)
12321 # Create the Makefile
12322 # and configure language subdirectories
12323 ac_config_files="$ac_config_files $all_outputs"
12326 ac_config_commands="$ac_config_commands default"
12328 cat >confcache <<\_ACEOF
12329 # This file is a shell script that caches the results of configure
12330 # tests run on this system so they can be shared between configure
12331 # scripts and configure runs, see configure's option --config-cache.
12332 # It is not useful on other systems. If it contains results you don't
12333 # want to keep, you may remove or edit it.
12335 # config.status only pays attention to the cache file if you give it
12336 # the --recheck option to rerun configure.
12338 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12339 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12340 # following values.
12344 # The following way of writing the cache mishandles newlines in values,
12345 # but we know of no workaround that is simple, portable, and efficient.
12346 # So, don't put newlines in cache variables' values.
12347 # Ultrix sh set writes to stderr and can't be redirected directly,
12348 # and sets the high bit in the cache file unless we assign to the vars.
12351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12353 # `set' does not quote correctly, so add quotes (double-quote
12354 # substitution turns \\\\ into \\, and sed turns \\ into \).
12357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12360 # `set' quotes correctly as required by POSIX, so do not add quotes.
12362 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12369 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12371 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12373 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12374 if test -w $cache_file; then
12375 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12376 cat confcache >$cache_file
12378 echo "not updating unwritable cache $cache_file"
12383 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12384 # Let make expand exec_prefix.
12385 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12387 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12388 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12389 # trailing colons and then remove the whole line if VPATH becomes empty
12390 # (actually we leave an empty line to preserve line numbers).
12391 if test "x$srcdir" = x.; then
12392 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12393 s/:*\$(srcdir):*/:/;
12394 s/:*\${srcdir}:*/:/;
12396 s/^\([^=]*=[ ]*\):*/\1/;
12402 DEFS=-DHAVE_CONFIG_H
12406 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12407 # 1. Remove the extension, and $U if already installed.
12408 ac_i=`echo "$ac_i" |
12409 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12411 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12412 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12414 LIBOBJS=$ac_libobjs
12416 LTLIBOBJS=$ac_ltlibobjs
12420 : ${CONFIG_STATUS=./config.status}
12421 ac_clean_files_save=$ac_clean_files
12422 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12423 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12424 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12425 cat >$CONFIG_STATUS <<_ACEOF
12427 # Generated by $as_me.
12428 # Run this file to recreate the current configuration.
12429 # Compiler output produced by configure, useful for debugging
12430 # configure, is in config.log if it exists.
12433 ac_cs_recheck=false
12435 SHELL=\${CONFIG_SHELL-$SHELL}
12438 cat >>$CONFIG_STATUS <<\_ACEOF
12439 ## --------------------- ##
12440 ## M4sh Initialization. ##
12441 ## --------------------- ##
12443 # Be Bourne compatible
12444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12448 # is contrary to our usage. Disable this feature.
12449 alias -g '${1+"$@"}'='"$@"'
12450 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12453 DUALCASE=1; export DUALCASE # for MKS sh
12455 # Support unset when possible.
12456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12463 # Work around bugs in pre-3.0 UWIN ksh.
12464 $as_unset ENV MAIL MAILPATH
12471 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12472 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12473 LC_TELEPHONE LC_TIME
12475 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12476 eval $as_var=C; export $as_var
12482 # Required to use basename.
12483 if expr a : '\(a\)' >/dev/null 2>&1; then
12489 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12490 as_basename=basename
12496 # Name of the executable.
12497 as_me=`$as_basename "$0" ||
12498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12499 X"$0" : 'X\(//\)$' \| \
12500 X"$0" : 'X\(/\)$' \| \
12501 . : '\(.\)' 2>/dev/null ||
12503 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12504 /^X\/\(\/\/\)$/{ s//\1/; q; }
12505 /^X\/\(\/\).*/{ s//\1/; q; }
12509 # PATH needs CR, and LINENO needs CR and PATH.
12510 # Avoid depending upon Character Ranges.
12511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12514 as_cr_digits='0123456789'
12515 as_cr_alnum=$as_cr_Letters$as_cr_digits
12517 # The user is always right.
12518 if test "${PATH_SEPARATOR+set}" != set; then
12519 echo "#! /bin/sh" >conf$$.sh
12520 echo "exit 0" >>conf$$.sh
12522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12531 as_lineno_1=$LINENO
12532 as_lineno_2=$LINENO
12533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12534 test "x$as_lineno_1" != "x$as_lineno_2" &&
12535 test "x$as_lineno_3" = "x$as_lineno_2" || {
12536 # Find who we are. Look in the path if we contain no path at all
12539 *[\\/]* ) as_myself=$0 ;;
12540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12544 test -z "$as_dir" && as_dir=.
12545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12550 # We did not find ourselves, most probably we were run as `sh COMMAND'
12551 # in which case we are not to be found in the path.
12552 if test "x$as_myself" = x; then
12555 if test ! -f "$as_myself"; then
12556 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12557 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12558 { (exit 1); exit 1; }; }
12560 case $CONFIG_SHELL in
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12566 test -z "$as_dir" && as_dir=.
12567 for as_base in sh bash ksh sh5; do
12570 if ("$as_dir/$as_base" -c '
12571 as_lineno_1=$LINENO
12572 as_lineno_2=$LINENO
12573 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12574 test "x$as_lineno_1" != "x$as_lineno_2" &&
12575 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12576 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12577 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12578 CONFIG_SHELL=$as_dir/$as_base
12579 export CONFIG_SHELL
12580 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12588 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12589 # uniformly replaced by the line number. The first 'sed' inserts a
12590 # line-number line before each line; the second 'sed' does the real
12591 # work. The second script uses 'N' to pair each line-number line
12592 # with the numbered line, and appends trailing '-' during
12593 # substitution so that $LINENO is not a special case at line end.
12594 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12595 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12596 sed '=' <$as_myself |
12601 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12604 s,^['$as_cr_digits']*\n,,
12605 ' >$as_me.lineno &&
12606 chmod +x $as_me.lineno ||
12607 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12608 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12609 { (exit 1); exit 1; }; }
12611 # Don't try to exec as it changes $[0], causing all sort of problems
12612 # (the dirname of $[0] is not the place where we might find the
12613 # original and so on. Autoconf is especially sensible to this).
12615 # Exit status is that of the last command.
12620 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12621 *c*,-n*) ECHO_N= ECHO_C='
12623 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12624 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12627 if expr a : '\(a\)' >/dev/null 2>&1; then
12633 rm -f conf$$ conf$$.exe conf$$.file
12635 if ln -s conf$$.file conf$$ 2>/dev/null; then
12636 # We could just check for DJGPP; but this test a) works b) is more generic
12637 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12638 if test -f conf$$.exe; then
12639 # Don't use ln at all; we don't have any links
12644 elif ln conf$$.file conf$$ 2>/dev/null; then
12649 rm -f conf$$ conf$$.exe conf$$.file
12651 if mkdir -p . 2>/dev/null; then
12654 test -d ./-p && rmdir ./-p
12658 as_executable_p="test -f"
12660 # Sed expression to map a string onto a valid CPP name.
12661 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12663 # Sed expression to map a string onto a valid variable name.
12664 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12668 # We need space, tab and new line, in precisely that order.
12678 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12679 # report actual input values of CONFIG_FILES etc. instead of their
12680 # values after options handling. Logging --version etc. is OK.
12684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12685 ## Running $as_me. ##
12690 This file was extended by $as_me, which was
12691 generated by GNU Autoconf 2.59. Invocation command line was
12693 CONFIG_FILES = $CONFIG_FILES
12694 CONFIG_HEADERS = $CONFIG_HEADERS
12695 CONFIG_LINKS = $CONFIG_LINKS
12696 CONFIG_COMMANDS = $CONFIG_COMMANDS
12700 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12704 # Files that config.status was made for.
12705 if test -n "$ac_config_files"; then
12706 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12709 if test -n "$ac_config_headers"; then
12710 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12713 if test -n "$ac_config_links"; then
12714 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12717 if test -n "$ac_config_commands"; then
12718 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12721 cat >>$CONFIG_STATUS <<\_ACEOF
12724 \`$as_me' instantiates files from templates according to the
12725 current configuration.
12727 Usage: $0 [OPTIONS] [FILE]...
12729 -h, --help print this help, then exit
12730 -V, --version print version number, then exit
12731 -q, --quiet do not print progress messages
12732 -d, --debug don't remove temporary files
12733 --recheck update $as_me by reconfiguring in the same conditions
12734 --file=FILE[:TEMPLATE]
12735 instantiate the configuration file FILE
12736 --header=FILE[:TEMPLATE]
12737 instantiate the configuration header FILE
12739 Configuration files:
12742 Configuration headers:
12745 Configuration commands:
12748 Report bugs to <bug-autoconf@gnu.org>."
12751 cat >>$CONFIG_STATUS <<_ACEOF
12754 configured by $0, generated by GNU Autoconf 2.59,
12755 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12757 Copyright (C) 2003 Free Software Foundation, Inc.
12758 This config.status script is free software; the Free Software Foundation
12759 gives unlimited permission to copy, distribute and modify it."
12763 cat >>$CONFIG_STATUS <<\_ACEOF
12764 # If no file are specified by the user, then we need to provide default
12765 # value. By we need to know if files were specified by the user.
12771 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12772 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12780 *) # This is not an option, so the user has probably given explicit
12783 ac_need_defaults=false;;
12787 # Handling of the options.
12789 cat >>$CONFIG_STATUS <<\_ACEOF
12790 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12792 --version | --vers* | -V )
12793 echo "$ac_cs_version"; exit 0 ;;
12795 # Conflict between --help and --header
12796 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12797 Try \`$0 --help' for more information." >&5
12798 echo "$as_me: error: ambiguous option: $1
12799 Try \`$0 --help' for more information." >&2;}
12800 { (exit 1); exit 1; }; };;
12801 --help | --hel | -h )
12802 echo "$ac_cs_usage"; exit 0 ;;
12803 --debug | --d* | -d )
12805 --file | --fil | --fi | --f )
12807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12808 ac_need_defaults=false;;
12809 --header | --heade | --head | --hea )
12811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12812 ac_need_defaults=false;;
12813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12814 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12817 # This is an error.
12818 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12819 Try \`$0 --help' for more information." >&5
12820 echo "$as_me: error: unrecognized option: $1
12821 Try \`$0 --help' for more information." >&2;}
12822 { (exit 1); exit 1; }; } ;;
12824 *) ac_config_targets="$ac_config_targets $1" ;;
12830 ac_configure_extra_args=
12832 if $ac_cs_silent; then
12834 ac_configure_extra_args="$ac_configure_extra_args --silent"
12838 cat >>$CONFIG_STATUS <<_ACEOF
12839 if \$ac_cs_recheck; then
12840 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12841 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12846 cat >>$CONFIG_STATUS <<_ACEOF
12848 # INIT-COMMANDS section.
12852 symbolic_link='$symbolic_link'
12859 cat >>$CONFIG_STATUS <<\_ACEOF
12860 for ac_config_target in $ac_config_targets
12862 case "$ac_config_target" in
12863 # Handling of arguments.
12864 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12865 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12866 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12867 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12868 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12869 { (exit 1); exit 1; }; };;
12873 # If the user did not use the arguments to specify the items to instantiate,
12874 # then the envvar interface is used. Set only those that are not.
12875 # We use the long form for the default assignment because of an extremely
12876 # bizarre bug on SunOS 4.1.3.
12877 if $ac_need_defaults; then
12878 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12879 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12880 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12883 # Have a temporary directory for convenience. Make it in the build tree
12884 # simply because there is no reason to put it here, and in addition,
12885 # creating and moving files from /tmp can sometimes cause problems.
12886 # Create a temporary directory, and hook for its removal unless debugging.
12889 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12890 trap '{ (exit 1); exit 1; }' 1 2 13 15
12893 # Create a (secure) tmp directory for tmp files.
12896 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12897 test -n "$tmp" && test -d "$tmp"
12900 tmp=./confstat$$-$RANDOM
12901 (umask 077 && mkdir $tmp)
12904 echo "$me: cannot create a temporary directory in ." >&2
12905 { (exit 1); exit 1; }
12910 cat >>$CONFIG_STATUS <<_ACEOF
12913 # CONFIG_FILES section.
12916 # No need to generate the scripts if there are no CONFIG_FILES.
12917 # This happens for instance when ./config.status config.h
12918 if test -n "\$CONFIG_FILES"; then
12919 # Protect against being on the right side of a sed subst in config.status.
12920 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12921 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12922 s,@SHELL@,$SHELL,;t t
12923 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12924 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12925 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12926 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12927 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12928 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12929 s,@exec_prefix@,$exec_prefix,;t t
12930 s,@prefix@,$prefix,;t t
12931 s,@program_transform_name@,$program_transform_name,;t t
12932 s,@bindir@,$bindir,;t t
12933 s,@sbindir@,$sbindir,;t t
12934 s,@libexecdir@,$libexecdir,;t t
12935 s,@datadir@,$datadir,;t t
12936 s,@sysconfdir@,$sysconfdir,;t t
12937 s,@sharedstatedir@,$sharedstatedir,;t t
12938 s,@localstatedir@,$localstatedir,;t t
12939 s,@libdir@,$libdir,;t t
12940 s,@includedir@,$includedir,;t t
12941 s,@oldincludedir@,$oldincludedir,;t t
12942 s,@infodir@,$infodir,;t t
12943 s,@mandir@,$mandir,;t t
12944 s,@build_alias@,$build_alias,;t t
12945 s,@host_alias@,$host_alias,;t t
12946 s,@target_alias@,$target_alias,;t t
12947 s,@DEFS@,$DEFS,;t t
12948 s,@ECHO_C@,$ECHO_C,;t t
12949 s,@ECHO_N@,$ECHO_N,;t t
12950 s,@ECHO_T@,$ECHO_T,;t t
12951 s,@LIBS@,$LIBS,;t t
12952 s,@build@,$build,;t t
12953 s,@build_cpu@,$build_cpu,;t t
12954 s,@build_vendor@,$build_vendor,;t t
12955 s,@build_os@,$build_os,;t t
12956 s,@host@,$host,;t t
12957 s,@host_cpu@,$host_cpu,;t t
12958 s,@host_vendor@,$host_vendor,;t t
12959 s,@host_os@,$host_os,;t t
12960 s,@target@,$target,;t t
12961 s,@target_cpu@,$target_cpu,;t t
12962 s,@target_vendor@,$target_vendor,;t t
12963 s,@target_os@,$target_os,;t t
12964 s,@build_subdir@,$build_subdir,;t t
12965 s,@host_subdir@,$host_subdir,;t t
12966 s,@target_subdir@,$target_subdir,;t t
12967 s,@GENINSRC@,$GENINSRC,;t t
12969 s,@CFLAGS@,$CFLAGS,;t t
12970 s,@LDFLAGS@,$LDFLAGS,;t t
12971 s,@CPPFLAGS@,$CPPFLAGS,;t t
12972 s,@ac_ct_CC@,$ac_ct_CC,;t t
12973 s,@EXEEXT@,$EXEEXT,;t t
12974 s,@OBJEXT@,$OBJEXT,;t t
12975 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12976 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12978 s,@strict1_warn@,$strict1_warn,;t t
12979 s,@warn_cflags@,$warn_cflags,;t t
12980 s,@WERROR@,$WERROR,;t t
12981 s,@nocommon_flag@,$nocommon_flag,;t t
12982 s,@EGREP@,$EGREP,;t t
12983 s,@valgrind_path@,$valgrind_path,;t t
12984 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12985 s,@valgrind_command@,$valgrind_command,;t t
12986 s,@coverage_flags@,$coverage_flags,;t t
12987 s,@enable_multilib@,$enable_multilib,;t t
12988 s,@enable_shared@,$enable_shared,;t t
12989 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12990 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12991 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12992 s,@onestep@,$onestep,;t t
12993 s,@SET_MAKE@,$SET_MAKE,;t t
12996 s,@LN_S@,$LN_S,;t t
12997 s,@RANLIB@,$RANLIB,;t t
12998 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12999 s,@INSTALL@,$INSTALL,;t t
13000 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13001 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13002 s,@make_compare_target@,$make_compare_target,;t t
13003 s,@have_mktemp_command@,$have_mktemp_command,;t t
13004 s,@MAKEINFO@,$MAKEINFO,;t t
13005 s,@BUILD_INFO@,$BUILD_INFO,;t t
13006 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13007 s,@FLEX@,$FLEX,;t t
13008 s,@BISON@,$BISON,;t t
13009 s,@stage1_cflags@,$stage1_cflags,;t t
13010 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13011 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13012 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13013 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13014 s,@LIBICONV@,$LIBICONV,;t t
13015 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13016 s,@manext@,$manext,;t t
13017 s,@objext@,$objext,;t t
13018 s,@gthread_flags@,$gthread_flags,;t t
13019 s,@extra_modes_file@,$extra_modes_file,;t t
13020 s,@FORBUILD@,$FORBUILD,;t t
13021 s,@PACKAGE@,$PACKAGE,;t t
13022 s,@VERSION@,$VERSION,;t t
13023 s,@USE_NLS@,$USE_NLS,;t t
13024 s,@LIBINTL@,$LIBINTL,;t t
13025 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13026 s,@INCINTL@,$INCINTL,;t t
13027 s,@XGETTEXT@,$XGETTEXT,;t t
13028 s,@GMSGFMT@,$GMSGFMT,;t t
13029 s,@POSUB@,$POSUB,;t t
13030 s,@CATALOGS@,$CATALOGS,;t t
13031 s,@CROSS@,$CROSS,;t t
13033 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13034 s,@inhibit_libc@,$inhibit_libc,;t t
13035 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13036 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13037 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13038 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13039 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13040 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13041 s,@collect2@,$collect2,;t t
13042 s,@libgcc_visibility@,$libgcc_visibility,;t t
13044 s,@zlibdir@,$zlibdir,;t t
13045 s,@zlibinc@,$zlibinc,;t t
13046 s,@MAINT@,$MAINT,;t t
13047 s,@gcc_tooldir@,$gcc_tooldir,;t t
13048 s,@dollar@,$dollar,;t t
13049 s,@slibdir@,$slibdir,;t t
13050 s,@objdir@,$objdir,;t t
13051 s,@subdirs@,$subdirs,;t t
13052 s,@srcdir@,$srcdir,;t t
13053 s,@all_boot_languages@,$all_boot_languages,;t t
13054 s,@all_compilers@,$all_compilers,;t t
13055 s,@all_gtfiles@,$all_gtfiles,;t t
13056 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13057 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13058 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13059 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13060 s,@all_languages@,$all_languages,;t t
13061 s,@all_stagestuff@,$all_stagestuff,;t t
13062 s,@build_exeext@,$build_exeext,;t t
13063 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13064 s,@build_xm_file_list@,$build_xm_file_list,;t t
13065 s,@build_xm_include_list@,$build_xm_include_list,;t t
13066 s,@build_xm_defines@,$build_xm_defines,;t t
13067 s,@check_languages@,$check_languages,;t t
13068 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13069 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13070 s,@cpp_install_dir@,$cpp_install_dir,;t t
13071 s,@xmake_file@,$xmake_file,;t t
13072 s,@tmake_file@,$tmake_file,;t t
13073 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13074 s,@extra_headers_list@,$extra_headers_list,;t t
13075 s,@extra_objs@,$extra_objs,;t t
13076 s,@extra_parts@,$extra_parts,;t t
13077 s,@extra_passes@,$extra_passes,;t t
13078 s,@extra_programs@,$extra_programs,;t t
13079 s,@float_h_file@,$float_h_file,;t t
13080 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13081 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13082 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13083 s,@gcc_version@,$gcc_version,;t t
13084 s,@gcc_version_full@,$gcc_version_full,;t t
13085 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13086 s,@host_exeext@,$host_exeext,;t t
13087 s,@host_xm_file_list@,$host_xm_file_list,;t t
13088 s,@host_xm_include_list@,$host_xm_include_list,;t t
13089 s,@host_xm_defines@,$host_xm_defines,;t t
13090 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13091 s,@install@,$install,;t t
13092 s,@lang_opt_files@,$lang_opt_files,;t t
13093 s,@lang_specs_files@,$lang_specs_files,;t t
13094 s,@lang_tree_files@,$lang_tree_files,;t t
13095 s,@local_prefix@,$local_prefix,;t t
13096 s,@md_file@,$md_file,;t t
13097 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13098 s,@out_file@,$out_file,;t t
13099 s,@out_object_file@,$out_object_file,;t t
13100 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13101 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13102 s,@symbolic_link@,$symbolic_link,;t t
13103 s,@thread_file@,$thread_file,;t t
13104 s,@tm_file_list@,$tm_file_list,;t t
13105 s,@tm_include_list@,$tm_include_list,;t t
13106 s,@tm_defines@,$tm_defines,;t t
13107 s,@tm_p_file_list@,$tm_p_file_list,;t t
13108 s,@tm_p_include_list@,$tm_p_include_list,;t t
13109 s,@xm_file_list@,$xm_file_list,;t t
13110 s,@xm_include_list@,$xm_include_list,;t t
13111 s,@xm_defines@,$xm_defines,;t t
13112 s,@target_noncanonical@,$target_noncanonical,;t t
13113 s,@c_target_objs@,$c_target_objs,;t t
13114 s,@cxx_target_objs@,$cxx_target_objs,;t t
13115 s,@target_cpu_default@,$target_cpu_default,;t t
13116 s,@LIBOBJS@,$LIBOBJS,;t t
13117 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13118 /@language_hooks@/r $language_hooks
13119 s,@language_hooks@,,;t t
13124 cat >>$CONFIG_STATUS <<\_ACEOF
13125 # Split the substitutions into bite-sized pieces for seds with
13126 # small command number limits, like on Digital OSF/1 and HP-UX.
13127 ac_max_sed_lines=48
13128 ac_sed_frag=1 # Number of current file.
13129 ac_beg=1 # First line for current file.
13130 ac_end=$ac_max_sed_lines # Line after last line for current file.
13133 while $ac_more_lines; do
13134 if test $ac_beg -gt 1; then
13135 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13137 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13139 if test ! -s $tmp/subs.frag; then
13140 ac_more_lines=false
13142 # The purpose of the label and of the branching condition is to
13143 # speed up the sed processing (if there are no `@' at all, there
13144 # is no need to browse any of the substitutions).
13145 # These are the two extra sed commands mentioned above.
13147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13148 if test -z "$ac_sed_cmds"; then
13149 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13151 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13153 ac_sed_frag=`expr $ac_sed_frag + 1`
13155 ac_end=`expr $ac_end + $ac_max_sed_lines`
13158 if test -z "$ac_sed_cmds"; then
13161 fi # test -n "$CONFIG_FILES"
13164 cat >>$CONFIG_STATUS <<\_ACEOF
13165 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13168 - | *:- | *:-:* ) # input from stdin
13170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13174 * ) ac_file_in=$ac_file.in ;;
13177 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13180 X"$ac_file" : 'X\(//\)[^/]' \| \
13181 X"$ac_file" : 'X\(//\)$' \| \
13182 X"$ac_file" : 'X\(/\)' \| \
13183 . : '\(.\)' 2>/dev/null ||
13185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13187 /^X\(\/\/\)$/{ s//\1/; q; }
13188 /^X\(\/\).*/{ s//\1/; q; }
13190 { if $as_mkdir_p; then
13195 while test ! -d "$as_dir"; do
13196 as_dirs="$as_dir $as_dirs"
13197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$as_dir" : 'X\(//\)[^/]' \| \
13200 X"$as_dir" : 'X\(//\)$' \| \
13201 X"$as_dir" : 'X\(/\)' \| \
13202 . : '\(.\)' 2>/dev/null ||
13204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13206 /^X\(\/\/\)$/{ s//\1/; q; }
13207 /^X\(\/\).*/{ s//\1/; q; }
13210 test ! -n "$as_dirs" || mkdir $as_dirs
13211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13213 { (exit 1); exit 1; }; }; }
13217 if test "$ac_dir" != .; then
13218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13219 # A "../" for each directory in $ac_dir_suffix.
13220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13222 ac_dir_suffix= ac_top_builddir=
13226 .) # No --srcdir option. We are building in place.
13228 if test -z "$ac_top_builddir"; then
13231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13233 [\\/]* | ?:[\\/]* ) # Absolute path.
13234 ac_srcdir=$srcdir$ac_dir_suffix;
13235 ac_top_srcdir=$srcdir ;;
13236 *) # Relative path.
13237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13241 # Do not use `cd foo && pwd` to compute absolute paths, because
13242 # the directories may not exist.
13244 .) ac_abs_builddir="$ac_dir";;
13247 .) ac_abs_builddir=`pwd`;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13252 case $ac_abs_builddir in
13253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13255 case ${ac_top_builddir}. in
13256 .) ac_abs_top_builddir=$ac_abs_builddir;;
13257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13261 case $ac_abs_builddir in
13262 .) ac_abs_srcdir=$ac_srcdir;;
13265 .) ac_abs_srcdir=$ac_abs_builddir;;
13266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13270 case $ac_abs_builddir in
13271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13273 case $ac_top_srcdir in
13274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13282 # Let's still pretend it is `configure' which instantiates (i.e., don't
13283 # use $as_me), people would be surprised to read:
13284 # /* config.h. Generated by config.status. */
13285 if test x"$ac_file" = x-; then
13288 configure_input="$ac_file. "
13290 configure_input=$configure_input"Generated from `echo $ac_file_in |
13291 sed 's,.*/,,'` by configure."
13293 # First look for the input files in the build tree, otherwise in the
13295 ac_file_inputs=`IFS=:
13296 for f in $ac_file_in; do
13298 -) echo $tmp/stdin ;;
13300 # Absolute (can't be DOS-style, as IFS=:)
13301 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13302 echo "$as_me: error: cannot find input file: $f" >&2;}
13303 { (exit 1); exit 1; }; }
13306 if test -f "$f"; then
13309 elif test -f "$srcdir/$f"; then
13314 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13315 echo "$as_me: error: cannot find input file: $f" >&2;}
13316 { (exit 1); exit 1; }; }
13319 done` || { (exit 1); exit 1; }
13321 if test x"$ac_file" != x-; then
13322 { echo "$as_me:$LINENO: creating $ac_file" >&5
13323 echo "$as_me: creating $ac_file" >&6;}
13327 cat >>$CONFIG_STATUS <<_ACEOF
13331 cat >>$CONFIG_STATUS <<\_ACEOF
13333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13334 s,@configure_input@,$configure_input,;t t
13335 s,@srcdir@,$ac_srcdir,;t t
13336 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13337 s,@top_srcdir@,$ac_top_srcdir,;t t
13338 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13339 s,@builddir@,$ac_builddir,;t t
13340 s,@abs_builddir@,$ac_abs_builddir,;t t
13341 s,@top_builddir@,$ac_top_builddir,;t t
13342 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13343 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13345 if test x"$ac_file" != x-; then
13346 mv $tmp/out $ac_file
13354 cat >>$CONFIG_STATUS <<\_ACEOF
13357 # CONFIG_HEADER section.
13360 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13361 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13363 # ac_d sets the value in "#define NAME VALUE" lines.
13364 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13365 ac_dB='[ ].*$,\1#\2'
13368 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13369 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13370 ac_uB='$,\1#\2define\3'
13374 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13377 - | *:- | *:-:* ) # input from stdin
13379 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13381 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13383 * ) ac_file_in=$ac_file.in ;;
13386 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13387 echo "$as_me: creating $ac_file" >&6;}
13389 # First look for the input files in the build tree, otherwise in the
13391 ac_file_inputs=`IFS=:
13392 for f in $ac_file_in; do
13394 -) echo $tmp/stdin ;;
13396 # Absolute (can't be DOS-style, as IFS=:)
13397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13398 echo "$as_me: error: cannot find input file: $f" >&2;}
13399 { (exit 1); exit 1; }; }
13400 # Do quote $f, to prevent DOS paths from being IFS'd.
13403 if test -f "$f"; then
13406 elif test -f "$srcdir/$f"; then
13411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13412 echo "$as_me: error: cannot find input file: $f" >&2;}
13413 { (exit 1); exit 1; }; }
13416 done` || { (exit 1); exit 1; }
13417 # Remove the trailing spaces.
13418 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13422 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13423 # `conftest.undefs', that substitutes the proper values into
13424 # config.h.in to produce config.h. The first handles `#define'
13425 # templates, and the second `#undef' templates.
13426 # And first: Protect against being on the right side of a sed subst in
13427 # config.status. Protect against being in an unquoted here document
13428 # in config.status.
13429 rm -f conftest.defines conftest.undefs
13430 # Using a here document instead of a string reduces the quoting nightmare.
13431 # Putting comments in sed scripts is not portable.
13433 # `end' is used to avoid that the second main sed command (meant for
13434 # 0-ary CPP macros) applies to n-ary macro definitions.
13435 # See the Autoconf documentation for `clear'.
13436 cat >confdef2sed.sed <<\_ACEOF
13441 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13443 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13446 # If some macros were called several times there might be several times
13447 # the same #defines, which is useless. Nevertheless, we may not want to
13448 # sort them, since we want the *last* AC-DEFINE to be honored.
13449 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13450 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13451 rm -f confdef2sed.sed
13453 # This sed command replaces #undef with comments. This is necessary, for
13454 # example, in the case of _POSIX_SOURCE, which is predefined and required
13455 # on some systems where configure will not decide to define it.
13456 cat >>conftest.undefs <<\_ACEOF
13457 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13460 # Break up conftest.defines because some shells have a limit on the size
13461 # of here documents, and old seds have small limits too (100 cmds).
13462 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13463 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13464 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13465 echo ' :' >>$CONFIG_STATUS
13466 rm -f conftest.tail
13467 while grep . conftest.defines >/dev/null
13469 # Write a limited-size here document to $tmp/defines.sed.
13470 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13471 # Speed up: don't consider the non `#define' lines.
13472 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13473 # Work around the forget-to-reset-the-flag bug.
13474 echo 't clr' >>$CONFIG_STATUS
13475 echo ': clr' >>$CONFIG_STATUS
13476 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13478 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13480 mv $tmp/out $tmp/in
13482 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13483 rm -f conftest.defines
13484 mv conftest.tail conftest.defines
13486 rm -f conftest.defines
13487 echo ' fi # grep' >>$CONFIG_STATUS
13488 echo >>$CONFIG_STATUS
13490 # Break up conftest.undefs because some shells have a limit on the size
13491 # of here documents, and old seds have small limits too (100 cmds).
13492 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13493 rm -f conftest.tail
13494 while grep . conftest.undefs >/dev/null
13496 # Write a limited-size here document to $tmp/undefs.sed.
13497 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13498 # Speed up: don't consider the non `#undef'
13499 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13500 # Work around the forget-to-reset-the-flag bug.
13501 echo 't clr' >>$CONFIG_STATUS
13502 echo ': clr' >>$CONFIG_STATUS
13503 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13505 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13507 mv $tmp/out $tmp/in
13509 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13510 rm -f conftest.undefs
13511 mv conftest.tail conftest.undefs
13513 rm -f conftest.undefs
13515 cat >>$CONFIG_STATUS <<\_ACEOF
13516 # Let's still pretend it is `configure' which instantiates (i.e., don't
13517 # use $as_me), people would be surprised to read:
13518 # /* config.h. Generated by config.status. */
13519 if test x"$ac_file" = x-; then
13520 echo "/* Generated by configure. */" >$tmp/config.h
13522 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13524 cat $tmp/in >>$tmp/config.h
13526 if test x"$ac_file" != x-; then
13527 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13528 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13529 echo "$as_me: $ac_file is unchanged" >&6;}
13531 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13533 X"$ac_file" : 'X\(//\)[^/]' \| \
13534 X"$ac_file" : 'X\(//\)$' \| \
13535 X"$ac_file" : 'X\(/\)' \| \
13536 . : '\(.\)' 2>/dev/null ||
13538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13540 /^X\(\/\/\)$/{ s//\1/; q; }
13541 /^X\(\/\).*/{ s//\1/; q; }
13543 { if $as_mkdir_p; then
13548 while test ! -d "$as_dir"; do
13549 as_dirs="$as_dir $as_dirs"
13550 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13552 X"$as_dir" : 'X\(//\)[^/]' \| \
13553 X"$as_dir" : 'X\(//\)$' \| \
13554 X"$as_dir" : 'X\(/\)' \| \
13555 . : '\(.\)' 2>/dev/null ||
13557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13559 /^X\(\/\/\)$/{ s//\1/; q; }
13560 /^X\(\/\).*/{ s//\1/; q; }
13563 test ! -n "$as_dirs" || mkdir $as_dirs
13564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13566 { (exit 1); exit 1; }; }; }
13569 mv $tmp/config.h $ac_file
13573 rm -f $tmp/config.h
13577 cat >>$CONFIG_STATUS <<\_ACEOF
13580 # CONFIG_COMMANDS section.
13582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13585 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13587 X"$ac_dest" : 'X\(//\)[^/]' \| \
13588 X"$ac_dest" : 'X\(//\)$' \| \
13589 X"$ac_dest" : 'X\(/\)' \| \
13590 . : '\(.\)' 2>/dev/null ||
13592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13593 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13594 /^X\(\/\/\)$/{ s//\1/; q; }
13595 /^X\(\/\).*/{ s//\1/; q; }
13597 { if $as_mkdir_p; then
13602 while test ! -d "$as_dir"; do
13603 as_dirs="$as_dir $as_dirs"
13604 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13606 X"$as_dir" : 'X\(//\)[^/]' \| \
13607 X"$as_dir" : 'X\(//\)$' \| \
13608 X"$as_dir" : 'X\(/\)' \| \
13609 . : '\(.\)' 2>/dev/null ||
13611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13613 /^X\(\/\/\)$/{ s//\1/; q; }
13614 /^X\(\/\).*/{ s//\1/; q; }
13617 test ! -n "$as_dirs" || mkdir $as_dirs
13618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13620 { (exit 1); exit 1; }; }; }
13624 if test "$ac_dir" != .; then
13625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13626 # A "../" for each directory in $ac_dir_suffix.
13627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13629 ac_dir_suffix= ac_top_builddir=
13633 .) # No --srcdir option. We are building in place.
13635 if test -z "$ac_top_builddir"; then
13638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13640 [\\/]* | ?:[\\/]* ) # Absolute path.
13641 ac_srcdir=$srcdir$ac_dir_suffix;
13642 ac_top_srcdir=$srcdir ;;
13643 *) # Relative path.
13644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13645 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13648 # Do not use `cd foo && pwd` to compute absolute paths, because
13649 # the directories may not exist.
13651 .) ac_abs_builddir="$ac_dir";;
13654 .) ac_abs_builddir=`pwd`;;
13655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13656 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13659 case $ac_abs_builddir in
13660 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13662 case ${ac_top_builddir}. in
13663 .) ac_abs_top_builddir=$ac_abs_builddir;;
13664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13668 case $ac_abs_builddir in
13669 .) ac_abs_srcdir=$ac_srcdir;;
13672 .) ac_abs_srcdir=$ac_abs_builddir;;
13673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13677 case $ac_abs_builddir in
13678 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13680 case $ac_top_srcdir in
13681 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13689 echo "$as_me: executing $ac_dest commands" >&6;}
13692 case ${CONFIG_HEADERS} in
13693 *auto-host.h:config.in*)
13696 # Make sure all the subdirs exist.
13699 test -d $d || mkdir $d
13701 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13702 # bootstrapping and the installation procedure can still use
13703 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13704 # FLAGS_TO_PASS has been modified to solve the problem there.
13705 # This is virtually a duplicate of what happens in configure.lang; we do
13706 # an extra check to make sure this only happens if ln -s can be used.
13707 if test "$symbolic_link" = "ln -s"; then
13708 for d in ${subdirs} fixinc ; do
13709 STARTDIR=`${PWDCMD-pwd}`
13711 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13714 $symbolic_link ../$t $t 2>/dev/null
13724 cat >>$CONFIG_STATUS <<\_ACEOF
13726 { (exit 0); exit 0; }
13728 chmod +x $CONFIG_STATUS
13729 ac_clean_files=$ac_clean_files_save
13732 # configure is writing to config.log, and then calls config.status.
13733 # config.status does its own redirection, appending to config.log.
13734 # Unfortunately, on DOS this fails, as config.log is still kept open
13735 # by configure, so config.status won't be able to write to it; its
13736 # output is simply discarded. So we exec the FD to /dev/null,
13737 # effectively closing config.log, so it can be properly (re)opened and
13738 # appended to by config.status. When coming back to configure, we
13739 # need to make the FD available again.
13740 if test "$no_create" != yes; then
13742 ac_config_status_args=
13743 test "$silent" = yes &&
13744 ac_config_status_args="$ac_config_status_args --quiet"
13746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13749 # would make configure fail if this is the last instruction.
13750 $ac_cs_success || { (exit 1); exit 1; }