2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --build=BUILD configure
for building on BUILD
[guessed
]
841 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
842 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
846 if test -n "$ac_init_help"; then
851 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
852 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
853 --enable-generated-files-in-srcdir
854 put copies of generated files
in source dir
855 intended
for creating
source tarballs
for users
856 without texinfo bison or flex.
857 --enable-werror enable -Werror in bootstrap stage2 and later
858 --enable-checking=LIST
859 enable expensive run-time checks. With LIST
,
860 enable only specific categories of checks.
861 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
,fold;
862 default is misc
,tree
,gc
,rtlflag
863 --enable-coverage=LEVEL
864 enable compiler
\'s code coverage collection.
865 Use to measure compiler performance and
locate
866 unused parts of the compiler. With LEVEL
, specify
867 optimization. Values are opt
, noopt
,
869 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
870 --enable-multilib enable library support
for multiple ABIs
871 --enable-__cxa_atexit enable __cxa_atexit
for C
++
872 --enable-threads enable thread usage
for target GCC
873 --enable-threads=LIB use LIB thread package
for target GCC
874 --enable-objc-gc enable the use of Boehm
's garbage collector with
875 the GNU Objective-C runtime
876 --disable-shared don't provide a shared libgcc
877 --enable-intermodule build the compiler
in one step
878 --enable-languages=LIST specify
which front-ends to build
879 --enable-initfini-array use .init_array
/.fini_array sections
880 --enable-sjlj-exceptions
881 arrange to use setjmp
/longjmp exception handling
882 --enable-libunwind-exceptions force use libunwind
for exceptions
883 --disable-win32-registry
884 disable lookup of installation paths
in the
885 Registry on Windows hosts
886 --enable-win32-registry enable registry lookup
(default
)
887 --enable-win32-registry=KEY
888 use KEY instead of GCC version as the last portion
890 --enable-maintainer-mode
891 enable make rules and dependencies not useful
892 (and sometimes confusing
) to the casual installer
893 --enable-version-specific-runtime-libs
894 specify that runtime libraries should be
895 installed
in a compiler-specific directory
898 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
899 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
900 --with-local-prefix=DIR specifies directory to put
local include
901 --with-gxx-include-dir=DIR
902 specifies directory to put g
++ header files
903 --with-cpp-install-dir=DIR
904 install the user visible C preprocessor
in DIR
905 (relative to PREFIX
) as well as PREFIX
/bin
906 --with-gnu-ld arrange to work with GNU ld.
907 --with-ld arrange to use the specified ld
(full pathname
)
908 --with-gnu-as arrange to work with GNU as
909 --with-as arrange to use the specified as
(full pathname
)
910 --with-stabs arrange to use stabs instead of
host debug format
911 --with-dwarf2 force the default debug format to be DWARF
2
912 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
913 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
914 --with-gc={page
,zone
} choose the garbage collection mechanism to use
916 --with-system-zlib use installed libz
917 --with-slibdir=DIR shared libraries
in DIR LIBDIR
919 Some influential environment variables
:
920 CC C compiler
command
921 CFLAGS C compiler flags
922 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
923 nonstandard directory
<lib dir
>
924 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
925 headers
in a nonstandard directory
<include dir
>
928 Use these variables to override the choices made by
`configure' or to help
929 it to find libraries and programs with nonstandard names/locations.
934 if test "$ac_init_help" = "recursive"; then
935 # If there are subdirs, report their specific --help.
937 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
938 test -d $ac_dir || continue
941 if test "$ac_dir" != .; then
942 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
943 # A "../" for each directory in $ac_dir_suffix.
944 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
946 ac_dir_suffix= ac_top_builddir=
950 .) # No --srcdir option. We are building in place.
952 if test -z "$ac_top_builddir"; then
955 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
957 [\\/]* | ?:[\\/]* ) # Absolute path.
958 ac_srcdir=$srcdir$ac_dir_suffix;
959 ac_top_srcdir=$srcdir ;;
961 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
962 ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 # Do not use `cd foo
&& pwd` to compute absolute paths, because
966 # the directories may not exist.
968 .) ac_abs_builddir="$ac_dir";;
971 .) ac_abs_builddir=`pwd`;;
972 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
973 *) ac_abs_builddir=`pwd`/"$ac_dir";;
976 case $ac_abs_builddir in
977 .) ac_abs_top_builddir=${ac_top_builddir}.;;
979 case ${ac_top_builddir}. in
980 .) ac_abs_top_builddir=$ac_abs_builddir;;
981 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
982 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
985 case $ac_abs_builddir in
986 .) ac_abs_srcdir=$ac_srcdir;;
989 .) ac_abs_srcdir=$ac_abs_builddir;;
990 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
991 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
994 case $ac_abs_builddir in
995 .) ac_abs_top_srcdir=$ac_top_srcdir;;
997 case $ac_top_srcdir in
998 .) ac_abs_top_srcdir=$ac_abs_builddir;;
999 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1000 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1005 # Check for guested configure; otherwise get Cygnus style configure.
1006 if test -f $ac_srcdir/configure.gnu; then
1008 $SHELL $ac_srcdir/configure.gnu --help=recursive
1009 elif test -f $ac_srcdir/configure; then
1011 $SHELL $ac_srcdir/configure --help=recursive
1012 elif test -f $ac_srcdir/configure.ac ||
1013 test -f $ac_srcdir/configure.in; then
1015 $ac_configure --help
1017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1023 test -n "$ac_init_help" && exit 0
1024 if $ac_init_version; then
1027 Copyright (C) 2003 Free Software Foundation, Inc.
1028 This configure script is free software; the Free Software Foundation
1029 gives unlimited permission to copy, distribute and modify it.
1035 This file contains any messages produced by compilers while
1036 running configure, to aid debugging if configure makes a mistake.
1038 It was created by $as_me, which was
1039 generated by GNU Autoconf 2.59. Invocation command line was
1050 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1051 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1052 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1053 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1054 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1056 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1057 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1059 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1060 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1061 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1062 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1063 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1064 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1065 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1073 test -z "$as_dir" && as_dir=.
1074 echo "PATH: $as_dir"
1089 # Keep a trace of the command line.
1090 # Strip out --no-create and --no-recursion so they do not pile up.
1091 # Strip out --silent because we don't want to record it for future runs.
1092 # Also quote any args containing shell meta-characters.
1093 # Make two passes to allow for proper duplicate-argument suppression.
1098 ac_must_keep_next=false
1104 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1108 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1109 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1112 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1114 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1115 if test $ac_must_keep_next = true; then
1116 ac_must_keep_next=false # Got value, back to normal.
1119 *=* | --config-cache | -C | -disable-* | --disable-* \
1120 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1121 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1122 | -with-* | --with-* | -without-* | --without-* | --x)
1123 case "$ac_configure_args0 " in
1124 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1127 -* ) ac_must_keep_next=true ;;
1130 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1131 # Get rid of the leading space.
1137 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1138 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1140 # When interrupted or exit'd, cleanup temporary files, and complete
1141 # config.log. We remove comments because anyway the quotes in there
1142 # would cause problems or look ugly.
1143 # WARNING: Be sure not to use single quotes in there, as some shells,
1144 # such as our DU 5.0 friend, will then `close
' the trap.
1145 trap 'exit_status
=$?
1146 # Save into config.log some information that might help in debugging.
1151 ## ---------------- ##
1152 ## Cache variables. ##
1153 ## ---------------- ##
1156 # The following way of writing the cache mishandles newlines in values,
1159 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1162 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1174 ## ----------------- ##
1175 ## Output variables. ##
1176 ## ----------------- ##
1179 for ac_var
in $ac_subst_vars
1181 eval ac_val
=$
`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1186 if test -n "$ac_subst_files"; then
1193 for ac_var
in $ac_subst_files
1195 eval ac_val
=$
`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1201 if test -s confdefs.h
; then
1208 sed "/^$/d" confdefs.h |
sort
1211 test "$ac_signal" != 0 &&
1212 echo "$as_me: caught signal $ac_signal"
1213 echo "$as_me: exit $exit_status"
1215 rm -f core
*.core
&&
1216 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1219 for ac_signal in 1 2 13 15; do
1220 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1225 rm -rf conftest* confdefs.h
1226 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1229 # Predefined preprocessor variables.
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_NAME "$PACKAGE_NAME"
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_STRING "$PACKAGE_STRING"
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1256 # Let the site file select an alternate cache file if it wants to.
1257 # Prefer explicitly selected file to automatically selected ones.
1258 if test -z "$CONFIG_SITE"; then
1259 if test "x$prefix" != xNONE; then
1260 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1262 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1265 for ac_site_file in $CONFIG_SITE; do
1266 if test -r "$ac_site_file"; then
1267 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1268 echo "$as_me: loading site script $ac_site_file" >&6;}
1269 sed 's
/^
/|
/' "$ac_site_file" >&5
1274 if test -r "$cache_file"; then
1275 # Some versions of bash will fail to source /dev/null (special
1276 # files actually), so we avoid doing that.
1277 if test -f "$cache_file"; then
1278 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1279 echo "$as_me: loading cache $cache_file" >&6;}
1281 [\\/]* | ?:[\\/]* ) . $cache_file;;
1282 *) . ./$cache_file;;
1286 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1287 echo "$as_me: creating cache $cache_file" >&6;}
1291 # Check that the precious variables saved in the cache have kept the same
1293 ac_cache_corrupted=false
1294 for ac_var in `(set) 2>&1 |
1295 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1296 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1297 eval ac_new_set=\$ac_env_${ac_var}_set
1298 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1299 eval ac_new_val="\$ac_env_${ac_var}_value"
1300 case $ac_old_set,$ac_new_set in
1302 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1303 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1304 ac_cache_corrupted=: ;;
1306 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1307 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1308 ac_cache_corrupted=: ;;
1311 if test "x$ac_old_val" != "x$ac_new_val"; then
1312 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1313 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1314 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1315 echo "$as_me: former value: $ac_old_val" >&2;}
1316 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1317 echo "$as_me: current value: $ac_new_val" >&2;}
1318 ac_cache_corrupted=:
1321 # Pass precious variables to config.status.
1322 if test "$ac_new_set" = set; then
1324 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1325 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1326 *) ac_arg=$ac_var=$ac_new_val ;;
1328 case " $ac_configure_args " in
1329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1330 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1334 if $ac_cache_corrupted; then
1335 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1336 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1337 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1338 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1339 { (exit 1); exit 1; }; }
1343 ac_cpp='$CPP $CPPFLAGS'
1344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1345 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1370 # Determine the host, build, and target systems
1372 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1373 if test -f $ac_dir/install-sh; then
1375 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 elif test -f $ac_dir/install.sh; then
1379 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 elif test -f $ac_dir/shtool; then
1383 ac_install_sh="$ac_aux_dir/shtool install -c"
1387 if test -z "$ac_aux_dir"; then
1388 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1389 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1390 { (exit 1); exit 1; }; }
1392 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1393 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1394 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396 # Make sure we can run config.sub.
1397 $ac_config_sub sun4 >/dev/null 2>&1 ||
1398 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1400 { (exit 1); exit 1; }; }
1402 echo "$as_me:$LINENO: checking build system type" >&5
1403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1404 if test "${ac_cv_build+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 ac_cv_build_alias=$build_alias
1408 test -z "$ac_cv_build_alias" &&
1409 ac_cv_build_alias=`$ac_config_guess`
1410 test -z "$ac_cv_build_alias" &&
1411 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1413 { (exit 1); exit 1; }; }
1414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1420 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1421 echo "${ECHO_T}$ac_cv_build" >&6
1423 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1424 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1425 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1428 echo "$as_me:$LINENO: checking host system type" >&5
1429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1430 if test "${ac_cv_host+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_host_alias=$host_alias
1434 test -z "$ac_cv_host_alias" &&
1435 ac_cv_host_alias=$ac_cv_build_alias
1436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1439 { (exit 1); exit 1; }; }
1442 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1443 echo "${ECHO_T}$ac_cv_host" >&6
1445 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1446 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1447 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1450 echo "$as_me:$LINENO: checking target system type" >&5
1451 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1452 if test "${ac_cv_target+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1455 ac_cv_target_alias=$target_alias
1456 test "x$ac_cv_target_alias" = "x" &&
1457 ac_cv_target_alias=$ac_cv_host_alias
1458 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1465 echo "${ECHO_T}$ac_cv_target" >&6
1466 target=$ac_cv_target
1467 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1468 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1469 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1472 # The aliases save the names the user supplied, while $host etc.
1473 # will get canonicalized.
1474 test -n "$target_alias" &&
1475 test "$program_prefix$program_suffix$program_transform_name" = \
1477 program_prefix=${target_alias}-
1479 # Determine the noncanonical target name, for directory use.
1480 case ${build_alias} in
1481 "") build_noncanonical=${build} ;;
1482 *) build_noncanonical=${build_alias} ;;
1485 case ${host_alias} in
1486 "") host_noncanonical=${build_noncanonical} ;;
1487 *) host_noncanonical=${host_alias} ;;
1490 case ${target_alias} in
1491 "") target_noncanonical=${host_noncanonical} ;;
1492 *) target_noncanonical=${target_alias} ;;
1496 # Determine the target- and build-specific subdirectories
1497 # Prefix 'build-
' so this never conflicts with target_subdir.
1498 build_subdir="build-${build_noncanonical}"
1499 # Not really a subdirectory, but here for completeness.
1502 target_subdir=${target_noncanonical}
1505 # Set program_transform_name
1506 test "$program_prefix" != NONE &&
1507 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1508 # Use a double $ so make ignores it.
1509 test "$program_suffix" != NONE &&
1510 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1511 # Double any \ or $. echo might interpret backslashes.
1512 # By default was `s,x,x', remove it
if useless.
1513 cat <<\_ACEOF
>conftest.
sed
1514 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1516 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1520 # Check for bogus environment variables.
1521 # Test if LIBRARY_PATH contains the notation for the current directory
1522 # since this would lead to problems installing/building glibc.
1523 # LIBRARY_PATH contains the current directory if one of the following
1525 # - one of the terminals (":" and ";") is the first or last sign
1526 # - two terminals occur directly after each other
1527 # - the path contains an element with a dot in it
1528 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1529 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1530 case ${LIBRARY_PATH} in
1531 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1532 library_path_setting
="contains current directory"
1535 library_path_setting
="ok"
1538 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1539 echo "${ECHO_T}$library_path_setting" >&6
1540 if test "$library_path_setting" != "ok"; then
1541 { { echo "$as_me:$LINENO: error:
1542 *** LIBRARY_PATH shouldn't contain the current directory when
1543 *** building gcc. Please change the environment variable
1544 *** and run configure again." >&5
1545 echo "$as_me: error:
1546 *** LIBRARY_PATH shouldn't contain the current directory when
1547 *** building gcc. Please change the environment variable
1548 *** and run configure again." >&2;}
1549 { (exit 1); exit 1; }; }
1552 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1553 # since this would lead to problems installing/building glibc.
1554 # GCC_EXEC_PREFIX contains the current directory if one of the following
1556 # - one of the terminals (":" and ";") is the first or last sign
1557 # - two terminals occur directly after each other
1558 # - the path contains an element with a dot in it
1559 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1560 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1561 case ${GCC_EXEC_PREFIX} in
1562 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1563 gcc_exec_prefix_setting
="contains current directory"
1566 gcc_exec_prefix_setting
="ok"
1569 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1570 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1571 if test "$gcc_exec_prefix_setting" != "ok"; then
1572 { { echo "$as_me:$LINENO: error:
1573 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1574 *** building gcc. Please change the environment variable
1575 *** and run configure again." >&5
1576 echo "$as_me: error:
1577 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1578 *** building gcc. Please change the environment variable
1579 *** and run configure again." >&2;}
1580 { (exit 1); exit 1; }; }
1587 # Specify the local prefix
1590 # Check whether --with-local-prefix or --without-local-prefix was given.
1591 if test "${with_local_prefix+set}" = set; then
1592 withval
="$with_local_prefix"
1593 case "${withval}" in
1594 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1595 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1596 { (exit 1); exit 1; }; } ;;
1598 *) local_prefix
=$with_local_prefix ;;
1602 # Default local prefix if it is empty
1603 if test x
$local_prefix = x
; then
1604 local_prefix
=/usr
/local
1607 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1608 # passed in by the toplevel make and thus we'd get different behavior
1609 # depending on where we built the sources.
1610 gcc_gxx_include_dir
=
1611 # Specify the g++ header file directory
1613 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1614 if test "${with_gxx_include_dir+set}" = set; then
1615 withval
="$with_gxx_include_dir"
1616 case "${withval}" in
1617 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1618 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1619 { (exit 1); exit 1; }; } ;;
1621 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1625 if test x
${gcc_gxx_include_dir} = x
; then
1626 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1627 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1629 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1630 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1635 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1636 if test "${with_cpp_install_dir+set}" = set; then
1637 withval
="$with_cpp_install_dir"
1638 if test x
$withval = xyes
; then
1639 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1640 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1641 { (exit 1); exit 1; }; }
1642 elif test x
$withval != xno
; then
1643 cpp_install_dir
=$withval
1647 # We would like to our source tree to be readonly. However when releases or
1648 # pre-releases are generated, the flex/bison generated files as well as the
1649 # various formats of manuals need to be included along with the rest of the
1650 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1653 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1654 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1655 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1656 if test "${enable_generated_files_in_srcdir+set}" = set; then
1657 enableval
="$enable_generated_files_in_srcdir"
1658 generated_files_in_srcdir
=$enableval
1660 generated_files_in_srcdir
=no
1663 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1664 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1666 if test "$generated_files_in_srcdir" = "yes"; then
1673 # -------------------
1674 # Find default linker
1675 # -------------------
1679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1680 if test "${with_gnu_ld+set}" = set; then
1681 withval
="$with_gnu_ld"
1682 gnu_ld_flag
="$with_gnu_ld"
1687 # With pre-defined ld
1689 # Check whether --with-ld or --without-ld was given.
1690 if test "${with_ld+set}" = set; then
1692 DEFAULT_LINKER
="$with_ld"
1694 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1695 if test ! -x "$DEFAULT_LINKER"; then
1696 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1697 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1698 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1702 cat >>confdefs.h
<<_ACEOF
1703 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1708 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1709 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1710 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1711 if test x
"$gnu_ld_flag" = x
"no"; then
1712 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1713 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1715 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1716 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1723 # ----------------------
1724 # Find default assembler
1725 # ----------------------
1729 # Check whether --with-gnu-as or --without-gnu-as was given.
1730 if test "${with_gnu_as+set}" = set; then
1731 withval
="$with_gnu_as"
1732 gas_flag
="$with_gnu_as"
1738 # Check whether --with-as or --without-as was given.
1739 if test "${with_as+set}" = set; then
1741 DEFAULT_ASSEMBLER
="$with_as"
1743 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1744 if test ! -x "$DEFAULT_ASSEMBLER"; then
1745 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1746 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1747 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1751 cat >>confdefs.h
<<_ACEOF
1752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1757 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1758 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1759 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1760 if test x
"$gas_flag" = x
"no"; then
1761 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1762 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1764 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1765 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1776 # If a non-executable a.out is present (e.g. created by GNU as above even if
1777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1778 # file, even when creating an executable, so an execution test fails.
1779 # Remove possible default executable files to avoid this.
1781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1782 # Autoconf includes it.
1783 rm -f a.out a.exe b.out
1785 # Find the native compiler
1787 ac_cpp
='$CPP $CPPFLAGS'
1788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC
="$CC" # Let the user override the test.
1802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1806 test -z "$as_dir" && as_dir
=.
1807 for ac_exec_ext
in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$ac_cv_prog_CC"; then
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc
; ac_word
=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$ac_ct_CC"; then
1838 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir
=.
1845 for ac_exec_ext
in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_CC
="gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1870 if test -z "$CC"; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC
="$CC" # Let the user override the test.
1882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir
=.
1887 for ac_exec_ext
in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc
; ac_word
=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir
=.
1925 for ac_exec_ext
in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC
="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1951 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc
; ac_word
=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC
="$CC" # Let the user override the test.
1963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir
=.
1968 for ac_exec_ext
in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971 ac_prog_rejected
=yes
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test $ac_prog_rejected = yes; then
1982 # We found a bogon in the path, so make sure we never use it.
1983 set dummy
$ac_cv_prog_CC
1985 if test $# != 0; then
1986 # We chose a different compiler from the bogus one.
1987 # However, it has the same basename, so the bogon will be chosen
1988 # first if we set CC to just the basename; use the full file name.
1990 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC
="$CC" # Let the user override the test.
2019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir
=.
2024 for ac_exec_ext
in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 test -n "$CC" && break
2047 if test -z "$CC"; then
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy
$ac_prog; ac_word
=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir
=.
2066 for ac_exec_ext
in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC
="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$ac_ct_CC" && break
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103 "checking for C compiler version" >&5
2104 ac_compiler
=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2121 cat >conftest.
$ac_ext <<_ACEOF
2124 cat confdefs.h
>>conftest.
$ac_ext
2125 cat >>conftest.
$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 ac_clean_files_save
=$ac_clean_files
2137 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2141 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2143 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145 (eval $ac_link_default) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # Find the output, starting from the most likely. This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 # b.out is created by i960 compilers.
2157 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2159 test -f "$ac_file" ||
continue
2161 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2164 # This is the source file.
2167 # We found the default executable, but exeext='' is most
2171 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # FIXME: I believe we export ac_cv_exeext for Libtool,
2173 # but it would be cool to find out if it's true. Does anybody
2174 # maintain Libtool? --akim.
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.
$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189 { (exit 77); exit 77; }; }
2192 ac_exeext
=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203 if { ac_try
='./$ac_file'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 if test "$cross_compiling" = maybe
; then
2214 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2227 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2228 ac_clean_files
=$ac_clean_files_save
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 for ac_file
in conftest.exe conftest conftest.
*; do
2248 test -f "$ac_file" ||
continue
2250 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2251 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2265 rm -f conftest
$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2269 rm -f conftest.
$ac_ext
2270 EXEEXT
=$ac_cv_exeext
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.
$ac_ext <<_ACEOF
2280 cat confdefs.h
>>conftest.
$ac_ext
2281 cat >>conftest.
$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2301 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.
$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2316 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT
=$ac_cv_objext
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.
$ac_ext <<_ACEOF
2330 cat confdefs.h
>>conftest.
$ac_ext
2331 cat >>conftest.
$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2345 rm -f conftest.
$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347 (eval $ac_compile) 2>conftest.er1
2349 grep -v '^ *+' conftest.er1
>conftest.err
2351 cat conftest.err
>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; } &&
2360 { ac_try
='test -s conftest.$ac_objext'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.
$ac_ext >&5
2373 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2374 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2377 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2378 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2379 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2380 ac_test_CFLAGS
=${CFLAGS+set}
2381 ac_save_CFLAGS
=$CFLAGS
2383 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2384 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2385 if test "${ac_cv_prog_cc_g+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
2388 cat >conftest.
$ac_ext <<_ACEOF
2391 cat confdefs.h
>>conftest.
$ac_ext
2392 cat >>conftest.
$ac_ext <<_ACEOF
2393 /* end confdefs.h. */
2403 rm -f conftest.
$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2407 grep -v '^ *+' conftest.er1
>conftest.err
2409 cat conftest.err
>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try
='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.
$ac_ext >&5
2431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2433 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2434 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2435 if test "$ac_test_CFLAGS" = set; then
2436 CFLAGS
=$ac_save_CFLAGS
2437 elif test $ac_cv_prog_cc_g = yes; then
2438 if test "$GCC" = yes; then
2444 if test "$GCC" = yes; then
2450 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 ac_cv_prog_cc_stdc
=no
2457 cat >conftest.
$ac_ext <<_ACEOF
2460 cat confdefs.h
>>conftest.
$ac_ext
2461 cat >>conftest.
$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2465 #include <sys/types.h>
2466 #include <sys/stat.h>
2467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2468 struct buf { int x; };
2469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2470 static char *e (p, i)
2476 static char *f (char * (*g) (char **, int), char **p, ...)
2481 s = g (p, va_arg (v,int));
2486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2487 function prototypes and stuff, but not '\xHH' hex character constants.
2488 These don't provoke an error unfortunately, instead are silently treated
2489 as 'x'. The following induces an error, until -std1 is added to get
2490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2491 array size at least. It's necessary to write '\x00'==0 to get something
2492 that's true only with -std1. */
2493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2495 int test (int i, double x);
2496 struct s1 {int (*f) (int a);};
2497 struct s2 {int (*f) (double a);};
2498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2509 # Don't try gcc -ansi; that turns off useful extensions and
2510 # breaks some systems' header files.
2511 # AIX -qlanglvl=ansi
2512 # Ultrix and OSF/1 -std1
2513 # HP-UX 10.20 and later -Ae
2514 # HP-UX older versions -Aa -D_HPUX_SOURCE
2515 # SVR4 -Xc -D__EXTENSIONS__
2516 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2518 CC
="$ac_save_CC $ac_arg"
2519 rm -f conftest.
$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2523 grep -v '^ *+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; } &&
2534 { ac_try
='test -s conftest.$ac_objext'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_cc_stdc
=$ac_arg
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.
$ac_ext >&5
2547 rm -f conftest.err conftest.
$ac_objext
2549 rm -f conftest.
$ac_ext conftest.
$ac_objext
2554 case "x$ac_cv_prog_cc_stdc" in
2556 echo "$as_me:$LINENO: result: none needed" >&5
2557 echo "${ECHO_T}none needed" >&6 ;;
2559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2560 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2561 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2564 # Some people use a C++ compiler to compile C. Since we use `exit',
2565 # in C++ we need to declare it. In case someone uses the same compiler
2566 # for both compiling C and C++ we need to have the C++ compiler decide
2567 # the declaration of exit, since it's the most demanding environment.
2568 cat >conftest.
$ac_ext <<_ACEOF
2573 rm -f conftest.
$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>conftest.er1
2577 grep -v '^ *+' conftest.er1
>conftest.err
2579 cat conftest.err
>&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try
='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2594 for ac_declaration
in \
2596 'extern "C" void std::exit (int) throw (); using std::exit;' \
2597 'extern "C" void std::exit (int); using std::exit;' \
2598 'extern "C" void exit (int) throw ();' \
2599 'extern "C" void exit (int);' \
2602 cat >conftest.
$ac_ext <<_ACEOF
2605 cat confdefs.h
>>conftest.
$ac_ext
2606 cat >>conftest.
$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2618 rm -f conftest.
$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1
>conftest.err
2624 cat conftest.err
>&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try
='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.
$ac_ext >&5
2646 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2647 cat >conftest.
$ac_ext <<_ACEOF
2650 cat confdefs.h
>>conftest.
$ac_ext
2651 cat >>conftest.
$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.
$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1
>conftest.err
2668 cat conftest.err
>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try
='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2692 if test -n "$ac_declaration"; then
2693 echo '#ifdef __cplusplus' >>confdefs.h
2694 echo $ac_declaration >>confdefs.h
2695 echo '#endif' >>confdefs.h
2699 echo "$as_me: failed program was:" >&5
2700 sed 's/^/| /' conftest.
$ac_ext >&5
2703 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2705 ac_cpp
='$CPP $CPPFLAGS'
2706 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2710 if test "x$CC" != xcc
; then
2711 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2712 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2714 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2715 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2717 set dummy
$CC; ac_cc
=`echo $2 |
2718 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2719 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 # Make sure it works both with $CC and with simple cc.
2738 # We do the test twice because some compilers refuse to overwrite an
2739 # existing .o file with -o, though they will create one.
2740 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2741 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); };
2752 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2753 if test "x$CC" != xcc
; then
2754 # Test first that cc exists at all.
2755 if { ac_try
='cc -c conftest.$ac_ext >&5'
2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; }; then
2761 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2776 # cc exists but doesn't like -o.
2777 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2782 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2787 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2788 echo "$as_me:$LINENO: result: yes" >&5
2789 echo "${ECHO_T}yes" >&6
2791 echo "$as_me:$LINENO: result: no" >&5
2792 echo "${ECHO_T}no" >&6
2794 cat >>confdefs.h
<<\_ACEOF
2795 #define NO_MINUS_C_MINUS_O 1
2800 # autoconf is lame and doesn't give us any substitution variable for this.
2801 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2802 NO_MINUS_C_MINUS_O
=yes
2804 OUTPUT_OPTION
='-o $@'
2809 # -------------------------
2810 # Check C compiler features
2811 # -------------------------
2814 ac_cpp
='$CPP $CPPFLAGS'
2815 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2818 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2819 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2820 # On Suns, sometimes $CPP names a directory.
2821 if test -n "$CPP" && test -d "$CPP"; then
2824 if test -z "$CPP"; then
2825 if test "${ac_cv_prog_CPP+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 # Double quotes because CPP needs to be expanded
2829 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2832 for ac_c_preproc_warn_flag
in '' yes
2834 # Use a header file that comes with gcc, so configuring glibc
2835 # with a fresh cross-compiler works.
2836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2837 # <limits.h> exists even on freestanding compilers.
2838 # On the NeXT, cc -E runs the code through the compiler's parser,
2839 # not just through cpp. "Syntax error" is here to catch this case.
2840 cat >conftest.
$ac_ext <<_ACEOF
2843 cat confdefs.h
>>conftest.
$ac_ext
2844 cat >>conftest.
$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2847 # include <limits.h>
2849 # include <assert.h>
2853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2856 grep -v '^ *+' conftest.er1
>conftest.err
2858 cat conftest.err
>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } >/dev
/null
; then
2861 if test -s conftest.err
; then
2862 ac_cpp_err
=$ac_c_preproc_warn_flag
2863 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2870 if test -z "$ac_cpp_err"; then
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.
$ac_ext >&5
2876 # Broken: fails on valid input.
2879 rm -f conftest.err conftest.
$ac_ext
2881 # OK, works on sane cases. Now check whether non-existent headers
2882 # can be detected and how.
2883 cat >conftest.
$ac_ext <<_ACEOF
2886 cat confdefs.h
>>conftest.
$ac_ext
2887 cat >>conftest.
$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889 #include <ac_nonexistent.h>
2891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } >/dev
/null
; then
2899 if test -s conftest.err
; then
2900 ac_cpp_err
=$ac_c_preproc_warn_flag
2901 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2908 if test -z "$ac_cpp_err"; then
2909 # Broken: success on invalid input.
2912 echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.
$ac_ext >&5
2915 # Passes both tests.
2919 rm -f conftest.err conftest.
$ac_ext
2922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2923 rm -f conftest.err conftest.
$ac_ext
2924 if $ac_preproc_ok; then
2936 echo "$as_me:$LINENO: result: $CPP" >&5
2937 echo "${ECHO_T}$CPP" >&6
2939 for ac_c_preproc_warn_flag
in '' yes
2941 # Use a header file that comes with gcc, so configuring glibc
2942 # with a fresh cross-compiler works.
2943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2944 # <limits.h> exists even on freestanding compilers.
2945 # On the NeXT, cc -E runs the code through the compiler's parser,
2946 # not just through cpp. "Syntax error" is here to catch this case.
2947 cat >conftest.
$ac_ext <<_ACEOF
2950 cat confdefs.h
>>conftest.
$ac_ext
2951 cat >>conftest.
$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2954 # include <limits.h>
2956 # include <assert.h>
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2963 grep -v '^ *+' conftest.er1
>conftest.err
2965 cat conftest.err
>&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } >/dev
/null
; then
2968 if test -s conftest.err
; then
2969 ac_cpp_err
=$ac_c_preproc_warn_flag
2970 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2977 if test -z "$ac_cpp_err"; then
2980 echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.
$ac_ext >&5
2983 # Broken: fails on valid input.
2986 rm -f conftest.err conftest.
$ac_ext
2988 # OK, works on sane cases. Now check whether non-existent headers
2989 # can be detected and how.
2990 cat >conftest.
$ac_ext <<_ACEOF
2993 cat confdefs.h
>>conftest.
$ac_ext
2994 cat >>conftest.
$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996 #include <ac_nonexistent.h>
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2999 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3001 grep -v '^ *+' conftest.er1
>conftest.err
3003 cat conftest.err
>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); } >/dev
/null
; then
3006 if test -s conftest.err
; then
3007 ac_cpp_err
=$ac_c_preproc_warn_flag
3008 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3015 if test -z "$ac_cpp_err"; then
3016 # Broken: success on invalid input.
3019 echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.
$ac_ext >&5
3022 # Passes both tests.
3026 rm -f conftest.err conftest.
$ac_ext
3029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3030 rm -f conftest.err conftest.
$ac_ext
3031 if $ac_preproc_ok; then
3034 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3037 See \`config.log' for more details." >&2;}
3038 { (exit 1); exit 1; }; }
3042 ac_cpp
='$CPP $CPPFLAGS'
3043 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3048 echo "$as_me:$LINENO: checking for inline" >&5
3049 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3050 if test "${ac_cv_c_inline+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 for ac_kw
in inline __inline__ __inline
; do
3055 cat >conftest.
$ac_ext <<_ACEOF
3058 cat confdefs.h
>>conftest.
$ac_ext
3059 cat >>conftest.
$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3063 static $ac_kw foo_t static_foo () {return 0; }
3064 $ac_kw foo_t foo () {return 0; }
3068 rm -f conftest.
$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3072 grep -v '^ *+' conftest.er1
>conftest.err
3074 cat conftest.err
>&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; } &&
3083 { ac_try
='test -s conftest.$ac_objext'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; }; then
3089 ac_cv_c_inline
=$ac_kw; break
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.
$ac_ext >&5
3095 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3100 echo "${ECHO_T}$ac_cv_c_inline" >&6
3103 case $ac_cv_c_inline in
3106 case $ac_cv_c_inline in
3108 *) ac_val
=$ac_cv_c_inline;;
3110 cat >>confdefs.h
<<_ACEOF
3112 #define inline $ac_val
3119 echo "$as_me:$LINENO: checking for long long int" >&5
3120 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3121 if test "${ac_cv_c_long_long+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 cat >conftest.
$ac_ext <<_ACEOF
3127 cat confdefs.h
>>conftest.
$ac_ext
3128 cat >>conftest.
$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3139 rm -f conftest.
$ac_objext
3140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141 (eval $ac_compile) 2>conftest.er1
3143 grep -v '^ *+' conftest.er1
>conftest.err
3145 cat conftest.err
>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } &&
3148 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try
='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_long_long
=yes
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.
$ac_ext >&5
3165 ac_cv_c_long_long
=no
3167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3169 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3170 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3171 if test $ac_cv_c_long_long = yes; then
3173 cat >>confdefs.h
<<\_ACEOF
3174 #define HAVE_LONG_LONG 1
3178 echo "$as_me:$LINENO: checking for __int64" >&5
3179 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3180 if test "${ac_cv_c___int64+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 cat >conftest.
$ac_ext <<_ACEOF
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.
$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1
>conftest.err
3204 cat conftest.err
>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } &&
3207 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; } &&
3213 { ac_try
='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3221 echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.
$ac_ext >&5
3226 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3229 echo "${ECHO_T}$ac_cv_c___int64" >&6
3230 if test $ac_cv_c___int64 = yes; then
3232 cat >>confdefs.h
<<\_ACEOF
3233 #define HAVE___INT64 1
3238 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3239 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3240 if test "${gcc_cv_c__bool+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.
$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3262 grep -v '^ *+' conftest.er1
>conftest.err
3264 cat conftest.err
>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; } &&
3273 { ac_try
='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.
$ac_ext >&5
3286 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3289 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3290 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3291 if test $gcc_cv_c__bool = yes; then
3293 cat >>confdefs.h
<<\_ACEOF
3294 #define HAVE__BOOL 1
3300 # sizeof(char) is 1 by definition.
3301 echo "$as_me:$LINENO: checking size of void *" >&5
3302 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3303 if test "${ac_cv_sizeof_void_p+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3307 cat >conftest.
$ac_ext <<_ACEOF
3310 cat confdefs.h
>>conftest.
$ac_ext
3311 cat >>conftest.
$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include "confdefs.h"
3314 #include <sys/types.h>
3320 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3325 rm -f conftest.
$ac_objext
3326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3327 (eval $ac_compile) 2>conftest.er1
3329 grep -v '^ *+' conftest.er1
>conftest.err
3331 cat conftest.err
>&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } &&
3334 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try
='test -s conftest.$ac_objext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 ac_cv_sizeof_void_p
=$ac_size
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.
$ac_ext >&5
3352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3353 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3358 if test x
$ac_cv_sizeof_void_p = x
; then
3359 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3360 echo "$as_me: error: cannot determine a size for void *" >&2;}
3361 { (exit 1); exit 1; }; }
3363 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3364 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3366 cat >>confdefs.h
<<_ACEOF
3367 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3371 echo "$as_me:$LINENO: checking size of short" >&5
3372 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3373 if test "${ac_cv_sizeof_short+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3377 cat >conftest.
$ac_ext <<_ACEOF
3380 cat confdefs.h
>>conftest.
$ac_ext
3381 cat >>conftest.
$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #include "confdefs.h"
3384 #include <sys/types.h>
3390 switch (0) case 0: case (sizeof (short) == $ac_size):;
3395 rm -f conftest.
$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3399 grep -v '^ *+' conftest.er1
>conftest.err
3401 cat conftest.err
>&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try
='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_sizeof_short
=$ac_size
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.
$ac_ext >&5
3422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3423 if test x
$ac_cv_sizeof_short != x
; then break; fi
3428 if test x
$ac_cv_sizeof_short = x
; then
3429 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3430 echo "$as_me: error: cannot determine a size for short" >&2;}
3431 { (exit 1); exit 1; }; }
3433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3434 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3436 cat >>confdefs.h
<<_ACEOF
3437 #define SIZEOF_SHORT $ac_cv_sizeof_short
3441 echo "$as_me:$LINENO: checking size of int" >&5
3442 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3443 if test "${ac_cv_sizeof_int+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3447 cat >conftest.
$ac_ext <<_ACEOF
3450 cat confdefs.h
>>conftest.
$ac_ext
3451 cat >>conftest.
$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #include "confdefs.h"
3454 #include <sys/types.h>
3460 switch (0) case 0: case (sizeof (int) == $ac_size):;
3465 rm -f conftest.
$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>conftest.er1
3469 grep -v '^ *+' conftest.er1
>conftest.err
3471 cat conftest.err
>&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try
='test -s conftest.$ac_objext'
3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3486 ac_cv_sizeof_int
=$ac_size
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.
$ac_ext >&5
3492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3493 if test x
$ac_cv_sizeof_int != x
; then break; fi
3498 if test x
$ac_cv_sizeof_int = x
; then
3499 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3500 echo "$as_me: error: cannot determine a size for int" >&2;}
3501 { (exit 1); exit 1; }; }
3503 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3504 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3506 cat >>confdefs.h
<<_ACEOF
3507 #define SIZEOF_INT $ac_cv_sizeof_int
3511 echo "$as_me:$LINENO: checking size of long" >&5
3512 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3513 if test "${ac_cv_sizeof_long+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3517 cat >conftest.
$ac_ext <<_ACEOF
3520 cat confdefs.h
>>conftest.
$ac_ext
3521 cat >>conftest.
$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include "confdefs.h"
3524 #include <sys/types.h>
3530 switch (0) case 0: case (sizeof (long) == $ac_size):;
3535 rm -f conftest.
$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1
>conftest.err
3541 cat conftest.err
>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try
='test -s conftest.$ac_objext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_sizeof_long
=$ac_size
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.
$ac_ext >&5
3562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3563 if test x
$ac_cv_sizeof_long != x
; then break; fi
3568 if test x
$ac_cv_sizeof_long = x
; then
3569 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3570 echo "$as_me: error: cannot determine a size for long" >&2;}
3571 { (exit 1); exit 1; }; }
3573 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3576 cat >>confdefs.h
<<_ACEOF
3577 #define SIZEOF_LONG $ac_cv_sizeof_long
3581 if test $ac_cv_c_long_long = yes; then
3582 echo "$as_me:$LINENO: checking size of long long" >&5
3583 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3584 if test "${ac_cv_sizeof_long_long+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3588 cat >conftest.
$ac_ext <<_ACEOF
3591 cat confdefs.h
>>conftest.
$ac_ext
3592 cat >>conftest.
$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3601 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3606 rm -f conftest.
$ac_objext
3607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3608 (eval $ac_compile) 2>conftest.er1
3610 grep -v '^ *+' conftest.er1
>conftest.err
3612 cat conftest.err
>&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } &&
3615 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try
='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 ac_cv_sizeof_long_long
=$ac_size
3629 echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.
$ac_ext >&5
3633 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3634 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3639 if test x
$ac_cv_sizeof_long_long = x
; then
3640 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3641 echo "$as_me: error: cannot determine a size for long long" >&2;}
3642 { (exit 1); exit 1; }; }
3644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3645 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3647 cat >>confdefs.h
<<_ACEOF
3648 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3653 if test $ac_cv_c___int64 = yes; then
3654 echo "$as_me:$LINENO: checking size of __int64" >&5
3655 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3656 if test "${ac_cv_sizeof___int64+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3660 cat >conftest.
$ac_ext <<_ACEOF
3663 cat confdefs.h
>>conftest.
$ac_ext
3664 cat >>conftest.
$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3673 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3678 rm -f conftest.
$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try
='test -s conftest.$ac_objext'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; }; then
3699 ac_cv_sizeof___int64
=$ac_size
3701 echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.
$ac_ext >&5
3705 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3706 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3711 if test x
$ac_cv_sizeof___int64 = x
; then
3712 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3713 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3714 { (exit 1); exit 1; }; }
3716 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3717 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3719 cat >>confdefs.h
<<_ACEOF
3720 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3726 # ---------------------
3727 # Warnings and checking
3728 # ---------------------
3730 # Check $CC warning features (if it's GCC).
3731 # We want to use -pedantic, but we don't want warnings about
3734 # So, we only use -pedantic if we can disable those warnings.
3736 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3737 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3738 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 save_CFLAGS
="$CFLAGS"
3742 CFLAGS
="-Wno-long-long"
3743 cat >conftest.
$ac_ext <<_ACEOF
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3751 rm -f conftest.
$ac_objext
3752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753 (eval $ac_compile) 2>conftest.er1
3755 grep -v '^ *+' conftest.er1
>conftest.err
3757 cat conftest.err
>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } &&
3760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; } &&
3766 { ac_try
='test -s conftest.$ac_objext'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; }; then
3772 ac_cv_prog_cc_w_no_long_long
=yes
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.
$ac_ext >&5
3777 ac_cv_prog_cc_w_no_long_long
=no
3779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3780 CFLAGS
="$save_CFLAGS"
3783 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3784 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3786 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3787 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3788 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 save_CFLAGS
="$CFLAGS"
3792 CFLAGS
="-Wno-variadic-macros"
3793 cat >conftest.
$ac_ext <<_ACEOF
3796 cat confdefs.h
>>conftest.
$ac_ext
3797 cat >>conftest.
$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3801 rm -f conftest.
$ac_objext
3802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
3805 grep -v '^ *+' conftest.er1
>conftest.err
3807 cat conftest.err
>&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; } &&
3816 { ac_try
='test -s conftest.$ac_objext'
3817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_prog_cc_w_no_variadic_macros
=yes
3824 echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.
$ac_ext >&5
3827 ac_cv_prog_cc_w_no_variadic_macros
=no
3829 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3830 CFLAGS
="$save_CFLAGS"
3833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3834 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3837 if test $ac_cv_prog_cc_w_no_long_long = yes \
3838 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3839 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
3843 # If the native compiler is GCC, we can enable warnings even in stage1.
3844 # That's useful for people building cross-compilers, or just running a
3847 if test "x$GCC" = "xyes"; then
3848 warn_cflags
='$(GCC_WARN_CFLAGS)'
3852 # Enable -Werror in bootstrap stage2 and later.
3853 # Change the default to "no" on release branches.
3854 # Check whether --enable-werror or --disable-werror was given.
3855 if test "${enable_werror+set}" = set; then
3856 enableval
="$enable_werror"
3861 if test x
$enable_werror = xyes
; then
3866 # Enable expensive internal checks
3867 # Check whether --enable-checking or --disable-checking was given.
3868 if test "${enable_checking+set}" = set; then
3869 enableval
="$enable_checking"
3873 ac_rtlflag_checking
=
3875 ac_gc_always_collect
=
3877 case "${enableval}" in
3878 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3879 ac_rtlflag_checking
=1 ;;
3881 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3882 set fnord
$enableval; shift
3887 misc
) ac_checking
=1 ;;
3888 tree
) ac_tree_checking
=1 ;;
3889 rtlflag
) ac_rtlflag_checking
=1 ;;
3890 rtl
) ac_rtl_checking
=1 ;;
3891 gc
) ac_gc_checking
=1 ;;
3892 gcac
) ac_gc_always_collect
=1 ;;
3893 fold) ac_fold_checking
=1 ;;
3894 valgrind
) ac_checking_valgrind
=1 ;;
3895 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3896 echo "$as_me: error: unknown check category $check" >&2;}
3897 { (exit 1); exit 1; }; } ;;
3904 # Enable some checks by default for development versions of GCC
3905 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3908 if test x
$ac_checking != x
; then
3910 cat >>confdefs.h
<<\_ACEOF
3911 #define ENABLE_CHECKING 1
3914 nocommon_flag
=-fno-common
3917 if test x
$ac_tree_checking != x
; then
3919 cat >>confdefs.h
<<\_ACEOF
3920 #define ENABLE_TREE_CHECKING 1
3924 if test x
$ac_rtl_checking != x
; then
3926 cat >>confdefs.h
<<\_ACEOF
3927 #define ENABLE_RTL_CHECKING 1
3931 if test x
$ac_rtlflag_checking != x
; then
3933 cat >>confdefs.h
<<\_ACEOF
3934 #define ENABLE_RTL_FLAG_CHECKING 1
3938 if test x
$ac_gc_checking != x
; then
3940 cat >>confdefs.h
<<\_ACEOF
3941 #define ENABLE_GC_CHECKING 1
3945 if test x
$ac_gc_always_collect != x
; then
3947 cat >>confdefs.h
<<\_ACEOF
3948 #define ENABLE_GC_ALWAYS_COLLECT 1
3952 if test x
$ac_fold_checking != x
; then
3954 cat >>confdefs.h
<<\_ACEOF
3955 #define ENABLE_FOLD_CHECKING 1
3959 valgrind_path_defines
=
3963 echo "$as_me:$LINENO: checking for egrep" >&5
3964 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3965 if test "${ac_cv_prog_egrep+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3969 then ac_cv_prog_egrep
='grep -E'
3970 else ac_cv_prog_egrep
='egrep'
3973 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3974 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3975 EGREP
=$ac_cv_prog_egrep
3978 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3979 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3980 if test "${ac_cv_header_stdc+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 cat >conftest.
$ac_ext <<_ACEOF
3986 cat confdefs.h
>>conftest.
$ac_ext
3987 cat >>conftest.
$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
4002 rm -f conftest.
$ac_objext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>conftest.er1
4006 grep -v '^ *+' conftest.er1
>conftest.err
4008 cat conftest.err
>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try
='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_header_stdc
=yes
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.
$ac_ext >&5
4028 ac_cv_header_stdc
=no
4030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4032 if test $ac_cv_header_stdc = yes; then
4033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4034 cat >conftest.
$ac_ext <<_ACEOF
4037 cat confdefs.h
>>conftest.
$ac_ext
4038 cat >>conftest.
$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 $EGREP "memchr" >/dev
/null
2>&1; then
4047 ac_cv_header_stdc
=no
4053 if test $ac_cv_header_stdc = yes; then
4054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4055 cat >conftest.
$ac_ext <<_ACEOF
4058 cat confdefs.h
>>conftest.
$ac_ext
4059 cat >>conftest.
$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "free" >/dev
/null
2>&1; then
4068 ac_cv_header_stdc
=no
4074 if test $ac_cv_header_stdc = yes; then
4075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4076 if test "$cross_compiling" = yes; then
4079 cat >conftest.
$ac_ext <<_ACEOF
4082 cat confdefs.h
>>conftest.
$ac_ext
4083 cat >>conftest.
$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4086 #if ((' ' & 0x0FF) == 0x020)
4087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4090 # define ISLOWER(c) \
4091 (('a' <= (c) && (c) <= 'i') \
4092 || ('j' <= (c) && (c) <= 'r') \
4093 || ('s' <= (c) && (c) <= 'z'))
4094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4102 for (i = 0; i < 256; i++)
4103 if (XOR (islower (i), ISLOWER (i))
4104 || toupper (i) != TOUPPER (i))
4109 rm -f conftest
$ac_exeext
4110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4111 (eval $ac_link) 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4122 echo "$as_me: program exited with status $ac_status" >&5
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4127 ac_cv_header_stdc
=no
4129 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4133 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4134 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4135 if test $ac_cv_header_stdc = yes; then
4137 cat >>confdefs.h
<<\_ACEOF
4138 #define STDC_HEADERS 1
4143 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4153 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4154 inttypes.h stdint.h unistd.h
4156 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4157 echo "$as_me:$LINENO: checking for $ac_header" >&5
4158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 cat >conftest.
$ac_ext <<_ACEOF
4165 cat confdefs.h
>>conftest.
$ac_ext
4166 cat >>conftest.
$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4170 #include <$ac_header>
4172 rm -f conftest.
$ac_objext
4173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174 (eval $ac_compile) 2>conftest.er1
4176 grep -v '^ *+' conftest.er1
>conftest.err
4178 cat conftest.err
>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; } &&
4187 { ac_try
='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_Header=yes"
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4198 eval "$as_ac_Header=no"
4200 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h
<<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4214 if test "${ac_cv_header_valgrind_h+set}" = set; then
4215 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4216 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4217 if test "${ac_cv_header_valgrind_h+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4221 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4223 # Is the header compilable?
4224 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4225 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 #include <valgrind.h>
4235 rm -f conftest.
$ac_objext
4236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4237 (eval $ac_compile) 2>conftest.er1
4239 grep -v '^ *+' conftest.er1
>conftest.err
4241 cat conftest.err
>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; } &&
4250 { ac_try
='test -s conftest.$ac_objext'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4256 ac_header_compiler
=yes
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.
$ac_ext >&5
4261 ac_header_compiler
=no
4263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4265 echo "${ECHO_T}$ac_header_compiler" >&6
4267 # Is the header present?
4268 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4269 echo $ECHO_N "checking valgrind.h presence... $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 #include <valgrind.h>
4278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4279 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4281 grep -v '^ *+' conftest.er1
>conftest.err
4283 cat conftest.err
>&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } >/dev
/null
; then
4286 if test -s conftest.err
; then
4287 ac_cpp_err
=$ac_c_preproc_warn_flag
4288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4295 if test -z "$ac_cpp_err"; then
4296 ac_header_preproc
=yes
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4301 ac_header_preproc
=no
4303 rm -f conftest.err conftest.
$ac_ext
4304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4305 echo "${ECHO_T}$ac_header_preproc" >&6
4307 # So? What about this header?
4308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4310 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4311 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4312 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4313 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4314 ac_header_preproc
=yes
4317 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4318 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4320 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4322 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4323 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4324 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4325 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4326 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4327 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4328 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4331 ## ------------------------------------------ ##
4332 ## Report this to the AC_PACKAGE_NAME lists. ##
4333 ## ------------------------------------------ ##
4336 sed "s/^/$as_me: WARNING: /" >&2
4339 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4340 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4341 if test "${ac_cv_header_valgrind_h+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 ac_cv_header_valgrind_h
=$ac_header_preproc
4346 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4347 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4350 if test $ac_cv_header_valgrind_h = yes; then
4358 if test x
$ac_checking_valgrind != x
; then
4359 # It is certainly possible that there's valgrind but no valgrind.h.
4360 # GCC relies on making annotations so we must have both.
4361 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4362 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4363 cat >conftest.
$ac_ext <<_ACEOF
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <valgrind/memcheck.h>
4370 #ifndef VALGRIND_DISCARD
4371 #error VALGRIND_DISCARD not defined
4374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4377 grep -v '^ *+' conftest.er1
>conftest.err
4379 cat conftest.err
>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } >/dev
/null
; then
4382 if test -s conftest.err
; then
4383 ac_cpp_err
=$ac_c_preproc_warn_flag
4384 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4391 if test -z "$ac_cpp_err"; then
4392 gcc_cv_header_valgrind_memcheck_h
=yes
4394 echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.
$ac_ext >&5
4397 gcc_cv_header_valgrind_memcheck_h
=no
4399 rm -f conftest.err conftest.
$ac_ext
4400 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4401 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4402 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4403 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <memcheck.h>
4411 #ifndef VALGRIND_DISCARD
4412 #error VALGRIND_DISCARD not defined
4415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4418 grep -v '^ *+' conftest.er1
>conftest.err
4420 cat conftest.err
>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev
/null
; then
4423 if test -s conftest.err
; then
4424 ac_cpp_err
=$ac_c_preproc_warn_flag
4425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4432 if test -z "$ac_cpp_err"; then
4433 gcc_cv_header_memcheck_h
=yes
4435 echo "$as_me: failed program was:" >&5
4436 sed 's/^/| /' conftest.
$ac_ext >&5
4438 gcc_cv_header_memcheck_h
=no
4440 rm -f conftest.err conftest.
$ac_ext
4441 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4442 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4444 # Prepare PATH_SEPARATOR.
4445 # The user is always right.
4446 if test "${PATH_SEPARATOR+set}" != set; then
4447 echo "#! /bin/sh" >conf$$.sh
4448 echo "exit 0" >>conf$$.sh
4450 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4458 # Find out how to test for executable files. Don't use a zero-byte file,
4459 # as systems may use methods other than mode bits to determine executability.
4460 cat >conf$$.
file <<_ASEOF
4464 chmod +x conf$$.
file
4465 if test -x conf$$.
file >/dev
/null
2>&1; then
4466 ac_executable_p
="test -x"
4468 ac_executable_p
="test -f"
4472 # Extract the first word of "valgrind", so it can be a program name with args.
4473 set dummy valgrind
; ac_word
=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_valgrind_path+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case "$valgrind_path" in
4481 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4484 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4485 for ac_dir
in $PATH; do
4487 test -z "$ac_dir" && ac_dir
=.
4488 for ac_exec_ext
in '' $ac_executable_extensions; do
4489 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4490 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4491 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4501 valgrind_path
="$ac_cv_path_valgrind_path"
4502 if test -n "$valgrind_path"; then
4503 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4504 echo "${ECHO_T}$valgrind_path" >&6
4506 echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6
4510 if test "x$valgrind_path" = "x" \
4511 ||
(test $have_valgrind_h = no \
4512 && test $gcc_cv_header_memcheck_h = no \
4513 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4514 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4515 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4516 { (exit 1); exit 1; }; }
4518 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4519 valgrind_command
="$valgrind_path -q"
4521 cat >>confdefs.h
<<\_ACEOF
4522 #define ENABLE_VALGRIND_CHECKING 1
4525 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4527 cat >>confdefs.h
<<\_ACEOF
4528 #define HAVE_VALGRIND_MEMCHECK_H 1
4532 if test $gcc_cv_header_memcheck_h = yes; then
4534 cat >>confdefs.h
<<\_ACEOF
4535 #define HAVE_MEMCHECK_H 1
4543 # Enable code coverage collection
4544 # Check whether --enable-coverage or --disable-coverage was given.
4545 if test "${enable_coverage+set}" = set; then
4546 enableval
="$enable_coverage"
4547 case "${enableval}" in
4549 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4552 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4555 # a.k.a. --disable-coverage
4559 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4560 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4561 { (exit 1); exit 1; }; }
4569 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4570 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4571 enableval
="$enable_gather_detailed_mem_stats"
4574 enable_gather_detailed_mem_stats
=no
4576 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define GATHER_STATISTICS 1
4584 # -------------------------------
4585 # Miscenalleous configure options
4586 # -------------------------------
4590 # Check whether --with-stabs or --without-stabs was given.
4591 if test "${with_stabs+set}" = set; then
4592 withval
="$with_stabs"
4598 # Determine whether or not multilibs are enabled.
4599 # Check whether --enable-multilib or --disable-multilib was given.
4600 if test "${enable_multilib+set}" = set; then
4601 enableval
="$enable_multilib"
4608 # Enable __cxa_atexit for C++.
4609 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4610 if test "${enable___cxa_atexit+set}" = set; then
4611 enableval
="$enable___cxa_atexit"
4616 # Pass with no value to take the default
4617 # Pass with a value to specify a thread package
4618 # Check whether --enable-threads or --disable-threads was given.
4619 if test "${enable_threads+set}" = set; then
4620 enableval
="$enable_threads"
4625 # Save in case it gets overwritten in config.gcc
4626 enable_threads_flag
=$enable_threads
4628 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4629 if test "${enable_objc_gc+set}" = set; then
4630 enableval
="$enable_objc_gc"
4631 if test x
$enable_objc_gc = xno
; then
4641 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4642 if test "${with_dwarf2+set}" = set; then
4643 withval
="$with_dwarf2"
4644 dwarf2
="$with_dwarf2"
4649 # Check whether --enable-shared or --disable-shared was given.
4650 if test "${enable_shared+set}" = set; then
4651 enableval
="$enable_shared"
4653 case $enable_shared in
4657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4658 for pkg
in $enableval; do
4659 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4673 # Check whether --with-sysroot or --without-sysroot was given.
4674 if test "${with_sysroot+set}" = set; then
4675 withval
="$with_sysroot"
4677 case ${with_sysroot} in
4678 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4679 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4682 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4683 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4685 if test "x$exec_prefix" = xNONE
; then
4686 if test "x$prefix" = xNONE
; then
4687 test_prefix
=/usr
/local
4692 test_prefix
=$exec_prefix
4694 case ${TARGET_SYSTEM_ROOT} in
4695 "${test_prefix}"|
"${test_prefix}/"*|\
4696 '${exec_prefix}'|
'${exec_prefix}/'*)
4697 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4698 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4705 TARGET_SYSTEM_ROOT_DEFINE
=
4706 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4713 # Build with intermodule optimisations
4714 # Check whether --enable-intermodule or --disable-intermodule was given.
4715 if test "${enable_intermodule+set}" = set; then
4716 enableval
="$enable_intermodule"
4717 case ${enable_intermodule} in
4718 yes) onestep
="-onestep";;
4726 # Sanity check enable_languages in case someone does not run the toplevel
4727 # configure # script.
4728 # Check whether --enable-languages or --disable-languages was given.
4729 if test "${enable_languages+set}" = set; then
4730 enableval
="$enable_languages"
4731 case ,${enable_languages}, in
4733 # go safe -- we cannot be much sure without the toplevel
4735 # analysis of which target libs are present and usable
4739 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4740 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4741 { (exit 1); exit 1; }; }
4746 enable_languages
=c
,${enable_languages}
4754 for lang
in ${srcdir}/*/config-lang.
in
4757 # The odd quoting in the next line works around
4758 # an apparent bug in bash 1.12 on linux.
4759 ${srcdir}/[*]/config-lang.
in) ;;
4761 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4762 if test "x$lang_alias" = x
4764 echo "$lang doesn't set \$language." 1>&2
4767 case ",$enable_languages," in
4769 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4776 # -------------------------
4777 # Checks for other programs
4778 # -------------------------
4780 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4781 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4782 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.
make <<\_ACEOF
4788 @
echo 'ac_maketemp="$(MAKE)"'
4790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4792 if test -n "$ac_maketemp"; then
4793 eval ac_cv_prog_make_
${ac_make}_set
=yes
4795 eval ac_cv_prog_make_
${ac_make}_set
=no
4799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4800 echo "$as_me:$LINENO: result: yes" >&5
4801 echo "${ECHO_T}yes" >&6
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4806 SET_MAKE
="MAKE=${MAKE-make}"
4810 # Find some useful tools
4811 for ac_prog
in gawk mawk nawk
awk
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814 set dummy
$ac_prog; ac_word
=$2
4815 echo "$as_me:$LINENO: checking for $ac_word" >&5
4816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4817 if test "${ac_cv_prog_AWK+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 if test -n "$AWK"; then
4821 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir
=.
4828 for ac_exec_ext
in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_prog_AWK
="$ac_prog"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 if test -n "$AWK"; then
4841 echo "$as_me:$LINENO: result: $AWK" >&5
4842 echo "${ECHO_T}$AWK" >&6
4844 echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6
4848 test -n "$AWK" && break
4851 # We need awk to run opts.sh (to create options.c and options.h).
4852 # Bail out if it's missing.
4854 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4855 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4859 echo "$as_me:$LINENO: checking whether ln works" >&5
4860 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4861 if test "${gcc_cv_prog_LN+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 rm -f conftestdata_t
4865 echo >conftestdata_f
4866 if ln conftestdata_f conftestdata_t
2>/dev
/null
4870 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4872 gcc_cv_prog_LN
="ln -s"
4877 rm -f conftestdata_f conftestdata_t
4880 LN
="$gcc_cv_prog_LN"
4881 if test "$gcc_cv_prog_LN" = "ln"; then
4882 echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6
4885 if test "$gcc_cv_prog_LN" = "ln -s"; then
4886 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4887 echo "${ECHO_T}no, using ln -s" >&6
4889 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4890 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4894 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4895 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4896 if test "${gcc_cv_prog_LN_S+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 rm -f conftestdata_t
4900 echo >conftestdata_f
4901 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4903 gcc_cv_prog_LN_S
="ln -s"
4905 if ln conftestdata_f conftestdata_t
2>/dev
/null
4912 rm -f conftestdata_f conftestdata_t
4915 LN_S
="$gcc_cv_prog_LN_S"
4916 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4917 echo "$as_me:$LINENO: result: yes" >&5
4918 echo "${ECHO_T}yes" >&6
4920 if test "$gcc_cv_prog_LN_S" = "ln"; then
4921 echo "$as_me:$LINENO: result: no, using ln" >&5
4922 echo "${ECHO_T}no, using ln" >&6
4924 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4925 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4931 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4932 echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934 if test "${ac_cv_prog_RANLIB+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 if test -n "$RANLIB"; then
4938 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir
=.
4945 for ac_exec_ext
in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 RANLIB
=$ac_cv_prog_RANLIB
4957 if test -n "$RANLIB"; then
4958 echo "$as_me:$LINENO: result: $RANLIB" >&5
4959 echo "${ECHO_T}$RANLIB" >&6
4961 echo "$as_me:$LINENO: result: no" >&5
4962 echo "${ECHO_T}no" >&6
4966 if test -z "$ac_cv_prog_RANLIB"; then
4967 ac_ct_RANLIB
=$RANLIB
4968 # Extract the first word of "ranlib", so it can be a program name with args.
4969 set dummy ranlib
; ac_word
=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 if test -n "$ac_ct_RANLIB"; then
4976 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir
=.
4983 for ac_exec_ext
in '' $ac_executable_extensions; do
4984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4995 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4996 if test -n "$ac_ct_RANLIB"; then
4997 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4998 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5000 echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6
5004 RANLIB
=$ac_ct_RANLIB
5006 RANLIB
="$ac_cv_prog_RANLIB"
5009 # Find a good install program. We prefer a C program (faster),
5010 # so one script is as good as another. But avoid the broken or
5011 # incompatible versions:
5012 # SysV /etc/install, /usr/sbin/install
5013 # SunOS /usr/etc/install
5014 # IRIX /sbin/install
5016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5018 # ./install, which can be erroneously created by make from ./install.sh.
5019 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5020 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5021 if test -z "$INSTALL"; then
5022 if test "${ac_cv_path_install+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5025 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
5026 for ac_dir
in $PATH; do
5027 # Account for people who put trailing slashes in PATH elements.
5029 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5031 # OSF1 and SCO ODT 3.0 have their own names for install.
5032 for ac_prog
in ginstall scoinst
install; do
5033 if test -f $ac_dir/$ac_prog; then
5034 if test $ac_prog = install &&
5035 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5036 # AIX install. It has an incompatible calling convention.
5037 # OSF/1 installbsd also uses dspmsg, but is usable.
5040 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5051 if test "${ac_cv_path_install+set}" = set; then
5052 INSTALL
="$ac_cv_path_install"
5054 # As a last resort, use the slow shell script. We don't cache a
5055 # path for INSTALL within a source directory, because that will
5056 # break other packages using the cache if that directory is
5057 # removed, or if the path is relative.
5058 INSTALL
="$ac_install_sh"
5061 echo "$as_me:$LINENO: result: $INSTALL" >&5
5062 echo "${ECHO_T}$INSTALL" >&6
5064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5065 # It thinks the first close brace ends the variable substitution.
5066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5068 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5071 # See if cmp has --ignore-initial.
5072 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5073 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5074 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 gcc_cv_prog_cmp_skip
=slowcompare
5080 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5081 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5084 gcc_cv_prog_cmp_skip
=gnucompare
5087 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5088 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5089 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5092 gcc_cv_prog_cmp_skip
=fastcompare
5099 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5100 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5101 make_compare_target
=$gcc_cv_prog_cmp_skip
5105 # See if we have the mktemp command.
5106 # Extract the first word of "mktemp", so it can be a program name with args.
5107 set dummy mktemp
; ac_word
=$2
5108 echo "$as_me:$LINENO: checking for $ac_word" >&5
5109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 if test -n "$have_mktemp_command"; then
5114 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir
=.
5121 for ac_exec_ext
in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_have_mktemp_command
="yes"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5133 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5134 if test -n "$have_mktemp_command"; then
5135 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5136 echo "${ECHO_T}$have_mktemp_command" >&6
5138 echo "$as_me:$LINENO: result: no" >&5
5139 echo "${ECHO_T}no" >&6
5143 # Do we have a single-tree copy of texinfo?
5144 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
5145 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
5146 gcc_cv_prog_makeinfo_modern
=yes
5147 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5148 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5150 # See if makeinfo has been installed and is modern enough
5151 # that we can use it.
5152 # Extract the first word of "makeinfo", so it can be a program name with args.
5153 set dummy makeinfo
; ac_word
=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 if test -n "$MAKEINFO"; then
5160 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir
=.
5167 for ac_exec_ext
in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_MAKEINFO
="makeinfo"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 MAKEINFO
=$ac_cv_prog_MAKEINFO
5179 if test -n "$MAKEINFO"; then
5180 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5181 echo "${ECHO_T}$MAKEINFO" >&6
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5187 if test -n "$MAKEINFO"; then
5188 # Found it, now check the version.
5189 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5190 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5191 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5195 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5196 echo "configure:5196: version of makeinfo is $ac_prog_version" >&5
5197 case $ac_prog_version in
5198 '') gcc_cv_prog_makeinfo_modern
=no
;;
5200 gcc_cv_prog_makeinfo_modern
=yes;;
5201 *) gcc_cv_prog_makeinfo_modern
=no
;;
5205 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5206 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5208 gcc_cv_prog_makeinfo_modern
=no
5213 if test $gcc_cv_prog_makeinfo_modern = no
; then
5214 { echo "$as_me:$LINENO: WARNING:
5215 *** Makeinfo is missing or too old.
5216 *** Info documentation will not be built." >&5
5217 echo "$as_me: WARNING:
5218 *** Makeinfo is missing or too old.
5219 *** Info documentation will not be built." >&2;}
5225 # Is pod2man recent enough to regenerate manpages?
5226 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5227 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5228 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5229 echo "$as_me:$LINENO: result: yes" >&5
5230 echo "${ECHO_T}yes" >&6
5231 GENERATED_MANPAGES
=generated-manpages
5233 echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6
5239 if test -f $srcdir/..
/flex
/skel.c
; then
5240 FLEX
='$(objdir)/../flex/flex'
5242 # Extract the first word of "flex", so it can be a program name with args.
5243 set dummy flex
; ac_word
=$2
5244 echo "$as_me:$LINENO: checking for $ac_word" >&5
5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246 if test "${ac_cv_prog_FLEX+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 if test -n "$FLEX"; then
5250 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_FLEX
="flex"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5269 FLEX
=$ac_cv_prog_FLEX
5270 if test -n "$FLEX"; then
5271 echo "$as_me:$LINENO: result: $FLEX" >&5
5272 echo "${ECHO_T}$FLEX" >&6
5274 echo "$as_me:$LINENO: result: no" >&5
5275 echo "${ECHO_T}no" >&6
5281 # The -L switch is so bison can find its skeleton file.
5282 if test -f $srcdir/..
/bison
/bison.simple
; then
5283 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5285 # Extract the first word of "bison", so it can be a program name with args.
5286 set dummy bison
; ac_word
=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_prog_BISON+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 if test -n "$BISON"; then
5293 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir
=.
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_BISON
="bison"
5303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5312 BISON
=$ac_cv_prog_BISON
5313 if test -n "$BISON"; then
5314 echo "$as_me:$LINENO: result: $BISON" >&5
5315 echo "${ECHO_T}$BISON" >&6
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5323 # --------------------
5324 # Checks for C headers
5325 # --------------------
5327 echo "$as_me:$LINENO: checking for GNU C library" >&5
5328 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5329 if test "${gcc_cv_glibc+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.
$ac_ext <<_ACEOF
5335 cat confdefs.h
>>conftest.
$ac_ext
5336 cat >>conftest.
$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <features.h>
5343 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5344 #error Not a GNU C library system
5350 rm -f conftest.
$ac_objext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5352 (eval $ac_compile) 2>conftest.er1
5354 grep -v '^ *+' conftest.er1
>conftest.err
5356 cat conftest.err
>&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } &&
5359 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); }; } &&
5365 { ac_try
='test -s conftest.$ac_objext'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.
$ac_ext >&5
5378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5382 echo "${ECHO_T}$gcc_cv_glibc" >&6
5383 if test $gcc_cv_glibc = yes; then
5385 cat >>confdefs.h
<<\_ACEOF
5386 #define _GNU_SOURCE 1
5391 # Need to reject headers which give warnings, so that the -Werror bootstrap
5392 # works later. *sigh* This needs to come before all header checks.
5394 ac_c_preproc_warn_flag
=yes
5396 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5397 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5398 if test "${ac_cv_header_stdc+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5401 cat >conftest.
$ac_ext <<_ACEOF
5404 cat confdefs.h
>>conftest.
$ac_ext
5405 cat >>conftest.
$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5420 rm -f conftest.
$ac_objext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5422 (eval $ac_compile) 2>conftest.er1
5424 grep -v '^ *+' conftest.er1
>conftest.err
5426 cat conftest.err
>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; } &&
5435 { ac_try
='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_header_stdc
=yes
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.
$ac_ext >&5
5446 ac_cv_header_stdc
=no
5448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5450 if test $ac_cv_header_stdc = yes; then
5451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "memchr" >/dev
/null
2>&1; then
5465 ac_cv_header_stdc
=no
5471 if test $ac_cv_header_stdc = yes; then
5472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5473 cat >conftest.
$ac_ext <<_ACEOF
5476 cat confdefs.h
>>conftest.
$ac_ext
5477 cat >>conftest.
$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 $EGREP "free" >/dev
/null
2>&1; then
5486 ac_cv_header_stdc
=no
5492 if test $ac_cv_header_stdc = yes; then
5493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5494 if test "$cross_compiling" = yes; then
5497 cat >conftest.
$ac_ext <<_ACEOF
5500 cat confdefs.h
>>conftest.
$ac_ext
5501 cat >>conftest.
$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 #if ((' ' & 0x0FF) == 0x020)
5505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5508 # define ISLOWER(c) \
5509 (('a' <= (c) && (c) <= 'i') \
5510 || ('j' <= (c) && (c) <= 'r') \
5511 || ('s' <= (c) && (c) <= 'z'))
5512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5520 for (i = 0; i < 256; i++)
5521 if (XOR (islower (i), ISLOWER (i))
5522 || toupper (i) != TOUPPER (i))
5527 rm -f conftest
$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5540 echo "$as_me: program exited with status $ac_status" >&5
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.
$ac_ext >&5
5545 ac_cv_header_stdc
=no
5547 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5551 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5552 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5553 if test $ac_cv_header_stdc = yes; then
5555 cat >>confdefs.h
<<\_ACEOF
5556 #define STDC_HEADERS 1
5561 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5562 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5563 if test "${ac_cv_header_time+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 cat >conftest.
$ac_ext <<_ACEOF
5569 cat confdefs.h
>>conftest.
$ac_ext
5570 cat >>conftest.
$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5573 #include <sys/time.h>
5579 if ((struct tm *) 0)
5585 rm -f conftest.
$ac_objext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5587 (eval $ac_compile) 2>conftest.er1
5589 grep -v '^ *+' conftest.er1
>conftest.err
5591 cat conftest.err
>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } &&
5594 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; } &&
5600 { ac_try
='test -s conftest.$ac_objext'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
5606 ac_cv_header_time
=yes
5608 echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.
$ac_ext >&5
5611 ac_cv_header_time
=no
5613 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5616 echo "${ECHO_T}$ac_cv_header_time" >&6
5617 if test $ac_cv_header_time = yes; then
5619 cat >>confdefs.h
<<\_ACEOF
5620 #define TIME_WITH_SYS_TIME 1
5625 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5626 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5627 if test "${ac_cv_header_stdbool_h+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 cat >conftest.
$ac_ext <<_ACEOF
5633 cat confdefs.h
>>conftest.
$ac_ext
5634 cat >>conftest.
$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <stdbool.h>
5645 rm -f conftest.
$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647 (eval $ac_compile) 2>conftest.er1
5649 grep -v '^ *+' conftest.er1
>conftest.err
5651 cat conftest.err
>&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try
='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_header_stdbool_h
=yes
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.
$ac_ext >&5
5671 ac_cv_header_stdbool_h
=no
5673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5675 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5676 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5677 if test $ac_cv_header_stdbool_h = yes; then
5679 cat >>confdefs.h
<<\_ACEOF
5680 #define HAVE_STDBOOL_H 1
5685 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5686 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5687 if test "${gcc_cv_header_string+set}" = set; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 cat >conftest.
$ac_ext <<_ACEOF
5693 cat confdefs.h
>>conftest.
$ac_ext
5694 cat >>conftest.
$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5697 #include <strings.h>
5706 rm -f conftest.
$ac_objext
5707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708 (eval $ac_compile) 2>conftest.er1
5710 grep -v '^ *+' conftest.er1
>conftest.err
5712 cat conftest.err
>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; } &&
5721 { ac_try
='test -s conftest.$ac_objext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 gcc_cv_header_string
=yes
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5732 gcc_cv_header_string
=no
5734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5736 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5737 echo "${ECHO_T}$gcc_cv_header_string" >&6
5738 if test $gcc_cv_header_string = yes; then
5740 cat >>confdefs.h
<<\_ACEOF
5741 #define STRING_WITH_STRINGS 1
5746 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5747 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5748 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 cat >conftest.
$ac_ext <<_ACEOF
5754 cat confdefs.h
>>conftest.
$ac_ext
5755 cat >>conftest.
$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 #include <sys/types.h>
5758 #include <sys/wait.h>
5760 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5771 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; } &&
5791 { ac_try
='test -s conftest.$ac_objext'
5792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }; }; then
5797 ac_cv_header_sys_wait_h
=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.
$ac_ext >&5
5802 ac_cv_header_sys_wait_h
=no
5804 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5806 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5807 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5808 if test $ac_cv_header_sys_wait_h = yes; then
5810 cat >>confdefs.h
<<\_ACEOF
5811 #define HAVE_SYS_WAIT_H 1
5837 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5838 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5839 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5840 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_header" >&5
5844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.
$ac_ext <<_ACEOF
5851 cat confdefs.h
>>conftest.
$ac_ext
5852 cat >>conftest.
$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <$ac_header>
5856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1
>conftest.err
5861 cat conftest.err
>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } >/dev
/null
; then
5864 if test -s conftest.err
; then
5865 ac_cpp_err
=$ac_c_preproc_warn_flag
5866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5873 if test -z "$ac_cpp_err"; then
5874 eval "$as_ac_Header=yes"
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 eval "$as_ac_Header=no"
5881 rm -f conftest.err conftest.
$ac_ext
5883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5886 cat >>confdefs.h
<<_ACEOF
5887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894 # Check for thread headers.
5895 echo "$as_me:$LINENO: checking for thread.h" >&5
5896 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5897 if test "${ac_cv_header_thread_h+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5911 grep -v '^ *+' conftest.er1
>conftest.err
5913 cat conftest.err
>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } >/dev
/null
; then
5916 if test -s conftest.err
; then
5917 ac_cpp_err
=$ac_c_preproc_warn_flag
5918 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5925 if test -z "$ac_cpp_err"; then
5926 ac_cv_header_thread_h
=yes
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.
$ac_ext >&5
5931 ac_cv_header_thread_h
=no
5933 rm -f conftest.err conftest.
$ac_ext
5935 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5936 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5937 if test $ac_cv_header_thread_h = yes; then
5943 echo "$as_me:$LINENO: checking for pthread.h" >&5
5944 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5945 if test "${ac_cv_header_pthread_h+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 cat >conftest.
$ac_ext <<_ACEOF
5951 cat confdefs.h
>>conftest.
$ac_ext
5952 cat >>conftest.
$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <pthread.h>
5956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5957 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5959 grep -v '^ *+' conftest.er1
>conftest.err
5961 cat conftest.err
>&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } >/dev
/null
; then
5964 if test -s conftest.err
; then
5965 ac_cpp_err
=$ac_c_preproc_warn_flag
5966 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5973 if test -z "$ac_cpp_err"; then
5974 ac_cv_header_pthread_h
=yes
5976 echo "$as_me: failed program was:" >&5
5977 sed 's/^/| /' conftest.
$ac_ext >&5
5979 ac_cv_header_pthread_h
=no
5981 rm -f conftest.err conftest.
$ac_ext
5983 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5984 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5985 if test $ac_cv_header_pthread_h = yes; then
5992 # These tests can't be done till we know if we have limits.h.
5993 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5994 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5995 if test "${gcc_cv_decl_char_bit+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5998 cat >conftest.
$ac_ext <<_ACEOF
6001 cat confdefs.h
>>conftest.
$ac_ext
6002 cat >>conftest.
$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 #ifdef HAVE_LIMITS_H
6011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6012 $EGREP "found" >/dev
/null
2>&1; then
6013 gcc_cv_decl_char_bit
=yes
6015 gcc_cv_decl_char_bit
=no
6021 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6022 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6023 if test $gcc_cv_decl_char_bit = no
; then
6024 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6025 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6026 if test "${gcc_cv_c_nbby+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 while test $i -lt 65; do
6032 cat >conftest.
$ac_ext <<_ACEOF
6035 cat confdefs.h
>>conftest.
$ac_ext
6036 cat >>conftest.
$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6043 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6044 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6050 rm -f conftest.
$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>conftest.er1
6054 grep -v '^ *+' conftest.er1
>conftest.err
6056 cat conftest.err
>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } &&
6059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; } &&
6065 { ac_try
='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 gcc_cv_c_nbby
=$i; break
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.
$ac_ext >&5
6077 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6080 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6083 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6084 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6085 if test $gcc_cv_c_nbby = failed
; then
6086 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6087 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6088 { (exit 1); exit 1; }; }
6091 cat >>confdefs.h
<<_ACEOF
6092 #define CHAR_BIT $gcc_cv_c_nbby
6097 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6098 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6099 if test "${ac_cv_c_bigendian+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 ac_cv_c_bigendian
=unknown
6103 # See if sys/param.h defines the BYTE_ORDER macro.
6104 cat >conftest.
$ac_ext <<_ACEOF
6107 cat confdefs.h
>>conftest.
$ac_ext
6108 cat >>conftest.
$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <sys/types.h>
6111 #include <sys/param.h>
6116 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6123 rm -f conftest.
$ac_objext
6124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6125 (eval $ac_compile) 2>conftest.er1
6127 grep -v '^ *+' conftest.er1
>conftest.err
6129 cat conftest.err
>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try
='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 # It does; now see whether it defined to BIG_ENDIAN or not.
6145 cat >conftest.
$ac_ext <<_ACEOF
6148 cat confdefs.h
>>conftest.
$ac_ext
6149 cat >>conftest.
$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <sys/types.h>
6152 #include <sys/param.h>
6157 #if BYTE_ORDER != BIG_ENDIAN
6164 rm -f conftest.
$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>conftest.er1
6168 grep -v '^ *+' conftest.er1
>conftest.err
6170 cat conftest.err
>&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); } &&
6173 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; } &&
6179 { ac_try
='test -s conftest.$ac_objext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_c_bigendian
=yes
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6190 ac_cv_c_bigendian
=no
6192 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.
$ac_ext >&5
6198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6199 if test $ac_cv_c_bigendian = unknown
; then
6200 if test "$cross_compiling" = yes; then
6201 echo $ac_n "cross-compiling... " 2>&6
6203 cat >conftest.
$ac_ext <<_ACEOF
6206 cat confdefs.h
>>conftest.
$ac_ext
6207 cat >>conftest.
$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6210 /* Are we little or big endian? From Harbison&Steele. */
6214 char c[sizeof (long)];
6217 exit (u.c[sizeof (long) - 1] == 1);
6220 rm -f conftest
$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_c_bigendian
=no
6233 echo "$as_me: program exited with status $ac_status" >&5
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.
$ac_ext >&5
6238 ac_cv_c_bigendian
=yes
6240 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6245 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6246 if test $ac_cv_c_bigendian = unknown
; then
6247 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6248 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6250 cat >conftest.c
<<EOF
6251 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6252 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6253 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6254 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6255 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6256 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6257 int main() { _ascii (); _ebcdic (); return 0; }
6259 if test -f conftest.c
; then
6260 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6261 if test `grep -l BIGenDianSyS conftest.o` ; then
6262 echo $ac_n ' big endian probe OK, ' 1>&6
6263 ac_cv_c_bigendian
=yes
6265 if test `grep -l LiTTleEnDian conftest.o` ; then
6266 echo $ac_n ' little endian probe OK, ' 1>&6
6267 if test $ac_cv_c_bigendian = yes ; then
6268 ac_cv_c_bigendian
=unknown
;
6270 ac_cv_c_bigendian
=no
6273 echo $ac_n 'guessing bigendian ... ' >&6
6276 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6277 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6279 if test $ac_cv_c_bigendian = yes; then
6281 cat >>confdefs.h
<<\_ACEOF
6282 #define WORDS_BIGENDIAN 1
6286 cat >>confdefs.h
<<\_ACEOF
6287 #define HOST_WORDS_BIG_ENDIAN 1
6295 cat >>confdefs.h
<<_ACEOF
6296 #define BYTEORDER $BYTEORDER
6299 if test $ac_cv_c_bigendian = unknown
; then
6300 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6301 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6302 { (exit 1); exit 1; }; }
6310 # Stage specific cflags for build.
6314 if test x
$GCC = xyes
6316 stage1_cflags
="-Wa,-J"
6322 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6323 # sources; use -no-cpp-precomp to get to GNU cpp.
6324 # Apple's GCC has bugs in designated initializer handling, so disable
6326 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6331 # These libraries may be used by collect2.
6332 # We may need a special search path to get them linked.
6333 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6334 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6335 if test "${gcc_cv_collect2_libs+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 for libs
in '' -lld -lmld \
6340 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6341 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6344 cat >conftest.
$ac_ext <<_ACEOF
6347 cat confdefs.h
>>conftest.
$ac_ext
6348 cat >>conftest.
$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6366 rm -f conftest.
$ac_objext conftest
$ac_exeext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6368 (eval $ac_link) 2>conftest.er1
6370 grep -v '^ *+' conftest.er1
>conftest.err
6372 cat conftest.err
>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; } &&
6381 { ac_try
='test -s conftest$ac_exeext'
6382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); }; }; then
6387 gcc_cv_collect2_libs
="$libs"; break
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.
$ac_ext >&5
6393 rm -f conftest.err conftest.
$ac_objext \
6394 conftest
$ac_exeext conftest.
$ac_ext
6397 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6399 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6400 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6401 case $gcc_cv_collect2_libs in
6403 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6407 # When building Ada code on Alpha, we need exc_resume which is usually in
6408 # -lexc. So test for it.
6411 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6412 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6413 if test "${ac_cv_search_exc_resume+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 ac_func_search_save_LIBS
=$LIBS
6417 ac_cv_search_exc_resume
=no
6418 cat >conftest.
$ac_ext <<_ACEOF
6421 cat confdefs.h
>>conftest.
$ac_ext
6422 cat >>conftest.
$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6440 rm -f conftest.
$ac_objext conftest
$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1
>conftest.err
6446 cat conftest.err
>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try
='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_search_exc_resume
="none required"
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.
$ac_ext >&5
6467 rm -f conftest.err conftest.
$ac_objext \
6468 conftest
$ac_exeext conftest.
$ac_ext
6469 if test "$ac_cv_search_exc_resume" = no
; then
6470 for ac_lib
in exc
; do
6471 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6472 cat >conftest.
$ac_ext <<_ACEOF
6475 cat confdefs.h
>>conftest.
$ac_ext
6476 cat >>conftest.
$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6479 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6494 rm -f conftest.
$ac_objext conftest
$ac_exeext
6495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6498 grep -v '^ *+' conftest.er1
>conftest.err
6500 cat conftest.err
>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try
='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_search_exc_resume
="-l$ac_lib"
6518 echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.
$ac_ext >&5
6522 rm -f conftest.err conftest.
$ac_objext \
6523 conftest
$ac_exeext conftest.
$ac_ext
6526 LIBS
=$ac_func_search_save_LIBS
6528 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6529 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6530 if test "$ac_cv_search_exc_resume" != no
; then
6531 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6539 # Some systems put ldexp and frexp in libm instead of libc; assume
6540 # they're both in the same place. jcf-dump needs them.
6543 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6544 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6545 if test "${ac_cv_search_ldexp+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_func_search_save_LIBS
=$LIBS
6549 ac_cv_search_ldexp
=no
6550 cat >conftest.
$ac_ext <<_ACEOF
6553 cat confdefs.h
>>conftest.
$ac_ext
6554 cat >>conftest.
$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6572 rm -f conftest.
$ac_objext conftest
$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>conftest.er1
6576 grep -v '^ *+' conftest.er1
>conftest.err
6578 cat conftest.err
>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
6581 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; } &&
6587 { ac_try
='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_search_ldexp
="none required"
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.
$ac_ext >&5
6599 rm -f conftest.err conftest.
$ac_objext \
6600 conftest
$ac_exeext conftest.
$ac_ext
6601 if test "$ac_cv_search_ldexp" = no
; then
6603 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6604 cat >conftest.
$ac_ext <<_ACEOF
6607 cat confdefs.h
>>conftest.
$ac_ext
6608 cat >>conftest.
$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6626 rm -f conftest.
$ac_objext conftest
$ac_exeext
6627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6628 (eval $ac_link) 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } &&
6635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try
='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_search_ldexp
="-l$ac_lib"
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.
$ac_ext >&5
6654 rm -f conftest.err conftest.
$ac_objext \
6655 conftest
$ac_exeext conftest.
$ac_ext
6658 LIBS
=$ac_func_search_save_LIBS
6660 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6661 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6662 if test "$ac_cv_search_ldexp" != no
; then
6663 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6671 # Use <inttypes.h> only if it exists,
6672 # doesn't clash with <sys/types.h>, and declares intmax_t.
6673 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6674 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6675 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 cat >conftest.
$ac_ext <<_ACEOF
6681 cat confdefs.h
>>conftest.
$ac_ext
6682 cat >>conftest.
$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/types.h>
6685 #include <inttypes.h>
6694 rm -f conftest.
$ac_objext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696 (eval $ac_compile) 2>conftest.er1
6698 grep -v '^ *+' conftest.er1
>conftest.err
6700 cat conftest.err
>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try
='test -s conftest.$ac_objext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 gcc_cv_header_inttypes_h
=yes
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.
$ac_ext >&5
6720 gcc_cv_header_inttypes_h
=no
6722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6725 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6726 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6727 if test $gcc_cv_header_inttypes_h = yes; then
6729 cat >>confdefs.h
<<\_ACEOF
6730 #define HAVE_INTTYPES_H 1
6761 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6762 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6763 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6764 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6767 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6768 echo "$as_me:$LINENO: checking for $ac_func" >&5
6769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6770 if eval "test \"\${$as_ac_var+set}\" = set"; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6781 #define $ac_func innocuous_$ac_func
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func (); below.
6785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6786 <limits.h> exists even on freestanding compilers. */
6789 # include <limits.h>
6791 # include <assert.h>
6796 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6804 /* The GNU C library defines this for functions which it implements
6805 to always fail with ENOSYS. Some functions are actually named
6806 something starting with __ and the normal name is an alias. */
6807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6810 char (*f) () = $ac_func;
6819 return f != $ac_func;
6824 rm -f conftest.
$ac_objext conftest
$ac_exeext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6826 (eval $ac_link) 2>conftest.er1
6828 grep -v '^ *+' conftest.er1
>conftest.err
6830 cat conftest.err
>&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } &&
6833 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); }; } &&
6839 { ac_try
='test -s conftest$ac_exeext'
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 eval "$as_ac_var=yes"
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.
$ac_ext >&5
6850 eval "$as_ac_var=no"
6852 rm -f conftest.err conftest.
$ac_objext \
6853 conftest
$ac_exeext conftest.
$ac_ext
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6857 if test `eval echo '${'$as_ac_var'}'` = yes; then
6858 cat >>confdefs.h
<<_ACEOF
6859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6866 if test x
$ac_cv_func_mbstowcs = xyes
; then
6867 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6868 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6869 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test "$cross_compiling" = yes; then
6873 gcc_cv_func_mbstowcs_works
=yes
6875 cat >conftest.
$ac_ext <<_ACEOF
6878 cat confdefs.h
>>conftest.
$ac_ext
6879 cat >>conftest.
$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6888 rm -f conftest
$ac_exeext
6889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 gcc_cv_func_mbstowcs_works
=yes
6901 echo "$as_me: program exited with status $ac_status" >&5
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6906 gcc_cv_func_mbstowcs_works
=no
6908 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6911 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6912 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6913 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6915 cat >>confdefs.h
<<\_ACEOF
6916 #define HAVE_WORKING_MBSTOWCS 1
6922 echo "$as_me:$LINENO: checking for ssize_t" >&5
6923 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6924 if test "${ac_cv_type_ssize_t+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6939 if (sizeof (ssize_t))
6945 rm -f conftest.
$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>conftest.er1
6949 grep -v '^ *+' conftest.er1
>conftest.err
6951 cat conftest.err
>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } &&
6954 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); }; } &&
6960 { ac_try
='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_type_ssize_t
=yes
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.
$ac_ext >&5
6971 ac_cv_type_ssize_t
=no
6973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6975 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6977 if test $ac_cv_type_ssize_t = yes; then
6981 cat >>confdefs.h
<<_ACEOF
6988 # Try to determine the array type of the second argument of getgroups
6989 # for the target system (int or gid_t).
6990 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6991 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6992 if test "${ac_cv_type_uid_t+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 cat >conftest.
$ac_ext <<_ACEOF
6998 cat confdefs.h
>>conftest.
$ac_ext
6999 cat >>conftest.
$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <sys/types.h>
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "uid_t" >/dev
/null
2>&1; then
7006 ac_cv_type_uid_t
=yes
7013 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7014 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7015 if test $ac_cv_type_uid_t = no
; then
7017 cat >>confdefs.h
<<\_ACEOF
7022 cat >>confdefs.h
<<\_ACEOF
7028 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7029 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7030 if test "${ac_cv_type_getgroups+set}" = set; then
7031 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 if test "$cross_compiling" = yes; then
7034 ac_cv_type_getgroups
=cross
7036 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 /* Thanks to Mike Rendell for this test. */
7043 #include <sys/types.h>
7046 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7053 union { gid_t gval; long lval; } val;
7056 for (i = 0; i < NGID; i++)
7057 gidset[i] = val.gval;
7058 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7060 /* Exit non-zero if getgroups seems to require an array of ints. This
7061 happens when gid_t is short but getgroups modifies an array of ints. */
7062 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7065 rm -f conftest
$ac_exeext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067 (eval $ac_link) 2>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then
7076 ac_cv_type_getgroups
=gid_t
7078 echo "$as_me: program exited with status $ac_status" >&5
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.
$ac_ext >&5
7083 ac_cv_type_getgroups
=int
7085 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7087 if test $ac_cv_type_getgroups = cross
; then
7088 cat >conftest.
$ac_ext <<_ACEOF
7091 cat confdefs.h
>>conftest.
$ac_ext
7092 cat >>conftest.
$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7099 ac_cv_type_getgroups
=gid_t
7101 ac_cv_type_getgroups
=int
7107 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7108 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7110 cat >>confdefs.h
<<_ACEOF
7111 #define GETGROUPS_T $ac_cv_type_getgroups
7115 if test "${target}" = "${build}"; then
7116 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7119 # This condition may need some tweaking. It should include all
7120 # targets where the array type of the second argument of getgroups
7121 # is int and the type of gid_t is not equivalent to int.
7122 *-*-sunos* |
*-*-ultrix*)
7123 TARGET_GETGROUPS_T
=int
7126 TARGET_GETGROUPS_T
=gid_t
7132 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7133 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7134 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 if test "$cross_compiling" = yes; then
7138 gcc_cv_func_printf_ptr
=no
7140 cat >conftest.
$ac_ext <<_ACEOF
7143 cat confdefs.h
>>conftest.
$ac_ext
7144 cat >>conftest.
$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7151 char *p = buf, *q = NULL;
7152 sprintf(buf, "%p", p);
7153 sscanf(buf, "%p", &q);
7157 rm -f conftest
$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 gcc_cv_func_printf_ptr
=yes
7170 echo "$as_me: program exited with status $ac_status" >&5
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.
$ac_ext >&5
7175 gcc_cv_func_printf_ptr
=no
7177 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7179 rm -f core core.
* *.core
7181 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7182 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7183 if test $gcc_cv_func_printf_ptr = yes ; then
7185 cat >>confdefs.h
<<\_ACEOF
7186 #define HAVE_PRINTF_PTR 1
7191 if test $ac_cv_header_sys_mman_h != yes \
7192 ||
test $ac_cv_func_mmap != yes; then
7193 gcc_cv_func_mmap_file
=no
7194 gcc_cv_func_mmap_dev_zero
=no
7195 gcc_cv_func_mmap_anon
=no
7197 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7198 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7199 if test "${gcc_cv_func_mmap_file+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 # Add a system to this blacklist if
7203 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7204 # memory area containing the same data that you'd get if you applied
7205 # read() to the same fd. The only system known to have a problem here
7206 # is VMS, where text files have record structure.
7209 gcc_cv_func_mmap_file
=no
;;
7211 gcc_cv_func_mmap_file
=yes;;
7214 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7215 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7216 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7217 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7218 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 # Add a system to this blacklist if it has mmap() but /dev/zero
7222 # does not exist, or if mmapping /dev/zero does not give anonymous
7223 # zeroed pages with both the following properties:
7224 # 1. If you map N consecutive pages in with one call, and then
7225 # unmap any subset of those pages, the pages that were not
7226 # explicitly unmapped remain accessible.
7227 # 2. If you map two adjacent blocks of memory and then unmap them
7228 # both at once, they must both go away.
7229 # Systems known to be in this category are Windows (all variants),
7232 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7233 gcc_cv_func_mmap_dev_zero
=no
;;
7235 gcc_cv_func_mmap_dev_zero
=yes;;
7238 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7239 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7241 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7242 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7243 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7244 if test "${gcc_cv_decl_map_anon+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7254 #include <sys/mman.h>
7257 #ifndef MAP_ANONYMOUS
7258 #define MAP_ANONYMOUS MAP_ANON
7264 int n = MAP_ANONYMOUS;
7269 rm -f conftest.
$ac_objext
7270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7271 (eval $ac_compile) 2>conftest.er1
7273 grep -v '^ *+' conftest.er1
>conftest.err
7275 cat conftest.err
>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try
='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 gcc_cv_decl_map_anon
=yes
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.
$ac_ext >&5
7295 gcc_cv_decl_map_anon
=no
7297 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7299 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7300 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7302 if test $gcc_cv_decl_map_anon = no
; then
7303 gcc_cv_func_mmap_anon
=no
7305 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7306 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7307 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7311 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7312 # doesn't give anonymous zeroed pages with the same properties listed
7313 # above for use of /dev/zero.
7314 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7316 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7317 gcc_cv_func_mmap_anon
=no
;;
7319 gcc_cv_func_mmap_anon
=yes;;
7322 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7323 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7327 if test $gcc_cv_func_mmap_file = yes; then
7329 cat >>confdefs.h
<<\_ACEOF
7330 #define HAVE_MMAP_FILE 1
7334 if test $gcc_cv_func_mmap_dev_zero = yes; then
7336 cat >>confdefs.h
<<\_ACEOF
7337 #define HAVE_MMAP_DEV_ZERO 1
7341 if test $gcc_cv_func_mmap_anon = yes; then
7343 cat >>confdefs.h
<<\_ACEOF
7344 #define HAVE_MMAP_ANON 1
7352 # Under VMS, vfork works very differently than on Unix. The standard test
7353 # won't work, and it isn't easily adaptable. It makes more sense to
7355 ac_cv_func_vfork_works
=yes
7358 echo "$as_me:$LINENO: checking for pid_t" >&5
7359 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7360 if test "${ac_cv_type_pid_t+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 cat >conftest.
$ac_ext <<_ACEOF
7366 cat confdefs.h
>>conftest.
$ac_ext
7367 cat >>conftest.
$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 $ac_includes_default
7381 rm -f conftest.
$ac_objext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } &&
7390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; } &&
7396 { ac_try
='test -s conftest.$ac_objext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_type_pid_t
=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.
$ac_ext >&5
7409 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7412 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7413 if test $ac_cv_type_pid_t = yes; then
7417 cat >>confdefs.h
<<_ACEOF
7425 for ac_header
in unistd.h vfork.h
7427 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_header" >&5
7429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.
$ac_ext <<_ACEOF
7436 cat confdefs.h
>>conftest.
$ac_ext
7437 cat >>conftest.
$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <$ac_header>
7441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7442 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7444 grep -v '^ *+' conftest.er1
>conftest.err
7446 cat conftest.err
>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } >/dev
/null
; then
7449 if test -s conftest.err
; then
7450 ac_cpp_err
=$ac_c_preproc_warn_flag
7451 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7458 if test -z "$ac_cpp_err"; then
7459 eval "$as_ac_Header=yes"
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.
$ac_ext >&5
7464 eval "$as_ac_Header=no"
7466 rm -f conftest.err conftest.
$ac_ext
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7471 cat >>confdefs.h
<<_ACEOF
7472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7480 for ac_func
in fork vfork
7482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7483 echo "$as_me:$LINENO: checking for $ac_func" >&5
7484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7485 if eval "test \"\${$as_ac_var+set}\" = set"; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cat >conftest.
$ac_ext <<_ACEOF
7491 cat confdefs.h
>>conftest.
$ac_ext
7492 cat >>conftest.
$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7496 #define $ac_func innocuous_$ac_func
7498 /* System header to define __stub macros and hopefully few prototypes,
7499 which can conflict with char $ac_func (); below.
7500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7501 <limits.h> exists even on freestanding compilers. */
7504 # include <limits.h>
7506 # include <assert.h>
7511 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7519 /* The GNU C library defines this for functions which it implements
7520 to always fail with ENOSYS. Some functions are actually named
7521 something starting with __ and the normal name is an alias. */
7522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7525 char (*f) () = $ac_func;
7534 return f != $ac_func;
7539 rm -f conftest.
$ac_objext conftest
$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541 (eval $ac_link) 2>conftest.er1
7543 grep -v '^ *+' conftest.er1
>conftest.err
7545 cat conftest.err
>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try
='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7560 eval "$as_ac_var=yes"
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.
$ac_ext >&5
7565 eval "$as_ac_var=no"
7567 rm -f conftest.err conftest.
$ac_objext \
7568 conftest
$ac_exeext conftest.
$ac_ext
7570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7572 if test `eval echo '${'$as_ac_var'}'` = yes; then
7573 cat >>confdefs.h
<<_ACEOF
7574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7580 if test "x$ac_cv_func_fork" = xyes
; then
7581 echo "$as_me:$LINENO: checking for working fork" >&5
7582 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7583 if test "${ac_cv_func_fork_works+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 if test "$cross_compiling" = yes; then
7587 ac_cv_func_fork_works
=cross
7589 cat >conftest.
$ac_ext <<_ACEOF
7590 /* By Ruediger Kuhlmann. */
7591 #include <sys/types.h>
7593 # include <unistd.h>
7595 /* Some systems only have a dummy stub for fork() */
7603 rm -f conftest
$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_func_fork_works
=yes
7616 echo "$as_me: program exited with status $ac_status" >&5
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.
$ac_ext >&5
7621 ac_cv_func_fork_works
=no
7623 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7626 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7627 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7630 ac_cv_func_fork_works
=$ac_cv_func_fork
7632 if test "x$ac_cv_func_fork_works" = xcross
; then
7634 *-*-amigaos* |
*-*-msdosdjgpp*)
7635 # Override, as these systems have only a dummy fork() stub
7636 ac_cv_func_fork_works
=no
7639 ac_cv_func_fork_works
=yes
7642 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7643 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7645 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7646 if test "x$ac_cv_func_vfork" = xyes
; then
7647 echo "$as_me:$LINENO: checking for working vfork" >&5
7648 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7649 if test "${ac_cv_func_vfork_works+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 if test "$cross_compiling" = yes; then
7653 ac_cv_func_vfork_works
=cross
7655 cat >conftest.
$ac_ext <<_ACEOF
7658 cat confdefs.h
>>conftest.
$ac_ext
7659 cat >>conftest.
$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 /* Thanks to Paul Eggert for this test. */
7664 #include <sys/types.h>
7665 #include <sys/stat.h>
7666 #include <sys/wait.h>
7668 # include <unistd.h>
7673 /* On some sparc systems, changes by the child to local and incoming
7674 argument registers are propagated back to the parent. The compiler
7675 is told about this with #include <vfork.h>, but some compilers
7676 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7677 static variable whose address is put into a register that is
7678 clobbered by the vfork. */
7681 sparc_address_test (int arg)
7683 sparc_address_test (arg) int arg;
7704 pid_t parent = getpid ();
7707 sparc_address_test (0);
7712 /* Here is another test for sparc vfork register problems. This
7713 test uses lots of local variables, at least as many local
7714 variables as main has allocated so far including compiler
7715 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7716 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7717 reuse the register of parent for one of the local variables,
7718 since it will think that parent can't possibly be used any more
7719 in this routine. Assigning to the local variable will thus
7720 munge parent in the parent process. */
7722 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7723 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7724 /* Convince the compiler that p..p7 are live; otherwise, it might
7725 use the same hardware register for all 8 local variables. */
7726 if (p != p1 || p != p2 || p != p3 || p != p4
7727 || p != p5 || p != p6 || p != p7)
7730 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7731 from child file descriptors. If the child closes a descriptor
7732 before it execs or exits, this munges the parent's descriptor
7733 as well. Test for this by closing stdout in the child. */
7734 _exit(close(fileno(stdout)) != 0);
7739 while (wait(&status) != child)
7742 /* Was there some problem with vforking? */
7745 /* Did the child fail? (This shouldn't happen.) */
7748 /* Did the vfork/compiler bug occur? */
7749 || parent != getpid()
7751 /* Did the file descriptor bug occur? */
7752 || fstat(fileno(stdout), &st) != 0
7757 rm -f conftest
$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_func_vfork_works
=yes
7770 echo "$as_me: program exited with status $ac_status" >&5
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.
$ac_ext >&5
7775 ac_cv_func_vfork_works
=no
7777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7780 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7781 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7784 if test "x$ac_cv_func_fork_works" = xcross
; then
7785 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7786 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7787 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7790 if test "x$ac_cv_func_vfork_works" = xyes
; then
7792 cat >>confdefs.h
<<\_ACEOF
7793 #define HAVE_WORKING_VFORK 1
7798 cat >>confdefs.h
<<\_ACEOF
7803 if test "x$ac_cv_func_fork_works" = xyes
; then
7805 cat >>confdefs.h
<<\_ACEOF
7806 #define HAVE_WORKING_FORK 1
7814 am_cv_lib_iconv_ldpath
=
7816 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7817 if test "${with_libiconv_prefix+set}" = set; then
7818 withval
="$with_libiconv_prefix"
7820 for dir
in `echo "$withval" | tr : ' '`; do
7821 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7822 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7828 for ac_header
in iconv.h
7830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7831 echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cat >conftest.
$ac_ext <<_ACEOF
7839 cat confdefs.h
>>conftest.
$ac_ext
7840 cat >>conftest.
$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7842 #include <$ac_header>
7844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7845 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7847 grep -v '^ *+' conftest.er1
>conftest.err
7849 cat conftest.err
>&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } >/dev
/null
; then
7852 if test -s conftest.err
; then
7853 ac_cpp_err
=$ac_c_preproc_warn_flag
7854 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7861 if test -z "$ac_cpp_err"; then
7862 eval "$as_ac_Header=yes"
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.
$ac_ext >&5
7867 eval "$as_ac_Header=no"
7869 rm -f conftest.err conftest.
$ac_ext
7871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7874 cat >>confdefs.h
<<_ACEOF
7875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7882 echo "$as_me:$LINENO: checking for iconv" >&5
7883 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7884 if test "${am_cv_func_iconv+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 am_cv_func_iconv
="no, consider installing GNU libiconv"
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7901 iconv_t cd = iconv_open("","");
7902 iconv(cd,NULL,NULL,NULL,NULL);
7908 rm -f conftest.
$ac_objext conftest
$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1
>conftest.err
7914 cat conftest.err
>&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try
='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 am_cv_func_iconv
=yes
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.
$ac_ext >&5
7935 rm -f conftest.err conftest.
$ac_objext \
7936 conftest
$ac_exeext conftest.
$ac_ext
7937 if test "$am_cv_func_iconv" != yes; then
7938 am_save_LIBS
="$LIBS"
7939 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7951 iconv_t cd = iconv_open("","");
7952 iconv(cd,NULL,NULL,NULL,NULL);
7958 rm -f conftest.
$ac_objext conftest
$ac_exeext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; } &&
7973 { ac_try
='test -s conftest$ac_exeext'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; }; then
7980 am_cv_func_iconv
=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7986 rm -f conftest.err conftest.
$ac_objext \
7987 conftest
$ac_exeext conftest.
$ac_ext
7988 LIBS
="$am_save_LIBS"
7992 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7993 echo "${ECHO_T}$am_cv_func_iconv" >&6
7994 if test "$am_cv_func_iconv" = yes; then
7996 cat >>confdefs.h
<<\_ACEOF
7997 #define HAVE_ICONV 1
8000 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8001 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8002 if test "${am_cv_proto_iconv+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8019 #if defined(__STDC__) || defined(__cplusplus)
8020 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8033 rm -f conftest.
$ac_objext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8035 (eval $ac_compile) 2>conftest.er1
8037 grep -v '^ *+' conftest.er1
>conftest.err
8039 cat conftest.err
>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try
='test -s conftest.$ac_objext'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
8054 am_cv_proto_iconv_arg1
=""
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.
$ac_ext >&5
8059 am_cv_proto_iconv_arg1
="const"
8061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 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);"
8065 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8066 echo "$as_me:$LINENO: result: ${ac_t:-
8067 }$am_cv_proto_iconv" >&5
8068 echo "${ECHO_T}${ac_t:-
8069 }$am_cv_proto_iconv" >&6
8071 cat >>confdefs.h
<<_ACEOF
8072 #define ICONV_CONST $am_cv_proto_iconv_arg1
8077 if test "$am_cv_lib_iconv" = yes; then
8078 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8082 # Until we have in-tree GNU iconv:
8087 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8088 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8089 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 cat >conftest.
$ac_ext <<_ACEOF
8095 cat confdefs.h
>>conftest.
$ac_ext
8096 cat >>conftest.
$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8107 rm -f conftest.
$ac_objext conftest
$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>conftest.er1
8111 grep -v '^ *+' conftest.er1
>conftest.err
8113 cat conftest.err
>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } &&
8116 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; } &&
8122 { ac_try
='test -s conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 am_cv_val_LC_MESSAGES
=yes
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.
$ac_ext >&5
8133 am_cv_val_LC_MESSAGES
=no
8135 rm -f conftest.err conftest.
$ac_objext \
8136 conftest
$ac_exeext conftest.
$ac_ext
8138 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8139 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8140 if test $am_cv_val_LC_MESSAGES = yes; then
8142 cat >>confdefs.h
<<\_ACEOF
8143 #define HAVE_LC_MESSAGES 1
8149 # We will need to find libiberty.h and ansidecl.h
8150 saved_CFLAGS
="$CFLAGS"
8151 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8152 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8153 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8154 fprintf_unlocked strstr errno snprintf vasprintf \
8155 malloc realloc calloc free
basename getopt
clock
8157 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8158 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8159 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8160 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 cat >conftest.
$ac_ext <<_ACEOF
8166 cat confdefs.h
>>conftest.
$ac_ext
8167 cat >>conftest.
$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8170 #define $ac_tr_decl 1
8172 #include "ansidecl.h"
8179 char *(*pfn) = (char *(*)) $ac_func ;
8185 rm -f conftest.
$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187 (eval $ac_compile) 2>conftest.er1
8189 grep -v '^ *+' conftest.er1
>conftest.err
8191 cat conftest.err
>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; } &&
8200 { ac_try
='test -s conftest.$ac_objext'
8201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; }; then
8206 eval "gcc_cv_have_decl_$ac_func=yes"
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.
$ac_ext >&5
8211 eval "gcc_cv_have_decl_$ac_func=no"
8213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8217 echo "$as_me:$LINENO: result: yes" >&5
8218 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8219 #define $ac_tr_decl 1
8223 echo "$as_me:$LINENO: result: no" >&5
8224 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8225 #define $ac_tr_decl 0
8231 if test x
= y
; then
8233 cat >>confdefs.h
<<\_ACEOF
8234 #define HAVE_DECL_GETENV 1
8237 cat >>confdefs.h
<<\_ACEOF
8238 #define HAVE_DECL_ATOL 1
8241 cat >>confdefs.h
<<\_ACEOF
8242 #define HAVE_DECL_SBRK 1
8245 cat >>confdefs.h
<<\_ACEOF
8246 #define HAVE_DECL_ABORT 1
8249 cat >>confdefs.h
<<\_ACEOF
8250 #define HAVE_DECL_ATOF 1
8253 cat >>confdefs.h
<<\_ACEOF
8254 #define HAVE_DECL_GETCWD 1
8257 cat >>confdefs.h
<<\_ACEOF
8258 #define HAVE_DECL_GETWD 1
8262 cat >>confdefs.h
<<\_ACEOF
8263 #define HAVE_DECL_STRSIGNAL 1
8266 cat >>confdefs.h
<<\_ACEOF
8267 #define HAVE_DECL_PUTC_UNLOCKED 1
8270 cat >>confdefs.h
<<\_ACEOF
8271 #define HAVE_DECL_FPUTS_UNLOCKED 1
8274 cat >>confdefs.h
<<\_ACEOF
8275 #define HAVE_DECL_FWRITE_UNLOCKED 1
8279 cat >>confdefs.h
<<\_ACEOF
8280 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8283 cat >>confdefs.h
<<\_ACEOF
8284 #define HAVE_DECL_STRSTR 1
8287 cat >>confdefs.h
<<\_ACEOF
8288 #define HAVE_DECL_ERRNO 1
8291 cat >>confdefs.h
<<\_ACEOF
8292 #define HAVE_DECL_SNPRINTF 1
8295 cat >>confdefs.h
<<\_ACEOF
8296 #define HAVE_DECL_VASPRINTF 1
8300 cat >>confdefs.h
<<\_ACEOF
8301 #define HAVE_DECL_MALLOC 1
8304 cat >>confdefs.h
<<\_ACEOF
8305 #define HAVE_DECL_REALLOC 1
8308 cat >>confdefs.h
<<\_ACEOF
8309 #define HAVE_DECL_CALLOC 1
8312 cat >>confdefs.h
<<\_ACEOF
8313 #define HAVE_DECL_FREE 1
8316 cat >>confdefs.h
<<\_ACEOF
8317 #define HAVE_DECL_BASENAME 1
8320 cat >>confdefs.h
<<\_ACEOF
8321 #define HAVE_DECL_GETOPT 1
8324 cat >>confdefs.h
<<\_ACEOF
8325 #define HAVE_DECL_CLOCK 1
8330 for ac_func
in getrlimit setrlimit getrusage
8332 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8333 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8334 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8335 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8338 cat >conftest.
$ac_ext <<_ACEOF
8341 cat confdefs.h
>>conftest.
$ac_ext
8342 cat >>conftest.
$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 #define $ac_tr_decl 1
8347 #include "ansidecl.h"
8349 #ifdef HAVE_SYS_RESOURCE_H
8350 #include <sys/resource.h>
8358 char *(*pfn) = (char *(*)) $ac_func ;
8364 rm -f conftest.
$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1
>conftest.err
8370 cat conftest.err
>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try
='test -s conftest.$ac_objext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 eval "gcc_cv_have_decl_$ac_func=yes"
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.
$ac_ext >&5
8390 eval "gcc_cv_have_decl_$ac_func=no"
8392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8395 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8398 #define $ac_tr_decl 1
8402 echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8404 #define $ac_tr_decl 0
8410 if test x
= y
; then
8412 cat >>confdefs.h
<<\_ACEOF
8413 #define HAVE_DECL_GETRLIMIT 1
8416 cat >>confdefs.h
<<\_ACEOF
8417 #define HAVE_DECL_SETRLIMIT 1
8420 cat >>confdefs.h
<<\_ACEOF
8421 #define HAVE_DECL_GETRUSAGE 1
8426 cat >conftest.
$ac_ext <<_ACEOF
8429 cat confdefs.h
>>conftest.
$ac_ext
8430 cat >>conftest.
$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8433 #include "ansidecl.h"
8435 #ifdef HAVE_SYS_RESOURCE_H
8436 #include <sys/resource.h>
8447 rm -f conftest.
$ac_objext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8449 (eval $ac_compile) 2>conftest.er1
8451 grep -v '^ *+' conftest.er1
>conftest.err
8453 cat conftest.err
>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } &&
8456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try
='test -s conftest.$ac_objext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.
$ac_ext >&5
8474 cat >>confdefs.h
<<\_ACEOF
8479 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 for ac_func
in ldgetname
8483 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8484 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8485 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8486 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 cat >conftest.
$ac_ext <<_ACEOF
8492 cat confdefs.h
>>conftest.
$ac_ext
8493 cat >>conftest.
$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8496 #define $ac_tr_decl 1
8498 #include "ansidecl.h"
8509 char *(*pfn) = (char *(*)) $ac_func ;
8515 rm -f conftest.
$ac_objext
8516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>conftest.er1
8519 grep -v '^ *+' conftest.er1
>conftest.err
8521 cat conftest.err
>&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; } &&
8530 { ac_try
='test -s conftest.$ac_objext'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; }; then
8536 eval "gcc_cv_have_decl_$ac_func=yes"
8538 echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.
$ac_ext >&5
8541 eval "gcc_cv_have_decl_$ac_func=no"
8543 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8546 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8547 echo "$as_me:$LINENO: result: yes" >&5
8548 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8549 #define $ac_tr_decl 1
8553 echo "$as_me:$LINENO: result: no" >&5
8554 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8555 #define $ac_tr_decl 0
8561 if test x
= y
; then
8563 cat >>confdefs.h
<<\_ACEOF
8564 #define HAVE_DECL_LDGETNAME 1
8569 for ac_func
in times
8571 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8573 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8574 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 cat >conftest.
$ac_ext <<_ACEOF
8580 cat confdefs.h
>>conftest.
$ac_ext
8581 cat >>conftest.
$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8584 #define $ac_tr_decl 1
8586 #include "ansidecl.h"
8588 #ifdef HAVE_SYS_TIMES_H
8589 #include <sys/times.h>
8597 char *(*pfn) = (char *(*)) $ac_func ;
8603 rm -f conftest.
$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1
>conftest.err
8609 cat conftest.err
>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); }; } &&
8618 { ac_try
='test -s conftest.$ac_objext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 eval "gcc_cv_have_decl_$ac_func=yes"
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.
$ac_ext >&5
8629 eval "gcc_cv_have_decl_$ac_func=no"
8631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8634 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8635 echo "$as_me:$LINENO: result: yes" >&5
8636 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8637 #define $ac_tr_decl 1
8641 echo "$as_me:$LINENO: result: no" >&5
8642 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8643 #define $ac_tr_decl 0
8649 if test x
= y
; then
8651 cat >>confdefs.h
<<\_ACEOF
8652 #define HAVE_DECL_TIMES 1
8657 # More time-related stuff.
8658 echo "$as_me:$LINENO: checking for struct tms" >&5
8659 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8660 if test "${ac_cv_struct_tms+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 cat >conftest.
$ac_ext <<_ACEOF
8667 cat confdefs.h
>>conftest.
$ac_ext
8668 cat >>conftest.
$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8671 #include "ansidecl.h"
8673 #ifdef HAVE_SYS_TIMES_H
8674 #include <sys/times.h>
8685 rm -f conftest.
$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8689 grep -v '^ *+' conftest.er1
>conftest.err
8691 cat conftest.err
>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; } &&
8700 { ac_try
='test -s conftest.$ac_objext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_struct_tms
=yes
8708 echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.
$ac_ext >&5
8713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8716 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8717 if test $ac_cv_struct_tms = yes; then
8719 cat >>confdefs.h
<<\_ACEOF
8720 #define HAVE_STRUCT_TMS 1
8725 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8726 # revisit after autoconf 2.50.
8727 echo "$as_me:$LINENO: checking for clock_t" >&5
8728 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8729 if test "${gcc_cv_type_clock_t+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 cat >conftest.
$ac_ext <<_ACEOF
8736 cat confdefs.h
>>conftest.
$ac_ext
8737 cat >>conftest.
$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8740 #include "ansidecl.h"
8751 rm -f conftest.
$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1
>conftest.err
8757 cat conftest.err
>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; } &&
8766 { ac_try
='test -s conftest.$ac_objext'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; }; then
8772 gcc_cv_type_clock_t
=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.
$ac_ext >&5
8777 gcc_cv_type_clock_t
=no
8779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8781 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8782 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8783 if test $gcc_cv_type_clock_t = yes; then
8785 cat >>confdefs.h
<<\_ACEOF
8786 #define HAVE_CLOCK_T 1
8791 echo "$as_me:$LINENO: checking for uchar" >&5
8792 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8793 if test "${gcc_cv_type_uchar+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8796 cat >conftest.
$ac_ext <<_ACEOF
8799 cat confdefs.h
>>conftest.
$ac_ext
8800 cat >>conftest.
$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8803 #include "ansidecl.h"
8809 if ((uchar *)0) return 0;
8810 if (sizeof(uchar)) return 0;
8815 rm -f conftest.
$ac_objext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8817 (eval $ac_compile) 2>conftest.er1
8819 grep -v '^ *+' conftest.er1
>conftest.err
8821 cat conftest.err
>&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; } &&
8830 { ac_try
='test -s conftest.$ac_objext'
8831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_cv_type_uchar
=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8843 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8846 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8847 if test $ac_cv_type_uchar = yes; then
8849 cat >>confdefs.h
<<\_ACEOF
8850 #define HAVE_UCHAR 1
8855 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8856 CFLAGS
="$saved_CFLAGS"
8858 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8859 if test "${enable_initfini_array+set}" = set; then
8860 enableval
="$enable_initfini_array"
8864 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8865 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8866 if test "${gcc_cv_initfini_array+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 if test "$cross_compiling" = yes; then
8870 gcc_cv_initfini_array
=no
8872 cat >conftest.
$ac_ext <<_ACEOF
8875 cat confdefs.h
>>conftest.
$ac_ext
8876 cat >>conftest.
$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8880 int main (void) { return x; }
8881 int foo (void) { x = 0; }
8882 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8884 rm -f conftest
$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 gcc_cv_initfini_array
=yes
8897 echo "$as_me: program exited with status $ac_status" >&5
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.
$ac_ext >&5
8902 gcc_cv_initfini_array
=no
8904 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8907 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8908 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8909 enable_initfini_array
=$gcc_cv_initfini_array
8912 if test $enable_initfini_array = yes; then
8914 cat >>confdefs.h
<<\_ACEOF
8915 #define HAVE_INITFINI_ARRAY 1
8920 # mkdir takes a single argument on some systems.
8921 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8922 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8923 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 cat >conftest.
$ac_ext <<_ACEOF
8929 cat confdefs.h
>>conftest.
$ac_ext
8930 cat >>conftest.
$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8933 #include <sys/types.h>
8934 #ifdef HAVE_SYS_STAT_H
8935 # include <sys/stat.h>
8937 #ifdef HAVE_UNISTD_H
8938 # include <unistd.h>
8940 #ifdef HAVE_DIRECT_H
8941 # include <direct.h>
8951 rm -f conftest.
$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953 (eval $ac_compile) 2>conftest.er1
8955 grep -v '^ *+' conftest.er1
>conftest.err
8957 cat conftest.err
>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } &&
8960 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try
='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 gcc_cv_mkdir_takes_one_arg
=no
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 gcc_cv_mkdir_takes_one_arg
=yes
8979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8981 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8982 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8983 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8985 cat >>confdefs.h
<<\_ACEOF
8986 #define MKDIR_TAKES_ONE_ARG 1
8998 # With Setjmp/Longjmp based exception handling.
8999 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9000 if test "${enable_sjlj_exceptions+set}" = set; then
9001 enableval
="$enable_sjlj_exceptions"
9002 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
9004 cat >>confdefs.h
<<_ACEOF
9005 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9010 if test x
$host = x
$target; then
9011 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9012 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9013 if test "${ac_cv_lib_unwind_main+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_check_lib_save_LIBS
=$LIBS
9017 LIBS
="-lunwind $LIBS"
9018 cat >conftest.
$ac_ext <<_ACEOF
9021 cat confdefs.h
>>conftest.
$ac_ext
9022 cat >>conftest.
$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9034 rm -f conftest.
$ac_objext conftest
$ac_exeext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>conftest.er1
9038 grep -v '^ *+' conftest.er1
>conftest.err
9040 cat conftest.err
>&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } &&
9043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try
='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_lib_unwind_main
=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.
$ac_ext >&5
9060 ac_cv_lib_unwind_main
=no
9062 rm -f conftest.err conftest.
$ac_objext \
9063 conftest
$ac_exeext conftest.
$ac_ext
9064 LIBS
=$ac_check_lib_save_LIBS
9066 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9067 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9068 if test $ac_cv_lib_unwind_main = yes; then
9069 use_libunwind_default
=yes
9071 use_libunwind_default
=no
9075 use_libunwind_default
=no
9077 # Use libunwind based exception handling.
9078 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9079 if test "${enable_libunwind_exceptions+set}" = set; then
9080 enableval
="$enable_libunwind_exceptions"
9081 use_libunwind_exceptions
=$enableval
9083 use_libunwind_exceptions
=$use_libunwind_default
9085 if test x
"$use_libunwind_exceptions" = xyes
; then
9087 cat >>confdefs.h
<<\_ACEOF
9088 #define USE_LIBUNWIND_EXCEPTIONS 1
9093 # --------------------------------------------------------
9094 # Build, host, and target specific configuration fragments
9095 # --------------------------------------------------------
9097 # Collect build-machine-specific information.
9098 .
${srcdir}/config.build
9100 # Collect host-machine-specific information.
9101 .
${srcdir}/config.
host
9105 # Collect target-machine-specific information.
9106 .
${srcdir}/config.gcc
9108 extra_objs
="${host_extra_objs} ${extra_objs}"
9109 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
9111 # Default the target-machine variables that were not explicitly set.
9112 if test x
"$tm_file" = x
9113 then tm_file
=$cpu_type/$cpu_type.h
; fi
9115 if test x
"$extra_headers" = x
9116 then extra_headers
=; fi
9118 if test x
$md_file = x
9119 then md_file
=$cpu_type/$cpu_type.md
; fi
9121 if test x
$out_file = x
9122 then out_file
=$cpu_type/$cpu_type.c
; fi
9124 if test x
"$tmake_file" = x
9125 then tmake_file
=$cpu_type/t-
$cpu_type
9128 if test x
"$dwarf2" = xyes
9129 then tm_file
="$tm_file tm-dwarf2.h"
9132 # Say what files are being used for the output code and MD file.
9133 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9134 echo "Using \`$srcdir/config/$md_file' as machine description file."
9136 # If any of the xm_file variables contain nonexistent files, warn
9137 # about them and drop them.
9140 for x
in $build_xm_file; do
9141 if test -f $srcdir/config
/$x
9143 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9144 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9150 for x
in $host_xm_file; do
9151 if test -f $srcdir/config
/$x
9153 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9154 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9160 for x
in $xm_file; do
9161 if test -f $srcdir/config
/$x
9163 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9164 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9170 for f
in $tm_file; do
9173 if test $count = ax
; then
9174 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9176 echo "Using the following target machine macro files:"
9177 for f
in $tm_file; do
9178 echo " $srcdir/config/$f"
9182 if test x
$need_64bit_hwint = xyes
; then
9184 cat >>confdefs.h
<<\_ACEOF
9185 #define NEED_64BIT_HOST_WIDE_INT 1
9191 for f
in $host_xm_file; do
9194 if test $count = a
; then
9196 elif test $count = ax
; then
9197 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9199 echo "Using the following host machine macro files:"
9200 for f
in $host_xm_file; do
9201 echo " $srcdir/config/$f"
9204 echo "Using ${out_host_hook_obj} for host machine hooks."
9206 if test "$host_xm_file" != "$build_xm_file"; then
9208 for f
in $build_xm_file; do
9211 if test $count = a
; then
9213 elif test $count = ax
; then
9214 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9216 echo "Using the following build machine macro files:"
9217 for f
in $build_xm_file; do
9218 echo " $srcdir/config/$f"
9227 # Check if a valid thread package
9228 case ${enable_threads_flag} in
9231 target_thread_file
='single'
9235 target_thread_file
='single'
9237 aix | dce | gnat | irix | posix | rtems | \
9238 single | solaris | vxworks | win32
)
9239 target_thread_file
=${enable_threads_flag}
9242 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9247 if test x
${thread_file} = x
; then
9248 # No thread file set by target-specific clauses in config.gcc,
9249 # so use file chosen by default logic above
9250 thread_file
=${target_thread_file}
9253 # Make gthr-default.h if we have a thread file.
9255 if test $thread_file != single
; then
9256 rm -f gthr-default.h
9257 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9258 gthread_flags
=-DHAVE_GTHR_DEFAULT
9266 if test x
$enable___cxa_atexit = xyes || \
9267 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9268 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9269 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9270 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 cat >conftest.
$ac_ext <<_ACEOF
9276 cat confdefs.h
>>conftest.
$ac_ext
9277 cat >>conftest.
$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define __cxa_atexit innocuous___cxa_atexit
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char __cxa_atexit (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9289 # include <limits.h>
9291 # include <assert.h>
9296 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char __cxa_atexit ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9310 char (*f) () = __cxa_atexit;
9319 return f != __cxa_atexit;
9324 rm -f conftest.
$ac_objext conftest
$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9328 grep -v '^ *+' conftest.er1
>conftest.err
9330 cat conftest.err
>&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try
='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_func___cxa_atexit
=yes
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.
$ac_ext >&5
9350 ac_cv_func___cxa_atexit
=no
9352 rm -f conftest.err conftest.
$ac_objext \
9353 conftest
$ac_exeext conftest.
$ac_ext
9355 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9356 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9357 if test $ac_cv_func___cxa_atexit = yes; then
9359 cat >>confdefs.h
<<\_ACEOF
9360 #define DEFAULT_USE_CXA_ATEXIT 1
9364 echo "__cxa_atexit can't be enabled on this target"
9369 # Look for a file containing extra machine modes.
9370 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9371 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9374 cat >>confdefs.h
<<_ACEOF
9375 #define EXTRA_MODES_FILE "config/$extra_modes"
9380 # auto-host.h is the file containing items generated by autoconf and is
9381 # the first file included by config.h.
9382 # If host=build, it is correct to have bconfig include auto-host.h
9383 # as well. If host!=build, we are in error and need to do more
9384 # work to find out the build config parameters.
9385 if test x
$host = x
$build
9387 build_auto
=auto-host.h
9390 # We create a subdir, then run autoconf in the subdir.
9391 # To prevent recursion we set host and build for the new
9392 # invocation of configure to the build for this invocation
9399 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9400 *) realsrcdir
=..
/${srcdir};;
9402 saved_CFLAGS
="${CFLAGS}"
9403 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9404 ${realsrcdir}/configure \
9405 --enable-languages=${enable_languages-all} \
9406 --target=$target_alias --host=$build_alias --build=$build_alias
9407 CFLAGS
="${saved_CFLAGS}"
9409 # We just finished tests for the build machine, so rename
9410 # the file auto-build.h in the gcc directory.
9411 mv auto-host.h ..
/auto-build.h
9414 build_auto
=auto-build.h
9415 FORBUILD
=..
/${build_subdir}
9419 tm_file
="${tm_file} defaults.h"
9420 tm_p_file
="${tm_p_file} tm-preds.h"
9421 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9422 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9423 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9424 # put this back in temporarily.
9425 xm_file
="ansidecl.h ${xm_file}"
9431 # Get the version trigger filename from the toplevel
9432 if test "${with_gcc_version_trigger+set}" = set; then
9433 gcc_version_trigger
=$with_gcc_version_trigger
9435 gcc_version_trigger
=${srcdir}/version.c
9437 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9438 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9440 # Compile in configure arguments.
9441 if test -f configargs.h
; then
9442 # Being re-configured.
9443 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9444 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9446 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9449 # Double all backslashes and backslash all quotes to turn
9450 # gcc_config_arguments into a C string.
9451 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9452 $gcc_config_arguments
9454 gcc_config_arguments_str
=`cat conftest.out`
9457 cat > configargs.h
<<EOF
9458 /* Generated automatically. */
9459 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9460 static const char thread_model[] = "$thread_file";
9462 static const struct {
9463 const char *name, *value;
9464 } configure_default_options[] = $configure_default_options;
9467 # Internationalization
9469 VERSION
="$gcc_version"
9473 # If we haven't got the data from the intl directory,
9474 # assume NLS is disabled.
9482 if test -f ..
/intl
/config.intl
; then
9483 . ..
/intl
/config.intl
9485 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9486 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9487 if test x
"$USE_NLS" != xyes
; then
9488 echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6
9491 echo "$as_me:$LINENO: result: yes" >&5
9492 echo "${ECHO_T}yes" >&6
9494 cat >>confdefs.h
<<\_ACEOF
9495 #define ENABLE_NLS 1
9499 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9500 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9501 # Look for .po and .gmo files in the source directory.
9504 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9505 # If there aren't any .gmo files the shell will give us the
9506 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9508 case "$cat" in *\
**)
9511 # The quadruple backslash is collapsed to a double backslash
9512 # by the backticks, then collapsed again by the double quotes,
9513 # leaving us with one backslash in the sed expression (right
9514 # before the dot that mustn't act as a wildcard).
9515 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9516 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9517 # The user is allowed to set LINGUAS to a list of languages to
9518 # install catalogs for. If it's empty that means "all of them."
9519 if test "x$LINGUAS" = x
; then
9520 CATALOGS
="$CATALOGS $cat"
9521 XLINGUAS
="$XLINGUAS $lang"
9523 case "$LINGUAS" in *$lang*)
9524 CATALOGS
="$CATALOGS $cat"
9525 XLINGUAS
="$XLINGUAS $lang"
9531 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9532 echo "${ECHO_T}$LINGUAS" >&6
9535 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9536 # -liconv on the link line twice.
9537 case "$LIBINTL" in *$LIBICONV*)
9541 # Windows32 Registry support for specifying GCC installation paths.
9542 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9543 if test "${enable_win32_registry+set}" = set; then
9544 enableval
="$enable_win32_registry"
9548 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9549 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9550 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9551 if test "x$enable_win32_registry" != xno
; then
9553 cat >>confdefs.h
<<\_ACEOF
9554 #define ENABLE_WIN32_REGISTRY 1
9557 echo "$as_me:$LINENO: result: yes" >&5
9558 echo "${ECHO_T}yes" >&6
9559 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9560 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9561 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 ac_func_search_save_LIBS
=$LIBS
9565 ac_cv_search_RegOpenKeyExA
=no
9566 cat >conftest.
$ac_ext <<_ACEOF
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9579 char RegOpenKeyExA ();
9588 rm -f conftest.
$ac_objext conftest
$ac_exeext
9589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>conftest.er1
9592 grep -v '^ *+' conftest.er1
>conftest.err
9594 cat conftest.err
>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; } &&
9603 { ac_try
='test -s conftest$ac_exeext'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; }; then
9609 ac_cv_search_RegOpenKeyExA
="none required"
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.
$ac_ext >&5
9615 rm -f conftest.err conftest.
$ac_objext \
9616 conftest
$ac_exeext conftest.
$ac_ext
9617 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9618 for ac_lib
in advapi32
; do
9619 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9620 cat >conftest.
$ac_ext <<_ACEOF
9623 cat confdefs.h
>>conftest.
$ac_ext
9624 cat >>conftest.
$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9627 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9633 char RegOpenKeyExA ();
9642 rm -f conftest.
$ac_objext conftest
$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1
>conftest.err
9648 cat conftest.err
>&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); }; } &&
9657 { ac_try
='test -s conftest$ac_exeext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.
$ac_ext >&5
9670 rm -f conftest.err conftest.
$ac_objext \
9671 conftest
$ac_exeext conftest.
$ac_ext
9674 LIBS
=$ac_func_search_save_LIBS
9676 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9677 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9678 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9679 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9684 echo "$as_me:$LINENO: result: no" >&5
9685 echo "${ECHO_T}no" >&6
9688 # Check if user specified a different registry key.
9689 case "x${enable_win32_registry}" in
9692 gcc_cv_win32_registry_key
="$VERSION"
9695 # no registry lookup.
9696 gcc_cv_win32_registry_key
=''
9699 # user-specified key.
9700 gcc_cv_win32_registry_key
="$enable_win32_registry"
9704 if test "x$enable_win32_registry" != xno
; then
9705 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9706 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9708 cat >>confdefs.h
<<_ACEOF
9709 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9712 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9713 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9718 # Get an absolute path to the GCC top-level source directory
9719 holddir
=`${PWDCMD-pwd}`
9721 topdir
=`${PWDCMD-pwd}`
9724 # Conditionalize the makefile for this host machine.
9726 for f
in ${host_xmake_file}
9728 if test -f ${srcdir}/config
/$f
9730 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9734 # Conditionalize the makefile for this target machine.
9736 for f
in ${tmake_file}
9738 if test -f ${srcdir}/config
/$f
9740 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9743 tmake_file
="${tmake_file_}"
9745 symbolic_link
='ln -s'
9747 # If the host doesn't support symlinks, modify CC in
9748 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9749 # Otherwise, we can use "CC=$(CC)".
9751 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9753 cc_set_by_configure
="\$(CC)"
9754 quoted_cc_set_by_configure
="\$(CC)"
9755 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9756 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9759 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9761 symbolic_link
="cp -p"
9765 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9766 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9767 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9768 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9772 out_object_file
=`basename $out_file .c`.o
9776 for f
in $tm_file; do
9779 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9780 tm_include_list
="${tm_include_list} $f"
9783 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9784 tm_include_list
="${tm_include_list} config/$f"
9791 for f
in $tm_p_file; do
9794 tm_p_file_list
="${tm_p_file_list} $f"
9795 tm_p_include_list
="${tm_p_include_list} $f"
9798 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9799 tm_p_include_list
="${tm_p_include_list} config/$f"
9805 for f
in $xm_file; do
9808 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9809 xm_include_list
="${xm_include_list} $f"
9812 xm_file_list
="${xm_file_list} $f"
9813 xm_include_list
="${xm_include_list} $f"
9816 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9817 xm_include_list
="${xm_include_list} config/$f"
9823 host_xm_include_list
=
9824 for f
in $host_xm_file; do
9827 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9828 host_xm_include_list
="${host_xm_include_list} $f"
9831 host_xm_file_list
="${host_xm_file_list} $f"
9832 host_xm_include_list
="${host_xm_include_list} $f"
9835 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9836 host_xm_include_list
="${host_xm_include_list} config/$f"
9842 for f
in $build_xm_file; do
9845 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9846 build_xm_include_list
="${build_xm_include_list} $f"
9848 auto-build.h | auto-host.h
)
9849 build_xm_file_list
="${build_xm_file_list} $f"
9850 build_xm_include_list
="${build_xm_include_list} $f"
9853 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9854 build_xm_include_list
="${build_xm_include_list} config/$f"
9859 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9860 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9863 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9864 if test x
$host != x
$target
9866 CROSS
="-DCROSS_COMPILE"
9868 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9869 case "$host","$target" in
9870 # Darwin crosses can use the host system's libraries and headers,
9871 # because of the fat library support. Of course, it must be the
9872 # same version of Darwin on both sides. Allow the user to
9873 # just say --target=foo-darwin without a version number to mean
9874 # "the version on this system".
9875 *-*-darwin*,*-*-darwin*)
9876 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9877 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9878 if test $hostos = $targetos -o $targetos = darwin
; then
9880 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9885 i?
86-*-*,x86_64-
*-* \
9886 | powerpc
*-*-*,powerpc64
*-*-*)
9887 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9889 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9890 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9891 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9894 # If this is a cross-compiler that does not
9895 # have its own set of headers then define
9898 # If this is using newlib, without having the headers available now,
9899 # then define inhibit_libc in LIBGCC2_CFLAGS.
9900 # This prevents libgcc2 from containing any code which requires libc
9903 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9904 test x
$with_newlib = xyes
; } &&
9905 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9906 inhibit_libc
=-Dinhibit_libc
9910 # When building gcc with a cross-compiler, we need to adjust things so
9911 # that the generator programs are still built with the native compiler.
9912 # Also, we cannot run fixincludes or fix-header.
9914 # These are the normal (build=host) settings:
9916 BUILD_PREFIX_1
=ignore-
9917 CC_FOR_BUILD
='$(CC)'
9918 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9920 STMP_FIXINC
=stmp-fixinc
9922 # Possibly disable fixproto, on a per-target basis.
9923 case ${use_fixproto} in
9928 STMP_FIXPROTO
=stmp-fixproto
9933 # And these apply if build != host, or we are generating coverage data
9934 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9937 BUILD_PREFIX_1
=build-
9938 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9940 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9946 # Expand extra_headers to include complete path.
9947 # This substitutes for lots of t-* files.
9949 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9950 for file in ${extra_headers} ; do
9951 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9954 # Add a definition of USE_COLLECT2 if system wants one.
9955 case $use_collect2 in
9956 no
) use_collect2
= ;;
9959 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9960 xm_defines
="${xm_defines} USE_COLLECT2"
9964 # ---------------------------
9965 # Assembler & linker features
9966 # ---------------------------
9968 # Identify the assembler which will work hand-in-glove with the newly
9969 # built GCC, so that we can examine its features. This is the assembler
9970 # which will be driven by the driver program.
9972 # If build != host, and we aren't building gas in-tree, we identify a
9973 # build->target assembler and hope that it will have the same features
9974 # as the host->target assembler we'll be using.
9975 echo "$as_me:$LINENO: checking what assembler to use" >&5
9976 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9979 gcc_cv_gas_major_version
=
9980 gcc_cv_gas_minor_version
=
9981 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9982 if test -x "$DEFAULT_ASSEMBLER"; then
9983 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9984 elif test -x "$AS"; then
9986 elif test -x as
$host_exeext; then
9987 # Build using assembler in the current directory.
9988 gcc_cv_as
=.
/as
$host_exeext
9989 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9990 && test -f ..
/gas
/Makefile
; then
9991 # Single tree build which includes gas.
9993 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9994 for f
in $gcc_cv_as_bfd_srcdir/configure \
9995 $gcc_cv_as_gas_srcdir/configure \
9996 $gcc_cv_as_gas_srcdir/configure.
in \
9997 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9998 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9999 if test x
$gcc_cv_gas_version != x
; then
10003 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10004 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10005 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10006 case $gcc_cv_gas_patch_version in
10007 "") gcc_cv_gas_patch_version
="0" ;;
10009 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10010 + $gcc_cv_gas_minor_version \) \* 1000 \
10011 + $gcc_cv_gas_patch_version`
10013 rm -f as
$host_exeext
10014 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
10015 in_tree_gas_is_elf
=no
10016 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
10017 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
10018 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
10020 in_tree_gas_is_elf
=yes
10024 if test "x$gcc_cv_as" = x
; then
10025 # Search the same directories that the installed compiler will
10026 # search. Else we may find the wrong assembler and lose. If we
10027 # do not find a suitable assembler binary, then try the user's
10030 # Also note we have to check MD_EXEC_PREFIX before checking the
10031 # user's path. Unfortunately, there is no good way to get at the
10032 # value of MD_EXEC_PREFIX here. So we do a brute force search
10033 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10034 # to be fixed as part of the make/configure rewrite too.
10036 if test "x$exec_prefix" = xNONE
; then
10037 if test "x$prefix" = xNONE
; then
10038 test_prefix
=/usr
/local
10040 test_prefix
=$prefix
10043 test_prefix
=$exec_prefix
10046 # If the loop below does not find an assembler, then use whatever
10047 # one we can find in the users's path.
10049 if test "x$program_prefix" != xNONE
; then
10050 gcc_cv_as
=${program_prefix}as
$host_exeext
10052 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
10055 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10056 $test_prefix/libexec/gcc/$target_noncanonical \
10057 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10058 /usr/lib/gcc/$target_noncanonical \
10059 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10060 $test_prefix/$target_noncanonical/bin"
10062 if test x
$host = x
$target; then
10063 test_dirs
="$test_dirs \
10068 /bsd43/usr/lib/cmplrs/cc \
10069 /usr/cross64/usr/bin \
10070 /usr/lib/cmplrs/cc \
10071 /sysv/usr/lib/cmplrs/cc \
10072 /svr4/usr/lib/cmplrs/cc \
10076 for dir
in $test_dirs; do
10077 if test -x $dir/as
$host_exeext; then
10078 gcc_cv_as
=$dir/as
$host_exeext
10083 case $in_tree_gas in
10085 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10086 echo "${ECHO_T}\"newly built gas\"" >&6
10089 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10090 echo "${ECHO_T}$gcc_cv_as" >&6
10094 # Identify the linker which will work hand-in-glove with the newly
10095 # built GCC, so that we can examine its features. This is the linker
10096 # which will be driven by the driver program.
10098 # If build != host, and we aren't building gas in-tree, we identify a
10099 # build->target linker and hope that it will have the same features
10100 # as the host->target linker we'll be using.
10101 echo "$as_me:$LINENO: checking what linker to use" >&5
10102 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10105 gcc_cv_gld_major_version
=
10106 gcc_cv_gld_minor_version
=
10107 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10108 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10109 if test -x "$DEFAULT_LINKER"; then
10110 gcc_cv_ld
="$DEFAULT_LINKER"
10111 elif test -x "$LD_FOR_TARGET"; then
10112 gcc_cv_ld
="$LD_FOR_TARGET"
10113 elif test -x "$LD" && test x
$host = x
$target; then
10115 elif test -x collect-ld
$host_exeext; then
10116 # Build using linker in the current directory.
10117 gcc_cv_ld
=.
/collect-ld
$host_exeext
10118 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10119 && test -f ..
/ld
/Makefile
; then
10120 # Single tree build which includes ld.
10122 in_tree_ld_is_elf
=no
10123 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10124 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10125 in_tree_ld_is_elf
=yes
10127 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
10129 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10130 if test x
$gcc_cv_gld_version != x
; then
10134 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10135 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10136 rm -f collect-ld
$host_exeext
10137 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10141 if test "x$gcc_cv_ld" = x
; then
10142 # Search the same directories that the installed compiler will
10143 # search. Else we may find the wrong linker and lose. If we
10144 # do not find a suitable linker binary, then try the user's
10147 # Also note we have to check MD_EXEC_PREFIX before checking the
10148 # user's path. Unfortunately, there is no good way to get at the
10149 # value of MD_EXEC_PREFIX here. So we do a brute force search
10150 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10151 # to be fixed as part of the make/configure rewrite too.
10153 if test "x$exec_prefix" = xNONE
; then
10154 if test "x$prefix" = xNONE
; then
10155 test_prefix
=/usr
/local
10157 test_prefix
=$prefix
10160 test_prefix
=$exec_prefix
10163 # If the loop below does not find an linker, then use whatever
10164 # one we can find in the users's path.
10166 if test "x$program_prefix" != xNONE
; then
10167 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10169 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10172 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10173 $test_prefix/libexec/gcc/$target_noncanonical \
10174 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10175 /usr/lib/gcc/$target_noncanonical \
10176 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10177 $test_prefix/$target_noncanonical/bin"
10179 if test x
$host = x
$target; then
10180 test_dirs
="$test_dirs \
10185 /bsd43/usr/lib/cmplrs/cc \
10186 /usr/cross64/usr/bin \
10187 /usr/lib/cmplrs/cc \
10188 /sysv/usr/lib/cmplrs/cc \
10189 /svr4/usr/lib/cmplrs/cc \
10193 for dir
in $test_dirs; do
10194 if test -x $dir/ld
$host_exeext; then
10195 gcc_cv_ld
=$dir/ld
$host_exeext
10200 case $in_tree_ld in
10202 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10203 echo "${ECHO_T}\"newly built ld\"" >&6
10206 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10207 echo "${ECHO_T}$gcc_cv_ld" >&6
10211 # Figure out what nm we will be using.
10212 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10213 echo "$as_me:$LINENO: checking what nm to use" >&5
10214 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10216 if test -x nm
$host_exeext; then
10217 gcc_cv_nm
=.
/nm
$host_exeext
10218 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10219 && test -f ..
/binutils
/Makefile
; then
10220 # Single tree build which includes binutils.
10222 gcc_cv_nm
=.
/nm
$host_exeext
10223 rm -f nm
$host_exeext
10224 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10225 elif test "x$program_prefix" != xNONE
; then
10226 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10228 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10230 case $in_tree_nm in
10231 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10232 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10233 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10234 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10237 # Figure out what objdump we will be using.
10238 echo "$as_me:$LINENO: checking what objdump to use" >&5
10239 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10241 if test -x objdump
$host_exeext; then
10242 gcc_cv_objdump
=.
/objdump
$host_exeext
10243 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10244 && test -f ..
/binutils
/Makefile
; then
10245 # Single tree build which includes binutils.
10246 in_tree_objdump
=yes
10247 gcc_cv_objdump
=.
/objdump
$host_exeext
10248 rm -f objdump
$host_exeext
10249 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10250 objdump
$host_exeext 2>/dev
/null
10251 elif test "x$program_prefix" != xNONE
; then
10252 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10254 gcc_cv_objdump
=`echo objdump | \
10255 sed "${program_transform_name}"`$host_exeext
10257 case $in_tree_objdump in
10258 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10259 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10260 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10261 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10264 # Figure out what assembler alignment features are present.
10265 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10266 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10267 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 gcc_cv_as_balign_and_p2align
=no
10271 if test $in_tree_gas = yes; then
10272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10273 then gcc_cv_as_balign_and_p2align
=yes
10275 elif test x
$gcc_cv_as != x
; then
10277 .p2align 2' > conftest.s
10278 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }
10285 gcc_cv_as_balign_and_p2align
=yes
10287 echo "configure: failed program was" >&5
10290 rm -f conftest.o conftest.s
10293 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10294 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10295 if test $gcc_cv_as_balign_and_p2align = yes; then
10297 cat >>confdefs.h
<<\_ACEOF
10298 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10303 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10304 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10305 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 gcc_cv_as_max_skip_p2align
=no
10309 if test $in_tree_gas = yes; then
10310 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10311 then gcc_cv_as_max_skip_p2align
=yes
10313 elif test x
$gcc_cv_as != x
; then
10314 echo '.p2align 4,,7' > conftest.s
10315 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }
10322 gcc_cv_as_max_skip_p2align
=yes
10324 echo "configure: failed program was" >&5
10327 rm -f conftest.o conftest.s
10330 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10331 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10332 if test $gcc_cv_as_max_skip_p2align = yes; then
10334 cat >>confdefs.h
<<\_ACEOF
10335 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10340 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10341 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10342 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 gcc_cv_as_subsection_m1
=no
10346 if test $in_tree_gas = yes; then
10347 if test $in_tree_gas_is_elf = yes \
10348 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10349 then gcc_cv_as_subsection_m1
=yes
10351 elif test x
$gcc_cv_as != x
; then
10352 echo 'conftest_label1: .word 0
10354 conftest_label2: .word 0
10355 .previous' > conftest.s
10356 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358 (eval $ac_try) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; }
10363 if test x
$gcc_cv_nm != x
; then
10364 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10365 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10366 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10368 else gcc_cv_as_subsection_m1
=yes
10370 rm -f conftest.nm1 conftest.nm2
10373 echo "configure: failed program was" >&5
10376 rm -f conftest.o conftest.s
10379 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10380 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10381 if test $gcc_cv_as_subsection_m1 = yes; then
10383 cat >>confdefs.h
<<\_ACEOF
10384 #define HAVE_GAS_SUBSECTION_ORDERING 1
10389 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10390 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10391 if test "${gcc_cv_as_weak+set}" = set; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10395 if test $in_tree_gas = yes; then
10396 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10397 then gcc_cv_as_weak
=yes
10399 elif test x
$gcc_cv_as != x
; then
10400 echo ' .weak foobar' > conftest.s
10401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }
10410 echo "configure: failed program was" >&5
10413 rm -f conftest.o conftest.s
10416 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10417 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10418 if test $gcc_cv_as_weak = yes; then
10420 cat >>confdefs.h
<<\_ACEOF
10421 #define HAVE_GAS_WEAK 1
10426 # .hidden needs to be supported in both the assembler and the linker,
10427 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10428 # This is irritatingly difficult to feature test for; we have to check the
10429 # date string after the version number. If we've got an in-tree
10430 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10432 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10433 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10434 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10435 if test "${gcc_cv_as_hidden+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 gcc_cv_as_hidden
=no
10439 if test $in_tree_gas = yes; then
10440 if test $in_tree_gas_is_elf = yes \
10441 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10442 then gcc_cv_as_hidden
=yes
10444 elif test x
$gcc_cv_as != x
; then
10445 echo ' .hidden foobar
10446 foobar:' > conftest.s
10447 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449 (eval $ac_try) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }
10454 gcc_cv_as_hidden
=yes
10456 echo "configure: failed program was" >&5
10459 rm -f conftest.o conftest.s
10462 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10463 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10466 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10467 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10468 if test "${gcc_cv_ld_hidden+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 if test $in_tree_ld = yes ; then
10472 gcc_cv_ld_hidden
=no
10473 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 \
10474 && test $in_tree_ld_is_elf = yes; then
10475 gcc_cv_ld_hidden
=yes
10478 gcc_cv_ld_hidden
=yes
10479 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10480 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10481 ld_vers
=`echo $ld_ver | sed -n \
10482 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10483 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10484 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10485 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10486 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10487 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10488 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'`
10489 if test 0"$ld_date" -lt 20020404; then
10490 if test -n "$ld_date"; then
10491 # If there was date string, but was earlier than 2002-04-04, fail
10492 gcc_cv_ld_hidden
=no
10493 elif test -z "$ld_vers"; then
10494 # If there was no date string nor ld version number, something is wrong
10495 gcc_cv_ld_hidden
=no
10497 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10498 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10499 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10500 test -z "$ld_vers_patch" && ld_vers_patch
=0
10501 if test "$ld_vers_major" -lt 2; then
10502 gcc_cv_ld_hidden
=no
10503 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10504 gcc_cv_ld_hidden
="no"
10505 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10506 gcc_cv_ld_hidden
=no
10511 case "${target}" in
10512 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10513 gcc_cv_ld_hidden
=yes
10516 gcc_cv_ld_hidden
=no
10522 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10523 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10524 libgcc_visibility
=no
10526 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10527 libgcc_visibility
=yes
10529 cat >>confdefs.h
<<\_ACEOF
10530 #define HAVE_GAS_HIDDEN 1
10535 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10536 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10537 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10538 if test "${gcc_cv_as_leb128+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 gcc_cv_as_leb128
=no
10542 if test $in_tree_gas = yes; then
10543 if test $in_tree_gas_is_elf = yes \
10544 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10545 then gcc_cv_as_leb128
=yes
10547 elif test x
$gcc_cv_as != x
; then
10554 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }
10561 # GAS versions before 2.11 do not support uleb128,
10562 # despite appearing to.
10563 # ??? There exists an elf-specific test that will crash
10564 # the assembler. Perhaps it's better to figure out whether
10565 # arbitrary sections are supported and try the test.
10566 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10567 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10568 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10569 as_major
=`echo $as_ver | sed 's/\..*//'`
10570 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10571 if test $as_major -eq 2 && test $as_minor -lt 11
10573 else gcc_cv_as_leb128
=yes
10577 echo "configure: failed program was" >&5
10580 rm -f conftest.o conftest.s
10583 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10584 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10585 if test $gcc_cv_as_leb128 = yes; then
10587 cat >>confdefs.h
<<\_ACEOF
10588 #define HAVE_AS_LEB128 1
10593 # GAS versions up to and including 2.11.0 may mis-optimize
10595 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10596 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10597 if test "${gcc_cv_as_eh_frame+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 gcc_cv_as_eh_frame
=no
10601 if test $in_tree_gas = yes; then
10602 if test $in_tree_gas_is_elf = yes \
10603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10604 then gcc_cv_as_eh_frame
=yes
10606 elif test x
$gcc_cv_as != x
; then
10613 .section .eh_frame,"aw",@progbits
10615 .4byte .LECIE1-.LSCIE1
10629 .4byte .LEFDE1-.LASFDE1
10631 .4byte .LASFDE1-__FRAME_BEGIN__
10638 .LEFDE1:' > conftest.s
10639 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; }
10646 cat > conftest.lit
<<EOF
10647 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10648 0010 01000000 12000000 18000000 00000000 ................
10649 0020 08000000 04080000 0044 .........D
10651 cat > conftest.big
<<EOF
10652 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10653 0010 00000001 00000012 00000018 00000000 ................
10654 0020 00000008 04000000 0844 .........D
10656 # If the assembler didn't choke, and we can objdump,
10657 # and we got the correct data, then succeed.
10658 if test x
$gcc_cv_objdump != x \
10659 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10660 |
tail -3 > conftest.got \
10661 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10662 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10664 gcc_cv_as_eh_frame
=yes
10665 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667 (eval $ac_try) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); }; }; then
10671 gcc_cv_as_eh_frame
=buggy
10673 # Uh oh, what do we do now?
10674 gcc_cv_as_eh_frame
=no
10677 echo "configure: failed program was" >&5
10680 rm -f conftest.o conftest.s
10683 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10684 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10687 if test $gcc_cv_as_eh_frame = buggy
; then
10689 cat >>confdefs.h
<<\_ACEOF
10690 #define USE_AS_TRADITIONAL_FORMAT 1
10695 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10696 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10697 if test "${gcc_cv_as_shf_merge+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 gcc_cv_as_shf_merge
=no
10701 if test $in_tree_gas = yes; then
10702 if test $in_tree_gas_is_elf = yes \
10703 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10704 then gcc_cv_as_shf_merge
=yes
10706 elif test x
$gcc_cv_as != x
; then
10707 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10708 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }
10715 gcc_cv_as_shf_merge
=yes
10717 echo "configure: failed program was" >&5
10720 rm -f conftest.o conftest.s
10723 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10724 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10727 cat >>confdefs.h
<<_ACEOF
10728 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10732 # Thread-local storage - the check is heavily parametrized.
10740 .section ".tdata","awT",@progbits
10743 ldq $27,__tls_get_addr($29) !literal!1
10744 lda $16,foo($29) !tlsgd!1
10745 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10746 ldq $27,__tls_get_addr($29) !literal!2
10747 lda $16,foo($29) !tlsldm!2
10748 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10749 ldq $1,foo($29) !gotdtprel
10750 ldah $2,foo($29) !dtprelhi
10751 lda $3,foo($2) !dtprello
10752 lda $4,foo($29) !dtprel
10753 ldq $1,foo($29) !gottprel
10754 ldah $2,foo($29) !tprelhi
10755 lda $3,foo($2) !tprello
10756 lda $4,foo($29) !tprel'
10759 tls_as_opt
=--fatal-warnings
10763 .section ".tdata","awT",@progbits
10767 leal foo@TLSGD(,%ebx,1), %eax
10768 leal foo@TLSLDM(%ebx), %eax
10769 leal foo@DTPOFF(%eax), %edx
10770 movl foo@GOTTPOFF(%ebx), %eax
10771 subl foo@GOTTPOFF(%ebx), %eax
10772 addl foo@GOTNTPOFF(%ebx), %eax
10773 movl foo@INDNTPOFF, %eax
10774 movl $foo@TPOFF, %eax
10775 subl $foo@TPOFF, %eax
10776 leal foo@NTPOFF(%ecx), %eax'
10779 tls_as_opt
=--fatal-warnings
10783 .section ".tdata","awT",@progbits
10787 leaq foo@TLSGD(%rip), %rdi
10788 leaq foo@TLSLD(%rip), %rdi
10789 leaq foo@DTPOFF(%rax), %rdx
10790 movq foo@GOTTPOFF(%rip), %rax
10791 movq $foo@TPOFF, %rax'
10794 tls_as_opt
=--fatal-warnings
10798 .section ".tdata","awT",@progbits
10801 addl r16 = @ltoff(@dtpmod(foo#)), gp
10802 addl r17 = @ltoff(@dtprel(foo#)), gp
10803 addl r18 = @ltoff(@tprel(foo#)), gp
10804 addl r19 = @dtprel(foo#), gp
10805 adds r21 = @dtprel(foo#), r13
10806 movl r23 = @dtprel(foo#)
10807 addl r20 = @tprel(foo#), gp
10808 adds r22 = @tprel(foo#), r13
10809 movl r24 = @tprel(foo#)'
10812 tls_as_opt
=--fatal-warnings
10816 .section ".tdata","awT",@progbits
10824 addi 3,31,ld0@got@tlsgd
10826 addi 3,31,x1@got@tlsld
10829 addis 9,3,x2@dtprel@ha
10830 addi 9,9,x2@dtprel@l
10831 lwz 9,x3@got@tprel(31)
10834 addis 9,2,x2@tprel@ha
10835 addi 9,9,x2@tprel@l'
10838 tls_as_opt
="-a32 --fatal-warnings"
10842 .section ".tdata","awT",@progbits
10850 addi 3,2,ld0@got@tlsgd
10856 addi 3,2,x1@got@tlsld
10862 addis 9,3,x2@dtprel@ha
10863 addi 9,9,x2@dtprel@l
10866 ld 9,x3@got@dtprel(2)
10872 tls_as_opt
="-a64 --fatal-warnings"
10876 .section ".tdata","awT",@progbits
10883 .long foo@GOTNTPOFF
10884 .long foo@INDNTPOFF
10885 l %r1,foo@GOTNTPOFF(%r12)
10886 l %r1,0(%r1):tls_load:foo
10887 bas %r14,0(%r1,%r13):tls_gdcall:foo
10888 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10891 tls_as_opt
="-m31 --fatal-warnings"
10895 .section ".tdata","awT",@progbits
10902 .quad foo@GOTNTPOFF
10903 lg %r1,foo@GOTNTPOFF(%r12)
10904 larl %r1,foo@INDNTPOFF
10905 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10906 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10909 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10911 sh-
*-* | sh
[34]-*-*)
10913 .section ".tdata","awT",@progbits
10923 tls_as_opt
=--fatal-warnings
10927 sparc
*-sun-solaris2.
*)
10934 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10936 .section ".tdata",#alloc,#write,#tls
10939 sethi %tgd_hi22(foo), %o0
10940 add %o0, %tgd_lo10(foo), %o1
10941 add %l7, %o1, %o0, %tgd_add(foo)
10942 call __tls_get_addr, %tgd_call(foo)
10943 sethi %tldm_hi22(foo), %l1
10944 add %l1, %tldm_lo10(foo), %l2
10945 add %l7, %l2, %o0, %tldm_add(foo)
10946 call __tls_get_addr, %tldm_call(foo)
10947 sethi %tldo_hix22(foo), %l3
10948 xor %l3, %tldo_lox10(foo), %l4
10949 add %o0, %l4, %l5, %tldo_add(foo)
10950 sethi %tie_hi22(foo), %o3
10951 add %o3, %tie_lo10(foo), %o3
10952 ld [%l7 + %o3], %o2, %tie_ld(foo)
10953 add %g7, %o2, %o4, %tie_add(foo)
10954 sethi %tle_hix22(foo), %l1
10955 xor %l1, %tle_lox10(foo), %o5
10956 ld [%g7 + %o5], %o1'
10961 .section ".tdata","awT",@progbits
10964 sethi %tgd_hi22(foo), %o0
10965 add %o0, %tgd_lo10(foo), %o1
10966 add %l7, %o1, %o0, %tgd_add(foo)
10967 call __tls_get_addr, %tgd_call(foo)
10968 sethi %tldm_hi22(foo), %l1
10969 add %l1, %tldm_lo10(foo), %l2
10970 add %l7, %l2, %o0, %tldm_add(foo)
10971 call __tls_get_addr, %tldm_call(foo)
10972 sethi %tldo_hix22(foo), %l3
10973 xor %l3, %tldo_lox10(foo), %l4
10974 add %o0, %l4, %l5, %tldo_add(foo)
10975 sethi %tie_hi22(foo), %o3
10976 add %o3, %tie_lo10(foo), %o3
10977 ld [%l7 + %o3], %o2, %tie_ld(foo)
10978 add %g7, %o2, %o4, %tie_add(foo)
10979 sethi %tle_hix22(foo), %l1
10980 xor %l1, %tle_lox10(foo), %o5
10981 ld [%g7 + %o5], %o1'
10984 tls_as_opt
="-32 --fatal-warnings"
10988 if test -z "$tls_first_major"; then
10989 : # If we don't have a check, assume no support.
10991 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10992 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10993 if test "${gcc_cv_as_tls+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 if test $in_tree_gas = yes; then
10998 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10999 then gcc_cv_as_tls
=yes
11001 elif test x
$gcc_cv_as != x
; then
11002 echo "$conftest_s" > conftest.s
11003 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }
11012 echo "configure: failed program was" >&5
11015 rm -f conftest.o conftest.s
11018 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11019 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11020 if test $gcc_cv_as_tls = yes; then
11022 cat >>confdefs.h
<<\_ACEOF
11023 #define HAVE_AS_TLS 1
11029 # Target-specific assembler checks.
11032 # All TARGET_ABI_OSF targets.
11033 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
11034 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11035 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11036 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 gcc_cv_as_alpha_explicit_relocs
=no
11040 if test $in_tree_gas = yes; then
11041 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11042 then gcc_cv_as_alpha_explicit_relocs
=yes
11044 elif test x
$gcc_cv_as != x
; then
11045 echo ' .set nomacro
11047 extbl $3, $2, $3 !lituse_bytoff!1
11048 ldq $2, a($29) !literal!1
11049 ldq $4, b($29) !literal!2
11050 ldq_u $3, 0($2) !lituse_base!1
11051 ldq $27, f($29) !literal!5
11052 jsr $26, ($27), f !lituse_jsr!5
11053 ldah $29, 0($26) !gpdisp!3
11054 lda $0, c($29) !gprel
11055 ldah $1, d($29) !gprelhigh
11056 lda $1, d($1) !gprellow
11057 lda $29, 0($29) !gpdisp!3' > conftest.s
11058 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }
11065 gcc_cv_as_alpha_explicit_relocs
=yes
11067 echo "configure: failed program was" >&5
11070 rm -f conftest.o conftest.s
11073 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11074 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11075 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11077 cat >>confdefs.h
<<\_ACEOF
11078 #define HAVE_AS_EXPLICIT_RELOCS 1
11085 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11086 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11087 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 gcc_cv_as_cris_no_mul_bug
=no
11091 if test $in_tree_gas = yes; then
11092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11093 then gcc_cv_as_cris_no_mul_bug
=yes
11095 elif test x
$gcc_cv_as != x
; then
11096 echo '.text' > conftest.s
11097 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }
11104 gcc_cv_as_cris_no_mul_bug
=yes
11106 echo "configure: failed program was" >&5
11109 rm -f conftest.o conftest.s
11112 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11113 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11114 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11116 cat >>confdefs.h
<<\_ACEOF
11117 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11124 echo "$as_me:$LINENO: checking assembler for .register" >&5
11125 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11126 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 gcc_cv_as_sparc_register_op
=no
11130 if test x
$gcc_cv_as != x
; then
11131 echo '.register %g2, #scratch' > conftest.s
11132 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; }
11139 gcc_cv_as_sparc_register_op
=yes
11141 echo "configure: failed program was" >&5
11144 rm -f conftest.o conftest.s
11147 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11148 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11149 if test $gcc_cv_as_sparc_register_op = yes; then
11151 cat >>confdefs.h
<<\_ACEOF
11152 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11157 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11158 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11159 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 gcc_cv_as_sparc_relax
=no
11163 if test x
$gcc_cv_as != x
; then
11164 echo '.text' > conftest.s
11165 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }
11172 gcc_cv_as_sparc_relax
=yes
11174 echo "configure: failed program was" >&5
11177 rm -f conftest.o conftest.s
11180 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11181 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11182 if test $gcc_cv_as_sparc_relax = yes; then
11184 cat >>confdefs.h
<<\_ACEOF
11185 #define HAVE_AS_RELAX_OPTION 1
11190 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11191 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11192 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 gcc_cv_as_sparc_ua_pcrel
=no
11196 if test x
$gcc_cv_as != x
; then
11203 .uaword %r_disp32(foo)' > conftest.s
11204 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }
11211 if test x
$gcc_cv_ld != x \
11212 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11213 gcc_cv_as_sparc_ua_pcrel
=yes
11217 echo "configure: failed program was" >&5
11220 rm -f conftest.o conftest.s
11223 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11224 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11225 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11227 cat >>confdefs.h
<<\_ACEOF
11228 #define HAVE_AS_SPARC_UA_PCREL 1
11232 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11233 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11234 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11238 if test x
$gcc_cv_as != x
; then
11242 .uaword %r_disp32(foo)
11243 .byte 0x32, 0x33, 0x34
11247 .skip 4' > conftest.s
11248 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }
11255 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11256 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11257 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11258 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11259 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11260 |
grep 'DISP32' > /dev
/null
2>&1; then
11263 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11268 echo "configure: failed program was" >&5
11271 rm -f conftest.o conftest.s
11274 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11275 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11276 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11278 cat >>confdefs.h
<<\_ACEOF
11279 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11284 fi # unaligned pcrel relocs
11286 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11287 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11288 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 gcc_cv_as_sparc_offsetable_lo10
=no
11292 if test x
$gcc_cv_as != x
; then
11294 or %g1, %lo(ab) + 12, %g1
11295 or %g1, %lo(ab + 12), %g1' > conftest.s
11296 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }
11303 if test x
$gcc_cv_objdump != x \
11304 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11305 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11306 gcc_cv_as_offsetable_lo10
=yes
11309 echo "configure: failed program was" >&5
11312 rm -f conftest.o conftest.s
11315 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11316 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11317 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11319 cat >>confdefs.h
<<\_ACEOF
11320 #define HAVE_AS_OFFSETABLE_LO10 1
11326 i
[34567]86-*-* | x86_64-
*-*)
11327 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11328 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11329 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 gcc_cv_as_ix86_filds_fists
=no
11333 if test $in_tree_gas = yes; then
11334 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11335 then gcc_cv_as_ix86_filds_fists
=yes
11337 elif test x
$gcc_cv_as != x
; then
11338 echo 'filds mem; fists mem' > conftest.s
11339 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }
11346 gcc_cv_as_ix86_filds_fists
=yes
11348 echo "configure: failed program was" >&5
11351 rm -f conftest.o conftest.s
11354 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11355 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11356 if test $gcc_cv_as_ix86_filds_fists = yes; then
11358 cat >>confdefs.h
<<\_ACEOF
11359 #define HAVE_GAS_FILDS_FISTS 1
11364 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11365 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11366 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 gcc_cv_as_ix86_cmov_sun_syntax
=no
11370 if test x
$gcc_cv_as != x
; then
11371 echo 'cmovl.l %edx, %eax' > conftest.s
11372 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }
11379 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11381 echo "configure: failed program was" >&5
11384 rm -f conftest.o conftest.s
11387 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11388 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11389 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11391 cat >>confdefs.h
<<\_ACEOF
11392 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11397 # This one is used unconditionally by i386.[ch]; it is to be defined
11398 # to 1 if the feature is present, 0 otherwise.
11399 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11400 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11401 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 gcc_cv_as_ix86_gotoff_in_data
=no
11405 if test $in_tree_gas = yes; then
11406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11407 then gcc_cv_as_ix86_gotoff_in_data
=yes
11409 elif test x
$gcc_cv_as != x
; then
11414 .long .L0@GOTOFF' > conftest.s
11415 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }
11422 gcc_cv_as_ix86_gotoff_in_data
=yes
11424 echo "configure: failed program was" >&5
11427 rm -f conftest.o conftest.s
11430 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11431 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11434 cat >>confdefs.h
<<_ACEOF
11435 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11441 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11442 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11443 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11447 if test $in_tree_gas = yes; then
11448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11449 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11451 elif test x
$gcc_cv_as != x
; then
11453 addl r15 = @ltoffx(x#), gp
11455 ld8.mov r16 = [r15], x#' > conftest.s
11456 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }
11463 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11465 echo "configure: failed program was" >&5
11468 rm -f conftest.o conftest.s
11471 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11472 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11473 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11475 cat >>confdefs.h
<<\_ACEOF
11476 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11485 *-*-aix*) conftest_s
=' .csect .text[PR]
11487 *-*-darwin*) conftest_s
=' .text
11489 *) conftest_s
=' .text
11493 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11494 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11495 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11498 gcc_cv_as_powerpc_mfcrf
=no
11499 if test $in_tree_gas = yes; then
11500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11501 then gcc_cv_as_powerpc_mfcrf
=yes
11503 elif test x
$gcc_cv_as != x
; then
11504 echo "$conftest_s" > conftest.s
11505 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }
11512 gcc_cv_as_powerpc_mfcrf
=yes
11514 echo "configure: failed program was" >&5
11517 rm -f conftest.o conftest.s
11520 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11521 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11522 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11524 cat >>confdefs.h
<<\_ACEOF
11525 #define HAVE_AS_MFCRF 1
11532 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11533 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11534 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11535 echo $ECHO_N "(cached) $ECHO_C" >&6
11537 gcc_cv_as_mips_explicit_relocs
=no
11538 if test $in_tree_gas = yes; then
11539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11540 then gcc_cv_as_mips_explicit_relocs
=yes
11542 elif test x
$gcc_cv_as != x
; then
11543 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11544 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }
11551 gcc_cv_as_mips_explicit_relocs
=yes
11553 echo "configure: failed program was" >&5
11556 rm -f conftest.o conftest.s
11559 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11560 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11561 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11562 if test x
$target_cpu_default = x
11563 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11564 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11570 # ??? Not all targets support dwarf2 debug_line, even within a version
11571 # of gas. Moreover, we need to emit a valid instruction to trigger any
11572 # info to the output file. So, as supported targets are added to gas 2.11,
11573 # add some instruction here to (also) show we expect this might work.
11574 # ??? Once 2.11 is released, probably need to add first known working
11575 # version to the per-target configury.
11577 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11578 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11579 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11582 ia64
*-*-* | s390
*-*-*)
11589 if test x
"$insn" != x
; then
11591 .file 1 \"conftest.s\"
11594 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11595 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11596 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 gcc_cv_as_dwarf2_debug_line
=no
11600 if test $in_tree_gas = yes; then
11601 if test $in_tree_gas_is_elf = yes \
11602 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11603 then gcc_cv_as_dwarf2_debug_line
=yes
11605 elif test x
$gcc_cv_as != x
; then
11606 echo "$conftest_s" > conftest.s
11607 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }
11614 # ??? This fails with non-gnu grep. Maybe use objdump?
11615 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11616 gcc_cv_as_dwarf2_debug_line
=yes
11619 echo "configure: failed program was" >&5
11622 rm -f conftest.o conftest.s
11625 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11626 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11629 # The .debug_line file table must be in the exact order that
11630 # we specified the files, since these indices are also used
11631 # by DW_AT_decl_file. Approximate this test by testing if
11632 # the assembler bitches if the same index is assigned twice.
11633 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11634 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11635 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 gcc_cv_as_dwarf2_file_buggy
=no
11639 if test x
$gcc_cv_as != x
; then
11640 echo ' .file 1 "foo.s"
11641 .file 1 "bar.s"' > conftest.s
11642 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }
11649 gcc_cv_as_dwarf2_file_buggy
=yes
11651 echo "configure: failed program was" >&5
11654 rm -f conftest.o conftest.s
11657 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11658 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11661 if test $gcc_cv_as_dwarf2_debug_line = yes \
11662 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11664 cat >>confdefs.h
<<\_ACEOF
11665 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11670 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11671 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11672 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 gcc_cv_as_gdwarf2_flag
=no
11676 if test $in_tree_gas = yes; then
11677 if test $in_tree_gas_is_elf = yes \
11678 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11679 then gcc_cv_as_gdwarf2_flag
=yes
11681 elif test x
$gcc_cv_as != x
; then
11682 echo "$insn" > conftest.s
11683 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }
11690 gcc_cv_as_gdwarf2_flag
=yes
11692 echo "configure: failed program was" >&5
11695 rm -f conftest.o conftest.s
11698 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11699 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11700 if test $gcc_cv_as_gdwarf2_flag = yes; then
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11708 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11709 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11710 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 gcc_cv_as_gstabs_flag
=no
11714 if test $in_tree_gas = yes; then
11715 if test $in_tree_gas_is_elf = yes \
11716 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11717 then gcc_cv_as_gstabs_flag
=yes
11719 elif test x
$gcc_cv_as != x
; then
11720 echo "$insn" > conftest.s
11721 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; }
11728 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11729 # and warns about it, but still exits successfully. So check for
11731 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; }
11738 else gcc_cv_as_gstabs_flag
=yes
11741 echo "configure: failed program was" >&5
11744 rm -f conftest.o conftest.s
11747 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11748 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11749 if test $gcc_cv_as_gstabs_flag = yes; then
11751 cat >>confdefs.h
<<\_ACEOF
11752 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11758 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11759 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11760 gcc_cv_ld_ro_rw_mix
=unknown
11761 if test $in_tree_ld = yes ; then
11762 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 \
11763 && test $in_tree_ld_is_elf = yes; then
11764 gcc_cv_ld_ro_rw_mix
=read-write
11766 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11767 echo '.section myfoosect, "a"' > conftest1.s
11768 echo '.section myfoosect, "aw"' > conftest2.s
11769 echo '.byte 1' >> conftest2.s
11770 echo '.section myfoosect, "a"' > conftest3.s
11771 echo '.byte 0' >> conftest3.s
11772 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11773 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11774 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11775 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11776 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11777 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11778 | sed -e '/myfoosect/!d' -e N`
11779 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11780 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11781 gcc_cv_ld_ro_rw_mix
=read-only
11783 gcc_cv_ld_ro_rw_mix
=read-write
11787 rm -f conftest.
* conftest
[123].
*
11789 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11791 cat >>confdefs.h
<<\_ACEOF
11792 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11796 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11797 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11799 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11800 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11801 gcc_cv_ld_eh_frame_hdr
=no
11802 if test $in_tree_ld = yes ; then
11803 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 \
11804 && test $in_tree_ld_is_elf = yes; then
11805 gcc_cv_ld_eh_frame_hdr
=yes
11807 elif test x
$gcc_cv_ld != x
; then
11808 # Check if linker supports --eh-frame-hdr option
11809 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11810 gcc_cv_ld_eh_frame_hdr
=yes
11813 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11815 cat >>confdefs.h
<<\_ACEOF
11816 #define HAVE_LD_EH_FRAME_HDR 1
11820 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11821 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11823 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11824 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11826 if test $in_tree_ld = yes ; then
11827 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 \
11828 && test $in_tree_ld_is_elf = yes; then
11831 elif test x
$gcc_cv_ld != x
; then
11832 # Check if linker supports -pie option
11833 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11837 if test x
"$gcc_cv_ld_pie" = xyes
; then
11839 cat >>confdefs.h
<<\_ACEOF
11840 #define HAVE_LD_PIE 1
11844 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11845 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11851 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11852 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11854 cat >>confdefs.h
<<_ACEOF
11855 #define PREFIX_INCLUDE_DIR "$prefix/include"
11860 # Find out what GC implementation we want, or may, use.
11862 # Check whether --with-gc or --without-gc was given.
11863 if test "${with_gc+set}" = set; then
11870 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11871 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11872 { (exit 1); exit 1; }; }
11879 echo "Using $GGC for garbage collection."
11881 # Use the system's zlib library.
11883 zlibinc
="-I\$(srcdir)/../zlib"
11885 # Check whether --with-system-zlib or --without-system-zlib was given.
11886 if test "${with_system_zlib+set}" = set; then
11887 withval
="$with_system_zlib"
11896 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11897 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11898 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11899 if test "${enable_maintainer_mode+set}" = set; then
11900 enableval
="$enable_maintainer_mode"
11901 maintainer_mode
=$enableval
11906 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11907 echo "${ECHO_T}$maintainer_mode" >&6
11909 if test "$maintainer_mode" = "yes"; then
11919 # Make empty files to contain the specs and options for each language.
11920 # Then add #include lines to for a compiler that has specs and/or options.
11925 for subdir
in .
$subdirs
11927 if test -f $srcdir/$subdir/lang.opt
; then
11928 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11930 if test -f $srcdir/$subdir/lang-specs.h
; then
11931 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11933 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11934 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11938 # These (without "all_") are set in each config-lang.in.
11939 # `language' must be a single word so is spelled singularly.
11941 all_boot_languages
=
11944 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11945 # List of language makefile fragments.
11946 all_lang_makefrags
=
11947 # List of language subdirectory makefiles. Deprecated.
11948 all_lang_makefiles
=
11949 # Files for gengtype
11950 all_gtfiles
="$target_gtfiles"
11951 # Files for gengtype with language
11952 all_gtfiles_files_langs
=
11953 all_gtfiles_files_files
=
11955 # Add the language fragments.
11956 # Languages are added via two mechanisms. Some information must be
11957 # recorded in makefile variables, these are defined in config-lang.in.
11958 # We accumulate them and plug them into the main Makefile.
11959 # The other mechanism is a set of hooks for each of the main targets
11960 # like `clean', `install', etc.
11962 language_hooks
="Make-hooks"
11972 .
${srcdir}/$s/config-lang.
in
11973 if test "x$language" = x
11975 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11978 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11979 if test -f ${srcdir}/$s/Makefile.
in
11980 then all_lang_makefiles
="$s/Makefile"
11982 all_languages
="$all_languages $language"
11983 if test "x$boot_language" = xyes
11985 all_boot_languages
="$all_boot_languages $language"
11987 all_compilers
="$all_compilers $compilers"
11988 all_stagestuff
="$all_stagestuff $stagestuff"
11989 all_outputs
="$all_outputs $outputs"
11990 all_gtfiles
="$all_gtfiles $gtfiles"
11993 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11994 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11998 # Pick up gtfiles for c
12001 .
${srcdir}/c-config-lang.
in
12002 all_gtfiles
="$all_gtfiles $gtfiles"
12005 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12006 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12010 for language
in $all_languages
12012 check_languages
="$check_languages check-$language"
12015 # We link each language in with a set of hooks, reached indirectly via
12020 target_list
="all.build all.cross start.encap rest.encap tags \
12021 install-normal install-common install-man \
12022 uninstall info man srcextra srcman srcinfo \
12023 mostlyclean clean distclean maintainer-clean \
12024 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12025 for t
in $target_list
12028 for lang
in $all_languages
12032 echo "lang.$t: $x" >> Make-hooks
12041 echo "dir ." > .gdbinit
12042 echo "dir ${srcdir}" >> .gdbinit
12043 if test x
$gdb_needs_out_file_path = xyes
12045 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12047 if test "x$subdirs" != x
; then
12050 echo "dir ${srcdir}/$s" >> .gdbinit
12053 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12055 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12056 # absolute path for gcc_tooldir based on inserting the number of up-directory
12057 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12058 # $(libsubdir)/@(unlibsubdir) based path.
12059 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12060 # make and thus we'd get different behavior depending on where we built the
12062 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12063 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12065 # An explanation of the sed strings:
12066 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12067 # -e 's|/$||' match a trailing forward slash and eliminates it
12068 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12069 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12071 # (*) Note this pattern overwrites the first character of the string
12072 # with a forward slash if one is not already present. This is not a
12073 # problem because the exact names of the sub-directories concerned is
12074 # unimportant, just the number of them matters.
12076 # The practical upshot of these patterns is like this:
12078 # prefix exec_prefix result
12079 # ------ ----------- ------
12080 # /foo /foo/bar ../
12081 # /foo/ /foo/bar ../
12082 # /foo /foo/bar/ ../
12083 # /foo/ /foo/bar/ ../
12084 # /foo /foo/bar/ugg ../../
12087 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12092 # Find a directory in which to install a shared libgcc.
12094 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12095 if test "${enable_version_specific_runtime_libs+set}" = set; then
12096 enableval
="$enable_version_specific_runtime_libs"
12101 # Check whether --with-slibdir or --without-slibdir was given.
12102 if test "${with_slibdir+set}" = set; then
12103 withval
="$with_slibdir"
12104 slibdir
="$with_slibdir"
12106 if test "${enable_version_specific_runtime_libs+set}" = set; then
12107 slibdir
='$(libsubdir)'
12108 elif test "$host" != "$target"; then
12109 slibdir
='$(build_tooldir)/lib'
12111 slibdir
='$(libdir)'
12116 objdir
=`${PWDCMD-pwd}`
12119 # Substitute configuration variables
12188 # If it doesn't already exist, create document directory
12189 echo "checking for the document directory." 1>&2
12190 if test -d doc
; then
12197 if test x
${build} = x
${host} ; then
12198 if test x
${host} = x
${target} ; then
12199 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12201 echo "Links are now set up to build a cross-compiler" 1>&2
12202 echo " from ${host} to ${target}." 1>&2
12205 if test x
${host} = x
${target} ; then
12206 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12207 echo " for ${target}." 1>&2
12209 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12210 echo " from ${host} to ${target}." 1>&2
12214 # Configure the subdirectories
12215 # AC_CONFIG_SUBDIRS($subdirs)
12217 # Create the Makefile
12218 # and configure language subdirectories
12219 ac_config_files
="$ac_config_files $all_outputs"
12222 ac_config_commands
="$ac_config_commands default"
12224 cat >confcache
<<\_ACEOF
12225 # This file is a shell script that caches the results of configure
12226 # tests run on this system so they can be shared between configure
12227 # scripts and configure runs, see configure's option --config-cache.
12228 # It is not useful on other systems. If it contains results you don't
12229 # want to keep, you may remove or edit it.
12231 # config.status only pays attention to the cache file if you give it
12232 # the --recheck option to rerun configure.
12234 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12235 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12236 # following values.
12240 # The following way of writing the cache mishandles newlines in values,
12241 # but we know of no workaround that is simple, portable, and efficient.
12242 # So, don't put newlines in cache variables' values.
12243 # Ultrix sh set writes to stderr and can't be redirected directly,
12244 # and sets the high bit in the cache file unless we assign to the vars.
12247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12249 # `set' does not quote correctly, so add quotes (double-quote
12250 # substitution turns \\\\ into \\, and sed turns \\ into \).
12253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12256 # `set' quotes correctly as required by POSIX, so do not add quotes.
12258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12267 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12269 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12270 if test -w $cache_file; then
12271 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12272 cat confcache
>$cache_file
12274 echo "not updating unwritable cache $cache_file"
12279 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12280 # Let make expand exec_prefix.
12281 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12283 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12284 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12285 # trailing colons and then remove the whole line if VPATH becomes empty
12286 # (actually we leave an empty line to preserve line numbers).
12287 if test "x$srcdir" = x.
; then
12288 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12289 s/:*\$(srcdir):*/:/;
12290 s/:*\${srcdir}:*/:/;
12292 s/^\([^=]*=[ ]*\):*/\1/;
12298 DEFS
=-DHAVE_CONFIG_H
12302 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12303 # 1. Remove the extension, and $U if already installed.
12304 ac_i
=`echo "$ac_i" |
12305 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12307 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12308 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12310 LIBOBJS
=$ac_libobjs
12312 LTLIBOBJS
=$ac_ltlibobjs
12316 : ${CONFIG_STATUS=./config.status}
12317 ac_clean_files_save
=$ac_clean_files
12318 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12319 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12320 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12321 cat >$CONFIG_STATUS <<_ACEOF
12323 # Generated by $as_me.
12324 # Run this file to recreate the current configuration.
12325 # Compiler output produced by configure, useful for debugging
12326 # configure, is in config.log if it exists.
12329 ac_cs_recheck=false
12331 SHELL=\${CONFIG_SHELL-$SHELL}
12334 cat >>$CONFIG_STATUS <<\_ACEOF
12335 ## --------------------- ##
12336 ## M4sh Initialization. ##
12337 ## --------------------- ##
12339 # Be Bourne compatible
12340 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12343 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12344 # is contrary to our usage. Disable this feature.
12345 alias -g '${1+"$@"}'='"$@"'
12346 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12349 DUALCASE
=1; export DUALCASE
# for MKS sh
12351 # Support unset when possible.
12352 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12359 # Work around bugs in pre-3.0 UWIN ksh.
12360 $as_unset ENV MAIL MAILPATH
12367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12369 LC_TELEPHONE LC_TIME
12371 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12372 eval $as_var=C
; export $as_var
12378 # Required to use basename.
12379 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12385 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12386 as_basename
=basename
12392 # Name of the executable.
12393 as_me
=`$as_basename "$0" ||
12394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12395 X"$0" : 'X\(//\)$' \| \
12396 X"$0" : 'X\(/\)$' \| \
12397 . : '\(.\)' 2>/dev/null ||
12399 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12400 /^X\/\(\/\/\)$/{ s//\1/; q; }
12401 /^X\/\(\/\).*/{ s//\1/; q; }
12405 # PATH needs CR, and LINENO needs CR and PATH.
12406 # Avoid depending upon Character Ranges.
12407 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12408 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12409 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12410 as_cr_digits
='0123456789'
12411 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12413 # The user is always right.
12414 if test "${PATH_SEPARATOR+set}" != set; then
12415 echo "#! /bin/sh" >conf$$.sh
12416 echo "exit 0" >>conf$$.sh
12418 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12427 as_lineno_1
=$LINENO
12428 as_lineno_2
=$LINENO
12429 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12430 test "x$as_lineno_1" != "x$as_lineno_2" &&
12431 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12432 # Find who we are. Look in the path if we contain no path at all
12435 *[\\/]* ) as_myself
=$0 ;;
12436 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12437 for as_dir
in $PATH
12440 test -z "$as_dir" && as_dir
=.
12441 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12446 # We did not find ourselves, most probably we were run as `sh COMMAND'
12447 # in which case we are not to be found in the path.
12448 if test "x$as_myself" = x
; then
12451 if test ! -f "$as_myself"; then
12452 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12453 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12454 { (exit 1); exit 1; }; }
12456 case $CONFIG_SHELL in
12458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12459 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12462 test -z "$as_dir" && as_dir
=.
12463 for as_base
in sh bash ksh sh5
; do
12466 if ("$as_dir/$as_base" -c '
12467 as_lineno_1=$LINENO
12468 as_lineno_2=$LINENO
12469 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12470 test "x$as_lineno_1" != "x$as_lineno_2" &&
12471 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12472 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12473 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12474 CONFIG_SHELL
=$as_dir/$as_base
12475 export CONFIG_SHELL
12476 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12485 # uniformly replaced by the line number. The first 'sed' inserts a
12486 # line-number line before each line; the second 'sed' does the real
12487 # work. The second script uses 'N' to pair each line-number line
12488 # with the numbered line, and appends trailing '-' during
12489 # substitution so that $LINENO is not a special case at line end.
12490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12491 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12492 sed '=' <$as_myself |
12497 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12500 s,^['$as_cr_digits']*\n,,
12501 ' >$as_me.lineno
&&
12502 chmod +x
$as_me.lineno ||
12503 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12504 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12505 { (exit 1); exit 1; }; }
12507 # Don't try to exec as it changes $[0], causing all sort of problems
12508 # (the dirname of $[0] is not the place where we might find the
12509 # original and so on. Autoconf is especially sensible to this).
12511 # Exit status is that of the last command.
12516 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12517 *c
*,-n*) ECHO_N
= ECHO_C
='
12519 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12520 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12523 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12529 rm -f conf$$ conf$$.exe conf$$.
file
12531 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12532 # We could just check for DJGPP; but this test a) works b) is more generic
12533 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12534 if test -f conf$$.exe
; then
12535 # Don't use ln at all; we don't have any links
12540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12545 rm -f conf$$ conf$$.exe conf$$.
file
12547 if mkdir
-p .
2>/dev
/null
; then
12550 test -d .
/-p && rmdir .
/-p
12554 as_executable_p
="test -f"
12556 # Sed expression to map a string onto a valid CPP name.
12557 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12559 # Sed expression to map a string onto a valid variable name.
12560 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12564 # We need space, tab and new line, in precisely that order.
12574 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12575 # report actual input values of CONFIG_FILES etc. instead of their
12576 # values after options handling. Logging --version etc. is OK.
12580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12581 ## Running $as_me. ##
12586 This file was extended by $as_me, which was
12587 generated by GNU Autoconf 2.59. Invocation command line was
12589 CONFIG_FILES = $CONFIG_FILES
12590 CONFIG_HEADERS = $CONFIG_HEADERS
12591 CONFIG_LINKS = $CONFIG_LINKS
12592 CONFIG_COMMANDS = $CONFIG_COMMANDS
12596 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12600 # Files that config.status was made for.
12601 if test -n "$ac_config_files"; then
12602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12605 if test -n "$ac_config_headers"; then
12606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12609 if test -n "$ac_config_links"; then
12610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12613 if test -n "$ac_config_commands"; then
12614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12617 cat >>$CONFIG_STATUS <<\_ACEOF
12620 \`$as_me' instantiates files from templates according to the
12621 current configuration.
12623 Usage: $0 [OPTIONS] [FILE]...
12625 -h, --help print this help, then exit
12626 -V, --version print version number, then exit
12627 -q, --quiet do not print progress messages
12628 -d, --debug don't remove temporary files
12629 --recheck update $as_me by reconfiguring in the same conditions
12630 --file=FILE[:TEMPLATE]
12631 instantiate the configuration file FILE
12632 --header=FILE[:TEMPLATE]
12633 instantiate the configuration header FILE
12635 Configuration files:
12638 Configuration headers:
12641 Configuration commands:
12644 Report bugs to <bug-autoconf@gnu.org>."
12647 cat >>$CONFIG_STATUS <<_ACEOF
12650 configured by $0, generated by GNU Autoconf 2.59,
12651 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12653 Copyright (C) 2003 Free Software Foundation, Inc.
12654 This config.status script is free software; the Free Software Foundation
12655 gives unlimited permission to copy, distribute and modify it."
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 # If no file are specified by the user, then we need to provide default
12661 # value. By we need to know if files were specified by the user.
12667 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12668 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12676 *) # This is not an option, so the user has probably given explicit
12679 ac_need_defaults
=false
;;
12683 # Handling of the options.
12685 cat >>$CONFIG_STATUS <<\_ACEOF
12686 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12688 --version |
--vers* |
-V )
12689 echo "$ac_cs_version"; exit 0 ;;
12691 # Conflict between --help and --header
12692 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12693 Try \`$0 --help' for more information." >&5
12694 echo "$as_me: error: ambiguous option: $1
12695 Try \`$0 --help' for more information." >&2;}
12696 { (exit 1); exit 1; }; };;
12697 --help |
--hel |
-h )
12698 echo "$ac_cs_usage"; exit 0 ;;
12699 --debug |
--d* |
-d )
12701 --file |
--fil |
--fi |
--f )
12703 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12704 ac_need_defaults
=false
;;
12705 --header |
--heade |
--head |
--hea )
12707 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12708 ac_need_defaults
=false
;;
12709 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12710 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12713 # This is an error.
12714 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12715 Try \`$0 --help' for more information." >&5
12716 echo "$as_me: error: unrecognized option: $1
12717 Try \`$0 --help' for more information." >&2;}
12718 { (exit 1); exit 1; }; } ;;
12720 *) ac_config_targets
="$ac_config_targets $1" ;;
12726 ac_configure_extra_args
=
12728 if $ac_cs_silent; then
12730 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12734 cat >>$CONFIG_STATUS <<_ACEOF
12735 if \$ac_cs_recheck; then
12736 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12737 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12742 cat >>$CONFIG_STATUS <<_ACEOF
12744 # INIT-COMMANDS section.
12748 symbolic_link='$symbolic_link'
12755 cat >>$CONFIG_STATUS <<\_ACEOF
12756 for ac_config_target
in $ac_config_targets
12758 case "$ac_config_target" in
12759 # Handling of arguments.
12760 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12761 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12762 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12765 { (exit 1); exit 1; }; };;
12769 # If the user did not use the arguments to specify the items to instantiate,
12770 # then the envvar interface is used. Set only those that are not.
12771 # We use the long form for the default assignment because of an extremely
12772 # bizarre bug on SunOS 4.1.3.
12773 if $ac_need_defaults; then
12774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12779 # Have a temporary directory for convenience. Make it in the build tree
12780 # simply because there is no reason to put it here, and in addition,
12781 # creating and moving files from /tmp can sometimes cause problems.
12782 # Create a temporary directory, and hook for its removal unless debugging.
12785 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12786 trap '{ (exit 1); exit 1; }' 1 2 13 15
12789 # Create a (secure) tmp directory for tmp files.
12792 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12793 test -n "$tmp" && test -d "$tmp"
12796 tmp
=.
/confstat$$
-$RANDOM
12797 (umask 077 && mkdir
$tmp)
12800 echo "$me: cannot create a temporary directory in ." >&2
12801 { (exit 1); exit 1; }
12806 cat >>$CONFIG_STATUS <<_ACEOF
12809 # CONFIG_FILES section.
12812 # No need to generate the scripts if there are no CONFIG_FILES.
12813 # This happens for instance when ./config.status config.h
12814 if test -n "\$CONFIG_FILES"; then
12815 # Protect against being on the right side of a sed subst in config.status.
12816 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12817 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12818 s,@SHELL@,$SHELL,;t t
12819 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12825 s,@exec_prefix@,$exec_prefix,;t t
12826 s,@prefix@,$prefix,;t t
12827 s,@program_transform_name@,$program_transform_name,;t t
12828 s,@bindir@,$bindir,;t t
12829 s,@sbindir@,$sbindir,;t t
12830 s,@libexecdir@,$libexecdir,;t t
12831 s,@datadir@,$datadir,;t t
12832 s,@sysconfdir@,$sysconfdir,;t t
12833 s,@sharedstatedir@,$sharedstatedir,;t t
12834 s,@localstatedir@,$localstatedir,;t t
12835 s,@libdir@,$libdir,;t t
12836 s,@includedir@,$includedir,;t t
12837 s,@oldincludedir@,$oldincludedir,;t t
12838 s,@infodir@,$infodir,;t t
12839 s,@mandir@,$mandir,;t t
12840 s,@build_alias@,$build_alias,;t t
12841 s,@host_alias@,$host_alias,;t t
12842 s,@target_alias@,$target_alias,;t t
12843 s,@DEFS@,$DEFS,;t t
12844 s,@ECHO_C@,$ECHO_C,;t t
12845 s,@ECHO_N@,$ECHO_N,;t t
12846 s,@ECHO_T@,$ECHO_T,;t t
12847 s,@LIBS@,$LIBS,;t t
12848 s,@build@,$build,;t t
12849 s,@build_cpu@,$build_cpu,;t t
12850 s,@build_vendor@,$build_vendor,;t t
12851 s,@build_os@,$build_os,;t t
12852 s,@host@,$host,;t t
12853 s,@host_cpu@,$host_cpu,;t t
12854 s,@host_vendor@,$host_vendor,;t t
12855 s,@host_os@,$host_os,;t t
12856 s,@target@,$target,;t t
12857 s,@target_cpu@,$target_cpu,;t t
12858 s,@target_vendor@,$target_vendor,;t t
12859 s,@target_os@,$target_os,;t t
12860 s,@build_subdir@,$build_subdir,;t t
12861 s,@host_subdir@,$host_subdir,;t t
12862 s,@target_subdir@,$target_subdir,;t t
12863 s,@GENINSRC@,$GENINSRC,;t t
12865 s,@CFLAGS@,$CFLAGS,;t t
12866 s,@LDFLAGS@,$LDFLAGS,;t t
12867 s,@CPPFLAGS@,$CPPFLAGS,;t t
12868 s,@ac_ct_CC@,$ac_ct_CC,;t t
12869 s,@EXEEXT@,$EXEEXT,;t t
12870 s,@OBJEXT@,$OBJEXT,;t t
12871 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12872 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12874 s,@strict1_warn@,$strict1_warn,;t t
12875 s,@warn_cflags@,$warn_cflags,;t t
12876 s,@WERROR@,$WERROR,;t t
12877 s,@nocommon_flag@,$nocommon_flag,;t t
12878 s,@EGREP@,$EGREP,;t t
12879 s,@valgrind_path@,$valgrind_path,;t t
12880 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12881 s,@valgrind_command@,$valgrind_command,;t t
12882 s,@coverage_flags@,$coverage_flags,;t t
12883 s,@enable_multilib@,$enable_multilib,;t t
12884 s,@enable_shared@,$enable_shared,;t t
12885 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12886 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12887 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12888 s,@onestep@,$onestep,;t t
12889 s,@SET_MAKE@,$SET_MAKE,;t t
12892 s,@LN_S@,$LN_S,;t t
12893 s,@RANLIB@,$RANLIB,;t t
12894 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12895 s,@INSTALL@,$INSTALL,;t t
12896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12897 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12898 s,@make_compare_target@,$make_compare_target,;t t
12899 s,@have_mktemp_command@,$have_mktemp_command,;t t
12900 s,@MAKEINFO@,$MAKEINFO,;t t
12901 s,@BUILD_INFO@,$BUILD_INFO,;t t
12902 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12903 s,@FLEX@,$FLEX,;t t
12904 s,@BISON@,$BISON,;t t
12905 s,@stage1_cflags@,$stage1_cflags,;t t
12906 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12907 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12908 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12909 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12910 s,@LIBICONV@,$LIBICONV,;t t
12911 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12912 s,@manext@,$manext,;t t
12913 s,@objext@,$objext,;t t
12914 s,@gthread_flags@,$gthread_flags,;t t
12915 s,@extra_modes_file@,$extra_modes_file,;t t
12916 s,@FORBUILD@,$FORBUILD,;t t
12917 s,@PACKAGE@,$PACKAGE,;t t
12918 s,@VERSION@,$VERSION,;t t
12919 s,@USE_NLS@,$USE_NLS,;t t
12920 s,@LIBINTL@,$LIBINTL,;t t
12921 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12922 s,@INCINTL@,$INCINTL,;t t
12923 s,@XGETTEXT@,$XGETTEXT,;t t
12924 s,@GMSGFMT@,$GMSGFMT,;t t
12925 s,@POSUB@,$POSUB,;t t
12926 s,@CATALOGS@,$CATALOGS,;t t
12927 s,@CROSS@,$CROSS,;t t
12929 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12930 s,@inhibit_libc@,$inhibit_libc,;t t
12931 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12932 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12933 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12934 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12935 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12936 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12937 s,@libgcc_visibility@,$libgcc_visibility,;t t
12939 s,@zlibdir@,$zlibdir,;t t
12940 s,@zlibinc@,$zlibinc,;t t
12941 s,@MAINT@,$MAINT,;t t
12942 s,@gcc_tooldir@,$gcc_tooldir,;t t
12943 s,@dollar@,$dollar,;t t
12944 s,@slibdir@,$slibdir,;t t
12945 s,@objdir@,$objdir,;t t
12946 s,@subdirs@,$subdirs,;t t
12947 s,@srcdir@,$srcdir,;t t
12948 s,@all_boot_languages@,$all_boot_languages,;t t
12949 s,@all_compilers@,$all_compilers,;t t
12950 s,@all_gtfiles@,$all_gtfiles,;t t
12951 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12952 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12953 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12954 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12955 s,@all_languages@,$all_languages,;t t
12956 s,@all_stagestuff@,$all_stagestuff,;t t
12957 s,@build_exeext@,$build_exeext,;t t
12958 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12959 s,@build_xm_file_list@,$build_xm_file_list,;t t
12960 s,@build_xm_include_list@,$build_xm_include_list,;t t
12961 s,@build_xm_defines@,$build_xm_defines,;t t
12962 s,@check_languages@,$check_languages,;t t
12963 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12964 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12965 s,@cpp_install_dir@,$cpp_install_dir,;t t
12966 s,@xmake_file@,$xmake_file,;t t
12967 s,@tmake_file@,$tmake_file,;t t
12968 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12969 s,@extra_headers_list@,$extra_headers_list,;t t
12970 s,@extra_objs@,$extra_objs,;t t
12971 s,@extra_parts@,$extra_parts,;t t
12972 s,@extra_passes@,$extra_passes,;t t
12973 s,@extra_programs@,$extra_programs,;t t
12974 s,@float_h_file@,$float_h_file,;t t
12975 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12976 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12977 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12978 s,@gcc_version@,$gcc_version,;t t
12979 s,@gcc_version_full@,$gcc_version_full,;t t
12980 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12981 s,@host_exeext@,$host_exeext,;t t
12982 s,@host_xm_file_list@,$host_xm_file_list,;t t
12983 s,@host_xm_include_list@,$host_xm_include_list,;t t
12984 s,@host_xm_defines@,$host_xm_defines,;t t
12985 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12986 s,@install@,$install,;t t
12987 s,@lang_opt_files@,$lang_opt_files,;t t
12988 s,@lang_specs_files@,$lang_specs_files,;t t
12989 s,@lang_tree_files@,$lang_tree_files,;t t
12990 s,@local_prefix@,$local_prefix,;t t
12991 s,@md_file@,$md_file,;t t
12992 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12993 s,@out_file@,$out_file,;t t
12994 s,@out_object_file@,$out_object_file,;t t
12995 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12996 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12997 s,@symbolic_link@,$symbolic_link,;t t
12998 s,@thread_file@,$thread_file,;t t
12999 s,@tm_file_list@,$tm_file_list,;t t
13000 s,@tm_include_list@,$tm_include_list,;t t
13001 s,@tm_defines@,$tm_defines,;t t
13002 s,@tm_p_file_list@,$tm_p_file_list,;t t
13003 s,@tm_p_include_list@,$tm_p_include_list,;t t
13004 s,@xm_file_list@,$xm_file_list,;t t
13005 s,@xm_include_list@,$xm_include_list,;t t
13006 s,@xm_defines@,$xm_defines,;t t
13007 s,@target_noncanonical@,$target_noncanonical,;t t
13008 s,@c_target_objs@,$c_target_objs,;t t
13009 s,@cxx_target_objs@,$cxx_target_objs,;t t
13010 s,@target_cpu_default@,$target_cpu_default,;t t
13011 s,@LIBOBJS@,$LIBOBJS,;t t
13012 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13013 /@language_hooks@/r $language_hooks
13014 s,@language_hooks@,,;t t
13019 cat >>$CONFIG_STATUS <<\_ACEOF
13020 # Split the substitutions into bite-sized pieces for seds with
13021 # small command number limits, like on Digital OSF/1 and HP-UX.
13022 ac_max_sed_lines
=48
13023 ac_sed_frag
=1 # Number of current file.
13024 ac_beg
=1 # First line for current file.
13025 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13028 while $ac_more_lines; do
13029 if test $ac_beg -gt 1; then
13030 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13032 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13034 if test ! -s $tmp/subs.frag
; then
13035 ac_more_lines
=false
13037 # The purpose of the label and of the branching condition is to
13038 # speed up the sed processing (if there are no `@' at all, there
13039 # is no need to browse any of the substitutions).
13040 # These are the two extra sed commands mentioned above.
13042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13043 if test -z "$ac_sed_cmds"; then
13044 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13046 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13048 ac_sed_frag
=`expr $ac_sed_frag + 1`
13050 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13053 if test -z "$ac_sed_cmds"; then
13056 fi # test -n "$CONFIG_FILES"
13059 cat >>$CONFIG_STATUS <<\_ACEOF
13060 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13061 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13063 - |
*:- |
*:-:* ) # input from stdin
13065 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13066 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13067 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13068 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13069 * ) ac_file_in
=$ac_file.
in ;;
13072 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13073 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13074 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13075 X"$ac_file" : 'X\(//\)[^/]' \| \
13076 X"$ac_file" : 'X\(//\)$' \| \
13077 X"$ac_file" : 'X\(/\)' \| \
13078 . : '\(.\)' 2>/dev/null ||
13080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13082 /^X\(\/\/\)$/{ s//\1/; q; }
13083 /^X\(\/\).*/{ s//\1/; q; }
13085 { if $as_mkdir_p; then
13090 while test ! -d "$as_dir"; do
13091 as_dirs
="$as_dir $as_dirs"
13092 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13094 X"$as_dir" : 'X\(//\)[^/]' \| \
13095 X"$as_dir" : 'X\(//\)$' \| \
13096 X"$as_dir" : 'X\(/\)' \| \
13097 . : '\(.\)' 2>/dev/null ||
13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13101 /^X\(\/\/\)$/{ s//\1/; q; }
13102 /^X\(\/\).*/{ s//\1/; q; }
13105 test ! -n "$as_dirs" || mkdir
$as_dirs
13106 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13108 { (exit 1); exit 1; }; }; }
13112 if test "$ac_dir" != .
; then
13113 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13114 # A "../" for each directory in $ac_dir_suffix.
13115 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13117 ac_dir_suffix
= ac_top_builddir
=
13121 .
) # No --srcdir option. We are building in place.
13123 if test -z "$ac_top_builddir"; then
13126 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13128 [\\/]* | ?
:[\\/]* ) # Absolute path.
13129 ac_srcdir
=$srcdir$ac_dir_suffix;
13130 ac_top_srcdir
=$srcdir ;;
13131 *) # Relative path.
13132 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13133 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13136 # Do not use `cd foo && pwd` to compute absolute paths, because
13137 # the directories may not exist.
13139 .
) ac_abs_builddir
="$ac_dir";;
13142 .
) ac_abs_builddir
=`pwd`;;
13143 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13144 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13147 case $ac_abs_builddir in
13148 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13150 case ${ac_top_builddir}.
in
13151 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13152 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13153 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13156 case $ac_abs_builddir in
13157 .
) ac_abs_srcdir
=$ac_srcdir;;
13160 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13161 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13162 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13165 case $ac_abs_builddir in
13166 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13168 case $ac_top_srcdir in
13169 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13170 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13171 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13177 # Let's still pretend it is `configure' which instantiates (i.e., don't
13178 # use $as_me), people would be surprised to read:
13179 # /* config.h. Generated by config.status. */
13180 if test x
"$ac_file" = x-
; then
13183 configure_input
="$ac_file. "
13185 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13186 sed 's,.*/,,'` by configure."
13188 # First look for the input files in the build tree, otherwise in the
13190 ac_file_inputs
=`IFS=:
13191 for f in $ac_file_in; do
13193 -) echo $tmp/stdin ;;
13195 # Absolute (can't be DOS-style, as IFS=:)
13196 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13197 echo "$as_me: error: cannot find input file: $f" >&2;}
13198 { (exit 1); exit 1; }; }
13201 if test -f "$f"; then
13204 elif test -f "$srcdir/$f"; then
13209 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13210 echo "$as_me: error: cannot find input file: $f" >&2;}
13211 { (exit 1); exit 1; }; }
13214 done` ||
{ (exit 1); exit 1; }
13216 if test x
"$ac_file" != x-
; then
13217 { echo "$as_me:$LINENO: creating $ac_file" >&5
13218 echo "$as_me: creating $ac_file" >&6;}
13222 cat >>$CONFIG_STATUS <<_ACEOF
13226 cat >>$CONFIG_STATUS <<\_ACEOF
13228 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13229 s
,@configure_input@
,$configure_input,;t t
13230 s
,@srcdir@
,$ac_srcdir,;t t
13231 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13232 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13233 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13234 s
,@builddir@
,$ac_builddir,;t t
13235 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13236 s
,@top_builddir@
,$ac_top_builddir,;t t
13237 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13238 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13240 if test x"$ac_file" != x-; then
13241 mv $tmp/out $ac_file
13249 cat >>$CONFIG_STATUS <<\_ACEOF
13252 # CONFIG_HEADER section.
13255 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13256 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13258 # ac_d sets the value in "#define NAME VALUE" lines.
13259 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13260 ac_dB
='[ ].*$,\1#\2'
13263 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13264 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13265 ac_uB
='$,\1#\2define\3'
13269 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13272 - |
*:- |
*:-:* ) # input from stdin
13274 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13275 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13276 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13277 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13278 * ) ac_file_in
=$ac_file.
in ;;
13281 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13282 echo "$as_me: creating $ac_file" >&6;}
13284 # First look for the input files in the build tree, otherwise in the
13286 ac_file_inputs
=`IFS=:
13287 for f in $ac_file_in; do
13289 -) echo $tmp/stdin ;;
13291 # Absolute (can't be DOS-style, as IFS=:)
13292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13293 echo "$as_me: error: cannot find input file: $f" >&2;}
13294 { (exit 1); exit 1; }; }
13295 # Do quote $f, to prevent DOS paths from being IFS'd.
13298 if test -f "$f"; then
13301 elif test -f "$srcdir/$f"; then
13306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13307 echo "$as_me: error: cannot find input file: $f" >&2;}
13308 { (exit 1); exit 1; }; }
13311 done` ||
{ (exit 1); exit 1; }
13312 # Remove the trailing spaces.
13313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13317 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13318 # `conftest.undefs', that substitutes the proper values into
13319 # config.h.in to produce config.h. The first handles `#define'
13320 # templates, and the second `#undef' templates.
13321 # And first: Protect against being on the right side of a sed subst in
13322 # config.status. Protect against being in an unquoted here document
13323 # in config.status.
13324 rm -f conftest.defines conftest.undefs
13325 # Using a here document instead of a string reduces the quoting nightmare.
13326 # Putting comments in sed scripts is not portable.
13328 # `end' is used to avoid that the second main sed command (meant for
13329 # 0-ary CPP macros) applies to n-ary macro definitions.
13330 # See the Autoconf documentation for `clear'.
13331 cat >confdef2sed.
sed <<\_ACEOF
13336 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13338 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13341 # If some macros were called several times there might be several times
13342 # the same #defines, which is useless. Nevertheless, we may not want to
13343 # sort them, since we want the *last* AC-DEFINE to be honored.
13344 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13345 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13346 rm -f confdef2sed.sed
13348 # This sed command replaces #undef with comments. This is necessary, for
13349 # example, in the case of _POSIX_SOURCE, which is predefined and required
13350 # on some systems where configure will not decide to define it.
13351 cat >>conftest.undefs <<\_ACEOF
13352 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13355 # Break up conftest.defines because some shells have a limit on the size
13356 # of here documents, and old seds have small limits too (100 cmds).
13357 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13358 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13359 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13360 echo ' :' >>$CONFIG_STATUS
13361 rm -f conftest.tail
13362 while grep . conftest.defines >/dev/null
13364 # Write a limited-size here document to $tmp/defines.sed.
13365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13366 # Speed up: don't consider the non `#define' lines.
13367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13368 # Work around the forget-to-reset-the-flag bug.
13369 echo 't clr' >>$CONFIG_STATUS
13370 echo ': clr' >>$CONFIG_STATUS
13371 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13373 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13375 mv $tmp/out $tmp/in
13377 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13378 rm -f conftest.defines
13379 mv conftest.
tail conftest.defines
13381 rm -f conftest.defines
13382 echo ' fi # grep' >>$CONFIG_STATUS
13383 echo >>$CONFIG_STATUS
13385 # Break up conftest.undefs because some shells have a limit on the size
13386 # of here documents, and old seds have small limits too (100 cmds).
13387 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13388 rm -f conftest.
tail
13389 while grep . conftest.undefs
>/dev
/null
13391 # Write a limited-size here document to $tmp/undefs.sed.
13392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13393 # Speed up: don't consider the non
`#undef'
13394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13395 # Work around the forget-to-reset-the-flag bug.
13396 echo 't clr' >>$CONFIG_STATUS
13397 echo ': clr' >>$CONFIG_STATUS
13398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13402 mv $tmp/out $tmp/in
13404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13405 rm -f conftest.undefs
13406 mv conftest.tail conftest.undefs
13408 rm -f conftest.undefs
13410 cat >>$CONFIG_STATUS <<\_ACEOF
13411 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13412 # use $as_me), people would be surprised to read:
13413 # /* config.h. Generated by config.status. */
13414 if test x
"$ac_file" = x-
; then
13415 echo "/* Generated by configure. */" >$tmp/config.h
13417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13419 cat $tmp/in >>$tmp/config.h
13421 if test x
"$ac_file" != x-
; then
13422 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13424 echo "$as_me: $ac_file is unchanged" >&6;}
13426 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13427 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13428 X"$ac_file" : 'X\(//\)[^/]' \| \
13429 X"$ac_file" : 'X\(//\)$' \| \
13430 X"$ac_file" : 'X\(/\)' \| \
13431 . : '\(.\)' 2>/dev/null ||
13433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13434 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13435 /^X\(\/\/\)$/{ s//\1/; q; }
13436 /^X\(\/\).*/{ s//\1/; q; }
13438 { if $as_mkdir_p; then
13443 while test ! -d "$as_dir"; do
13444 as_dirs
="$as_dir $as_dirs"
13445 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13447 X"$as_dir" : 'X\(//\)[^/]' \| \
13448 X"$as_dir" : 'X\(//\)$' \| \
13449 X"$as_dir" : 'X\(/\)' \| \
13450 . : '\(.\)' 2>/dev/null ||
13452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13454 /^X\(\/\/\)$/{ s//\1/; q; }
13455 /^X\(\/\).*/{ s//\1/; q; }
13458 test ! -n "$as_dirs" || mkdir
$as_dirs
13459 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13460 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13461 { (exit 1); exit 1; }; }; }
13464 mv $tmp/config.h
$ac_file
13468 rm -f $tmp/config.h
13472 cat >>$CONFIG_STATUS <<\_ACEOF
13475 # CONFIG_COMMANDS section.
13477 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13478 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13479 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13480 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13481 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13482 X"$ac_dest" : 'X\(//\)[^/]' \| \
13483 X"$ac_dest" : 'X\(//\)$' \| \
13484 X"$ac_dest" : 'X\(/\)' \| \
13485 . : '\(.\)' 2>/dev/null ||
13487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13489 /^X\(\/\/\)$/{ s//\1/; q; }
13490 /^X\(\/\).*/{ s//\1/; q; }
13492 { if $as_mkdir_p; then
13497 while test ! -d "$as_dir"; do
13498 as_dirs
="$as_dir $as_dirs"
13499 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13501 X"$as_dir" : 'X\(//\)[^/]' \| \
13502 X"$as_dir" : 'X\(//\)$' \| \
13503 X"$as_dir" : 'X\(/\)' \| \
13504 . : '\(.\)' 2>/dev/null ||
13506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13508 /^X\(\/\/\)$/{ s//\1/; q; }
13509 /^X\(\/\).*/{ s//\1/; q; }
13512 test ! -n "$as_dirs" || mkdir
$as_dirs
13513 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13515 { (exit 1); exit 1; }; }; }
13519 if test "$ac_dir" != .
; then
13520 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13521 # A "../" for each directory in $ac_dir_suffix.
13522 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13524 ac_dir_suffix
= ac_top_builddir
=
13528 .
) # No --srcdir option. We are building in place.
13530 if test -z "$ac_top_builddir"; then
13533 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13535 [\\/]* | ?
:[\\/]* ) # Absolute path.
13536 ac_srcdir
=$srcdir$ac_dir_suffix;
13537 ac_top_srcdir
=$srcdir ;;
13538 *) # Relative path.
13539 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13540 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13543 # Do not use `cd foo && pwd` to compute absolute paths, because
13544 # the directories may not exist.
13546 .
) ac_abs_builddir
="$ac_dir";;
13549 .
) ac_abs_builddir
=`pwd`;;
13550 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13551 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13554 case $ac_abs_builddir in
13555 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13557 case ${ac_top_builddir}.
in
13558 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13559 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13560 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13563 case $ac_abs_builddir in
13564 .
) ac_abs_srcdir
=$ac_srcdir;;
13567 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13568 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13569 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13572 case $ac_abs_builddir in
13573 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13575 case $ac_top_srcdir in
13576 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13577 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13578 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13583 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13584 echo "$as_me: executing $ac_dest commands" >&6;}
13587 case ${CONFIG_HEADERS} in
13588 *auto-host.h
:config.
in*)
13591 # Make sure all the subdirs exist.
13594 test -d $d || mkdir
$d
13596 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13597 # bootstrapping and the installation procedure can still use
13598 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13599 # FLAGS_TO_PASS has been modified to solve the problem there.
13600 # This is virtually a duplicate of what happens in configure.lang; we do
13601 # an extra check to make sure this only happens if ln -s can be used.
13602 if test "$symbolic_link" = "ln -s"; then
13603 for d
in ${subdirs} fixinc
; do
13604 STARTDIR
=`${PWDCMD-pwd}`
13606 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13609 $symbolic_link ..
/$t $t 2>/dev
/null
13619 cat >>$CONFIG_STATUS <<\_ACEOF
13621 { (exit 0); exit 0; }
13623 chmod +x
$CONFIG_STATUS
13624 ac_clean_files
=$ac_clean_files_save
13627 # configure is writing to config.log, and then calls config.status.
13628 # config.status does its own redirection, appending to config.log.
13629 # Unfortunately, on DOS this fails, as config.log is still kept open
13630 # by configure, so config.status won't be able to write to it; its
13631 # output is simply discarded. So we exec the FD to /dev/null,
13632 # effectively closing config.log, so it can be properly (re)opened and
13633 # appended to by config.status. When coming back to configure, we
13634 # need to make the FD available again.
13635 if test "$no_create" != yes; then
13637 ac_config_status_args
=
13638 test "$silent" = yes &&
13639 ac_config_status_args
="$ac_config_status_args --quiet"
13641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13644 # would make configure fail if this is the last instruction.
13645 $ac_cs_success ||
{ (exit 1); exit 1; }