2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58.
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 GNATBIND ac_ct_GNATBIND 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 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 enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST,
860 enable only specific categories of checks.
861 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
862 default is misc,tree,gc,rtlflag
863 --enable-coverage=LEVEL
864 enable compiler\'s code coverage collection.
865 Use to measure compiler performance and locate
866 unused parts of the compiler. With LEVEL, specify
867 optimization. Values are opt, noopt,
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit for C++
872 --enable-threads enable thread usage for target GCC
873 --enable-threads=LIB use LIB thread package for target GCC
874 --enable-objc-gc enable the use of Boehm's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler in one step
878 --enable-initfini-array use .init_array/.fini_array sections
879 --enable-sjlj-exceptions
880 arrange to use setjmp/longjmp exception handling
881 --enable-libunwind-exceptions force use libunwind for exceptions
882 --disable-win32-registry
883 disable lookup of installation paths in the
884 Registry on Windows hosts
885 --enable-win32-registry enable registry lookup (default)
886 --enable-win32-registry=KEY
887 use KEY instead of GCC version as the last portion
889 --enable-maintainer-mode
890 enable make rules and dependencies not useful
891 (and sometimes confusing) to the casual installer
892 --enable-version-specific-runtime-libs
893 specify that runtime libraries should be
894 installed in a compiler-specific directory
897 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
898 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
899 --with-local-prefix=DIR specifies directory to put local include
900 --with-gxx-include-dir=DIR
901 specifies directory to put g++ header files
902 --with-cpp-install-dir=DIR
903 install the user visible C preprocessor in DIR
904 (relative to PREFIX) as well as PREFIX/bin
905 --with-gnu-ld arrange to work with GNU ld.
906 --with-ld arrange to use the specified ld (full pathname)
907 --with-gnu-as arrange to work with GNU as
908 --with-as arrange to use the specified as (full pathname)
909 --with-stabs arrange to use stabs instead of host debug format
910 --with-dwarf2 force the default debug format to be DWARF 2
911 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
912 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
913 --with-gc={page,zone} choose the garbage collection mechanism to use
915 --with-system-zlib use installed libz
916 --with-slibdir=DIR shared libraries in DIR LIBDIR
918 Some influential environment variables:
919 CC C compiler command
920 CFLAGS C compiler flags
921 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
922 nonstandard directory <lib dir>
923 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
924 headers in a nonstandard directory <include dir>
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
933 if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
940 if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
945 ac_dir_suffix= ac_top_builddir=
949 .) # No --srcdir option. We are building in place.
951 if test -z "$ac_top_builddir"; then
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
964 .) ac_abs_builddir=$ac_builddir;;
967 .) ac_abs_builddir="$ac_dir";;
968 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
969 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
973 .) ac_abs_top_builddir=${ac_top_builddir}.;;
975 case ${ac_top_builddir}. in
976 .) ac_abs_top_builddir="$ac_dir";;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
978 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
982 .) ac_abs_srcdir=$ac_srcdir;;
985 .) ac_abs_srcdir="$ac_dir";;
986 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
987 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
991 .) ac_abs_top_srcdir=$ac_top_srcdir;;
993 case $ac_top_srcdir in
994 .) ac_abs_top_srcdir="$ac_dir";;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
996 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1001 # Check for guested configure; otherwise get Cygnus style configure.
1002 if test -f $ac_srcdir/configure.gnu; then
1004 $SHELL $ac_srcdir/configure.gnu --help=recursive
1005 elif test -f $ac_srcdir/configure; then
1007 $SHELL $ac_srcdir/configure --help=recursive
1008 elif test -f $ac_srcdir/configure.ac ||
1009 test -f $ac_srcdir/configure.in; then
1011 $ac_configure --help
1013 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1019 test -n "$ac_init_help" && exit 0
1020 if $ac_init_version; then
1023 Copyright (C) 2003 Free Software Foundation, Inc.
1024 This configure script is free software; the Free Software Foundation
1025 gives unlimited permission to copy, distribute and modify it.
1031 This file contains any messages produced by compilers while
1032 running configure, to aid debugging if configure makes a mistake.
1034 It was created by $as_me, which was
1035 generated by GNU Autoconf 2.58. Invocation command line was
1046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1053 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1055 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1056 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1058 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1059 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1060 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1061 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069 test -z "$as_dir" && as_dir=.
1070 echo "PATH: $as_dir"
1085 # Keep a trace of the command line.
1086 # Strip out --no-create and --no-recursion so they do not pile up.
1087 # Strip out --silent because we don't want to record it for future runs.
1088 # Also quote any args containing shell meta-characters.
1089 # Make two passes to allow for proper duplicate-argument suppression.
1094 ac_must_keep_next=false
1100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1104 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1105 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1108 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1110 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1111 if test $ac_must_keep_next = true; then
1112 ac_must_keep_next=false # Got value, back to normal.
1115 *=* | --config-cache | -C | -disable-* | --disable-* \
1116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1118 | -with-* | --with-* | -without-* | --without-* | --x)
1119 case "$ac_configure_args0 " in
1120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1123 -* ) ac_must_keep_next=true ;;
1126 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1127 # Get rid of the leading space.
1133 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1134 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1136 # When interrupted or exit'd, cleanup temporary files, and complete
1137 # config.log. We remove comments because anyway the quotes in there
1138 # would cause problems or look ugly.
1139 # WARNING: Be sure not to use single quotes in there, as some shells,
1140 # such as our DU 5.0 friend, will then `close' the trap.
1141 trap 'exit_status=$?
1142 # Save into config.log some information that might help in debugging.
1147 ## ---------------- ##
1148 ## Cache variables. ##
1149 ## ---------------- ##
1152 # The following way of writing the cache mishandles newlines in values,
1155 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1158 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1170 ## ----------------- ##
1171 ## Output variables. ##
1172 ## ----------------- ##
1175 for ac_var in $ac_subst_vars
1177 eval ac_val=$`echo $ac_var`
1178 echo "$ac_var='"'"'$ac_val'"'"'"
1182 if test -n "$ac_subst_files"; then
1189 for ac_var in $ac_subst_files
1191 eval ac_val=$`echo $ac_var`
1192 echo "$ac_var='"'"'$ac_val'"'"'"
1197 if test -s confdefs.h; then
1204 sed "/^$/d" confdefs.h | sort
1207 test "$ac_signal" != 0 &&
1208 echo "$as_me: caught signal $ac_signal"
1209 echo "$as_me: exit $exit_status"
1211 rm -f core *.core &&
1212 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1215 for ac_signal in 1 2 13 15; do
1216 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1221 rm -rf conftest* confdefs.h
1222 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1225 # Predefined preprocessor variables.
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_NAME "$PACKAGE_NAME"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_STRING "$PACKAGE_STRING"
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252 # Let the site file select an alternate cache file if it wants to.
1253 # Prefer explicitly selected file to automatically selected ones.
1254 if test -z "$CONFIG_SITE"; then
1255 if test "x$prefix" != xNONE; then
1256 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1258 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1261 for ac_site_file in $CONFIG_SITE; do
1262 if test -r "$ac_site_file"; then
1263 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1264 echo "$as_me: loading site script $ac_site_file" >&6;}
1265 sed 's/^/| /' "$ac_site_file" >&5
1270 if test -r "$cache_file"; then
1271 # Some versions of bash will fail to source /dev/null (special
1272 # files actually), so we avoid doing that.
1273 if test -f "$cache_file"; then
1274 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1275 echo "$as_me: loading cache $cache_file" >&6;}
1277 [\\/]* | ?:[\\/]* ) . $cache_file;;
1278 *) . ./$cache_file;;
1282 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1283 echo "$as_me: creating cache $cache_file" >&6;}
1287 # Check that the precious variables saved in the cache have kept the same
1289 ac_cache_corrupted=false
1290 for ac_var in `(set) 2>&1 |
1291 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1293 eval ac_new_set=\$ac_env_${ac_var}_set
1294 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1295 eval ac_new_val="\$ac_env_${ac_var}_value"
1296 case $ac_old_set,$ac_new_set in
1298 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1299 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1300 ac_cache_corrupted=: ;;
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1304 ac_cache_corrupted=: ;;
1307 if test "x$ac_old_val" != "x$ac_new_val"; then
1308 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1309 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1310 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1311 echo "$as_me: former value: $ac_old_val" >&2;}
1312 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1313 echo "$as_me: current value: $ac_new_val" >&2;}
1314 ac_cache_corrupted=:
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335 { (exit 1); exit 1; }; }
1339 ac_cpp='$CPP $CPPFLAGS'
1340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1366 # Determine the host, build, and target systems
1368 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1369 if test -f $ac_dir/install-sh; then
1371 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 elif test -f $ac_dir/install.sh; then
1375 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 elif test -f $ac_dir/shtool; then
1379 ac_install_sh="$ac_aux_dir/shtool install -c"
1383 if test -z "$ac_aux_dir"; then
1384 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1386 { (exit 1); exit 1; }; }
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1392 # Make sure we can run config.sub.
1393 $ac_config_sub sun4 >/dev/null 2>&1 ||
1394 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1395 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1396 { (exit 1); exit 1; }; }
1398 echo "$as_me:$LINENO: checking build system type" >&5
1399 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1400 if test "${ac_cv_build+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 ac_cv_build_alias=$build_alias
1404 test -z "$ac_cv_build_alias" &&
1405 ac_cv_build_alias=`$ac_config_guess`
1406 test -z "$ac_cv_build_alias" &&
1407 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1408 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1409 { (exit 1); exit 1; }; }
1410 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1417 echo "${ECHO_T}$ac_cv_build" >&6
1419 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424 echo "$as_me:$LINENO: checking host system type" >&5
1425 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1426 if test "${ac_cv_host+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 ac_cv_host_alias=$host_alias
1430 test -z "$ac_cv_host_alias" &&
1431 ac_cv_host_alias=$ac_cv_build_alias
1432 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1433 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1435 { (exit 1); exit 1; }; }
1438 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1439 echo "${ECHO_T}$ac_cv_host" >&6
1441 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1446 echo "$as_me:$LINENO: checking target system type" >&5
1447 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1448 if test "${ac_cv_target+set}" = set; then
1449 echo $ECHO_N "(cached) $ECHO_C" >&6
1451 ac_cv_target_alias=$target_alias
1452 test "x$ac_cv_target_alias" = "x" &&
1453 ac_cv_target_alias=$ac_cv_host_alias
1454 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1455 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1457 { (exit 1); exit 1; }; }
1460 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1461 echo "${ECHO_T}$ac_cv_target" >&6
1462 target=$ac_cv_target
1463 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1468 # The aliases save the names the user supplied, while $host etc.
1469 # will get canonicalized.
1470 test -n "$target_alias" &&
1471 test "$program_prefix$program_suffix$program_transform_name" = \
1473 program_prefix=${target_alias}-
1475 # Determine the noncanonical target name, for directory use.
1476 case ${build_alias} in
1477 "") build_noncanonical=${build} ;;
1478 *) build_noncanonical=${build_alias} ;;
1481 case ${host_alias} in
1482 "") host_noncanonical=${build_noncanonical} ;;
1483 *) host_noncanonical=${host_alias} ;;
1486 case ${target_alias} in
1487 "") target_noncanonical=${host_noncanonical} ;;
1488 *) target_noncanonical=${target_alias} ;;
1492 # Determine the target- and build-specific subdirectories
1493 # Prefix 'build-' so this never conflicts with target_subdir.
1494 build_subdir="build-${build_noncanonical}"
1495 # Not really a subdirectory, but here for completeness.
1498 target_subdir=${target_noncanonical}
1501 # Set program_transform_name
1502 test "$program_prefix" != NONE &&
1503 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1504 # Use a double $ so make ignores it.
1505 test "$program_suffix" != NONE &&
1506 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1507 # Double any \ or $. echo might interpret backslashes.
1508 # By default was `s,x,x', remove it if useless.
1509 cat <<\_ACEOF >conftest.sed
1510 s/[\\$]/&&/g;s/;s,x,x,$//
1512 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1516 # Check for bogus environment variables.
1517 # Test if LIBRARY_PATH contains the notation for the current directory
1518 # since this would lead to problems installing/building glibc.
1519 # LIBRARY_PATH contains the current directory if one of the following
1521 # - one of the terminals (":" and ";") is the first or last sign
1522 # - two terminals occur directly after each other
1523 # - the path contains an element with a dot in it
1524 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1525 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1526 case ${LIBRARY_PATH} in
1527 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1528 library_path_setting="contains current directory"
1531 library_path_setting="ok"
1534 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1535 echo "${ECHO_T}$library_path_setting" >&6
1536 if test "$library_path_setting" != "ok"; then
1537 { { echo "$as_me:$LINENO: error:
1538 *** LIBRARY_PATH shouldn't contain the current directory when
1539 *** building gcc. Please change the environment variable
1540 *** and run configure again." >&5
1541 echo "$as_me: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&2;}
1545 { (exit 1); exit 1; }; }
1548 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1549 # since this would lead to problems installing/building glibc.
1550 # GCC_EXEC_PREFIX contains the current directory if one of the following
1552 # - one of the terminals (":" and ";") is the first or last sign
1553 # - two terminals occur directly after each other
1554 # - the path contains an element with a dot in it
1555 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1556 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1557 case ${GCC_EXEC_PREFIX} in
1558 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1559 gcc_exec_prefix_setting="contains current directory"
1562 gcc_exec_prefix_setting="ok"
1565 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1566 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1567 if test "$gcc_exec_prefix_setting" != "ok"; then
1568 { { echo "$as_me:$LINENO: error:
1569 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1570 *** building gcc. Please change the environment variable
1571 *** and run configure again." >&5
1572 echo "$as_me: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&2;}
1576 { (exit 1); exit 1; }; }
1583 # Specify the local prefix
1586 # Check whether --with-local-prefix or --without-local-prefix was given.
1587 if test "${with_local_prefix+set}" = set; then
1588 withval="$with_local_prefix"
1589 case "${withval}" in
1590 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1591 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1592 { (exit 1); exit 1; }; } ;;
1594 *) local_prefix=$with_local_prefix ;;
1598 # Default local prefix if it is empty
1599 if test x$local_prefix = x; then
1600 local_prefix=/usr/local
1603 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1604 # passed in by the toplevel make and thus we'd get different behavior
1605 # depending on where we built the sources.
1606 gcc_gxx_include_dir=
1607 # Specify the g++ header file directory
1609 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1610 if test "${with_gxx_include_dir+set}" = set; then
1611 withval="$with_gxx_include_dir"
1612 case "${withval}" in
1613 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1614 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1615 { (exit 1); exit 1; }; } ;;
1617 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1621 if test x${gcc_gxx_include_dir} = x; then
1622 if test x${enable_version_specific_runtime_libs} = xyes; then
1623 gcc_gxx_include_dir='${libsubdir}/include/c++'
1625 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1626 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1631 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1632 if test "${with_cpp_install_dir+set}" = set; then
1633 withval="$with_cpp_install_dir"
1634 if test x$withval = xyes; then
1635 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1636 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1637 { (exit 1); exit 1; }; }
1638 elif test x$withval != xno; then
1639 cpp_install_dir=$withval
1643 # We would like to our source tree to be readonly. However when releases or
1644 # pre-releases are generated, the flex/bison generated files as well as the
1645 # various formats of manuals need to be included along with the rest of the
1646 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1649 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1650 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1651 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1652 if test "${enable_generated_files_in_srcdir+set}" = set; then
1653 enableval="$enable_generated_files_in_srcdir"
1654 generated_files_in_srcdir=$enableval
1656 generated_files_in_srcdir=no
1659 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1660 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1662 if test "$generated_files_in_srcdir" = "yes"; then
1669 # -------------------
1670 # Find default linker
1671 # -------------------
1675 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1676 if test "${with_gnu_ld+set}" = set; then
1677 withval="$with_gnu_ld"
1678 gnu_ld_flag="$with_gnu_ld"
1683 # With pre-defined ld
1685 # Check whether --with-ld or --without-ld was given.
1686 if test "${with_ld+set}" = set; then
1688 DEFAULT_LINKER="$with_ld"
1690 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1691 if test ! -x "$DEFAULT_LINKER"; then
1692 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1693 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1694 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1698 cat >>confdefs.h <<_ACEOF
1699 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1704 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1705 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1706 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1707 if test x"$gnu_ld_flag" = x"no"; then
1708 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1709 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1711 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1712 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1715 echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1719 # ----------------------
1720 # Find default assembler
1721 # ----------------------
1725 # Check whether --with-gnu-as or --without-gnu-as was given.
1726 if test "${with_gnu_as+set}" = set; then
1727 withval="$with_gnu_as"
1728 gas_flag="$with_gnu_as"
1734 # Check whether --with-as or --without-as was given.
1735 if test "${with_as+set}" = set; then
1737 DEFAULT_ASSEMBLER="$with_as"
1739 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1740 if test ! -x "$DEFAULT_ASSEMBLER"; then
1741 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1742 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1743 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1747 cat >>confdefs.h <<_ACEOF
1748 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1753 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1754 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1755 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1756 if test x"$gas_flag" = x"no"; then
1757 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1758 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1760 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1761 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1772 # If a non-executable a.out is present (e.g. created by GNU as above even if
1773 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1774 # file, even when creating an executable, so an execution test fails.
1775 # Remove possible default executable files to avoid this.
1777 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1778 # Autoconf includes it.
1779 rm -f a.out a.exe b.out
1781 # Find the native compiler
1783 ac_cpp='$CPP $CPPFLAGS'
1784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 if test -n "$ac_tool_prefix"; then
1788 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$CC"; then
1796 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$ac_cv_prog_CC"; then
1826 # Extract the first word of "gcc", so it can be a program name with args.
1827 set dummy gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$ac_ct_CC"; then
1834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_ac_ct_CC="gcc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1866 if test -z "$CC"; then
1867 if test -n "$ac_tool_prefix"; then
1868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1869 set dummy ${ac_tool_prefix}cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$CC"; then
1876 ac_cv_prog_CC="$CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_CC="${ac_tool_prefix}cc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 if test -n "$CC"; then
1896 echo "$as_me:$LINENO: result: $CC" >&5
1897 echo "${ECHO_T}$CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1904 if test -z "$ac_cv_prog_CC"; then
1906 # Extract the first word of "cc", so it can be a program name with args.
1907 set dummy cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$ac_ct_CC"; then
1914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 test -z "$as_dir" && as_dir=.
1921 for ac_exec_ext in '' $ac_executable_extensions; do
1922 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923 ac_cv_prog_ac_ct_CC="cc"
1924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1933 if test -n "$ac_ct_CC"; then
1934 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1935 echo "${ECHO_T}$ac_ct_CC" >&6
1937 echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1947 if test -z "$CC"; then
1948 # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$CC"; then
1956 ac_cv_prog_CC="$CC" # Let the user override the test.
1959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1963 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1967 ac_prog_rejected=yes
1971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 if test $ac_prog_rejected = yes; then
1978 # We found a bogon in the path, so make sure we never use it.
1979 set dummy $ac_cv_prog_CC
1981 if test $# != 0; then
1982 # We chose a different compiler from the bogus one.
1983 # However, it has the same basename, so the bogon will be chosen
1984 # first if we set CC to just the basename; use the full file name.
1986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1992 if test -n "$CC"; then
1993 echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1996 echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
2001 if test -z "$CC"; then
2002 if test -n "$ac_tool_prefix"; then
2005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$CC"; then
2013 ac_cv_prog_CC="$CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$CC" && break
2043 if test -z "$CC"; then
2047 # Extract the first word of "$ac_prog", so it can be a program name with args.
2048 set dummy $ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$ac_ct_CC"; then
2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_ac_ct_CC="$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 echo "${ECHO_T}$ac_ct_CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$ac_ct_CC" && break
2091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&2;}
2095 { (exit 1); exit 1; }; }
2097 # Provide some information about the compiler.
2098 echo "$as_me:$LINENO:" \
2099 "checking for C compiler version" >&5
2100 ac_compiler=`set X $ac_compile; echo $2`
2101 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2102 (eval $ac_compiler --version </dev/null >&5) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2107 (eval $ac_compiler -v </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); }
2117 cat >conftest.$ac_ext <<_ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2132 ac_clean_files_save=$ac_clean_files
2133 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2134 # Try to create an executable without -o first, disregard a.out.
2135 # It will help us diagnose broken compilers, and finding out an intuition
2137 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2138 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2139 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2141 (eval $ac_link_default) 2>&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; then
2145 # Find the output, starting from the most likely. This scheme is
2146 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2149 # Be careful to initialize this variable, since it used to be cached.
2150 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2152 # b.out is created by i960 compilers.
2153 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2155 test -f "$ac_file" || continue
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2160 # This is the source file.
2163 # We found the default executable, but exeext='' is most
2167 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2168 # FIXME: I believe we export ac_cv_exeext for Libtool,
2169 # but it would be cool to find out if it's true. Does anybody
2170 # maintain Libtool? --akim.
2178 echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2181 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: C compiler cannot create executables
2184 See \`config.log' for more details." >&2;}
2185 { (exit 77); exit 77; }; }
2188 ac_exeext=$ac_cv_exeext
2189 echo "$as_me:$LINENO: result: $ac_file" >&5
2190 echo "${ECHO_T}$ac_file" >&6
2192 # Check the compiler produces executables we can run. If not, either
2193 # the compiler is broken, or we cross compile.
2194 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2195 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2196 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2197 # If not cross compiling, check that we can run a simple program.
2198 if test "$cross_compiling" != yes; then
2199 if { ac_try='./$ac_file'
2200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204 (exit $ac_status); }; }; then
2207 if test "$cross_compiling" = maybe; then
2210 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2211 If you meant to cross compile, use \`--host'.
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2220 echo "$as_me:$LINENO: result: yes" >&5
2221 echo "${ECHO_T}yes" >&6
2223 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2224 ac_clean_files=$ac_clean_files_save
2225 # Check the compiler produces executables we can run. If not, either
2226 # the compiler is broken, or we cross compile.
2227 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2228 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2229 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2230 echo "${ECHO_T}$cross_compiling" >&6
2232 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2233 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2235 (eval $ac_link) 2>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2240 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2241 # work properly (i.e., refer to `conftest.exe'), while it won't with
2243 for ac_file in conftest.exe conftest conftest.*; do
2244 test -f "$ac_file" || continue
2246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2247 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2254 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2261 rm -f conftest$ac_cv_exeext
2262 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2263 echo "${ECHO_T}$ac_cv_exeext" >&6
2265 rm -f conftest.$ac_ext
2266 EXEEXT=$ac_cv_exeext
2268 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2269 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2270 if test "${ac_cv_objext+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.$ac_ext <<_ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 rm -f conftest.o conftest.obj
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; then
2294 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302 echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2305 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2314 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2315 echo "${ECHO_T}$ac_cv_objext" >&6
2316 OBJEXT=$ac_cv_objext
2318 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2319 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2320 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2345 grep -v '^ *+' conftest.er1 >conftest.err
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2376 GCC=`test $ac_compiler_gnu = yes && echo yes`
2377 ac_test_CFLAGS=${CFLAGS+set}
2378 ac_save_CFLAGS=$CFLAGS
2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_g+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2432 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2433 if test "$ac_test_CFLAGS" = set; then
2434 CFLAGS=$ac_save_CFLAGS
2435 elif test $ac_cv_prog_cc_g = yes; then
2436 if test "$GCC" = yes; then
2442 if test "$GCC" = yes; then
2448 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2449 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2450 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 ac_cv_prog_cc_stdc=no
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2479 s = g (p, va_arg (v,int));
2484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2485 function prototypes and stuff, but not '\xHH' hex character constants.
2486 These don't provoke an error unfortunately, instead are silently treated
2487 as 'x'. The following induces an error, until -std1 is added to get
2488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2489 array size at least. It's necessary to write '\x00'==0 to get something
2490 that's true only with -std1. */
2491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2493 int test (int i, double x);
2494 struct s1 {int (*f) (int a);};
2495 struct s2 {int (*f) (double a);};
2496 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2502 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2507 # Don't try gcc -ansi; that turns off useful extensions and
2508 # breaks some systems' header files.
2509 # AIX -qlanglvl=ansi
2510 # Ultrix and OSF/1 -std1
2511 # HP-UX 10.20 and later -Ae
2512 # HP-UX older versions -Aa -D_HPUX_SOURCE
2513 # SVR4 -Xc -D__EXTENSIONS__
2514 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2516 CC="$ac_save_CC $ac_arg"
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>conftest.er1
2521 grep -v '^ *+' conftest.er1 >conftest.err
2523 cat conftest.err >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); } &&
2526 { ac_try='test -z "$ac_c_werror_flag"
2527 || test ! -s conftest.err'
2528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); }; } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cc_stdc=$ac_arg
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.err conftest.$ac_objext
2548 rm -f conftest.$ac_ext conftest.$ac_objext
2553 case "x$ac_cv_prog_cc_stdc" in
2555 echo "$as_me:$LINENO: result: none needed" >&5
2556 echo "${ECHO_T}none needed" >&6 ;;
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2560 CC="$CC $ac_cv_prog_cc_stdc" ;;
2563 # Some people use a C++ compiler to compile C. Since we use `exit',
2564 # in C++ we need to declare it. In case someone uses the same compiler
2565 # for both compiling C and C++ we need to have the C++ compiler decide
2566 # the declaration of exit, since it's the most demanding environment.
2567 cat >conftest.$ac_ext <<_ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag"
2582 || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 for ac_declaration in \
2596 'extern "C" void std::exit (int) throw (); using std::exit;' \
2597 'extern "C" void std::exit (int); using std::exit;' \
2598 'extern "C" void exit (int) throw ();' \
2599 'extern "C" void exit (int);' \
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag"
2628 || 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"
2673 || test ! -s conftest.err'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2694 if test -n "$ac_declaration"; then
2695 echo '#ifdef __cplusplus' >>confdefs.h
2696 echo $ac_declaration >>confdefs.h
2697 echo '#endif' >>confdefs.h
2701 echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2707 ac_cpp='$CPP $CPPFLAGS'
2708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test "x$CC" != xcc; then
2713 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2714 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2716 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2717 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2719 set dummy $CC; ac_cc=`echo $2 |
2720 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2721 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 # Make sure it works both with $CC and with simple cc.
2740 # We do the test twice because some compilers refuse to overwrite an
2741 # existing .o file with -o, though they will create one.
2742 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2743 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); } &&
2748 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); };
2754 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2755 if test "x$CC" != xcc; then
2756 # Test first that cc exists at all.
2757 if { ac_try='cc -c conftest.$ac_ext >&5'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2763 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2764 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } &&
2769 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); };
2778 # cc exists but doesn't like -o.
2779 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2784 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2789 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2790 echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2796 cat >>confdefs.h <<\_ACEOF
2797 #define NO_MINUS_C_MINUS_O 1
2802 # autoconf is lame and doesn't give us any substitution variable for this.
2803 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2804 NO_MINUS_C_MINUS_O=yes
2806 OUTPUT_OPTION='-o $@'
2811 # -------------------------
2812 # Check C compiler features
2813 # -------------------------
2816 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2817 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 save_CFLAGS="$CFLAGS"
2822 CFLAGS="-Wno-long-long"
2823 cat >conftest.$ac_ext <<_ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h. */
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840 (eval $ac_compile) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
2847 { ac_try='test -z "$ac_c_werror_flag"
2848 || test ! -s conftest.err'
2849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; } &&
2854 { ac_try='test -s conftest.$ac_objext'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 ac_cv_prog_cc_no_long_long=yes
2862 echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2865 ac_cv_prog_cc_no_long_long=no
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 CFLAGS="$save_CFLAGS"
2870 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880 # On Suns, sometimes $CPP names a directory.
2881 if test -n "$CPP" && test -d "$CPP"; then
2884 if test -z "$CPP"; then
2885 if test "${ac_cv_prog_CPP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 # Double quotes because CPP needs to be expanded
2889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 for ac_c_preproc_warn_flag in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 # include <limits.h>
2909 # include <assert.h>
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev/null; then
2921 if test -s conftest.err; then
2922 ac_cpp_err=$ac_c_preproc_warn_flag
2923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 if test -z "$ac_cpp_err"; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2999 for ac_c_preproc_warn_flag in '' yes
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.$ac_ext <<_ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3014 # include <limits.h>
3016 # include <assert.h>
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null; then
3028 if test -s conftest.err; then
3029 ac_cpp_err=$ac_c_preproc_warn_flag
3030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037 if test -z "$ac_cpp_err"; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 # Broken: fails on valid input.
3046 rm -f conftest.err conftest.$ac_ext
3048 # OK, works on sane cases. Now check whether non-existent headers
3049 # can be detected and how.
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #include <ac_nonexistent.h>
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1 >conftest.err
3063 cat conftest.err >&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev/null; then
3066 if test -s conftest.err; then
3067 ac_cpp_err=$ac_c_preproc_warn_flag
3068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075 if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 # Passes both tests.
3086 rm -f conftest.err conftest.$ac_ext
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.$ac_ext
3091 if $ac_preproc_ok; then
3094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
3102 ac_cpp='$CPP $CPPFLAGS'
3103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107 echo "$as_me:$LINENO: checking for inline" >&5
3108 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3109 if test "${ac_cv_c_inline+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 for ac_kw in inline __inline__ __inline; do
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 static $ac_kw foo_t static_foo () {return 0; }
3123 $ac_kw foo_t foo () {return 0; }
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag"
3137 || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c_inline=$ac_kw; break
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3163 case $ac_cv_c_inline in
3166 case $ac_cv_c_inline in
3168 *) ac_val=$ac_cv_c_inline;;
3170 cat >>confdefs.h <<_ACEOF
3172 #define inline $ac_val
3179 echo "$as_me:$LINENO: checking for long long int" >&5
3180 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3181 if test "${ac_cv_c_long_long+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"
3209 || test ! -s conftest.err'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; }; then
3221 ac_cv_c_long_long=yes
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3226 ac_cv_c_long_long=no
3228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3230 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3231 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3232 if test $ac_cv_c_long_long = yes; then
3234 cat >>confdefs.h <<\_ACEOF
3235 #define HAVE_LONG_LONG 1
3239 echo "$as_me:$LINENO: checking for __int64" >&5
3240 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3241 if test "${ac_cv_c___int64+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"
3269 || test ! -s conftest.err'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; } &&
3275 { ac_try='test -s conftest.$ac_objext'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; }; then
3283 echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3290 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3291 echo "${ECHO_T}$ac_cv_c___int64" >&6
3292 if test $ac_cv_c___int64 = yes; then
3294 cat >>confdefs.h <<\_ACEOF
3295 #define HAVE___INT64 1
3300 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3301 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3302 if test "${gcc_cv_c__bool+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 cat >conftest.$ac_ext <<_ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3320 rm -f conftest.$ac_objext
3321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3353 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3354 if test $gcc_cv_c__bool = yes; then
3356 cat >>confdefs.h <<\_ACEOF
3357 #define HAVE__BOOL 1
3363 # sizeof(char) is 1 by definition.
3364 echo "$as_me:$LINENO: checking size of void *" >&5
3365 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3366 if test "${ac_cv_sizeof_void_p+set}" = set; then
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3369 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include "confdefs.h"
3377 #include <sys/types.h>
3383 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3388 rm -f conftest.$ac_objext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390 (eval $ac_compile) 2>conftest.er1
3392 grep -v '^ *+' conftest.er1 >conftest.err
3394 cat conftest.err >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } &&
3397 { ac_try='test -z "$ac_c_werror_flag"
3398 || test ! -s conftest.err'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try='test -s conftest.$ac_objext'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; }; then
3410 ac_cv_sizeof_void_p=$ac_size
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3417 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3422 if test x$ac_cv_sizeof_void_p = x ; then
3423 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3424 echo "$as_me: error: cannot determine a size for void *" >&2;}
3425 { (exit 1); exit 1; }; }
3427 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3428 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3430 cat >>confdefs.h <<_ACEOF
3431 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3435 echo "$as_me:$LINENO: checking size of short" >&5
3436 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3437 if test "${ac_cv_sizeof_short+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3454 switch (0) case 0: case (sizeof (short) == $ac_size):;
3459 rm -f conftest.$ac_objext
3460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3461 (eval $ac_compile) 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); } &&
3468 { ac_try='test -z "$ac_c_werror_flag"
3469 || test ! -s conftest.err'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; } &&
3475 { ac_try='test -s conftest.$ac_objext'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
3481 ac_cv_sizeof_short=$ac_size
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488 if test x$ac_cv_sizeof_short != x ; then break; fi
3493 if test x$ac_cv_sizeof_short = x ; then
3494 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3495 echo "$as_me: error: cannot determine a size for short" >&2;}
3496 { (exit 1); exit 1; }; }
3498 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3499 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3501 cat >>confdefs.h <<_ACEOF
3502 #define SIZEOF_SHORT $ac_cv_sizeof_short
3506 echo "$as_me:$LINENO: checking size of int" >&5
3507 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3508 if test "${ac_cv_sizeof_int+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3518 #include "confdefs.h"
3519 #include <sys/types.h>
3525 switch (0) case 0: case (sizeof (int) == $ac_size):;
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3552 ac_cv_sizeof_int=$ac_size
3554 echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3559 if test x$ac_cv_sizeof_int != x ; then break; fi
3564 if test x$ac_cv_sizeof_int = x ; then
3565 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3566 echo "$as_me: error: cannot determine a size for int" >&2;}
3567 { (exit 1); exit 1; }; }
3569 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3570 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3572 cat >>confdefs.h <<_ACEOF
3573 #define SIZEOF_INT $ac_cv_sizeof_int
3577 echo "$as_me:$LINENO: checking size of long" >&5
3578 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3579 if test "${ac_cv_sizeof_long+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include "confdefs.h"
3590 #include <sys/types.h>
3596 switch (0) case 0: case (sizeof (long) == $ac_size):;
3601 rm -f conftest.$ac_objext
3602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603 (eval $ac_compile) 2>conftest.er1
3605 grep -v '^ *+' conftest.er1 >conftest.err
3607 cat conftest.err >&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -z "$ac_c_werror_flag"
3611 || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_sizeof_long=$ac_size
3625 echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3630 if test x$ac_cv_sizeof_long != x ; then break; fi
3635 if test x$ac_cv_sizeof_long = x ; then
3636 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3637 echo "$as_me: error: cannot determine a size for long" >&2;}
3638 { (exit 1); exit 1; }; }
3640 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3641 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3643 cat >>confdefs.h <<_ACEOF
3644 #define SIZEOF_LONG $ac_cv_sizeof_long
3648 if test $ac_cv_c_long_long = yes; then
3649 echo "$as_me:$LINENO: checking size of long long" >&5
3650 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3651 if test "${ac_cv_sizeof_long_long+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3668 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_sizeof_long_long=$ac_size
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3707 if test x$ac_cv_sizeof_long_long = x ; then
3708 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3709 echo "$as_me: error: cannot determine a size for long long" >&2;}
3710 { (exit 1); exit 1; }; }
3712 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3713 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3715 cat >>confdefs.h <<_ACEOF
3716 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3721 if test $ac_cv_c___int64 = yes; then
3722 echo "$as_me:$LINENO: checking size of __int64" >&5
3723 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3724 if test "${ac_cv_sizeof___int64+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 #include "confdefs.h"
3735 #include <sys/types.h>
3741 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>conftest.er1
3750 grep -v '^ *+' conftest.er1 >conftest.err
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
3755 { ac_try='test -z "$ac_c_werror_flag"
3756 || test ! -s conftest.err'
3757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); }; } &&
3762 { ac_try='test -s conftest.$ac_objext'
3763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); }; }; then
3768 ac_cv_sizeof___int64=$ac_size
3770 echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3780 if test x$ac_cv_sizeof___int64 = x ; then
3781 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3782 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3783 { (exit 1); exit 1; }; }
3785 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3786 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3788 cat >>confdefs.h <<_ACEOF
3789 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3799 # See if GNAT has been installed
3803 if test -n "$ac_tool_prefix"; then
3804 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3805 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 if test -n "$GNATBIND"; then
3812 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 GNATBIND=$ac_cv_prog_GNATBIND
3831 if test -n "$GNATBIND"; then
3832 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3833 echo "${ECHO_T}$GNATBIND" >&6
3835 echo "$as_me:$LINENO: result: no" >&5
3836 echo "${ECHO_T}no" >&6
3840 if test -z "$ac_cv_prog_GNATBIND"; then
3841 ac_ct_GNATBIND=$GNATBIND
3842 # Extract the first word of "gnatbind", so it can be a program name with args.
3843 set dummy gnatbind; ac_word=$2
3844 echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 if test -n "$ac_ct_GNATBIND"; then
3850 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3869 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3870 if test -n "$ac_ct_GNATBIND"; then
3871 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3872 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3878 GNATBIND=$ac_ct_GNATBIND
3880 GNATBIND="$ac_cv_prog_GNATBIND"
3883 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3884 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3885 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 cat >conftest.adb <<EOF
3889 procedure conftest is begin null; end conftest;
3891 gcc_cv_cc_supports_ada=no
3892 # There is a bug in old released versions of GCC which causes the
3893 # driver to exit successfully when the appropriate language module
3894 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3895 # Therefore we must check for the error message as well as an
3896 # unsuccessful exit.
3897 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3898 if test x"$errors" = x; then
3899 gcc_cv_cc_supports_ada=yes
3904 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3905 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3907 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3914 # ---------------------
3915 # Warnings and checking
3916 # ---------------------
3919 if test $ac_cv_prog_cc_no_long_long = yes ; then
3920 strict1_warn="-pedantic -Wno-long-long"
3924 # If the native compiler is GCC, we can enable warnings even in stage1.
3925 # That's useful for people building cross-compilers, or just running a
3928 if test "x$GCC" = "xyes"; then
3929 warn_cflags='$(GCC_WARN_CFLAGS)'
3933 # Enable -Werror in bootstrap stage2 and later.
3934 # Change the default to "no" on release branches.
3935 # Check whether --enable-werror or --disable-werror was given.
3936 if test "${enable_werror+set}" = set; then
3937 enableval="$enable_werror"
3942 if test x$enable_werror = xyes ; then
3947 # Enable expensive internal checks
3948 # Check whether --enable-checking or --disable-checking was given.
3949 if test "${enable_checking+set}" = set; then
3950 enableval="$enable_checking"
3954 ac_rtlflag_checking=
3956 ac_gc_always_collect=
3958 case "${enableval}" in
3959 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3960 ac_rtlflag_checking=1 ;;
3962 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3963 set fnord $enableval; shift
3968 misc) ac_checking=1 ;;
3969 tree) ac_tree_checking=1 ;;
3970 rtlflag) ac_rtlflag_checking=1 ;;
3971 rtl) ac_rtl_checking=1 ;;
3972 gc) ac_gc_checking=1 ;;
3973 gcac) ac_gc_always_collect=1 ;;
3974 fold) ac_fold_checking=1 ;;
3975 valgrind) ac_checking_valgrind=1 ;;
3976 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3977 echo "$as_me: error: unknown check category $check" >&2;}
3978 { (exit 1); exit 1; }; } ;;
3985 # Enable some checks by default for development versions of GCC
3986 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3989 if test x$ac_checking != x ; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define ENABLE_CHECKING 1
3995 nocommon_flag=-fno-common
3998 if test x$ac_tree_checking != x ; then
4000 cat >>confdefs.h <<\_ACEOF
4001 #define ENABLE_TREE_CHECKING 1
4005 if test x$ac_rtl_checking != x ; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define ENABLE_RTL_CHECKING 1
4012 if test x$ac_rtlflag_checking != x ; then
4014 cat >>confdefs.h <<\_ACEOF
4015 #define ENABLE_RTL_FLAG_CHECKING 1
4019 if test x$ac_gc_checking != x ; then
4021 cat >>confdefs.h <<\_ACEOF
4022 #define ENABLE_GC_CHECKING 1
4026 if test x$ac_gc_always_collect != x ; then
4028 cat >>confdefs.h <<\_ACEOF
4029 #define ENABLE_GC_ALWAYS_COLLECT 1
4033 if test x$ac_fold_checking != x ; then
4035 cat >>confdefs.h <<\_ACEOF
4036 #define ENABLE_FOLD_CHECKING 1
4040 valgrind_path_defines=
4044 echo "$as_me:$LINENO: checking for egrep" >&5
4045 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4046 if test "${ac_cv_prog_egrep+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4050 then ac_cv_prog_egrep='grep -E'
4051 else ac_cv_prog_egrep='egrep'
4054 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4055 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4056 EGREP=$ac_cv_prog_egrep
4059 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4060 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4061 if test "${ac_cv_header_stdc+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4083 rm -f conftest.$ac_objext
4084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4085 (eval $ac_compile) 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -z "$ac_c_werror_flag"
4093 || test ! -s conftest.err'
4094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; } &&
4099 { ac_try='test -s conftest.$ac_objext'
4100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; }; then
4105 ac_cv_header_stdc=yes
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4110 ac_cv_header_stdc=no
4112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat >conftest.$ac_ext <<_ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h. */
4125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4126 $EGREP "memchr" >/dev/null 2>&1; then
4129 ac_cv_header_stdc=no
4135 if test $ac_cv_header_stdc = yes; then
4136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4147 $EGREP "free" >/dev/null 2>&1; then
4150 ac_cv_header_stdc=no
4156 if test $ac_cv_header_stdc = yes; then
4157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4158 if test "$cross_compiling" = yes; then
4161 cat >conftest.$ac_ext <<_ACEOF
4164 cat confdefs.h >>conftest.$ac_ext
4165 cat >>conftest.$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4191 rm -f conftest$ac_exeext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4193 (eval $ac_link) 2>&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; }; then
4204 echo "$as_me: program exited with status $ac_status" >&5
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4211 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4215 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4216 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4217 if test $ac_cv_header_stdc = yes; then
4219 cat >>confdefs.h <<\_ACEOF
4220 #define STDC_HEADERS 1
4225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4236 inttypes.h stdint.h unistd.h
4238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4239 echo "$as_me:$LINENO: checking for $ac_header" >&5
4240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 $ac_includes_default
4252 #include <$ac_header>
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>conftest.er1
4258 grep -v '^ *+' conftest.er1 >conftest.err
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag"
4264 || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 eval "$as_ac_Header=yes"
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 eval "$as_ac_Header=no"
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4297 if test "${ac_cv_header_valgrind_h+set}" = set; then
4298 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4299 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4300 if test "${ac_cv_header_valgrind_h+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4304 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4306 # Is the header compilable?
4307 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4308 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4315 $ac_includes_default
4316 #include <valgrind.h>
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag"
4328 || test ! -s conftest.err'
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_header_compiler=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_header_compiler=no
4347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4349 echo "${ECHO_T}$ac_header_compiler" >&6
4351 # Is the header present?
4352 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4353 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4354 cat >conftest.$ac_ext <<_ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 #include <valgrind.h>
4362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4365 grep -v '^ *+' conftest.er1 >conftest.err
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null; then
4370 if test -s conftest.err; then
4371 ac_cpp_err=$ac_c_preproc_warn_flag
4372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4379 if test -z "$ac_cpp_err"; then
4380 ac_header_preproc=yes
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_header_preproc=no
4387 rm -f conftest.err conftest.$ac_ext
4388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389 echo "${ECHO_T}$ac_header_preproc" >&6
4391 # So? What about this header?
4392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4394 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4395 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4397 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4398 ac_header_preproc=yes
4401 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4402 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4404 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4406 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4408 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4410 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4412 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4415 ## ------------------------------------------ ##
4416 ## Report this to the AC_PACKAGE_NAME lists. ##
4417 ## ------------------------------------------ ##
4420 sed "s/^/$as_me: WARNING: /" >&2
4423 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4424 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4425 if test "${ac_cv_header_valgrind_h+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 ac_cv_header_valgrind_h=$ac_header_preproc
4430 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4431 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4434 if test $ac_cv_header_valgrind_h = yes; then
4442 if test x$ac_checking_valgrind != x ; then
4443 # It is certainly possible that there's valgrind but no valgrind.h.
4444 # GCC relies on making annotations so we must have both.
4445 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4446 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <valgrind/memcheck.h>
4454 #ifndef VALGRIND_DISCARD
4455 #error VALGRIND_DISCARD not defined
4458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1 >conftest.err
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null; then
4466 if test -s conftest.err; then
4467 ac_cpp_err=$ac_c_preproc_warn_flag
4468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475 if test -z "$ac_cpp_err"; then
4476 gcc_cv_header_valgrind_memcheck_h=yes
4478 echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 gcc_cv_header_valgrind_memcheck_h=no
4483 rm -f conftest.err conftest.$ac_ext
4484 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4485 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4486 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4487 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #include <memcheck.h>
4495 #ifndef VALGRIND_DISCARD
4496 #error VALGRIND_DISCARD not defined
4499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } >/dev/null; then
4507 if test -s conftest.err; then
4508 ac_cpp_err=$ac_c_preproc_warn_flag
4509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4516 if test -z "$ac_cpp_err"; then
4517 gcc_cv_header_memcheck_h=yes
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4522 gcc_cv_header_memcheck_h=no
4524 rm -f conftest.err conftest.$ac_ext
4525 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4526 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4528 # Prepare PATH_SEPARATOR.
4529 # The user is always right.
4530 if test "${PATH_SEPARATOR+set}" != set; then
4531 echo "#! /bin/sh" >conf$$.sh
4532 echo "exit 0" >>conf$$.sh
4534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4542 # Find out how to test for executable files. Don't use a zero-byte file,
4543 # as systems may use methods other than mode bits to determine executability.
4544 cat >conf$$.file <<_ASEOF
4548 chmod +x conf$$.file
4549 if test -x conf$$.file >/dev/null 2>&1; then
4550 ac_executable_p="test -x"
4552 ac_executable_p="test -f"
4556 # Extract the first word of "valgrind", so it can be a program name with args.
4557 set dummy valgrind; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_path_valgrind_path+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 case "$valgrind_path" in
4565 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4568 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH; do
4571 test -z "$ac_dir" && ac_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4574 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4575 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4585 valgrind_path="$ac_cv_path_valgrind_path"
4586 if test -n "$valgrind_path"; then
4587 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4588 echo "${ECHO_T}$valgrind_path" >&6
4590 echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6
4594 if test "x$valgrind_path" = "x" \
4595 || (test $have_valgrind_h = no \
4596 && test $gcc_cv_header_memcheck_h = no \
4597 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4598 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4599 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4600 { (exit 1); exit 1; }; }
4602 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4603 valgrind_command="$valgrind_path -q"
4605 cat >>confdefs.h <<\_ACEOF
4606 #define ENABLE_VALGRIND_CHECKING 1
4609 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4611 cat >>confdefs.h <<\_ACEOF
4612 #define HAVE_VALGRIND_MEMCHECK_H 1
4616 if test $gcc_cv_header_memcheck_h = yes; then
4618 cat >>confdefs.h <<\_ACEOF
4619 #define HAVE_MEMCHECK_H 1
4627 # Enable code coverage collection
4628 # Check whether --enable-coverage or --disable-coverage was given.
4629 if test "${enable_coverage+set}" = set; then
4630 enableval="$enable_coverage"
4631 case "${enableval}" in
4633 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4636 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4639 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4640 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4641 { (exit 1); exit 1; }; }
4649 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4650 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4651 enableval="$enable_gather_detailed_mem_stats"
4654 enable_gather_detailed_mem_stats=no
4656 if test x$enable_gather_detailed_mem_stats = xyes ; then
4658 cat >>confdefs.h <<\_ACEOF
4659 #define GATHER_STATISTICS 1
4664 # -------------------------------
4665 # Miscenalleous configure options
4666 # -------------------------------
4670 # Check whether --with-stabs or --without-stabs was given.
4671 if test "${with_stabs+set}" = set; then
4672 withval="$with_stabs"
4678 # Determine whether or not multilibs are enabled.
4679 # Check whether --enable-multilib or --disable-multilib was given.
4680 if test "${enable_multilib+set}" = set; then
4681 enableval="$enable_multilib"
4688 # Enable __cxa_atexit for C++.
4689 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4690 if test "${enable___cxa_atexit+set}" = set; then
4691 enableval="$enable___cxa_atexit"
4696 # Pass with no value to take the default
4697 # Pass with a value to specify a thread package
4698 # Check whether --enable-threads or --disable-threads was given.
4699 if test "${enable_threads+set}" = set; then
4700 enableval="$enable_threads"
4705 # Save in case it gets overwritten in config.gcc
4706 enable_threads_flag=$enable_threads
4708 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4709 if test "${enable_objc_gc+set}" = set; then
4710 enableval="$enable_objc_gc"
4711 if test x$enable_objc_gc = xno; then
4721 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4722 if test "${with_dwarf2+set}" = set; then
4723 withval="$with_dwarf2"
4724 dwarf2="$with_dwarf2"
4729 # Check whether --enable-shared or --disable-shared was given.
4730 if test "${enable_shared+set}" = set; then
4731 enableval="$enable_shared"
4733 case $enable_shared in
4737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4738 for pkg in $enableval; do
4739 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4753 # Check whether --with-sysroot or --without-sysroot was given.
4754 if test "${with_sysroot+set}" = set; then
4755 withval="$with_sysroot"
4757 case ${with_sysroot} in
4758 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4759 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4762 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4763 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4765 if test "x$exec_prefix" = xNONE; then
4766 if test "x$prefix" = xNONE; then
4767 test_prefix=/usr/local
4772 test_prefix=$exec_prefix
4774 case ${TARGET_SYSTEM_ROOT} in
4775 "${test_prefix}"|"${test_prefix}/"*|\
4776 '${exec_prefix}'|'${exec_prefix}/'*)
4777 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4778 TARGET_SYSTEM_ROOT_DEFINE="$t"
4785 TARGET_SYSTEM_ROOT_DEFINE=
4786 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4793 # Build with intermodule optimisations
4794 # Check whether --enable-intermodule or --disable-intermodule was given.
4795 if test "${enable_intermodule+set}" = set; then
4796 enableval="$enable_intermodule"
4797 case ${enable_intermodule} in
4798 yes) onestep="-onestep";;
4806 # -------------------------
4807 # Checks for other programs
4808 # -------------------------
4810 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4811 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4812 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4813 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.make <<\_ACEOF
4818 @echo 'ac_maketemp="$(MAKE)"'
4820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4821 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4822 if test -n "$ac_maketemp"; then
4823 eval ac_cv_prog_make_${ac_make}_set=yes
4825 eval ac_cv_prog_make_${ac_make}_set=no
4829 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4830 echo "$as_me:$LINENO: result: yes" >&5
4831 echo "${ECHO_T}yes" >&6
4834 echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6
4836 SET_MAKE="MAKE=${MAKE-make}"
4840 # Find some useful tools
4841 for ac_prog in gawk mawk nawk awk
4843 # Extract the first word of "$ac_prog", so it can be a program name with args.
4844 set dummy $ac_prog; ac_word=$2
4845 echo "$as_me:$LINENO: checking for $ac_word" >&5
4846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4847 if test "${ac_cv_prog_AWK+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 if test -n "$AWK"; then
4851 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_prog_AWK="$ac_prog"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 if test -n "$AWK"; then
4871 echo "$as_me:$LINENO: result: $AWK" >&5
4872 echo "${ECHO_T}$AWK" >&6
4874 echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6
4878 test -n "$AWK" && break
4881 # We need awk to run opts.sh (to create options.c and options.h).
4882 # Bail out if it's missing.
4884 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4885 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4889 echo "$as_me:$LINENO: checking whether ln works" >&5
4890 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4891 if test "${gcc_cv_prog_LN+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 rm -f conftestdata_t
4895 echo >conftestdata_f
4896 if ln conftestdata_f conftestdata_t 2>/dev/null
4900 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4902 gcc_cv_prog_LN="ln -s"
4907 rm -f conftestdata_f conftestdata_t
4910 LN="$gcc_cv_prog_LN"
4911 if test "$gcc_cv_prog_LN" = "ln"; then
4912 echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6
4915 if test "$gcc_cv_prog_LN" = "ln -s"; then
4916 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4917 echo "${ECHO_T}no, using ln -s" >&6
4919 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4920 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4924 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4925 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4926 if test "${gcc_cv_prog_LN_S+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 rm -f conftestdata_t
4930 echo >conftestdata_f
4931 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4933 gcc_cv_prog_LN_S="ln -s"
4935 if ln conftestdata_f conftestdata_t 2>/dev/null
4942 rm -f conftestdata_f conftestdata_t
4945 LN_S="$gcc_cv_prog_LN_S"
4946 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4947 echo "$as_me:$LINENO: result: yes" >&5
4948 echo "${ECHO_T}yes" >&6
4950 if test "$gcc_cv_prog_LN_S" = "ln"; then
4951 echo "$as_me:$LINENO: result: no, using ln" >&5
4952 echo "${ECHO_T}no, using ln" >&6
4954 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4955 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4959 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4962 echo "$as_me:$LINENO: checking for $ac_word" >&5
4963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4964 if test "${ac_cv_prog_RANLIB+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 if test -n "$RANLIB"; then
4968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 RANLIB=$ac_cv_prog_RANLIB
4987 if test -n "$RANLIB"; then
4988 echo "$as_me:$LINENO: result: $RANLIB" >&5
4989 echo "${ECHO_T}$RANLIB" >&6
4991 echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6
4996 if test -z "$ac_cv_prog_RANLIB"; then
4997 ac_ct_RANLIB=$RANLIB
4998 # Extract the first word of "ranlib", so it can be a program name with args.
4999 set dummy ranlib; ac_word=$2
5000 echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$ac_ct_RANLIB"; then
5006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_ac_ct_RANLIB="ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5026 if test -n "$ac_ct_RANLIB"; then
5027 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5028 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5034 RANLIB=$ac_ct_RANLIB
5036 RANLIB="$ac_cv_prog_RANLIB"
5039 # Find a good install program. We prefer a C program (faster),
5040 # so one script is as good as another. But avoid the broken or
5041 # incompatible versions:
5042 # SysV /etc/install, /usr/sbin/install
5043 # SunOS /usr/etc/install
5044 # IRIX /sbin/install
5046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5048 # ./install, which can be erroneously created by make from ./install.sh.
5049 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5050 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5051 if test -z "$INSTALL"; then
5052 if test "${ac_cv_path_install+set}" = set; then
5053 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5056 for ac_dir in $PATH; do
5057 # Account for people who put trailing slashes in PATH elements.
5059 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5061 # OSF1 and SCO ODT 3.0 have their own names for install.
5062 for ac_prog in ginstall scoinst install; do
5063 if test -f $ac_dir/$ac_prog; then
5064 if test $ac_prog = install &&
5065 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5066 # AIX install. It has an incompatible calling convention.
5067 # OSF/1 installbsd also uses dspmsg, but is usable.
5070 ac_cv_path_install="$ac_dir/$ac_prog -c"
5081 if test "${ac_cv_path_install+set}" = set; then
5082 INSTALL="$ac_cv_path_install"
5084 # As a last resort, use the slow shell script. We don't cache a
5085 # path for INSTALL within a source directory, because that will
5086 # break other packages using the cache if that directory is
5087 # removed, or if the path is relative.
5088 INSTALL="$ac_install_sh"
5091 echo "$as_me:$LINENO: result: $INSTALL" >&5
5092 echo "${ECHO_T}$INSTALL" >&6
5094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5095 # It thinks the first close brace ends the variable substitution.
5096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5101 # See if cmp has --ignore-initial.
5102 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5103 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5104 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 gcc_cv_prog_cmp_skip=slowcompare
5110 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5111 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5114 gcc_cv_prog_cmp_skip=gnucompare
5117 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5118 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5119 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5122 gcc_cv_prog_cmp_skip=fastcompare
5129 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5130 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5131 make_compare_target=$gcc_cv_prog_cmp_skip
5135 # See if we have the mktemp command.
5136 # Extract the first word of "mktemp", so it can be a program name with args.
5137 set dummy mktemp; ac_word=$2
5138 echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 if test -n "$have_mktemp_command"; then
5144 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153 ac_cv_prog_have_mktemp_command="yes"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5163 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5164 if test -n "$have_mktemp_command"; then
5165 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5166 echo "${ECHO_T}$have_mktemp_command" >&6
5168 echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5173 # Do we have a single-tree copy of texinfo?
5174 if test -f $srcdir/../texinfo/Makefile.in; then
5175 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5176 gcc_cv_prog_makeinfo_modern=yes
5177 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5178 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5180 # See if makeinfo has been installed and is modern enough
5181 # that we can use it.
5182 # Extract the first word of "makeinfo", so it can be a program name with args.
5183 set dummy makeinfo; ac_word=$2
5184 echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 if test -n "$MAKEINFO"; then
5190 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_MAKEINFO="makeinfo"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 MAKEINFO=$ac_cv_prog_MAKEINFO
5209 if test -n "$MAKEINFO"; then
5210 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5211 echo "${ECHO_T}$MAKEINFO" >&6
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5217 if test -n "$MAKEINFO"; then
5218 # Found it, now check the version.
5219 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5220 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5221 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_prog_version=`$MAKEINFO --version 2>&1 |
5225 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5226 echo "configure:5226: version of makeinfo is $ac_prog_version" >&5
5227 case $ac_prog_version in
5228 '') gcc_cv_prog_makeinfo_modern=no;;
5230 gcc_cv_prog_makeinfo_modern=yes;;
5231 *) gcc_cv_prog_makeinfo_modern=no;;
5235 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5236 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5238 gcc_cv_prog_makeinfo_modern=no
5243 if test $gcc_cv_prog_makeinfo_modern = no; then
5244 { echo "$as_me:$LINENO: WARNING:
5245 *** Makeinfo is missing or too old.
5246 *** Info documentation will not be built." >&5
5247 echo "$as_me: WARNING:
5248 *** Makeinfo is missing or too old.
5249 *** Info documentation will not be built." >&2;}
5255 # Is pod2man recent enough to regenerate manpages?
5256 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5257 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5258 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5259 echo "$as_me:$LINENO: result: yes" >&5
5260 echo "${ECHO_T}yes" >&6
5261 GENERATED_MANPAGES=generated-manpages
5263 echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5269 if test -f $srcdir/../flex/skel.c; then
5270 FLEX='$(objdir)/../flex/flex'
5272 # Extract the first word of "flex", so it can be a program name with args.
5273 set dummy flex; ac_word=$2
5274 echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5276 if test "${ac_cv_prog_FLEX+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -n "$FLEX"; then
5280 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289 ac_cv_prog_FLEX="flex"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5299 FLEX=$ac_cv_prog_FLEX
5300 if test -n "$FLEX"; then
5301 echo "$as_me:$LINENO: result: $FLEX" >&5
5302 echo "${ECHO_T}$FLEX" >&6
5304 echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6
5311 # The -L switch is so bison can find its skeleton file.
5312 if test -f $srcdir/../bison/bison.simple; then
5313 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5315 # Extract the first word of "bison", so it can be a program name with args.
5316 set dummy bison; ac_word=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_BISON+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 if test -n "$BISON"; then
5323 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_BISON="bison"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5342 BISON=$ac_cv_prog_BISON
5343 if test -n "$BISON"; then
5344 echo "$as_me:$LINENO: result: $BISON" >&5
5345 echo "${ECHO_T}$BISON" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5353 # --------------------
5354 # Checks for C headers
5355 # --------------------
5357 echo "$as_me:$LINENO: checking for GNU C library" >&5
5358 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5359 if test "${gcc_cv_glibc+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <features.h>
5373 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5374 #error Not a GNU C library system
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -z "$ac_c_werror_flag"
5390 || test ! -s conftest.err'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest.$ac_objext'
5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5412 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5413 echo "${ECHO_T}$gcc_cv_glibc" >&6
5414 if test $gcc_cv_glibc = yes; then
5416 cat >>confdefs.h <<\_ACEOF
5417 #define _GNU_SOURCE 1
5422 # Need to reject headers which give warnings, so that the -Werror bootstrap
5423 # works later. *sigh* This needs to come before all header checks.
5425 ac_c_preproc_warn_flag=yes
5427 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5428 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5429 if test "${ac_cv_header_stdc+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5451 rm -f conftest.$ac_objext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5455 grep -v '^ *+' conftest.er1 >conftest.err
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_header_stdc=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_cv_header_stdc=no
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 if test $ac_cv_header_stdc = yes; then
5483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5484 cat >conftest.$ac_ext <<_ACEOF
5487 cat confdefs.h >>conftest.$ac_ext
5488 cat >>conftest.$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5494 $EGREP "memchr" >/dev/null 2>&1; then
5497 ac_cv_header_stdc=no
5503 if test $ac_cv_header_stdc = yes; then
5504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515 $EGREP "free" >/dev/null 2>&1; then
5518 ac_cv_header_stdc=no
5524 if test $ac_cv_header_stdc = yes; then
5525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5526 if test "$cross_compiling" = yes; then
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5536 #if ((' ' & 0x0FF) == 0x020)
5537 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5538 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5540 # define ISLOWER(c) \
5541 (('a' <= (c) && (c) <= 'i') \
5542 || ('j' <= (c) && (c) <= 'r') \
5543 || ('s' <= (c) && (c) <= 'z'))
5544 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5552 for (i = 0; i < 256; i++)
5553 if (XOR (islower (i), ISLOWER (i))
5554 || toupper (i) != TOUPPER (i))
5559 rm -f conftest$ac_exeext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5572 echo "$as_me: program exited with status $ac_status" >&5
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_cv_header_stdc=no
5579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5583 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5584 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5585 if test $ac_cv_header_stdc = yes; then
5587 cat >>confdefs.h <<\_ACEOF
5588 #define STDC_HEADERS 1
5593 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5594 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5595 if test "${ac_cv_header_time+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 cat >conftest.$ac_ext <<_ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <sys/types.h>
5605 #include <sys/time.h>
5611 if ((struct tm *) 0)
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619 (eval $ac_compile) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1 >conftest.err
5623 cat conftest.err >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_header_time=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_cv_header_time=no
5646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5649 echo "${ECHO_T}$ac_cv_header_time" >&6
5650 if test $ac_cv_header_time = yes; then
5652 cat >>confdefs.h <<\_ACEOF
5653 #define TIME_WITH_SYS_TIME 1
5658 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5659 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5660 if test "${ac_cv_header_stdbool_h+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <stdbool.h>
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>conftest.er1
5682 grep -v '^ *+' conftest.er1 >conftest.err
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -z "$ac_c_werror_flag"
5688 || test ! -s conftest.err'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; } &&
5694 { ac_try='test -s conftest.$ac_objext'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then
5700 ac_cv_header_stdbool_h=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_cv_header_stdbool_h=no
5707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5709 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5710 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5711 if test $ac_cv_header_stdbool_h = yes; then
5713 cat >>confdefs.h <<\_ACEOF
5714 #define HAVE_STDBOOL_H 1
5719 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5720 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5721 if test "${gcc_cv_header_string+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5731 #include <strings.h>
5740 rm -f conftest.$ac_objext
5741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>conftest.er1
5744 grep -v '^ *+' conftest.er1 >conftest.err
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag"
5750 || test ! -s conftest.err'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 gcc_cv_header_string=yes
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5767 gcc_cv_header_string=no
5769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5772 echo "${ECHO_T}$gcc_cv_header_string" >&6
5773 if test $gcc_cv_header_string = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define STRING_WITH_STRINGS 1
5781 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5782 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5783 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5792 #include <sys/types.h>
5793 #include <sys/wait.h>
5795 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5798 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5806 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1 >conftest.err
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_cv_header_sys_wait_h=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5838 ac_cv_header_sys_wait_h=no
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5842 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5843 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5844 if test $ac_cv_header_sys_wait_h = yes; then
5846 cat >>confdefs.h <<\_ACEOF
5847 #define HAVE_SYS_WAIT_H 1
5873 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5874 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5875 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5876 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5879 echo "$as_me:$LINENO: checking for $ac_header" >&5
5880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5890 #include <$ac_header>
5892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null; then
5900 if test -s conftest.err; then
5901 ac_cpp_err=$ac_c_preproc_warn_flag
5902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5909 if test -z "$ac_cpp_err"; then
5910 eval "$as_ac_Header=yes"
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5915 eval "$as_ac_Header=no"
5917 rm -f conftest.err conftest.$ac_ext
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930 # Check for thread headers.
5931 echo "$as_me:$LINENO: checking for thread.h" >&5
5932 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5933 if test "${ac_cv_header_thread_h+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5947 grep -v '^ *+' conftest.er1 >conftest.err
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } >/dev/null; then
5952 if test -s conftest.err; then
5953 ac_cpp_err=$ac_c_preproc_warn_flag
5954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5961 if test -z "$ac_cpp_err"; then
5962 ac_cv_header_thread_h=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_cv_header_thread_h=no
5969 rm -f conftest.err conftest.$ac_ext
5971 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5972 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5973 if test $ac_cv_header_thread_h = yes; then
5979 echo "$as_me:$LINENO: checking for pthread.h" >&5
5980 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5981 if test "${ac_cv_header_pthread_h+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 #include <pthread.h>
5992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995 grep -v '^ *+' conftest.er1 >conftest.err
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } >/dev/null; then
6000 if test -s conftest.err; then
6001 ac_cpp_err=$ac_c_preproc_warn_flag
6002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6009 if test -z "$ac_cpp_err"; then
6010 ac_cv_header_pthread_h=yes
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6015 ac_cv_header_pthread_h=no
6017 rm -f conftest.err conftest.$ac_ext
6019 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6020 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6021 if test $ac_cv_header_pthread_h = yes; then
6028 # These tests can't be done till we know if we have limits.h.
6029 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6030 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6031 if test "${gcc_cv_decl_char_bit+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #ifdef HAVE_LIMITS_H
6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6048 $EGREP "found" >/dev/null 2>&1; then
6049 gcc_cv_decl_char_bit=yes
6051 gcc_cv_decl_char_bit=no
6057 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6058 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6059 if test $gcc_cv_decl_char_bit = no; then
6060 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6061 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6062 if test "${gcc_cv_c_nbby+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 while test $i -lt 65; do
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6079 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6080 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } &&
6095 { ac_try='test -z "$ac_c_werror_flag"
6096 || test ! -s conftest.err'
6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; }; then
6108 gcc_cv_c_nbby=$i; break
6110 echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6117 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6120 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6121 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6122 if test $gcc_cv_c_nbby = failed; then
6123 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6124 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6125 { (exit 1); exit 1; }; }
6128 cat >>confdefs.h <<_ACEOF
6129 #define CHAR_BIT $gcc_cv_c_nbby
6134 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6135 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6136 if test "${ac_cv_c_bigendian+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 ac_cv_c_bigendian=unknown
6140 # See if sys/param.h defines the BYTE_ORDER macro.
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6148 #include <sys/param.h>
6153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag"
6170 || test ! -s conftest.err'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 # It does; now see whether it defined to BIG_ENDIAN or not.
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <sys/types.h>
6190 #include <sys/param.h>
6195 #if BYTE_ORDER != BIG_ENDIAN
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag"
6212 || test ! -s conftest.err'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 ac_cv_c_bigendian=yes
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 ac_cv_c_bigendian=no
6231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6238 if test $ac_cv_c_bigendian = unknown; then
6239 if test "$cross_compiling" = yes; then
6240 echo $ac_n "cross-compiling... " 2>&6
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6249 /* Are we little or big endian? From Harbison&Steele. */
6253 char c[sizeof (long)];
6256 exit (u.c[sizeof (long) - 1] == 1);
6259 rm -f conftest$ac_exeext
6260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_c_bigendian=no
6272 echo "$as_me: program exited with status $ac_status" >&5
6273 echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_cv_c_bigendian=yes
6279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6283 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6284 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6285 if test $ac_cv_c_bigendian = unknown; then
6286 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6287 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6289 cat >conftest.c <<EOF
6290 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6291 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6292 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6293 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6294 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6295 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6296 int main() { _ascii (); _ebcdic (); return 0; }
6298 if test -f conftest.c ; then
6299 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
6300 if test `grep -l BIGenDianSyS conftest.o` ; then
6301 echo $ac_n ' big endian probe OK, ' 1>&6
6302 ac_cv_c_bigendian=yes
6304 if test `grep -l LiTTleEnDian conftest.o` ; then
6305 echo $ac_n ' little endian probe OK, ' 1>&6
6306 if test $ac_cv_c_bigendian = yes ; then
6307 ac_cv_c_bigendian=unknown;
6309 ac_cv_c_bigendian=no
6312 echo $ac_n 'guessing bigendian ... ' >&6
6315 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6316 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6318 if test $ac_cv_c_bigendian = yes; then
6320 cat >>confdefs.h <<\_ACEOF
6321 #define WORDS_BIGENDIAN 1
6325 cat >>confdefs.h <<\_ACEOF
6326 #define HOST_WORDS_BIG_ENDIAN 1
6334 cat >>confdefs.h <<_ACEOF
6335 #define BYTEORDER $BYTEORDER
6338 if test $ac_cv_c_bigendian = unknown; then
6339 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6340 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6341 { (exit 1); exit 1; }; }
6349 # Stage specific cflags for build.
6353 if test x$GCC = xyes
6355 stage1_cflags="-Wa,-J"
6361 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6362 # sources; use -no-cpp-precomp to get to GNU cpp.
6363 # Apple's GCC has bugs in designated initializer handling, so disable
6365 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6370 # These libraries may be used by collect2.
6371 # We may need a special search path to get them linked.
6372 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6373 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6374 if test "${gcc_cv_collect2_libs+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 for libs in '' -lld -lmld \
6379 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6380 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6390 /* Override any gcc2 internal prototype to avoid an error. */
6394 /* We use char because int might match the return type of a gcc2
6395 builtin and then its argument prototype would still apply. */
6405 rm -f conftest.$ac_objext conftest$ac_exeext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6407 (eval $ac_link) 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest$ac_exeext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 gcc_cv_collect2_libs="$libs"; break
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6433 rm -f conftest.err conftest.$ac_objext \
6434 conftest$ac_exeext conftest.$ac_ext
6437 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6439 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6440 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6441 case $gcc_cv_collect2_libs in
6443 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6447 # When building Ada code on Alpha, we need exc_resume which is usually in
6448 # -lexc. So test for it.
6451 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6452 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6453 if test "${ac_cv_search_exc_resume+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 ac_func_search_save_LIBS=$LIBS
6457 ac_cv_search_exc_resume=no
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6480 rm -f conftest.$ac_objext conftest$ac_exeext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6482 (eval $ac_link) 2>conftest.er1
6484 grep -v '^ *+' conftest.er1 >conftest.err
6486 cat conftest.err >&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -z "$ac_c_werror_flag"
6490 || test ! -s conftest.err'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; } &&
6496 { ac_try='test -s conftest$ac_exeext'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_search_exc_resume="none required"
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6508 rm -f conftest.err conftest.$ac_objext \
6509 conftest$ac_exeext conftest.$ac_ext
6510 if test "$ac_cv_search_exc_resume" = no; then
6511 for ac_lib in exc; do
6512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6520 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6535 rm -f conftest.$ac_objext conftest$ac_exeext
6536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537 (eval $ac_link) 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -z "$ac_c_werror_flag"
6545 || test ! -s conftest.err'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; } &&
6551 { ac_try='test -s conftest$ac_exeext'
6552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_search_exc_resume="-l$ac_lib"
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6564 rm -f conftest.err conftest.$ac_objext \
6565 conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_func_search_save_LIBS
6570 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6571 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6572 if test "$ac_cv_search_exc_resume" != no; then
6573 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6581 # Some systems put ldexp and frexp in libm instead of libc; assume
6582 # they're both in the same place. jcf-dump needs them.
6585 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6586 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6587 if test "${ac_cv_search_ldexp+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 ac_func_search_save_LIBS=$LIBS
6591 ac_cv_search_ldexp=no
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6599 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 ac_cv_search_ldexp="none required"
6638 echo "$as_me: failed program was:" >&5
6639 sed 's/^/| /' conftest.$ac_ext >&5
6642 rm -f conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644 if test "$ac_cv_search_ldexp" = no; then
6646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6654 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_c_werror_flag"
6679 || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest$ac_exeext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6691 ac_cv_search_ldexp="-l$ac_lib"
6694 echo "$as_me: failed program was:" >&5
6695 sed 's/^/| /' conftest.$ac_ext >&5
6698 rm -f conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6702 LIBS=$ac_func_search_save_LIBS
6704 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6705 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6706 if test "$ac_cv_search_ldexp" != no; then
6707 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6715 # Use <inttypes.h> only if it exists,
6716 # doesn't clash with <sys/types.h>, and declares intmax_t.
6717 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6718 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6719 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <sys/types.h>
6729 #include <inttypes.h>
6738 rm -f conftest.$ac_objext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6740 (eval $ac_compile) 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag"
6748 || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest.$ac_objext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 gcc_cv_header_inttypes_h=yes
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6765 gcc_cv_header_inttypes_h=no
6767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6771 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6772 if test $gcc_cv_header_inttypes_h = yes; then
6774 cat >>confdefs.h <<\_ACEOF
6775 #define HAVE_INTTYPES_H 1
6806 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
6807 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6808 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6809 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6813 echo "$as_me:$LINENO: checking for $ac_func" >&5
6814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6815 if eval "test \"\${$as_ac_var+set}\" = set"; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6826 #define $ac_func innocuous_$ac_func
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func (); below.
6830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831 <limits.h> exists even on freestanding compilers. */
6834 # include <limits.h>
6836 # include <assert.h>
6841 /* Override any gcc2 internal prototype to avoid an error. */
6846 /* We use char because int might match the return type of a gcc2
6847 builtin and then its argument prototype would still apply. */
6849 /* The GNU C library defines this for functions which it implements
6850 to always fail with ENOSYS. Some functions are actually named
6851 something starting with __ and the normal name is an alias. */
6852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6855 char (*f) () = $ac_func;
6864 return f != $ac_func;
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6871 (eval $ac_link) 2>conftest.er1
6873 grep -v '^ *+' conftest.er1 >conftest.err
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_c_werror_flag"
6879 || test ! -s conftest.err'
6880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try='test -s conftest$ac_exeext'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 eval "$as_ac_var=yes"
6893 echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6896 eval "$as_ac_var=no"
6898 rm -f conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
6901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6903 if test `eval echo '${'$as_ac_var'}'` = yes; then
6904 cat >>confdefs.h <<_ACEOF
6905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6912 if test x$ac_cv_func_mbstowcs = xyes; then
6913 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6914 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6915 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 if test "$cross_compiling" = yes; then
6919 gcc_cv_func_mbstowcs_works=yes
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6934 rm -f conftest$ac_exeext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936 (eval $ac_link) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 gcc_cv_func_mbstowcs_works=yes
6947 echo "$as_me: program exited with status $ac_status" >&5
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6952 gcc_cv_func_mbstowcs_works=no
6954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6958 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6959 if test x$gcc_cv_func_mbstowcs_works = xyes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_WORKING_MBSTOWCS 1
6968 echo "$as_me:$LINENO: checking for ssize_t" >&5
6969 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6970 if test "${ac_cv_type_ssize_t+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 cat >conftest.$ac_ext <<_ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 $ac_includes_default
6985 if (sizeof (ssize_t))
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } &&
7000 { ac_try='test -z "$ac_c_werror_flag"
7001 || test ! -s conftest.err'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; } &&
7007 { ac_try='test -s conftest.$ac_objext'
7008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_type_ssize_t=yes
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7018 ac_cv_type_ssize_t=no
7020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7022 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7023 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7024 if test $ac_cv_type_ssize_t = yes; then
7028 cat >>confdefs.h <<_ACEOF
7035 # Try to determine the array type of the second argument of getgroups
7036 # for the target system (int or gid_t).
7037 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7038 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7039 if test "${ac_cv_type_uid_t+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 #include <sys/types.h>
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "uid_t" >/dev/null 2>&1; then
7053 ac_cv_type_uid_t=yes
7060 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7061 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7062 if test $ac_cv_type_uid_t = no; then
7064 cat >>confdefs.h <<\_ACEOF
7069 cat >>confdefs.h <<\_ACEOF
7075 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7076 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7077 if test "${ac_cv_type_getgroups+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 if test "$cross_compiling" = yes; then
7081 ac_cv_type_getgroups=cross
7083 cat >conftest.$ac_ext <<_ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 /* Thanks to Mike Rendell for this test. */
7090 #include <sys/types.h>
7093 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7100 union { gid_t gval; long lval; } val;
7103 for (i = 0; i < NGID; i++)
7104 gidset[i] = val.gval;
7105 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7107 /* Exit non-zero if getgroups seems to require an array of ints. This
7108 happens when gid_t is short but getgroups modifies an array of ints. */
7109 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7112 rm -f conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_type_getgroups=gid_t
7125 echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_type_getgroups=int
7132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7134 if test $ac_cv_type_getgroups = cross; then
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7145 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7146 ac_cv_type_getgroups=gid_t
7148 ac_cv_type_getgroups=int
7154 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7155 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7157 cat >>confdefs.h <<_ACEOF
7158 #define GETGROUPS_T $ac_cv_type_getgroups
7162 if test "${target}" = "${build}"; then
7163 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7166 # This condition may need some tweaking. It should include all
7167 # targets where the array type of the second argument of getgroups
7168 # is int and the type of gid_t is not equivalent to int.
7169 *-*-sunos* | *-*-ultrix*)
7170 TARGET_GETGROUPS_T=int
7173 TARGET_GETGROUPS_T=gid_t
7179 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7180 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7181 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7184 if test "$cross_compiling" = yes; then
7185 gcc_cv_func_printf_ptr=no
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7198 char *p = buf, *q = NULL;
7199 sprintf(buf, "%p", p);
7200 sscanf(buf, "%p", &q);
7204 rm -f conftest$ac_exeext
7205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 gcc_cv_func_printf_ptr=yes
7217 echo "$as_me: program exited with status $ac_status" >&5
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7222 gcc_cv_func_printf_ptr=no
7224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7226 rm -f core core.* *.core
7228 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7229 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7230 if test $gcc_cv_func_printf_ptr = yes ; then
7232 cat >>confdefs.h <<\_ACEOF
7233 #define HAVE_PRINTF_PTR 1
7238 if test $ac_cv_header_sys_mman_h != yes \
7239 || test $ac_cv_func_mmap != yes; then
7240 gcc_cv_func_mmap_file=no
7241 gcc_cv_func_mmap_dev_zero=no
7242 gcc_cv_func_mmap_anon=no
7244 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7245 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7246 if test "${gcc_cv_func_mmap_file+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 # Add a system to this blacklist if
7250 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7251 # memory area containing the same data that you'd get if you applied
7252 # read() to the same fd. The only system known to have a problem here
7253 # is VMS, where text files have record structure.
7256 gcc_cv_func_mmap_file=no ;;
7258 gcc_cv_func_mmap_file=yes;;
7261 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7262 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7263 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7264 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7265 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 # Add a system to this blacklist if it has mmap() but /dev/zero
7269 # does not exist, or if mmapping /dev/zero does not give anonymous
7270 # zeroed pages with both the following properties:
7271 # 1. If you map N consecutive pages in with one call, and then
7272 # unmap any subset of those pages, the pages that were not
7273 # explicitly unmapped remain accessible.
7274 # 2. If you map two adjacent blocks of memory and then unmap them
7275 # both at once, they must both go away.
7276 # Systems known to be in this category are Windows (all variants),
7279 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7280 gcc_cv_func_mmap_dev_zero=no ;;
7282 gcc_cv_func_mmap_dev_zero=yes;;
7285 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7286 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7288 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7289 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7290 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7291 if test "${gcc_cv_decl_map_anon+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <sys/types.h>
7301 #include <sys/mman.h>
7304 #ifndef MAP_ANONYMOUS
7305 #define MAP_ANONYMOUS MAP_ANON
7311 int n = MAP_ANONYMOUS;
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } &&
7325 { ac_try='test -z "$ac_c_werror_flag"
7326 || test ! -s conftest.err'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; }; then
7338 gcc_cv_decl_map_anon=yes
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 gcc_cv_decl_map_anon=no
7345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7348 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7350 if test $gcc_cv_decl_map_anon = no; then
7351 gcc_cv_func_mmap_anon=no
7353 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7354 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7355 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7359 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7360 # doesn't give anonymous zeroed pages with the same properties listed
7361 # above for use of /dev/zero.
7362 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7364 vms* | cygwin* | pe | mingw* | sco* | udk* )
7365 gcc_cv_func_mmap_anon=no ;;
7367 gcc_cv_func_mmap_anon=yes;;
7370 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7371 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7375 if test $gcc_cv_func_mmap_file = yes; then
7377 cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_MMAP_FILE 1
7382 if test $gcc_cv_func_mmap_dev_zero = yes; then
7384 cat >>confdefs.h <<\_ACEOF
7385 #define HAVE_MMAP_DEV_ZERO 1
7389 if test $gcc_cv_func_mmap_anon = yes; then
7391 cat >>confdefs.h <<\_ACEOF
7392 #define HAVE_MMAP_ANON 1
7400 # Under VMS, vfork works very differently than on Unix. The standard test
7401 # won't work, and it isn't easily adaptable. It makes more sense to
7403 ac_cv_func_vfork_works=yes
7406 echo "$as_me:$LINENO: checking for pid_t" >&5
7407 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7408 if test "${ac_cv_type_pid_t+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 cat >conftest.$ac_ext <<_ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h. */
7417 $ac_includes_default
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest.$ac_objext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_type_pid_t=yes
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7460 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7461 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7462 if test $ac_cv_type_pid_t = yes; then
7466 cat >>confdefs.h <<_ACEOF
7474 for ac_header in unistd.h vfork.h
7476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7477 echo "$as_me:$LINENO: checking for $ac_header" >&5
7478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 cat >conftest.$ac_ext <<_ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7488 #include <$ac_header>
7490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7507 if test -z "$ac_cpp_err"; then
7508 eval "$as_ac_Header=yes"
7510 echo "$as_me: failed program was:" >&5
7511 sed 's/^/| /' conftest.$ac_ext >&5
7513 eval "$as_ac_Header=no"
7515 rm -f conftest.err conftest.$ac_ext
7517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7520 cat >>confdefs.h <<_ACEOF
7521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 for ac_func in fork vfork
7531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7532 echo "$as_me:$LINENO: checking for $ac_func" >&5
7533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7534 if eval "test \"\${$as_ac_var+set}\" = set"; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7545 #define $ac_func innocuous_$ac_func
7547 /* System header to define __stub macros and hopefully few prototypes,
7548 which can conflict with char $ac_func (); below.
7549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7550 <limits.h> exists even on freestanding compilers. */
7553 # include <limits.h>
7555 # include <assert.h>
7560 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7568 /* The GNU C library defines this for functions which it implements
7569 to always fail with ENOSYS. Some functions are actually named
7570 something starting with __ and the normal name is an alias. */
7571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7574 char (*f) () = $ac_func;
7583 return f != $ac_func;
7588 rm -f conftest.$ac_objext conftest$ac_exeext
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag"
7598 || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest$ac_exeext'
7605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 eval "$as_ac_var=yes"
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 eval "$as_ac_var=no"
7617 rm -f conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
7620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7622 if test `eval echo '${'$as_ac_var'}'` = yes; then
7623 cat >>confdefs.h <<_ACEOF
7624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7630 if test "x$ac_cv_func_fork" = xyes; then
7631 echo "$as_me:$LINENO: checking for working fork" >&5
7632 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7633 if test "${ac_cv_func_fork_works+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7636 if test "$cross_compiling" = yes; then
7637 ac_cv_func_fork_works=cross
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* By Ruediger Kuhlmann. */
7641 #include <sys/types.h>
7643 # include <unistd.h>
7645 /* Some systems only have a dummy stub for fork() */
7653 rm -f conftest$ac_exeext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655 (eval $ac_link) 2>&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_func_fork_works=yes
7666 echo "$as_me: program exited with status $ac_status" >&5
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_cv_func_fork_works=no
7673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7677 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7680 ac_cv_func_fork_works=$ac_cv_func_fork
7682 if test "x$ac_cv_func_fork_works" = xcross; then
7684 *-*-amigaos* | *-*-msdosdjgpp*)
7685 # Override, as these systems have only a dummy fork() stub
7686 ac_cv_func_fork_works=no
7689 ac_cv_func_fork_works=yes
7692 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7693 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7695 ac_cv_func_vfork_works=$ac_cv_func_vfork
7696 if test "x$ac_cv_func_vfork" = xyes; then
7697 echo "$as_me:$LINENO: checking for working vfork" >&5
7698 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7699 if test "${ac_cv_func_vfork_works+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test "$cross_compiling" = yes; then
7703 ac_cv_func_vfork_works=cross
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 /* Thanks to Paul Eggert for this test. */
7714 #include <sys/types.h>
7715 #include <sys/stat.h>
7716 #include <sys/wait.h>
7718 # include <unistd.h>
7723 /* On some sparc systems, changes by the child to local and incoming
7724 argument registers are propagated back to the parent. The compiler
7725 is told about this with #include <vfork.h>, but some compilers
7726 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7727 static variable whose address is put into a register that is
7728 clobbered by the vfork. */
7731 sparc_address_test (int arg)
7733 sparc_address_test (arg) int arg;
7754 pid_t parent = getpid ();
7757 sparc_address_test (0);
7762 /* Here is another test for sparc vfork register problems. This
7763 test uses lots of local variables, at least as many local
7764 variables as main has allocated so far including compiler
7765 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7766 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7767 reuse the register of parent for one of the local variables,
7768 since it will think that parent can't possibly be used any more
7769 in this routine. Assigning to the local variable will thus
7770 munge parent in the parent process. */
7772 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7773 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7774 /* Convince the compiler that p..p7 are live; otherwise, it might
7775 use the same hardware register for all 8 local variables. */
7776 if (p != p1 || p != p2 || p != p3 || p != p4
7777 || p != p5 || p != p6 || p != p7)
7780 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7781 from child file descriptors. If the child closes a descriptor
7782 before it execs or exits, this munges the parent's descriptor
7783 as well. Test for this by closing stdout in the child. */
7784 _exit(close(fileno(stdout)) != 0);
7789 while (wait(&status) != child)
7792 /* Was there some problem with vforking? */
7795 /* Did the child fail? (This shouldn't happen.) */
7798 /* Did the vfork/compiler bug occur? */
7799 || parent != getpid()
7801 /* Did the file descriptor bug occur? */
7802 || fstat(fileno(stdout), &st) != 0
7807 rm -f conftest$ac_exeext
7808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7809 (eval $ac_link) 2>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); }; }; then
7818 ac_cv_func_vfork_works=yes
7820 echo "$as_me: program exited with status $ac_status" >&5
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_cv_func_vfork_works=no
7827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7830 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7831 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7834 if test "x$ac_cv_func_fork_works" = xcross; then
7835 ac_cv_func_vfork_works=$ac_cv_func_vfork
7836 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7837 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7840 if test "x$ac_cv_func_vfork_works" = xyes; then
7842 cat >>confdefs.h <<\_ACEOF
7843 #define HAVE_WORKING_VFORK 1
7848 cat >>confdefs.h <<\_ACEOF
7853 if test "x$ac_cv_func_fork_works" = xyes; then
7855 cat >>confdefs.h <<\_ACEOF
7856 #define HAVE_WORKING_FORK 1
7864 am_cv_lib_iconv_ldpath=
7866 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7867 if test "${with_libiconv_prefix+set}" = set; then
7868 withval="$with_libiconv_prefix"
7870 for dir in `echo "$withval" | tr : ' '`; do
7871 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7872 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
7878 for ac_header in iconv.h
7880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7881 echo "$as_me:$LINENO: checking for $ac_header" >&5
7882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7892 #include <$ac_header>
7894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >/dev/null; then
7902 if test -s conftest.err; then
7903 ac_cpp_err=$ac_c_preproc_warn_flag
7904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7911 if test -z "$ac_cpp_err"; then
7912 eval "$as_ac_Header=yes"
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 eval "$as_ac_Header=no"
7919 rm -f conftest.err conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7924 cat >>confdefs.h <<_ACEOF
7925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 echo "$as_me:$LINENO: checking for iconv" >&5
7933 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7934 if test "${am_cv_func_iconv+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 am_cv_func_iconv="no, consider installing GNU libiconv"
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7951 iconv_t cd = iconv_open("","");
7952 iconv(cd,NULL,NULL,NULL,NULL);
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1 >conftest.err
7964 cat conftest.err >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 am_cv_func_iconv=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7986 rm -f conftest.err conftest.$ac_objext \
7987 conftest$ac_exeext conftest.$ac_ext
7988 if test "$am_cv_func_iconv" != yes; then
7989 am_save_LIBS="$LIBS"
7990 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
8002 iconv_t cd = iconv_open("","");
8003 iconv(cd,NULL,NULL,NULL,NULL);
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8011 (eval $ac_link) 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8032 am_cv_func_iconv=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8038 rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
8040 LIBS="$am_save_LIBS"
8044 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8045 echo "${ECHO_T}$am_cv_func_iconv" >&6
8046 if test "$am_cv_func_iconv" = yes; then
8048 cat >>confdefs.h <<\_ACEOF
8049 #define HAVE_ICONV 1
8052 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8053 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8054 if test "${am_cv_proto_iconv+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8071 #if defined(__STDC__) || defined(__cplusplus)
8072 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8087 (eval $ac_compile) 2>conftest.er1
8089 grep -v '^ *+' conftest.er1 >conftest.err
8091 cat conftest.err >&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } &&
8094 { ac_try='test -z "$ac_c_werror_flag"
8095 || test ! -s conftest.err'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; } &&
8101 { ac_try='test -s conftest.$ac_objext'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; }; then
8107 am_cv_proto_iconv_arg1=""
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 am_cv_proto_iconv_arg1="const"
8114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8115 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);"
8118 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8119 echo "$as_me:$LINENO: result: ${ac_t:-
8120 }$am_cv_proto_iconv" >&5
8121 echo "${ECHO_T}${ac_t:-
8122 }$am_cv_proto_iconv" >&6
8124 cat >>confdefs.h <<_ACEOF
8125 #define ICONV_CONST $am_cv_proto_iconv_arg1
8130 if test "$am_cv_lib_iconv" = yes; then
8131 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8135 # Until we have in-tree GNU iconv:
8140 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8141 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8142 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8160 rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8162 (eval $ac_link) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 am_cv_val_LC_MESSAGES=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 am_cv_val_LC_MESSAGES=no
8189 rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
8192 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8193 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8194 if test $am_cv_val_LC_MESSAGES = yes; then
8196 cat >>confdefs.h <<\_ACEOF
8197 #define HAVE_LC_MESSAGES 1
8203 # We will need to find libiberty.h and ansidecl.h
8204 saved_CFLAGS="$CFLAGS"
8205 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8206 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8207 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8208 fprintf_unlocked strstr errno snprintf vasprintf \
8209 malloc realloc calloc free basename getopt clock
8211 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8212 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8213 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8214 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8224 #define $ac_tr_decl 1
8226 #include "ansidecl.h"
8233 char *(*pfn) = (char *(*)) $ac_func ;
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241 (eval $ac_compile) 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag"
8249 || test ! -s conftest.err'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; }; then
8261 eval "gcc_cv_have_decl_$ac_func=yes"
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 eval "gcc_cv_have_decl_$ac_func=no"
8268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8271 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8274 #define $ac_tr_decl 1
8278 echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8280 #define $ac_tr_decl 0
8286 if test x = y ; then
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_DECL_GETENV 1
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_DECL_ATOL 1
8296 cat >>confdefs.h <<\_ACEOF
8297 #define HAVE_DECL_SBRK 1
8300 cat >>confdefs.h <<\_ACEOF
8301 #define HAVE_DECL_ABORT 1
8304 cat >>confdefs.h <<\_ACEOF
8305 #define HAVE_DECL_ATOF 1
8308 cat >>confdefs.h <<\_ACEOF
8309 #define HAVE_DECL_GETCWD 1
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_DECL_GETWD 1
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_DECL_STRSIGNAL 1
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_DECL_PUTC_UNLOCKED 1
8325 cat >>confdefs.h <<\_ACEOF
8326 #define HAVE_DECL_FPUTS_UNLOCKED 1
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_DECL_FWRITE_UNLOCKED 1
8334 cat >>confdefs.h <<\_ACEOF
8335 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8338 cat >>confdefs.h <<\_ACEOF
8339 #define HAVE_DECL_STRSTR 1
8342 cat >>confdefs.h <<\_ACEOF
8343 #define HAVE_DECL_ERRNO 1
8346 cat >>confdefs.h <<\_ACEOF
8347 #define HAVE_DECL_SNPRINTF 1
8350 cat >>confdefs.h <<\_ACEOF
8351 #define HAVE_DECL_VASPRINTF 1
8355 cat >>confdefs.h <<\_ACEOF
8356 #define HAVE_DECL_MALLOC 1
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_DECL_REALLOC 1
8363 cat >>confdefs.h <<\_ACEOF
8364 #define HAVE_DECL_CALLOC 1
8367 cat >>confdefs.h <<\_ACEOF
8368 #define HAVE_DECL_FREE 1
8371 cat >>confdefs.h <<\_ACEOF
8372 #define HAVE_DECL_BASENAME 1
8375 cat >>confdefs.h <<\_ACEOF
8376 #define HAVE_DECL_GETOPT 1
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_DECL_CLOCK 1
8385 for ac_func in getrlimit setrlimit getrusage
8387 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8388 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8389 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8390 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8400 #define $ac_tr_decl 1
8402 #include "ansidecl.h"
8404 #ifdef HAVE_SYS_RESOURCE_H
8405 #include <sys/resource.h>
8413 char *(*pfn) = (char *(*)) $ac_func ;
8419 rm -f conftest.$ac_objext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8421 (eval $ac_compile) 2>conftest.er1
8423 grep -v '^ *+' conftest.er1 >conftest.err
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } &&
8428 { ac_try='test -z "$ac_c_werror_flag"
8429 || test ! -s conftest.err'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; } &&
8435 { ac_try='test -s conftest.$ac_objext'
8436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 eval "gcc_cv_have_decl_$ac_func=yes"
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8446 eval "gcc_cv_have_decl_$ac_func=no"
8448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8451 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8452 echo "$as_me:$LINENO: result: yes" >&5
8453 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8454 #define $ac_tr_decl 1
8458 echo "$as_me:$LINENO: result: no" >&5
8459 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8460 #define $ac_tr_decl 0
8466 if test x = y ; then
8468 cat >>confdefs.h <<\_ACEOF
8469 #define HAVE_DECL_GETRLIMIT 1
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_DECL_SETRLIMIT 1
8476 cat >>confdefs.h <<\_ACEOF
8477 #define HAVE_DECL_GETRUSAGE 1
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8489 #include "ansidecl.h"
8491 #ifdef HAVE_SYS_RESOURCE_H
8492 #include <sys/resource.h>
8503 rm -f conftest.$ac_objext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>conftest.er1
8507 grep -v '^ *+' conftest.er1 >conftest.err
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try='test -s conftest.$ac_objext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8531 cat >>confdefs.h <<\_ACEOF
8536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8538 for ac_func in ldgetname
8540 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8541 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8542 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8543 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 #define $ac_tr_decl 1
8555 #include "ansidecl.h"
8566 char *(*pfn) = (char *(*)) $ac_func ;
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag"
8582 || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 eval "gcc_cv_have_decl_$ac_func=yes"
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 eval "gcc_cv_have_decl_$ac_func=no"
8601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8604 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8605 echo "$as_me:$LINENO: result: yes" >&5
8606 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8607 #define $ac_tr_decl 1
8611 echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8613 #define $ac_tr_decl 0
8619 if test x = y ; then
8621 cat >>confdefs.h <<\_ACEOF
8622 #define HAVE_DECL_LDGETNAME 1
8627 for ac_func in times
8629 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8630 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8631 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8632 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8635 cat >conftest.$ac_ext <<_ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8642 #define $ac_tr_decl 1
8644 #include "ansidecl.h"
8646 #ifdef HAVE_SYS_TIMES_H
8647 #include <sys/times.h>
8655 char *(*pfn) = (char *(*)) $ac_func ;
8661 rm -f conftest.$ac_objext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8663 (eval $ac_compile) 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } &&
8670 { ac_try='test -z "$ac_c_werror_flag"
8671 || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest.$ac_objext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "gcc_cv_have_decl_$ac_func=yes"
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 eval "gcc_cv_have_decl_$ac_func=no"
8690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8693 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8694 echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8696 #define $ac_tr_decl 1
8700 echo "$as_me:$LINENO: result: no" >&5
8701 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8702 #define $ac_tr_decl 0
8708 if test x = y ; then
8710 cat >>confdefs.h <<\_ACEOF
8711 #define HAVE_DECL_TIMES 1
8716 # More time-related stuff.
8717 echo "$as_me:$LINENO: checking for struct tms" >&5
8718 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8719 if test "${ac_cv_struct_tms+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 cat >conftest.$ac_ext <<_ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8730 #include "ansidecl.h"
8732 #ifdef HAVE_SYS_TIMES_H
8733 #include <sys/times.h>
8744 rm -f conftest.$ac_objext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1 >conftest.err
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_struct_tms=yes
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8776 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8777 if test $ac_cv_struct_tms = yes; then
8779 cat >>confdefs.h <<\_ACEOF
8780 #define HAVE_STRUCT_TMS 1
8785 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8786 # revisit after autoconf 2.50.
8787 echo "$as_me:$LINENO: checking for clock_t" >&5
8788 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8789 if test "${gcc_cv_type_clock_t+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 #include "ansidecl.h"
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8815 grep -v '^ *+' conftest.er1 >conftest.err
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 gcc_cv_type_clock_t=yes
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 gcc_cv_type_clock_t=no
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8842 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8843 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8844 if test $gcc_cv_type_clock_t = yes; then
8846 cat >>confdefs.h <<\_ACEOF
8847 #define HAVE_CLOCK_T 1
8852 echo "$as_me:$LINENO: checking for uchar" >&5
8853 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8854 if test "${gcc_cv_type_uchar+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 cat >conftest.$ac_ext <<_ACEOF
8860 cat confdefs.h >>conftest.$ac_ext
8861 cat >>conftest.$ac_ext <<_ACEOF
8862 /* end confdefs.h. */
8864 #include "ansidecl.h"
8870 if ((uchar *)0) return 0;
8871 if (sizeof(uchar)) return 0;
8876 rm -f conftest.$ac_objext
8877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8878 (eval $ac_compile) 2>conftest.er1
8880 grep -v '^ *+' conftest.er1 >conftest.err
8882 cat conftest.err >&5
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); } &&
8885 { ac_try='test -z "$ac_c_werror_flag"
8886 || test ! -s conftest.err'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; }; then
8898 ac_cv_type_uchar=yes
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8907 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8908 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8909 if test $ac_cv_type_uchar = yes; then
8911 cat >>confdefs.h <<\_ACEOF
8912 #define HAVE_UCHAR 1
8917 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8918 CFLAGS="$saved_CFLAGS"
8920 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8921 if test "${enable_initfini_array+set}" = set; then
8922 enableval="$enable_initfini_array"
8926 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8927 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8928 if test "${gcc_cv_initfini_array+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 if test "$cross_compiling" = yes; then
8932 gcc_cv_initfini_array=no
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8942 int main (void) { return x; }
8943 int foo (void) { x = 0; }
8944 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8946 rm -f conftest$ac_exeext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8948 (eval $ac_link) 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 gcc_cv_initfini_array=yes
8959 echo "$as_me: program exited with status $ac_status" >&5
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8964 gcc_cv_initfini_array=no
8966 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8969 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8970 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8971 enable_initfini_array=$gcc_cv_initfini_array
8974 if test $enable_initfini_array = yes; then
8976 cat >>confdefs.h <<\_ACEOF
8977 #define HAVE_INITFINI_ARRAY 1
8982 # mkdir takes a single argument on some systems.
8983 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8984 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8985 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8995 #include <sys/types.h>
8996 #ifdef HAVE_SYS_STAT_H
8997 # include <sys/stat.h>
8999 #ifdef HAVE_UNISTD_H
9000 # include <unistd.h>
9002 #ifdef HAVE_DIRECT_H
9003 # include <direct.h>
9013 rm -f conftest.$ac_objext
9014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9015 (eval $ac_compile) 2>conftest.er1
9017 grep -v '^ *+' conftest.er1 >conftest.err
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try='test -z "$ac_c_werror_flag"
9023 || test ! -s conftest.err'
9024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest.$ac_objext'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 gcc_cv_mkdir_takes_one_arg=no
9037 echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9040 gcc_cv_mkdir_takes_one_arg=yes
9042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9044 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9045 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9046 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define MKDIR_TAKES_ONE_ARG 1
9061 # With Setjmp/Longjmp based exception handling.
9062 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9063 if test "${enable_sjlj_exceptions+set}" = set; then
9064 enableval="$enable_sjlj_exceptions"
9065 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9067 cat >>confdefs.h <<_ACEOF
9068 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9073 if test x$host = x$target; then
9074 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9075 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9076 if test "${ac_cv_lib_unwind_main+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 ac_check_lib_save_LIBS=$LIBS
9080 LIBS="-lunwind $LIBS"
9081 cat >conftest.$ac_ext <<_ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>conftest.er1
9101 grep -v '^ *+' conftest.er1 >conftest.err
9103 cat conftest.err >&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try='test -s conftest$ac_exeext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 ac_cv_lib_unwind_main=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_cv_lib_unwind_main=no
9126 rm -f conftest.err conftest.$ac_objext \
9127 conftest$ac_exeext conftest.$ac_ext
9128 LIBS=$ac_check_lib_save_LIBS
9130 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9131 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9132 if test $ac_cv_lib_unwind_main = yes; then
9133 use_libunwind_default=yes
9135 use_libunwind_default=no
9139 use_libunwind_default=no
9141 # Use libunwind based exception handling.
9142 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9143 if test "${enable_libunwind_exceptions+set}" = set; then
9144 enableval="$enable_libunwind_exceptions"
9145 use_libunwind_exceptions=$enableval
9147 use_libunwind_exceptions=$use_libunwind_default
9149 if test x"$use_libunwind_exceptions" = xyes; then
9151 cat >>confdefs.h <<\_ACEOF
9152 #define USE_LIBUNWIND_EXCEPTIONS 1
9157 # --------------------------------------------------------
9158 # Build, host, and target specific configuration fragments
9159 # --------------------------------------------------------
9161 # Collect build-machine-specific information.
9162 . ${srcdir}/config.build
9164 # Collect host-machine-specific information.
9165 . ${srcdir}/config.host
9169 # Collect target-machine-specific information.
9170 . ${srcdir}/config.gcc
9172 extra_objs="${host_extra_objs} ${extra_objs}"
9173 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9175 # Default the target-machine variables that were not explicitly set.
9176 if test x"$tm_file" = x
9177 then tm_file=$cpu_type/$cpu_type.h; fi
9179 if test x"$extra_headers" = x
9180 then extra_headers=; fi
9182 if test x$md_file = x
9183 then md_file=$cpu_type/$cpu_type.md; fi
9185 if test x$out_file = x
9186 then out_file=$cpu_type/$cpu_type.c; fi
9188 if test x"$tmake_file" = x
9189 then tmake_file=$cpu_type/t-$cpu_type
9192 if test x"$dwarf2" = xyes
9193 then tm_file="$tm_file tm-dwarf2.h"
9196 # Say what files are being used for the output code and MD file.
9197 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9198 echo "Using \`$srcdir/config/$md_file' as machine description file."
9200 # If any of the xm_file variables contain nonexistent files, warn
9201 # about them and drop them.
9204 for x in $build_xm_file; do
9205 if test -f $srcdir/config/$x
9207 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9208 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9214 for x in $host_xm_file; do
9215 if test -f $srcdir/config/$x
9217 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9224 for x in $xm_file; do
9225 if test -f $srcdir/config/$x
9227 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9228 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9234 for f in $tm_file; do
9237 if test $count = ax; then
9238 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9240 echo "Using the following target machine macro files:"
9241 for f in $tm_file; do
9242 echo " $srcdir/config/$f"
9246 if test x$need_64bit_hwint = xyes; then
9248 cat >>confdefs.h <<\_ACEOF
9249 #define NEED_64BIT_HOST_WIDE_INT 1
9255 for f in $host_xm_file; do
9258 if test $count = a; then
9260 elif test $count = ax; then
9261 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9263 echo "Using the following host machine macro files:"
9264 for f in $host_xm_file; do
9265 echo " $srcdir/config/$f"
9268 echo "Using ${out_host_hook_obj} for host machine hooks."
9270 if test "$host_xm_file" != "$build_xm_file"; then
9272 for f in $build_xm_file; do
9275 if test $count = a; then
9277 elif test $count = ax; then
9278 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9280 echo "Using the following build machine macro files:"
9281 for f in $build_xm_file; do
9282 echo " $srcdir/config/$f"
9291 # Check if a valid thread package
9292 case ${enable_threads_flag} in
9295 target_thread_file='single'
9299 target_thread_file='single'
9301 aix | dce | gnat | irix | posix | rtems | \
9302 single | solaris | vxworks | win32 )
9303 target_thread_file=${enable_threads_flag}
9306 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9311 if test x${thread_file} = x; then
9312 # No thread file set by target-specific clauses in config.gcc,
9313 # so use file chosen by default logic above
9314 thread_file=${target_thread_file}
9317 # Make gthr-default.h if we have a thread file.
9319 if test $thread_file != single; then
9320 rm -f gthr-default.h
9321 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9322 gthread_flags=-DHAVE_GTHR_DEFAULT
9330 if test x$enable___cxa_atexit = xyes || \
9331 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9332 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9333 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9334 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9345 #define __cxa_atexit innocuous___cxa_atexit
9347 /* System header to define __stub macros and hopefully few prototypes,
9348 which can conflict with char __cxa_atexit (); below.
9349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9350 <limits.h> exists even on freestanding compilers. */
9353 # include <limits.h>
9355 # include <assert.h>
9360 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9367 char __cxa_atexit ();
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9374 char (*f) () = __cxa_atexit;
9383 return f != __cxa_atexit;
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>conftest.er1
9392 grep -v '^ *+' conftest.er1 >conftest.err
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -z "$ac_c_werror_flag"
9398 || test ! -s conftest.err'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; } &&
9404 { ac_try='test -s conftest$ac_exeext'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 ac_cv_func___cxa_atexit=yes
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9415 ac_cv_func___cxa_atexit=no
9417 rm -f conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9421 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9422 if test $ac_cv_func___cxa_atexit = yes; then
9424 cat >>confdefs.h <<\_ACEOF
9425 #define DEFAULT_USE_CXA_ATEXIT 1
9429 echo "__cxa_atexit can't be enabled on this target"
9434 # Look for a file containing extra machine modes.
9435 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9436 extra_modes_file='$(srcdir)'/config/${extra_modes}
9439 cat >>confdefs.h <<_ACEOF
9440 #define EXTRA_MODES_FILE "config/$extra_modes"
9445 # auto-host.h is the file containing items generated by autoconf and is
9446 # the first file included by config.h.
9447 # If host=build, it is correct to have bconfig include auto-host.h
9448 # as well. If host!=build, we are in error and need to do more
9449 # work to find out the build config parameters.
9450 if test x$host = x$build
9452 build_auto=auto-host.h
9455 # We create a subdir, then run autoconf in the subdir.
9456 # To prevent recursion we set host and build for the new
9457 # invocation of configure to the build for this invocation
9464 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9465 *) realsrcdir=../${srcdir};;
9467 saved_CFLAGS="${CFLAGS}"
9468 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9469 ${realsrcdir}/configure \
9470 --enable-languages=${enable_languages-all} \
9471 --target=$target_alias --host=$build_alias --build=$build_alias
9472 CFLAGS="${saved_CFLAGS}"
9474 # We just finished tests for the build machine, so rename
9475 # the file auto-build.h in the gcc directory.
9476 mv auto-host.h ../auto-build.h
9479 build_auto=auto-build.h
9480 FORBUILD=../${build_subdir}
9484 tm_file="${tm_file} defaults.h"
9485 tm_p_file="${tm_p_file} tm-preds.h"
9486 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9487 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9488 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9489 # put this back in temporarily.
9490 xm_file="ansidecl.h ${xm_file}"
9496 # Get the version trigger filename from the toplevel
9497 if test "${with_gcc_version_trigger+set}" = set; then
9498 gcc_version_trigger=$with_gcc_version_trigger
9500 gcc_version_trigger=${srcdir}/version.c
9502 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9503 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9505 # Compile in configure arguments.
9506 if test -f configargs.h ; then
9507 # Being re-configured.
9508 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9509 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9511 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9514 # Double all backslashes and backslash all quotes to turn
9515 # gcc_config_arguments into a C string.
9516 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9517 $gcc_config_arguments
9519 gcc_config_arguments_str=`cat conftest.out`
9522 cat > configargs.h <<EOF
9523 /* Generated automatically. */
9524 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9525 static const char thread_model[] = "$thread_file";
9527 static const struct {
9528 const char *name, *value;
9529 } configure_default_options[] = $configure_default_options;
9532 # Internationalization
9534 VERSION="$gcc_version"
9538 # If we haven't got the data from the intl directory,
9539 # assume NLS is disabled.
9547 if test -f ../intl/config.intl; then
9548 . ../intl/config.intl
9550 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9551 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9552 if test x"$USE_NLS" != xyes; then
9553 echo "$as_me:$LINENO: result: no" >&5
9554 echo "${ECHO_T}no" >&6
9556 echo "$as_me:$LINENO: result: yes" >&5
9557 echo "${ECHO_T}yes" >&6
9559 cat >>confdefs.h <<\_ACEOF
9560 #define ENABLE_NLS 1
9564 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9565 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9566 # Look for .po and .gmo files in the source directory.
9569 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9570 # If there aren't any .gmo files the shell will give us the
9571 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9573 case "$cat" in *\**)
9576 # The quadruple backslash is collapsed to a double backslash
9577 # by the backticks, then collapsed again by the double quotes,
9578 # leaving us with one backslash in the sed expression (right
9579 # before the dot that mustn't act as a wildcard).
9580 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9581 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9582 # The user is allowed to set LINGUAS to a list of languages to
9583 # install catalogs for. If it's empty that means "all of them."
9584 if test "x$LINGUAS" = x; then
9585 CATALOGS="$CATALOGS $cat"
9586 XLINGUAS="$XLINGUAS $lang"
9588 case "$LINGUAS" in *$lang*)
9589 CATALOGS="$CATALOGS $cat"
9590 XLINGUAS="$XLINGUAS $lang"
9596 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9597 echo "${ECHO_T}$LINGUAS" >&6
9600 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9601 # -liconv on the link line twice.
9602 case "$LIBINTL" in *$LIBICONV*)
9606 # Windows32 Registry support for specifying GCC installation paths.
9607 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9608 if test "${enable_win32_registry+set}" = set; then
9609 enableval="$enable_win32_registry"
9613 win32 | pe | cygwin* | mingw32* | uwin*)
9614 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9615 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9616 if test "x$enable_win32_registry" != xno; then
9618 cat >>confdefs.h <<\_ACEOF
9619 #define ENABLE_WIN32_REGISTRY 1
9622 echo "$as_me:$LINENO: result: yes" >&5
9623 echo "${ECHO_T}yes" >&6
9624 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9625 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9626 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_func_search_save_LIBS=$LIBS
9630 ac_cv_search_RegOpenKeyExA=no
9631 cat >conftest.$ac_ext <<_ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9638 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */
9644 char RegOpenKeyExA ();
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>conftest.er1
9657 grep -v '^ *+' conftest.er1 >conftest.err
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag"
9663 || 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"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9737 rm -f conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_func_search_save_LIBS
9743 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9744 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9745 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9746 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9751 echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9755 # Check if user specified a different registry key.
9756 case "x${enable_win32_registry}" in
9759 gcc_cv_win32_registry_key="$VERSION"
9762 # no registry lookup.
9763 gcc_cv_win32_registry_key=''
9766 # user-specified key.
9767 gcc_cv_win32_registry_key="$enable_win32_registry"
9771 if test "x$enable_win32_registry" != xno; then
9772 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9773 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9775 cat >>confdefs.h <<_ACEOF
9776 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9779 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9780 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9785 # Get an absolute path to the GCC top-level source directory
9786 holddir=`${PWDCMD-pwd}`
9788 topdir=`${PWDCMD-pwd}`
9791 # Conditionalize the makefile for this host machine.
9793 for f in ${host_xmake_file}
9795 if test -f ${srcdir}/config/$f
9797 xmake_file="${xmake_file} \$(srcdir)/config/$f"
9801 # Conditionalize the makefile for this target machine.
9803 for f in ${tmake_file}
9805 if test -f ${srcdir}/config/$f
9807 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
9810 tmake_file="${tmake_file_}"
9812 symbolic_link='ln -s'
9814 # If the host doesn't support symlinks, modify CC in
9815 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9816 # Otherwise, we can use "CC=$(CC)".
9818 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
9820 cc_set_by_configure="\$(CC)"
9821 quoted_cc_set_by_configure="\$(CC)"
9822 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9823 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
9826 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
9828 symbolic_link="cp -p"
9832 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9833 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9834 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9835 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9839 out_object_file=`basename $out_file .c`.o
9843 for f in $tm_file; do
9846 tm_file_list="${tm_file_list} \$(srcdir)/$f"
9847 tm_include_list="${tm_include_list} $f"
9850 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
9851 tm_include_list="${tm_include_list} config/$f"
9858 for f in $tm_p_file; do
9861 tm_p_file_list="${tm_p_file_list} $f"
9862 tm_p_include_list="${tm_p_include_list} $f"
9865 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
9866 tm_p_include_list="${tm_p_include_list} config/$f"
9872 for f in $xm_file; do
9875 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
9876 xm_include_list="${xm_include_list} $f"
9879 xm_file_list="${xm_file_list} $f"
9880 xm_include_list="${xm_include_list} $f"
9883 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
9884 xm_include_list="${xm_include_list} config/$f"
9890 host_xm_include_list=
9891 for f in $host_xm_file; do
9894 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
9895 host_xm_include_list="${host_xm_include_list} $f"
9898 host_xm_file_list="${host_xm_file_list} $f"
9899 host_xm_include_list="${host_xm_include_list} $f"
9902 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
9903 host_xm_include_list="${host_xm_include_list} config/$f"
9909 for f in $build_xm_file; do
9912 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
9913 build_xm_include_list="${build_xm_include_list} $f"
9915 auto-build.h | auto-host.h )
9916 build_xm_file_list="${build_xm_file_list} $f"
9917 build_xm_include_list="${build_xm_include_list} $f"
9920 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
9921 build_xm_include_list="${build_xm_include_list} config/$f"
9926 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9927 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9930 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9931 if test x$host != x$target
9933 CROSS="-DCROSS_COMPILE"
9935 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9936 case "$host","$target" in
9937 # Darwin crosses can use the host system's libraries and headers,
9938 # because of the fat library support. Of course, it must be the
9939 # same version of Darwin on both sides. Allow the user to
9940 # just say --target=foo-darwin without a version number to mean
9941 # "the version on this system".
9942 *-*-darwin*,*-*-darwin*)
9943 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
9944 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
9945 if test $hostos = $targetos -o $targetos = darwin ; then
9947 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
9952 i?86-*-*,x86_64-*-* \
9953 | powerpc*-*-*,powerpc64*-*-*)
9954 CROSS="$CROSS -DNATIVE_CROSS" ;;
9956 elif test "x$TARGET_SYSTEM_ROOT" != x; then
9957 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9958 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
9961 # If this is a cross-compiler that does not
9962 # have its own set of headers then define
9965 # If this is using newlib, without having the headers available now,
9966 # then define inhibit_libc in LIBGCC2_CFLAGS.
9967 # This prevents libgcc2 from containing any code which requires libc
9970 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
9971 test x$with_newlib = xyes ; } &&
9972 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
9973 inhibit_libc=-Dinhibit_libc
9977 # When building gcc with a cross-compiler, we need to adjust things so
9978 # that the generator programs are still built with the native compiler.
9979 # Also, we cannot run fixincludes or fix-header.
9981 # These are the normal (build=host) settings:
9983 BUILD_PREFIX_1=ignore-
9984 CC_FOR_BUILD='$(CC)'
9985 BUILD_CFLAGS='$(ALL_CFLAGS)'
9987 STMP_FIXINC=stmp-fixinc
9989 # Possibly disable fixproto, on a per-target basis.
9990 case ${use_fixproto} in
9995 STMP_FIXPROTO=stmp-fixproto
10000 # And these apply if build != host, or we are generating coverage data
10001 if test x$build != x$host || test "x$coverage_flags" != x
10003 BUILD_PREFIX=build-
10004 BUILD_PREFIX_1=build-
10005 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10007 if test "x$TARGET_SYSTEM_ROOT" = x; then
10013 # Expand extra_headers to include complete path.
10014 # This substitutes for lots of t-* files.
10015 extra_headers_list=
10016 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10017 for file in ${extra_headers} ; do
10018 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10021 # Add a definition of USE_COLLECT2 if system wants one.
10022 case $use_collect2 in
10023 no) use_collect2= ;;
10026 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10027 xm_defines="${xm_defines} USE_COLLECT2"
10031 # ---------------------------
10032 # Assembler & linker features
10033 # ---------------------------
10035 # Identify the assembler which will work hand-in-glove with the newly
10036 # built GCC, so that we can examine its features. This is the assembler
10037 # which will be driven by the driver program.
10039 # If build != host, and we aren't building gas in-tree, we identify a
10040 # build->target assembler and hope that it will have the same features
10041 # as the host->target assembler we'll be using.
10042 echo "$as_me:$LINENO: checking what assembler to use" >&5
10043 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10046 gcc_cv_gas_major_version=
10047 gcc_cv_gas_minor_version=
10048 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10049 if test -x "$DEFAULT_ASSEMBLER"; then
10050 gcc_cv_as="$DEFAULT_ASSEMBLER"
10051 elif test -x "$AS"; then
10053 elif test -x as$host_exeext; then
10054 # Build using assembler in the current directory.
10055 gcc_cv_as=./as$host_exeext
10056 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10057 && test -f ../gas/Makefile; then
10058 # Single tree build which includes gas.
10060 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10061 for f in $gcc_cv_as_bfd_srcdir/configure \
10062 $gcc_cv_as_gas_srcdir/configure \
10063 $gcc_cv_as_gas_srcdir/configure.in \
10064 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10065 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10066 if test x$gcc_cv_gas_version != x; then
10070 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10071 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10072 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10073 case $gcc_cv_gas_patch_version in
10074 "") gcc_cv_gas_patch_version="0" ;;
10076 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10077 + $gcc_cv_gas_minor_version \) \* 1000 \
10078 + $gcc_cv_gas_patch_version`
10080 rm -f as$host_exeext
10081 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10082 in_tree_gas_is_elf=no
10083 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10084 || (grep 'obj_format = multi' ../gas/Makefile \
10085 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10087 in_tree_gas_is_elf=yes
10091 if test "x$gcc_cv_as" = x; then
10092 # Search the same directories that the installed compiler will
10093 # search. Else we may find the wrong assembler and lose. If we
10094 # do not find a suitable assembler binary, then try the user's
10097 # Also note we have to check MD_EXEC_PREFIX before checking the
10098 # user's path. Unfortunately, there is no good way to get at the
10099 # value of MD_EXEC_PREFIX here. So we do a brute force search
10100 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10101 # to be fixed as part of the make/configure rewrite too.
10103 if test "x$exec_prefix" = xNONE; then
10104 if test "x$prefix" = xNONE; then
10105 test_prefix=/usr/local
10107 test_prefix=$prefix
10110 test_prefix=$exec_prefix
10113 # If the loop below does not find an assembler, then use whatever
10114 # one we can find in the users's path.
10116 if test "x$program_prefix" != xNONE; then
10117 gcc_cv_as=${program_prefix}as$host_exeext
10119 gcc_cv_as=`echo as | sed "${program_transform_name}"`$host_exeext
10122 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10123 $test_prefix/libexec/gcc/$target_noncanonical \
10124 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10125 /usr/lib/gcc/$target_noncanonical \
10126 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10127 $test_prefix/$target_noncanonical/bin"
10129 if test x$host = x$target; then
10130 test_dirs="$test_dirs \
10135 /bsd43/usr/lib/cmplrs/cc \
10136 /usr/cross64/usr/bin \
10137 /usr/lib/cmplrs/cc \
10138 /sysv/usr/lib/cmplrs/cc \
10139 /svr4/usr/lib/cmplrs/cc \
10143 for dir in $test_dirs; do
10144 if test -x $dir/as$host_exeext; then
10145 gcc_cv_as=$dir/as$host_exeext
10150 case $in_tree_gas in
10152 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10153 echo "${ECHO_T}\"newly built gas\"" >&6
10156 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10157 echo "${ECHO_T}$gcc_cv_as" >&6
10161 # Identify the linker which will work hand-in-glove with the newly
10162 # built GCC, so that we can examine its features. This is the linker
10163 # which will be driven by the driver program.
10165 # If build != host, and we aren't building gas in-tree, we identify a
10166 # build->target linker and hope that it will have the same features
10167 # as the host->target linker we'll be using.
10168 echo "$as_me:$LINENO: checking what linker to use" >&5
10169 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10172 gcc_cv_gld_major_version=
10173 gcc_cv_gld_minor_version=
10174 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10175 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10176 if test -x "$DEFAULT_LINKER"; then
10177 gcc_cv_ld="$DEFAULT_LINKER"
10178 elif test -x "$LD_FOR_TARGET"; then
10179 gcc_cv_ld="$LD_FOR_TARGET"
10180 elif test -x "$LD" && test x$host = x$target; then
10182 elif test -x collect-ld$host_exeext; then
10183 # Build using linker in the current directory.
10184 gcc_cv_ld=./collect-ld$host_exeext
10185 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10186 && test -f ../ld/Makefile; then
10187 # Single tree build which includes ld.
10189 in_tree_ld_is_elf=no
10190 if (grep 'EMUL = .*elf' ../ld/Makefile \
10191 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10192 in_tree_ld_is_elf=yes
10194 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
10196 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10197 if test x$gcc_cv_gld_version != x; then
10201 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10202 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10203 rm -f collect-ld$host_exeext
10204 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10208 if test "x$gcc_cv_ld" = x; then
10209 # Search the same directories that the installed compiler will
10210 # search. Else we may find the wrong linker and lose. If we
10211 # do not find a suitable linker binary, then try the user's
10214 # Also note we have to check MD_EXEC_PREFIX before checking the
10215 # user's path. Unfortunately, there is no good way to get at the
10216 # value of MD_EXEC_PREFIX here. So we do a brute force search
10217 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10218 # to be fixed as part of the make/configure rewrite too.
10220 if test "x$exec_prefix" = xNONE; then
10221 if test "x$prefix" = xNONE; then
10222 test_prefix=/usr/local
10224 test_prefix=$prefix
10227 test_prefix=$exec_prefix
10230 # If the loop below does not find an linker, then use whatever
10231 # one we can find in the users's path.
10233 if test "x$program_prefix" != xNONE; then
10234 gcc_cv_ld=${program_prefix}ld$host_exeext
10236 gcc_cv_ld=`echo ld | sed "${program_transform_name}"`$host_exeext
10239 test_dirs="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10240 $test_prefix/libexec/gcc/$target_noncanonical \
10241 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10242 /usr/lib/gcc/$target_noncanonical \
10243 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10244 $test_prefix/$target_noncanonical/bin"
10246 if test x$host = x$target; then
10247 test_dirs="$test_dirs \
10252 /bsd43/usr/lib/cmplrs/cc \
10253 /usr/cross64/usr/bin \
10254 /usr/lib/cmplrs/cc \
10255 /sysv/usr/lib/cmplrs/cc \
10256 /svr4/usr/lib/cmplrs/cc \
10260 for dir in $test_dirs; do
10261 if test -x $dir/ld$host_exeext; then
10262 gcc_cv_ld=$dir/ld$host_exeext
10267 case $in_tree_ld in
10269 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10270 echo "${ECHO_T}\"newly built ld\"" >&6
10273 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10274 echo "${ECHO_T}$gcc_cv_ld" >&6
10278 # Figure out what nm we will be using.
10279 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10280 echo "$as_me:$LINENO: checking what nm to use" >&5
10281 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10283 if test -x nm$host_exeext; then
10284 gcc_cv_nm=./nm$host_exeext
10285 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10286 && test -f ../binutils/Makefile; then
10287 # Single tree build which includes binutils.
10289 gcc_cv_nm=./nm$host_exeext
10290 rm -f nm$host_exeext
10291 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10292 elif test "x$program_prefix" != xNONE; then
10293 gcc_cv_nm=${program_prefix}nm$host_exeext
10295 gcc_cv_nm=`echo nm | sed "${program_transform_name}"`$host_exeext
10297 case $in_tree_nm in
10298 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10299 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10300 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10301 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10304 # Figure out what objdump we will be using.
10305 echo "$as_me:$LINENO: checking what objdump to use" >&5
10306 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10308 if test -x objdump$host_exeext; then
10309 gcc_cv_objdump=./objdump$host_exeext
10310 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10311 && test -f ../binutils/Makefile; then
10312 # Single tree build which includes binutils.
10313 in_tree_objdump=yes
10314 gcc_cv_objdump=./objdump$host_exeext
10315 rm -f objdump$host_exeext
10316 $symbolic_link ../binutils/objdump$host_exeext \
10317 objdump$host_exeext 2>/dev/null
10318 elif test "x$program_prefix" != xNONE; then
10319 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10321 gcc_cv_objdump=`echo objdump | \
10322 sed "${program_transform_name}"`$host_exeext
10324 case $in_tree_objdump in
10325 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10326 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10327 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10328 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10331 # Figure out what assembler alignment features are present.
10332 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10333 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10334 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10337 gcc_cv_as_balign_and_p2align=no
10338 if test $in_tree_gas = yes; then
10339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10340 then gcc_cv_as_balign_and_p2align=yes
10342 elif test x$gcc_cv_as != x; then
10344 .p2align 2' > conftest.s
10345 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }
10352 gcc_cv_as_balign_and_p2align=yes
10354 echo "configure: failed program was" >&5
10357 rm -f conftest.o conftest.s
10360 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10361 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10362 if test $gcc_cv_as_balign_and_p2align = yes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10370 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10371 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10372 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 gcc_cv_as_max_skip_p2align=no
10376 if test $in_tree_gas = yes; then
10377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10378 then gcc_cv_as_max_skip_p2align=yes
10380 elif test x$gcc_cv_as != x; then
10381 echo '.p2align 4,,7' > conftest.s
10382 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10384 (eval $ac_try) 2>&5
10386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387 (exit $ac_status); }; }
10389 gcc_cv_as_max_skip_p2align=yes
10391 echo "configure: failed program was" >&5
10394 rm -f conftest.o conftest.s
10397 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10398 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10399 if test $gcc_cv_as_max_skip_p2align = yes; then
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10407 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10408 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10409 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 gcc_cv_as_subsection_m1=no
10413 if test $in_tree_gas = yes; then
10414 if test $in_tree_gas_is_elf = yes \
10415 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10416 then gcc_cv_as_subsection_m1=yes
10418 elif test x$gcc_cv_as != x; then
10419 echo 'conftest_label1: .word 0
10421 conftest_label2: .word 0
10422 .previous' > conftest.s
10423 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }
10430 if test x$gcc_cv_nm != x; then
10431 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10432 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10433 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10435 else gcc_cv_as_subsection_m1=yes
10437 rm -f conftest.nm1 conftest.nm2
10440 echo "configure: failed program was" >&5
10443 rm -f conftest.o conftest.s
10446 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10447 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10448 if test $gcc_cv_as_subsection_m1 = yes; then
10450 cat >>confdefs.h <<\_ACEOF
10451 #define HAVE_GAS_SUBSECTION_ORDERING 1
10456 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10457 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10458 if test "${gcc_cv_as_weak+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10462 if test $in_tree_gas = yes; then
10463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10464 then gcc_cv_as_weak=yes
10466 elif test x$gcc_cv_as != x; then
10467 echo ' .weak foobar' > conftest.s
10468 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }
10477 echo "configure: failed program was" >&5
10480 rm -f conftest.o conftest.s
10483 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10484 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10485 if test $gcc_cv_as_weak = yes; then
10487 cat >>confdefs.h <<\_ACEOF
10488 #define HAVE_GAS_WEAK 1
10493 # .hidden needs to be supported in both the assembler and the linker,
10494 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10495 # This is irritatingly difficult to feature test for; we have to check the
10496 # date string after the version number. If we've got an in-tree
10497 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10499 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10500 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10501 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10502 if test "${gcc_cv_as_hidden+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 gcc_cv_as_hidden=no
10506 if test $in_tree_gas = yes; then
10507 if test $in_tree_gas_is_elf = yes \
10508 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10509 then gcc_cv_as_hidden=yes
10511 elif test x$gcc_cv_as != x; then
10512 echo ' .hidden foobar
10513 foobar:' > conftest.s
10514 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516 (eval $ac_try) 2>&5
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; }
10521 gcc_cv_as_hidden=yes
10523 echo "configure: failed program was" >&5
10526 rm -f conftest.o conftest.s
10529 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10530 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10533 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10534 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10535 if test "${gcc_cv_ld_hidden+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 if test $in_tree_ld = yes ; then
10539 gcc_cv_ld_hidden=no
10540 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 \
10541 && test $in_tree_ld_is_elf = yes; then
10542 gcc_cv_ld_hidden=yes
10545 gcc_cv_ld_hidden=yes
10546 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10547 if echo "$ld_ver" | grep GNU > /dev/null; then
10548 ld_vers=`echo $ld_ver | sed -n \
10549 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10550 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10551 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10552 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10553 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10554 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10555 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'`
10556 if test 0"$ld_date" -lt 20020404; then
10557 if test -n "$ld_date"; then
10558 # If there was date string, but was earlier than 2002-04-04, fail
10559 gcc_cv_ld_hidden=no
10560 elif test -z "$ld_vers"; then
10561 # If there was no date string nor ld version number, something is wrong
10562 gcc_cv_ld_hidden=no
10564 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10565 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10566 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10567 test -z "$ld_vers_patch" && ld_vers_patch=0
10568 if test "$ld_vers_major" -lt 2; then
10569 gcc_cv_ld_hidden=no
10570 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10571 gcc_cv_ld_hidden="no"
10572 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10573 gcc_cv_ld_hidden=no
10578 case "${target}" in
10579 hppa64*-*-hpux* | ia64*-*-hpux*)
10580 gcc_cv_ld_hidden=yes
10583 gcc_cv_ld_hidden=no
10589 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10590 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10591 libgcc_visibility=no
10593 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10594 libgcc_visibility=yes
10596 cat >>confdefs.h <<\_ACEOF
10597 #define HAVE_GAS_HIDDEN 1
10602 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10603 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10604 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10605 if test "${gcc_cv_as_leb128+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 gcc_cv_as_leb128=no
10609 if test $in_tree_gas = yes; then
10610 if test $in_tree_gas_is_elf = yes \
10611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10612 then gcc_cv_as_leb128=yes
10614 elif test x$gcc_cv_as != x; then
10621 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623 (eval $ac_try) 2>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); }; }
10628 # GAS versions before 2.11 do not support uleb128,
10629 # despite appearing to.
10630 # ??? There exists an elf-specific test that will crash
10631 # the assembler. Perhaps it's better to figure out whether
10632 # arbitrary sections are supported and try the test.
10633 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10634 if echo "$as_ver" | grep GNU > /dev/null; then
10635 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10636 as_major=`echo $as_ver | sed 's/\..*//'`
10637 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10638 if test $as_major -eq 2 && test $as_minor -lt 11
10640 else gcc_cv_as_leb128=yes
10644 echo "configure: failed program was" >&5
10647 rm -f conftest.o conftest.s
10650 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10651 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10652 if test $gcc_cv_as_leb128 = yes; then
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_AS_LEB128 1
10660 # GAS versions up to and including 2.11.0 may mis-optimize
10662 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10663 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10664 if test "${gcc_cv_as_eh_frame+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 gcc_cv_as_eh_frame=no
10668 if test $in_tree_gas = yes; then
10669 if test $in_tree_gas_is_elf = yes \
10670 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10671 then gcc_cv_as_eh_frame=yes
10673 elif test x$gcc_cv_as != x; then
10680 .section .eh_frame,"aw",@progbits
10682 .4byte .LECIE1-.LSCIE1
10696 .4byte .LEFDE1-.LASFDE1
10698 .4byte .LASFDE1-__FRAME_BEGIN__
10705 .LEFDE1:' > conftest.s
10706 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }
10713 cat > conftest.lit <<EOF
10714 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10715 0010 01000000 12000000 18000000 00000000 ................
10716 0020 08000000 04080000 0044 .........D
10718 cat > conftest.big <<EOF
10719 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10720 0010 00000001 00000012 00000018 00000000 ................
10721 0020 00000008 04000000 0844 .........D
10723 # If the assembler didn't choke, and we can objdump,
10724 # and we got the correct data, then succeed.
10725 if test x$gcc_cv_objdump != x \
10726 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10727 | tail -3 > conftest.got \
10728 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10729 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10731 gcc_cv_as_eh_frame=yes
10732 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 gcc_cv_as_eh_frame=buggy
10740 # Uh oh, what do we do now?
10741 gcc_cv_as_eh_frame=no
10744 echo "configure: failed program was" >&5
10747 rm -f conftest.o conftest.s
10750 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10751 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10754 if test $gcc_cv_as_eh_frame = buggy; then
10756 cat >>confdefs.h <<\_ACEOF
10757 #define USE_AS_TRADITIONAL_FORMAT 1
10762 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10763 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10764 if test "${gcc_cv_as_shf_merge+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 gcc_cv_as_shf_merge=no
10768 if test $in_tree_gas = yes; then
10769 if test $in_tree_gas_is_elf = yes \
10770 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10771 then gcc_cv_as_shf_merge=yes
10773 elif test x$gcc_cv_as != x; then
10774 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10775 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }
10782 gcc_cv_as_shf_merge=yes
10784 echo "configure: failed program was" >&5
10787 rm -f conftest.o conftest.s
10790 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10791 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10794 cat >>confdefs.h <<_ACEOF
10795 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10799 # Thread-local storage - the check is heavily parametrized.
10807 .section ".tdata","awT",@progbits
10810 ldq $27,__tls_get_addr($29) !literal!1
10811 lda $16,foo($29) !tlsgd!1
10812 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10813 ldq $27,__tls_get_addr($29) !literal!2
10814 lda $16,foo($29) !tlsldm!2
10815 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10816 ldq $1,foo($29) !gotdtprel
10817 ldah $2,foo($29) !dtprelhi
10818 lda $3,foo($2) !dtprello
10819 lda $4,foo($29) !dtprel
10820 ldq $1,foo($29) !gottprel
10821 ldah $2,foo($29) !tprelhi
10822 lda $3,foo($2) !tprello
10823 lda $4,foo($29) !tprel'
10826 tls_as_opt=--fatal-warnings
10830 .section ".tdata","awT",@progbits
10834 leal foo@TLSGD(,%ebx,1), %eax
10835 leal foo@TLSLDM(%ebx), %eax
10836 leal foo@DTPOFF(%eax), %edx
10837 movl foo@GOTTPOFF(%ebx), %eax
10838 subl foo@GOTTPOFF(%ebx), %eax
10839 addl foo@GOTNTPOFF(%ebx), %eax
10840 movl foo@INDNTPOFF, %eax
10841 movl $foo@TPOFF, %eax
10842 subl $foo@TPOFF, %eax
10843 leal foo@NTPOFF(%ecx), %eax'
10846 tls_as_opt=--fatal-warnings
10850 .section ".tdata","awT",@progbits
10854 leaq foo@TLSGD(%rip), %rdi
10855 leaq foo@TLSLD(%rip), %rdi
10856 leaq foo@DTPOFF(%rax), %rdx
10857 movq foo@GOTTPOFF(%rip), %rax
10858 movq $foo@TPOFF, %rax'
10861 tls_as_opt=--fatal-warnings
10865 .section ".tdata","awT",@progbits
10868 addl r16 = @ltoff(@dtpmod(foo#)), gp
10869 addl r17 = @ltoff(@dtprel(foo#)), gp
10870 addl r18 = @ltoff(@tprel(foo#)), gp
10871 addl r19 = @dtprel(foo#), gp
10872 adds r21 = @dtprel(foo#), r13
10873 movl r23 = @dtprel(foo#)
10874 addl r20 = @tprel(foo#), gp
10875 adds r22 = @tprel(foo#), r13
10876 movl r24 = @tprel(foo#)'
10879 tls_as_opt=--fatal-warnings
10883 .section ".tdata","awT",@progbits
10891 addi 3,31,ld0@got@tlsgd
10893 addi 3,31,x1@got@tlsld
10896 addis 9,3,x2@dtprel@ha
10897 addi 9,9,x2@dtprel@l
10898 lwz 9,x3@got@tprel(31)
10901 addis 9,2,x2@tprel@ha
10902 addi 9,9,x2@tprel@l'
10905 tls_as_opt="-a32 --fatal-warnings"
10909 .section ".tdata","awT",@progbits
10917 addi 3,2,ld0@got@tlsgd
10923 addi 3,2,x1@got@tlsld
10929 addis 9,3,x2@dtprel@ha
10930 addi 9,9,x2@dtprel@l
10933 ld 9,x3@got@dtprel(2)
10939 tls_as_opt="-a64 --fatal-warnings"
10943 .section ".tdata","awT",@progbits
10950 .long foo@GOTNTPOFF
10951 .long foo@INDNTPOFF
10952 l %r1,foo@GOTNTPOFF(%r12)
10953 l %r1,0(%r1):tls_load:foo
10954 bas %r14,0(%r1,%r13):tls_gdcall:foo
10955 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10958 tls_as_opt="-m31 --fatal-warnings"
10962 .section ".tdata","awT",@progbits
10969 .quad foo@GOTNTPOFF
10970 lg %r1,foo@GOTNTPOFF(%r12)
10971 larl %r1,foo@INDNTPOFF
10972 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10973 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10976 tls_as_opt="-m64 -Aesame --fatal-warnings"
10978 sh-*-* | sh[34]-*-*)
10980 .section ".tdata","awT",@progbits
10990 tls_as_opt=--fatal-warnings
10994 sparc*-sun-solaris2.*)
11001 if test x$on_solaris = xyes && test x$gas_flag = xno; then
11003 .section ".tdata",#alloc,#write,#tls
11006 sethi %tgd_hi22(foo), %o0
11007 add %o0, %tgd_lo10(foo), %o1
11008 add %l7, %o1, %o0, %tgd_add(foo)
11009 call __tls_get_addr, %tgd_call(foo)
11010 sethi %tldm_hi22(foo), %l1
11011 add %l1, %tldm_lo10(foo), %l2
11012 add %l7, %l2, %o0, %tldm_add(foo)
11013 call __tls_get_addr, %tldm_call(foo)
11014 sethi %tldo_hix22(foo), %l3
11015 xor %l3, %tldo_lox10(foo), %l4
11016 add %o0, %l4, %l5, %tldo_add(foo)
11017 sethi %tie_hi22(foo), %o3
11018 add %o3, %tie_lo10(foo), %o3
11019 ld [%l7 + %o3], %o2, %tie_ld(foo)
11020 add %g7, %o2, %o4, %tie_add(foo)
11021 sethi %tle_hix22(foo), %l1
11022 xor %l1, %tle_lox10(foo), %o5
11023 ld [%g7 + %o5], %o1'
11028 .section ".tdata","awT",@progbits
11031 sethi %tgd_hi22(foo), %o0
11032 add %o0, %tgd_lo10(foo), %o1
11033 add %l7, %o1, %o0, %tgd_add(foo)
11034 call __tls_get_addr, %tgd_call(foo)
11035 sethi %tldm_hi22(foo), %l1
11036 add %l1, %tldm_lo10(foo), %l2
11037 add %l7, %l2, %o0, %tldm_add(foo)
11038 call __tls_get_addr, %tldm_call(foo)
11039 sethi %tldo_hix22(foo), %l3
11040 xor %l3, %tldo_lox10(foo), %l4
11041 add %o0, %l4, %l5, %tldo_add(foo)
11042 sethi %tie_hi22(foo), %o3
11043 add %o3, %tie_lo10(foo), %o3
11044 ld [%l7 + %o3], %o2, %tie_ld(foo)
11045 add %g7, %o2, %o4, %tie_add(foo)
11046 sethi %tle_hix22(foo), %l1
11047 xor %l1, %tle_lox10(foo), %o5
11048 ld [%g7 + %o5], %o1'
11051 tls_as_opt="-32 --fatal-warnings"
11055 if test -z "$tls_first_major"; then
11056 : # If we don't have a check, assume no support.
11058 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11059 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11060 if test "${gcc_cv_as_tls+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11064 if test $in_tree_gas = yes; then
11065 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11066 then gcc_cv_as_tls=yes
11068 elif test x$gcc_cv_as != x; then
11069 echo "$conftest_s" > conftest.s
11070 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }
11079 echo "configure: failed program was" >&5
11082 rm -f conftest.o conftest.s
11085 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11086 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11087 if test $gcc_cv_as_tls = yes; then
11089 cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_AS_TLS 1
11096 # Target-specific assembler checks.
11099 # All TARGET_ABI_OSF targets.
11100 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11101 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11102 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11103 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 gcc_cv_as_alpha_explicit_relocs=no
11107 if test $in_tree_gas = yes; then
11108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11109 then gcc_cv_as_alpha_explicit_relocs=yes
11111 elif test x$gcc_cv_as != x; then
11112 echo ' .set nomacro
11114 extbl $3, $2, $3 !lituse_bytoff!1
11115 ldq $2, a($29) !literal!1
11116 ldq $4, b($29) !literal!2
11117 ldq_u $3, 0($2) !lituse_base!1
11118 ldq $27, f($29) !literal!5
11119 jsr $26, ($27), f !lituse_jsr!5
11120 ldah $29, 0($26) !gpdisp!3
11121 lda $0, c($29) !gprel
11122 ldah $1, d($29) !gprelhigh
11123 lda $1, d($1) !gprellow
11124 lda $29, 0($29) !gpdisp!3' > conftest.s
11125 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }
11132 gcc_cv_as_alpha_explicit_relocs=yes
11134 echo "configure: failed program was" >&5
11137 rm -f conftest.o conftest.s
11140 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11141 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11142 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_AS_EXPLICIT_RELOCS 1
11152 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11153 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11154 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 gcc_cv_as_cris_no_mul_bug=no
11158 if test $in_tree_gas = yes; then
11159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11160 then gcc_cv_as_cris_no_mul_bug=yes
11162 elif test x$gcc_cv_as != x; then
11163 echo '.text' > conftest.s
11164 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }
11171 gcc_cv_as_cris_no_mul_bug=yes
11173 echo "configure: failed program was" >&5
11176 rm -f conftest.o conftest.s
11179 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11180 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11181 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11183 cat >>confdefs.h <<\_ACEOF
11184 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11191 echo "$as_me:$LINENO: checking assembler for .register" >&5
11192 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11193 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 gcc_cv_as_sparc_register_op=no
11197 if test x$gcc_cv_as != x; then
11198 echo '.register %g2, #scratch' > conftest.s
11199 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11201 (eval $ac_try) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); }; }
11206 gcc_cv_as_sparc_register_op=yes
11208 echo "configure: failed program was" >&5
11211 rm -f conftest.o conftest.s
11214 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11215 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11216 if test $gcc_cv_as_sparc_register_op = yes; then
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11224 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11225 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11226 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 gcc_cv_as_sparc_relax=no
11230 if test x$gcc_cv_as != x; then
11231 echo '.text' > conftest.s
11232 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }
11239 gcc_cv_as_sparc_relax=yes
11241 echo "configure: failed program was" >&5
11244 rm -f conftest.o conftest.s
11247 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11248 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11249 if test $gcc_cv_as_sparc_relax = yes; then
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_AS_RELAX_OPTION 1
11257 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11258 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11259 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 gcc_cv_as_sparc_ua_pcrel=no
11263 if test x$gcc_cv_as != x; then
11270 .uaword %r_disp32(foo)' > conftest.s
11271 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }
11278 if test x$gcc_cv_ld != x \
11279 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11280 gcc_cv_as_sparc_ua_pcrel=yes
11284 echo "configure: failed program was" >&5
11287 rm -f conftest.o conftest.s
11290 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11291 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11292 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11294 cat >>confdefs.h <<\_ACEOF
11295 #define HAVE_AS_SPARC_UA_PCREL 1
11299 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11300 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11301 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 gcc_cv_as_sparc_ua_pcrel_hidden=no
11305 if test x$gcc_cv_as != x; then
11309 .uaword %r_disp32(foo)
11310 .byte 0x32, 0x33, 0x34
11314 .skip 4' > conftest.s
11315 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }
11322 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11323 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11324 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11325 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11326 if $gcc_cv_objdump -R conftest 2> /dev/null \
11327 | grep 'DISP32' > /dev/null 2>&1; then
11330 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11335 echo "configure: failed program was" >&5
11338 rm -f conftest.o conftest.s
11341 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11342 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11343 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11351 fi # unaligned pcrel relocs
11353 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11354 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11355 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 gcc_cv_as_sparc_offsetable_lo10=no
11359 if test x$gcc_cv_as != x; then
11361 or %g1, %lo(ab) + 12, %g1
11362 or %g1, %lo(ab + 12), %g1' > conftest.s
11363 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }
11370 if test x$gcc_cv_objdump != x \
11371 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11372 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11373 gcc_cv_as_offsetable_lo10=yes
11376 echo "configure: failed program was" >&5
11379 rm -f conftest.o conftest.s
11382 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11383 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11384 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define HAVE_AS_OFFSETABLE_LO10 1
11393 i[34567]86-*-* | x86_64-*-*)
11394 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11395 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11396 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11397 echo $ECHO_N "(cached) $ECHO_C" >&6
11399 gcc_cv_as_ix86_filds_fists=no
11400 if test $in_tree_gas = yes; then
11401 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11402 then gcc_cv_as_ix86_filds_fists=yes
11404 elif test x$gcc_cv_as != x; then
11405 echo 'filds mem; fists mem' > conftest.s
11406 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }
11413 gcc_cv_as_ix86_filds_fists=yes
11415 echo "configure: failed program was" >&5
11418 rm -f conftest.o conftest.s
11421 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11422 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11423 if test $gcc_cv_as_ix86_filds_fists = yes; then
11425 cat >>confdefs.h <<\_ACEOF
11426 #define HAVE_GAS_FILDS_FISTS 1
11431 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11432 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11433 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 gcc_cv_as_ix86_cmov_sun_syntax=no
11437 if test x$gcc_cv_as != x; then
11438 echo 'cmovl.l %edx, %eax' > conftest.s
11439 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }
11446 gcc_cv_as_ix86_cmov_sun_syntax=yes
11448 echo "configure: failed program was" >&5
11451 rm -f conftest.o conftest.s
11454 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11455 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11456 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11458 cat >>confdefs.h <<\_ACEOF
11459 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11464 # This one is used unconditionally by i386.[ch]; it is to be defined
11465 # to 1 if the feature is present, 0 otherwise.
11466 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11467 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11468 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 gcc_cv_as_ix86_gotoff_in_data=no
11472 if test $in_tree_gas = yes; then
11473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11474 then gcc_cv_as_ix86_gotoff_in_data=yes
11476 elif test x$gcc_cv_as != x; then
11481 .long .L0@GOTOFF' > conftest.s
11482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }
11489 gcc_cv_as_ix86_gotoff_in_data=yes
11491 echo "configure: failed program was" >&5
11494 rm -f conftest.o conftest.s
11497 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11498 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11508 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11509 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11510 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11514 if test $in_tree_gas = yes; then
11515 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11516 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11518 elif test x$gcc_cv_as != x; then
11520 addl r15 = @ltoffx(x#), gp
11522 ld8.mov r16 = [r15], x#' > conftest.s
11523 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }
11530 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11532 echo "configure: failed program was" >&5
11535 rm -f conftest.o conftest.s
11538 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11539 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11540 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11542 cat >>confdefs.h <<\_ACEOF
11543 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11552 *-*-aix*) conftest_s=' .csect .text[PR]
11554 *-*-darwin*) conftest_s=' .text
11556 *) conftest_s=' .text
11560 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11561 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11562 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 gcc_cv_as_powerpc_mfcrf=no
11566 if test $in_tree_gas = yes; then
11567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11568 then gcc_cv_as_powerpc_mfcrf=yes
11570 elif test x$gcc_cv_as != x; then
11571 echo "$conftest_s" > conftest.s
11572 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }
11579 gcc_cv_as_powerpc_mfcrf=yes
11581 echo "configure: failed program was" >&5
11584 rm -f conftest.o conftest.s
11587 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11588 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11589 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11591 cat >>confdefs.h <<\_ACEOF
11592 #define HAVE_AS_MFCRF 1
11599 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11600 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11601 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 gcc_cv_as_mips_explicit_relocs=no
11605 if test $in_tree_gas = yes; then
11606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11607 then gcc_cv_as_mips_explicit_relocs=yes
11609 elif test x$gcc_cv_as != x; then
11610 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11611 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }
11618 gcc_cv_as_mips_explicit_relocs=yes
11620 echo "configure: failed program was" >&5
11623 rm -f conftest.o conftest.s
11626 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11627 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11628 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11629 if test x$target_cpu_default = x
11630 then target_cpu_default=MASK_EXPLICIT_RELOCS
11631 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11637 # ??? Not all targets support dwarf2 debug_line, even within a version
11638 # of gas. Moreover, we need to emit a valid instruction to trigger any
11639 # info to the output file. So, as supported targets are added to gas 2.11,
11640 # add some instruction here to (also) show we expect this might work.
11641 # ??? Once 2.11 is released, probably need to add first known working
11642 # version to the per-target configury.
11644 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11645 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11646 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11649 ia64*-*-* | s390*-*-*)
11656 if test x"$insn" != x; then
11658 .file 1 \"conftest.s\"
11661 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11662 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11663 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 gcc_cv_as_dwarf2_debug_line=no
11667 if test $in_tree_gas = yes; then
11668 if test $in_tree_gas_is_elf = yes \
11669 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11670 then gcc_cv_as_dwarf2_debug_line=yes
11672 elif test x$gcc_cv_as != x; then
11673 echo "$conftest_s" > conftest.s
11674 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }
11681 # ??? This fails with non-gnu grep. Maybe use objdump?
11682 if grep debug_line conftest.o > /dev/null 2>&1; then
11683 gcc_cv_as_dwarf2_debug_line=yes
11686 echo "configure: failed program was" >&5
11689 rm -f conftest.o conftest.s
11692 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11693 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11696 # The .debug_line file table must be in the exact order that
11697 # we specified the files, since these indices are also used
11698 # by DW_AT_decl_file. Approximate this test by testing if
11699 # the assembler bitches if the same index is assigned twice.
11700 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11701 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11702 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11703 echo $ECHO_N "(cached) $ECHO_C" >&6
11705 gcc_cv_as_dwarf2_file_buggy=no
11706 if test x$gcc_cv_as != x; then
11707 echo ' .file 1 "foo.s"
11708 .file 1 "bar.s"' > conftest.s
11709 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }
11716 gcc_cv_as_dwarf2_file_buggy=yes
11718 echo "configure: failed program was" >&5
11721 rm -f conftest.o conftest.s
11724 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11725 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11728 if test $gcc_cv_as_dwarf2_debug_line = yes \
11729 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11737 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11738 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11739 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 gcc_cv_as_gdwarf2_flag=no
11743 if test $in_tree_gas = yes; then
11744 if test $in_tree_gas_is_elf = yes \
11745 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11746 then gcc_cv_as_gdwarf2_flag=yes
11748 elif test x$gcc_cv_as != x; then
11749 echo "$insn" > conftest.s
11750 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }
11757 gcc_cv_as_gdwarf2_flag=yes
11759 echo "configure: failed program was" >&5
11762 rm -f conftest.o conftest.s
11765 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11766 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11767 if test $gcc_cv_as_gdwarf2_flag = yes; then
11769 cat >>confdefs.h <<\_ACEOF
11770 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11775 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11776 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11777 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 gcc_cv_as_gstabs_flag=no
11781 if test $in_tree_gas = yes; then
11782 if test $in_tree_gas_is_elf = yes \
11783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11784 then gcc_cv_as_gstabs_flag=yes
11786 elif test x$gcc_cv_as != x; then
11787 echo "$insn" > conftest.s
11788 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }
11795 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11796 # and warns about it, but still exits successfully. So check for
11798 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }
11805 else gcc_cv_as_gstabs_flag=yes
11808 echo "configure: failed program was" >&5
11811 rm -f conftest.o conftest.s
11814 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11815 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11816 if test $gcc_cv_as_gstabs_flag = yes; then
11818 cat >>confdefs.h <<\_ACEOF
11819 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11825 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11826 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11827 gcc_cv_ld_ro_rw_mix=unknown
11828 if test $in_tree_ld = yes ; then
11829 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 \
11830 && test $in_tree_ld_is_elf = yes; then
11831 gcc_cv_ld_ro_rw_mix=read-write
11833 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11834 echo '.section myfoosect, "a"' > conftest1.s
11835 echo '.section myfoosect, "aw"' > conftest2.s
11836 echo '.byte 1' >> conftest2.s
11837 echo '.section myfoosect, "a"' > conftest3.s
11838 echo '.byte 0' >> conftest3.s
11839 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11840 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11841 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11842 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11843 conftest2.o conftest3.o > /dev/null 2>&1; then
11844 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11845 | sed -e '/myfoosect/!d' -e N`
11846 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11847 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11848 gcc_cv_ld_ro_rw_mix=read-only
11850 gcc_cv_ld_ro_rw_mix=read-write
11854 rm -f conftest.* conftest[123].*
11856 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
11858 cat >>confdefs.h <<\_ACEOF
11859 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11863 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11864 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11866 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11867 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11868 gcc_cv_ld_eh_frame_hdr=no
11869 if test $in_tree_ld = yes ; then
11870 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 \
11871 && test $in_tree_ld_is_elf = yes; then
11872 gcc_cv_ld_eh_frame_hdr=yes
11874 elif test x$gcc_cv_ld != x; then
11875 # Check if linker supports --eh-frame-hdr option
11876 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
11877 gcc_cv_ld_eh_frame_hdr=yes
11880 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
11882 cat >>confdefs.h <<\_ACEOF
11883 #define HAVE_LD_EH_FRAME_HDR 1
11887 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11888 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11890 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11891 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11893 if test $in_tree_ld = yes ; then
11894 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 \
11895 && test $in_tree_ld_is_elf = yes; then
11898 elif test x$gcc_cv_ld != x; then
11899 # Check if linker supports -pie option
11900 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
11904 if test x"$gcc_cv_ld_pie" = xyes; then
11906 cat >>confdefs.h <<\_ACEOF
11907 #define HAVE_LD_PIE 1
11911 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11912 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11918 if test x$with_sysroot = x && test x$host = x$target \
11919 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11921 cat >>confdefs.h <<_ACEOF
11922 #define PREFIX_INCLUDE_DIR "$prefix/include"
11927 # Figure out what language subdirectories are present.
11928 # Look if the user specified --enable-languages="..."; if not, use
11929 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11930 # go away some day.
11931 # NB: embedded tabs in this IF block -- do not untabify
11932 if test x"${enable_languages+set}" != xset; then
11933 if test x"${LANGUAGES+set}" = xset; then
11934 enable_languages="${LANGUAGES}"
11935 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11936 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11939 enable_languages=all
11942 if test x"${enable_languages}" = x \
11943 || test x"${enable_languages}" = xyes;
11945 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11946 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11947 { (exit 1); exit 1; }; }
11950 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11952 # First scan to see if an enabled language requires some other language.
11953 # We assume that a given config-lang.in will list all the language
11954 # front ends it requires, even if some are required indirectly.
11955 for lang in ${srcdir}/*/config-lang.in
11958 # The odd quoting in the next line works around
11959 # an apparent bug in bash 1.12 on linux.
11960 ${srcdir}/[*]/config-lang.in)
11963 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11964 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11965 for other in $this_lang_requires
11967 case ,${enable_languages}, in
11973 enable_languages="$enable_languages,$other"
11981 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11984 for lang in ${srcdir}/*/config-lang.in
11987 # The odd quoting in the next line works around
11988 # an apparent bug in bash 1.12 on linux.
11989 ${srcdir}/[*]/config-lang.in) ;;
11991 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11992 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11993 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11994 if test "x$lang_alias" = x
11996 echo "$lang doesn't set \$language." 1>&2
11999 case ${build_by_default},${enable_languages}, in
12000 *,$lang_alias,*) add_this_lang=yes ;;
12001 no,*) add_this_lang=no ;;
12002 *,all,*) add_this_lang=yes ;;
12003 *) add_this_lang=no ;;
12005 found_languages="${found_languages} ${lang_alias}"
12006 if test x"${add_this_lang}" = xyes; then
12008 ${srcdir}/ada/config-lang.in)
12009 if test x$have_gnat = xyes ; then
12010 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12014 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12023 for expected_language in ${expected_languages} ..
12025 if test "${expected_language}" != ..; then
12026 missing_language="${expected_language}"
12027 if test "${expected_language}" = "c" \
12028 || test "${expected_language}" = "all"; then
12031 for found_language in ${found_languages} ..
12033 if test "${found_language}" != ..; then
12034 if test "${expected_language}" = "${found_language}"; then
12039 if test "x${missing_language}" != x; then
12040 missing_languages="${missing_languages} ${missing_language}"
12045 if test "x$missing_languages" != x; then
12046 { { echo "$as_me:$LINENO: error:
12047 The following requested languages were not found:${missing_languages}
12048 The following languages were available: c${found_languages}" >&5
12049 echo "$as_me: error:
12050 The following requested languages were not found:${missing_languages}
12051 The following languages were available: c${found_languages}" >&2;}
12052 { (exit 1); exit 1; }; }
12055 # Find out what GC implementation we want, or may, use.
12057 # Check whether --with-gc or --without-gc was given.
12058 if test "${with_gc+set}" = set; then
12065 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12066 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12067 { (exit 1); exit 1; }; }
12074 echo "Using $GGC for garbage collection."
12076 # Use the system's zlib library.
12078 zlibinc="-I\$(srcdir)/../zlib"
12080 # Check whether --with-system-zlib or --without-system-zlib was given.
12081 if test "${with_system_zlib+set}" = set; then
12082 withval="$with_system_zlib"
12091 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12092 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12093 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12094 if test "${enable_maintainer_mode+set}" = set; then
12095 enableval="$enable_maintainer_mode"
12096 maintainer_mode=$enableval
12101 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12102 echo "${ECHO_T}$maintainer_mode" >&6
12104 if test "$maintainer_mode" = "yes"; then
12114 # Make empty files to contain the specs and options for each language.
12115 # Then add #include lines to for a compiler that has specs and/or options.
12120 for subdir in . $subdirs
12122 if test -f $srcdir/$subdir/lang.opt; then
12123 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12125 if test -f $srcdir/$subdir/lang-specs.h; then
12126 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12128 if test -f $srcdir/$subdir/$subdir-tree.def; then
12129 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12133 # These (without "all_") are set in each config-lang.in.
12134 # `language' must be a single word so is spelled singularly.
12136 all_boot_languages=
12139 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12140 # List of language makefile fragments.
12141 all_lang_makefrags=
12142 # List of language subdirectory makefiles. Deprecated.
12143 all_lang_makefiles=
12144 # Files for gengtype
12145 all_gtfiles="$target_gtfiles"
12146 # Files for gengtype with language
12147 all_gtfiles_files_langs=
12148 all_gtfiles_files_files=
12150 # Add the language fragments.
12151 # Languages are added via two mechanisms. Some information must be
12152 # recorded in makefile variables, these are defined in config-lang.in.
12153 # We accumulate them and plug them into the main Makefile.
12154 # The other mechanism is a set of hooks for each of the main targets
12155 # like `clean', `install', etc.
12157 language_hooks="Make-hooks"
12167 . ${srcdir}/$s/config-lang.in
12168 if test "x$language" = x
12170 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12173 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12174 if test -f ${srcdir}/$s/Makefile.in
12175 then all_lang_makefiles="$s/Makefile"
12177 all_languages="$all_languages $language"
12178 if test "x$boot_language" = xyes
12180 all_boot_languages="$all_boot_languages $language"
12182 all_compilers="$all_compilers $compilers"
12183 all_stagestuff="$all_stagestuff $stagestuff"
12184 all_outputs="$all_outputs $outputs"
12185 all_gtfiles="$all_gtfiles $gtfiles"
12188 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12189 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12193 # Pick up gtfiles for c
12196 . ${srcdir}/c-config-lang.in
12197 all_gtfiles="$all_gtfiles $gtfiles"
12200 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12201 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12205 for language in $all_languages
12207 check_languages="$check_languages check-$language"
12210 # We link each language in with a set of hooks, reached indirectly via
12215 target_list="all.build all.cross start.encap rest.encap tags \
12216 install-normal install-common install-man \
12217 uninstall info man srcextra srcman srcinfo \
12218 mostlyclean clean distclean maintainer-clean \
12219 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12220 for t in $target_list
12223 for lang in $all_languages
12227 echo "lang.$t: $x" >> Make-hooks
12236 echo "dir ." > .gdbinit
12237 echo "dir ${srcdir}" >> .gdbinit
12238 if test x$gdb_needs_out_file_path = xyes
12240 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12242 if test "x$subdirs" != x; then
12245 echo "dir ${srcdir}/$s" >> .gdbinit
12248 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12250 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12251 # absolute path for gcc_tooldir based on inserting the number of up-directory
12252 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12253 # $(libsubdir)/@(unlibsubdir) based path.
12254 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12255 # make and thus we'd get different behavior depending on where we built the
12257 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12258 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12260 # An explanation of the sed strings:
12261 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12262 # -e 's|/$||' match a trailing forward slash and eliminates it
12263 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12264 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12266 # (*) Note this pattern overwrites the first character of the string
12267 # with a forward slash if one is not already present. This is not a
12268 # problem because the exact names of the sub-directories concerned is
12269 # unimportant, just the number of them matters.
12271 # The practical upshot of these patterns is like this:
12273 # prefix exec_prefix result
12274 # ------ ----------- ------
12275 # /foo /foo/bar ../
12276 # /foo/ /foo/bar ../
12277 # /foo /foo/bar/ ../
12278 # /foo/ /foo/bar/ ../
12279 # /foo /foo/bar/ugg ../../
12282 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12287 # Find a directory in which to install a shared libgcc.
12289 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12290 if test "${enable_version_specific_runtime_libs+set}" = set; then
12291 enableval="$enable_version_specific_runtime_libs"
12296 # Check whether --with-slibdir or --without-slibdir was given.
12297 if test "${with_slibdir+set}" = set; then
12298 withval="$with_slibdir"
12299 slibdir="$with_slibdir"
12301 if test "${enable_version_specific_runtime_libs+set}" = set; then
12302 slibdir='$(libsubdir)'
12303 elif test "$host" != "$target"; then
12304 slibdir='$(build_tooldir)/lib'
12306 slibdir='$(libdir)'
12311 objdir=`${PWDCMD-pwd}`
12314 # Substitute configuration variables
12383 # If it doesn't already exist, create document directory
12384 echo "checking for the document directory." 1>&2
12385 if test -d doc ; then
12392 if test x${build} = x${host} ; then
12393 if test x${host} = x${target} ; then
12394 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12396 echo "Links are now set up to build a cross-compiler" 1>&2
12397 echo " from ${host} to ${target}." 1>&2
12400 if test x${host} = x${target} ; then
12401 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12402 echo " for ${target}." 1>&2
12404 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12405 echo " from ${host} to ${target}." 1>&2
12409 # Configure the subdirectories
12410 # AC_CONFIG_SUBDIRS($subdirs)
12412 # Create the Makefile
12413 # and configure language subdirectories
12414 ac_config_files="$ac_config_files $all_outputs"
12417 ac_config_commands="$ac_config_commands default"
12419 cat >confcache <<\_ACEOF
12420 # This file is a shell script that caches the results of configure
12421 # tests run on this system so they can be shared between configure
12422 # scripts and configure runs, see configure's option --config-cache.
12423 # It is not useful on other systems. If it contains results you don't
12424 # want to keep, you may remove or edit it.
12426 # config.status only pays attention to the cache file if you give it
12427 # the --recheck option to rerun configure.
12429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12431 # following values.
12435 # The following way of writing the cache mishandles newlines in values,
12436 # but we know of no workaround that is simple, portable, and efficient.
12437 # So, don't put newlines in cache variables' values.
12438 # Ultrix sh set writes to stderr and can't be redirected directly,
12439 # and sets the high bit in the cache file unless we assign to the vars.
12442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12444 # `set' does not quote correctly, so add quotes (double-quote
12445 # substitution turns \\\\ into \\, and sed turns \\ into \).
12448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12451 # `set' quotes correctly as required by POSIX, so do not add quotes.
12453 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12462 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12464 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12465 if test -w $cache_file; then
12466 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12467 cat confcache >$cache_file
12469 echo "not updating unwritable cache $cache_file"
12474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12475 # Let make expand exec_prefix.
12476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12478 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12479 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12480 # trailing colons and then remove the whole line if VPATH becomes empty
12481 # (actually we leave an empty line to preserve line numbers).
12482 if test "x$srcdir" = x.; then
12483 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12484 s/:*\$(srcdir):*/:/;
12485 s/:*\${srcdir}:*/:/;
12487 s/^\([^=]*=[ ]*\):*/\1/;
12493 DEFS=-DHAVE_CONFIG_H
12497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12498 # 1. Remove the extension, and $U if already installed.
12499 ac_i=`echo "$ac_i" |
12500 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12502 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12503 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12505 LIBOBJS=$ac_libobjs
12507 LTLIBOBJS=$ac_ltlibobjs
12511 : ${CONFIG_STATUS=./config.status}
12512 ac_clean_files_save=$ac_clean_files
12513 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12514 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12515 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12516 cat >$CONFIG_STATUS <<_ACEOF
12518 # Generated by $as_me.
12519 # Run this file to recreate the current configuration.
12520 # Compiler output produced by configure, useful for debugging
12521 # configure, is in config.log if it exists.
12524 ac_cs_recheck=false
12526 SHELL=\${CONFIG_SHELL-$SHELL}
12529 cat >>$CONFIG_STATUS <<\_ACEOF
12530 ## --------------------- ##
12531 ## M4sh Initialization. ##
12532 ## --------------------- ##
12534 # Be Bourne compatible
12535 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12538 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12539 # is contrary to our usage. Disable this feature.
12540 alias -g '${1+"$@"}'='"$@"'
12541 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12544 DUALCASE=1; export DUALCASE # for MKS sh
12546 # Support unset when possible.
12547 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12554 # Work around bugs in pre-3.0 UWIN ksh.
12555 $as_unset ENV MAIL MAILPATH
12562 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12563 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12564 LC_TELEPHONE LC_TIME
12566 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12567 eval $as_var=C; export $as_var
12573 # Required to use basename.
12574 if expr a : '\(a\)' >/dev/null 2>&1; then
12580 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12581 as_basename=basename
12587 # Name of the executable.
12588 as_me=`$as_basename "$0" ||
12589 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12590 X"$0" : 'X\(//\)$' \| \
12591 X"$0" : 'X\(/\)$' \| \
12592 . : '\(.\)' 2>/dev/null ||
12594 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12595 /^X\/\(\/\/\)$/{ s//\1/; q; }
12596 /^X\/\(\/\).*/{ s//\1/; q; }
12600 # PATH needs CR, and LINENO needs CR and PATH.
12601 # Avoid depending upon Character Ranges.
12602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12605 as_cr_digits='0123456789'
12606 as_cr_alnum=$as_cr_Letters$as_cr_digits
12608 # The user is always right.
12609 if test "${PATH_SEPARATOR+set}" != set; then
12610 echo "#! /bin/sh" >conf$$.sh
12611 echo "exit 0" >>conf$$.sh
12613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12622 as_lineno_1=$LINENO
12623 as_lineno_2=$LINENO
12624 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12625 test "x$as_lineno_1" != "x$as_lineno_2" &&
12626 test "x$as_lineno_3" = "x$as_lineno_2" || {
12627 # Find who we are. Look in the path if we contain no path at all
12630 *[\\/]* ) as_myself=$0 ;;
12631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12635 test -z "$as_dir" && as_dir=.
12636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12641 # We did not find ourselves, most probably we were run as `sh COMMAND'
12642 # in which case we are not to be found in the path.
12643 if test "x$as_myself" = x; then
12646 if test ! -f "$as_myself"; then
12647 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12648 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12649 { (exit 1); exit 1; }; }
12651 case $CONFIG_SHELL in
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12657 test -z "$as_dir" && as_dir=.
12658 for as_base in sh bash ksh sh5; do
12661 if ("$as_dir/$as_base" -c '
12662 as_lineno_1=$LINENO
12663 as_lineno_2=$LINENO
12664 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12665 test "x$as_lineno_1" != "x$as_lineno_2" &&
12666 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12667 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12668 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12669 CONFIG_SHELL=$as_dir/$as_base
12670 export CONFIG_SHELL
12671 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12679 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12680 # uniformly replaced by the line number. The first 'sed' inserts a
12681 # line-number line before each line; the second 'sed' does the real
12682 # work. The second script uses 'N' to pair each line-number line
12683 # with the numbered line, and appends trailing '-' during
12684 # substitution so that $LINENO is not a special case at line end.
12685 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12686 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12687 sed '=' <$as_myself |
12692 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12695 s,^['$as_cr_digits']*\n,,
12696 ' >$as_me.lineno &&
12697 chmod +x $as_me.lineno ||
12698 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12699 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12700 { (exit 1); exit 1; }; }
12702 # Don't try to exec as it changes $[0], causing all sort of problems
12703 # (the dirname of $[0] is not the place where we might find the
12704 # original and so on. Autoconf is especially sensible to this).
12706 # Exit status is that of the last command.
12711 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12712 *c*,-n*) ECHO_N= ECHO_C='
12714 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12715 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12718 if expr a : '\(a\)' >/dev/null 2>&1; then
12724 rm -f conf$$ conf$$.exe conf$$.file
12726 if ln -s conf$$.file conf$$ 2>/dev/null; then
12727 # We could just check for DJGPP; but this test a) works b) is more generic
12728 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12729 if test -f conf$$.exe; then
12730 # Don't use ln at all; we don't have any links
12735 elif ln conf$$.file conf$$ 2>/dev/null; then
12740 rm -f conf$$ conf$$.exe conf$$.file
12742 if mkdir -p . 2>/dev/null; then
12745 test -d ./-p && rmdir ./-p
12749 as_executable_p="test -f"
12751 # Sed expression to map a string onto a valid CPP name.
12752 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12754 # Sed expression to map a string onto a valid variable name.
12755 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12759 # We need space, tab and new line, in precisely that order.
12769 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12770 # report actual input values of CONFIG_FILES etc. instead of their
12771 # values after options handling. Logging --version etc. is OK.
12775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12776 ## Running $as_me. ##
12781 This file was extended by $as_me, which was
12782 generated by GNU Autoconf 2.58. Invocation command line was
12784 CONFIG_FILES = $CONFIG_FILES
12785 CONFIG_HEADERS = $CONFIG_HEADERS
12786 CONFIG_LINKS = $CONFIG_LINKS
12787 CONFIG_COMMANDS = $CONFIG_COMMANDS
12791 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12795 # Files that config.status was made for.
12796 if test -n "$ac_config_files"; then
12797 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12800 if test -n "$ac_config_headers"; then
12801 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12804 if test -n "$ac_config_links"; then
12805 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12808 if test -n "$ac_config_commands"; then
12809 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12812 cat >>$CONFIG_STATUS <<\_ACEOF
12815 \`$as_me' instantiates files from templates according to the
12816 current configuration.
12818 Usage: $0 [OPTIONS] [FILE]...
12820 -h, --help print this help, then exit
12821 -V, --version print version number, then exit
12822 -q, --quiet do not print progress messages
12823 -d, --debug don't remove temporary files
12824 --recheck update $as_me by reconfiguring in the same conditions
12825 --file=FILE[:TEMPLATE]
12826 instantiate the configuration file FILE
12827 --header=FILE[:TEMPLATE]
12828 instantiate the configuration header FILE
12830 Configuration files:
12833 Configuration headers:
12836 Configuration commands:
12839 Report bugs to <bug-autoconf@gnu.org>."
12842 cat >>$CONFIG_STATUS <<_ACEOF
12845 configured by $0, generated by GNU Autoconf 2.58,
12846 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12848 Copyright (C) 2003 Free Software Foundation, Inc.
12849 This config.status script is free software; the Free Software Foundation
12850 gives unlimited permission to copy, distribute and modify it."
12854 cat >>$CONFIG_STATUS <<\_ACEOF
12855 # If no file are specified by the user, then we need to provide default
12856 # value. By we need to know if files were specified by the user.
12862 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12863 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12871 *) # This is not an option, so the user has probably given explicit
12874 ac_need_defaults=false;;
12878 # Handling of the options.
12880 cat >>$CONFIG_STATUS <<\_ACEOF
12881 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12883 --version | --vers* | -V )
12884 echo "$ac_cs_version"; exit 0 ;;
12886 # Conflict between --help and --header
12887 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12888 Try \`$0 --help' for more information." >&5
12889 echo "$as_me: error: ambiguous option: $1
12890 Try \`$0 --help' for more information." >&2;}
12891 { (exit 1); exit 1; }; };;
12892 --help | --hel | -h )
12893 echo "$ac_cs_usage"; exit 0 ;;
12894 --debug | --d* | -d )
12896 --file | --fil | --fi | --f )
12898 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12899 ac_need_defaults=false;;
12900 --header | --heade | --head | --hea )
12902 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12903 ac_need_defaults=false;;
12904 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12905 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12908 # This is an error.
12909 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12910 Try \`$0 --help' for more information." >&5
12911 echo "$as_me: error: unrecognized option: $1
12912 Try \`$0 --help' for more information." >&2;}
12913 { (exit 1); exit 1; }; } ;;
12915 *) ac_config_targets="$ac_config_targets $1" ;;
12921 ac_configure_extra_args=
12923 if $ac_cs_silent; then
12925 ac_configure_extra_args="$ac_configure_extra_args --silent"
12929 cat >>$CONFIG_STATUS <<_ACEOF
12930 if \$ac_cs_recheck; then
12931 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12932 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12937 cat >>$CONFIG_STATUS <<_ACEOF
12939 # INIT-COMMANDS section.
12943 symbolic_link='$symbolic_link'
12950 cat >>$CONFIG_STATUS <<\_ACEOF
12951 for ac_config_target in $ac_config_targets
12953 case "$ac_config_target" in
12954 # Handling of arguments.
12955 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
12956 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12957 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
12958 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12959 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12960 { (exit 1); exit 1; }; };;
12964 # If the user did not use the arguments to specify the items to instantiate,
12965 # then the envvar interface is used. Set only those that are not.
12966 # We use the long form for the default assignment because of an extremely
12967 # bizarre bug on SunOS 4.1.3.
12968 if $ac_need_defaults; then
12969 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12970 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12971 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12974 # Have a temporary directory for convenience. Make it in the build tree
12975 # simply because there is no reason to put it here, and in addition,
12976 # creating and moving files from /tmp can sometimes cause problems.
12977 # Create a temporary directory, and hook for its removal unless debugging.
12980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12981 trap '{ (exit 1); exit 1; }' 1 2 13 15
12984 # Create a (secure) tmp directory for tmp files.
12987 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12988 test -n "$tmp" && test -d "$tmp"
12991 tmp=./confstat$$-$RANDOM
12992 (umask 077 && mkdir $tmp)
12995 echo "$me: cannot create a temporary directory in ." >&2
12996 { (exit 1); exit 1; }
13001 cat >>$CONFIG_STATUS <<_ACEOF
13004 # CONFIG_FILES section.
13007 # No need to generate the scripts if there are no CONFIG_FILES.
13008 # This happens for instance when ./config.status config.h
13009 if test -n "\$CONFIG_FILES"; then
13010 # Protect against being on the right side of a sed subst in config.status.
13011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13013 s,@SHELL@,$SHELL,;t t
13014 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13015 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13016 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13017 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13018 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13019 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13020 s,@exec_prefix@,$exec_prefix,;t t
13021 s,@prefix@,$prefix,;t t
13022 s,@program_transform_name@,$program_transform_name,;t t
13023 s,@bindir@,$bindir,;t t
13024 s,@sbindir@,$sbindir,;t t
13025 s,@libexecdir@,$libexecdir,;t t
13026 s,@datadir@,$datadir,;t t
13027 s,@sysconfdir@,$sysconfdir,;t t
13028 s,@sharedstatedir@,$sharedstatedir,;t t
13029 s,@localstatedir@,$localstatedir,;t t
13030 s,@libdir@,$libdir,;t t
13031 s,@includedir@,$includedir,;t t
13032 s,@oldincludedir@,$oldincludedir,;t t
13033 s,@infodir@,$infodir,;t t
13034 s,@mandir@,$mandir,;t t
13035 s,@build_alias@,$build_alias,;t t
13036 s,@host_alias@,$host_alias,;t t
13037 s,@target_alias@,$target_alias,;t t
13038 s,@DEFS@,$DEFS,;t t
13039 s,@ECHO_C@,$ECHO_C,;t t
13040 s,@ECHO_N@,$ECHO_N,;t t
13041 s,@ECHO_T@,$ECHO_T,;t t
13042 s,@LIBS@,$LIBS,;t t
13043 s,@build@,$build,;t t
13044 s,@build_cpu@,$build_cpu,;t t
13045 s,@build_vendor@,$build_vendor,;t t
13046 s,@build_os@,$build_os,;t t
13047 s,@host@,$host,;t t
13048 s,@host_cpu@,$host_cpu,;t t
13049 s,@host_vendor@,$host_vendor,;t t
13050 s,@host_os@,$host_os,;t t
13051 s,@target@,$target,;t t
13052 s,@target_cpu@,$target_cpu,;t t
13053 s,@target_vendor@,$target_vendor,;t t
13054 s,@target_os@,$target_os,;t t
13055 s,@build_subdir@,$build_subdir,;t t
13056 s,@host_subdir@,$host_subdir,;t t
13057 s,@target_subdir@,$target_subdir,;t t
13058 s,@GENINSRC@,$GENINSRC,;t t
13060 s,@CFLAGS@,$CFLAGS,;t t
13061 s,@LDFLAGS@,$LDFLAGS,;t t
13062 s,@CPPFLAGS@,$CPPFLAGS,;t t
13063 s,@ac_ct_CC@,$ac_ct_CC,;t t
13064 s,@EXEEXT@,$EXEEXT,;t t
13065 s,@OBJEXT@,$OBJEXT,;t t
13066 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13067 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13069 s,@GNATBIND@,$GNATBIND,;t t
13070 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13071 s,@strict1_warn@,$strict1_warn,;t t
13072 s,@warn_cflags@,$warn_cflags,;t t
13073 s,@WERROR@,$WERROR,;t t
13074 s,@nocommon_flag@,$nocommon_flag,;t t
13075 s,@EGREP@,$EGREP,;t t
13076 s,@valgrind_path@,$valgrind_path,;t t
13077 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13078 s,@valgrind_command@,$valgrind_command,;t t
13079 s,@coverage_flags@,$coverage_flags,;t t
13080 s,@enable_multilib@,$enable_multilib,;t t
13081 s,@enable_shared@,$enable_shared,;t t
13082 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13083 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13084 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13085 s,@onestep@,$onestep,;t t
13086 s,@SET_MAKE@,$SET_MAKE,;t t
13089 s,@LN_S@,$LN_S,;t t
13090 s,@RANLIB@,$RANLIB,;t t
13091 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13092 s,@INSTALL@,$INSTALL,;t t
13093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13094 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13095 s,@make_compare_target@,$make_compare_target,;t t
13096 s,@have_mktemp_command@,$have_mktemp_command,;t t
13097 s,@MAKEINFO@,$MAKEINFO,;t t
13098 s,@BUILD_INFO@,$BUILD_INFO,;t t
13099 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13100 s,@FLEX@,$FLEX,;t t
13101 s,@BISON@,$BISON,;t t
13102 s,@stage1_cflags@,$stage1_cflags,;t t
13103 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13104 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13105 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13106 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13107 s,@LIBICONV@,$LIBICONV,;t t
13108 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13109 s,@manext@,$manext,;t t
13110 s,@objext@,$objext,;t t
13111 s,@gthread_flags@,$gthread_flags,;t t
13112 s,@extra_modes_file@,$extra_modes_file,;t t
13113 s,@FORBUILD@,$FORBUILD,;t t
13114 s,@PACKAGE@,$PACKAGE,;t t
13115 s,@VERSION@,$VERSION,;t t
13116 s,@USE_NLS@,$USE_NLS,;t t
13117 s,@LIBINTL@,$LIBINTL,;t t
13118 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13119 s,@INCINTL@,$INCINTL,;t t
13120 s,@XGETTEXT@,$XGETTEXT,;t t
13121 s,@GMSGFMT@,$GMSGFMT,;t t
13122 s,@POSUB@,$POSUB,;t t
13123 s,@CATALOGS@,$CATALOGS,;t t
13124 s,@CROSS@,$CROSS,;t t
13126 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13127 s,@inhibit_libc@,$inhibit_libc,;t t
13128 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13129 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13130 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13131 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13132 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13133 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13134 s,@libgcc_visibility@,$libgcc_visibility,;t t
13136 s,@zlibdir@,$zlibdir,;t t
13137 s,@zlibinc@,$zlibinc,;t t
13138 s,@MAINT@,$MAINT,;t t
13139 s,@gcc_tooldir@,$gcc_tooldir,;t t
13140 s,@dollar@,$dollar,;t t
13141 s,@slibdir@,$slibdir,;t t
13142 s,@objdir@,$objdir,;t t
13143 s,@subdirs@,$subdirs,;t t
13144 s,@srcdir@,$srcdir,;t t
13145 s,@all_boot_languages@,$all_boot_languages,;t t
13146 s,@all_compilers@,$all_compilers,;t t
13147 s,@all_gtfiles@,$all_gtfiles,;t t
13148 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13149 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13150 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13151 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13152 s,@all_languages@,$all_languages,;t t
13153 s,@all_stagestuff@,$all_stagestuff,;t t
13154 s,@build_exeext@,$build_exeext,;t t
13155 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13156 s,@build_xm_file_list@,$build_xm_file_list,;t t
13157 s,@build_xm_include_list@,$build_xm_include_list,;t t
13158 s,@build_xm_defines@,$build_xm_defines,;t t
13159 s,@check_languages@,$check_languages,;t t
13160 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13161 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13162 s,@cpp_install_dir@,$cpp_install_dir,;t t
13163 s,@xmake_file@,$xmake_file,;t t
13164 s,@tmake_file@,$tmake_file,;t t
13165 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13166 s,@extra_headers_list@,$extra_headers_list,;t t
13167 s,@extra_objs@,$extra_objs,;t t
13168 s,@extra_parts@,$extra_parts,;t t
13169 s,@extra_passes@,$extra_passes,;t t
13170 s,@extra_programs@,$extra_programs,;t t
13171 s,@float_h_file@,$float_h_file,;t t
13172 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13173 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13174 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13175 s,@gcc_version@,$gcc_version,;t t
13176 s,@gcc_version_full@,$gcc_version_full,;t t
13177 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13178 s,@host_exeext@,$host_exeext,;t t
13179 s,@host_xm_file_list@,$host_xm_file_list,;t t
13180 s,@host_xm_include_list@,$host_xm_include_list,;t t
13181 s,@host_xm_defines@,$host_xm_defines,;t t
13182 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13183 s,@install@,$install,;t t
13184 s,@lang_opt_files@,$lang_opt_files,;t t
13185 s,@lang_specs_files@,$lang_specs_files,;t t
13186 s,@lang_tree_files@,$lang_tree_files,;t t
13187 s,@local_prefix@,$local_prefix,;t t
13188 s,@md_file@,$md_file,;t t
13189 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13190 s,@out_file@,$out_file,;t t
13191 s,@out_object_file@,$out_object_file,;t t
13192 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13193 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13194 s,@symbolic_link@,$symbolic_link,;t t
13195 s,@thread_file@,$thread_file,;t t
13196 s,@tm_file_list@,$tm_file_list,;t t
13197 s,@tm_include_list@,$tm_include_list,;t t
13198 s,@tm_defines@,$tm_defines,;t t
13199 s,@tm_p_file_list@,$tm_p_file_list,;t t
13200 s,@tm_p_include_list@,$tm_p_include_list,;t t
13201 s,@xm_file_list@,$xm_file_list,;t t
13202 s,@xm_include_list@,$xm_include_list,;t t
13203 s,@xm_defines@,$xm_defines,;t t
13204 s,@target_noncanonical@,$target_noncanonical,;t t
13205 s,@c_target_objs@,$c_target_objs,;t t
13206 s,@cxx_target_objs@,$cxx_target_objs,;t t
13207 s,@target_cpu_default@,$target_cpu_default,;t t
13208 s,@LIBOBJS@,$LIBOBJS,;t t
13209 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13210 /@language_hooks@/r $language_hooks
13211 s,@language_hooks@,,;t t
13216 cat >>$CONFIG_STATUS <<\_ACEOF
13217 # Split the substitutions into bite-sized pieces for seds with
13218 # small command number limits, like on Digital OSF/1 and HP-UX.
13219 ac_max_sed_lines=48
13220 ac_sed_frag=1 # Number of current file.
13221 ac_beg=1 # First line for current file.
13222 ac_end=$ac_max_sed_lines # Line after last line for current file.
13225 while $ac_more_lines; do
13226 if test $ac_beg -gt 1; then
13227 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13229 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13231 if test ! -s $tmp/subs.frag; then
13232 ac_more_lines=false
13234 # The purpose of the label and of the branching condition is to
13235 # speed up the sed processing (if there are no `@' at all, there
13236 # is no need to browse any of the substitutions).
13237 # These are the two extra sed commands mentioned above.
13239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13240 if test -z "$ac_sed_cmds"; then
13241 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13243 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13245 ac_sed_frag=`expr $ac_sed_frag + 1`
13247 ac_end=`expr $ac_end + $ac_max_sed_lines`
13250 if test -z "$ac_sed_cmds"; then
13253 fi # test -n "$CONFIG_FILES"
13256 cat >>$CONFIG_STATUS <<\_ACEOF
13257 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13260 - | *:- | *:-:* ) # input from stdin
13262 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13264 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13266 * ) ac_file_in=$ac_file.in ;;
13269 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13270 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13272 X"$ac_file" : 'X\(//\)[^/]' \| \
13273 X"$ac_file" : 'X\(//\)$' \| \
13274 X"$ac_file" : 'X\(/\)' \| \
13275 . : '\(.\)' 2>/dev/null ||
13277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13279 /^X\(\/\/\)$/{ s//\1/; q; }
13280 /^X\(\/\).*/{ s//\1/; q; }
13282 { if $as_mkdir_p; then
13287 while test ! -d "$as_dir"; do
13288 as_dirs="$as_dir $as_dirs"
13289 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$as_dir" : 'X\(//\)[^/]' \| \
13292 X"$as_dir" : 'X\(//\)$' \| \
13293 X"$as_dir" : 'X\(/\)' \| \
13294 . : '\(.\)' 2>/dev/null ||
13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13298 /^X\(\/\/\)$/{ s//\1/; q; }
13299 /^X\(\/\).*/{ s//\1/; q; }
13302 test ! -n "$as_dirs" || mkdir $as_dirs
13303 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13305 { (exit 1); exit 1; }; }; }
13309 if test "$ac_dir" != .; then
13310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13311 # A "../" for each directory in $ac_dir_suffix.
13312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13314 ac_dir_suffix= ac_top_builddir=
13318 .) # No --srcdir option. We are building in place.
13320 if test -z "$ac_top_builddir"; then
13323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13325 [\\/]* | ?:[\\/]* ) # Absolute path.
13326 ac_srcdir=$srcdir$ac_dir_suffix;
13327 ac_top_srcdir=$srcdir ;;
13328 *) # Relative path.
13329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13333 .) ac_abs_builddir=$ac_builddir;;
13335 case $ac_builddir in
13336 .) ac_abs_builddir="$ac_dir";;
13337 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
13338 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
13342 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13344 case ${ac_top_builddir}. in
13345 .) ac_abs_top_builddir="$ac_dir";;
13346 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13347 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
13351 .) ac_abs_srcdir=$ac_srcdir;;
13354 .) ac_abs_srcdir="$ac_dir";;
13355 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13356 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
13360 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13362 case $ac_top_srcdir in
13363 .) ac_abs_top_srcdir="$ac_dir";;
13364 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13365 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
13371 if test x"$ac_file" != x-; then
13372 { echo "$as_me:$LINENO: creating $ac_file" >&5
13373 echo "$as_me: creating $ac_file" >&6;}
13376 # Let's still pretend it is `configure' which instantiates (i.e., don't
13377 # use $as_me), people would be surprised to read:
13378 # /* config.h. Generated by config.status. */
13379 if test x"$ac_file" = x-; then
13382 configure_input="$ac_file. "
13384 configure_input=$configure_input"Generated from `echo $ac_file_in |
13385 sed 's,.*/,,'` by configure."
13387 # First look for the input files in the build tree, otherwise in the
13389 ac_file_inputs=`IFS=:
13390 for f in $ac_file_in; do
13392 -) echo $tmp/stdin ;;
13394 # Absolute (can't be DOS-style, as IFS=:)
13395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13396 echo "$as_me: error: cannot find input file: $f" >&2;}
13397 { (exit 1); exit 1; }; }
13400 if test -f "$f"; then
13403 elif test -f "$srcdir/$f"; then
13408 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13409 echo "$as_me: error: cannot find input file: $f" >&2;}
13410 { (exit 1); exit 1; }; }
13413 done` || { (exit 1); exit 1; }
13415 cat >>$CONFIG_STATUS <<_ACEOF
13419 cat >>$CONFIG_STATUS <<\_ACEOF
13421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13422 s,@configure_input@,$configure_input,;t t
13423 s,@srcdir@,$ac_srcdir,;t t
13424 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13425 s,@top_srcdir@,$ac_top_srcdir,;t t
13426 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13427 s,@builddir@,$ac_builddir,;t t
13428 s,@abs_builddir@,$ac_abs_builddir,;t t
13429 s,@top_builddir@,$ac_top_builddir,;t t
13430 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13431 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13433 if test x"$ac_file" != x-; then
13434 mv $tmp/out $ac_file
13442 cat >>$CONFIG_STATUS <<\_ACEOF
13445 # CONFIG_HEADER section.
13448 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13449 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13451 # ac_d sets the value in "#define NAME VALUE" lines.
13452 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13453 ac_dB='[ ].*$,\1#\2'
13456 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13457 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13458 ac_uB='$,\1#\2define\3'
13462 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13465 - | *:- | *:-:* ) # input from stdin
13467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13471 * ) ac_file_in=$ac_file.in ;;
13474 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13475 echo "$as_me: creating $ac_file" >&6;}
13477 # First look for the input files in the build tree, otherwise in the
13479 ac_file_inputs=`IFS=:
13480 for f in $ac_file_in; do
13482 -) echo $tmp/stdin ;;
13484 # Absolute (can't be DOS-style, as IFS=:)
13485 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13486 echo "$as_me: error: cannot find input file: $f" >&2;}
13487 { (exit 1); exit 1; }; }
13488 # Do quote $f, to prevent DOS paths from being IFS'd.
13491 if test -f "$f"; then
13494 elif test -f "$srcdir/$f"; then
13499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13500 echo "$as_me: error: cannot find input file: $f" >&2;}
13501 { (exit 1); exit 1; }; }
13504 done` || { (exit 1); exit 1; }
13505 # Remove the trailing spaces.
13506 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13510 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13511 # `conftest.undefs', that substitutes the proper values into
13512 # config.h.in to produce config.h. The first handles `#define'
13513 # templates, and the second `#undef' templates.
13514 # And first: Protect against being on the right side of a sed subst in
13515 # config.status. Protect against being in an unquoted here document
13516 # in config.status.
13517 rm -f conftest.defines conftest.undefs
13518 # Using a here document instead of a string reduces the quoting nightmare.
13519 # Putting comments in sed scripts is not portable.
13521 # `end' is used to avoid that the second main sed command (meant for
13522 # 0-ary CPP macros) applies to n-ary macro definitions.
13523 # See the Autoconf documentation for `clear'.
13524 cat >confdef2sed.sed <<\_ACEOF
13529 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13531 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13534 # If some macros were called several times there might be several times
13535 # the same #defines, which is useless. Nevertheless, we may not want to
13536 # sort them, since we want the *last* AC-DEFINE to be honored.
13537 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13538 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13539 rm -f confdef2sed.sed
13541 # This sed command replaces #undef with comments. This is necessary, for
13542 # example, in the case of _POSIX_SOURCE, which is predefined and required
13543 # on some systems where configure will not decide to define it.
13544 cat >>conftest.undefs <<\_ACEOF
13545 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13548 # Break up conftest.defines because some shells have a limit on the size
13549 # of here documents, and old seds have small limits too (100 cmds).
13550 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13551 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13552 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13553 echo ' :' >>$CONFIG_STATUS
13554 rm -f conftest.tail
13555 while grep . conftest.defines >/dev/null
13557 # Write a limited-size here document to $tmp/defines.sed.
13558 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13559 # Speed up: don't consider the non `#define' lines.
13560 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13561 # Work around the forget-to-reset-the-flag bug.
13562 echo 't clr' >>$CONFIG_STATUS
13563 echo ': clr' >>$CONFIG_STATUS
13564 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13566 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13568 mv $tmp/out $tmp/in
13570 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13571 rm -f conftest.defines
13572 mv conftest.tail conftest.defines
13574 rm -f conftest.defines
13575 echo ' fi # grep' >>$CONFIG_STATUS
13576 echo >>$CONFIG_STATUS
13578 # Break up conftest.undefs because some shells have a limit on the size
13579 # of here documents, and old seds have small limits too (100 cmds).
13580 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13581 rm -f conftest.tail
13582 while grep . conftest.undefs >/dev/null
13584 # Write a limited-size here document to $tmp/undefs.sed.
13585 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13586 # Speed up: don't consider the non `#undef'
13587 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13588 # Work around the forget-to-reset-the-flag bug.
13589 echo 't clr' >>$CONFIG_STATUS
13590 echo ': clr' >>$CONFIG_STATUS
13591 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13593 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13595 mv $tmp/out $tmp/in
13597 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13598 rm -f conftest.undefs
13599 mv conftest.tail conftest.undefs
13601 rm -f conftest.undefs
13603 cat >>$CONFIG_STATUS <<\_ACEOF
13604 # Let's still pretend it is `configure' which instantiates (i.e., don't
13605 # use $as_me), people would be surprised to read:
13606 # /* config.h. Generated by config.status. */
13607 if test x"$ac_file" = x-; then
13608 echo "/* Generated by configure. */" >$tmp/config.h
13610 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13612 cat $tmp/in >>$tmp/config.h
13614 if test x"$ac_file" != x-; then
13615 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13616 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13617 echo "$as_me: $ac_file is unchanged" >&6;}
13619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621 X"$ac_file" : 'X\(//\)[^/]' \| \
13622 X"$ac_file" : 'X\(//\)$' \| \
13623 X"$ac_file" : 'X\(/\)' \| \
13624 . : '\(.\)' 2>/dev/null ||
13626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13628 /^X\(\/\/\)$/{ s//\1/; q; }
13629 /^X\(\/\).*/{ s//\1/; q; }
13631 { if $as_mkdir_p; then
13636 while test ! -d "$as_dir"; do
13637 as_dirs="$as_dir $as_dirs"
13638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640 X"$as_dir" : 'X\(//\)[^/]' \| \
13641 X"$as_dir" : 'X\(//\)$' \| \
13642 X"$as_dir" : 'X\(/\)' \| \
13643 . : '\(.\)' 2>/dev/null ||
13645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13647 /^X\(\/\/\)$/{ s//\1/; q; }
13648 /^X\(\/\).*/{ s//\1/; q; }
13651 test ! -n "$as_dirs" || mkdir $as_dirs
13652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13654 { (exit 1); exit 1; }; }; }
13657 mv $tmp/config.h $ac_file
13661 rm -f $tmp/config.h
13665 cat >>$CONFIG_STATUS <<\_ACEOF
13668 # CONFIG_COMMANDS section.
13670 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13671 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13672 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13673 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13674 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675 X"$ac_dest" : 'X\(//\)[^/]' \| \
13676 X"$ac_dest" : 'X\(//\)$' \| \
13677 X"$ac_dest" : 'X\(/\)' \| \
13678 . : '\(.\)' 2>/dev/null ||
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13682 /^X\(\/\/\)$/{ s//\1/; q; }
13683 /^X\(\/\).*/{ s//\1/; q; }
13685 { if $as_mkdir_p; then
13690 while test ! -d "$as_dir"; do
13691 as_dirs="$as_dir $as_dirs"
13692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13694 X"$as_dir" : 'X\(//\)[^/]' \| \
13695 X"$as_dir" : 'X\(//\)$' \| \
13696 X"$as_dir" : 'X\(/\)' \| \
13697 . : '\(.\)' 2>/dev/null ||
13699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13701 /^X\(\/\/\)$/{ s//\1/; q; }
13702 /^X\(\/\).*/{ s//\1/; q; }
13705 test ! -n "$as_dirs" || mkdir $as_dirs
13706 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13707 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13708 { (exit 1); exit 1; }; }; }
13712 if test "$ac_dir" != .; then
13713 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13714 # A "../" for each directory in $ac_dir_suffix.
13715 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13717 ac_dir_suffix= ac_top_builddir=
13721 .) # No --srcdir option. We are building in place.
13723 if test -z "$ac_top_builddir"; then
13726 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13728 [\\/]* | ?:[\\/]* ) # Absolute path.
13729 ac_srcdir=$srcdir$ac_dir_suffix;
13730 ac_top_srcdir=$srcdir ;;
13731 *) # Relative path.
13732 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13733 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13736 .) ac_abs_builddir=$ac_builddir;;
13738 case $ac_builddir in
13739 .) ac_abs_builddir="$ac_dir";;
13740 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
13741 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
13745 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13747 case ${ac_top_builddir}. in
13748 .) ac_abs_top_builddir="$ac_dir";;
13749 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13750 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
13754 .) ac_abs_srcdir=$ac_srcdir;;
13757 .) ac_abs_srcdir="$ac_dir";;
13758 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13759 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
13763 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13765 case $ac_top_srcdir in
13766 .) ac_abs_top_srcdir="$ac_dir";;
13767 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13768 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
13773 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13774 echo "$as_me: executing $ac_dest commands" >&6;}
13777 case ${CONFIG_HEADERS} in
13778 *auto-host.h:config.in*)
13781 # Make sure all the subdirs exist.
13784 test -d $d || mkdir $d
13786 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13787 # bootstrapping and the installation procedure can still use
13788 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13789 # FLAGS_TO_PASS has been modified to solve the problem there.
13790 # This is virtually a duplicate of what happens in configure.lang; we do
13791 # an extra check to make sure this only happens if ln -s can be used.
13792 if test "$symbolic_link" = "ln -s"; then
13793 for d in ${subdirs} fixinc ; do
13794 STARTDIR=`${PWDCMD-pwd}`
13796 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13799 $symbolic_link ../$t $t 2>/dev/null
13809 cat >>$CONFIG_STATUS <<\_ACEOF
13811 { (exit 0); exit 0; }
13813 chmod +x $CONFIG_STATUS
13814 ac_clean_files=$ac_clean_files_save
13817 # configure is writing to config.log, and then calls config.status.
13818 # config.status does its own redirection, appending to config.log.
13819 # Unfortunately, on DOS this fails, as config.log is still kept open
13820 # by configure, so config.status won't be able to write to it; its
13821 # output is simply discarded. So we exec the FD to /dev/null,
13822 # effectively closing config.log, so it can be properly (re)opened and
13823 # appended to by config.status. When coming back to configure, we
13824 # need to make the FD available again.
13825 if test "$no_create" != yes; then
13827 ac_config_status_args=
13828 test "$silent" = yes &&
13829 ac_config_status_args="$ac_config_status_args --quiet"
13831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13834 # would make configure fail if this is the last instruction.
13835 $ac_cs_success || { (exit 1); exit 1; }