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 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 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 gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir docobjdir parsedir 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_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_extra_gcc_objs 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 Put generated files in source dir
854 --enable-werror enable -Werror in bootstrap stage2 and later
855 --enable-checking=LIST
856 enable expensive run-time checks. With LIST,
857 enable only specific categories of checks.
858 Categories are: misc,tree,rtl,rtlflag,gc,gcac,fold;
859 default is misc,tree,gc,rtlflag
860 --enable-coverage=LEVEL
861 enable compiler\'s code coverage collection.
862 Use to measure compiler performance and locate
863 unused parts of the compiler. With LEVEL, specify
864 optimization. Values are opt, noopt,
866 --enable-multilib enable library support for multiple ABIs
867 --enable-__cxa_atexit enable __cxa_atexit for C++
868 --enable-threads enable thread usage for target GCC
869 --enable-threads=LIB use LIB thread package for target GCC
870 --enable-objc-gc enable the use of Boehm's garbage collector with
871 the GNU Objective-C runtime
872 --disable-shared don't provide a shared libgcc
873 --enable-intermodule build the compiler in one step
874 --enable-initfini-array use .init_array/.fini_array sections
875 --enable-sjlj-exceptions
876 arrange to use setjmp/longjmp exception handling
877 --enable-libunwind-exceptions force use libunwind for exceptions
878 --disable-win32-registry
879 disable lookup of installation paths in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup (default)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed in a compiler-specific directory
893 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
894 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
895 --with-local-prefix=DIR specifies directory to put local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor in DIR
900 (relative to PREFIX) as well as PREFIX/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld (full pathname)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as (full pathname)
905 --with-stabs arrange to use stabs instead of host debug format
906 --with-dwarf2 force the default debug format to be DWARF 2
907 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
908 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
909 --with-gc={simple,page,zone} choose the garbage collection mechanism to use
911 --with-system-zlib use installed libz
912 --with-slibdir=DIR shared libraries in DIR LIBDIR
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 # Do not use `cd foo && pwd` to compute absolute paths, because
961 # the directories may not exist.
963 .) ac_abs_builddir="$ac_dir";;
966 .) ac_abs_builddir=`pwd`;;
967 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
968 *) ac_abs_builddir=`pwd`/"$ac_dir";;
971 case $ac_abs_builddir in
972 .) ac_abs_top_builddir=${ac_top_builddir}.;;
974 case ${ac_top_builddir}. in
975 .) ac_abs_top_builddir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
977 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
980 case $ac_abs_builddir in
981 .) ac_abs_srcdir=$ac_srcdir;;
984 .) ac_abs_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
986 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
989 case $ac_abs_builddir in
990 .) ac_abs_top_srcdir=$ac_top_srcdir;;
992 case $ac_top_srcdir in
993 .) ac_abs_top_srcdir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
995 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000 # Check for guested configure; otherwise get Cygnus style configure.
1001 if test -f $ac_srcdir/configure.gnu; then
1003 $SHELL $ac_srcdir/configure.gnu --help=recursive
1004 elif test -f $ac_srcdir/configure; then
1006 $SHELL $ac_srcdir/configure --help=recursive
1007 elif test -f $ac_srcdir/configure.ac ||
1008 test -f $ac_srcdir/configure.in; then
1010 $ac_configure --help
1012 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1018 test -n "$ac_init_help" && exit 0
1019 if $ac_init_version; then
1022 Copyright (C) 2003 Free Software Foundation, Inc.
1023 This configure script is free software; the Free Software Foundation
1024 gives unlimited permission to copy, distribute and modify it.
1030 This file contains any messages produced by compilers while
1031 running configure, to aid debugging if configure makes a mistake.
1033 It was created by $as_me, which was
1034 generated by GNU Autoconf 2.58. Invocation command line was
1045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1052 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1054 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1055 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1057 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1058 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1059 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1060 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1068 test -z "$as_dir" && as_dir=.
1069 echo "PATH: $as_dir"
1084 # Keep a trace of the command line.
1085 # Strip out --no-create and --no-recursion so they do not pile up.
1086 # Strip out --silent because we don't want to record it for future runs.
1087 # Also quote any args containing shell meta-characters.
1088 # Make two passes to allow for proper duplicate-argument suppression.
1093 ac_must_keep_next=false
1099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1103 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1104 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1107 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1109 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1110 if test $ac_must_keep_next = true; then
1111 ac_must_keep_next=false # Got value, back to normal.
1114 *=* | --config-cache | -C | -disable-* | --disable-* \
1115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1117 | -with-* | --with-* | -without-* | --without-* | --x)
1118 case "$ac_configure_args0 " in
1119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1122 -* ) ac_must_keep_next=true ;;
1125 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1126 # Get rid of the leading space.
1132 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1133 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1135 # When interrupted or exit'd, cleanup temporary files, and complete
1136 # config.log. We remove comments because anyway the quotes in there
1137 # would cause problems or look ugly.
1138 # WARNING: Be sure not to use single quotes in there, as some shells,
1139 # such as our DU 5.0 friend, will then `close' the trap.
1140 trap 'exit_status=$?
1141 # Save into config.log some information that might help in debugging.
1146 ## ---------------- ##
1147 ## Cache variables. ##
1148 ## ---------------- ##
1151 # The following way of writing the cache mishandles newlines in values,
1154 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1157 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1162 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1169 ## ----------------- ##
1170 ## Output variables. ##
1171 ## ----------------- ##
1174 for ac_var in $ac_subst_vars
1176 eval ac_val=$`echo $ac_var`
1177 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -n "$ac_subst_files"; then
1188 for ac_var in $ac_subst_files
1190 eval ac_val=$`echo $ac_var`
1191 echo "$ac_var='"'"'$ac_val'"'"'"
1196 if test -s confdefs.h; then
1203 sed "/^$/d" confdefs.h | sort
1206 test "$ac_signal" != 0 &&
1207 echo "$as_me: caught signal $ac_signal"
1208 echo "$as_me: exit $exit_status"
1210 rm -f core *.core &&
1211 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1214 for ac_signal in 1 2 13 15; do
1215 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1220 rm -rf conftest* confdefs.h
1221 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1224 # Predefined preprocessor variables.
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_NAME "$PACKAGE_NAME"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_STRING "$PACKAGE_STRING"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1251 # Let the site file select an alternate cache file if it wants to.
1252 # Prefer explicitly selected file to automatically selected ones.
1253 if test -z "$CONFIG_SITE"; then
1254 if test "x$prefix" != xNONE; then
1255 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1257 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1260 for ac_site_file in $CONFIG_SITE; do
1261 if test -r "$ac_site_file"; then
1262 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1263 echo "$as_me: loading site script $ac_site_file" >&6;}
1264 sed 's/^/| /' "$ac_site_file" >&5
1269 if test -r "$cache_file"; then
1270 # Some versions of bash will fail to source /dev/null (special
1271 # files actually), so we avoid doing that.
1272 if test -f "$cache_file"; then
1273 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1274 echo "$as_me: loading cache $cache_file" >&6;}
1276 [\\/]* | ?:[\\/]* ) . $cache_file;;
1277 *) . ./$cache_file;;
1281 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1282 echo "$as_me: creating cache $cache_file" >&6;}
1286 # Check that the precious variables saved in the cache have kept the same
1288 ac_cache_corrupted=false
1289 for ac_var in `(set) 2>&1 |
1290 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1291 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1292 eval ac_new_set=\$ac_env_${ac_var}_set
1293 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1294 eval ac_new_val="\$ac_env_${ac_var}_value"
1295 case $ac_old_set,$ac_new_set in
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1306 if test "x$ac_old_val" != "x$ac_new_val"; then
1307 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1308 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1309 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1310 echo "$as_me: former value: $ac_old_val" >&2;}
1311 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1312 echo "$as_me: current value: $ac_new_val" >&2;}
1313 ac_cache_corrupted=:
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1361 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1364 # Determine the host, build, and target systems
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367 if test -f $ac_dir/install-sh; then
1369 ac_install_sh="$ac_aux_dir/install-sh -c"
1371 elif test -f $ac_dir/install.sh; then
1373 ac_install_sh="$ac_aux_dir/install.sh -c"
1375 elif test -f $ac_dir/shtool; then
1377 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 if test -z "$ac_aux_dir"; then
1382 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384 { (exit 1); exit 1; }; }
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403 ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407 { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422 echo "$as_me:$LINENO: checking host system type" >&5
1423 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1424 if test "${ac_cv_host+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_host_alias=$host_alias
1428 test -z "$ac_cv_host_alias" &&
1429 ac_cv_host_alias=$ac_cv_build_alias
1430 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1431 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1437 echo "${ECHO_T}$ac_cv_host" >&6
1439 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444 echo "$as_me:$LINENO: checking target system type" >&5
1445 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1446 if test "${ac_cv_target+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1449 ac_cv_target_alias=$target_alias
1450 test "x$ac_cv_target_alias" = "x" &&
1451 ac_cv_target_alias=$ac_cv_host_alias
1452 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1454 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1455 { (exit 1); exit 1; }; }
1458 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1459 echo "${ECHO_T}$ac_cv_target" >&6
1460 target=$ac_cv_target
1461 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466 # The aliases save the names the user supplied, while $host etc.
1467 # will get canonicalized.
1468 test -n "$target_alias" &&
1469 test "$program_prefix$program_suffix$program_transform_name" = \
1471 program_prefix=${target_alias}-
1473 # Determine the noncanonical target name, for directory use.
1474 case ${build_alias} in
1475 "") build_noncanonical=${build} ;;
1476 *) build_noncanonical=${build_alias} ;;
1479 case ${host_alias} in
1480 "") host_noncanonical=${build_noncanonical} ;;
1481 *) host_noncanonical=${host_alias} ;;
1484 case ${target_alias} in
1485 "") target_noncanonical=${host_noncanonical} ;;
1486 *) target_noncanonical=${target_alias} ;;
1490 # Determine the target- and build-specific subdirectories
1491 # Prefix 'build-' so this never conflicts with target_subdir.
1492 build_subdir="build-${build_noncanonical}"
1493 # Not really a subdirectory, but here for completeness.
1496 target_subdir=${target_noncanonical}
1499 # Set program_transform_name
1500 test "$program_prefix" != NONE &&
1501 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1502 # Use a double $ so make ignores it.
1503 test "$program_suffix" != NONE &&
1504 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1505 # Double any \ or $. echo might interpret backslashes.
1506 # By default was `s,x,x', remove it if useless.
1507 cat <<\_ACEOF >conftest.sed
1508 s/[\\$]/&&/g;s/;s,x,x,$//
1510 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1514 # Check for bogus environment variables.
1515 # Test if LIBRARY_PATH contains the notation for the current directory
1516 # since this would lead to problems installing/building glibc.
1517 # LIBRARY_PATH contains the current directory if one of the following
1519 # - one of the terminals (":" and ";") is the first or last sign
1520 # - two terminals occur directly after each other
1521 # - the path contains an element with a dot in it
1522 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1523 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1524 case ${LIBRARY_PATH} in
1525 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1526 library_path_setting="contains current directory"
1529 library_path_setting="ok"
1532 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1533 echo "${ECHO_T}$library_path_setting" >&6
1534 if test "$library_path_setting" != "ok"; then
1535 { { echo "$as_me:$LINENO: error:
1536 *** LIBRARY_PATH shouldn't contain the current directory when
1537 *** building gcc. Please change the environment variable
1538 *** and run configure again." >&5
1539 echo "$as_me: error:
1540 *** LIBRARY_PATH shouldn't contain the current directory when
1541 *** building gcc. Please change the environment variable
1542 *** and run configure again." >&2;}
1543 { (exit 1); exit 1; }; }
1546 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1547 # since this would lead to problems installing/building glibc.
1548 # GCC_EXEC_PREFIX contains the current directory if one of the following
1550 # - one of the terminals (":" and ";") is the first or last sign
1551 # - two terminals occur directly after each other
1552 # - the path contains an element with a dot in it
1553 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1554 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1555 case ${GCC_EXEC_PREFIX} in
1556 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1557 gcc_exec_prefix_setting="contains current directory"
1560 gcc_exec_prefix_setting="ok"
1563 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1564 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1565 if test "$gcc_exec_prefix_setting" != "ok"; then
1566 { { echo "$as_me:$LINENO: error:
1567 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1568 *** building gcc. Please change the environment variable
1569 *** and run configure again." >&5
1570 echo "$as_me: error:
1571 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&2;}
1574 { (exit 1); exit 1; }; }
1581 # Specify the local prefix
1584 # Check whether --with-local-prefix or --without-local-prefix was given.
1585 if test "${with_local_prefix+set}" = set; then
1586 withval="$with_local_prefix"
1587 case "${withval}" in
1588 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1589 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1590 { (exit 1); exit 1; }; } ;;
1592 *) local_prefix=$with_local_prefix ;;
1596 # Default local prefix if it is empty
1597 if test x$local_prefix = x; then
1598 local_prefix=/usr/local
1601 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1602 # passed in by the toplevel make and thus we'd get different behavior
1603 # depending on where we built the sources.
1604 gcc_gxx_include_dir=
1605 # Specify the g++ header file directory
1607 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1608 if test "${with_gxx_include_dir+set}" = set; then
1609 withval="$with_gxx_include_dir"
1610 case "${withval}" in
1611 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1612 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1613 { (exit 1); exit 1; }; } ;;
1615 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
1619 if test x${gcc_gxx_include_dir} = x; then
1620 if test x${enable_version_specific_runtime_libs} = xyes; then
1621 gcc_gxx_include_dir='${libsubdir}/include/c++'
1623 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
1624 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1629 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1630 if test "${with_cpp_install_dir+set}" = set; then
1631 withval="$with_cpp_install_dir"
1632 if test x$withval = xyes; then
1633 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1634 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1635 { (exit 1); exit 1; }; }
1636 elif test x$withval != xno; then
1637 cpp_install_dir=$withval
1641 # We would like to our source tree to be readonly. However when releases or
1642 # pre-releases are generated, the flex/bison generated files as well as the
1643 # various formats of manuals need to be included along with the rest of the
1644 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1647 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1648 if test "${enable_generated_files_in_srcdir+set}" = set; then
1649 enableval="$enable_generated_files_in_srcdir"
1650 case ${enableval} in
1651 no) parsedir='$(objdir)'; docobjdir='$(objdir)/doc';;
1652 *) parsedir='$(srcdir)'; docobjdir='$(srcdir)/doc';;
1655 parsedir='$(objdir)'; docobjdir='$(objdir)/doc';
1658 # -------------------
1659 # Find default linker
1660 # -------------------
1664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1665 if test "${with_gnu_ld+set}" = set; then
1666 withval="$with_gnu_ld"
1667 gnu_ld_flag="$with_gnu_ld"
1672 # With pre-defined ld
1674 # Check whether --with-ld or --without-ld was given.
1675 if test "${with_ld+set}" = set; then
1677 DEFAULT_LINKER="$with_ld"
1679 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1680 if test ! -x "$DEFAULT_LINKER"; then
1681 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1682 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1683 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1687 cat >>confdefs.h <<_ACEOF
1688 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1693 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1694 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1695 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1696 if test x"$gnu_ld_flag" = x"no"; then
1697 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1698 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1700 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1701 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1708 # ----------------------
1709 # Find default assembler
1710 # ----------------------
1714 # Check whether --with-gnu-as or --without-gnu-as was given.
1715 if test "${with_gnu_as+set}" = set; then
1716 withval="$with_gnu_as"
1717 gas_flag="$with_gnu_as"
1723 # Check whether --with-as or --without-as was given.
1724 if test "${with_as+set}" = set; then
1726 DEFAULT_ASSEMBLER="$with_as"
1728 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1729 if test ! -x "$DEFAULT_ASSEMBLER"; then
1730 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1731 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1732 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1736 cat >>confdefs.h <<_ACEOF
1737 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1742 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1743 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1744 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1745 if test x"$gas_flag" = x"no"; then
1746 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1747 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1749 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1753 echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1761 # Find the native compiler
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767 if test -n "$ac_tool_prefix"; then
1768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1804 if test -z "$ac_cv_prog_CC"; then
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807 set dummy gcc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849 set dummy ${ac_tool_prefix}cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$ac_cv_prog_CC"; then
1886 # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913 if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915 echo "${ECHO_T}$ac_ct_CC" >&6
1917 echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1927 if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929 set dummy cc; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected=yes
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1972 if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6
1976 echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6
2016 echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$CC" && break
2023 if test -z "$CC"; then
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028 set dummy $ac_prog; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2058 echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2062 test -n "$ac_ct_CC" && break
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO:" \
2079 "checking for C compiler version" >&5
2080 ac_compiler=`set X $ac_compile; echo $2`
2081 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2097 cat >conftest.$ac_ext <<_ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h. */
2112 ac_clean_files_save=$ac_clean_files
2113 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114 # Try to create an executable without -o first, disregard a.out.
2115 # It will help us diagnose broken compilers, and finding out an intuition
2117 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121 (eval $ac_link_default) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 # Find the output, starting from the most likely. This scheme is
2126 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2129 # Be careful to initialize this variable, since it used to be cached.
2130 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132 # b.out is created by i960 compilers.
2133 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135 test -f "$ac_file" || continue
2137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2140 # This is the source file.
2143 # We found the default executable, but exeext='' is most
2147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 # FIXME: I believe we export ac_cv_exeext for Libtool,
2149 # but it would be cool to find out if it's true. Does anybody
2150 # maintain Libtool? --akim.
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2161 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162 See \`config.log' for more details." >&5
2163 echo "$as_me: error: C compiler cannot create executables
2164 See \`config.log' for more details." >&2;}
2165 { (exit 77); exit 77; }; }
2168 ac_exeext=$ac_cv_exeext
2169 echo "$as_me:$LINENO: result: $ac_file" >&5
2170 echo "${ECHO_T}$ac_file" >&6
2172 # Check the compiler produces executables we can run. If not, either
2173 # the compiler is broken, or we cross compile.
2174 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177 # If not cross compiling, check that we can run a simple program.
2178 if test "$cross_compiling" != yes; then
2179 if { ac_try='./$ac_file'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2187 if test "$cross_compiling" = maybe; then
2190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191 If you meant to cross compile, use \`--host'.
2192 See \`config.log' for more details." >&5
2193 echo "$as_me: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&2;}
2196 { (exit 1); exit 1; }; }
2200 echo "$as_me:$LINENO: result: yes" >&5
2201 echo "${ECHO_T}yes" >&6
2203 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204 ac_clean_files=$ac_clean_files_save
2205 # Check the compiler produces executables we can run. If not, either
2206 # the compiler is broken, or we cross compile.
2207 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210 echo "${ECHO_T}$cross_compiling" >&6
2212 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215 (eval $ac_link) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2221 # work properly (i.e., refer to `conftest.exe'), while it won't with
2223 for ac_file in conftest.exe conftest conftest.*; do
2224 test -f "$ac_file" || continue
2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2241 rm -f conftest$ac_cv_exeext
2242 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243 echo "${ECHO_T}$ac_cv_exeext" >&6
2245 rm -f conftest.$ac_ext
2246 EXEEXT=$ac_cv_exeext
2248 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250 if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 rm -f conftest.o conftest.obj
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295 echo "${ECHO_T}$ac_cv_objext" >&6
2296 OBJEXT=$ac_cv_objext
2298 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>conftest.er1
2325 grep -v '^ *+' conftest.er1 >conftest.err
2327 cat conftest.err >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; } &&
2336 { ac_try='test -s conftest.$ac_objext'
2337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; }; then
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355 GCC=`test $ac_compiler_gnu = yes && echo yes`
2356 ac_test_CFLAGS=${CFLAGS+set}
2357 ac_save_CFLAGS=$CFLAGS
2359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361 if test "${ac_cv_prog_cc_g+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 cat >conftest.$ac_ext <<_ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>conftest.er1
2383 grep -v '^ *+' conftest.er1 >conftest.err
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2411 if test "$ac_test_CFLAGS" = set; then
2412 CFLAGS=$ac_save_CFLAGS
2413 elif test $ac_cv_prog_cc_g = yes; then
2414 if test "$GCC" = yes; then
2420 if test "$GCC" = yes; then
2426 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2427 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2428 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_prog_cc_stdc=no
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2441 #include <sys/types.h>
2442 #include <sys/stat.h>
2443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2444 struct buf { int x; };
2445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2446 static char *e (p, i)
2452 static char *f (char * (*g) (char **, int), char **p, ...)
2457 s = g (p, va_arg (v,int));
2462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2463 function prototypes and stuff, but not '\xHH' hex character constants.
2464 These don't provoke an error unfortunately, instead are silently treated
2465 as 'x'. The following induces an error, until -std1 is added to get
2466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2467 array size at least. It's necessary to write '\x00'==0 to get something
2468 that's true only with -std1. */
2469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2516 ac_cv_prog_cc_stdc=$ac_arg
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext
2525 rm -f conftest.$ac_ext conftest.$ac_objext
2530 case "x$ac_cv_prog_cc_stdc" in
2532 echo "$as_me:$LINENO: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2535 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 # Some people use a C++ compiler to compile C. Since we use `exit',
2541 # in C++ we need to declare it. In case someone uses the same compiler
2542 # for both compiling C and C++ we need to have the C++ compiler decide
2543 # the declaration of exit, since it's the most demanding environment.
2544 cat >conftest.$ac_ext <<_ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1 >conftest.err
2555 cat conftest.err >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; } &&
2564 { ac_try='test -s conftest.$ac_objext'
2565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569 (exit $ac_status); }; }; then
2570 for ac_declaration in \
2572 'extern "C" void std::exit (int) throw (); using std::exit;' \
2573 'extern "C" void std::exit (int); using std::exit;' \
2574 'extern "C" void exit (int) throw ();' \
2575 'extern "C" void exit (int);' \
2578 cat >conftest.$ac_ext <<_ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 cat >conftest.$ac_ext <<_ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
2647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668 if test -n "$ac_declaration"; then
2669 echo '#ifdef __cplusplus' >>confdefs.h
2670 echo $ac_declaration >>confdefs.h
2671 echo '#endif' >>confdefs.h
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 if test "x$CC" != xcc; then
2687 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2688 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2690 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2691 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2693 set dummy $CC; ac_cc=`echo $2 |
2694 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2695 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2713 # Make sure it works both with $CC and with simple cc.
2714 # We do the test twice because some compilers refuse to overwrite an
2715 # existing .o file with -o, though they will create one.
2716 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2717 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); };
2728 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2729 if test "x$CC" != xcc; then
2730 # Test first that cc exists at all.
2731 if { ac_try='cc -c conftest.$ac_ext >&5'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); };
2752 # cc exists but doesn't like -o.
2753 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2758 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2763 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2764 echo "$as_me:$LINENO: result: yes" >&5
2765 echo "${ECHO_T}yes" >&6
2767 echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2770 cat >>confdefs.h <<\_ACEOF
2771 #define NO_MINUS_C_MINUS_O 1
2776 # autoconf is lame and doesn't give us any substitution variable for this.
2777 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2778 NO_MINUS_C_MINUS_O=yes
2780 OUTPUT_OPTION='-o $@'
2785 # -------------------------
2786 # Check C compiler features
2787 # -------------------------
2790 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2791 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2795 save_CFLAGS="$CFLAGS"
2796 CFLAGS="-Wno-long-long"
2797 cat >conftest.$ac_ext <<_ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814 (eval $ac_compile) 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; } &&
2827 { ac_try='test -s conftest.$ac_objext'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; }; then
2833 ac_cv_prog_cc_no_long_long=yes
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 ac_cv_prog_cc_no_long_long=no
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 CFLAGS="$save_CFLAGS"
2843 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2844 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2847 ac_cpp='$CPP $CPPFLAGS'
2848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2852 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2853 # On Suns, sometimes $CPP names a directory.
2854 if test -n "$CPP" && test -d "$CPP"; then
2857 if test -z "$CPP"; then
2858 if test "${ac_cv_prog_CPP+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 # Double quotes because CPP needs to be expanded
2862 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2865 for ac_c_preproc_warn_flag in '' yes
2867 # Use a header file that comes with gcc, so configuring glibc
2868 # with a fresh cross-compiler works.
2869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2870 # <limits.h> exists even on freestanding compilers.
2871 # On the NeXT, cc -E runs the code through the compiler's parser,
2872 # not just through cpp. "Syntax error" is here to catch this case.
2873 cat >conftest.$ac_ext <<_ACEOF
2876 cat confdefs.h >>conftest.$ac_ext
2877 cat >>conftest.$ac_ext <<_ACEOF
2878 /* end confdefs.h. */
2880 # include <limits.h>
2882 # include <assert.h>
2886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2889 grep -v '^ *+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_c_preproc_warn_flag
2896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2903 if test -z "$ac_cpp_err"; then
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2909 # Broken: fails on valid input.
2912 rm -f conftest.err conftest.$ac_ext
2914 # OK, works on sane cases. Now check whether non-existent headers
2915 # can be detected and how.
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 #include <ac_nonexistent.h>
2924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } >/dev/null; then
2932 if test -s conftest.err; then
2933 ac_cpp_err=$ac_c_preproc_warn_flag
2934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2941 if test -z "$ac_cpp_err"; then
2942 # Broken: success on invalid input.
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2948 # Passes both tests.
2952 rm -f conftest.err conftest.$ac_ext
2955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2956 rm -f conftest.err conftest.$ac_ext
2957 if $ac_preproc_ok; then
2969 echo "$as_me:$LINENO: result: $CPP" >&5
2970 echo "${ECHO_T}$CPP" >&6
2972 for ac_c_preproc_warn_flag in '' yes
2974 # Use a header file that comes with gcc, so configuring glibc
2975 # with a fresh cross-compiler works.
2976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2977 # <limits.h> exists even on freestanding compilers.
2978 # On the NeXT, cc -E runs the code through the compiler's parser,
2979 # not just through cpp. "Syntax error" is here to catch this case.
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2987 # include <limits.h>
2989 # include <assert.h>
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3010 if test -z "$ac_cpp_err"; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 # Broken: fails on valid input.
3019 rm -f conftest.err conftest.$ac_ext
3021 # OK, works on sane cases. Now check whether non-existent headers
3022 # can be detected and how.
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #include <ac_nonexistent.h>
3031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev/null; then
3039 if test -s conftest.err; then
3040 ac_cpp_err=$ac_c_preproc_warn_flag
3041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3048 if test -z "$ac_cpp_err"; then
3049 # Broken: success on invalid input.
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 # Passes both tests.
3059 rm -f conftest.err conftest.$ac_ext
3062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3063 rm -f conftest.err conftest.$ac_ext
3064 if $ac_preproc_ok; then
3067 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3070 See \`config.log' for more details." >&2;}
3071 { (exit 1); exit 1; }; }
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 for ac_kw in inline __inline__ __inline; do
3087 cat >conftest.$ac_ext <<_ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3100 rm -f conftest.$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest.$ac_objext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 ac_cv_c_inline=$ac_kw; break
3123 echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3132 echo "${ECHO_T}$ac_cv_c_inline" >&6
3135 case $ac_cv_c_inline in
3138 case $ac_cv_c_inline in
3140 *) ac_val=$ac_cv_c_inline;;
3142 cat >>confdefs.h <<_ACEOF
3144 #define inline $ac_val
3151 echo "$as_me:$LINENO: checking for long long int" >&5
3152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3153 if test "${ac_cv_c_long_long+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3173 (eval $ac_compile) 2>conftest.er1
3175 grep -v '^ *+' conftest.er1 >conftest.err
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } &&
3180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; } &&
3186 { ac_try='test -s conftest.$ac_objext'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; }; then
3192 ac_cv_c_long_long=yes
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 ac_cv_c_long_long=no
3199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3201 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3202 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3203 if test $ac_cv_c_long_long = yes; then
3205 cat >>confdefs.h <<\_ACEOF
3206 #define HAVE_LONG_LONG 1
3210 echo "$as_me:$LINENO: checking for __int64" >&5
3211 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3212 if test "${ac_cv_c___int64+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>conftest.er1
3234 grep -v '^ *+' conftest.er1 >conftest.err
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); }; } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3260 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3261 echo "${ECHO_T}$ac_cv_c___int64" >&6
3262 if test $ac_cv_c___int64 = yes; then
3264 cat >>confdefs.h <<\_ACEOF
3265 #define HAVE___INT64 1
3270 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3271 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3272 if test "${gcc_cv_c__bool+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; }; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3322 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3323 if test $gcc_cv_c__bool = yes; then
3325 cat >>confdefs.h <<\_ACEOF
3326 #define HAVE__BOOL 1
3332 # sizeof(char) is 1 by definition.
3333 echo "$as_me:$LINENO: checking size of void *" >&5
3334 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3335 if test "${ac_cv_sizeof_void_p+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3339 cat >conftest.$ac_ext <<_ACEOF
3342 cat confdefs.h >>conftest.$ac_ext
3343 cat >>conftest.$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3345 #include "confdefs.h"
3346 #include <sys/types.h>
3352 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3357 rm -f conftest.$ac_objext
3358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359 (eval $ac_compile) 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; } &&
3372 { ac_try='test -s conftest.$ac_objext'
3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_sizeof_void_p=$ac_size
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3390 if test x$ac_cv_sizeof_void_p = x ; then
3391 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3392 echo "$as_me: error: cannot determine a size for void *" >&2;}
3393 { (exit 1); exit 1; }; }
3395 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3396 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3398 cat >>confdefs.h <<_ACEOF
3399 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3403 echo "$as_me:$LINENO: checking size of short" >&5
3404 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3405 if test "${ac_cv_sizeof_short+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3422 switch (0) case 0: case (sizeof (short) == $ac_size):;
3427 rm -f conftest.$ac_objext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3429 (eval $ac_compile) 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_sizeof_short=$ac_size
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3455 if test x$ac_cv_sizeof_short != x ; then break; fi
3460 if test x$ac_cv_sizeof_short = x ; then
3461 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3462 echo "$as_me: error: cannot determine a size for short" >&2;}
3463 { (exit 1); exit 1; }; }
3465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3466 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3468 cat >>confdefs.h <<_ACEOF
3469 #define SIZEOF_SHORT $ac_cv_sizeof_short
3473 echo "$as_me:$LINENO: checking size of int" >&5
3474 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3475 if test "${ac_cv_sizeof_int+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3479 cat >conftest.$ac_ext <<_ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3492 switch (0) case 0: case (sizeof (int) == $ac_size):;
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_sizeof_int=$ac_size
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525 if test x$ac_cv_sizeof_int != x ; then break; fi
3530 if test x$ac_cv_sizeof_int = x ; then
3531 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3532 echo "$as_me: error: cannot determine a size for int" >&2;}
3533 { (exit 1); exit 1; }; }
3535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3536 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3538 cat >>confdefs.h <<_ACEOF
3539 #define SIZEOF_INT $ac_cv_sizeof_int
3543 echo "$as_me:$LINENO: checking size of long" >&5
3544 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3545 if test "${ac_cv_sizeof_long+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 #include "confdefs.h"
3556 #include <sys/types.h>
3562 switch (0) case 0: case (sizeof (long) == $ac_size):;
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569 (eval $ac_compile) 2>conftest.er1
3571 grep -v '^ *+' conftest.er1 >conftest.err
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } &&
3576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_sizeof_long=$ac_size
3590 echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595 if test x$ac_cv_sizeof_long != x ; then break; fi
3600 if test x$ac_cv_sizeof_long = x ; then
3601 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3602 echo "$as_me: error: cannot determine a size for long" >&2;}
3603 { (exit 1); exit 1; }; }
3605 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3606 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3608 cat >>confdefs.h <<_ACEOF
3609 #define SIZEOF_LONG $ac_cv_sizeof_long
3613 if test $ac_cv_c_long_long = yes; then
3614 echo "$as_me:$LINENO: checking size of long long" >&5
3615 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3616 if test "${ac_cv_sizeof_long_long+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 #include "confdefs.h"
3627 #include <sys/types.h>
3633 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3638 rm -f conftest.$ac_objext
3639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3640 (eval $ac_compile) 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } &&
3647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_cv_sizeof_long_long=$ac_size
3661 echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3666 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3671 if test x$ac_cv_sizeof_long_long = x ; then
3672 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3673 echo "$as_me: error: cannot determine a size for long long" >&2;}
3674 { (exit 1); exit 1; }; }
3676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3677 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3679 cat >>confdefs.h <<_ACEOF
3680 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3685 if test $ac_cv_c___int64 = yes; then
3686 echo "$as_me:$LINENO: checking size of __int64" >&5
3687 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3688 if test "${ac_cv_sizeof___int64+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include "confdefs.h"
3699 #include <sys/types.h>
3705 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3714 grep -v '^ *+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_sizeof___int64=$ac_size
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738 if test x$ac_cv_sizeof___int64 != x ; then break; fi
3743 if test x$ac_cv_sizeof___int64 = x ; then
3744 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3745 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3746 { (exit 1); exit 1; }; }
3748 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3749 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3751 cat >>confdefs.h <<_ACEOF
3752 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3762 # See if GNAT has been installed
3766 if test -n "$ac_tool_prefix"; then
3767 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3768 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
3769 echo "$as_me:$LINENO: checking for $ac_word" >&5
3770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3771 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if test -n "$GNATBIND"; then
3775 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
3785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 GNATBIND=$ac_cv_prog_GNATBIND
3794 if test -n "$GNATBIND"; then
3795 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3796 echo "${ECHO_T}$GNATBIND" >&6
3798 echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6
3803 if test -z "$ac_cv_prog_GNATBIND"; then
3804 ac_ct_GNATBIND=$GNATBIND
3805 # Extract the first word of "gnatbind", so it can be a program name with args.
3806 set dummy gnatbind; ac_word=$2
3807 echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3809 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 if test -n "$ac_ct_GNATBIND"; then
3813 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND="no"
3832 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
3833 if test -n "$ac_ct_GNATBIND"; then
3834 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3835 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 GNATBIND=$ac_ct_GNATBIND
3843 GNATBIND="$ac_cv_prog_GNATBIND"
3846 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3847 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3848 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 cat >conftest.adb <<EOF
3852 procedure conftest is begin null; end conftest;
3854 gcc_cv_cc_supports_ada=no
3855 # There is a bug in old released versions of GCC which causes the
3856 # driver to exit successfully when the appropriate language module
3857 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3858 # Therefore we must check for the error message as well as an
3859 # unsuccessful exit.
3860 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3861 if test x"$errors" = x; then
3862 gcc_cv_cc_supports_ada=yes
3867 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3868 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3870 if test x$GNATBIND != xno && test x$gcc_cv_supports_ada != xno; then
3877 # ---------------------
3878 # Warnings and checking
3879 # ---------------------
3882 if test $ac_cv_prog_cc_no_long_long = yes ; then
3883 strict1_warn="-pedantic -Wno-long-long"
3887 # If the native compiler is GCC, we can enable warnings even in stage1.
3888 # That's useful for people building cross-compilers, or just running a
3891 if test "x$GCC" = "xyes"; then
3892 warn_cflags='$(GCC_WARN_CFLAGS)'
3896 # Enable -Werror in bootstrap stage2 and later.
3897 # Change the default to "no" on release branches.
3898 # Check whether --enable-werror or --disable-werror was given.
3899 if test "${enable_werror+set}" = set; then
3900 enableval="$enable_werror"
3905 if test x$enable_werror = xyes ; then
3910 # Enable expensive internal checks
3911 # Check whether --enable-checking or --disable-checking was given.
3912 if test "${enable_checking+set}" = set; then
3913 enableval="$enable_checking"
3917 ac_rtlflag_checking=
3919 ac_gc_always_collect=
3921 case "${enableval}" in
3922 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;
3923 ac_rtlflag_checking=1 ;;
3925 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3926 set fnord $enableval; shift
3931 misc) ac_checking=1 ;;
3932 tree) ac_tree_checking=1 ;;
3933 rtlflag) ac_rtlflag_checking=1 ;;
3934 rtl) ac_rtl_checking=1 ;;
3935 gc) ac_gc_checking=1 ;;
3936 gcac) ac_gc_always_collect=1 ;;
3937 fold) ac_fold_checking=1 ;;
3938 valgrind) ac_checking_valgrind=1 ;;
3939 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3940 echo "$as_me: error: unknown check category $check" >&2;}
3941 { (exit 1); exit 1; }; } ;;
3948 # Enable some checks by default for development versions of GCC
3949 ac_checking=1; ac_tree_checking=1; ac_gc_checking=1; ac_rtlflag_checking=1;
3952 if test x$ac_checking != x ; then
3954 cat >>confdefs.h <<\_ACEOF
3955 #define ENABLE_CHECKING 1
3958 nocommon_flag=-fno-common
3961 if test x$ac_tree_checking != x ; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define ENABLE_TREE_CHECKING 1
3968 if test x$ac_rtl_checking != x ; then
3970 cat >>confdefs.h <<\_ACEOF
3971 #define ENABLE_RTL_CHECKING 1
3975 if test x$ac_rtlflag_checking != x ; then
3977 cat >>confdefs.h <<\_ACEOF
3978 #define ENABLE_RTL_FLAG_CHECKING 1
3982 if test x$ac_gc_checking != x ; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define ENABLE_GC_CHECKING 1
3989 if test x$ac_gc_always_collect != x ; then
3991 cat >>confdefs.h <<\_ACEOF
3992 #define ENABLE_GC_ALWAYS_COLLECT 1
3996 if test x$ac_fold_checking != x ; then
3998 cat >>confdefs.h <<\_ACEOF
3999 #define ENABLE_FOLD_CHECKING 1
4003 valgrind_path_defines=
4007 echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4009 if test "${ac_cv_prog_egrep+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4013 then ac_cv_prog_egrep='grep -E'
4014 else ac_cv_prog_egrep='egrep'
4017 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4018 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4019 EGREP=$ac_cv_prog_egrep
4022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4024 if test "${ac_cv_header_stdc+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4046 rm -f conftest.$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; } &&
4061 { ac_try='test -s conftest.$ac_objext'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
4067 ac_cv_header_stdc=yes
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 ac_cv_header_stdc=no
4074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4076 if test $ac_cv_header_stdc = yes; then
4077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 $EGREP "memchr" >/dev/null 2>&1; then
4091 ac_cv_header_stdc=no
4097 if test $ac_cv_header_stdc = yes; then
4098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4109 $EGREP "free" >/dev/null 2>&1; then
4112 ac_cv_header_stdc=no
4118 if test $ac_cv_header_stdc = yes; then
4119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4120 if test "$cross_compiling" = yes; then
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4130 #if ((' ' & 0x0FF) == 0x020)
4131 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4132 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4134 # define ISLOWER(c) \
4135 (('a' <= (c) && (c) <= 'i') \
4136 || ('j' <= (c) && (c) <= 'r') \
4137 || ('s' <= (c) && (c) <= 'z'))
4138 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4141 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4146 for (i = 0; i < 256; i++)
4147 if (XOR (islower (i), ISLOWER (i))
4148 || toupper (i) != TOUPPER (i))
4153 rm -f conftest$ac_exeext
4154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4155 (eval $ac_link) 2>&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_header_stdc=no
4173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4177 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4178 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4179 if test $ac_cv_header_stdc = yes; then
4181 cat >>confdefs.h <<\_ACEOF
4182 #define STDC_HEADERS 1
4187 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4198 inttypes.h stdint.h unistd.h
4200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4201 echo "$as_me:$LINENO: checking for $ac_header" >&5
4202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4212 $ac_includes_default
4214 #include <$ac_header>
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4220 grep -v '^ *+' conftest.er1 >conftest.err
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 eval "$as_ac_Header=yes"
4239 echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4242 eval "$as_ac_Header=no"
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4249 cat >>confdefs.h <<_ACEOF
4250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4258 if test "${ac_cv_header_valgrind_h+set}" = set; then
4259 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4260 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4261 if test "${ac_cv_header_valgrind_h+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4265 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4267 # Is the header compilable?
4268 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4269 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4270 cat >conftest.$ac_ext <<_ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 $ac_includes_default
4277 #include <valgrind.h>
4279 rm -f conftest.$ac_objext
4280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4281 (eval $ac_compile) 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_header_compiler=yes
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_header_compiler=no
4307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4313 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <valgrind.h>
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev/null; then
4330 if test -s conftest.err; then
4331 ac_cpp_err=$ac_c_preproc_warn_flag
4332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4339 if test -z "$ac_cpp_err"; then
4340 ac_header_preproc=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_header_preproc=no
4347 rm -f conftest.err conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4349 echo "${ECHO_T}$ac_header_preproc" >&6
4351 # So? What about this header?
4352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4354 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4355 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4357 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4358 ac_header_preproc=yes
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4362 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4364 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4366 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4368 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4371 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4372 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4375 ## ------------------------------------------ ##
4376 ## Report this to the AC_PACKAGE_NAME lists. ##
4377 ## ------------------------------------------ ##
4380 sed "s/^/$as_me: WARNING: /" >&2
4383 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4384 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4385 if test "${ac_cv_header_valgrind_h+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 ac_cv_header_valgrind_h=$ac_header_preproc
4390 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4391 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4394 if test $ac_cv_header_valgrind_h = yes; then
4402 if test x$ac_checking_valgrind != x ; then
4403 # It is certainly possible that there's valgrind but no valgrind.h.
4404 # GCC relies on making annotations so we must have both.
4405 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4406 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <valgrind/memcheck.h>
4414 #ifndef VALGRIND_DISCARD
4415 #error VALGRIND_DISCARD not defined
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null; then
4426 if test -s conftest.err; then
4427 ac_cpp_err=$ac_c_preproc_warn_flag
4428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4435 if test -z "$ac_cpp_err"; then
4436 gcc_cv_header_valgrind_memcheck_h=yes
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 gcc_cv_header_valgrind_memcheck_h=no
4443 rm -f conftest.err conftest.$ac_ext
4444 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4445 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4446 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 if test -z "$ac_cpp_err"; then
4477 gcc_cv_header_memcheck_h=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 gcc_cv_header_memcheck_h=no
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4488 # Prepare PATH_SEPARATOR.
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491 echo "#! /bin/sh" >conf$$.sh
4492 echo "exit 0" >>conf$$.sh
4494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4502 # Find out how to test for executable files. Don't use a zero-byte file,
4503 # as systems may use methods other than mode bits to determine executability.
4504 cat >conf$$.file <<_ASEOF
4508 chmod +x conf$$.file
4509 if test -x conf$$.file >/dev/null 2>&1; then
4510 ac_executable_p="test -x"
4512 ac_executable_p="test -f"
4516 # Extract the first word of "valgrind", so it can be a program name with args.
4517 set dummy valgrind; ac_word=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_path_valgrind_path+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 case "$valgrind_path" in
4525 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
4528 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4529 for ac_dir in $PATH; do
4531 test -z "$ac_dir" && ac_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4534 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
4535 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
4545 valgrind_path="$ac_cv_path_valgrind_path"
4546 if test -n "$valgrind_path"; then
4547 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4548 echo "${ECHO_T}$valgrind_path" >&6
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 if test "x$valgrind_path" = "x" \
4555 || (test $have_valgrind_h = no \
4556 && test $gcc_cv_header_memcheck_h = no \
4557 && test $gcc_cv_header_valgrind_memcheck_h = no); then
4558 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4559 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4560 { (exit 1); exit 1; }; }
4562 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4563 valgrind_command="$valgrind_path -q"
4565 cat >>confdefs.h <<\_ACEOF
4566 #define ENABLE_VALGRIND_CHECKING 1
4569 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4571 cat >>confdefs.h <<\_ACEOF
4572 #define HAVE_VALGRIND_MEMCHECK_H 1
4576 if test $gcc_cv_header_memcheck_h = yes; then
4578 cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_MEMCHECK_H 1
4587 # Enable code coverage collection
4588 # Check whether --enable-coverage or --disable-coverage was given.
4589 if test "${enable_coverage+set}" = set; then
4590 enableval="$enable_coverage"
4591 case "${enableval}" in
4593 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4596 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4599 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4600 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4601 { (exit 1); exit 1; }; }
4609 # -------------------------------
4610 # Miscenalleous configure options
4611 # -------------------------------
4615 # Check whether --with-stabs or --without-stabs was given.
4616 if test "${with_stabs+set}" = set; then
4617 withval="$with_stabs"
4623 # Determine whether or not multilibs are enabled.
4624 # Check whether --enable-multilib or --disable-multilib was given.
4625 if test "${enable_multilib+set}" = set; then
4626 enableval="$enable_multilib"
4633 # Enable __cxa_atexit for C++.
4634 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4635 if test "${enable___cxa_atexit+set}" = set; then
4636 enableval="$enable___cxa_atexit"
4641 # Pass with no value to take the default
4642 # Pass with a value to specify a thread package
4643 # Check whether --enable-threads or --disable-threads was given.
4644 if test "${enable_threads+set}" = set; then
4645 enableval="$enable_threads"
4650 # Save in case it gets overwritten in config.gcc
4651 enable_threads_flag=$enable_threads
4653 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4654 if test "${enable_objc_gc+set}" = set; then
4655 enableval="$enable_objc_gc"
4656 if test x$enable_objc_gc = xno; then
4666 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4667 if test "${with_dwarf2+set}" = set; then
4668 withval="$with_dwarf2"
4669 dwarf2="$with_dwarf2"
4674 # Check whether --enable-shared or --disable-shared was given.
4675 if test "${enable_shared+set}" = set; then
4676 enableval="$enable_shared"
4678 case $enable_shared in
4682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4683 for pkg in $enableval; do
4684 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
4698 # Check whether --with-sysroot or --without-sysroot was given.
4699 if test "${with_sysroot+set}" = set; then
4700 withval="$with_sysroot"
4702 case ${with_sysroot} in
4703 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4704 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4707 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4708 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4710 if test "x$exec_prefix" = xNONE; then
4711 if test "x$prefix" = xNONE; then
4712 test_prefix=/usr/local
4717 test_prefix=$exec_prefix
4719 case ${TARGET_SYSTEM_ROOT} in
4720 "${test_prefix}"|"${test_prefix}/"*|\
4721 '${exec_prefix}'|'${exec_prefix}/'*)
4722 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4723 TARGET_SYSTEM_ROOT_DEFINE="$t"
4730 TARGET_SYSTEM_ROOT_DEFINE=
4731 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
4738 # Build with intermodule optimisations
4739 # Check whether --enable-intermodule or --disable-intermodule was given.
4740 if test "${enable_intermodule+set}" = set; then
4741 enableval="$enable_intermodule"
4742 case ${enable_intermodule} in
4743 yes) onestep="-onestep";;
4751 # -------------------------
4752 # Checks for other programs
4753 # -------------------------
4755 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4758 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.make <<\_ACEOF
4763 @echo 'ac_maketemp="$(MAKE)"'
4765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4766 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4767 if test -n "$ac_maketemp"; then
4768 eval ac_cv_prog_make_${ac_make}_set=yes
4770 eval ac_cv_prog_make_${ac_make}_set=no
4774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4775 echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781 SET_MAKE="MAKE=${MAKE-make}"
4785 # Find some useful tools
4786 for ac_prog in gawk mawk nawk awk
4788 # Extract the first word of "$ac_prog", so it can be a program name with args.
4789 set dummy $ac_prog; ac_word=$2
4790 echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4792 if test "${ac_cv_prog_AWK+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 if test -n "$AWK"; then
4796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805 ac_cv_prog_AWK="$ac_prog"
4806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 if test -n "$AWK"; then
4816 echo "$as_me:$LINENO: result: $AWK" >&5
4817 echo "${ECHO_T}$AWK" >&6
4819 echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6
4823 test -n "$AWK" && break
4826 # We need awk to run opts.sh (to create options.c and options.h).
4827 # Bail out if it's missing.
4829 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4830 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4831 { (exit 1); exit 1; }; } ;;
4834 echo "$as_me:$LINENO: checking whether ln works" >&5
4835 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4836 if test "${gcc_cv_prog_LN+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 rm -f conftestdata_t
4840 echo >conftestdata_f
4841 if ln conftestdata_f conftestdata_t 2>/dev/null
4845 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4847 gcc_cv_prog_LN="ln -s"
4852 rm -f conftestdata_f conftestdata_t
4855 LN="$gcc_cv_prog_LN"
4856 if test "$gcc_cv_prog_LN" = "ln"; then
4857 echo "$as_me:$LINENO: result: yes" >&5
4858 echo "${ECHO_T}yes" >&6
4860 if test "$gcc_cv_prog_LN" = "ln -s"; then
4861 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4862 echo "${ECHO_T}no, using ln -s" >&6
4864 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4865 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4869 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4870 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4871 if test "${gcc_cv_prog_LN_S+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 rm -f conftestdata_t
4875 echo >conftestdata_f
4876 if ln -s conftestdata_f conftestdata_t 2>/dev/null
4878 gcc_cv_prog_LN_S="ln -s"
4880 if ln conftestdata_f conftestdata_t 2>/dev/null
4887 rm -f conftestdata_f conftestdata_t
4890 LN_S="$gcc_cv_prog_LN_S"
4891 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4892 echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6
4895 if test "$gcc_cv_prog_LN_S" = "ln"; then
4896 echo "$as_me:$LINENO: result: no, using ln" >&5
4897 echo "${ECHO_T}no, using ln" >&6
4899 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4900 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4904 if test -n "$ac_tool_prefix"; then
4905 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4907 echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_RANLIB+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$RANLIB"; then
4913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 RANLIB=$ac_cv_prog_RANLIB
4932 if test -n "$RANLIB"; then
4933 echo "$as_me:$LINENO: result: $RANLIB" >&5
4934 echo "${ECHO_T}$RANLIB" >&6
4936 echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6
4941 if test -z "$ac_cv_prog_RANLIB"; then
4942 ac_ct_RANLIB=$RANLIB
4943 # Extract the first word of "ranlib", so it can be a program name with args.
4944 set dummy ranlib; ac_word=$2
4945 echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 if test -n "$ac_ct_RANLIB"; then
4951 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960 ac_cv_prog_ac_ct_RANLIB="ranlib"
4961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4971 if test -n "$ac_ct_RANLIB"; then
4972 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4973 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4975 echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6
4979 RANLIB=$ac_ct_RANLIB
4981 RANLIB="$ac_cv_prog_RANLIB"
4984 # Find a good install program. We prefer a C program (faster),
4985 # so one script is as good as another. But avoid the broken or
4986 # incompatible versions:
4987 # SysV /etc/install, /usr/sbin/install
4988 # SunOS /usr/etc/install
4989 # IRIX /sbin/install
4991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4993 # ./install, which can be erroneously created by make from ./install.sh.
4994 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4995 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4996 if test -z "$INSTALL"; then
4997 if test "${ac_cv_path_install+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
5001 for ac_dir in $PATH; do
5002 # Account for people who put trailing slashes in PATH elements.
5004 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5006 # OSF1 and SCO ODT 3.0 have their own names for install.
5007 for ac_prog in ginstall scoinst install; do
5008 if test -f $ac_dir/$ac_prog; then
5009 if test $ac_prog = install &&
5010 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5011 # AIX install. It has an incompatible calling convention.
5012 # OSF/1 installbsd also uses dspmsg, but is usable.
5015 ac_cv_path_install="$ac_dir/$ac_prog -c"
5026 if test "${ac_cv_path_install+set}" = set; then
5027 INSTALL="$ac_cv_path_install"
5029 # As a last resort, use the slow shell script. We don't cache a
5030 # path for INSTALL within a source directory, because that will
5031 # break other packages using the cache if that directory is
5032 # removed, or if the path is relative.
5033 INSTALL="$ac_install_sh"
5036 echo "$as_me:$LINENO: result: $INSTALL" >&5
5037 echo "${ECHO_T}$INSTALL" >&6
5039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5040 # It thinks the first close brace ends the variable substitution.
5041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5046 # See if cmp has --ignore-initial.
5047 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5048 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5049 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5054 gcc_cv_prog_cmp_skip=slowcompare
5055 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5056 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5059 gcc_cv_prog_cmp_skip=gnucompare
5062 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
5063 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5064 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5067 gcc_cv_prog_cmp_skip=fastcompare
5074 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5075 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5076 make_compare_target=$gcc_cv_prog_cmp_skip
5080 # See if we have the mktemp command.
5081 # Extract the first word of "mktemp", so it can be a program name with args.
5082 set dummy mktemp; ac_word=$2
5083 echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 if test -n "$have_mktemp_command"; then
5089 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_have_mktemp_command="yes"
5099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
5108 have_mktemp_command=$ac_cv_prog_have_mktemp_command
5109 if test -n "$have_mktemp_command"; then
5110 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5111 echo "${ECHO_T}$have_mktemp_command" >&6
5113 echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6
5118 # Do we have a single-tree copy of texinfo?
5119 if test -f $srcdir/../texinfo/Makefile.in; then
5120 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
5121 gcc_cv_prog_makeinfo_modern=yes
5122 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5123 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5125 # See if makeinfo has been installed and is modern enough
5126 # that we can use it.
5127 # Extract the first word of "makeinfo", so it can be a program name with args.
5128 set dummy makeinfo; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 if test -n "$MAKEINFO"; then
5135 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_MAKEINFO="makeinfo"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 MAKEINFO=$ac_cv_prog_MAKEINFO
5154 if test -n "$MAKEINFO"; then
5155 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5156 echo "${ECHO_T}$MAKEINFO" >&6
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5162 if test -n "$MAKEINFO"; then
5163 # Found it, now check the version.
5164 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5165 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5166 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_prog_version=`$MAKEINFO --version 2>&1 |
5170 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5171 echo "configure:5171: version of makeinfo is $ac_prog_version" >&5
5172 case $ac_prog_version in
5173 '') gcc_cv_prog_makeinfo_modern=no;;
5175 gcc_cv_prog_makeinfo_modern=yes;;
5176 *) gcc_cv_prog_makeinfo_modern=no;;
5180 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5181 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5183 gcc_cv_prog_makeinfo_modern=no
5188 if test $gcc_cv_prog_makeinfo_modern = no; then
5189 { echo "$as_me:$LINENO: WARNING:
5190 *** Makeinfo is missing or too old.
5191 *** Info documentation will not be built." >&5
5192 echo "$as_me: WARNING:
5193 *** Makeinfo is missing or too old.
5194 *** Info documentation will not be built." >&2;}
5200 # Is pod2man recent enough to regenerate manpages?
5201 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5202 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5203 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
5204 echo "$as_me:$LINENO: result: yes" >&5
5205 echo "${ECHO_T}yes" >&6
5206 GENERATED_MANPAGES=generated-manpages
5208 echo "$as_me:$LINENO: result: no" >&5
5209 echo "${ECHO_T}no" >&6
5214 if test -f $srcdir/../flex/skel.c; then
5215 FLEX='$(objdir)/../flex/flex'
5217 # Extract the first word of "flex", so it can be a program name with args.
5218 set dummy flex; ac_word=$2
5219 echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5221 if test "${ac_cv_prog_FLEX+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 if test -n "$FLEX"; then
5225 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_FLEX="flex"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5244 FLEX=$ac_cv_prog_FLEX
5245 if test -n "$FLEX"; then
5246 echo "$as_me:$LINENO: result: $FLEX" >&5
5247 echo "${ECHO_T}$FLEX" >&6
5249 echo "$as_me:$LINENO: result: no" >&5
5250 echo "${ECHO_T}no" >&6
5256 # The -L switch is so bison can find its skeleton file.
5257 if test -f $srcdir/../bison/bison.simple; then
5258 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5260 # Extract the first word of "bison", so it can be a program name with args.
5261 set dummy bison; ac_word=$2
5262 echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264 if test "${ac_cv_prog_BISON+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 if test -n "$BISON"; then
5268 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_BISON="bison"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5287 BISON=$ac_cv_prog_BISON
5288 if test -n "$BISON"; then
5289 echo "$as_me:$LINENO: result: $BISON" >&5
5290 echo "${ECHO_T}$BISON" >&6
5292 echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5298 # --------------------
5299 # Checks for C headers
5300 # --------------------
5302 echo "$as_me:$LINENO: checking for GNU C library" >&5
5303 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5304 if test "${gcc_cv_glibc+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <features.h>
5318 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5319 #error Not a GNU C library system
5325 rm -f conftest.$ac_objext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5327 (eval $ac_compile) 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5357 echo "${ECHO_T}$gcc_cv_glibc" >&6
5358 if test $gcc_cv_glibc = yes; then
5360 cat >>confdefs.h <<\_ACEOF
5361 #define _GNU_SOURCE 1
5366 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5368 if test "${ac_cv_header_stdc+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_cv_header_stdc=yes
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_cv_header_stdc=no
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 if test $ac_cv_header_stdc = yes; then
5421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432 $EGREP "memchr" >/dev/null 2>&1; then
5435 ac_cv_header_stdc=no
5441 if test $ac_cv_header_stdc = yes; then
5442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453 $EGREP "free" >/dev/null 2>&1; then
5456 ac_cv_header_stdc=no
5462 if test $ac_cv_header_stdc = yes; then
5463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464 if test "$cross_compiling" = yes; then
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5474 #if ((' ' & 0x0FF) == 0x020)
5475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5478 # define ISLOWER(c) \
5479 (('a' <= (c) && (c) <= 'i') \
5480 || ('j' <= (c) && (c) <= 'r') \
5481 || ('s' <= (c) && (c) <= 'z'))
5482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5490 for (i = 0; i < 256; i++)
5491 if (XOR (islower (i), ISLOWER (i))
5492 || toupper (i) != TOUPPER (i))
5497 rm -f conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499 (eval $ac_link) 2>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 echo "$as_me: program exited with status $ac_status" >&5
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_header_stdc=no
5517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5521 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5522 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5523 if test $ac_cv_header_stdc = yes; then
5525 cat >>confdefs.h <<\_ACEOF
5526 #define STDC_HEADERS 1
5531 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5532 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5533 if test "${ac_cv_header_time+set}" = set; then
5534 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 cat >conftest.$ac_ext <<_ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 #include <sys/types.h>
5543 #include <sys/time.h>
5549 if ((struct tm *) 0)
5555 rm -f conftest.$ac_objext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; }; then
5576 ac_cv_header_time=yes
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5581 ac_cv_header_time=no
5583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5586 echo "${ECHO_T}$ac_cv_header_time" >&6
5587 if test $ac_cv_header_time = yes; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define TIME_WITH_SYS_TIME 1
5595 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5596 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5597 if test "${ac_cv_header_stdbool_h+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <stdbool.h>
5615 rm -f conftest.$ac_objext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5617 (eval $ac_compile) 2>conftest.er1
5619 grep -v '^ *+' conftest.er1 >conftest.err
5621 cat conftest.err >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_cv_header_stdbool_h=yes
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5641 ac_cv_header_stdbool_h=no
5643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5646 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5647 if test $ac_cv_header_stdbool_h = yes; then
5649 cat >>confdefs.h <<\_ACEOF
5650 #define HAVE_STDBOOL_H 1
5655 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5656 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5657 if test "${gcc_cv_header_string+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 cat >conftest.$ac_ext <<_ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5667 #include <strings.h>
5676 rm -f conftest.$ac_objext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; } &&
5691 { ac_try='test -s conftest.$ac_objext'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; }; then
5697 gcc_cv_header_string=yes
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5702 gcc_cv_header_string=no
5704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5706 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5707 echo "${ECHO_T}$gcc_cv_header_string" >&6
5708 if test $gcc_cv_header_string = yes; then
5710 cat >>confdefs.h <<\_ACEOF
5711 #define STRING_WITH_STRINGS 1
5716 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5717 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5718 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 cat >conftest.$ac_ext <<_ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #include <sys/types.h>
5728 #include <sys/wait.h>
5730 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5733 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5741 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5746 rm -f conftest.$ac_objext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5748 (eval $ac_compile) 2>conftest.er1
5750 grep -v '^ *+' conftest.er1 >conftest.err
5752 cat conftest.err >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest.$ac_objext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_header_sys_wait_h=yes
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.$ac_ext >&5
5772 ac_cv_header_sys_wait_h=no
5774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5776 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5777 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5778 if test $ac_cv_header_sys_wait_h = yes; then
5780 cat >>confdefs.h <<\_ACEOF
5781 #define HAVE_SYS_WAIT_H 1
5807 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h \
5808 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
5809 sys/resource.h sys/param.h sys/times.h sys/stat.h \
5810 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814 echo "$as_me:$LINENO: checking for $ac_header" >&5
5815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5822 # Is the header compilable?
5823 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 $ac_includes_default
5832 #include <$ac_header>
5834 rm -f conftest.$ac_objext
5835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5836 (eval $ac_compile) 2>conftest.er1
5838 grep -v '^ *+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5855 ac_header_compiler=yes
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5860 ac_header_compiler=no
5862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5864 echo "${ECHO_T}$ac_header_compiler" >&6
5866 # Is the header present?
5867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5875 #include <$ac_header>
5877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev/null; then
5885 if test -s conftest.err; then
5886 ac_cpp_err=$ac_c_preproc_warn_flag
5887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5894 if test -z "$ac_cpp_err"; then
5895 ac_header_preproc=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_header_preproc=no
5902 rm -f conftest.err conftest.$ac_ext
5903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5904 echo "${ECHO_T}$ac_header_preproc" >&6
5906 # So? What about this header?
5907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5913 ac_header_preproc=yes
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5930 ## ------------------------------------------ ##
5931 ## Report this to the AC_PACKAGE_NAME lists. ##
5932 ## ------------------------------------------ ##
5935 sed "s/^/$as_me: WARNING: /" >&2
5938 echo "$as_me:$LINENO: checking for $ac_header" >&5
5939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 eval "$as_ac_Header=\$ac_header_preproc"
5945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5950 cat >>confdefs.h <<_ACEOF
5951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5959 # Check for thread headers.
5960 if test "${ac_cv_header_thread_h+set}" = set; then
5961 echo "$as_me:$LINENO: checking for thread.h" >&5
5962 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_thread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5967 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5969 # Is the header compilable?
5970 echo "$as_me:$LINENO: checking thread.h usability" >&5
5971 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 $ac_includes_default
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5985 grep -v '^ *+' conftest.er1 >conftest.err
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_header_compiler=yes
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_header_compiler=no
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6011 echo "${ECHO_T}$ac_header_compiler" >&6
6013 # Is the header present?
6014 echo "$as_me:$LINENO: checking thread.h presence" >&5
6015 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6027 grep -v '^ *+' conftest.er1 >conftest.err
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } >/dev/null; then
6032 if test -s conftest.err; then
6033 ac_cpp_err=$ac_c_preproc_warn_flag
6034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6041 if test -z "$ac_cpp_err"; then
6042 ac_header_preproc=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6047 ac_header_preproc=no
6049 rm -f conftest.err conftest.$ac_ext
6050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6051 echo "${ECHO_T}$ac_header_preproc" >&6
6053 # So? What about this header?
6054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6056 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6057 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6058 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the compiler's result" >&5
6059 echo "$as_me: WARNING: thread.h: proceeding with the compiler's result" >&2;}
6060 ac_header_preproc=yes
6063 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
6064 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
6066 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: thread.h: see the Autoconf documentation" >&5
6068 echo "$as_me: WARNING: thread.h: see the Autoconf documentation" >&2;}
6069 { echo "$as_me:$LINENO: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&5
6070 echo "$as_me: WARNING: thread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6071 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
6072 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
6073 { echo "$as_me:$LINENO: WARNING: thread.h: in the future, the compiler will take precedence" >&5
6074 echo "$as_me: WARNING: thread.h: in the future, the compiler will take precedence" >&2;}
6077 ## ------------------------------------------ ##
6078 ## Report this to the AC_PACKAGE_NAME lists. ##
6079 ## ------------------------------------------ ##
6082 sed "s/^/$as_me: WARNING: /" >&2
6085 echo "$as_me:$LINENO: checking for thread.h" >&5
6086 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6087 if test "${ac_cv_header_thread_h+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_cv_header_thread_h=$ac_header_preproc
6092 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6093 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6096 if test $ac_cv_header_thread_h = yes; then
6103 if test "${ac_cv_header_pthread_h+set}" = set; then
6104 echo "$as_me:$LINENO: checking for pthread.h" >&5
6105 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6106 if test "${ac_cv_header_pthread_h+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6110 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6112 # Is the header compilable?
6113 echo "$as_me:$LINENO: checking pthread.h usability" >&5
6114 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 $ac_includes_default
6122 #include <pthread.h>
6124 rm -f conftest.$ac_objext
6125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6126 (eval $ac_compile) 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest.$ac_objext'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6145 ac_header_compiler=yes
6147 echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6150 ac_header_compiler=no
6152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6154 echo "${ECHO_T}$ac_header_compiler" >&6
6156 # Is the header present?
6157 echo "$as_me:$LINENO: checking pthread.h presence" >&5
6158 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
6159 cat >conftest.$ac_ext <<_ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 #include <pthread.h>
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev/null; then
6175 if test -s conftest.err; then
6176 ac_cpp_err=$ac_c_preproc_warn_flag
6177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184 if test -z "$ac_cpp_err"; then
6185 ac_header_preproc=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6190 ac_header_preproc=no
6192 rm -f conftest.err conftest.$ac_ext
6193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6194 echo "${ECHO_T}$ac_header_preproc" >&6
6196 # So? What about this header?
6197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6199 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
6200 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6201 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
6202 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
6203 ac_header_preproc=yes
6206 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
6207 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
6209 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
6211 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
6213 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
6215 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
6217 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
6220 ## ------------------------------------------ ##
6221 ## Report this to the AC_PACKAGE_NAME lists. ##
6222 ## ------------------------------------------ ##
6225 sed "s/^/$as_me: WARNING: /" >&2
6228 echo "$as_me:$LINENO: checking for pthread.h" >&5
6229 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6230 if test "${ac_cv_header_pthread_h+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_cv_header_pthread_h=$ac_header_preproc
6235 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6236 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6239 if test $ac_cv_header_pthread_h = yes; then
6247 # These tests can't be done till we know if we have limits.h.
6248 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6249 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6250 if test "${gcc_cv_decl_char_bit+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 cat >conftest.$ac_ext <<_ACEOF
6256 cat confdefs.h >>conftest.$ac_ext
6257 cat >>conftest.$ac_ext <<_ACEOF
6258 /* end confdefs.h. */
6259 #ifdef HAVE_LIMITS_H
6266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6267 $EGREP "found" >/dev/null 2>&1; then
6268 gcc_cv_decl_char_bit=yes
6270 gcc_cv_decl_char_bit=no
6276 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6277 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6278 if test $gcc_cv_decl_char_bit = no; then
6279 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6280 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6281 if test "${gcc_cv_c_nbby+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 while test $i -lt 65; do
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6298 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6299 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } &&
6314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 gcc_cv_c_nbby=$i; break
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6335 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
6338 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6339 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6340 if test $gcc_cv_c_nbby = failed; then
6341 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6342 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6343 { (exit 1); exit 1; }; }
6346 cat >>confdefs.h <<_ACEOF
6347 #define CHAR_BIT $gcc_cv_c_nbby
6352 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6353 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6354 if test "${ac_cv_c_bigendian+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_cv_c_bigendian=unknown
6358 # See if sys/param.h defines the BYTE_ORDER macro.
6359 cat >conftest.$ac_ext <<_ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <sys/types.h>
6366 #include <sys/param.h>
6371 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6378 rm -f conftest.$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 # It does; now see whether it defined to BIG_ENDIAN or not.
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 #include <sys/types.h>
6407 #include <sys/param.h>
6412 #if BYTE_ORDER != BIG_ENDIAN
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 ac_cv_c_bigendian=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_cv_c_bigendian=no
6447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6454 if test $ac_cv_c_bigendian = unknown; then
6455 if test "$cross_compiling" = yes; then
6456 echo $ac_n "cross-compiling... " 2>&6
6458 cat >conftest.$ac_ext <<_ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6465 /* Are we little or big endian? From Harbison&Steele. */
6469 char c[sizeof (long)];
6472 exit (u.c[sizeof (long) - 1] == 1);
6475 rm -f conftest$ac_exeext
6476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6477 (eval $ac_link) 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; }; then
6486 ac_cv_c_bigendian=no
6488 echo "$as_me: program exited with status $ac_status" >&5
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6493 ac_cv_c_bigendian=yes
6495 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6501 if test $ac_cv_c_bigendian = unknown; then
6502 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6503 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6505 cat >conftest.c <<EOF
6506 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6507 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6508 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6509 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6510 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6511 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6512 int main() { _ascii (); _ebcdic (); return 0; }
6514 if test -f conftest.c ; then
6515 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
6516 if test `grep -l BIGenDianSyS conftest.o` ; then
6517 echo $ac_n ' big endian probe OK, ' 1>&6
6518 ac_cv_c_bigendian=yes
6520 if test `grep -l LiTTleEnDian conftest.o` ; then
6521 echo $ac_n ' little endian probe OK, ' 1>&6
6522 if test $ac_cv_c_bigendian = yes ; then
6523 ac_cv_c_bigendian=unknown;
6525 ac_cv_c_bigendian=no
6528 echo $ac_n 'guessing bigendian ... ' >&6
6531 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6534 if test $ac_cv_c_bigendian = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define WORDS_BIGENDIAN 1
6541 cat >>confdefs.h <<\_ACEOF
6542 #define HOST_WORDS_BIG_ENDIAN 1
6550 cat >>confdefs.h <<_ACEOF
6551 #define BYTEORDER $BYTEORDER
6554 if test $ac_cv_c_bigendian = unknown; then
6555 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6556 echo "$as_me: error: unknown endianess - sorry" >&2;}
6557 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
6565 # Stage specific cflags for build.
6569 if test x$GCC = xyes
6571 stage1_cflags="-Wa,-J"
6577 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6578 # sources; use -no-cpp-precomp to get to GNU cpp.
6579 # Apple's GCC has bugs in designated initializer handling, so disable
6581 stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6586 # These libraries may be used by collect2.
6587 # We may need a special search path to get them linked.
6588 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6589 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6590 if test "${gcc_cv_collect2_libs+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 for libs in '' -lld -lmld \
6595 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6596 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623 (eval $ac_link) 2>conftest.er1
6625 grep -v '^ *+' conftest.er1 >conftest.err
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; } &&
6636 { ac_try='test -s conftest$ac_exeext'
6637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; }; then
6642 gcc_cv_collect2_libs="$libs"; break
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6648 rm -f conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6652 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
6654 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6655 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6656 case $gcc_cv_collect2_libs in
6658 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
6662 # When building Ada code on Alpha, we need exc_resume which is usually in
6663 # -lexc. So test for it.
6666 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6667 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6668 if test "${ac_cv_search_exc_resume+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_func_search_save_LIBS=$LIBS
6672 ac_cv_search_exc_resume=no
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6695 rm -f conftest.$ac_objext conftest$ac_exeext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6697 (eval $ac_link) 2>conftest.er1
6699 grep -v '^ *+' conftest.er1 >conftest.err
6701 cat conftest.err >&5
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_search_exc_resume="none required"
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6722 rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 if test "$ac_cv_search_exc_resume" = no; then
6725 for ac_lib in exc; do
6726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6727 cat >conftest.$ac_ext <<_ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h. */
6734 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>conftest.er1
6753 grep -v '^ *+' conftest.er1 >conftest.err
6755 cat conftest.err >&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_search_exc_resume="-l$ac_lib"
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6781 LIBS=$ac_func_search_save_LIBS
6783 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6784 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6785 if test "$ac_cv_search_exc_resume" != no; then
6786 test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
6794 # Some systems put ldexp and frexp in libm instead of libc; assume
6795 # they're both in the same place. jcf-dump needs them.
6798 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6799 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6800 if test "${ac_cv_search_ldexp+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 ac_func_search_save_LIBS=$LIBS
6804 ac_cv_search_ldexp=no
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6812 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6827 rm -f conftest.$ac_objext conftest$ac_exeext
6828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6831 grep -v '^ *+' conftest.er1 >conftest.err
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try='test -s conftest$ac_exeext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_cv_search_ldexp="none required"
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6854 rm -f conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 if test "$ac_cv_search_ldexp" = no; then
6858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6866 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>conftest.er1
6885 grep -v '^ *+' conftest.er1 >conftest.err
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } &&
6890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); }; } &&
6896 { ac_try='test -s conftest$ac_exeext'
6897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6902 ac_cv_search_ldexp="-l$ac_lib"
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6909 rm -f conftest.err conftest.$ac_objext \
6910 conftest$ac_exeext conftest.$ac_ext
6913 LIBS=$ac_func_search_save_LIBS
6915 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6916 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6917 if test "$ac_cv_search_ldexp" != no; then
6918 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
6926 # Use <inttypes.h> only if it exists,
6927 # doesn't clash with <sys/types.h>, and declares intmax_t.
6928 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6929 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6930 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 cat >conftest.$ac_ext <<_ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #include <sys/types.h>
6940 #include <inttypes.h>
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } &&
6964 { ac_try='test -s conftest.$ac_objext'
6965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); }; }; then
6970 gcc_cv_header_inttypes_h=yes
6972 echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6975 gcc_cv_header_inttypes_h=no
6977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6981 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6982 if test $gcc_cv_header_inttypes_h = yes; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_INTTYPES_H 1
7016 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
7017 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
7018 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
7019 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
7022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7023 echo "$as_me:$LINENO: checking for $ac_func" >&5
7024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7025 if eval "test \"\${$as_ac_var+set}\" = set"; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7036 #define $ac_func innocuous_$ac_func
7038 /* System header to define __stub macros and hopefully few prototypes,
7039 which can conflict with char $ac_func (); below.
7040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041 <limits.h> exists even on freestanding compilers. */
7044 # include <limits.h>
7046 # include <assert.h>
7051 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7059 /* The GNU C library defines this for functions which it implements
7060 to always fail with ENOSYS. Some functions are actually named
7061 something starting with __ and the normal name is an alias. */
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7065 char (*f) () = $ac_func;
7074 return f != $ac_func;
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081 (eval $ac_link) 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; } &&
7094 { ac_try='test -s conftest$ac_exeext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 eval "$as_ac_var=yes"
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 eval "$as_ac_var=no"
7107 rm -f conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7112 if test `eval echo '${'$as_ac_var'}'` = yes; then
7113 cat >>confdefs.h <<_ACEOF
7114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7121 if test x$ac_cv_func_mbstowcs = xyes; then
7122 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
7123 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
7124 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 if test "$cross_compiling" = yes; then
7128 gcc_cv_func_mbstowcs_works=yes
7130 cat >conftest.$ac_ext <<_ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7143 rm -f conftest$ac_exeext
7144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7145 (eval $ac_link) 2>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 gcc_cv_func_mbstowcs_works=yes
7156 echo "$as_me: program exited with status $ac_status" >&5
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7161 gcc_cv_func_mbstowcs_works=no
7163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7166 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7167 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7168 if test x$gcc_cv_func_mbstowcs_works = xyes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_WORKING_MBSTOWCS 1
7177 echo "$as_me:$LINENO: checking for ssize_t" >&5
7178 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7179 if test "${ac_cv_type_ssize_t+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <sys/types.h>
7194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7195 $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
7196 ac_cv_type_ssize_t=yes
7198 ac_cv_type_ssize_t=no
7203 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7204 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7205 if test $ac_cv_type_ssize_t = no; then
7207 cat >>confdefs.h <<\_ACEOF
7214 # Try to determine the array type of the second argument of getgroups
7215 # for the target system (int or gid_t).
7216 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7217 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7218 if test "${ac_cv_type_uid_t+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 #include <sys/types.h>
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 $EGREP "uid_t" >/dev/null 2>&1; then
7232 ac_cv_type_uid_t=yes
7239 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7240 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7241 if test $ac_cv_type_uid_t = no; then
7243 cat >>confdefs.h <<\_ACEOF
7248 cat >>confdefs.h <<\_ACEOF
7254 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7255 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7256 if test "${ac_cv_type_getgroups+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test "$cross_compiling" = yes; then
7260 ac_cv_type_getgroups=cross
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 /* Thanks to Mike Rendell for this test. */
7269 #include <sys/types.h>
7272 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7279 union { gid_t gval; long lval; } val;
7282 for (i = 0; i < NGID; i++)
7283 gidset[i] = val.gval;
7284 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7286 /* Exit non-zero if getgroups seems to require an array of ints. This
7287 happens when gid_t is short but getgroups modifies an array of ints. */
7288 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7291 rm -f conftest$ac_exeext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293 (eval $ac_link) 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_cv_type_getgroups=gid_t
7304 echo "$as_me: program exited with status $ac_status" >&5
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_type_getgroups=int
7311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7313 if test $ac_cv_type_getgroups = cross; then
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7325 ac_cv_type_getgroups=gid_t
7327 ac_cv_type_getgroups=int
7333 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7334 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7336 cat >>confdefs.h <<_ACEOF
7337 #define GETGROUPS_T $ac_cv_type_getgroups
7341 if test "${target}" = "${build}"; then
7342 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
7345 # This condition may need some tweaking. It should include all
7346 # targets where the array type of the second argument of getgroups
7347 # is int and the type of gid_t is not equivalent to int.
7348 *-*-sunos* | *-*-ultrix*)
7349 TARGET_GETGROUPS_T=int
7352 TARGET_GETGROUPS_T=gid_t
7358 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7359 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7360 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 if test "$cross_compiling" = yes; then
7364 gcc_cv_func_printf_ptr=no
7366 cat >conftest.$ac_ext <<_ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7377 char *p = buf, *q = NULL;
7378 sprintf(buf, "%p", p);
7379 sscanf(buf, "%p", &q);
7383 rm -f conftest$ac_exeext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 gcc_cv_func_printf_ptr=yes
7396 echo "$as_me: program exited with status $ac_status" >&5
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7401 gcc_cv_func_printf_ptr=no
7403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7405 rm -f core core.* *.core
7407 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7408 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7409 if test $gcc_cv_func_printf_ptr = yes ; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_PRINTF_PTR 1
7417 if test $ac_cv_header_sys_mman_h != yes \
7418 || test $ac_cv_func_mmap != yes; then
7419 gcc_cv_func_mmap_file=no
7420 gcc_cv_func_mmap_dev_zero=no
7421 gcc_cv_func_mmap_anon=no
7423 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7424 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7425 if test "${gcc_cv_func_mmap_file+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 # Add a system to this blacklist if
7429 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7430 # memory area containing the same data that you'd get if you applied
7431 # read() to the same fd. The only system known to have a problem here
7432 # is VMS, where text files have record structure.
7435 gcc_cv_func_mmap_file=no ;;
7437 gcc_cv_func_mmap_file=yes;;
7440 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7441 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7442 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7443 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7444 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 # Add a system to this blacklist if it has mmap() but /dev/zero
7448 # does not exist, or if mmapping /dev/zero does not give anonymous
7449 # zeroed pages with both the following properties:
7450 # 1. If you map N consecutive pages in with one call, and then
7451 # unmap any subset of those pages, the pages that were not
7452 # explicitly unmapped remain accessible.
7453 # 2. If you map two adjacent blocks of memory and then unmap them
7454 # both at once, they must both go away.
7455 # Systems known to be in this category are Windows (all variants),
7458 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
7459 gcc_cv_func_mmap_dev_zero=no ;;
7461 gcc_cv_func_mmap_dev_zero=yes;;
7464 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7465 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7467 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7468 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7469 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7470 if test "${gcc_cv_decl_map_anon+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7479 #include <sys/types.h>
7480 #include <sys/mman.h>
7483 #ifndef MAP_ANONYMOUS
7484 #define MAP_ANONYMOUS MAP_ANON
7490 int n = MAP_ANONYMOUS;
7495 rm -f conftest.$ac_objext
7496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7497 (eval $ac_compile) 2>conftest.er1
7499 grep -v '^ *+' conftest.er1 >conftest.err
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } &&
7504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; } &&
7510 { ac_try='test -s conftest.$ac_objext'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; }; then
7516 gcc_cv_decl_map_anon=yes
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 gcc_cv_decl_map_anon=no
7523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7525 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7526 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7528 if test $gcc_cv_decl_map_anon = no; then
7529 gcc_cv_func_mmap_anon=no
7531 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7532 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7533 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7537 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7538 # doesn't give anonymous zeroed pages with the same properties listed
7539 # above for use of /dev/zero.
7540 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7542 vms* | cygwin* | pe | mingw* | sco* | udk* )
7543 gcc_cv_func_mmap_anon=no ;;
7545 gcc_cv_func_mmap_anon=yes;;
7548 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7549 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7553 if test $gcc_cv_func_mmap_file = yes; then
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_MMAP_FILE 1
7560 if test $gcc_cv_func_mmap_dev_zero = yes; then
7562 cat >>confdefs.h <<\_ACEOF
7563 #define HAVE_MMAP_DEV_ZERO 1
7567 if test $gcc_cv_func_mmap_anon = yes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define HAVE_MMAP_ANON 1
7578 # Under VMS, vfork works very differently than on Unix. The standard test
7579 # won't work, and it isn't easily adaptable. It makes more sense to
7581 ac_cv_func_vfork_works=yes
7584 echo "$as_me:$LINENO: checking for pid_t" >&5
7585 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7586 if test "${ac_cv_type_pid_t+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7595 $ac_includes_default
7607 rm -f conftest.$ac_objext
7608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7609 (eval $ac_compile) 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } &&
7616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_type_pid_t=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7638 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7639 if test $ac_cv_type_pid_t = yes; then
7643 cat >>confdefs.h <<_ACEOF
7651 for ac_header in unistd.h vfork.h
7653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663 # Is the header compilable?
7664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7672 $ac_includes_default
7673 #include <$ac_header>
7675 rm -f conftest.$ac_objext
7676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7679 grep -v '^ *+' conftest.er1 >conftest.err
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
7684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_header_compiler=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_header_compiler=no
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7705 echo "${ECHO_T}$ac_header_compiler" >&6
7707 # Is the header present?
7708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 #include <$ac_header>
7718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } >/dev/null; then
7726 if test -s conftest.err; then
7727 ac_cpp_err=$ac_c_preproc_warn_flag
7728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7735 if test -z "$ac_cpp_err"; then
7736 ac_header_preproc=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_header_preproc=no
7743 rm -f conftest.err conftest.$ac_ext
7744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7745 echo "${ECHO_T}$ac_header_preproc" >&6
7747 # So? What about this header?
7748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7754 ac_header_preproc=yes
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7771 ## ------------------------------------------ ##
7772 ## Report this to the AC_PACKAGE_NAME lists. ##
7773 ## ------------------------------------------ ##
7776 sed "s/^/$as_me: WARNING: /" >&2
7779 echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 eval "$as_ac_Header=\$ac_header_preproc"
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7801 for ac_func in fork vfork
7803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7804 echo "$as_me:$LINENO: checking for $ac_func" >&5
7805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_var+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7817 #define $ac_func innocuous_$ac_func
7819 /* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func (); below.
7821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7822 <limits.h> exists even on freestanding compilers. */
7825 # include <limits.h>
7827 # include <assert.h>
7832 /* Override any gcc2 internal prototype to avoid an error. */
7837 /* We use char because int might match the return type of a gcc2
7838 builtin and then its argument prototype would still apply. */
7840 /* The GNU C library defines this for functions which it implements
7841 to always fail with ENOSYS. Some functions are actually named
7842 something starting with __ and the normal name is an alias. */
7843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7846 char (*f) () = $ac_func;
7855 return f != $ac_func;
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862 (eval $ac_link) 2>conftest.er1
7864 grep -v '^ *+' conftest.er1 >conftest.err
7866 cat conftest.err >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_var=yes"
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 eval "$as_ac_var=no"
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893 if test `eval echo '${'$as_ac_var'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7901 if test "x$ac_cv_func_fork" = xyes; then
7902 echo "$as_me:$LINENO: checking for working fork" >&5
7903 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7904 if test "${ac_cv_func_fork_works+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 if test "$cross_compiling" = yes; then
7908 ac_cv_func_fork_works=cross
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* By Ruediger Kuhlmann. */
7912 #include <sys/types.h>
7914 # include <unistd.h>
7916 /* Some systems only have a dummy stub for fork() */
7924 rm -f conftest$ac_exeext
7925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7926 (eval $ac_link) 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_func_fork_works=yes
7937 echo "$as_me: program exited with status $ac_status" >&5
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_cv_func_fork_works=no
7944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7948 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7951 ac_cv_func_fork_works=$ac_cv_func_fork
7953 if test "x$ac_cv_func_fork_works" = xcross; then
7955 *-*-amigaos* | *-*-msdosdjgpp*)
7956 # Override, as these systems have only a dummy fork() stub
7957 ac_cv_func_fork_works=no
7960 ac_cv_func_fork_works=yes
7963 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7964 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7966 ac_cv_func_vfork_works=$ac_cv_func_vfork
7967 if test "x$ac_cv_func_vfork" = xyes; then
7968 echo "$as_me:$LINENO: checking for working vfork" >&5
7969 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7970 if test "${ac_cv_func_vfork_works+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 if test "$cross_compiling" = yes; then
7974 ac_cv_func_vfork_works=cross
7976 cat >conftest.$ac_ext <<_ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 /* Thanks to Paul Eggert for this test. */
7985 #include <sys/types.h>
7986 #include <sys/stat.h>
7987 #include <sys/wait.h>
7989 # include <unistd.h>
7994 /* On some sparc systems, changes by the child to local and incoming
7995 argument registers are propagated back to the parent. The compiler
7996 is told about this with #include <vfork.h>, but some compilers
7997 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7998 static variable whose address is put into a register that is
7999 clobbered by the vfork. */
8002 sparc_address_test (int arg)
8004 sparc_address_test (arg) int arg;
8025 pid_t parent = getpid ();
8028 sparc_address_test (0);
8033 /* Here is another test for sparc vfork register problems. This
8034 test uses lots of local variables, at least as many local
8035 variables as main has allocated so far including compiler
8036 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8037 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8038 reuse the register of parent for one of the local variables,
8039 since it will think that parent can't possibly be used any more
8040 in this routine. Assigning to the local variable will thus
8041 munge parent in the parent process. */
8043 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8044 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8045 /* Convince the compiler that p..p7 are live; otherwise, it might
8046 use the same hardware register for all 8 local variables. */
8047 if (p != p1 || p != p2 || p != p3 || p != p4
8048 || p != p5 || p != p6 || p != p7)
8051 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8052 from child file descriptors. If the child closes a descriptor
8053 before it execs or exits, this munges the parent's descriptor
8054 as well. Test for this by closing stdout in the child. */
8055 _exit(close(fileno(stdout)) != 0);
8060 while (wait(&status) != child)
8063 /* Was there some problem with vforking? */
8066 /* Did the child fail? (This shouldn't happen.) */
8069 /* Did the vfork/compiler bug occur? */
8070 || parent != getpid()
8072 /* Did the file descriptor bug occur? */
8073 || fstat(fileno(stdout), &st) != 0
8078 rm -f conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080 (eval $ac_link) 2>&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_func_vfork_works=yes
8091 echo "$as_me: program exited with status $ac_status" >&5
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8096 ac_cv_func_vfork_works=no
8098 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8101 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8102 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8105 if test "x$ac_cv_func_fork_works" = xcross; then
8106 ac_cv_func_vfork_works=$ac_cv_func_vfork
8107 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8108 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8111 if test "x$ac_cv_func_vfork_works" = xyes; then
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_WORKING_VFORK 1
8119 cat >>confdefs.h <<\_ACEOF
8124 if test "x$ac_cv_func_fork_works" = xyes; then
8126 cat >>confdefs.h <<\_ACEOF
8127 #define HAVE_WORKING_FORK 1
8135 am_cv_lib_iconv_ldpath=
8137 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8138 if test "${with_libiconv_prefix+set}" = set; then
8139 withval="$with_libiconv_prefix"
8141 for dir in `echo "$withval" | tr : ' '`; do
8142 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8143 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
8149 for ac_header in iconv.h
8151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8153 echo "$as_me:$LINENO: checking for $ac_header" >&5
8154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8159 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8161 # Is the header compilable?
8162 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8163 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 $ac_includes_default
8171 #include <$ac_header>
8173 rm -f conftest.$ac_objext
8174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8175 (eval $ac_compile) 2>conftest.er1
8177 grep -v '^ *+' conftest.er1 >conftest.err
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } &&
8182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_header_compiler=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_header_compiler=no
8201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8203 echo "${ECHO_T}$ac_header_compiler" >&6
8205 # Is the header present?
8206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 #include <$ac_header>
8216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8219 grep -v '^ *+' conftest.er1 >conftest.err
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } >/dev/null; then
8224 if test -s conftest.err; then
8225 ac_cpp_err=$ac_c_preproc_warn_flag
8226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8233 if test -z "$ac_cpp_err"; then
8234 ac_header_preproc=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_header_preproc=no
8241 rm -f conftest.err conftest.$ac_ext
8242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8243 echo "${ECHO_T}$ac_header_preproc" >&6
8245 # So? What about this header?
8246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8252 ac_header_preproc=yes
8255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8269 ## ------------------------------------------ ##
8270 ## Report this to the AC_PACKAGE_NAME lists. ##
8271 ## ------------------------------------------ ##
8274 sed "s/^/$as_me: WARNING: /" >&2
8277 echo "$as_me:$LINENO: checking for $ac_header" >&5
8278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 eval "$as_ac_Header=\$ac_header_preproc"
8284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 echo "$as_me:$LINENO: checking for iconv" >&5
8299 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8300 if test "${am_cv_func_iconv+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 am_cv_func_iconv="no, consider installing GNU libiconv"
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8317 iconv_t cd = iconv_open("","");
8318 iconv(cd,NULL,NULL,NULL,NULL);
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 am_cv_func_iconv=yes
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8353 if test "$am_cv_func_iconv" != yes; then
8354 am_save_LIBS="$LIBS"
8355 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8367 iconv_t cd = iconv_open("","");
8368 iconv(cd,NULL,NULL,NULL,NULL);
8374 rm -f conftest.$ac_objext conftest$ac_exeext
8375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376 (eval $ac_link) 2>conftest.er1
8378 grep -v '^ *+' conftest.er1 >conftest.err
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8396 am_cv_func_iconv=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8402 rm -f conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8404 LIBS="$am_save_LIBS"
8408 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8409 echo "${ECHO_T}$am_cv_func_iconv" >&6
8410 if test "$am_cv_func_iconv" = yes; then
8412 cat >>confdefs.h <<\_ACEOF
8413 #define HAVE_ICONV 1
8416 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8417 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8418 if test "${am_cv_proto_iconv+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 cat >conftest.$ac_ext <<_ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8435 #if defined(__STDC__) || defined(__cplusplus)
8436 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>conftest.er1
8453 grep -v '^ *+' conftest.er1 >conftest.err
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 am_cv_proto_iconv_arg1=""
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 am_cv_proto_iconv_arg1="const"
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478 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);"
8481 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8482 echo "$as_me:$LINENO: result: ${ac_t:-
8483 }$am_cv_proto_iconv" >&5
8484 echo "${ECHO_T}${ac_t:-
8485 }$am_cv_proto_iconv" >&6
8487 cat >>confdefs.h <<_ACEOF
8488 #define ICONV_CONST $am_cv_proto_iconv_arg1
8493 if test "$am_cv_lib_iconv" = yes; then
8494 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
8498 # Until we have in-tree GNU iconv:
8503 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8504 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8505 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8523 rm -f conftest.$ac_objext conftest$ac_exeext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8525 (eval $ac_link) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1 >conftest.err
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest$ac_exeext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
8544 am_cv_val_LC_MESSAGES=yes
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 am_cv_val_LC_MESSAGES=no
8551 rm -f conftest.err conftest.$ac_objext \
8552 conftest$ac_exeext conftest.$ac_ext
8554 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8555 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8556 if test $am_cv_val_LC_MESSAGES = yes; then
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_LC_MESSAGES 1
8565 # We will need to find libiberty.h and ansidecl.h
8566 saved_CFLAGS="$CFLAGS"
8567 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8568 for ac_func in getenv atol sbrk abort atof getcwd getwd \
8569 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8570 fprintf_unlocked strstr errno snprintf vasprintf \
8571 malloc realloc calloc free basename getopt clock
8573 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8575 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8576 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8586 #define $ac_tr_decl 1
8588 #include "ansidecl.h"
8595 char *(*pfn) = (char *(*)) $ac_func ;
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 eval "gcc_cv_have_decl_$ac_func=yes"
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 eval "gcc_cv_have_decl_$ac_func=no"
8629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8632 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8633 echo "$as_me:$LINENO: result: yes" >&5
8634 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8635 #define $ac_tr_decl 1
8639 echo "$as_me:$LINENO: result: no" >&5
8640 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8641 #define $ac_tr_decl 0
8647 if test x = y ; then
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_DECL_GETENV 1
8653 cat >>confdefs.h <<\_ACEOF
8654 #define HAVE_DECL_ATOL 1
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_DECL_SBRK 1
8661 cat >>confdefs.h <<\_ACEOF
8662 #define HAVE_DECL_ABORT 1
8665 cat >>confdefs.h <<\_ACEOF
8666 #define HAVE_DECL_ATOF 1
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_DECL_GETCWD 1
8673 cat >>confdefs.h <<\_ACEOF
8674 #define HAVE_DECL_GETWD 1
8678 cat >>confdefs.h <<\_ACEOF
8679 #define HAVE_DECL_STRSIGNAL 1
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_DECL_PUTC_UNLOCKED 1
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_DECL_FPUTS_UNLOCKED 1
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_DECL_FWRITE_UNLOCKED 1
8695 cat >>confdefs.h <<\_ACEOF
8696 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8699 cat >>confdefs.h <<\_ACEOF
8700 #define HAVE_DECL_STRSTR 1
8703 cat >>confdefs.h <<\_ACEOF
8704 #define HAVE_DECL_ERRNO 1
8707 cat >>confdefs.h <<\_ACEOF
8708 #define HAVE_DECL_SNPRINTF 1
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_DECL_VASPRINTF 1
8716 cat >>confdefs.h <<\_ACEOF
8717 #define HAVE_DECL_MALLOC 1
8720 cat >>confdefs.h <<\_ACEOF
8721 #define HAVE_DECL_REALLOC 1
8724 cat >>confdefs.h <<\_ACEOF
8725 #define HAVE_DECL_CALLOC 1
8728 cat >>confdefs.h <<\_ACEOF
8729 #define HAVE_DECL_FREE 1
8732 cat >>confdefs.h <<\_ACEOF
8733 #define HAVE_DECL_BASENAME 1
8736 cat >>confdefs.h <<\_ACEOF
8737 #define HAVE_DECL_GETOPT 1
8740 cat >>confdefs.h <<\_ACEOF
8741 #define HAVE_DECL_CLOCK 1
8746 for ac_func in getrlimit setrlimit getrusage
8748 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8749 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8750 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8751 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 cat >conftest.$ac_ext <<_ACEOF
8757 cat confdefs.h >>conftest.$ac_ext
8758 cat >>conftest.$ac_ext <<_ACEOF
8759 /* end confdefs.h. */
8761 #define $ac_tr_decl 1
8763 #include "ansidecl.h"
8765 #ifdef HAVE_SYS_RESOURCE_H
8766 #include <sys/resource.h>
8774 char *(*pfn) = (char *(*)) $ac_func ;
8780 rm -f conftest.$ac_objext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8782 (eval $ac_compile) 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } &&
8789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest.$ac_objext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 eval "gcc_cv_have_decl_$ac_func=yes"
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 eval "gcc_cv_have_decl_$ac_func=no"
8808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8811 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8812 echo "$as_me:$LINENO: result: yes" >&5
8813 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8814 #define $ac_tr_decl 1
8818 echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8820 #define $ac_tr_decl 0
8826 if test x = y ; then
8828 cat >>confdefs.h <<\_ACEOF
8829 #define HAVE_DECL_GETRLIMIT 1
8832 cat >>confdefs.h <<\_ACEOF
8833 #define HAVE_DECL_SETRLIMIT 1
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_DECL_GETRUSAGE 1
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8849 #include "ansidecl.h"
8851 #ifdef HAVE_SYS_RESOURCE_H
8852 #include <sys/resource.h>
8863 rm -f conftest.$ac_objext
8864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8865 (eval $ac_compile) 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } &&
8872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try='test -s conftest.$ac_objext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8890 cat >>confdefs.h <<\_ACEOF
8895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8897 for ac_func in ldgetname
8899 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8900 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8901 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8902 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 #define $ac_tr_decl 1
8914 #include "ansidecl.h"
8925 char *(*pfn) = (char *(*)) $ac_func ;
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8952 eval "gcc_cv_have_decl_$ac_func=yes"
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 eval "gcc_cv_have_decl_$ac_func=no"
8959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8962 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8963 echo "$as_me:$LINENO: result: yes" >&5
8964 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
8965 #define $ac_tr_decl 1
8969 echo "$as_me:$LINENO: result: no" >&5
8970 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
8971 #define $ac_tr_decl 0
8977 if test x = y ; then
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_DECL_LDGETNAME 1
8985 for ac_func in times
8987 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8988 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8989 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8990 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8993 cat >conftest.$ac_ext <<_ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
9000 #define $ac_tr_decl 1
9002 #include "ansidecl.h"
9004 #ifdef HAVE_SYS_TIMES_H
9005 #include <sys/times.h>
9013 char *(*pfn) = (char *(*)) $ac_func ;
9019 rm -f conftest.$ac_objext
9020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9021 (eval $ac_compile) 2>conftest.er1
9023 grep -v '^ *+' conftest.er1 >conftest.err
9025 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } &&
9034 { ac_try='test -s conftest.$ac_objext'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; }; then
9040 eval "gcc_cv_have_decl_$ac_func=yes"
9042 echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9045 eval "gcc_cv_have_decl_$ac_func=no"
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9050 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9051 echo "$as_me:$LINENO: result: yes" >&5
9052 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
9053 #define $ac_tr_decl 1
9057 echo "$as_me:$LINENO: result: no" >&5
9058 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
9059 #define $ac_tr_decl 0
9065 if test x = y ; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_DECL_TIMES 1
9073 # More time-related stuff.
9074 echo "$as_me:$LINENO: checking for struct tms" >&5
9075 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
9076 if test "${ac_cv_struct_tms+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.$ac_ext <<_ACEOF
9083 cat confdefs.h >>conftest.$ac_ext
9084 cat >>conftest.$ac_ext <<_ACEOF
9085 /* end confdefs.h. */
9087 #include "ansidecl.h"
9089 #ifdef HAVE_SYS_TIMES_H
9090 #include <sys/times.h>
9101 rm -f conftest.$ac_objext
9102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9103 (eval $ac_compile) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; } &&
9116 { ac_try='test -s conftest.$ac_objext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_struct_tms=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9131 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
9132 echo "${ECHO_T}$ac_cv_struct_tms" >&6
9133 if test $ac_cv_struct_tms = yes; then
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_STRUCT_TMS 1
9141 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9142 # revisit after autoconf 2.50.
9143 echo "$as_me:$LINENO: checking for clock_t" >&5
9144 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
9145 if test "${gcc_cv_type_clock_t+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9156 #include "ansidecl.h"
9167 rm -f conftest.$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169 (eval $ac_compile) 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 gcc_cv_type_clock_t=yes
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.$ac_ext >&5
9193 gcc_cv_type_clock_t=no
9195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
9198 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
9199 if test $gcc_cv_type_clock_t = yes; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define HAVE_CLOCK_T 1
9207 echo "$as_me:$LINENO: checking for uchar" >&5
9208 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
9209 if test "${gcc_cv_type_uchar+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9219 #include "ansidecl.h"
9225 if ((uchar *)0) return 0;
9226 if (sizeof(uchar)) return 0;
9231 rm -f conftest.$ac_objext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9233 (eval $ac_compile) 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); }; } &&
9246 { ac_try='test -s conftest.$ac_objext'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; }; then
9252 ac_cv_type_uchar=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
9262 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
9263 if test $ac_cv_type_uchar = yes; then
9265 cat >>confdefs.h <<\_ACEOF
9266 #define HAVE_UCHAR 1
9271 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9272 CFLAGS="$saved_CFLAGS"
9274 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9275 if test "${enable_initfini_array+set}" = set; then
9276 enableval="$enable_initfini_array"
9280 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9281 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9282 if test "${gcc_cv_initfini_array+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 if test "$cross_compiling" = yes; then
9286 gcc_cv_initfini_array=no
9288 cat >conftest.$ac_ext <<_ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9296 int main (void) { return x; }
9297 int foo (void) { x = 0; }
9298 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9300 rm -f conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 gcc_cv_initfini_array=yes
9313 echo "$as_me: program exited with status $ac_status" >&5
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9318 gcc_cv_initfini_array=no
9320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9323 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9324 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9325 enable_initfini_array=$gcc_cv_initfini_array
9328 if test $enable_initfini_array = yes; then
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_INITFINI_ARRAY 1
9336 # mkdir takes a single argument on some systems.
9337 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9338 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9339 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 cat >conftest.$ac_ext <<_ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #ifdef HAVE_SYS_STAT_H
9351 # include <sys/stat.h>
9353 #ifdef HAVE_UNISTD_H
9354 # include <unistd.h>
9356 #ifdef HAVE_DIRECT_H
9357 # include <direct.h>
9367 rm -f conftest.$ac_objext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9369 (eval $ac_compile) 2>conftest.er1
9371 grep -v '^ *+' conftest.er1 >conftest.err
9373 cat conftest.err >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest.$ac_objext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 gcc_cv_mkdir_takes_one_arg=no
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 gcc_cv_mkdir_takes_one_arg=yes
9395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9397 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9398 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9399 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9401 cat >>confdefs.h <<\_ACEOF
9402 #define MKDIR_TAKES_ONE_ARG 1
9414 # With Setjmp/Longjmp based exception handling.
9415 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9416 if test "${enable_sjlj_exceptions+set}" = set; then
9417 enableval="$enable_sjlj_exceptions"
9418 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9420 cat >>confdefs.h <<_ACEOF
9421 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9426 if test x$host = x$target; then
9427 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9428 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9429 if test "${ac_cv_lib_unwind_main+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_check_lib_save_LIBS=$LIBS
9433 LIBS="-lunwind $LIBS"
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9450 rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9452 (eval $ac_link) 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; } &&
9465 { ac_try='test -s conftest$ac_exeext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_cv_lib_unwind_main=yes
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_cv_lib_unwind_main=no
9478 rm -f conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 LIBS=$ac_check_lib_save_LIBS
9482 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9483 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9484 if test $ac_cv_lib_unwind_main = yes; then
9485 use_libunwind_default=yes
9487 use_libunwind_default=no
9491 use_libunwind_default=no
9493 # Use libunwind based exception handling.
9494 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9495 if test "${enable_libunwind_exceptions+set}" = set; then
9496 enableval="$enable_libunwind_exceptions"
9497 use_libunwind_exceptions=$enableval
9499 use_libunwind_exceptions=$use_libunwind_default
9501 if test x"$use_libunwind_exceptions" = xyes; then
9503 cat >>confdefs.h <<\_ACEOF
9504 #define USE_LIBUNWIND_EXCEPTIONS 1
9509 # --------------------------------------------------------
9510 # Build, host, and target specific configuration fragments
9511 # --------------------------------------------------------
9513 # Collect build-machine-specific information.
9514 . ${srcdir}/config.build
9516 # Collect host-machine-specific information.
9517 . ${srcdir}/config.host
9521 # Collect target-machine-specific information.
9522 . ${srcdir}/config.gcc
9524 extra_objs="${host_extra_objs} ${extra_objs}"
9526 # Default the target-machine variables that were not explicitly set.
9527 if test x"$tm_file" = x
9528 then tm_file=$cpu_type/$cpu_type.h; fi
9530 if test x"$extra_headers" = x
9531 then extra_headers=; fi
9533 if test x$md_file = x
9534 then md_file=$cpu_type/$cpu_type.md; fi
9536 if test x$out_file = x
9537 then out_file=$cpu_type/$cpu_type.c; fi
9539 if test x"$tmake_file" = x
9540 then tmake_file=$cpu_type/t-$cpu_type
9543 if test x"$dwarf2" = xyes
9544 then tm_file="$tm_file tm-dwarf2.h"
9547 # Say what files are being used for the output code and MD file.
9548 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9549 echo "Using \`$srcdir/config/$md_file' as machine description file."
9551 # If any of the xm_file variables contain nonexistent files, warn
9552 # about them and drop them.
9555 for x in $build_xm_file; do
9556 if test -f $srcdir/config/$x
9558 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9559 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9565 for x in $host_xm_file; do
9566 if test -f $srcdir/config/$x
9568 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9569 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9575 for x in $xm_file; do
9576 if test -f $srcdir/config/$x
9578 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9579 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9585 for f in $tm_file; do
9588 if test $count = ax; then
9589 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9591 echo "Using the following target machine macro files:"
9592 for f in $tm_file; do
9593 echo " $srcdir/config/$f"
9597 if test x$need_64bit_hwint = xyes; then
9599 cat >>confdefs.h <<\_ACEOF
9600 #define NEED_64BIT_HOST_WIDE_INT 1
9606 for f in $host_xm_file; do
9609 if test $count = a; then
9611 elif test $count = ax; then
9612 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9614 echo "Using the following host machine macro files:"
9615 for f in $host_xm_file; do
9616 echo " $srcdir/config/$f"
9619 echo "Using ${out_host_hook_obj} for host machine hooks."
9621 if test "$host_xm_file" != "$build_xm_file"; then
9623 for f in $build_xm_file; do
9626 if test $count = a; then
9628 elif test $count = ax; then
9629 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9631 echo "Using the following build machine macro files:"
9632 for f in $build_xm_file; do
9633 echo " $srcdir/config/$f"
9638 # Check if a valid thread package
9639 case ${enable_threads_flag} in
9642 target_thread_file='single'
9646 target_thread_file='single'
9648 aix | dce | gnat | irix | posix | rtems | \
9649 single | solaris | vxworks | win32 )
9650 target_thread_file=${enable_threads_flag}
9653 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9658 if test x${thread_file} = x; then
9659 # No thread file set by target-specific clauses in config.gcc,
9660 # so use file chosen by default logic above
9661 thread_file=${target_thread_file}
9664 if test x$enable___cxa_atexit = xyes || \
9665 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define DEFAULT_USE_CXA_ATEXIT 1
9673 # Look for a file containing extra machine modes.
9674 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
9675 extra_modes_file='$(srcdir)'/config/${extra_modes}
9678 cat >>confdefs.h <<_ACEOF
9679 #define EXTRA_MODES_FILE "config/$extra_modes"
9684 # auto-host.h is the file containing items generated by autoconf and is
9685 # the first file included by config.h.
9686 # If host=build, it is correct to have bconfig include auto-host.h
9687 # as well. If host!=build, we are in error and need to do more
9688 # work to find out the build config parameters.
9689 if test x$host = x$build
9691 build_auto=auto-host.h
9694 # We create a subdir, then run autoconf in the subdir.
9695 # To prevent recursion we set host and build for the new
9696 # invocation of configure to the build for this invocation
9703 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
9704 *) realsrcdir=../${srcdir};;
9706 saved_CFLAGS="${CFLAGS}"
9707 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
9708 ${realsrcdir}/configure \
9709 --target=$target_alias --host=$build_alias --build=$build_alias
9710 CFLAGS="${saved_CFLAGS}"
9712 # We just finished tests for the build machine, so rename
9713 # the file auto-build.h in the gcc directory.
9714 mv auto-host.h ../auto-build.h
9717 build_auto=auto-build.h
9718 FORBUILD=../${build_subdir}
9722 tm_file="${tm_file} defaults.h"
9723 tm_p_file="${tm_p_file} tm-preds.h"
9724 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
9725 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
9726 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9727 # put this back in temporarily.
9728 xm_file="ansidecl.h ${xm_file}"
9734 # Get the version trigger filename from the toplevel
9735 if test "${with_gcc_version_trigger+set}" = set; then
9736 gcc_version_trigger=$with_gcc_version_trigger
9738 gcc_version_trigger=${srcdir}/version.c
9740 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9741 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9743 # Compile in configure arguments.
9744 if test -f configargs.h ; then
9745 # Being re-configured.
9746 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9747 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9749 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9752 # Double all backslashes and backslash all quotes to turn
9753 # gcc_config_arguments into a C string.
9754 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9755 $gcc_config_arguments
9757 gcc_config_arguments_str=`cat conftest.out`
9760 cat > configargs.h <<EOF
9761 /* Generated automatically. */
9762 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9763 static const char thread_model[] = "$thread_file";
9765 static const struct {
9766 const char *name, *value;
9767 } configure_default_options[] = $configure_default_options;
9770 # Internationalization
9772 VERSION="$gcc_version"
9776 # If we haven't got the data from the intl directory,
9777 # assume NLS is disabled.
9785 if test -f ../intl/config.intl; then
9786 . ../intl/config.intl
9788 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9789 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9790 if test x"$USE_NLS" != xyes; then
9791 echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6
9794 echo "$as_me:$LINENO: result: yes" >&5
9795 echo "${ECHO_T}yes" >&6
9797 cat >>confdefs.h <<\_ACEOF
9798 #define ENABLE_NLS 1
9802 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9803 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9804 # Look for .po and .gmo files in the source directory.
9807 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
9808 # If there aren't any .gmo files the shell will give us the
9809 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9811 case "$cat" in *\**)
9814 # The quadruple backslash is collapsed to a double backslash
9815 # by the backticks, then collapsed again by the double quotes,
9816 # leaving us with one backslash in the sed expression (right
9817 # before the dot that mustn't act as a wildcard).
9818 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9819 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9820 # The user is allowed to set LINGUAS to a list of languages to
9821 # install catalogs for. If it's empty that means "all of them."
9822 if test "x$LINGUAS" = x; then
9823 CATALOGS="$CATALOGS $cat"
9824 XLINGUAS="$XLINGUAS $lang"
9826 case "$LINGUAS" in *$lang*)
9827 CATALOGS="$CATALOGS $cat"
9828 XLINGUAS="$XLINGUAS $lang"
9834 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9835 echo "${ECHO_T}$LINGUAS" >&6
9838 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9839 # -liconv on the link line twice.
9840 case "$LIBINTL" in *$LIBICONV*)
9844 # Windows32 Registry support for specifying GCC installation paths.
9845 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9846 if test "${enable_win32_registry+set}" = set; then
9847 enableval="$enable_win32_registry"
9851 win32 | pe | cygwin* | mingw32* | uwin*)
9852 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9853 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9854 if test "x$enable_win32_registry" != xno; then
9856 cat >>confdefs.h <<\_ACEOF
9857 #define ENABLE_WIN32_REGISTRY 1
9860 echo "$as_me:$LINENO: result: yes" >&5
9861 echo "${ECHO_T}yes" >&6
9862 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9863 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9864 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_RegOpenKeyExA=no
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9876 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9882 char RegOpenKeyExA ();
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_RegOpenKeyExA="none required"
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9918 rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_RegOpenKeyExA" = no; then
9921 for ac_lib in advapi32; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9934 /* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936 char RegOpenKeyExA ();
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_search_RegOpenKeyExA="-l$ac_lib"
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9973 rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9977 LIBS=$ac_func_search_save_LIBS
9979 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9980 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9981 if test "$ac_cv_search_RegOpenKeyExA" != no; then
9982 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
9987 echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6
9991 # Check if user specified a different registry key.
9992 case "x${enable_win32_registry}" in
9995 gcc_cv_win32_registry_key="$VERSION"
9998 # no registry lookup.
9999 gcc_cv_win32_registry_key=''
10002 # user-specified key.
10003 gcc_cv_win32_registry_key="$enable_win32_registry"
10007 if test "x$enable_win32_registry" != xno; then
10008 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
10009 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
10011 cat >>confdefs.h <<_ACEOF
10012 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
10015 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
10016 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
10021 # Get an absolute path to the GCC top-level source directory
10022 holddir=`${PWDCMD-pwd}`
10024 topdir=`${PWDCMD-pwd}`
10027 # Conditionalize the makefile for this host machine.
10029 for f in ${host_xmake_file}
10031 if test -f ${srcdir}/config/$f
10033 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10037 # Conditionalize the makefile for this target machine.
10039 for f in ${tmake_file}
10041 if test -f ${srcdir}/config/$f
10043 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10046 tmake_file="${tmake_file_}"
10048 symbolic_link='ln -s'
10050 # If the host doesn't support symlinks, modify CC in
10051 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
10052 # Otherwise, we can use "CC=$(CC)".
10054 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
10056 cc_set_by_configure="\$(CC)"
10057 quoted_cc_set_by_configure="\$(CC)"
10058 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
10059 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
10062 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
10064 symbolic_link="cp -p"
10068 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
10069 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
10070 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
10071 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
10075 out_object_file=`basename $out_file .c`.o
10079 for f in $tm_file; do
10082 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10083 tm_include_list="${tm_include_list} $f"
10086 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10087 tm_include_list="${tm_include_list} config/$f"
10094 for f in $tm_p_file; do
10097 tm_p_file_list="${tm_p_file_list} $f"
10098 tm_p_include_list="${tm_p_include_list} $f"
10101 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10102 tm_p_include_list="${tm_p_include_list} config/$f"
10108 for f in $xm_file; do
10111 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10112 xm_include_list="${xm_include_list} $f"
10115 xm_file_list="${xm_file_list} $f"
10116 xm_include_list="${xm_include_list} $f"
10119 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10120 xm_include_list="${xm_include_list} config/$f"
10126 host_xm_include_list=
10127 for f in $host_xm_file; do
10130 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10131 host_xm_include_list="${host_xm_include_list} $f"
10134 host_xm_file_list="${host_xm_file_list} $f"
10135 host_xm_include_list="${host_xm_include_list} $f"
10138 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10139 host_xm_include_list="${host_xm_include_list} config/$f"
10144 build_xm_file_list=
10145 for f in $build_xm_file; do
10148 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10149 build_xm_include_list="${build_xm_include_list} $f"
10151 auto-build.h | auto-host.h )
10152 build_xm_file_list="${build_xm_file_list} $f"
10153 build_xm_include_list="${build_xm_include_list} $f"
10156 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10157 build_xm_include_list="${build_xm_include_list} config/$f"
10162 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
10163 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10166 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10167 if test x$host != x$target
10169 CROSS="-DCROSS_COMPILE"
10171 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10172 case "$host","$target" in
10173 # Darwin crosses can use the host system's libraries and headers,
10174 # because of the fat library support. Of course, it must be the
10175 # same version of Darwin on both sides. Allow the user to
10176 # just say --target=foo-darwin without a version number to mean
10177 # "the version on this system".
10178 *-*-darwin*,*-*-darwin*)
10179 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10180 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10181 if test $hostos = $targetos -o $targetos = darwin ; then
10183 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10188 i?86-*-*,x86_64-*-* \
10189 | powerpc*-*-*,powerpc64*-*-*)
10190 CROSS="$CROSS -DNATIVE_CROSS" ;;
10192 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10193 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10194 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)'
10197 # If this is a cross-compiler that does not
10198 # have its own set of headers then define
10201 # If this is using newlib, without having the headers available now,
10202 # then define inhibit_libc in LIBGCC2_CFLAGS.
10203 # This prevents libgcc2 from containing any code which requires libc
10206 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10207 test x$with_newlib = xyes ; } &&
10208 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10209 inhibit_libc=-Dinhibit_libc
10213 # When building gcc with a cross-compiler, we need to adjust things so
10214 # that the generator programs are still built with the native compiler.
10215 # Also, we cannot run fixincludes or fix-header.
10217 # These are the normal (build=host) settings:
10219 BUILD_PREFIX_1=ignore-
10220 CC_FOR_BUILD='$(CC)'
10221 BUILD_CFLAGS='$(ALL_CFLAGS)'
10223 STMP_FIXINC=stmp-fixinc
10225 # Possibly disable fixproto, on a per-target basis.
10226 case ${use_fixproto} in
10231 STMP_FIXPROTO=stmp-fixproto
10236 # And these apply if build != host, or we are generating coverage data
10237 if test x$build != x$host || test "x$coverage_flags" != x
10239 BUILD_PREFIX=build-
10240 BUILD_PREFIX_1=build-
10241 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10243 if test "x$TARGET_SYSTEM_ROOT" = x; then
10249 # Expand extra_headers to include complete path.
10250 # This substitutes for lots of t-* files.
10251 extra_headers_list=
10252 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10253 for file in ${extra_headers} ; do
10254 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10257 # Add a definition of USE_COLLECT2 if system wants one.
10258 case $use_collect2 in
10259 no) use_collect2= ;;
10262 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10263 xm_defines="${xm_defines} USE_COLLECT2"
10267 # Identify the assembler which will work hand-in-glove with the newly
10268 # built GCC, so that we can examine its features. This is the assembler
10269 # which will be driven by the driver program.
10271 # If build != host, and we aren't building gas in-tree, we identify a
10272 # build->target assembler and hope that it will have the same features
10273 # as the host->target assembler we'll be using.
10274 echo "$as_me:$LINENO: checking what assembler to use" >&5
10275 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10278 gcc_cv_gas_major_version=
10279 gcc_cv_gas_minor_version=
10280 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10281 if test -x "$DEFAULT_ASSEMBLER"; then
10282 gcc_cv_as="$DEFAULT_ASSEMBLER"
10283 elif test -x "$AS"; then
10285 elif test -x as$host_exeext; then
10286 # Build using assembler in the current directory.
10287 gcc_cv_as=./as$host_exeext
10288 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
10289 && test -f ../gas/Makefile; then
10290 # Single tree build which includes gas.
10292 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10293 for f in $gcc_cv_as_bfd_srcdir/configure \
10294 $gcc_cv_as_gas_srcdir/configure \
10295 $gcc_cv_as_gas_srcdir/configure.in \
10296 $gcc_cv_as_gas_srcdir/Makefile.in ; do
10297 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10298 if test x$gcc_cv_gas_version != x; then
10302 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10303 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10304 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10305 case $gcc_cv_gas_patch_version in
10306 "") gcc_cv_gas_patch_version="0" ;;
10308 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10309 + $gcc_cv_gas_minor_version \) \* 1000 \
10310 + $gcc_cv_gas_patch_version`
10312 rm -f as$host_exeext
10313 $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
10314 in_tree_gas_is_elf=no
10315 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
10316 || (grep 'obj_format = multi' ../gas/Makefile \
10317 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
10319 in_tree_gas_is_elf=yes
10323 if test "x$gcc_cv_as" = x; then
10324 # Search the same directories that the installed compiler will
10325 # search. Else we may find the wrong assembler and lose. If we
10326 # do not find a suitable assembler binary, then try the user's
10329 # Also note we have to check MD_EXEC_PREFIX before checking the
10330 # user's path. Unfortunately, there is no good way to get at the
10331 # value of MD_EXEC_PREFIX here. So we do a brute force search
10332 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10333 # to be fixed as part of the make/configure rewrite too.
10335 if test "x$exec_prefix" = xNONE; then
10336 if test "x$prefix" = xNONE; then
10337 test_prefix=/usr/local
10339 test_prefix=$prefix
10342 test_prefix=$exec_prefix
10345 # If the loop below does not find an assembler, then use whatever
10346 # one we can find in the users's path.
10348 if test "x$program_prefix" != xNONE; then
10349 gcc_cv_as=${program_prefix}as$host_exeext
10351 gcc_cv_as=`echo as | sed ${program_transform_name}`$host_exeext
10354 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
10355 $test_prefix/lib/gcc-lib/$target_noncanonical \
10356 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10357 /usr/lib/gcc/$target_noncanonical \
10358 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10359 $test_prefix/$target_noncanonical/bin"
10361 if test x$host = x$target; then
10362 test_dirs="$test_dirs \
10367 /bsd43/usr/lib/cmplrs/cc \
10368 /usr/cross64/usr/bin \
10369 /usr/lib/cmplrs/cc \
10370 /sysv/usr/lib/cmplrs/cc \
10371 /svr4/usr/lib/cmplrs/cc \
10375 for dir in $test_dirs; do
10376 if test -x $dir/as$host_exeext; then
10377 gcc_cv_as=$dir/as$host_exeext
10382 case $in_tree_gas in
10384 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10385 echo "${ECHO_T}\"newly built gas\"" >&6
10388 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10389 echo "${ECHO_T}$gcc_cv_as" >&6
10393 # Identify the linker which will work hand-in-glove with the newly
10394 # built GCC, so that we can examine its features. This is the linker
10395 # which will be driven by the driver program.
10397 # If build != host, and we aren't building gas in-tree, we identify a
10398 # build->target linker and hope that it will have the same features
10399 # as the host->target linker we'll be using.
10400 echo "$as_me:$LINENO: checking what linker to use" >&5
10401 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10404 gcc_cv_gld_major_version=
10405 gcc_cv_gld_minor_version=
10406 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10407 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10408 if test -x "$DEFAULT_LINKER"; then
10409 gcc_cv_ld="$DEFAULT_LINKER"
10410 elif test -x "$LD"; then
10412 elif test -x collect-ld$host_exeext; then
10413 # Build using linker in the current directory.
10414 gcc_cv_ld=./collect-ld$host_exeext
10415 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
10416 && test -f ../ld/Makefile; then
10417 # Single tree build which includes ld.
10419 in_tree_ld_is_elf=no
10420 if (grep 'EMUL = .*elf' ../ld/Makefile \
10421 || grep 'EMUL = .*linux' ../ld/Makefile) > /dev/null; then
10422 in_tree_ld_is_elf=yes
10424 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
10426 gcc_cv_gld_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10427 if test x$gcc_cv_gld_version != x; then
10431 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10432 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10433 rm -f collect-ld$host_exeext
10434 $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext \
10438 if test "x$gcc_cv_ld" = x; then
10439 # Search the same directories that the installed compiler will
10440 # search. Else we may find the wrong linker and lose. If we
10441 # do not find a suitable linker binary, then try the user's
10444 # Also note we have to check MD_EXEC_PREFIX before checking the
10445 # user's path. Unfortunately, there is no good way to get at the
10446 # value of MD_EXEC_PREFIX here. So we do a brute force search
10447 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10448 # to be fixed as part of the make/configure rewrite too.
10450 if test "x$exec_prefix" = xNONE; then
10451 if test "x$prefix" = xNONE; then
10452 test_prefix=/usr/local
10454 test_prefix=$prefix
10457 test_prefix=$exec_prefix
10460 # If the loop below does not find an linker, then use whatever
10461 # one we can find in the users's path.
10463 if test "x$program_prefix" != xNONE; then
10464 gcc_cv_ld=${program_prefix}ld$host_exeext
10466 gcc_cv_ld=`echo ld | sed ${program_transform_name}`$host_exeext
10469 test_dirs="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
10470 $test_prefix/lib/gcc-lib/$target_noncanonical \
10471 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10472 /usr/lib/gcc/$target_noncanonical \
10473 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10474 $test_prefix/$target_noncanonical/bin"
10476 if test x$host = x$target; then
10477 test_dirs="$test_dirs \
10482 /bsd43/usr/lib/cmplrs/cc \
10483 /usr/cross64/usr/bin \
10484 /usr/lib/cmplrs/cc \
10485 /sysv/usr/lib/cmplrs/cc \
10486 /svr4/usr/lib/cmplrs/cc \
10490 for dir in $test_dirs; do
10491 if test -x $dir/ld$host_exeext; then
10492 gcc_cv_ld=$dir/ld$host_exeext
10497 case $in_tree_ld in
10499 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10500 echo "${ECHO_T}\"newly built ld\"" >&6
10503 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10504 echo "${ECHO_T}$gcc_cv_ld" >&6
10508 # Figure out what nm we will be using.
10509 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10510 echo "$as_me:$LINENO: checking what nm to use" >&5
10511 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10513 if test -x nm$host_exeext; then
10514 gcc_cv_nm=./nm$host_exeext
10515 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10516 && test -f ../binutils/Makefile; then
10517 # Single tree build which includes binutils.
10519 gcc_cv_nm=./nm$host_exeext
10520 rm -f nm$host_exeext
10521 $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
10522 elif test "x$program_prefix" != xNONE; then
10523 gcc_cv_nm=${program_prefix}nm$host_exeext
10525 gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
10527 case $in_tree_nm in
10528 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10529 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10530 no) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10531 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10534 # Figure out what objdump we will be using.
10535 echo "$as_me:$LINENO: checking what objdump to use" >&5
10536 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10538 if test -x objdump$host_exeext; then
10539 gcc_cv_objdump=./objdump$host_exeext
10540 elif test -f $gcc_cv_binutils_srcdir/configure.in \
10541 && test -f ../binutils/Makefile; then
10542 # Single tree build which includes binutils.
10543 in_tree_objdump=yes
10544 gcc_cv_objdump=./objdump$host_exeext
10545 rm -f objdump$host_exeext
10546 $symbolic_link ../binutils/objdump$host_exeext \
10547 objdump$host_exeext 2>/dev/null
10548 elif test "x$program_prefix" != xNONE; then
10549 gcc_cv_objdump=${program_prefix}objdump$host_exeext
10551 gcc_cv_objdump=`echo objdump | \
10552 sed ${program_transform_name}`$host_exeext
10554 case $in_tree_objdump in
10555 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10556 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10557 no) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10558 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10561 # Figure out what assembler alignment features are present.
10562 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10563 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10564 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 gcc_cv_as_balign_and_p2align=no
10568 if test $in_tree_gas = yes; then
10569 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10570 then gcc_cv_as_balign_and_p2align=yes
10572 elif test x$gcc_cv_as != x; then
10574 .p2align 2' > conftest.s
10575 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }
10582 gcc_cv_as_balign_and_p2align=yes
10584 echo "configure: failed program was" >&5
10587 rm -f conftest.o conftest.s
10590 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10591 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10592 if test $gcc_cv_as_balign_and_p2align = yes; then
10594 cat >>confdefs.h <<\_ACEOF
10595 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10600 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10601 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10602 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 gcc_cv_as_max_skip_p2align=no
10606 if test $in_tree_gas = yes; then
10607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10608 then gcc_cv_as_max_skip_p2align=yes
10610 elif test x$gcc_cv_as != x; then
10611 echo '.p2align 4,,7' > conftest.s
10612 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }
10619 gcc_cv_as_max_skip_p2align=yes
10621 echo "configure: failed program was" >&5
10624 rm -f conftest.o conftest.s
10627 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10628 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10629 if test $gcc_cv_as_max_skip_p2align = yes; then
10631 cat >>confdefs.h <<\_ACEOF
10632 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10637 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10638 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10639 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 gcc_cv_as_subsection_m1=no
10643 if test $in_tree_gas = yes; then
10644 if test $in_tree_gas_is_elf = yes \
10645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10646 then gcc_cv_as_subsection_m1=yes
10648 elif test x$gcc_cv_as != x; then
10649 echo 'conftest_label1: .word 0
10651 conftest_label2: .word 0
10652 .previous' > conftest.s
10653 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }
10660 if test x$gcc_cv_nm != x; then
10661 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
10662 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
10663 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
10665 else gcc_cv_as_subsection_m1=yes
10667 rm -f conftest.nm1 conftest.nm2
10670 echo "configure: failed program was" >&5
10673 rm -f conftest.o conftest.s
10676 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10677 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10678 if test $gcc_cv_as_subsection_m1 = yes; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_GAS_SUBSECTION_ORDERING 1
10686 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10687 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10688 if test "${gcc_cv_as_weak+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 if test $in_tree_gas = yes; then
10693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10694 then gcc_cv_as_weak=yes
10696 elif test x$gcc_cv_as != x; then
10697 echo ' .weak foobar' > conftest.s
10698 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }
10707 echo "configure: failed program was" >&5
10710 rm -f conftest.o conftest.s
10713 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10714 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10715 if test $gcc_cv_as_weak = yes; then
10717 cat >>confdefs.h <<\_ACEOF
10718 #define HAVE_GAS_WEAK 1
10723 # .hidden needs to be supported in both the assembler and the linker,
10724 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10725 # This is irritatingly difficult to feature test for; we have to check the
10726 # date string after the version number. If we've got an in-tree
10727 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10729 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10730 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10731 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10732 if test "${gcc_cv_as_hidden+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 gcc_cv_as_hidden=no
10736 if test $in_tree_gas = yes; then
10737 if test $in_tree_gas_is_elf = yes \
10738 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10739 then gcc_cv_as_hidden=yes
10741 elif test x$gcc_cv_as != x; then
10742 echo ' .hidden foobar
10743 foobar:' > conftest.s
10744 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }
10751 gcc_cv_as_hidden=yes
10753 echo "configure: failed program was" >&5
10756 rm -f conftest.o conftest.s
10759 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10760 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10763 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10764 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10765 if test "${gcc_cv_ld_hidden+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 if test $in_tree_ld = yes ; then
10769 gcc_cv_ld_hidden=no
10770 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 \
10771 && test $in_tree_ld_is_elf = yes; then
10772 gcc_cv_ld_hidden=yes
10775 gcc_cv_ld_hidden=yes
10776 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10777 if echo "$ld_ver" | grep GNU > /dev/null; then
10778 ld_vers=`echo $ld_ver | sed -n \
10779 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10780 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10781 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10783 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10784 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10785 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'`
10786 if test 0"$ld_date" -lt 20020404; then
10787 if test -n "$ld_date"; then
10788 # If there was date string, but was earlier than 2002-04-04, fail
10789 gcc_cv_ld_hidden=no
10790 elif test -z "$ld_vers"; then
10791 # If there was no date string nor ld version number, something is wrong
10792 gcc_cv_ld_hidden=no
10794 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
10795 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10796 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10797 test -z "$ld_vers_patch" && ld_vers_patch=0
10798 if test "$ld_vers_major" -lt 2; then
10799 gcc_cv_ld_hidden=no
10800 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10801 gcc_cv_ld_hidden="no"
10802 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10803 gcc_cv_ld_hidden=no
10808 # non-GNU linkers don't seem to support .hidden yet
10809 gcc_cv_ld_hidden=no
10813 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10814 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10815 libgcc_visibility=no
10817 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10818 libgcc_visibility=yes
10820 cat >>confdefs.h <<\_ACEOF
10821 #define HAVE_GAS_HIDDEN 1
10826 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10827 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10828 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10829 if test "${gcc_cv_as_leb128+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 gcc_cv_as_leb128=no
10833 if test $in_tree_gas = yes; then
10834 if test $in_tree_gas_is_elf = yes \
10835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10836 then gcc_cv_as_leb128=yes
10838 elif test x$gcc_cv_as != x; then
10845 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }
10852 # GAS versions before 2.11 do not support uleb128,
10853 # despite appearing to.
10854 # ??? There exists an elf-specific test that will crash
10855 # the assembler. Perhaps it's better to figure out whether
10856 # arbitrary sections are supported and try the test.
10857 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10858 if echo "$as_ver" | grep GNU > /dev/null; then
10859 as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10860 as_major=`echo $as_ver | sed 's/\..*//'`
10861 as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10862 if test $as_major -eq 2 && test $as_minor -lt 11
10864 else gcc_cv_as_leb128=yes
10868 echo "configure: failed program was" >&5
10871 rm -f conftest.o conftest.s
10874 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10875 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10876 if test $gcc_cv_as_leb128 = yes; then
10878 cat >>confdefs.h <<\_ACEOF
10879 #define HAVE_AS_LEB128 1
10884 # GAS versions up to and including 2.11.0 may mis-optimize
10886 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10887 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10888 if test "${gcc_cv_as_eh_frame+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 gcc_cv_as_eh_frame=no
10892 if test $in_tree_gas = yes; then
10893 if test $in_tree_gas_is_elf = yes \
10894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10895 then gcc_cv_as_eh_frame=yes
10897 elif test x$gcc_cv_as != x; then
10904 .section .eh_frame,"aw",@progbits
10906 .4byte .LECIE1-.LSCIE1
10920 .4byte .LEFDE1-.LASFDE1
10922 .4byte .LASFDE1-__FRAME_BEGIN__
10929 .LEFDE1:' > conftest.s
10930 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }
10937 cat > conftest.lit <<EOF
10938 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10939 0010 01000000 12000000 18000000 00000000 ................
10940 0020 08000000 04080000 0044 .........D
10942 cat > conftest.big <<EOF
10943 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10944 0010 00000001 00000012 00000018 00000000 ................
10945 0020 00000008 04000000 0844 .........D
10947 # If the assembler didn't choke, and we can objdump,
10948 # and we got the correct data, then succeed.
10949 if test x$gcc_cv_objdump != x \
10950 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
10951 | tail -3 > conftest.got \
10952 && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
10953 || cmp conftest.big conftest.got > /dev/null 2>&1; }
10955 gcc_cv_as_eh_frame=yes
10956 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 gcc_cv_as_eh_frame=buggy
10964 # Uh oh, what do we do now?
10965 gcc_cv_as_eh_frame=no
10968 echo "configure: failed program was" >&5
10971 rm -f conftest.o conftest.s
10974 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10975 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10978 if test $gcc_cv_as_eh_frame = buggy; then
10980 cat >>confdefs.h <<\_ACEOF
10981 #define USE_AS_TRADITIONAL_FORMAT 1
10986 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10987 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10988 if test "${gcc_cv_as_shf_merge+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 gcc_cv_as_shf_merge=no
10992 if test $in_tree_gas = yes; then
10993 if test $in_tree_gas_is_elf = yes \
10994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10995 then gcc_cv_as_shf_merge=yes
10997 elif test x$gcc_cv_as != x; then
10998 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10999 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }
11006 gcc_cv_as_shf_merge=yes
11008 echo "configure: failed program was" >&5
11011 rm -f conftest.o conftest.s
11014 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
11015 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
11023 # Thread-local storage - the check is heavily parametrized.
11031 .section ".tdata","awT",@progbits
11034 ldq $27,__tls_get_addr($29) !literal!1
11035 lda $16,foo($29) !tlsgd!1
11036 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
11037 ldq $27,__tls_get_addr($29) !literal!2
11038 lda $16,foo($29) !tlsldm!2
11039 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
11040 ldq $1,foo($29) !gotdtprel
11041 ldah $2,foo($29) !dtprelhi
11042 lda $3,foo($2) !dtprello
11043 lda $4,foo($29) !dtprel
11044 ldq $1,foo($29) !gottprel
11045 ldah $2,foo($29) !tprelhi
11046 lda $3,foo($2) !tprello
11047 lda $4,foo($29) !tprel'
11053 .section ".tdata","awT",@progbits
11057 leal foo@TLSGD(,%ebx,1), %eax
11058 leal foo@TLSLDM(%ebx), %eax
11059 leal foo@DTPOFF(%eax), %edx
11060 movl foo@GOTTPOFF(%ebx), %eax
11061 subl foo@GOTTPOFF(%ebx), %eax
11062 addl foo@GOTNTPOFF(%ebx), %eax
11063 movl foo@INDNTPOFF, %eax
11064 movl $foo@TPOFF, %eax
11065 subl $foo@TPOFF, %eax
11066 leal foo@NTPOFF(%ecx), %eax'
11072 .section ".tdata","awT",@progbits
11076 leaq foo@TLSGD(%rip), %rdi
11077 leaq foo@TLSLD(%rip), %rdi
11078 leaq foo@DTPOFF(%rax), %rdx
11079 movq foo@GOTTPOFF(%rip), %rax
11080 movq $foo@TPOFF, %rax'
11086 .section ".tdata","awT",@progbits
11089 addl r16 = @ltoff(@dtpmod(foo#)), gp
11090 addl r17 = @ltoff(@dtprel(foo#)), gp
11091 addl r18 = @ltoff(@tprel(foo#)), gp
11092 addl r19 = @dtprel(foo#), gp
11093 adds r21 = @dtprel(foo#), r13
11094 movl r23 = @dtprel(foo#)
11095 addl r20 = @tprel(foo#), gp
11096 adds r22 = @tprel(foo#), r13
11097 movl r24 = @tprel(foo#)'
11103 .section ".tdata","awT",@progbits
11111 addi 3,31,ld0@got@tlsgd
11113 addi 3,31,x1@got@tlsld
11116 addis 9,3,x2@dtprel@ha
11117 addi 9,9,x2@dtprel@l
11118 lwz 9,x3@got@tprel(31)
11121 addis 9,2,x2@tprel@ha
11122 addi 9,9,x2@tprel@l'
11129 .section ".tdata","awT",@progbits
11137 addi 3,2,ld0@got@tlsgd
11143 addi 3,2,x1@got@tlsld
11149 addis 9,3,x2@dtprel@ha
11150 addi 9,9,x2@dtprel@l
11153 ld 9,x3@got@dtprel(2)
11163 .section ".tdata","awT",@progbits
11170 .long foo@GOTNTPOFF
11171 .long foo@INDNTPOFF
11172 l %r1,foo@GOTNTPOFF(%r12)
11173 l %r1,0(%r1):tls_load:foo
11174 bas %r14,0(%r1,%r13):tls_gdcall:foo
11175 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11182 .section ".tdata","awT",@progbits
11189 .quad foo@GOTNTPOFF
11190 lg %r1,foo@GOTNTPOFF(%r12)
11191 larl %r1,foo@INDNTPOFF
11192 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11193 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11196 tls_as_opt="-m64 -Aesame"
11198 sh-*-* | sh[34]-*-*)
11200 .section ".tdata","awT",@progbits
11213 .section ".tdata","awT",@progbits
11216 sethi %tgd_hi22(foo), %o0
11217 add %o0, %tgd_lo10(foo), %o1
11218 add %l7, %o1, %o0, %tgd_add(foo)
11219 call __tls_get_addr, %tgd_call(foo)
11220 sethi %tldm_hi22(foo), %l1
11221 add %l1, %tldm_lo10(foo), %l2
11222 add %l7, %l2, %o0, %tldm_add(foo)
11223 call __tls_get_addr, %tldm_call(foo)
11224 sethi %tldo_hix22(foo), %l3
11225 xor %l3, %tldo_lox10(foo), %l4
11226 add %o0, %l4, %l5, %tldo_add(foo)
11227 sethi %tie_hi22(foo), %o3
11228 add %o3, %tie_lo10(foo), %o3
11229 ld [%l7 + %o3], %o2, %tie_ld(foo)
11230 add %g7, %o2, %o4, %tie_add(foo)
11231 sethi %tle_hix22(foo), %l1
11232 xor %l1, %tle_lox10(foo), %o5
11233 ld [%g7 + %o5], %o1'
11239 if test -z "$tls_first_major"; then
11240 : # If we don't have a check, assume no support.
11242 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11243 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11244 if test "${gcc_cv_as_tls+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 if test $in_tree_gas = yes; then
11249 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11250 then gcc_cv_as_tls=yes
11252 elif test x$gcc_cv_as != x; then
11253 echo "$conftest_s" > conftest.s
11254 if { ac_try='$gcc_cv_as $tls_as_opt --fatal-warnings -o conftest.o conftest.s >&5'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }
11263 echo "configure: failed program was" >&5
11266 rm -f conftest.o conftest.s
11269 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11270 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11271 if test $gcc_cv_as_tls = yes; then
11273 cat >>confdefs.h <<\_ACEOF
11274 #define HAVE_AS_TLS 1
11280 # Target-specific assembler checks.
11283 # All TARGET_ABI_OSF targets.
11284 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
11285 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11286 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11287 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 gcc_cv_as_alpha_explicit_relocs=no
11291 if test $in_tree_gas = yes; then
11292 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11293 then gcc_cv_as_alpha_explicit_relocs=yes
11295 elif test x$gcc_cv_as != x; then
11296 echo ' .set nomacro
11298 extbl $3, $2, $3 !lituse_bytoff!1
11299 ldq $2, a($29) !literal!1
11300 ldq $4, b($29) !literal!2
11301 ldq_u $3, 0($2) !lituse_base!1
11302 ldq $27, f($29) !literal!5
11303 jsr $26, ($27), f !lituse_jsr!5
11304 ldah $29, 0($26) !gpdisp!3
11305 lda $0, c($29) !gprel
11306 ldah $1, d($29) !gprelhigh
11307 lda $1, d($1) !gprellow
11308 lda $29, 0($29) !gpdisp!3' > conftest.s
11309 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }
11316 gcc_cv_as_alpha_explicit_relocs=yes
11318 echo "configure: failed program was" >&5
11321 rm -f conftest.o conftest.s
11324 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11325 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11326 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11328 cat >>confdefs.h <<\_ACEOF
11329 #define HAVE_AS_EXPLICIT_RELOCS 1
11336 echo "$as_me:$LINENO: checking assembler for .register" >&5
11337 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11338 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 gcc_cv_as_sparc_register_op=no
11342 if test x$gcc_cv_as != x; then
11343 echo '.register %g2, #scratch' > conftest.s
11344 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }
11351 gcc_cv_as_sparc_register_op=yes
11353 echo "configure: failed program was" >&5
11356 rm -f conftest.o conftest.s
11359 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11360 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11361 if test $gcc_cv_as_sparc_register_op = yes; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11369 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11370 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11371 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 gcc_cv_as_sparc_relax=no
11375 if test x$gcc_cv_as != x; then
11376 echo '.text' > conftest.s
11377 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); }; }
11384 gcc_cv_as_sparc_relax=yes
11386 echo "configure: failed program was" >&5
11389 rm -f conftest.o conftest.s
11392 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11393 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11394 if test $gcc_cv_as_sparc_relax = yes; then
11396 cat >>confdefs.h <<\_ACEOF
11397 #define HAVE_AS_RELAX_OPTION 1
11402 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11403 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11404 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 gcc_cv_as_sparc_ua_pcrel=no
11408 if test x$gcc_cv_as != x; then
11415 .uaword %r_disp32(foo)' > conftest.s
11416 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }
11423 if test x$gcc_cv_ld != x \
11424 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
11425 gcc_cv_as_sparc_ua_pcrel=yes
11429 echo "configure: failed program was" >&5
11432 rm -f conftest.o conftest.s
11435 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11436 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11437 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11439 cat >>confdefs.h <<\_ACEOF
11440 #define HAVE_AS_SPARC_UA_PCREL 1
11444 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11445 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11446 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 gcc_cv_as_sparc_ua_pcrel_hidden=no
11450 if test x$gcc_cv_as != x; then
11454 .uaword %r_disp32(foo)
11455 .byte 0x32, 0x33, 0x34
11459 .skip 4' > conftest.s
11460 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }
11467 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
11468 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
11469 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
11470 | grep ' 31000000 07323334' > /dev/null 2>&1; then
11471 if $gcc_cv_objdump -R conftest 2> /dev/null \
11472 | grep 'DISP32' > /dev/null 2>&1; then
11475 gcc_cv_as_sparc_ua_pcrel_hidden=yes
11480 echo "configure: failed program was" >&5
11483 rm -f conftest.o conftest.s
11486 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11487 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11488 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11496 fi # unaligned pcrel relocs
11498 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11499 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11500 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 gcc_cv_as_sparc_offsetable_lo10=no
11504 if test x$gcc_cv_as != x; then
11506 or %g1, %lo(ab) + 12, %g1
11507 or %g1, %lo(ab + 12), %g1' > conftest.s
11508 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }
11515 if test x$gcc_cv_objdump != x \
11516 && %gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
11517 | grep ' 82106000 82106000' > /dev/null 2>&1; then
11518 gcc_cv_as_offsetable_lo10=yes
11521 echo "configure: failed program was" >&5
11524 rm -f conftest.o conftest.s
11527 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11528 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11529 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11531 cat >>confdefs.h <<\_ACEOF
11532 #define HAVE_AS_OFFSETABLE_LO10 1
11538 i[34567]86-*-* | x86_64-*-*)
11539 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11540 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11541 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 gcc_cv_as_ix86_filds_fists=no
11545 if test $in_tree_gas = yes; then
11546 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11547 then gcc_cv_as_ix86_filds_fists=yes
11549 elif test x$gcc_cv_as != x; then
11550 echo 'filds mem; fists mem' > conftest.s
11551 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }
11558 gcc_cv_as_ix86_filds_fists=yes
11560 echo "configure: failed program was" >&5
11563 rm -f conftest.o conftest.s
11566 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11567 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11568 if test $gcc_cv_as_ix86_filds_fists = yes; then
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_GAS_FILDS_FISTS 1
11576 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11577 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11578 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 gcc_cv_as_ix86_cmov_sun_syntax=no
11582 if test x$gcc_cv_as != x; then
11583 echo 'cmovl.l %edx, %eax' > conftest.s
11584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }
11591 gcc_cv_as_ix86_cmov_sun_syntax=yes
11593 echo "configure: failed program was" >&5
11596 rm -f conftest.o conftest.s
11599 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11600 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11601 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11609 # This one is used unconditionally by i386.[ch]; it is to be defined
11610 # to 1 if the feature is present, 0 otherwise.
11611 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11612 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11613 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 gcc_cv_as_ix86_gotoff_in_data=no
11617 if test $in_tree_gas = yes; then
11618 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11619 then gcc_cv_as_ix86_gotoff_in_data=yes
11621 elif test x$gcc_cv_as != x; then
11626 .long .L0@GOTOFF' > conftest.s
11627 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; }
11634 gcc_cv_as_ix86_gotoff_in_data=yes
11636 echo "configure: failed program was" >&5
11639 rm -f conftest.o conftest.s
11642 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11643 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11646 cat >>confdefs.h <<_ACEOF
11647 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11653 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11654 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11655 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
11659 if test $in_tree_gas = yes; then
11660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11661 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11663 elif test x$gcc_cv_as != x; then
11665 addl r15 = @ltoffx(x#), gp
11667 ld8.mov r16 = [r15], x#' > conftest.s
11668 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; }
11675 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
11677 echo "configure: failed program was" >&5
11680 rm -f conftest.o conftest.s
11683 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11684 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11685 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11687 cat >>confdefs.h <<\_ACEOF
11688 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11697 *-*-aix) conftest_s=' .csect .textPR';;
11698 *) conftest_s=' .text';;
11700 conftest_s="$conftest_s
11703 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11704 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11705 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 gcc_cv_as_powerpc_mfcrf=no
11709 if test $in_tree_gas = yes; then
11710 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11711 then gcc_cv_as_powerpc_mfcrf=yes
11713 elif test x$gcc_cv_as != x; then
11714 echo "$conftest_s" > conftest.s
11715 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }
11722 gcc_cv_as_powerpc_mfcrf=yes
11724 echo "configure: failed program was" >&5
11727 rm -f conftest.o conftest.s
11730 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11731 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11732 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11734 cat >>confdefs.h <<\_ACEOF
11735 #define HAVE_AS_MFCRF 1
11742 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11743 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11744 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 gcc_cv_as_mips_explicit_relocs=no
11748 if test $in_tree_gas = yes; then
11749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11750 then gcc_cv_as_mips_explicit_relocs=yes
11752 elif test x$gcc_cv_as != x; then
11753 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11754 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }
11761 gcc_cv_as_mips_explicit_relocs=yes
11763 echo "configure: failed program was" >&5
11766 rm -f conftest.o conftest.s
11769 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11770 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11771 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11772 if test x$target_cpu_default = x
11773 then target_cpu_default=MASK_EXPLICIT_RELOCS
11774 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11780 # ??? Not all targets support dwarf2 debug_line, even within a version
11781 # of gas. Moreover, we need to emit a valid instruction to trigger any
11782 # info to the output file. So, as supported targets are added to gas 2.11,
11783 # add some instruction here to (also) show we expect this might work.
11784 # ??? Once 2.11 is released, probably need to add first known working
11785 # version to the per-target configury.
11787 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
11788 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
11789 | xstormy16*-*-* | cris-*-* | xtensa-*-*)
11799 if test x"$insn" != x; then
11801 .file 1 \"conftest.s\"
11804 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11805 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11806 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 gcc_cv_as_dwarf2_debug_line=no
11810 if test $in_tree_gas = yes; then
11811 if test $in_tree_gas_is_elf = yes \
11812 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11813 then gcc_cv_as_dwarf2_debug_line=yes
11815 elif test x$gcc_cv_as != x; then
11816 echo "$conftest_s" > conftest.s
11817 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }
11824 # ??? This fails with non-gnu grep. Maybe use objdump?
11825 if grep debug_line conftest.o > /dev/null 2>&1; then
11826 gcc_cv_as_dwarf2_debug_line=yes
11829 echo "configure: failed program was" >&5
11832 rm -f conftest.o conftest.s
11835 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11836 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11839 # The .debug_line file table must be in the exact order that
11840 # we specified the files, since these indices are also used
11841 # by DW_AT_decl_file. Approximate this test by testing if
11842 # the assembler bitches if the same index is assigned twice.
11843 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11844 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11845 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 gcc_cv_as_dwarf2_file_buggy=no
11849 if test x$gcc_cv_as != x; then
11850 echo ' .file 1 "foo.s"
11851 .file 1 "bar.s"' > conftest.s
11852 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }
11859 gcc_cv_as_dwarf2_file_buggy=yes
11861 echo "configure: failed program was" >&5
11864 rm -f conftest.o conftest.s
11867 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11868 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11871 if test $gcc_cv_as_dwarf2_debug_line = yes \
11872 && test $gcc_cv_as_dwarf2_file_buggy = no; then
11874 cat >>confdefs.h <<\_ACEOF
11875 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11880 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11881 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11882 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 gcc_cv_as_gdwarf2_flag=no
11886 if test $in_tree_gas = yes; then
11887 if test $in_tree_gas_is_elf = yes \
11888 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11889 then gcc_cv_as_gdwarf2_flag=yes
11891 elif test x$gcc_cv_as != x; then
11892 echo "$insn" > conftest.s
11893 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }
11900 gcc_cv_as_gdwarf2_flag=yes
11902 echo "configure: failed program was" >&5
11905 rm -f conftest.o conftest.s
11908 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11909 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11910 if test $gcc_cv_as_gdwarf2_flag = yes; then
11912 cat >>confdefs.h <<\_ACEOF
11913 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11918 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11919 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11920 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 gcc_cv_as_gstabs_flag=no
11924 if test $in_tree_gas = yes; then
11925 if test $in_tree_gas_is_elf = yes \
11926 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11927 then gcc_cv_as_gstabs_flag=yes
11929 elif test x$gcc_cv_as != x; then
11930 echo "$insn" > conftest.s
11931 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }
11938 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11939 # and warns about it, but still exits successfully. So check for
11941 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }
11948 else gcc_cv_as_gstabs_flag=yes
11951 echo "configure: failed program was" >&5
11954 rm -f conftest.o conftest.s
11957 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11958 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11959 if test $gcc_cv_as_gstabs_flag = yes; then
11961 cat >>confdefs.h <<\_ACEOF
11962 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11968 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11969 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11970 gcc_cv_ld_ro_rw_mix=unknown
11971 if test $in_tree_ld = yes ; then
11972 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 \
11973 && test $in_tree_ld_is_elf = yes; then
11974 gcc_cv_ld_ro_rw_mix=read-write
11976 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
11977 echo '.section myfoosect, "a"' > conftest1.s
11978 echo '.section myfoosect, "aw"' > conftest2.s
11979 echo '.byte 1' >> conftest2.s
11980 echo '.section myfoosect, "a"' > conftest3.s
11981 echo '.byte 0' >> conftest3.s
11982 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
11983 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
11984 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
11985 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11986 conftest2.o conftest3.o > /dev/null 2>&1; then
11987 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
11988 | sed -e '/myfoosect/!d' -e N`
11989 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
11990 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
11991 gcc_cv_ld_ro_rw_mix=read-only
11993 gcc_cv_ld_ro_rw_mix=read-write
11997 rm -f conftest.* conftest[123].*
11999 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
12001 cat >>confdefs.h <<\_ACEOF
12002 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12006 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12007 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12009 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12010 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12011 gcc_cv_ld_eh_frame_hdr=no
12012 if test $in_tree_ld = yes ; then
12013 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 \
12014 && test $in_tree_ld_is_elf = yes; then
12015 gcc_cv_ld_eh_frame_hdr=yes
12017 elif test x$gcc_cv_ld != x; then
12018 # Check if linker supports --eh-frame-hdr option
12019 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
12020 gcc_cv_ld_eh_frame_hdr=yes
12023 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
12025 cat >>confdefs.h <<\_ACEOF
12026 #define HAVE_LD_EH_FRAME_HDR 1
12030 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12031 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12033 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12034 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12036 if test $in_tree_ld = yes ; then
12037 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 \
12038 && test $in_tree_ld_is_elf = yes; then
12041 elif test x$gcc_cv_ld != x; then
12042 # Check if linker supports -pie option
12043 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
12047 if test x"$gcc_cv_ld_pie" = xyes; then
12049 cat >>confdefs.h <<\_ACEOF
12050 #define HAVE_LD_PIE 1
12054 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12055 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12057 # Miscellaneous target-specific checks.
12060 echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
12061 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
12062 gcc_cv_mips_libgloss_startup=no
12063 gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
12064 if test "x$exec_prefix" = xNONE; then
12065 if test "x$prefix" = xNONE; then
12066 test_prefix=/usr/local
12068 test_prefix=$prefix
12071 test_prefix=$exec_prefix
12073 for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_noncanonical/lib/idt.ld
12075 if grep '^STARTUP' $f > /dev/null 2>&1; then
12076 gcc_cv_mips_libgloss_startup=yes
12080 if test x"$gcc_cv_mips_libgloss_startup" = xyes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
12087 echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
12088 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
12092 if test x$with_sysroot = x && test x$host = x$target \
12093 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12095 cat >>confdefs.h <<_ACEOF
12096 #define PREFIX_INCLUDE_DIR "$prefix/include"
12101 # Figure out what language subdirectories are present.
12102 # Look if the user specified --enable-languages="..."; if not, use
12103 # the environment variable $LANGUAGES if defined. $LANGUAGES might
12104 # go away some day.
12105 # NB: embedded tabs in this IF block -- do not untabify
12106 if test x"${enable_languages+set}" != xset; then
12107 if test x"${LANGUAGES+set}" = xset; then
12108 enable_languages="${LANGUAGES}"
12109 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
12110 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
12113 enable_languages=all
12116 if test x"${enable_languages}" = x \
12117 || test x"${enable_languages}" = xyes;
12119 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
12120 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
12121 { (exit 1); exit 1; }; }
12124 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
12126 # First scan to see if an enabled language requires some other language.
12127 # We assume that a given config-lang.in will list all the language
12128 # front ends it requires, even if some are required indirectly.
12129 for lang in ${srcdir}/*/config-lang.in
12132 # The odd quoting in the next line works around
12133 # an apparent bug in bash 1.12 on linux.
12134 ${srcdir}/[*]/config-lang.in)
12137 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12138 this_lang_requires=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
12139 for other in $this_lang_requires
12141 case ,${enable_languages}, in
12147 enable_languages="$enable_languages,$other"
12155 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
12158 for lang in ${srcdir}/*/config-lang.in
12161 # The odd quoting in the next line works around
12162 # an apparent bug in bash 1.12 on linux.
12163 ${srcdir}/[*]/config-lang.in) ;;
12165 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
12166 this_lang_libs=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
12167 build_by_default=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
12168 if test "x$lang_alias" = x
12170 echo "$lang doesn't set \$language." 1>&2
12173 case ${build_by_default},${enable_languages}, in
12174 *,$lang_alias,*) add_this_lang=yes ;;
12175 no,*) add_this_lang=no ;;
12176 *,all,*) add_this_lang=yes ;;
12177 *) add_this_lang=no ;;
12179 found_languages="${found_languages} ${lang_alias}"
12180 if test x"${add_this_lang}" = xyes; then
12182 ${srcdir}/ada/config-lang.in)
12183 if test x$have_gnat = xyes ; then
12184 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12188 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
12197 for expected_language in ${expected_languages} ..
12199 if test "${expected_language}" != ..; then
12200 missing_language="${expected_language}"
12201 if test "${expected_language}" = "c" \
12202 || test "${expected_language}" = "all"; then
12205 for found_language in ${found_languages} ..
12207 if test "${found_language}" != ..; then
12208 if test "${expected_language}" = "${found_language}"; then
12213 if test "x${missing_language}" != x; then
12214 missing_languages="${missing_languages} ${missing_language}"
12219 if test "x$missing_languages" != x; then
12220 { { echo "$as_me:$LINENO: error:
12221 The following requested languages were not found:${missing_languages}
12222 The following languages were available: c${found_languages}" >&5
12223 echo "$as_me: error:
12224 The following requested languages were not found:${missing_languages}
12225 The following languages were available: c${found_languages}" >&2;}
12226 { (exit 1); exit 1; }; }
12229 # Make gthr-default.h if we have a thread file.
12231 if test $thread_file != single; then
12232 rm -f gthr-default.h
12233 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12234 gthread_flags=-DHAVE_GTHR_DEFAULT
12238 # Find out what GC implementation we want, or may, use.
12240 # Check whether --with-gc or --without-gc was given.
12241 if test "${with_gc+set}" = set; then
12244 simple | page | zone)
12248 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12249 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12250 { (exit 1); exit 1; }; }
12257 echo "Using $GGC for garbage collection."
12259 # Use the system's zlib library.
12261 zlibinc="-I\$(srcdir)/../zlib"
12263 # Check whether --with-system-zlib or --without-system-zlib was given.
12264 if test "${with_system_zlib+set}" = set; then
12265 withval="$with_system_zlib"
12274 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12275 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12276 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12277 if test "${enable_maintainer_mode+set}" = set; then
12278 enableval="$enable_maintainer_mode"
12279 maintainer_mode=$enableval
12284 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12285 echo "${ECHO_T}$maintainer_mode" >&6
12287 if test "$maintainer_mode" = "yes"; then
12293 # Make empty files to contain the specs and options for each language.
12294 # Then add #include lines to for a compiler that has specs and/or options.
12299 for subdir in . $subdirs
12301 if test -f $srcdir/$subdir/lang.opt; then
12302 lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
12304 if test -f $srcdir/$subdir/lang-specs.h; then
12305 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12307 if test -f $srcdir/$subdir/$subdir-tree.def; then
12308 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12312 # These (without "all_") are set in each config-lang.in.
12313 # `language' must be a single word so is spelled singularly.
12315 all_boot_languages=
12318 all_outputs='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
12319 # List of language makefile fragments.
12320 all_lang_makefrags=
12321 # List of language subdirectory makefiles. Deprecated.
12322 all_lang_makefiles=
12323 # Files for gengtype
12324 all_gtfiles="$target_gtfiles"
12325 # Files for gengtype with language
12326 all_gtfiles_files_langs=
12327 all_gtfiles_files_files=
12329 # Add the language fragments.
12330 # Languages are added via two mechanisms. Some information must be
12331 # recorded in makefile variables, these are defined in config-lang.in.
12332 # We accumulate them and plug them into the main Makefile.
12333 # The other mechanism is a set of hooks for each of the main targets
12334 # like `clean', `install', etc.
12336 language_hooks="Make-hooks"
12346 . ${srcdir}/$s/config-lang.in
12347 if test "x$language" = x
12349 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12352 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12353 if test -f ${srcdir}/$s/Makefile.in
12354 then all_lang_makefiles="$s/Makefile"
12356 all_languages="$all_languages $language"
12357 if test "x$boot_language" = xyes
12359 all_boot_languages="$all_boot_languages $language"
12361 all_compilers="$all_compilers $compilers"
12362 all_stagestuff="$all_stagestuff $stagestuff"
12363 all_outputs="$all_outputs $outputs"
12364 all_gtfiles="$all_gtfiles $gtfiles"
12367 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12368 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12372 # Pick up gtfiles for c
12375 . ${srcdir}/c-config-lang.in
12376 all_gtfiles="$all_gtfiles $gtfiles"
12379 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
12380 all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
12384 for language in $all_languages
12386 check_languages="$check_languages check-$language"
12389 # We link each language in with a set of hooks, reached indirectly via
12394 target_list="all.build all.cross start.encap rest.encap tags \
12395 install-normal install-common install-man \
12397 mostlyclean clean distclean maintainer-clean \
12398 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12399 for t in $target_list
12402 for lang in $all_languages
12406 echo "lang.$t: $x" >> Make-hooks
12411 echo "dir ." > .gdbinit
12412 echo "dir ${srcdir}" >> .gdbinit
12413 if test x$gdb_needs_out_file_path = xyes
12415 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12417 if test "x$subdirs" != x; then
12420 echo "dir ${srcdir}/$s" >> .gdbinit
12423 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12425 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12426 # absolute path for gcc_tooldir based on inserting the number of up-directory
12427 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12428 # $(libsubdir)/@(unlibsubdir) based path.
12429 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12430 # make and thus we'd get different behavior depending on where we built the
12432 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
12433 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12435 # An explanation of the sed strings:
12436 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12437 # -e 's|/$||' match a trailing forward slash and eliminates it
12438 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12439 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12441 # (*) Note this pattern overwrites the first character of the string
12442 # with a forward slash if one is not already present. This is not a
12443 # problem because the exact names of the sub-directories concerned is
12444 # unimportant, just the number of them matters.
12446 # The practical upshot of these patterns is like this:
12448 # prefix exec_prefix result
12449 # ------ ----------- ------
12450 # /foo /foo/bar ../
12451 # /foo/ /foo/bar ../
12452 # /foo /foo/bar/ ../
12453 # /foo/ /foo/bar/ ../
12454 # /foo /foo/bar/ugg ../../
12457 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12462 # Find a directory in which to install a shared libgcc.
12464 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12465 if test "${enable_version_specific_runtime_libs+set}" = set; then
12466 enableval="$enable_version_specific_runtime_libs"
12471 # Check whether --with-slibdir or --without-slibdir was given.
12472 if test "${with_slibdir+set}" = set; then
12473 withval="$with_slibdir"
12474 slibdir="$with_slibdir"
12476 if test "${enable_version_specific_runtime_libs+set}" = set; then
12477 slibdir='$(libsubdir)'
12478 elif test "$host" != "$target"; then
12479 slibdir='$(build_tooldir)/lib'
12481 slibdir='$(libdir)'
12486 objdir=`${PWDCMD-pwd}`
12489 # Substitute configuration variables
12561 if test x${build} = x${host} ; then
12562 if test x${host} = x${target} ; then
12563 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12565 echo "Links are now set up to build a cross-compiler" 1>&2
12566 echo " from ${host} to ${target}." 1>&2
12569 if test x${host} = x${target} ; then
12570 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12571 echo " for ${target}." 1>&2
12573 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12574 echo " from ${host} to ${target}." 1>&2
12578 # Configure the subdirectories
12579 # AC_CONFIG_SUBDIRS($subdirs)
12581 # Create the Makefile
12582 # and configure language subdirectories
12583 ac_config_files="$ac_config_files $all_outputs"
12584 ac_config_commands="$ac_config_commands default"
12585 cat >confcache <<\_ACEOF
12586 # This file is a shell script that caches the results of configure
12587 # tests run on this system so they can be shared between configure
12588 # scripts and configure runs, see configure's option --config-cache.
12589 # It is not useful on other systems. If it contains results you don't
12590 # want to keep, you may remove or edit it.
12592 # config.status only pays attention to the cache file if you give it
12593 # the --recheck option to rerun configure.
12595 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12596 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12597 # following values.
12601 # The following way of writing the cache mishandles newlines in values,
12602 # but we know of no workaround that is simple, portable, and efficient.
12603 # So, don't put newlines in cache variables' values.
12604 # Ultrix sh set writes to stderr and can't be redirected directly,
12605 # and sets the high bit in the cache file unless we assign to the vars.
12608 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12610 # `set' does not quote correctly, so add quotes (double-quote
12611 # substitution turns \\\\ into \\, and sed turns \\ into \).
12614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12617 # `set' quotes correctly as required by POSIX, so do not add quotes.
12619 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12628 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12630 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12631 if test -w $cache_file; then
12632 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12633 cat confcache >$cache_file
12635 echo "not updating unwritable cache $cache_file"
12640 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12641 # Let make expand exec_prefix.
12642 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12644 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12645 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12646 # trailing colons and then remove the whole line if VPATH becomes empty
12647 # (actually we leave an empty line to preserve line numbers).
12648 if test "x$srcdir" = x.; then
12649 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12650 s/:*\$(srcdir):*/:/;
12651 s/:*\${srcdir}:*/:/;
12653 s/^\([^=]*=[ ]*\):*/\1/;
12659 DEFS=-DHAVE_CONFIG_H
12663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12664 # 1. Remove the extension, and $U if already installed.
12665 ac_i=`echo "$ac_i" |
12666 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12668 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12669 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12671 LIBOBJS=$ac_libobjs
12673 LTLIBOBJS=$ac_ltlibobjs
12677 : ${CONFIG_STATUS=./config.status}
12678 ac_clean_files_save=$ac_clean_files
12679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12682 cat >$CONFIG_STATUS <<_ACEOF
12684 # Generated by $as_me.
12685 # Run this file to recreate the current configuration.
12686 # Compiler output produced by configure, useful for debugging
12687 # configure, is in config.log if it exists.
12690 ac_cs_recheck=false
12692 SHELL=\${CONFIG_SHELL-$SHELL}
12695 cat >>$CONFIG_STATUS <<\_ACEOF
12696 ## --------------------- ##
12697 ## M4sh Initialization. ##
12698 ## --------------------- ##
12700 # Be Bourne compatible
12701 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12704 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12705 # is contrary to our usage. Disable this feature.
12706 alias -g '${1+"$@"}'='"$@"'
12707 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12710 DUALCASE=1; export DUALCASE # for MKS sh
12712 # Support unset when possible.
12713 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12720 # Work around bugs in pre-3.0 UWIN ksh.
12721 $as_unset ENV MAIL MAILPATH
12728 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12729 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12730 LC_TELEPHONE LC_TIME
12732 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12733 eval $as_var=C; export $as_var
12739 # Required to use basename.
12740 if expr a : '\(a\)' >/dev/null 2>&1; then
12746 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12747 as_basename=basename
12753 # Name of the executable.
12754 as_me=`$as_basename "$0" ||
12755 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12756 X"$0" : 'X\(//\)$' \| \
12757 X"$0" : 'X\(/\)$' \| \
12758 . : '\(.\)' 2>/dev/null ||
12760 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12761 /^X\/\(\/\/\)$/{ s//\1/; q; }
12762 /^X\/\(\/\).*/{ s//\1/; q; }
12766 # PATH needs CR, and LINENO needs CR and PATH.
12767 # Avoid depending upon Character Ranges.
12768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12771 as_cr_digits='0123456789'
12772 as_cr_alnum=$as_cr_Letters$as_cr_digits
12774 # The user is always right.
12775 if test "${PATH_SEPARATOR+set}" != set; then
12776 echo "#! /bin/sh" >conf$$.sh
12777 echo "exit 0" >>conf$$.sh
12779 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12788 as_lineno_1=$LINENO
12789 as_lineno_2=$LINENO
12790 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12791 test "x$as_lineno_1" != "x$as_lineno_2" &&
12792 test "x$as_lineno_3" = "x$as_lineno_2" || {
12793 # Find who we are. Look in the path if we contain no path at all
12796 *[\\/]* ) as_myself=$0 ;;
12797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12801 test -z "$as_dir" && as_dir=.
12802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12807 # We did not find ourselves, most probably we were run as `sh COMMAND'
12808 # in which case we are not to be found in the path.
12809 if test "x$as_myself" = x; then
12812 if test ! -f "$as_myself"; then
12813 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12814 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12815 { (exit 1); exit 1; }; }
12817 case $CONFIG_SHELL in
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12823 test -z "$as_dir" && as_dir=.
12824 for as_base in sh bash ksh sh5; do
12827 if ("$as_dir/$as_base" -c '
12828 as_lineno_1=$LINENO
12829 as_lineno_2=$LINENO
12830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12831 test "x$as_lineno_1" != "x$as_lineno_2" &&
12832 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12833 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12834 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12835 CONFIG_SHELL=$as_dir/$as_base
12836 export CONFIG_SHELL
12837 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12845 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12846 # uniformly replaced by the line number. The first 'sed' inserts a
12847 # line-number line before each line; the second 'sed' does the real
12848 # work. The second script uses 'N' to pair each line-number line
12849 # with the numbered line, and appends trailing '-' during
12850 # substitution so that $LINENO is not a special case at line end.
12851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12852 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12853 sed '=' <$as_myself |
12858 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12861 s,^['$as_cr_digits']*\n,,
12862 ' >$as_me.lineno &&
12863 chmod +x $as_me.lineno ||
12864 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12865 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12866 { (exit 1); exit 1; }; }
12868 # Don't try to exec as it changes $[0], causing all sort of problems
12869 # (the dirname of $[0] is not the place where we might find the
12870 # original and so on. Autoconf is especially sensible to this).
12872 # Exit status is that of the last command.
12877 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12878 *c*,-n*) ECHO_N= ECHO_C='
12880 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12881 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12884 if expr a : '\(a\)' >/dev/null 2>&1; then
12890 rm -f conf$$ conf$$.exe conf$$.file
12892 if ln -s conf$$.file conf$$ 2>/dev/null; then
12893 # We could just check for DJGPP; but this test a) works b) is more generic
12894 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12895 if test -f conf$$.exe; then
12896 # Don't use ln at all; we don't have any links
12901 elif ln conf$$.file conf$$ 2>/dev/null; then
12906 rm -f conf$$ conf$$.exe conf$$.file
12908 if mkdir -p . 2>/dev/null; then
12911 test -d ./-p && rmdir ./-p
12915 as_executable_p="test -f"
12917 # Sed expression to map a string onto a valid CPP name.
12918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12920 # Sed expression to map a string onto a valid variable name.
12921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12925 # We need space, tab and new line, in precisely that order.
12935 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12936 # report actual input values of CONFIG_FILES etc. instead of their
12937 # values after options handling. Logging --version etc. is OK.
12941 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12942 ## Running $as_me. ##
12947 This file was extended by $as_me, which was
12948 generated by GNU Autoconf 2.58. Invocation command line was
12950 CONFIG_FILES = $CONFIG_FILES
12951 CONFIG_HEADERS = $CONFIG_HEADERS
12952 CONFIG_LINKS = $CONFIG_LINKS
12953 CONFIG_COMMANDS = $CONFIG_COMMANDS
12957 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12961 # Files that config.status was made for.
12962 if test -n "$ac_config_files"; then
12963 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12966 if test -n "$ac_config_headers"; then
12967 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12970 if test -n "$ac_config_links"; then
12971 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12974 if test -n "$ac_config_commands"; then
12975 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12978 cat >>$CONFIG_STATUS <<\_ACEOF
12981 \`$as_me' instantiates files from templates according to the
12982 current configuration.
12984 Usage: $0 [OPTIONS] [FILE]...
12986 -h, --help print this help, then exit
12987 -V, --version print version number, then exit
12988 -q, --quiet do not print progress messages
12989 -d, --debug don't remove temporary files
12990 --recheck update $as_me by reconfiguring in the same conditions
12991 --file=FILE[:TEMPLATE]
12992 instantiate the configuration file FILE
12993 --header=FILE[:TEMPLATE]
12994 instantiate the configuration header FILE
12996 Configuration files:
12999 Configuration headers:
13002 Configuration commands:
13005 Report bugs to <bug-autoconf@gnu.org>."
13008 cat >>$CONFIG_STATUS <<_ACEOF
13011 configured by $0, generated by GNU Autoconf 2.58,
13012 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13014 Copyright (C) 2003 Free Software Foundation, Inc.
13015 This config.status script is free software; the Free Software Foundation
13016 gives unlimited permission to copy, distribute and modify it."
13020 cat >>$CONFIG_STATUS <<\_ACEOF
13021 # If no file are specified by the user, then we need to provide default
13022 # value. By we need to know if files were specified by the user.
13028 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13029 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13037 *) # This is not an option, so the user has probably given explicit
13040 ac_need_defaults=false;;
13044 # Handling of the options.
13046 cat >>$CONFIG_STATUS <<\_ACEOF
13047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13049 --version | --vers* | -V )
13050 echo "$ac_cs_version"; exit 0 ;;
13052 # Conflict between --help and --header
13053 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13054 Try \`$0 --help' for more information." >&5
13055 echo "$as_me: error: ambiguous option: $1
13056 Try \`$0 --help' for more information." >&2;}
13057 { (exit 1); exit 1; }; };;
13058 --help | --hel | -h )
13059 echo "$ac_cs_usage"; exit 0 ;;
13060 --debug | --d* | -d )
13062 --file | --fil | --fi | --f )
13064 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13065 ac_need_defaults=false;;
13066 --header | --heade | --head | --hea )
13068 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13069 ac_need_defaults=false;;
13070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13071 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13074 # This is an error.
13075 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13076 Try \`$0 --help' for more information." >&5
13077 echo "$as_me: error: unrecognized option: $1
13078 Try \`$0 --help' for more information." >&2;}
13079 { (exit 1); exit 1; }; } ;;
13081 *) ac_config_targets="$ac_config_targets $1" ;;
13087 ac_configure_extra_args=
13089 if $ac_cs_silent; then
13091 ac_configure_extra_args="$ac_configure_extra_args --silent"
13095 cat >>$CONFIG_STATUS <<_ACEOF
13096 if \$ac_cs_recheck; then
13097 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13098 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13103 cat >>$CONFIG_STATUS <<_ACEOF
13105 # INIT-COMMANDS section.
13109 symbolic_link='$symbolic_link'
13116 cat >>$CONFIG_STATUS <<\_ACEOF
13117 for ac_config_target in $ac_config_targets
13119 case "$ac_config_target" in
13120 # Handling of arguments.
13121 "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
13122 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13123 "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
13124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13126 { (exit 1); exit 1; }; };;
13130 # If the user did not use the arguments to specify the items to instantiate,
13131 # then the envvar interface is used. Set only those that are not.
13132 # We use the long form for the default assignment because of an extremely
13133 # bizarre bug on SunOS 4.1.3.
13134 if $ac_need_defaults; then
13135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13140 # Have a temporary directory for convenience. Make it in the build tree
13141 # simply because there is no reason to put it here, and in addition,
13142 # creating and moving files from /tmp can sometimes cause problems.
13143 # Create a temporary directory, and hook for its removal unless debugging.
13146 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13147 trap '{ (exit 1); exit 1; }' 1 2 13 15
13150 # Create a (secure) tmp directory for tmp files.
13153 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13154 test -n "$tmp" && test -d "$tmp"
13157 tmp=./confstat$$-$RANDOM
13158 (umask 077 && mkdir $tmp)
13161 echo "$me: cannot create a temporary directory in ." >&2
13162 { (exit 1); exit 1; }
13167 cat >>$CONFIG_STATUS <<_ACEOF
13170 # CONFIG_FILES section.
13173 # No need to generate the scripts if there are no CONFIG_FILES.
13174 # This happens for instance when ./config.status config.h
13175 if test -n "\$CONFIG_FILES"; then
13176 # Protect against being on the right side of a sed subst in config.status.
13177 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13178 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13179 s,@SHELL@,$SHELL,;t t
13180 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13181 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13182 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13183 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13184 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13185 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13186 s,@exec_prefix@,$exec_prefix,;t t
13187 s,@prefix@,$prefix,;t t
13188 s,@program_transform_name@,$program_transform_name,;t t
13189 s,@bindir@,$bindir,;t t
13190 s,@sbindir@,$sbindir,;t t
13191 s,@libexecdir@,$libexecdir,;t t
13192 s,@datadir@,$datadir,;t t
13193 s,@sysconfdir@,$sysconfdir,;t t
13194 s,@sharedstatedir@,$sharedstatedir,;t t
13195 s,@localstatedir@,$localstatedir,;t t
13196 s,@libdir@,$libdir,;t t
13197 s,@includedir@,$includedir,;t t
13198 s,@oldincludedir@,$oldincludedir,;t t
13199 s,@infodir@,$infodir,;t t
13200 s,@mandir@,$mandir,;t t
13201 s,@build_alias@,$build_alias,;t t
13202 s,@host_alias@,$host_alias,;t t
13203 s,@target_alias@,$target_alias,;t t
13204 s,@DEFS@,$DEFS,;t t
13205 s,@ECHO_C@,$ECHO_C,;t t
13206 s,@ECHO_N@,$ECHO_N,;t t
13207 s,@ECHO_T@,$ECHO_T,;t t
13208 s,@LIBS@,$LIBS,;t t
13209 s,@build@,$build,;t t
13210 s,@build_cpu@,$build_cpu,;t t
13211 s,@build_vendor@,$build_vendor,;t t
13212 s,@build_os@,$build_os,;t t
13213 s,@host@,$host,;t t
13214 s,@host_cpu@,$host_cpu,;t t
13215 s,@host_vendor@,$host_vendor,;t t
13216 s,@host_os@,$host_os,;t t
13217 s,@target@,$target,;t t
13218 s,@target_cpu@,$target_cpu,;t t
13219 s,@target_vendor@,$target_vendor,;t t
13220 s,@target_os@,$target_os,;t t
13221 s,@build_subdir@,$build_subdir,;t t
13222 s,@host_subdir@,$host_subdir,;t t
13223 s,@target_subdir@,$target_subdir,;t t
13225 s,@CFLAGS@,$CFLAGS,;t t
13226 s,@LDFLAGS@,$LDFLAGS,;t t
13227 s,@CPPFLAGS@,$CPPFLAGS,;t t
13228 s,@ac_ct_CC@,$ac_ct_CC,;t t
13229 s,@EXEEXT@,$EXEEXT,;t t
13230 s,@OBJEXT@,$OBJEXT,;t t
13231 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13232 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13234 s,@GNATBIND@,$GNATBIND,;t t
13235 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
13236 s,@strict1_warn@,$strict1_warn,;t t
13237 s,@warn_cflags@,$warn_cflags,;t t
13238 s,@WERROR@,$WERROR,;t t
13239 s,@nocommon_flag@,$nocommon_flag,;t t
13240 s,@EGREP@,$EGREP,;t t
13241 s,@valgrind_path@,$valgrind_path,;t t
13242 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13243 s,@valgrind_command@,$valgrind_command,;t t
13244 s,@coverage_flags@,$coverage_flags,;t t
13245 s,@enable_multilib@,$enable_multilib,;t t
13246 s,@enable_shared@,$enable_shared,;t t
13247 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13248 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13249 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13250 s,@onestep@,$onestep,;t t
13251 s,@SET_MAKE@,$SET_MAKE,;t t
13254 s,@LN_S@,$LN_S,;t t
13255 s,@RANLIB@,$RANLIB,;t t
13256 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13257 s,@INSTALL@,$INSTALL,;t t
13258 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13259 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13260 s,@make_compare_target@,$make_compare_target,;t t
13261 s,@have_mktemp_command@,$have_mktemp_command,;t t
13262 s,@MAKEINFO@,$MAKEINFO,;t t
13263 s,@BUILD_INFO@,$BUILD_INFO,;t t
13264 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13265 s,@FLEX@,$FLEX,;t t
13266 s,@BISON@,$BISON,;t t
13267 s,@stage1_cflags@,$stage1_cflags,;t t
13268 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13269 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13270 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13271 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13272 s,@LIBICONV@,$LIBICONV,;t t
13273 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13274 s,@manext@,$manext,;t t
13275 s,@objext@,$objext,;t t
13276 s,@extra_modes_file@,$extra_modes_file,;t t
13277 s,@FORBUILD@,$FORBUILD,;t t
13278 s,@PACKAGE@,$PACKAGE,;t t
13279 s,@VERSION@,$VERSION,;t t
13280 s,@USE_NLS@,$USE_NLS,;t t
13281 s,@LIBINTL@,$LIBINTL,;t t
13282 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13283 s,@INCINTL@,$INCINTL,;t t
13284 s,@XGETTEXT@,$XGETTEXT,;t t
13285 s,@GMSGFMT@,$GMSGFMT,;t t
13286 s,@POSUB@,$POSUB,;t t
13287 s,@CATALOGS@,$CATALOGS,;t t
13288 s,@CROSS@,$CROSS,;t t
13290 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13291 s,@inhibit_libc@,$inhibit_libc,;t t
13292 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13293 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13294 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13295 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13296 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13297 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13298 s,@libgcc_visibility@,$libgcc_visibility,;t t
13299 s,@gthread_flags@,$gthread_flags,;t t
13301 s,@zlibdir@,$zlibdir,;t t
13302 s,@zlibinc@,$zlibinc,;t t
13303 s,@MAINT@,$MAINT,;t t
13304 s,@gcc_tooldir@,$gcc_tooldir,;t t
13305 s,@dollar@,$dollar,;t t
13306 s,@slibdir@,$slibdir,;t t
13307 s,@objdir@,$objdir,;t t
13308 s,@subdirs@,$subdirs,;t t
13309 s,@srcdir@,$srcdir,;t t
13310 s,@docobjdir@,$docobjdir,;t t
13311 s,@parsedir@,$parsedir,;t t
13312 s,@all_boot_languages@,$all_boot_languages,;t t
13313 s,@all_compilers@,$all_compilers,;t t
13314 s,@all_gtfiles@,$all_gtfiles,;t t
13315 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13316 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13317 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13318 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13319 s,@all_languages@,$all_languages,;t t
13320 s,@all_stagestuff@,$all_stagestuff,;t t
13321 s,@build_exeext@,$build_exeext,;t t
13322 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13323 s,@build_xm_file_list@,$build_xm_file_list,;t t
13324 s,@build_xm_include_list@,$build_xm_include_list,;t t
13325 s,@build_xm_defines@,$build_xm_defines,;t t
13326 s,@check_languages@,$check_languages,;t t
13327 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13328 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13329 s,@cpp_install_dir@,$cpp_install_dir,;t t
13330 s,@xmake_file@,$xmake_file,;t t
13331 s,@tmake_file@,$tmake_file,;t t
13332 s,@extra_headers_list@,$extra_headers_list,;t t
13333 s,@extra_objs@,$extra_objs,;t t
13334 s,@extra_parts@,$extra_parts,;t t
13335 s,@extra_passes@,$extra_passes,;t t
13336 s,@extra_programs@,$extra_programs,;t t
13337 s,@float_h_file@,$float_h_file,;t t
13338 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13339 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13340 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13341 s,@gcc_version@,$gcc_version,;t t
13342 s,@gcc_version_full@,$gcc_version_full,;t t
13343 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13344 s,@host_exeext@,$host_exeext,;t t
13345 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
13346 s,@host_xm_file_list@,$host_xm_file_list,;t t
13347 s,@host_xm_include_list@,$host_xm_include_list,;t t
13348 s,@host_xm_defines@,$host_xm_defines,;t t
13349 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13350 s,@install@,$install,;t t
13351 s,@lang_opt_files@,$lang_opt_files,;t t
13352 s,@lang_specs_files@,$lang_specs_files,;t t
13353 s,@lang_tree_files@,$lang_tree_files,;t t
13354 s,@local_prefix@,$local_prefix,;t t
13355 s,@md_file@,$md_file,;t t
13356 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13357 s,@out_file@,$out_file,;t t
13358 s,@out_object_file@,$out_object_file,;t t
13359 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13360 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13361 s,@symbolic_link@,$symbolic_link,;t t
13362 s,@thread_file@,$thread_file,;t t
13363 s,@tm_file_list@,$tm_file_list,;t t
13364 s,@tm_include_list@,$tm_include_list,;t t
13365 s,@tm_defines@,$tm_defines,;t t
13366 s,@tm_p_file_list@,$tm_p_file_list,;t t
13367 s,@tm_p_include_list@,$tm_p_include_list,;t t
13368 s,@xm_file_list@,$xm_file_list,;t t
13369 s,@xm_include_list@,$xm_include_list,;t t
13370 s,@xm_defines@,$xm_defines,;t t
13371 s,@target_noncanonical@,$target_noncanonical,;t t
13372 s,@c_target_objs@,$c_target_objs,;t t
13373 s,@cxx_target_objs@,$cxx_target_objs,;t t
13374 s,@target_cpu_default@,$target_cpu_default,;t t
13375 s,@LIBOBJS@,$LIBOBJS,;t t
13376 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13377 /@language_hooks@/r $language_hooks
13378 s,@language_hooks@,,;t t
13383 cat >>$CONFIG_STATUS <<\_ACEOF
13384 # Split the substitutions into bite-sized pieces for seds with
13385 # small command number limits, like on Digital OSF/1 and HP-UX.
13386 ac_max_sed_lines=48
13387 ac_sed_frag=1 # Number of current file.
13388 ac_beg=1 # First line for current file.
13389 ac_end=$ac_max_sed_lines # Line after last line for current file.
13392 while $ac_more_lines; do
13393 if test $ac_beg -gt 1; then
13394 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13396 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13398 if test ! -s $tmp/subs.frag; then
13399 ac_more_lines=false
13401 # The purpose of the label and of the branching condition is to
13402 # speed up the sed processing (if there are no `@' at all, there
13403 # is no need to browse any of the substitutions).
13404 # These are the two extra sed commands mentioned above.
13406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13407 if test -z "$ac_sed_cmds"; then
13408 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13410 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13412 ac_sed_frag=`expr $ac_sed_frag + 1`
13414 ac_end=`expr $ac_end + $ac_max_sed_lines`
13417 if test -z "$ac_sed_cmds"; then
13420 fi # test -n "$CONFIG_FILES"
13423 cat >>$CONFIG_STATUS <<\_ACEOF
13424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13427 - | *:- | *:-:* ) # input from stdin
13429 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13430 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13431 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13432 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13433 * ) ac_file_in=$ac_file.in ;;
13436 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13437 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13439 X"$ac_file" : 'X\(//\)[^/]' \| \
13440 X"$ac_file" : 'X\(//\)$' \| \
13441 X"$ac_file" : 'X\(/\)' \| \
13442 . : '\(.\)' 2>/dev/null ||
13444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13446 /^X\(\/\/\)$/{ s//\1/; q; }
13447 /^X\(\/\).*/{ s//\1/; q; }
13449 { if $as_mkdir_p; then
13454 while test ! -d "$as_dir"; do
13455 as_dirs="$as_dir $as_dirs"
13456 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13458 X"$as_dir" : 'X\(//\)[^/]' \| \
13459 X"$as_dir" : 'X\(//\)$' \| \
13460 X"$as_dir" : 'X\(/\)' \| \
13461 . : '\(.\)' 2>/dev/null ||
13463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13464 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13465 /^X\(\/\/\)$/{ s//\1/; q; }
13466 /^X\(\/\).*/{ s//\1/; q; }
13469 test ! -n "$as_dirs" || mkdir $as_dirs
13470 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13472 { (exit 1); exit 1; }; }; }
13476 if test "$ac_dir" != .; then
13477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13478 # A "../" for each directory in $ac_dir_suffix.
13479 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13481 ac_dir_suffix= ac_top_builddir=
13485 .) # No --srcdir option. We are building in place.
13487 if test -z "$ac_top_builddir"; then
13490 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13492 [\\/]* | ?:[\\/]* ) # Absolute path.
13493 ac_srcdir=$srcdir$ac_dir_suffix;
13494 ac_top_srcdir=$srcdir ;;
13495 *) # Relative path.
13496 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13497 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13500 # Do not use `cd foo && pwd` to compute absolute paths, because
13501 # the directories may not exist.
13503 .) ac_abs_builddir="$ac_dir";;
13506 .) ac_abs_builddir=`pwd`;;
13507 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13508 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13511 case $ac_abs_builddir in
13512 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13514 case ${ac_top_builddir}. in
13515 .) ac_abs_top_builddir=$ac_abs_builddir;;
13516 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13517 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13520 case $ac_abs_builddir in
13521 .) ac_abs_srcdir=$ac_srcdir;;
13524 .) ac_abs_srcdir=$ac_abs_builddir;;
13525 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13526 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13529 case $ac_abs_builddir in
13530 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13532 case $ac_top_srcdir in
13533 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13534 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13535 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13541 if test x"$ac_file" != x-; then
13542 { echo "$as_me:$LINENO: creating $ac_file" >&5
13543 echo "$as_me: creating $ac_file" >&6;}
13546 # Let's still pretend it is `configure' which instantiates (i.e., don't
13547 # use $as_me), people would be surprised to read:
13548 # /* config.h. Generated by config.status. */
13549 if test x"$ac_file" = x-; then
13552 configure_input="$ac_file. "
13554 configure_input=$configure_input"Generated from `echo $ac_file_in |
13555 sed 's,.*/,,'` by configure."
13557 # First look for the input files in the build tree, otherwise in the
13559 ac_file_inputs=`IFS=:
13560 for f in $ac_file_in; do
13562 -) echo $tmp/stdin ;;
13564 # Absolute (can't be DOS-style, as IFS=:)
13565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13566 echo "$as_me: error: cannot find input file: $f" >&2;}
13567 { (exit 1); exit 1; }; }
13570 if test -f "$f"; then
13573 elif test -f "$srcdir/$f"; then
13578 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13579 echo "$as_me: error: cannot find input file: $f" >&2;}
13580 { (exit 1); exit 1; }; }
13583 done` || { (exit 1); exit 1; }
13585 cat >>$CONFIG_STATUS <<_ACEOF
13589 cat >>$CONFIG_STATUS <<\_ACEOF
13591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13592 s,@configure_input@,$configure_input,;t t
13593 s,@srcdir@,$ac_srcdir,;t t
13594 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13595 s,@top_srcdir@,$ac_top_srcdir,;t t
13596 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13597 s,@builddir@,$ac_builddir,;t t
13598 s,@abs_builddir@,$ac_abs_builddir,;t t
13599 s,@top_builddir@,$ac_top_builddir,;t t
13600 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13601 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13603 if test x"$ac_file" != x-; then
13604 mv $tmp/out $ac_file
13612 cat >>$CONFIG_STATUS <<\_ACEOF
13615 # CONFIG_HEADER section.
13618 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13619 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13621 # ac_d sets the value in "#define NAME VALUE" lines.
13622 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13623 ac_dB='[ ].*$,\1#\2'
13626 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13627 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13628 ac_uB='$,\1#\2define\3'
13632 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13635 - | *:- | *:-:* ) # input from stdin
13637 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13639 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13641 * ) ac_file_in=$ac_file.in ;;
13644 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13645 echo "$as_me: creating $ac_file" >&6;}
13647 # First look for the input files in the build tree, otherwise in the
13649 ac_file_inputs=`IFS=:
13650 for f in $ac_file_in; do
13652 -) echo $tmp/stdin ;;
13654 # Absolute (can't be DOS-style, as IFS=:)
13655 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13656 echo "$as_me: error: cannot find input file: $f" >&2;}
13657 { (exit 1); exit 1; }; }
13658 # Do quote $f, to prevent DOS paths from being IFS'd.
13661 if test -f "$f"; then
13664 elif test -f "$srcdir/$f"; then
13669 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13670 echo "$as_me: error: cannot find input file: $f" >&2;}
13671 { (exit 1); exit 1; }; }
13674 done` || { (exit 1); exit 1; }
13675 # Remove the trailing spaces.
13676 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13680 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13681 # `conftest.undefs', that substitutes the proper values into
13682 # config.h.in to produce config.h. The first handles `#define'
13683 # templates, and the second `#undef' templates.
13684 # And first: Protect against being on the right side of a sed subst in
13685 # config.status. Protect against being in an unquoted here document
13686 # in config.status.
13687 rm -f conftest.defines conftest.undefs
13688 # Using a here document instead of a string reduces the quoting nightmare.
13689 # Putting comments in sed scripts is not portable.
13691 # `end' is used to avoid that the second main sed command (meant for
13692 # 0-ary CPP macros) applies to n-ary macro definitions.
13693 # See the Autoconf documentation for `clear'.
13694 cat >confdef2sed.sed <<\_ACEOF
13699 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13701 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13704 # If some macros were called several times there might be several times
13705 # the same #defines, which is useless. Nevertheless, we may not want to
13706 # sort them, since we want the *last* AC-DEFINE to be honored.
13707 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13708 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13709 rm -f confdef2sed.sed
13711 # This sed command replaces #undef with comments. This is necessary, for
13712 # example, in the case of _POSIX_SOURCE, which is predefined and required
13713 # on some systems where configure will not decide to define it.
13714 cat >>conftest.undefs <<\_ACEOF
13715 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13718 # Break up conftest.defines because some shells have a limit on the size
13719 # of here documents, and old seds have small limits too (100 cmds).
13720 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13721 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13722 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13723 echo ' :' >>$CONFIG_STATUS
13724 rm -f conftest.tail
13725 while grep . conftest.defines >/dev/null
13727 # Write a limited-size here document to $tmp/defines.sed.
13728 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13729 # Speed up: don't consider the non `#define' lines.
13730 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13731 # Work around the forget-to-reset-the-flag bug.
13732 echo 't clr' >>$CONFIG_STATUS
13733 echo ': clr' >>$CONFIG_STATUS
13734 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13736 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13738 mv $tmp/out $tmp/in
13740 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13741 rm -f conftest.defines
13742 mv conftest.tail conftest.defines
13744 rm -f conftest.defines
13745 echo ' fi # grep' >>$CONFIG_STATUS
13746 echo >>$CONFIG_STATUS
13748 # Break up conftest.undefs because some shells have a limit on the size
13749 # of here documents, and old seds have small limits too (100 cmds).
13750 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13751 rm -f conftest.tail
13752 while grep . conftest.undefs >/dev/null
13754 # Write a limited-size here document to $tmp/undefs.sed.
13755 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13756 # Speed up: don't consider the non `#undef'
13757 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13758 # Work around the forget-to-reset-the-flag bug.
13759 echo 't clr' >>$CONFIG_STATUS
13760 echo ': clr' >>$CONFIG_STATUS
13761 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13763 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13765 mv $tmp/out $tmp/in
13767 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13768 rm -f conftest.undefs
13769 mv conftest.tail conftest.undefs
13771 rm -f conftest.undefs
13773 cat >>$CONFIG_STATUS <<\_ACEOF
13774 # Let's still pretend it is `configure' which instantiates (i.e., don't
13775 # use $as_me), people would be surprised to read:
13776 # /* config.h. Generated by config.status. */
13777 if test x"$ac_file" = x-; then
13778 echo "/* Generated by configure. */" >$tmp/config.h
13780 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13782 cat $tmp/in >>$tmp/config.h
13784 if test x"$ac_file" != x-; then
13785 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13786 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13787 echo "$as_me: $ac_file is unchanged" >&6;}
13789 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13791 X"$ac_file" : 'X\(//\)[^/]' \| \
13792 X"$ac_file" : 'X\(//\)$' \| \
13793 X"$ac_file" : 'X\(/\)' \| \
13794 . : '\(.\)' 2>/dev/null ||
13796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13797 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13798 /^X\(\/\/\)$/{ s//\1/; q; }
13799 /^X\(\/\).*/{ s//\1/; q; }
13801 { if $as_mkdir_p; then
13806 while test ! -d "$as_dir"; do
13807 as_dirs="$as_dir $as_dirs"
13808 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13810 X"$as_dir" : 'X\(//\)[^/]' \| \
13811 X"$as_dir" : 'X\(//\)$' \| \
13812 X"$as_dir" : 'X\(/\)' \| \
13813 . : '\(.\)' 2>/dev/null ||
13815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13817 /^X\(\/\/\)$/{ s//\1/; q; }
13818 /^X\(\/\).*/{ s//\1/; q; }
13821 test ! -n "$as_dirs" || mkdir $as_dirs
13822 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13823 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13824 { (exit 1); exit 1; }; }; }
13827 mv $tmp/config.h $ac_file
13831 rm -f $tmp/config.h
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13838 # CONFIG_COMMANDS section.
13840 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13841 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13842 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13843 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13844 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13845 X"$ac_dest" : 'X\(//\)[^/]' \| \
13846 X"$ac_dest" : 'X\(//\)$' \| \
13847 X"$ac_dest" : 'X\(/\)' \| \
13848 . : '\(.\)' 2>/dev/null ||
13850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13852 /^X\(\/\/\)$/{ s//\1/; q; }
13853 /^X\(\/\).*/{ s//\1/; q; }
13855 { if $as_mkdir_p; then
13860 while test ! -d "$as_dir"; do
13861 as_dirs="$as_dir $as_dirs"
13862 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13863 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13864 X"$as_dir" : 'X\(//\)[^/]' \| \
13865 X"$as_dir" : 'X\(//\)$' \| \
13866 X"$as_dir" : 'X\(/\)' \| \
13867 . : '\(.\)' 2>/dev/null ||
13869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13871 /^X\(\/\/\)$/{ s//\1/; q; }
13872 /^X\(\/\).*/{ s//\1/; q; }
13875 test ! -n "$as_dirs" || mkdir $as_dirs
13876 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13877 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13878 { (exit 1); exit 1; }; }; }
13882 if test "$ac_dir" != .; then
13883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13884 # A "../" for each directory in $ac_dir_suffix.
13885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13887 ac_dir_suffix= ac_top_builddir=
13891 .) # No --srcdir option. We are building in place.
13893 if test -z "$ac_top_builddir"; then
13896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13898 [\\/]* | ?:[\\/]* ) # Absolute path.
13899 ac_srcdir=$srcdir$ac_dir_suffix;
13900 ac_top_srcdir=$srcdir ;;
13901 *) # Relative path.
13902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13906 # Do not use `cd foo && pwd` to compute absolute paths, because
13907 # the directories may not exist.
13909 .) ac_abs_builddir="$ac_dir";;
13912 .) ac_abs_builddir=`pwd`;;
13913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13914 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13917 case $ac_abs_builddir in
13918 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13920 case ${ac_top_builddir}. in
13921 .) ac_abs_top_builddir=$ac_abs_builddir;;
13922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13926 case $ac_abs_builddir in
13927 .) ac_abs_srcdir=$ac_srcdir;;
13930 .) ac_abs_srcdir=$ac_abs_builddir;;
13931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13935 case $ac_abs_builddir in
13936 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13938 case $ac_top_srcdir in
13939 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13946 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13947 echo "$as_me: executing $ac_dest commands" >&6;}
13950 case ${CONFIG_HEADERS} in
13951 *auto-host.h:config.in*)
13954 # Make sure all the subdirs exist.
13957 test -d $d || mkdir $d
13959 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13960 # bootstrapping and the installation procedure can still use
13961 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13962 # FLAGS_TO_PASS has been modified to solve the problem there.
13963 # This is virtually a duplicate of what happens in configure.lang; we do
13964 # an extra check to make sure this only happens if ln -s can be used.
13965 if test "$symbolic_link" = "ln -s"; then
13966 for d in ${subdirs} fixinc ; do
13967 STARTDIR=`${PWDCMD-pwd}`
13969 for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13972 $symbolic_link ../$t $t 2>/dev/null
13982 cat >>$CONFIG_STATUS <<\_ACEOF
13984 { (exit 0); exit 0; }
13986 chmod +x $CONFIG_STATUS
13987 ac_clean_files=$ac_clean_files_save
13990 # configure is writing to config.log, and then calls config.status.
13991 # config.status does its own redirection, appending to config.log.
13992 # Unfortunately, on DOS this fails, as config.log is still kept open
13993 # by configure, so config.status won't be able to write to it; its
13994 # output is simply discarded. So we exec the FD to /dev/null,
13995 # effectively closing config.log, so it can be properly (re)opened and
13996 # appended to by config.status. When coming back to configure, we
13997 # need to make the FD available again.
13998 if test "$no_create" != yes; then
14000 ac_config_status_args=
14001 test "$silent" = yes &&
14002 ac_config_status_args="$ac_config_status_args --quiet"
14004 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14006 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14007 # would make configure fail if this is the last instruction.
14008 $ac_cs_success || { (exit 1); exit 1; }