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 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2815 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2816 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 save_CFLAGS
="$CFLAGS"
2820 CFLAGS
="-Wno-long-long"
2821 cat >conftest.
$ac_ext <<_ACEOF
2824 cat confdefs.h
>>conftest.
$ac_ext
2825 cat >>conftest.
$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2836 rm -f conftest.
$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1
>conftest.err
2842 cat conftest.err
>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; } &&
2851 { ac_try
='test -s conftest.$ac_objext'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; }; then
2857 ac_cv_prog_cc_no_long_long
=yes
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.
$ac_ext >&5
2862 ac_cv_prog_cc_no_long_long
=no
2864 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2865 CFLAGS
="$save_CFLAGS"
2867 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2868 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2871 ac_cpp
='$CPP $CPPFLAGS'
2872 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2875 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2881 if test -z "$CPP"; then
2882 if test "${ac_cv_prog_CPP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 # Double quotes because CPP needs to be expanded
2886 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 for ac_c_preproc_warn_flag
in '' yes
2891 # Use a header file that comes with gcc, so configuring glibc
2892 # with a fresh cross-compiler works.
2893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894 # <limits.h> exists even on freestanding compilers.
2895 # On the NeXT, cc -E runs the code through the compiler's parser,
2896 # not just through cpp. "Syntax error" is here to catch this case.
2897 cat >conftest.
$ac_ext <<_ACEOF
2900 cat confdefs.h
>>conftest.
$ac_ext
2901 cat >>conftest.
$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2904 # include <limits.h>
2906 # include <assert.h>
2910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2911 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2913 grep -v '^ *+' conftest.er1
>conftest.err
2915 cat conftest.err
>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } >/dev
/null
; then
2918 if test -s conftest.err
; then
2919 ac_cpp_err
=$ac_c_preproc_warn_flag
2920 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2927 if test -z "$ac_cpp_err"; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.
$ac_ext >&5
2933 # Broken: fails on valid input.
2936 rm -f conftest.err conftest.
$ac_ext
2938 # OK, works on sane cases. Now check whether non-existent headers
2939 # can be detected and how.
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <ac_nonexistent.h>
2948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1
>conftest.err
2953 cat conftest.err
>&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev
/null
; then
2956 if test -s conftest.err
; then
2957 ac_cpp_err
=$ac_c_preproc_warn_flag
2958 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2965 if test -z "$ac_cpp_err"; then
2966 # Broken: success on invalid input.
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.
$ac_ext >&5
2972 # Passes both tests.
2976 rm -f conftest.err conftest.
$ac_ext
2979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2980 rm -f conftest.err conftest.
$ac_ext
2981 if $ac_preproc_ok; then
2993 echo "$as_me:$LINENO: result: $CPP" >&5
2994 echo "${ECHO_T}$CPP" >&6
2996 for ac_c_preproc_warn_flag
in '' yes
2998 # Use a header file that comes with gcc, so configuring glibc
2999 # with a fresh cross-compiler works.
3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3001 # <limits.h> exists even on freestanding compilers.
3002 # On the NeXT, cc -E runs the code through the compiler's parser,
3003 # not just through cpp. "Syntax error" is here to catch this case.
3004 cat >conftest.
$ac_ext <<_ACEOF
3007 cat confdefs.h
>>conftest.
$ac_ext
3008 cat >>conftest.
$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3011 # include <limits.h>
3013 # include <assert.h>
3017 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3020 grep -v '^ *+' conftest.er1
>conftest.err
3022 cat conftest.err
>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } >/dev
/null
; then
3025 if test -s conftest.err
; then
3026 ac_cpp_err
=$ac_c_preproc_warn_flag
3027 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3034 if test -z "$ac_cpp_err"; then
3037 echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.
$ac_ext >&5
3040 # Broken: fails on valid input.
3043 rm -f conftest.err conftest.
$ac_ext
3045 # OK, works on sane cases. Now check whether non-existent headers
3046 # can be detected and how.
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3056 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3058 grep -v '^ *+' conftest.er1
>conftest.err
3060 cat conftest.err
>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); } >/dev
/null
; then
3063 if test -s conftest.err
; then
3064 ac_cpp_err
=$ac_c_preproc_warn_flag
3065 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3072 if test -z "$ac_cpp_err"; then
3073 # Broken: success on invalid input.
3076 echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.
$ac_ext >&5
3079 # Passes both tests.
3083 rm -f conftest.err conftest.
$ac_ext
3086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3087 rm -f conftest.err conftest.
$ac_ext
3088 if $ac_preproc_ok; then
3091 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3092 See \`config.log' for more details." >&5
3093 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&2;}
3095 { (exit 1); exit 1; }; }
3099 ac_cpp
='$CPP $CPPFLAGS'
3100 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking for inline" >&5
3105 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3106 if test "${ac_cv_c_inline+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 for ac_kw
in inline __inline__ __inline
; do
3111 cat >conftest.
$ac_ext <<_ACEOF
3114 cat confdefs.h
>>conftest.
$ac_ext
3115 cat >>conftest.
$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3119 static $ac_kw foo_t static_foo () {return 0; }
3120 $ac_kw foo_t foo () {return 0; }
3124 rm -f conftest.
$ac_objext
3125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126 (eval $ac_compile) 2>conftest.er1
3128 grep -v '^ *+' conftest.er1
>conftest.err
3130 cat conftest.err
>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); } &&
3133 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try
='test -s conftest.$ac_objext'
3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; }; then
3145 ac_cv_c_inline
=$ac_kw; break
3147 echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.
$ac_ext >&5
3151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3155 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156 echo "${ECHO_T}$ac_cv_c_inline" >&6
3159 case $ac_cv_c_inline in
3162 case $ac_cv_c_inline in
3164 *) ac_val
=$ac_cv_c_inline;;
3166 cat >>confdefs.h
<<_ACEOF
3168 #define inline $ac_val
3175 echo "$as_me:$LINENO: checking for long long int" >&5
3176 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3177 if test "${ac_cv_c_long_long+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 cat >conftest.
$ac_ext <<_ACEOF
3183 cat confdefs.h
>>conftest.
$ac_ext
3184 cat >>conftest.
$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3195 rm -f conftest.
$ac_objext
3196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>conftest.er1
3199 grep -v '^ *+' conftest.er1
>conftest.err
3201 cat conftest.err
>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try
='test -s conftest.$ac_objext'
3211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; }; then
3216 ac_cv_c_long_long
=yes
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.
$ac_ext >&5
3221 ac_cv_c_long_long
=no
3223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3225 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3226 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3227 if test $ac_cv_c_long_long = yes; then
3229 cat >>confdefs.h
<<\_ACEOF
3230 #define HAVE_LONG_LONG 1
3234 echo "$as_me:$LINENO: checking for __int64" >&5
3235 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3236 if test "${ac_cv_c___int64+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cat >conftest.
$ac_ext <<_ACEOF
3242 cat confdefs.h
>>conftest.
$ac_ext
3243 cat >>conftest.
$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3254 rm -f conftest.
$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3258 grep -v '^ *+' conftest.er1
>conftest.err
3260 cat conftest.err
>&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try
='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.
$ac_ext >&5
3282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3284 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3285 echo "${ECHO_T}$ac_cv_c___int64" >&6
3286 if test $ac_cv_c___int64 = yes; then
3288 cat >>confdefs.h
<<\_ACEOF
3289 #define HAVE___INT64 1
3294 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3295 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3296 if test "${gcc_cv_c__bool+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 cat >conftest.
$ac_ext <<_ACEOF
3302 cat confdefs.h
>>conftest.
$ac_ext
3303 cat >>conftest.
$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3314 rm -f conftest.
$ac_objext
3315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316 (eval $ac_compile) 2>conftest.er1
3318 grep -v '^ *+' conftest.er1
>conftest.err
3320 cat conftest.err
>&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; } &&
3329 { ac_try
='test -s conftest.$ac_objext'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; }; then
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.
$ac_ext >&5
3342 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3345 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3346 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3347 if test $gcc_cv_c__bool = yes; then
3349 cat >>confdefs.h
<<\_ACEOF
3350 #define HAVE__BOOL 1
3356 # sizeof(char) is 1 by definition.
3357 echo "$as_me:$LINENO: checking size of void *" >&5
3358 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3359 if test "${ac_cv_sizeof_void_p+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3363 cat >conftest.
$ac_ext <<_ACEOF
3366 cat confdefs.h
>>conftest.
$ac_ext
3367 cat >>conftest.
$ac_ext <<_ACEOF
3368 /* end confdefs.h. */
3369 #include "confdefs.h"
3370 #include <sys/types.h>
3376 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3381 rm -f conftest.
$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3385 grep -v '^ *+' conftest.er1
>conftest.err
3387 cat conftest.err
>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; } &&
3396 { ac_try
='test -s conftest.$ac_objext'
3397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_sizeof_void_p
=$ac_size
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.
$ac_ext >&5
3408 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3409 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3414 if test x
$ac_cv_sizeof_void_p = x
; then
3415 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3416 echo "$as_me: error: cannot determine a size for void *" >&2;}
3417 { (exit 1); exit 1; }; }
3419 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3420 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3422 cat >>confdefs.h
<<_ACEOF
3423 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3427 echo "$as_me:$LINENO: checking size of short" >&5
3428 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3429 if test "${ac_cv_sizeof_short+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3446 switch (0) case 0: case (sizeof (short) == $ac_size):;
3451 rm -f conftest.
$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453 (eval $ac_compile) 2>conftest.er1
3455 grep -v '^ *+' conftest.er1
>conftest.err
3457 cat conftest.err
>&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try
='test -s conftest.$ac_objext'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; }; then
3472 ac_cv_sizeof_short
=$ac_size
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.
$ac_ext >&5
3478 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3479 if test x
$ac_cv_sizeof_short != x
; then break; fi
3484 if test x
$ac_cv_sizeof_short = x
; then
3485 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3486 echo "$as_me: error: cannot determine a size for short" >&2;}
3487 { (exit 1); exit 1; }; }
3489 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3490 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3492 cat >>confdefs.h
<<_ACEOF
3493 #define SIZEOF_SHORT $ac_cv_sizeof_short
3497 echo "$as_me:$LINENO: checking size of int" >&5
3498 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3499 if test "${ac_cv_sizeof_int+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3503 cat >conftest.
$ac_ext <<_ACEOF
3506 cat confdefs.h
>>conftest.
$ac_ext
3507 cat >>conftest.
$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 #include "confdefs.h"
3510 #include <sys/types.h>
3516 switch (0) case 0: case (sizeof (int) == $ac_size):;
3521 rm -f conftest.
$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523 (eval $ac_compile) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1
>conftest.err
3527 cat conftest.err
>&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } &&
3530 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try
='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_sizeof_int
=$ac_size
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.
$ac_ext >&5
3548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3549 if test x
$ac_cv_sizeof_int != x
; then break; fi
3554 if test x
$ac_cv_sizeof_int = x
; then
3555 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3556 echo "$as_me: error: cannot determine a size for int" >&2;}
3557 { (exit 1); exit 1; }; }
3559 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3560 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3562 cat >>confdefs.h
<<_ACEOF
3563 #define SIZEOF_INT $ac_cv_sizeof_int
3567 echo "$as_me:$LINENO: checking size of long" >&5
3568 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3569 if test "${ac_cv_sizeof_long+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3573 cat >conftest.
$ac_ext <<_ACEOF
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3586 switch (0) case 0: case (sizeof (long) == $ac_size):;
3591 rm -f conftest.
$ac_objext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593 (eval $ac_compile) 2>conftest.er1
3595 grep -v '^ *+' conftest.er1
>conftest.err
3597 cat conftest.err
>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try
='test -s conftest.$ac_objext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_cv_sizeof_long
=$ac_size
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3619 if test x
$ac_cv_sizeof_long != x
; then break; fi
3624 if test x
$ac_cv_sizeof_long = x
; then
3625 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3626 echo "$as_me: error: cannot determine a size for long" >&2;}
3627 { (exit 1); exit 1; }; }
3629 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3630 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3632 cat >>confdefs.h
<<_ACEOF
3633 #define SIZEOF_LONG $ac_cv_sizeof_long
3637 if test $ac_cv_c_long_long = yes; then
3638 echo "$as_me:$LINENO: checking size of long long" >&5
3639 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3640 if test "${ac_cv_sizeof_long_long+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3644 cat >conftest.
$ac_ext <<_ACEOF
3647 cat confdefs.h
>>conftest.
$ac_ext
3648 cat >>conftest.
$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include "confdefs.h"
3651 #include <sys/types.h>
3657 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3662 rm -f conftest.
$ac_objext
3663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3664 (eval $ac_compile) 2>conftest.er1
3666 grep -v '^ *+' conftest.er1
>conftest.err
3668 cat conftest.err
>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try
='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 ac_cv_sizeof_long_long
=$ac_size
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.
$ac_ext >&5
3689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3690 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3695 if test x
$ac_cv_sizeof_long_long = x
; then
3696 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3697 echo "$as_me: error: cannot determine a size for long long" >&2;}
3698 { (exit 1); exit 1; }; }
3700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3701 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3703 cat >>confdefs.h
<<_ACEOF
3704 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3709 if test $ac_cv_c___int64 = yes; then
3710 echo "$as_me:$LINENO: checking size of __int64" >&5
3711 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3712 if test "${ac_cv_sizeof___int64+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3716 cat >conftest.
$ac_ext <<_ACEOF
3719 cat confdefs.h
>>conftest.
$ac_ext
3720 cat >>conftest.
$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include "confdefs.h"
3723 #include <sys/types.h>
3729 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3734 rm -f conftest.
$ac_objext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736 (eval $ac_compile) 2>conftest.er1
3738 grep -v '^ *+' conftest.er1
>conftest.err
3740 cat conftest.err
>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try
='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_sizeof___int64
=$ac_size
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.
$ac_ext >&5
3761 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3762 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3767 if test x
$ac_cv_sizeof___int64 = x
; then
3768 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3769 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3770 { (exit 1); exit 1; }; }
3772 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3773 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3775 cat >>confdefs.h
<<_ACEOF
3776 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3782 # ---------------------
3783 # Warnings and checking
3784 # ---------------------
3787 if test $ac_cv_prog_cc_no_long_long = yes ; then
3788 strict1_warn
="-pedantic -Wno-long-long"
3792 # If the native compiler is GCC, we can enable warnings even in stage1.
3793 # That's useful for people building cross-compilers, or just running a
3796 if test "x$GCC" = "xyes"; then
3797 warn_cflags
='$(GCC_WARN_CFLAGS)'
3801 # Enable -Werror in bootstrap stage2 and later.
3802 # Change the default to "no" on release branches.
3803 # Check whether --enable-werror or --disable-werror was given.
3804 if test "${enable_werror+set}" = set; then
3805 enableval
="$enable_werror"
3810 if test x
$enable_werror = xyes
; then
3815 # Enable expensive internal checks
3816 # Check whether --enable-checking or --disable-checking was given.
3817 if test "${enable_checking+set}" = set; then
3818 enableval
="$enable_checking"
3822 ac_rtlflag_checking
=
3824 ac_gc_always_collect
=
3826 case "${enableval}" in
3827 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3828 ac_rtlflag_checking
=1 ;;
3830 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3831 set fnord
$enableval; shift
3836 misc
) ac_checking
=1 ;;
3837 tree
) ac_tree_checking
=1 ;;
3838 rtlflag
) ac_rtlflag_checking
=1 ;;
3839 rtl
) ac_rtl_checking
=1 ;;
3840 gc
) ac_gc_checking
=1 ;;
3841 gcac
) ac_gc_always_collect
=1 ;;
3842 fold) ac_fold_checking
=1 ;;
3843 valgrind
) ac_checking_valgrind
=1 ;;
3844 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3845 echo "$as_me: error: unknown check category $check" >&2;}
3846 { (exit 1); exit 1; }; } ;;
3853 # Enable some checks by default for development versions of GCC
3854 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3857 if test x
$ac_checking != x
; then
3859 cat >>confdefs.h
<<\_ACEOF
3860 #define ENABLE_CHECKING 1
3863 nocommon_flag
=-fno-common
3866 if test x
$ac_tree_checking != x
; then
3868 cat >>confdefs.h
<<\_ACEOF
3869 #define ENABLE_TREE_CHECKING 1
3873 if test x
$ac_rtl_checking != x
; then
3875 cat >>confdefs.h
<<\_ACEOF
3876 #define ENABLE_RTL_CHECKING 1
3880 if test x
$ac_rtlflag_checking != x
; then
3882 cat >>confdefs.h
<<\_ACEOF
3883 #define ENABLE_RTL_FLAG_CHECKING 1
3887 if test x
$ac_gc_checking != x
; then
3889 cat >>confdefs.h
<<\_ACEOF
3890 #define ENABLE_GC_CHECKING 1
3894 if test x
$ac_gc_always_collect != x
; then
3896 cat >>confdefs.h
<<\_ACEOF
3897 #define ENABLE_GC_ALWAYS_COLLECT 1
3901 if test x
$ac_fold_checking != x
; then
3903 cat >>confdefs.h
<<\_ACEOF
3904 #define ENABLE_FOLD_CHECKING 1
3908 valgrind_path_defines
=
3912 echo "$as_me:$LINENO: checking for egrep" >&5
3913 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3914 if test "${ac_cv_prog_egrep+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3918 then ac_cv_prog_egrep
='grep -E'
3919 else ac_cv_prog_egrep
='egrep'
3922 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3923 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3924 EGREP
=$ac_cv_prog_egrep
3927 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3928 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3929 if test "${ac_cv_header_stdc+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 cat >conftest.
$ac_ext <<_ACEOF
3935 cat confdefs.h
>>conftest.
$ac_ext
3936 cat >>conftest.
$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3951 rm -f conftest.
$ac_objext
3952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953 (eval $ac_compile) 2>conftest.er1
3955 grep -v '^ *+' conftest.er1
>conftest.err
3957 cat conftest.err
>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } &&
3960 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); }; } &&
3966 { ac_try
='test -s conftest.$ac_objext'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; }; then
3972 ac_cv_header_stdc
=yes
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.
$ac_ext >&5
3977 ac_cv_header_stdc
=no
3979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3981 if test $ac_cv_header_stdc = yes; then
3982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 cat >conftest.
$ac_ext <<_ACEOF
3986 cat confdefs.h
>>conftest.
$ac_ext
3987 cat >>conftest.
$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 $EGREP "memchr" >/dev
/null
2>&1; then
3996 ac_cv_header_stdc
=no
4002 if test $ac_cv_header_stdc = yes; then
4003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "free" >/dev
/null
2>&1; then
4017 ac_cv_header_stdc
=no
4023 if test $ac_cv_header_stdc = yes; then
4024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025 if test "$cross_compiling" = yes; then
4028 cat >conftest.
$ac_ext <<_ACEOF
4031 cat confdefs.h
>>conftest.
$ac_ext
4032 cat >>conftest.
$ac_ext <<_ACEOF
4033 /* end confdefs.h. */
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4039 # define ISLOWER(c) \
4040 (('a' <= (c) && (c) <= 'i') \
4041 || ('j' <= (c) && (c) <= 'r') \
4042 || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4051 for (i = 0; i < 256; i++)
4052 if (XOR (islower (i), ISLOWER (i))
4053 || toupper (i) != TOUPPER (i))
4058 rm -f conftest
$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>&5
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4071 echo "$as_me: program exited with status $ac_status" >&5
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.
$ac_ext >&5
4076 ac_cv_header_stdc
=no
4078 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4084 if test $ac_cv_header_stdc = yes; then
4086 cat >>confdefs.h
<<\_ACEOF
4087 #define STDC_HEADERS 1
4092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4103 inttypes.h stdint.h unistd.h
4105 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 cat >conftest.
$ac_ext <<_ACEOF
4114 cat confdefs.h
>>conftest.
$ac_ext
4115 cat >>conftest.
$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 $ac_includes_default
4119 #include <$ac_header>
4121 rm -f conftest.
$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123 (eval $ac_compile) 2>conftest.er1
4125 grep -v '^ *+' conftest.er1
>conftest.err
4127 cat conftest.err
>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } &&
4130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try
='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 eval "$as_ac_Header=yes"
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 eval "$as_ac_Header=no"
4149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4152 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4154 cat >>confdefs.h
<<_ACEOF
4155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4163 if test "${ac_cv_header_valgrind_h+set}" = set; then
4164 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4165 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4166 if test "${ac_cv_header_valgrind_h+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4169 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4170 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4172 # Is the header compilable?
4173 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4174 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4175 cat >conftest.
$ac_ext <<_ACEOF
4178 cat confdefs.h
>>conftest.
$ac_ext
4179 cat >>conftest.
$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 $ac_includes_default
4182 #include <valgrind.h>
4184 rm -f conftest.
$ac_objext
4185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4186 (eval $ac_compile) 2>conftest.er1
4188 grep -v '^ *+' conftest.er1
>conftest.err
4190 cat conftest.err
>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try
='test -s conftest.$ac_objext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_header_compiler
=yes
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.
$ac_ext >&5
4210 ac_header_compiler
=no
4212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4214 echo "${ECHO_T}$ac_header_compiler" >&6
4216 # Is the header present?
4217 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4218 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4219 cat >conftest.
$ac_ext <<_ACEOF
4222 cat confdefs.h
>>conftest.
$ac_ext
4223 cat >>conftest.
$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 #include <valgrind.h>
4227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4230 grep -v '^ *+' conftest.er1
>conftest.err
4232 cat conftest.err
>&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } >/dev
/null
; then
4235 if test -s conftest.err
; then
4236 ac_cpp_err
=$ac_c_preproc_warn_flag
4237 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4244 if test -z "$ac_cpp_err"; then
4245 ac_header_preproc
=yes
4247 echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.
$ac_ext >&5
4250 ac_header_preproc
=no
4252 rm -f conftest.err conftest.
$ac_ext
4253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4254 echo "${ECHO_T}$ac_header_preproc" >&6
4256 # So? What about this header?
4257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4259 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4260 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4262 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4263 ac_header_preproc
=yes
4266 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4267 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4268 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4269 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4270 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4271 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4272 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4273 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4274 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4275 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4276 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4277 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4280 ## ------------------------------------------ ##
4281 ## Report this to the AC_PACKAGE_NAME lists. ##
4282 ## ------------------------------------------ ##
4285 sed "s/^/$as_me: WARNING: /" >&2
4288 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4289 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4290 if test "${ac_cv_header_valgrind_h+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 ac_cv_header_valgrind_h
=$ac_header_preproc
4295 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4296 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4299 if test $ac_cv_header_valgrind_h = yes; then
4307 if test x
$ac_checking_valgrind != x
; then
4308 # It is certainly possible that there's valgrind but no valgrind.h.
4309 # GCC relies on making annotations so we must have both.
4310 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4311 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4312 cat >conftest.
$ac_ext <<_ACEOF
4315 cat confdefs.h
>>conftest.
$ac_ext
4316 cat >>conftest.
$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 #include <valgrind/memcheck.h>
4319 #ifndef VALGRIND_DISCARD
4320 #error VALGRIND_DISCARD not defined
4323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4324 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1
>conftest.err
4328 cat conftest.err
>&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev
/null
; then
4331 if test -s conftest.err
; then
4332 ac_cpp_err
=$ac_c_preproc_warn_flag
4333 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4340 if test -z "$ac_cpp_err"; then
4341 gcc_cv_header_valgrind_memcheck_h
=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.
$ac_ext >&5
4346 gcc_cv_header_valgrind_memcheck_h
=no
4348 rm -f conftest.err conftest.
$ac_ext
4349 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4350 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4351 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4352 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4353 cat >conftest.
$ac_ext <<_ACEOF
4356 cat confdefs.h
>>conftest.
$ac_ext
4357 cat >>conftest.
$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 #include <memcheck.h>
4360 #ifndef VALGRIND_DISCARD
4361 #error VALGRIND_DISCARD not defined
4364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4367 grep -v '^ *+' conftest.er1
>conftest.err
4369 cat conftest.err
>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev
/null
; then
4372 if test -s conftest.err
; then
4373 ac_cpp_err
=$ac_c_preproc_warn_flag
4374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4381 if test -z "$ac_cpp_err"; then
4382 gcc_cv_header_memcheck_h
=yes
4384 echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.
$ac_ext >&5
4387 gcc_cv_header_memcheck_h
=no
4389 rm -f conftest.err conftest.
$ac_ext
4390 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4391 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4393 # Prepare PATH_SEPARATOR.
4394 # The user is always right.
4395 if test "${PATH_SEPARATOR+set}" != set; then
4396 echo "#! /bin/sh" >conf$$.sh
4397 echo "exit 0" >>conf$$.sh
4399 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4407 # Find out how to test for executable files. Don't use a zero-byte file,
4408 # as systems may use methods other than mode bits to determine executability.
4409 cat >conf$$.
file <<_ASEOF
4413 chmod +x conf$$.
file
4414 if test -x conf$$.
file >/dev
/null
2>&1; then
4415 ac_executable_p
="test -x"
4417 ac_executable_p
="test -f"
4421 # Extract the first word of "valgrind", so it can be a program name with args.
4422 set dummy valgrind
; ac_word
=$2
4423 echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425 if test "${ac_cv_path_valgrind_path+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 case "$valgrind_path" in
4430 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4433 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4434 for ac_dir
in $PATH; do
4436 test -z "$ac_dir" && ac_dir
=.
4437 for ac_exec_ext
in '' $ac_executable_extensions; do
4438 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4439 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4440 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4450 valgrind_path
="$ac_cv_path_valgrind_path"
4451 if test -n "$valgrind_path"; then
4452 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4453 echo "${ECHO_T}$valgrind_path" >&6
4455 echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4459 if test "x$valgrind_path" = "x" \
4460 ||
(test $have_valgrind_h = no \
4461 && test $gcc_cv_header_memcheck_h = no \
4462 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4463 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4464 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4465 { (exit 1); exit 1; }; }
4467 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4468 valgrind_command
="$valgrind_path -q"
4470 cat >>confdefs.h
<<\_ACEOF
4471 #define ENABLE_VALGRIND_CHECKING 1
4474 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4476 cat >>confdefs.h
<<\_ACEOF
4477 #define HAVE_VALGRIND_MEMCHECK_H 1
4481 if test $gcc_cv_header_memcheck_h = yes; then
4483 cat >>confdefs.h
<<\_ACEOF
4484 #define HAVE_MEMCHECK_H 1
4492 # Enable code coverage collection
4493 # Check whether --enable-coverage or --disable-coverage was given.
4494 if test "${enable_coverage+set}" = set; then
4495 enableval
="$enable_coverage"
4496 case "${enableval}" in
4498 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4501 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4504 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4505 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4506 { (exit 1); exit 1; }; }
4514 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4515 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4516 enableval
="$enable_gather_detailed_mem_stats"
4519 enable_gather_detailed_mem_stats
=no
4521 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4523 cat >>confdefs.h
<<\_ACEOF
4524 #define GATHER_STATISTICS 1
4529 # -------------------------------
4530 # Miscenalleous configure options
4531 # -------------------------------
4535 # Check whether --with-stabs or --without-stabs was given.
4536 if test "${with_stabs+set}" = set; then
4537 withval
="$with_stabs"
4543 # Determine whether or not multilibs are enabled.
4544 # Check whether --enable-multilib or --disable-multilib was given.
4545 if test "${enable_multilib+set}" = set; then
4546 enableval
="$enable_multilib"
4553 # Enable __cxa_atexit for C++.
4554 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4555 if test "${enable___cxa_atexit+set}" = set; then
4556 enableval
="$enable___cxa_atexit"
4561 # Pass with no value to take the default
4562 # Pass with a value to specify a thread package
4563 # Check whether --enable-threads or --disable-threads was given.
4564 if test "${enable_threads+set}" = set; then
4565 enableval
="$enable_threads"
4570 # Save in case it gets overwritten in config.gcc
4571 enable_threads_flag
=$enable_threads
4573 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4574 if test "${enable_objc_gc+set}" = set; then
4575 enableval
="$enable_objc_gc"
4576 if test x
$enable_objc_gc = xno
; then
4586 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4587 if test "${with_dwarf2+set}" = set; then
4588 withval
="$with_dwarf2"
4589 dwarf2
="$with_dwarf2"
4594 # Check whether --enable-shared or --disable-shared was given.
4595 if test "${enable_shared+set}" = set; then
4596 enableval
="$enable_shared"
4598 case $enable_shared in
4602 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4603 for pkg
in $enableval; do
4604 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4618 # Check whether --with-sysroot or --without-sysroot was given.
4619 if test "${with_sysroot+set}" = set; then
4620 withval
="$with_sysroot"
4622 case ${with_sysroot} in
4623 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4624 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4627 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4628 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4630 if test "x$exec_prefix" = xNONE
; then
4631 if test "x$prefix" = xNONE
; then
4632 test_prefix
=/usr
/local
4637 test_prefix
=$exec_prefix
4639 case ${TARGET_SYSTEM_ROOT} in
4640 "${test_prefix}"|
"${test_prefix}/"*|\
4641 '${exec_prefix}'|
'${exec_prefix}/'*)
4642 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4643 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4650 TARGET_SYSTEM_ROOT_DEFINE
=
4651 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4658 # Build with intermodule optimisations
4659 # Check whether --enable-intermodule or --disable-intermodule was given.
4660 if test "${enable_intermodule+set}" = set; then
4661 enableval
="$enable_intermodule"
4662 case ${enable_intermodule} in
4663 yes) onestep
="-onestep";;
4671 # Sanity check enable_languages in case someone does not run the toplevel
4672 # configure # script.
4673 # Check whether --enable-languages or --disable-languages was given.
4674 if test "${enable_languages+set}" = set; then
4675 enableval
="$enable_languages"
4676 case ,${enable_languages}, in
4678 # go safe -- we cannot be much sure without the toplevel
4680 # analysis of which target libs are present and usable
4684 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4685 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4686 { (exit 1); exit 1; }; }
4691 enable_languages
=c
,${enable_languages}
4699 for lang
in ${srcdir}/*/config-lang.
in
4702 # The odd quoting in the next line works around
4703 # an apparent bug in bash 1.12 on linux.
4704 ${srcdir}/[*]/config-lang.
in) ;;
4706 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4707 if test "x$lang_alias" = x
4709 echo "$lang doesn't set \$language." 1>&2
4712 case ",$enable_languages," in
4714 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4721 # -------------------------
4722 # Checks for other programs
4723 # -------------------------
4725 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4726 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4727 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4728 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 cat >conftest.
make <<\_ACEOF
4733 @
echo 'ac_maketemp="$(MAKE)"'
4735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4736 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4737 if test -n "$ac_maketemp"; then
4738 eval ac_cv_prog_make_
${ac_make}_set
=yes
4740 eval ac_cv_prog_make_
${ac_make}_set
=no
4744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4745 echo "$as_me:$LINENO: result: yes" >&5
4746 echo "${ECHO_T}yes" >&6
4749 echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4751 SET_MAKE
="MAKE=${MAKE-make}"
4755 # Find some useful tools
4756 for ac_prog
in gawk mawk nawk
awk
4758 # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy
$ac_prog; ac_word
=$2
4760 echo "$as_me:$LINENO: checking for $ac_word" >&5
4761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762 if test "${ac_cv_prog_AWK+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 if test -n "$AWK"; then
4766 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir
=.
4773 for ac_exec_ext
in '' $ac_executable_extensions; do
4774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_AWK
="$ac_prog"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 if test -n "$AWK"; then
4786 echo "$as_me:$LINENO: result: $AWK" >&5
4787 echo "${ECHO_T}$AWK" >&6
4789 echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6
4793 test -n "$AWK" && break
4796 # We need awk to run opts.sh (to create options.c and options.h).
4797 # Bail out if it's missing.
4799 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4800 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4804 echo "$as_me:$LINENO: checking whether ln works" >&5
4805 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4806 if test "${gcc_cv_prog_LN+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 rm -f conftestdata_t
4810 echo >conftestdata_f
4811 if ln conftestdata_f conftestdata_t
2>/dev
/null
4815 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4817 gcc_cv_prog_LN
="ln -s"
4822 rm -f conftestdata_f conftestdata_t
4825 LN
="$gcc_cv_prog_LN"
4826 if test "$gcc_cv_prog_LN" = "ln"; then
4827 echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6
4830 if test "$gcc_cv_prog_LN" = "ln -s"; then
4831 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4832 echo "${ECHO_T}no, using ln -s" >&6
4834 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4835 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4839 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4840 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4841 if test "${gcc_cv_prog_LN_S+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 rm -f conftestdata_t
4845 echo >conftestdata_f
4846 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4848 gcc_cv_prog_LN_S
="ln -s"
4850 if ln conftestdata_f conftestdata_t
2>/dev
/null
4857 rm -f conftestdata_f conftestdata_t
4860 LN_S
="$gcc_cv_prog_LN_S"
4861 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4862 echo "$as_me:$LINENO: result: yes" >&5
4863 echo "${ECHO_T}yes" >&6
4865 if test "$gcc_cv_prog_LN_S" = "ln"; then
4866 echo "$as_me:$LINENO: result: no, using ln" >&5
4867 echo "${ECHO_T}no, using ln" >&6
4869 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4870 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4874 if test -n "$ac_tool_prefix"; then
4875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4876 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4877 echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879 if test "${ac_cv_prog_RANLIB+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 if test -n "$RANLIB"; then
4883 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir
=.
4890 for ac_exec_ext
in '' $ac_executable_extensions; do
4891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 RANLIB
=$ac_cv_prog_RANLIB
4902 if test -n "$RANLIB"; then
4903 echo "$as_me:$LINENO: result: $RANLIB" >&5
4904 echo "${ECHO_T}$RANLIB" >&6
4906 echo "$as_me:$LINENO: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4911 if test -z "$ac_cv_prog_RANLIB"; then
4912 ac_ct_RANLIB
=$RANLIB
4913 # Extract the first word of "ranlib", so it can be a program name with args.
4914 set dummy ranlib
; ac_word
=$2
4915 echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$ac_ct_RANLIB"; then
4921 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir
=.
4928 for ac_exec_ext
in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4940 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4941 if test -n "$ac_ct_RANLIB"; then
4942 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4943 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4945 echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6
4949 RANLIB
=$ac_ct_RANLIB
4951 RANLIB
="$ac_cv_prog_RANLIB"
4954 # Find a good install program. We prefer a C program (faster),
4955 # so one script is as good as another. But avoid the broken or
4956 # incompatible versions:
4957 # SysV /etc/install, /usr/sbin/install
4958 # SunOS /usr/etc/install
4959 # IRIX /sbin/install
4961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4963 # ./install, which can be erroneously created by make from ./install.sh.
4964 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4965 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4966 if test -z "$INSTALL"; then
4967 if test "${ac_cv_path_install+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4971 for ac_dir
in $PATH; do
4972 # Account for people who put trailing slashes in PATH elements.
4974 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4976 # OSF1 and SCO ODT 3.0 have their own names for install.
4977 for ac_prog
in ginstall scoinst
install; do
4978 if test -f $ac_dir/$ac_prog; then
4979 if test $ac_prog = install &&
4980 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4981 # AIX install. It has an incompatible calling convention.
4982 # OSF/1 installbsd also uses dspmsg, but is usable.
4985 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL
="$ac_cv_path_install"
4999 # As a last resort, use the slow shell script. We don't cache a
5000 # path for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the path is relative.
5003 INSTALL
="$ac_install_sh"
5006 echo "$as_me:$LINENO: result: $INSTALL" >&5
5007 echo "${ECHO_T}$INSTALL" >&6
5009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010 # It thinks the first close brace ends the variable substitution.
5011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5013 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5016 # See if cmp has --ignore-initial.
5017 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5018 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5019 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 gcc_cv_prog_cmp_skip
=slowcompare
5025 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5026 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5029 gcc_cv_prog_cmp_skip
=gnucompare
5032 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5033 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5034 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5037 gcc_cv_prog_cmp_skip
=fastcompare
5044 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5045 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5046 make_compare_target
=$gcc_cv_prog_cmp_skip
5050 # See if we have the mktemp command.
5051 # Extract the first word of "mktemp", so it can be a program name with args.
5052 set dummy mktemp
; ac_word
=$2
5053 echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 if test -n "$have_mktemp_command"; then
5059 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068 ac_cv_prog_have_mktemp_command
="yes"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5078 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5079 if test -n "$have_mktemp_command"; then
5080 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5081 echo "${ECHO_T}$have_mktemp_command" >&6
5083 echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6
5088 # Do we have a single-tree copy of texinfo?
5089 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
5090 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
5091 gcc_cv_prog_makeinfo_modern
=yes
5092 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5093 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5095 # See if makeinfo has been installed and is modern enough
5096 # that we can use it.
5097 # Extract the first word of "makeinfo", so it can be a program name with args.
5098 set dummy makeinfo
; ac_word
=$2
5099 echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 if test -n "$MAKEINFO"; then
5105 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_MAKEINFO
="makeinfo"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 MAKEINFO
=$ac_cv_prog_MAKEINFO
5124 if test -n "$MAKEINFO"; then
5125 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5126 echo "${ECHO_T}$MAKEINFO" >&6
5128 echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5132 if test -n "$MAKEINFO"; then
5133 # Found it, now check the version.
5134 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5135 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5136 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5140 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5141 echo "configure:5141: version of makeinfo is $ac_prog_version" >&5
5142 case $ac_prog_version in
5143 '') gcc_cv_prog_makeinfo_modern
=no
;;
5145 gcc_cv_prog_makeinfo_modern
=yes;;
5146 *) gcc_cv_prog_makeinfo_modern
=no
;;
5150 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5151 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5153 gcc_cv_prog_makeinfo_modern
=no
5158 if test $gcc_cv_prog_makeinfo_modern = no
; then
5159 { echo "$as_me:$LINENO: WARNING:
5160 *** Makeinfo is missing or too old.
5161 *** Info documentation will not be built." >&5
5162 echo "$as_me: WARNING:
5163 *** Makeinfo is missing or too old.
5164 *** Info documentation will not be built." >&2;}
5170 # Is pod2man recent enough to regenerate manpages?
5171 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5172 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5173 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5174 echo "$as_me:$LINENO: result: yes" >&5
5175 echo "${ECHO_T}yes" >&6
5176 GENERATED_MANPAGES
=generated-manpages
5178 echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5184 if test -f $srcdir/..
/flex
/skel.c
; then
5185 FLEX
='$(objdir)/../flex/flex'
5187 # Extract the first word of "flex", so it can be a program name with args.
5188 set dummy flex
; ac_word
=$2
5189 echo "$as_me:$LINENO: checking for $ac_word" >&5
5190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5191 if test "${ac_cv_prog_FLEX+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 if test -n "$FLEX"; then
5195 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir
=.
5202 for ac_exec_ext
in '' $ac_executable_extensions; do
5203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_FLEX
="flex"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5214 FLEX
=$ac_cv_prog_FLEX
5215 if test -n "$FLEX"; then
5216 echo "$as_me:$LINENO: result: $FLEX" >&5
5217 echo "${ECHO_T}$FLEX" >&6
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5226 # The -L switch is so bison can find its skeleton file.
5227 if test -f $srcdir/..
/bison
/bison.simple
; then
5228 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5230 # Extract the first word of "bison", so it can be a program name with args.
5231 set dummy bison
; ac_word
=$2
5232 echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234 if test "${ac_cv_prog_BISON+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 if test -n "$BISON"; then
5238 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir
=.
5245 for ac_exec_ext
in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_BISON
="bison"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5257 BISON
=$ac_cv_prog_BISON
5258 if test -n "$BISON"; then
5259 echo "$as_me:$LINENO: result: $BISON" >&5
5260 echo "${ECHO_T}$BISON" >&6
5262 echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6
5268 # --------------------
5269 # Checks for C headers
5270 # --------------------
5272 echo "$as_me:$LINENO: checking for GNU C library" >&5
5273 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5274 if test "${gcc_cv_glibc+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 cat >conftest.
$ac_ext <<_ACEOF
5280 cat confdefs.h
>>conftest.
$ac_ext
5281 cat >>conftest.
$ac_ext <<_ACEOF
5282 /* end confdefs.h. */
5283 #include <features.h>
5288 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5289 #error Not a GNU C library system
5295 rm -f conftest.
$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297 (eval $ac_compile) 2>conftest.er1
5299 grep -v '^ *+' conftest.er1
>conftest.err
5301 cat conftest.err
>&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } &&
5304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try
='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.
$ac_ext >&5
5323 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5326 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5327 echo "${ECHO_T}$gcc_cv_glibc" >&6
5328 if test $gcc_cv_glibc = yes; then
5330 cat >>confdefs.h
<<\_ACEOF
5331 #define _GNU_SOURCE 1
5336 # Need to reject headers which give warnings, so that the -Werror bootstrap
5337 # works later. *sigh* This needs to come before all header checks.
5339 ac_c_preproc_warn_flag
=yes
5341 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5342 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5343 if test "${ac_cv_header_stdc+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.
$ac_ext <<_ACEOF
5349 cat confdefs.h
>>conftest.
$ac_ext
5350 cat >>conftest.
$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5365 rm -f conftest.
$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1
>conftest.err
5371 cat conftest.err
>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try
='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_header_stdc
=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.
$ac_ext >&5
5391 ac_cv_header_stdc
=no
5393 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5395 if test $ac_cv_header_stdc = yes; then
5396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5397 cat >conftest.
$ac_ext <<_ACEOF
5400 cat confdefs.h
>>conftest.
$ac_ext
5401 cat >>conftest.
$ac_ext <<_ACEOF
5402 /* end confdefs.h. */
5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5407 $EGREP "memchr" >/dev
/null
2>&1; then
5410 ac_cv_header_stdc
=no
5416 if test $ac_cv_header_stdc = yes; then
5417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5418 cat >conftest.
$ac_ext <<_ACEOF
5421 cat confdefs.h
>>conftest.
$ac_ext
5422 cat >>conftest.
$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5428 $EGREP "free" >/dev
/null
2>&1; then
5431 ac_cv_header_stdc
=no
5437 if test $ac_cv_header_stdc = yes; then
5438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5439 if test "$cross_compiling" = yes; then
5442 cat >conftest.
$ac_ext <<_ACEOF
5445 cat confdefs.h
>>conftest.
$ac_ext
5446 cat >>conftest.
$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5449 #if ((' ' & 0x0FF) == 0x020)
5450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5453 # define ISLOWER(c) \
5454 (('a' <= (c) && (c) <= 'i') \
5455 || ('j' <= (c) && (c) <= 'r') \
5456 || ('s' <= (c) && (c) <= 'z'))
5457 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5460 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5465 for (i = 0; i < 256; i++)
5466 if (XOR (islower (i), ISLOWER (i))
5467 || toupper (i) != TOUPPER (i))
5472 rm -f conftest
$ac_exeext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5474 (eval $ac_link) 2>&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: program exited with status $ac_status" >&5
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5490 ac_cv_header_stdc
=no
5492 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5498 if test $ac_cv_header_stdc = yes; then
5500 cat >>confdefs.h
<<\_ACEOF
5501 #define STDC_HEADERS 1
5506 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5508 if test "${ac_cv_header_time+set}" = set; then
5509 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 cat >conftest.
$ac_ext <<_ACEOF
5514 cat confdefs.h
>>conftest.
$ac_ext
5515 cat >>conftest.
$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include <sys/types.h>
5518 #include <sys/time.h>
5524 if ((struct tm *) 0)
5530 rm -f conftest.
$ac_objext
5531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5532 (eval $ac_compile) 2>conftest.er1
5534 grep -v '^ *+' conftest.er1
>conftest.err
5536 cat conftest.err
>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } &&
5539 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; } &&
5545 { ac_try
='test -s conftest.$ac_objext'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; }; then
5551 ac_cv_header_time
=yes
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.
$ac_ext >&5
5556 ac_cv_header_time
=no
5558 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5560 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5561 echo "${ECHO_T}$ac_cv_header_time" >&6
5562 if test $ac_cv_header_time = yes; then
5564 cat >>confdefs.h
<<\_ACEOF
5565 #define TIME_WITH_SYS_TIME 1
5570 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5571 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5572 if test "${ac_cv_header_stdbool_h+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <stdbool.h>
5590 rm -f conftest.
$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5594 grep -v '^ *+' conftest.er1
>conftest.err
5596 cat conftest.err
>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try
='test -s conftest.$ac_objext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_header_stdbool_h
=yes
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.
$ac_ext >&5
5616 ac_cv_header_stdbool_h
=no
5618 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5621 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5622 if test $ac_cv_header_stdbool_h = yes; then
5624 cat >>confdefs.h
<<\_ACEOF
5625 #define HAVE_STDBOOL_H 1
5630 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5631 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5632 if test "${gcc_cv_header_string+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 cat >conftest.
$ac_ext <<_ACEOF
5638 cat confdefs.h
>>conftest.
$ac_ext
5639 cat >>conftest.
$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5642 #include <strings.h>
5651 rm -f conftest.
$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653 (eval $ac_compile) 2>conftest.er1
5655 grep -v '^ *+' conftest.er1
>conftest.err
5657 cat conftest.err
>&5
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try
='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 gcc_cv_header_string
=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.
$ac_ext >&5
5677 gcc_cv_header_string
=no
5679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5682 echo "${ECHO_T}$gcc_cv_header_string" >&6
5683 if test $gcc_cv_header_string = yes; then
5685 cat >>confdefs.h
<<\_ACEOF
5686 #define STRING_WITH_STRINGS 1
5691 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5692 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5693 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5703 #include <sys/wait.h>
5705 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5708 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5716 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5721 rm -f conftest.
$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5725 grep -v '^ *+' conftest.er1
>conftest.err
5727 cat conftest.err
>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try
='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_header_sys_wait_h
=yes
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.
$ac_ext >&5
5747 ac_cv_header_sys_wait_h
=no
5749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5751 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5752 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5753 if test $ac_cv_header_sys_wait_h = yes; then
5755 cat >>confdefs.h
<<\_ACEOF
5756 #define HAVE_SYS_WAIT_H 1
5782 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5783 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5784 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5785 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5787 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5788 echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 cat >conftest.
$ac_ext <<_ACEOF
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <$ac_header>
5801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5804 grep -v '^ *+' conftest.er1
>conftest.err
5806 cat conftest.err
>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } >/dev
/null
; then
5809 if test -s conftest.err
; then
5810 ac_cpp_err
=$ac_c_preproc_warn_flag
5811 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5818 if test -z "$ac_cpp_err"; then
5819 eval "$as_ac_Header=yes"
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5824 eval "$as_ac_Header=no"
5826 rm -f conftest.err conftest.
$ac_ext
5828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5831 cat >>confdefs.h
<<_ACEOF
5832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5839 # Check for thread headers.
5840 echo "$as_me:$LINENO: checking for thread.h" >&5
5841 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5842 if test "${ac_cv_header_thread_h+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 cat >conftest.
$ac_ext <<_ACEOF
5848 cat confdefs.h
>>conftest.
$ac_ext
5849 cat >>conftest.
$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5854 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } >/dev
/null
; then
5861 if test -s conftest.err
; then
5862 ac_cpp_err
=$ac_c_preproc_warn_flag
5863 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5870 if test -z "$ac_cpp_err"; then
5871 ac_cv_header_thread_h
=yes
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.
$ac_ext >&5
5876 ac_cv_header_thread_h
=no
5878 rm -f conftest.err conftest.
$ac_ext
5880 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5881 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5882 if test $ac_cv_header_thread_h = yes; then
5888 echo "$as_me:$LINENO: checking for pthread.h" >&5
5889 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5890 if test "${ac_cv_header_pthread_h+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <pthread.h>
5901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5902 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5904 grep -v '^ *+' conftest.er1
>conftest.err
5906 cat conftest.err
>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } >/dev
/null
; then
5909 if test -s conftest.err
; then
5910 ac_cpp_err
=$ac_c_preproc_warn_flag
5911 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5918 if test -z "$ac_cpp_err"; then
5919 ac_cv_header_pthread_h
=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_cv_header_pthread_h
=no
5926 rm -f conftest.err conftest.
$ac_ext
5928 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5929 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5930 if test $ac_cv_header_pthread_h = yes; then
5937 # These tests can't be done till we know if we have limits.h.
5938 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5939 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5940 if test "${gcc_cv_decl_char_bit+set}" = set; then
5941 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 cat >conftest.
$ac_ext <<_ACEOF
5946 cat confdefs.h
>>conftest.
$ac_ext
5947 cat >>conftest.
$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #ifdef HAVE_LIMITS_H
5956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5957 $EGREP "found" >/dev
/null
2>&1; then
5958 gcc_cv_decl_char_bit
=yes
5960 gcc_cv_decl_char_bit
=no
5966 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5967 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5968 if test $gcc_cv_decl_char_bit = no
; then
5969 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5970 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5971 if test "${gcc_cv_c_nbby+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 while test $i -lt 65; do
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5988 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5989 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5995 rm -f conftest.
$ac_objext
5996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5997 (eval $ac_compile) 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } &&
6004 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; } &&
6010 { ac_try
='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 gcc_cv_c_nbby
=$i; break
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.
$ac_ext >&5
6022 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6025 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6028 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6029 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6030 if test $gcc_cv_c_nbby = failed
; then
6031 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6032 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6033 { (exit 1); exit 1; }; }
6036 cat >>confdefs.h
<<_ACEOF
6037 #define CHAR_BIT $gcc_cv_c_nbby
6042 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6043 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6044 if test "${ac_cv_c_bigendian+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 ac_cv_c_bigendian
=unknown
6048 # See if sys/param.h defines the BYTE_ORDER macro.
6049 cat >conftest.
$ac_ext <<_ACEOF
6052 cat confdefs.h
>>conftest.
$ac_ext
6053 cat >>conftest.
$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <sys/types.h>
6056 #include <sys/param.h>
6061 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6068 rm -f conftest.
$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; } &&
6083 { ac_try
='test -s conftest.$ac_objext'
6084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); }; }; then
6089 # It does; now see whether it defined to BIG_ENDIAN or not.
6090 cat >conftest.
$ac_ext <<_ACEOF
6093 cat confdefs.h
>>conftest.
$ac_ext
6094 cat >>conftest.
$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6096 #include <sys/types.h>
6097 #include <sys/param.h>
6102 #if BYTE_ORDER != BIG_ENDIAN
6109 rm -f conftest.
$ac_objext
6110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111 (eval $ac_compile) 2>conftest.er1
6113 grep -v '^ *+' conftest.er1
>conftest.err
6115 cat conftest.err
>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; } &&
6124 { ac_try
='test -s conftest.$ac_objext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_c_bigendian
=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.
$ac_ext >&5
6135 ac_cv_c_bigendian
=no
6137 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.
$ac_ext >&5
6143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 if test $ac_cv_c_bigendian = unknown
; then
6145 if test "$cross_compiling" = yes; then
6146 echo $ac_n "cross-compiling... " 2>&6
6148 cat >conftest.
$ac_ext <<_ACEOF
6151 cat confdefs.h
>>conftest.
$ac_ext
6152 cat >>conftest.
$ac_ext <<_ACEOF
6153 /* end confdefs.h. */
6155 /* Are we little or big endian? From Harbison&Steele. */
6159 char c[sizeof (long)];
6162 exit (u.c[sizeof (long) - 1] == 1);
6165 rm -f conftest
$ac_exeext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_c_bigendian
=no
6178 echo "$as_me: program exited with status $ac_status" >&5
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.
$ac_ext >&5
6183 ac_cv_c_bigendian
=yes
6185 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6189 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6190 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6191 if test $ac_cv_c_bigendian = unknown
; then
6192 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6193 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6195 cat >conftest.c
<<EOF
6196 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6197 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6198 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6199 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6200 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6201 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6202 int main() { _ascii (); _ebcdic (); return 0; }
6204 if test -f conftest.c
; then
6205 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6206 if test `grep -l BIGenDianSyS conftest.o` ; then
6207 echo $ac_n ' big endian probe OK, ' 1>&6
6208 ac_cv_c_bigendian
=yes
6210 if test `grep -l LiTTleEnDian conftest.o` ; then
6211 echo $ac_n ' little endian probe OK, ' 1>&6
6212 if test $ac_cv_c_bigendian = yes ; then
6213 ac_cv_c_bigendian
=unknown
;
6215 ac_cv_c_bigendian
=no
6218 echo $ac_n 'guessing bigendian ... ' >&6
6221 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6222 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6224 if test $ac_cv_c_bigendian = yes; then
6226 cat >>confdefs.h
<<\_ACEOF
6227 #define WORDS_BIGENDIAN 1
6231 cat >>confdefs.h
<<\_ACEOF
6232 #define HOST_WORDS_BIG_ENDIAN 1
6240 cat >>confdefs.h
<<_ACEOF
6241 #define BYTEORDER $BYTEORDER
6244 if test $ac_cv_c_bigendian = unknown
; then
6245 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6246 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6247 { (exit 1); exit 1; }; }
6255 # Stage specific cflags for build.
6259 if test x
$GCC = xyes
6261 stage1_cflags
="-Wa,-J"
6267 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6268 # sources; use -no-cpp-precomp to get to GNU cpp.
6269 # Apple's GCC has bugs in designated initializer handling, so disable
6271 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6276 # These libraries may be used by collect2.
6277 # We may need a special search path to get them linked.
6278 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6279 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6280 if test "${gcc_cv_collect2_libs+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 for libs
in '' -lld -lmld \
6285 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6286 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6289 cat >conftest.
$ac_ext <<_ACEOF
6292 cat confdefs.h
>>conftest.
$ac_ext
6293 cat >>conftest.
$ac_ext <<_ACEOF
6294 /* end confdefs.h. */
6296 /* Override any gcc2 internal prototype to avoid an error. */
6300 /* We use char because int might match the return type of a gcc2
6301 builtin and then its argument prototype would still apply. */
6311 rm -f conftest.
$ac_objext conftest
$ac_exeext
6312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>conftest.er1
6315 grep -v '^ *+' conftest.er1
>conftest.err
6317 cat conftest.err
>&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; } &&
6326 { ac_try
='test -s conftest$ac_exeext'
6327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
6332 gcc_cv_collect2_libs
="$libs"; break
6334 echo "$as_me: failed program was:" >&5
6335 sed 's/^/| /' conftest.
$ac_ext >&5
6338 rm -f conftest.err conftest.
$ac_objext \
6339 conftest
$ac_exeext conftest.
$ac_ext
6342 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6344 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6345 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6346 case $gcc_cv_collect2_libs in
6348 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6352 # When building Ada code on Alpha, we need exc_resume which is usually in
6353 # -lexc. So test for it.
6356 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6357 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6358 if test "${ac_cv_search_exc_resume+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_func_search_save_LIBS
=$LIBS
6362 ac_cv_search_exc_resume
=no
6363 cat >conftest.
$ac_ext <<_ACEOF
6366 cat confdefs.h
>>conftest.
$ac_ext
6367 cat >>conftest.
$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6370 /* Override any gcc2 internal prototype to avoid an error. */
6374 /* We use char because int might match the return type of a gcc2
6375 builtin and then its argument prototype would still apply. */
6385 rm -f conftest.
$ac_objext conftest
$ac_exeext
6386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>conftest.er1
6389 grep -v '^ *+' conftest.er1
>conftest.err
6391 cat conftest.err
>&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; } &&
6400 { ac_try
='test -s conftest$ac_exeext'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; }; then
6406 ac_cv_search_exc_resume
="none required"
6408 echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.
$ac_ext >&5
6412 rm -f conftest.err conftest.
$ac_objext \
6413 conftest
$ac_exeext conftest.
$ac_ext
6414 if test "$ac_cv_search_exc_resume" = no
; then
6415 for ac_lib
in exc
; do
6416 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6439 rm -f conftest.
$ac_objext conftest
$ac_exeext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>conftest.er1
6443 grep -v '^ *+' conftest.er1
>conftest.err
6445 cat conftest.err
>&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try
='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 ac_cv_search_exc_resume
="-l$ac_lib"
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
6471 LIBS
=$ac_func_search_save_LIBS
6473 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6474 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6475 if test "$ac_cv_search_exc_resume" != no
; then
6476 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6484 # Some systems put ldexp and frexp in libm instead of libc; assume
6485 # they're both in the same place. jcf-dump needs them.
6488 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6489 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6490 if test "${ac_cv_search_ldexp+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 ac_func_search_save_LIBS
=$LIBS
6494 ac_cv_search_ldexp
=no
6495 cat >conftest.
$ac_ext <<_ACEOF
6498 cat confdefs.h
>>conftest.
$ac_ext
6499 cat >>conftest.
$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6517 rm -f conftest.
$ac_objext conftest
$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>conftest.er1
6521 grep -v '^ *+' conftest.er1
>conftest.err
6523 cat conftest.err
>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try
='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_search_ldexp
="none required"
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.
$ac_ext >&5
6544 rm -f conftest.err conftest.
$ac_objext \
6545 conftest
$ac_exeext conftest.
$ac_ext
6546 if test "$ac_cv_search_ldexp" = no
; then
6548 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6549 cat >conftest.
$ac_ext <<_ACEOF
6552 cat confdefs.h
>>conftest.
$ac_ext
6553 cat >>conftest.
$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6571 rm -f conftest.
$ac_objext conftest
$ac_exeext
6572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6573 (eval $ac_link) 2>conftest.er1
6575 grep -v '^ *+' conftest.er1
>conftest.err
6577 cat conftest.err
>&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } &&
6580 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try
='test -s conftest$ac_exeext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_cv_search_ldexp
="-l$ac_lib"
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
6603 LIBS
=$ac_func_search_save_LIBS
6605 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6606 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6607 if test "$ac_cv_search_ldexp" != no
; then
6608 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6616 # Use <inttypes.h> only if it exists,
6617 # doesn't clash with <sys/types.h>, and declares intmax_t.
6618 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6619 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6620 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 cat >conftest.
$ac_ext <<_ACEOF
6626 cat confdefs.h
>>conftest.
$ac_ext
6627 cat >>conftest.
$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 #include <sys/types.h>
6630 #include <inttypes.h>
6639 rm -f conftest.
$ac_objext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6641 (eval $ac_compile) 2>conftest.er1
6643 grep -v '^ *+' conftest.er1
>conftest.err
6645 cat conftest.err
>&5
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try
='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 gcc_cv_header_inttypes_h
=yes
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.
$ac_ext >&5
6665 gcc_cv_header_inttypes_h
=no
6667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6670 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6671 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6672 if test $gcc_cv_header_inttypes_h = yes; then
6674 cat >>confdefs.h
<<\_ACEOF
6675 #define HAVE_INTTYPES_H 1
6706 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6707 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6708 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6709 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6712 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6713 echo "$as_me:$LINENO: checking for $ac_func" >&5
6714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6715 if eval "test \"\${$as_ac_var+set}\" = set"; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6726 #define $ac_func innocuous_$ac_func
6728 /* System header to define __stub macros and hopefully few prototypes,
6729 which can conflict with char $ac_func (); below.
6730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731 <limits.h> exists even on freestanding compilers. */
6734 # include <limits.h>
6736 # include <assert.h>
6741 /* Override any gcc2 internal prototype to avoid an error. */
6746 /* We use char because int might match the return type of a gcc2
6747 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6755 char (*f) () = $ac_func;
6764 return f != $ac_func;
6769 rm -f conftest.
$ac_objext conftest
$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1
>conftest.err
6775 cat conftest.err
>&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; } &&
6784 { ac_try
='test -s conftest$ac_exeext'
6785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); }; }; then
6790 eval "$as_ac_var=yes"
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.
$ac_ext >&5
6795 eval "$as_ac_var=no"
6797 rm -f conftest.err conftest.
$ac_objext \
6798 conftest
$ac_exeext conftest.
$ac_ext
6800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6802 if test `eval echo '${'$as_ac_var'}'` = yes; then
6803 cat >>confdefs.h
<<_ACEOF
6804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6811 if test x
$ac_cv_func_mbstowcs = xyes
; then
6812 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6813 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6814 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6817 if test "$cross_compiling" = yes; then
6818 gcc_cv_func_mbstowcs_works
=yes
6820 cat >conftest.
$ac_ext <<_ACEOF
6823 cat confdefs.h
>>conftest.
$ac_ext
6824 cat >>conftest.
$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6833 rm -f conftest
$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>&5
6837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 gcc_cv_func_mbstowcs_works
=yes
6846 echo "$as_me: program exited with status $ac_status" >&5
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.
$ac_ext >&5
6851 gcc_cv_func_mbstowcs_works
=no
6853 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6856 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6857 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6858 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6860 cat >>confdefs.h
<<\_ACEOF
6861 #define HAVE_WORKING_MBSTOWCS 1
6867 echo "$as_me:$LINENO: checking for ssize_t" >&5
6868 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6869 if test "${ac_cv_type_ssize_t+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 cat >conftest.
$ac_ext <<_ACEOF
6875 cat confdefs.h
>>conftest.
$ac_ext
6876 cat >>conftest.
$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6884 if (sizeof (ssize_t))
6890 rm -f conftest.
$ac_objext
6891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>conftest.er1
6894 grep -v '^ *+' conftest.er1
>conftest.err
6896 cat conftest.err
>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
6899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; } &&
6905 { ac_try
='test -s conftest.$ac_objext'
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 ac_cv_type_ssize_t
=yes
6913 echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.
$ac_ext >&5
6916 ac_cv_type_ssize_t
=no
6918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6920 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6921 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6922 if test $ac_cv_type_ssize_t = yes; then
6926 cat >>confdefs.h
<<_ACEOF
6933 # Try to determine the array type of the second argument of getgroups
6934 # for the target system (int or gid_t).
6935 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6936 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6937 if test "${ac_cv_type_uid_t+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 cat >conftest.
$ac_ext <<_ACEOF
6943 cat confdefs.h
>>conftest.
$ac_ext
6944 cat >>conftest.
$ac_ext <<_ACEOF
6945 /* end confdefs.h. */
6946 #include <sys/types.h>
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 $EGREP "uid_t" >/dev
/null
2>&1; then
6951 ac_cv_type_uid_t
=yes
6958 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6959 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6960 if test $ac_cv_type_uid_t = no
; then
6962 cat >>confdefs.h
<<\_ACEOF
6967 cat >>confdefs.h
<<\_ACEOF
6973 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6974 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6975 if test "${ac_cv_type_getgroups+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 if test "$cross_compiling" = yes; then
6979 ac_cv_type_getgroups
=cross
6981 cat >conftest.
$ac_ext <<_ACEOF
6984 cat confdefs.h
>>conftest.
$ac_ext
6985 cat >>conftest.
$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 /* Thanks to Mike Rendell for this test. */
6988 #include <sys/types.h>
6991 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6998 union { gid_t gval; long lval; } val;
7001 for (i = 0; i < NGID; i++)
7002 gidset[i] = val.gval;
7003 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7005 /* Exit non-zero if getgroups seems to require an array of ints. This
7006 happens when gid_t is short but getgroups modifies an array of ints. */
7007 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7010 rm -f conftest
$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; }; then
7021 ac_cv_type_getgroups
=gid_t
7023 echo "$as_me: program exited with status $ac_status" >&5
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_type_getgroups
=int
7030 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7032 if test $ac_cv_type_getgroups = cross
; then
7033 cat >conftest.
$ac_ext <<_ACEOF
7036 cat confdefs.h
>>conftest.
$ac_ext
7037 cat >>conftest.
$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7043 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7044 ac_cv_type_getgroups
=gid_t
7046 ac_cv_type_getgroups
=int
7052 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7053 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7055 cat >>confdefs.h
<<_ACEOF
7056 #define GETGROUPS_T $ac_cv_type_getgroups
7060 if test "${target}" = "${build}"; then
7061 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7064 # This condition may need some tweaking. It should include all
7065 # targets where the array type of the second argument of getgroups
7066 # is int and the type of gid_t is not equivalent to int.
7067 *-*-sunos* |
*-*-ultrix*)
7068 TARGET_GETGROUPS_T
=int
7071 TARGET_GETGROUPS_T
=gid_t
7077 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7078 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7079 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7082 if test "$cross_compiling" = yes; then
7083 gcc_cv_func_printf_ptr
=no
7085 cat >conftest.
$ac_ext <<_ACEOF
7088 cat confdefs.h
>>conftest.
$ac_ext
7089 cat >>conftest.
$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7096 char *p = buf, *q = NULL;
7097 sprintf(buf, "%p", p);
7098 sscanf(buf, "%p", &q);
7102 rm -f conftest
$ac_exeext
7103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>&5
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7113 gcc_cv_func_printf_ptr
=yes
7115 echo "$as_me: program exited with status $ac_status" >&5
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.
$ac_ext >&5
7120 gcc_cv_func_printf_ptr
=no
7122 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7124 rm -f core core.
* *.core
7126 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7127 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7128 if test $gcc_cv_func_printf_ptr = yes ; then
7130 cat >>confdefs.h
<<\_ACEOF
7131 #define HAVE_PRINTF_PTR 1
7136 if test $ac_cv_header_sys_mman_h != yes \
7137 ||
test $ac_cv_func_mmap != yes; then
7138 gcc_cv_func_mmap_file
=no
7139 gcc_cv_func_mmap_dev_zero
=no
7140 gcc_cv_func_mmap_anon
=no
7142 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7143 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7144 if test "${gcc_cv_func_mmap_file+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 # Add a system to this blacklist if
7148 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7149 # memory area containing the same data that you'd get if you applied
7150 # read() to the same fd. The only system known to have a problem here
7151 # is VMS, where text files have record structure.
7154 gcc_cv_func_mmap_file
=no
;;
7156 gcc_cv_func_mmap_file
=yes;;
7159 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7160 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7161 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7162 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7163 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 # Add a system to this blacklist if it has mmap() but /dev/zero
7167 # does not exist, or if mmapping /dev/zero does not give anonymous
7168 # zeroed pages with both the following properties:
7169 # 1. If you map N consecutive pages in with one call, and then
7170 # unmap any subset of those pages, the pages that were not
7171 # explicitly unmapped remain accessible.
7172 # 2. If you map two adjacent blocks of memory and then unmap them
7173 # both at once, they must both go away.
7174 # Systems known to be in this category are Windows (all variants),
7177 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7178 gcc_cv_func_mmap_dev_zero
=no
;;
7180 gcc_cv_func_mmap_dev_zero
=yes;;
7183 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7184 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7186 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7187 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7188 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7189 if test "${gcc_cv_decl_map_anon+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7195 cat confdefs.h
>>conftest.
$ac_ext
7196 cat >>conftest.
$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <sys/mman.h>
7202 #ifndef MAP_ANONYMOUS
7203 #define MAP_ANONYMOUS MAP_ANON
7209 int n = MAP_ANONYMOUS;
7214 rm -f conftest.
$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216 (eval $ac_compile) 2>conftest.er1
7218 grep -v '^ *+' conftest.er1
>conftest.err
7220 cat conftest.err
>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try
='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 gcc_cv_decl_map_anon
=yes
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.
$ac_ext >&5
7240 gcc_cv_decl_map_anon
=no
7242 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7244 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7245 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7247 if test $gcc_cv_decl_map_anon = no
; then
7248 gcc_cv_func_mmap_anon
=no
7250 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7251 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7252 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7256 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7257 # doesn't give anonymous zeroed pages with the same properties listed
7258 # above for use of /dev/zero.
7259 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7261 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7262 gcc_cv_func_mmap_anon
=no
;;
7264 gcc_cv_func_mmap_anon
=yes;;
7267 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7268 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7272 if test $gcc_cv_func_mmap_file = yes; then
7274 cat >>confdefs.h
<<\_ACEOF
7275 #define HAVE_MMAP_FILE 1
7279 if test $gcc_cv_func_mmap_dev_zero = yes; then
7281 cat >>confdefs.h
<<\_ACEOF
7282 #define HAVE_MMAP_DEV_ZERO 1
7286 if test $gcc_cv_func_mmap_anon = yes; then
7288 cat >>confdefs.h
<<\_ACEOF
7289 #define HAVE_MMAP_ANON 1
7297 # Under VMS, vfork works very differently than on Unix. The standard test
7298 # won't work, and it isn't easily adaptable. It makes more sense to
7300 ac_cv_func_vfork_works
=yes
7303 echo "$as_me:$LINENO: checking for pid_t" >&5
7304 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7305 if test "${ac_cv_type_pid_t+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 cat >conftest.
$ac_ext <<_ACEOF
7311 cat confdefs.h
>>conftest.
$ac_ext
7312 cat >>conftest.
$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 $ac_includes_default
7326 rm -f conftest.
$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try
='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 ac_cv_type_pid_t
=yes
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.
$ac_ext >&5
7354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7358 if test $ac_cv_type_pid_t = yes; then
7362 cat >>confdefs.h
<<_ACEOF
7370 for ac_header
in unistd.h vfork.h
7372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <$ac_header>
7386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7387 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7389 grep -v '^ *+' conftest.er1
>conftest.err
7391 cat conftest.err
>&5
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); } >/dev
/null
; then
7394 if test -s conftest.err
; then
7395 ac_cpp_err
=$ac_c_preproc_warn_flag
7396 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7403 if test -z "$ac_cpp_err"; then
7404 eval "$as_ac_Header=yes"
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.
$ac_ext >&5
7409 eval "$as_ac_Header=no"
7411 rm -f conftest.err conftest.
$ac_ext
7413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7416 cat >>confdefs.h
<<_ACEOF
7417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425 for ac_func
in fork vfork
7427 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7428 echo "$as_me:$LINENO: checking for $ac_func" >&5
7429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7430 if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7441 #define $ac_func innocuous_$ac_func
7443 /* System header to define __stub macros and hopefully few prototypes,
7444 which can conflict with char $ac_func (); below.
7445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7446 <limits.h> exists even on freestanding compilers. */
7449 # include <limits.h>
7451 # include <assert.h>
7456 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7464 /* The GNU C library defines this for functions which it implements
7465 to always fail with ENOSYS. Some functions are actually named
7466 something starting with __ and the normal name is an alias. */
7467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7470 char (*f) () = $ac_func;
7479 return f != $ac_func;
7484 rm -f conftest.
$ac_objext conftest
$ac_exeext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486 (eval $ac_link) 2>conftest.er1
7488 grep -v '^ *+' conftest.er1
>conftest.err
7490 cat conftest.err
>&5
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } &&
7493 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try
='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 eval "$as_ac_var=yes"
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7510 eval "$as_ac_var=no"
7512 rm -f conftest.err conftest.
$ac_objext \
7513 conftest
$ac_exeext conftest.
$ac_ext
7515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7517 if test `eval echo '${'$as_ac_var'}'` = yes; then
7518 cat >>confdefs.h
<<_ACEOF
7519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7525 if test "x$ac_cv_func_fork" = xyes
; then
7526 echo "$as_me:$LINENO: checking for working fork" >&5
7527 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7528 if test "${ac_cv_func_fork_works+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 if test "$cross_compiling" = yes; then
7532 ac_cv_func_fork_works
=cross
7534 cat >conftest.
$ac_ext <<_ACEOF
7535 /* By Ruediger Kuhlmann. */
7536 #include <sys/types.h>
7538 # include <unistd.h>
7540 /* Some systems only have a dummy stub for fork() */
7548 rm -f conftest
$ac_exeext
7549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); }; }; then
7559 ac_cv_func_fork_works
=yes
7561 echo "$as_me: program exited with status $ac_status" >&5
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.
$ac_ext >&5
7566 ac_cv_func_fork_works
=no
7568 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7571 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7572 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7575 ac_cv_func_fork_works
=$ac_cv_func_fork
7577 if test "x$ac_cv_func_fork_works" = xcross
; then
7579 *-*-amigaos* |
*-*-msdosdjgpp*)
7580 # Override, as these systems have only a dummy fork() stub
7581 ac_cv_func_fork_works
=no
7584 ac_cv_func_fork_works
=yes
7587 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7588 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7590 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7591 if test "x$ac_cv_func_vfork" = xyes
; then
7592 echo "$as_me:$LINENO: checking for working vfork" >&5
7593 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7594 if test "${ac_cv_func_vfork_works+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 if test "$cross_compiling" = yes; then
7598 ac_cv_func_vfork_works
=cross
7600 cat >conftest.
$ac_ext <<_ACEOF
7603 cat confdefs.h
>>conftest.
$ac_ext
7604 cat >>conftest.
$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 /* Thanks to Paul Eggert for this test. */
7609 #include <sys/types.h>
7610 #include <sys/stat.h>
7611 #include <sys/wait.h>
7613 # include <unistd.h>
7618 /* On some sparc systems, changes by the child to local and incoming
7619 argument registers are propagated back to the parent. The compiler
7620 is told about this with #include <vfork.h>, but some compilers
7621 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7622 static variable whose address is put into a register that is
7623 clobbered by the vfork. */
7626 sparc_address_test (int arg)
7628 sparc_address_test (arg) int arg;
7649 pid_t parent = getpid ();
7652 sparc_address_test (0);
7657 /* Here is another test for sparc vfork register problems. This
7658 test uses lots of local variables, at least as many local
7659 variables as main has allocated so far including compiler
7660 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7661 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7662 reuse the register of parent for one of the local variables,
7663 since it will think that parent can't possibly be used any more
7664 in this routine. Assigning to the local variable will thus
7665 munge parent in the parent process. */
7667 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7668 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7669 /* Convince the compiler that p..p7 are live; otherwise, it might
7670 use the same hardware register for all 8 local variables. */
7671 if (p != p1 || p != p2 || p != p3 || p != p4
7672 || p != p5 || p != p6 || p != p7)
7675 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7676 from child file descriptors. If the child closes a descriptor
7677 before it execs or exits, this munges the parent's descriptor
7678 as well. Test for this by closing stdout in the child. */
7679 _exit(close(fileno(stdout)) != 0);
7684 while (wait(&status) != child)
7687 /* Was there some problem with vforking? */
7690 /* Did the child fail? (This shouldn't happen.) */
7693 /* Did the vfork/compiler bug occur? */
7694 || parent != getpid()
7696 /* Did the file descriptor bug occur? */
7697 || fstat(fileno(stdout), &st) != 0
7702 rm -f conftest
$ac_exeext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704 (eval $ac_link) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_func_vfork_works
=yes
7715 echo "$as_me: program exited with status $ac_status" >&5
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.
$ac_ext >&5
7720 ac_cv_func_vfork_works
=no
7722 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7725 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7726 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7729 if test "x$ac_cv_func_fork_works" = xcross
; then
7730 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7731 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7732 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7735 if test "x$ac_cv_func_vfork_works" = xyes
; then
7737 cat >>confdefs.h
<<\_ACEOF
7738 #define HAVE_WORKING_VFORK 1
7743 cat >>confdefs.h
<<\_ACEOF
7748 if test "x$ac_cv_func_fork_works" = xyes
; then
7750 cat >>confdefs.h
<<\_ACEOF
7751 #define HAVE_WORKING_FORK 1
7759 am_cv_lib_iconv_ldpath
=
7761 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7762 if test "${with_libiconv_prefix+set}" = set; then
7763 withval
="$with_libiconv_prefix"
7765 for dir
in `echo "$withval" | tr : ' '`; do
7766 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7767 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7773 for ac_header
in iconv.h
7775 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7776 echo "$as_me:$LINENO: checking for $ac_header" >&5
7777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 cat >conftest.
$ac_ext <<_ACEOF
7784 cat confdefs.h
>>conftest.
$ac_ext
7785 cat >>conftest.
$ac_ext <<_ACEOF
7786 /* end confdefs.h. */
7787 #include <$ac_header>
7789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7790 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } >/dev
/null
; then
7797 if test -s conftest.err
; then
7798 ac_cpp_err
=$ac_c_preproc_warn_flag
7799 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7806 if test -z "$ac_cpp_err"; then
7807 eval "$as_ac_Header=yes"
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.
$ac_ext >&5
7812 eval "$as_ac_Header=no"
7814 rm -f conftest.err conftest.
$ac_ext
7816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7819 cat >>confdefs.h
<<_ACEOF
7820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7827 echo "$as_me:$LINENO: checking for iconv" >&5
7828 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7829 if test "${am_cv_func_iconv+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 am_cv_func_iconv
="no, consider installing GNU libiconv"
7835 cat >conftest.
$ac_ext <<_ACEOF
7838 cat confdefs.h
>>conftest.
$ac_ext
7839 cat >>conftest.
$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7846 iconv_t cd = iconv_open("","");
7847 iconv(cd,NULL,NULL,NULL,NULL);
7853 rm -f conftest.
$ac_objext conftest
$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7857 grep -v '^ *+' conftest.er1
>conftest.err
7859 cat conftest.err
>&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try
='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 am_cv_func_iconv
=yes
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.
$ac_ext >&5
7880 rm -f conftest.err conftest.
$ac_objext \
7881 conftest
$ac_exeext conftest.
$ac_ext
7882 if test "$am_cv_func_iconv" != yes; then
7883 am_save_LIBS
="$LIBS"
7884 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7885 cat >conftest.
$ac_ext <<_ACEOF
7888 cat confdefs.h
>>conftest.
$ac_ext
7889 cat >>conftest.
$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7896 iconv_t cd = iconv_open("","");
7897 iconv(cd,NULL,NULL,NULL,NULL);
7903 rm -f conftest.
$ac_objext conftest
$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>conftest.er1
7907 grep -v '^ *+' conftest.er1
>conftest.err
7909 cat conftest.err
>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try
='test -s conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7925 am_cv_func_iconv
=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7931 rm -f conftest.err conftest.
$ac_objext \
7932 conftest
$ac_exeext conftest.
$ac_ext
7933 LIBS
="$am_save_LIBS"
7937 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7938 echo "${ECHO_T}$am_cv_func_iconv" >&6
7939 if test "$am_cv_func_iconv" = yes; then
7941 cat >>confdefs.h
<<\_ACEOF
7942 #define HAVE_ICONV 1
7945 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7946 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7947 if test "${am_cv_proto_iconv+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.
$ac_ext <<_ACEOF
7954 cat confdefs.h
>>conftest.
$ac_ext
7955 cat >>conftest.
$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7964 #if defined(__STDC__) || defined(__cplusplus)
7965 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7978 rm -f conftest.
$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980 (eval $ac_compile) 2>conftest.er1
7982 grep -v '^ *+' conftest.er1
>conftest.err
7984 cat conftest.err
>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try
='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 am_cv_proto_iconv_arg1
=""
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.
$ac_ext >&5
8004 am_cv_proto_iconv_arg1
="const"
8006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8007 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);"
8010 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8011 echo "$as_me:$LINENO: result: ${ac_t:-
8012 }$am_cv_proto_iconv" >&5
8013 echo "${ECHO_T}${ac_t:-
8014 }$am_cv_proto_iconv" >&6
8016 cat >>confdefs.h
<<_ACEOF
8017 #define ICONV_CONST $am_cv_proto_iconv_arg1
8022 if test "$am_cv_lib_iconv" = yes; then
8023 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8027 # Until we have in-tree GNU iconv:
8032 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8033 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8034 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cat >conftest.
$ac_ext <<_ACEOF
8040 cat confdefs.h
>>conftest.
$ac_ext
8041 cat >>conftest.
$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8052 rm -f conftest.
$ac_objext conftest
$ac_exeext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8054 (eval $ac_link) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1
>conftest.err
8058 cat conftest.err
>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try
='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 am_cv_val_LC_MESSAGES
=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 am_cv_val_LC_MESSAGES
=no
8080 rm -f conftest.err conftest.
$ac_objext \
8081 conftest
$ac_exeext conftest.
$ac_ext
8083 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8084 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8085 if test $am_cv_val_LC_MESSAGES = yes; then
8087 cat >>confdefs.h
<<\_ACEOF
8088 #define HAVE_LC_MESSAGES 1
8094 # We will need to find libiberty.h and ansidecl.h
8095 saved_CFLAGS
="$CFLAGS"
8096 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8097 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8098 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8099 fprintf_unlocked strstr errno snprintf vasprintf \
8100 malloc realloc calloc free
basename getopt
clock
8102 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8104 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8105 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 cat >conftest.
$ac_ext <<_ACEOF
8111 cat confdefs.h
>>conftest.
$ac_ext
8112 cat >>conftest.
$ac_ext <<_ACEOF
8113 /* end confdefs.h. */
8115 #define $ac_tr_decl 1
8117 #include "ansidecl.h"
8124 char *(*pfn) = (char *(*)) $ac_func ;
8130 rm -f conftest.
$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>conftest.er1
8134 grep -v '^ *+' conftest.er1
>conftest.err
8136 cat conftest.err
>&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } &&
8139 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; } &&
8145 { ac_try
='test -s conftest.$ac_objext'
8146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 eval "gcc_cv_have_decl_$ac_func=yes"
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.
$ac_ext >&5
8156 eval "gcc_cv_have_decl_$ac_func=no"
8158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8162 echo "$as_me:$LINENO: result: yes" >&5
8163 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8164 #define $ac_tr_decl 1
8168 echo "$as_me:$LINENO: result: no" >&5
8169 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8170 #define $ac_tr_decl 0
8176 if test x
= y
; then
8178 cat >>confdefs.h
<<\_ACEOF
8179 #define HAVE_DECL_GETENV 1
8182 cat >>confdefs.h
<<\_ACEOF
8183 #define HAVE_DECL_ATOL 1
8186 cat >>confdefs.h
<<\_ACEOF
8187 #define HAVE_DECL_SBRK 1
8190 cat >>confdefs.h
<<\_ACEOF
8191 #define HAVE_DECL_ABORT 1
8194 cat >>confdefs.h
<<\_ACEOF
8195 #define HAVE_DECL_ATOF 1
8198 cat >>confdefs.h
<<\_ACEOF
8199 #define HAVE_DECL_GETCWD 1
8202 cat >>confdefs.h
<<\_ACEOF
8203 #define HAVE_DECL_GETWD 1
8207 cat >>confdefs.h
<<\_ACEOF
8208 #define HAVE_DECL_STRSIGNAL 1
8211 cat >>confdefs.h
<<\_ACEOF
8212 #define HAVE_DECL_PUTC_UNLOCKED 1
8215 cat >>confdefs.h
<<\_ACEOF
8216 #define HAVE_DECL_FPUTS_UNLOCKED 1
8219 cat >>confdefs.h
<<\_ACEOF
8220 #define HAVE_DECL_FWRITE_UNLOCKED 1
8224 cat >>confdefs.h
<<\_ACEOF
8225 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8228 cat >>confdefs.h
<<\_ACEOF
8229 #define HAVE_DECL_STRSTR 1
8232 cat >>confdefs.h
<<\_ACEOF
8233 #define HAVE_DECL_ERRNO 1
8236 cat >>confdefs.h
<<\_ACEOF
8237 #define HAVE_DECL_SNPRINTF 1
8240 cat >>confdefs.h
<<\_ACEOF
8241 #define HAVE_DECL_VASPRINTF 1
8245 cat >>confdefs.h
<<\_ACEOF
8246 #define HAVE_DECL_MALLOC 1
8249 cat >>confdefs.h
<<\_ACEOF
8250 #define HAVE_DECL_REALLOC 1
8253 cat >>confdefs.h
<<\_ACEOF
8254 #define HAVE_DECL_CALLOC 1
8257 cat >>confdefs.h
<<\_ACEOF
8258 #define HAVE_DECL_FREE 1
8261 cat >>confdefs.h
<<\_ACEOF
8262 #define HAVE_DECL_BASENAME 1
8265 cat >>confdefs.h
<<\_ACEOF
8266 #define HAVE_DECL_GETOPT 1
8269 cat >>confdefs.h
<<\_ACEOF
8270 #define HAVE_DECL_CLOCK 1
8275 for ac_func
in getrlimit setrlimit getrusage
8277 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8278 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8279 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8280 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 cat >conftest.
$ac_ext <<_ACEOF
8286 cat confdefs.h
>>conftest.
$ac_ext
8287 cat >>conftest.
$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 #define $ac_tr_decl 1
8292 #include "ansidecl.h"
8294 #ifdef HAVE_SYS_RESOURCE_H
8295 #include <sys/resource.h>
8303 char *(*pfn) = (char *(*)) $ac_func ;
8309 rm -f conftest.
$ac_objext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8311 (eval $ac_compile) 2>conftest.er1
8313 grep -v '^ *+' conftest.er1
>conftest.err
8315 cat conftest.err
>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try
='test -s conftest.$ac_objext'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 eval "gcc_cv_have_decl_$ac_func=yes"
8332 echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.
$ac_ext >&5
8335 eval "gcc_cv_have_decl_$ac_func=no"
8337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8340 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8341 echo "$as_me:$LINENO: result: yes" >&5
8342 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8343 #define $ac_tr_decl 1
8347 echo "$as_me:$LINENO: result: no" >&5
8348 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8349 #define $ac_tr_decl 0
8355 if test x
= y
; then
8357 cat >>confdefs.h
<<\_ACEOF
8358 #define HAVE_DECL_GETRLIMIT 1
8361 cat >>confdefs.h
<<\_ACEOF
8362 #define HAVE_DECL_SETRLIMIT 1
8365 cat >>confdefs.h
<<\_ACEOF
8366 #define HAVE_DECL_GETRUSAGE 1
8371 cat >conftest.
$ac_ext <<_ACEOF
8374 cat confdefs.h
>>conftest.
$ac_ext
8375 cat >>conftest.
$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8378 #include "ansidecl.h"
8380 #ifdef HAVE_SYS_RESOURCE_H
8381 #include <sys/resource.h>
8392 rm -f conftest.
$ac_objext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8394 (eval $ac_compile) 2>conftest.er1
8396 grep -v '^ *+' conftest.er1
>conftest.err
8398 cat conftest.err
>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try
='test -s conftest.$ac_objext'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.
$ac_ext >&5
8419 cat >>confdefs.h
<<\_ACEOF
8424 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8426 for ac_func
in ldgetname
8428 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8429 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8430 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8431 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8441 #define $ac_tr_decl 1
8443 #include "ansidecl.h"
8454 char *(*pfn) = (char *(*)) $ac_func ;
8460 rm -f conftest.
$ac_objext
8461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8462 (eval $ac_compile) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try
='test -s conftest.$ac_objext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "gcc_cv_have_decl_$ac_func=yes"
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.
$ac_ext >&5
8486 eval "gcc_cv_have_decl_$ac_func=no"
8488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8491 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8492 echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8494 #define $ac_tr_decl 1
8498 echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8500 #define $ac_tr_decl 0
8506 if test x
= y
; then
8508 cat >>confdefs.h
<<\_ACEOF
8509 #define HAVE_DECL_LDGETNAME 1
8514 for ac_func
in times
8516 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8517 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8518 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8519 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8520 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 cat >conftest.
$ac_ext <<_ACEOF
8525 cat confdefs.h
>>conftest.
$ac_ext
8526 cat >>conftest.
$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8529 #define $ac_tr_decl 1
8531 #include "ansidecl.h"
8533 #ifdef HAVE_SYS_TIMES_H
8534 #include <sys/times.h>
8542 char *(*pfn) = (char *(*)) $ac_func ;
8548 rm -f conftest.
$ac_objext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>conftest.er1
8552 grep -v '^ *+' conftest.er1
>conftest.err
8554 cat conftest.err
>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try
='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 eval "gcc_cv_have_decl_$ac_func=yes"
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.
$ac_ext >&5
8574 eval "gcc_cv_have_decl_$ac_func=no"
8576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8579 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8580 echo "$as_me:$LINENO: result: yes" >&5
8581 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8582 #define $ac_tr_decl 1
8586 echo "$as_me:$LINENO: result: no" >&5
8587 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8588 #define $ac_tr_decl 0
8594 if test x
= y
; then
8596 cat >>confdefs.h
<<\_ACEOF
8597 #define HAVE_DECL_TIMES 1
8602 # More time-related stuff.
8603 echo "$as_me:$LINENO: checking for struct tms" >&5
8604 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8605 if test "${ac_cv_struct_tms+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 cat >conftest.
$ac_ext <<_ACEOF
8612 cat confdefs.h
>>conftest.
$ac_ext
8613 cat >>conftest.
$ac_ext <<_ACEOF
8614 /* end confdefs.h. */
8616 #include "ansidecl.h"
8618 #ifdef HAVE_SYS_TIMES_H
8619 #include <sys/times.h>
8630 rm -f conftest.
$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1
>conftest.err
8636 cat conftest.err
>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try
='test -s conftest.$ac_objext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 ac_cv_struct_tms
=yes
8653 echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.
$ac_ext >&5
8658 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8660 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8661 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8662 if test $ac_cv_struct_tms = yes; then
8664 cat >>confdefs.h
<<\_ACEOF
8665 #define HAVE_STRUCT_TMS 1
8670 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8671 # revisit after autoconf 2.50.
8672 echo "$as_me:$LINENO: checking for clock_t" >&5
8673 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8674 if test "${gcc_cv_type_clock_t+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8678 cat >conftest.
$ac_ext <<_ACEOF
8681 cat confdefs.h
>>conftest.
$ac_ext
8682 cat >>conftest.
$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8685 #include "ansidecl.h"
8696 rm -f conftest.
$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>conftest.er1
8700 grep -v '^ *+' conftest.er1
>conftest.err
8702 cat conftest.err
>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } &&
8705 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try
='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 gcc_cv_type_clock_t
=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8722 gcc_cv_type_clock_t
=no
8724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8727 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8728 if test $gcc_cv_type_clock_t = yes; then
8730 cat >>confdefs.h
<<\_ACEOF
8731 #define HAVE_CLOCK_T 1
8736 echo "$as_me:$LINENO: checking for uchar" >&5
8737 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8738 if test "${gcc_cv_type_uchar+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.
$ac_ext <<_ACEOF
8744 cat confdefs.h
>>conftest.
$ac_ext
8745 cat >>conftest.
$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8748 #include "ansidecl.h"
8754 if ((uchar *)0) return 0;
8755 if (sizeof(uchar)) return 0;
8760 rm -f conftest.
$ac_objext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8762 (eval $ac_compile) 2>conftest.er1
8764 grep -v '^ *+' conftest.er1
>conftest.err
8766 cat conftest.err
>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try
='test -s conftest.$ac_objext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_type_uchar
=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.
$ac_ext >&5
8788 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8790 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8791 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8792 if test $ac_cv_type_uchar = yes; then
8794 cat >>confdefs.h
<<\_ACEOF
8795 #define HAVE_UCHAR 1
8800 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8801 CFLAGS
="$saved_CFLAGS"
8803 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8804 if test "${enable_initfini_array+set}" = set; then
8805 enableval
="$enable_initfini_array"
8809 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8810 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8811 if test "${gcc_cv_initfini_array+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 if test "$cross_compiling" = yes; then
8815 gcc_cv_initfini_array
=no
8817 cat >conftest.
$ac_ext <<_ACEOF
8820 cat confdefs.h
>>conftest.
$ac_ext
8821 cat >>conftest.
$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8825 int main (void) { return x; }
8826 int foo (void) { x = 0; }
8827 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8829 rm -f conftest
$ac_exeext
8830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8831 (eval $ac_link) 2>&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 gcc_cv_initfini_array
=yes
8842 echo "$as_me: program exited with status $ac_status" >&5
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.
$ac_ext >&5
8847 gcc_cv_initfini_array
=no
8849 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8852 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8853 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8854 enable_initfini_array
=$gcc_cv_initfini_array
8857 if test $enable_initfini_array = yes; then
8859 cat >>confdefs.h
<<\_ACEOF
8860 #define HAVE_INITFINI_ARRAY 1
8865 # mkdir takes a single argument on some systems.
8866 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8867 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8868 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 cat >conftest.
$ac_ext <<_ACEOF
8874 cat confdefs.h
>>conftest.
$ac_ext
8875 cat >>conftest.
$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 #include <sys/types.h>
8879 #ifdef HAVE_SYS_STAT_H
8880 # include <sys/stat.h>
8882 #ifdef HAVE_UNISTD_H
8883 # include <unistd.h>
8885 #ifdef HAVE_DIRECT_H
8886 # include <direct.h>
8896 rm -f conftest.
$ac_objext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898 (eval $ac_compile) 2>conftest.er1
8900 grep -v '^ *+' conftest.er1
>conftest.err
8902 cat conftest.err
>&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } &&
8905 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try
='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 gcc_cv_mkdir_takes_one_arg
=no
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 gcc_cv_mkdir_takes_one_arg
=yes
8924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8926 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8927 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8928 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8930 cat >>confdefs.h
<<\_ACEOF
8931 #define MKDIR_TAKES_ONE_ARG 1
8943 # With Setjmp/Longjmp based exception handling.
8944 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8945 if test "${enable_sjlj_exceptions+set}" = set; then
8946 enableval
="$enable_sjlj_exceptions"
8947 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8949 cat >>confdefs.h
<<_ACEOF
8950 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8955 if test x
$host = x
$target; then
8956 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8957 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8958 if test "${ac_cv_lib_unwind_main+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_check_lib_save_LIBS
=$LIBS
8962 LIBS
="-lunwind $LIBS"
8963 cat >conftest.
$ac_ext <<_ACEOF
8966 cat confdefs.h
>>conftest.
$ac_ext
8967 cat >>conftest.
$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8979 rm -f conftest.
$ac_objext conftest
$ac_exeext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>conftest.er1
8983 grep -v '^ *+' conftest.er1
>conftest.err
8985 cat conftest.err
>&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try
='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_lib_unwind_main
=yes
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.
$ac_ext >&5
9005 ac_cv_lib_unwind_main
=no
9007 rm -f conftest.err conftest.
$ac_objext \
9008 conftest
$ac_exeext conftest.
$ac_ext
9009 LIBS
=$ac_check_lib_save_LIBS
9011 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9012 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9013 if test $ac_cv_lib_unwind_main = yes; then
9014 use_libunwind_default
=yes
9016 use_libunwind_default
=no
9020 use_libunwind_default
=no
9022 # Use libunwind based exception handling.
9023 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9024 if test "${enable_libunwind_exceptions+set}" = set; then
9025 enableval
="$enable_libunwind_exceptions"
9026 use_libunwind_exceptions
=$enableval
9028 use_libunwind_exceptions
=$use_libunwind_default
9030 if test x
"$use_libunwind_exceptions" = xyes
; then
9032 cat >>confdefs.h
<<\_ACEOF
9033 #define USE_LIBUNWIND_EXCEPTIONS 1
9038 # --------------------------------------------------------
9039 # Build, host, and target specific configuration fragments
9040 # --------------------------------------------------------
9042 # Collect build-machine-specific information.
9043 .
${srcdir}/config.build
9045 # Collect host-machine-specific information.
9046 .
${srcdir}/config.
host
9050 # Collect target-machine-specific information.
9051 .
${srcdir}/config.gcc
9053 extra_objs
="${host_extra_objs} ${extra_objs}"
9054 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
9056 # Default the target-machine variables that were not explicitly set.
9057 if test x
"$tm_file" = x
9058 then tm_file
=$cpu_type/$cpu_type.h
; fi
9060 if test x
"$extra_headers" = x
9061 then extra_headers
=; fi
9063 if test x
$md_file = x
9064 then md_file
=$cpu_type/$cpu_type.md
; fi
9066 if test x
$out_file = x
9067 then out_file
=$cpu_type/$cpu_type.c
; fi
9069 if test x
"$tmake_file" = x
9070 then tmake_file
=$cpu_type/t-
$cpu_type
9073 if test x
"$dwarf2" = xyes
9074 then tm_file
="$tm_file tm-dwarf2.h"
9077 # Say what files are being used for the output code and MD file.
9078 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9079 echo "Using \`$srcdir/config/$md_file' as machine description file."
9081 # If any of the xm_file variables contain nonexistent files, warn
9082 # about them and drop them.
9085 for x
in $build_xm_file; do
9086 if test -f $srcdir/config
/$x
9088 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9089 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9095 for x
in $host_xm_file; do
9096 if test -f $srcdir/config
/$x
9098 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9099 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9105 for x
in $xm_file; do
9106 if test -f $srcdir/config
/$x
9108 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9109 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9115 for f
in $tm_file; do
9118 if test $count = ax
; then
9119 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9121 echo "Using the following target machine macro files:"
9122 for f
in $tm_file; do
9123 echo " $srcdir/config/$f"
9127 if test x
$need_64bit_hwint = xyes
; then
9129 cat >>confdefs.h
<<\_ACEOF
9130 #define NEED_64BIT_HOST_WIDE_INT 1
9136 for f
in $host_xm_file; do
9139 if test $count = a
; then
9141 elif test $count = ax
; then
9142 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9144 echo "Using the following host machine macro files:"
9145 for f
in $host_xm_file; do
9146 echo " $srcdir/config/$f"
9149 echo "Using ${out_host_hook_obj} for host machine hooks."
9151 if test "$host_xm_file" != "$build_xm_file"; then
9153 for f
in $build_xm_file; do
9156 if test $count = a
; then
9158 elif test $count = ax
; then
9159 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9161 echo "Using the following build machine macro files:"
9162 for f
in $build_xm_file; do
9163 echo " $srcdir/config/$f"
9172 # Check if a valid thread package
9173 case ${enable_threads_flag} in
9176 target_thread_file
='single'
9180 target_thread_file
='single'
9182 aix | dce | gnat | irix | posix | rtems | \
9183 single | solaris | vxworks | win32
)
9184 target_thread_file
=${enable_threads_flag}
9187 echo "${enable_threads_flag} is an unknown thread package" 1>&2
9192 if test x
${thread_file} = x
; then
9193 # No thread file set by target-specific clauses in config.gcc,
9194 # so use file chosen by default logic above
9195 thread_file
=${target_thread_file}
9198 # Make gthr-default.h if we have a thread file.
9200 if test $thread_file != single
; then
9201 rm -f gthr-default.h
9202 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9203 gthread_flags
=-DHAVE_GTHR_DEFAULT
9211 if test x
$enable___cxa_atexit = xyes || \
9212 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9213 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9214 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9215 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 cat >conftest.
$ac_ext <<_ACEOF
9221 cat confdefs.h
>>conftest.
$ac_ext
9222 cat >>conftest.
$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9226 #define __cxa_atexit innocuous___cxa_atexit
9228 /* System header to define __stub macros and hopefully few prototypes,
9229 which can conflict with char __cxa_atexit (); below.
9230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9231 <limits.h> exists even on freestanding compilers. */
9234 # include <limits.h>
9236 # include <assert.h>
9241 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9248 char __cxa_atexit ();
9249 /* The GNU C library defines this for functions which it implements
9250 to always fail with ENOSYS. Some functions are actually named
9251 something starting with __ and the normal name is an alias. */
9252 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9255 char (*f) () = __cxa_atexit;
9264 return f != __cxa_atexit;
9269 rm -f conftest.
$ac_objext conftest
$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271 (eval $ac_link) 2>conftest.er1
9273 grep -v '^ *+' conftest.er1
>conftest.err
9275 cat conftest.err
>&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } &&
9278 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); }; } &&
9284 { ac_try
='test -s conftest$ac_exeext'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_func___cxa_atexit
=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.
$ac_ext >&5
9295 ac_cv_func___cxa_atexit
=no
9297 rm -f conftest.err conftest.
$ac_objext \
9298 conftest
$ac_exeext conftest.
$ac_ext
9300 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9301 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9302 if test $ac_cv_func___cxa_atexit = yes; then
9304 cat >>confdefs.h
<<\_ACEOF
9305 #define DEFAULT_USE_CXA_ATEXIT 1
9309 echo "__cxa_atexit can't be enabled on this target"
9314 # Look for a file containing extra machine modes.
9315 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9316 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9319 cat >>confdefs.h
<<_ACEOF
9320 #define EXTRA_MODES_FILE "config/$extra_modes"
9325 # auto-host.h is the file containing items generated by autoconf and is
9326 # the first file included by config.h.
9327 # If host=build, it is correct to have bconfig include auto-host.h
9328 # as well. If host!=build, we are in error and need to do more
9329 # work to find out the build config parameters.
9330 if test x
$host = x
$build
9332 build_auto
=auto-host.h
9335 # We create a subdir, then run autoconf in the subdir.
9336 # To prevent recursion we set host and build for the new
9337 # invocation of configure to the build for this invocation
9344 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9345 *) realsrcdir
=..
/${srcdir};;
9347 saved_CFLAGS
="${CFLAGS}"
9348 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9349 ${realsrcdir}/configure \
9350 --enable-languages=${enable_languages-all} \
9351 --target=$target_alias --host=$build_alias --build=$build_alias
9352 CFLAGS
="${saved_CFLAGS}"
9354 # We just finished tests for the build machine, so rename
9355 # the file auto-build.h in the gcc directory.
9356 mv auto-host.h ..
/auto-build.h
9359 build_auto
=auto-build.h
9360 FORBUILD
=..
/${build_subdir}
9364 tm_file
="${tm_file} defaults.h"
9365 tm_p_file
="${tm_p_file} tm-preds.h"
9366 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9367 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9368 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9369 # put this back in temporarily.
9370 xm_file
="ansidecl.h ${xm_file}"
9376 # Get the version trigger filename from the toplevel
9377 if test "${with_gcc_version_trigger+set}" = set; then
9378 gcc_version_trigger
=$with_gcc_version_trigger
9380 gcc_version_trigger
=${srcdir}/version.c
9382 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9383 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9385 # Compile in configure arguments.
9386 if test -f configargs.h
; then
9387 # Being re-configured.
9388 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9389 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9391 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9394 # Double all backslashes and backslash all quotes to turn
9395 # gcc_config_arguments into a C string.
9396 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9397 $gcc_config_arguments
9399 gcc_config_arguments_str
=`cat conftest.out`
9402 cat > configargs.h
<<EOF
9403 /* Generated automatically. */
9404 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9405 static const char thread_model[] = "$thread_file";
9407 static const struct {
9408 const char *name, *value;
9409 } configure_default_options[] = $configure_default_options;
9412 # Internationalization
9414 VERSION
="$gcc_version"
9418 # If we haven't got the data from the intl directory,
9419 # assume NLS is disabled.
9427 if test -f ..
/intl
/config.intl
; then
9428 . ..
/intl
/config.intl
9430 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9431 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9432 if test x
"$USE_NLS" != xyes
; then
9433 echo "$as_me:$LINENO: result: no" >&5
9434 echo "${ECHO_T}no" >&6
9436 echo "$as_me:$LINENO: result: yes" >&5
9437 echo "${ECHO_T}yes" >&6
9439 cat >>confdefs.h
<<\_ACEOF
9440 #define ENABLE_NLS 1
9444 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9445 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9446 # Look for .po and .gmo files in the source directory.
9449 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9450 # If there aren't any .gmo files the shell will give us the
9451 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9453 case "$cat" in *\
**)
9456 # The quadruple backslash is collapsed to a double backslash
9457 # by the backticks, then collapsed again by the double quotes,
9458 # leaving us with one backslash in the sed expression (right
9459 # before the dot that mustn't act as a wildcard).
9460 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9461 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9462 # The user is allowed to set LINGUAS to a list of languages to
9463 # install catalogs for. If it's empty that means "all of them."
9464 if test "x$LINGUAS" = x
; then
9465 CATALOGS
="$CATALOGS $cat"
9466 XLINGUAS
="$XLINGUAS $lang"
9468 case "$LINGUAS" in *$lang*)
9469 CATALOGS
="$CATALOGS $cat"
9470 XLINGUAS
="$XLINGUAS $lang"
9476 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9477 echo "${ECHO_T}$LINGUAS" >&6
9480 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9481 # -liconv on the link line twice.
9482 case "$LIBINTL" in *$LIBICONV*)
9486 # Windows32 Registry support for specifying GCC installation paths.
9487 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9488 if test "${enable_win32_registry+set}" = set; then
9489 enableval
="$enable_win32_registry"
9493 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9494 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9495 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9496 if test "x$enable_win32_registry" != xno
; then
9498 cat >>confdefs.h
<<\_ACEOF
9499 #define ENABLE_WIN32_REGISTRY 1
9502 echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9505 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9506 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 ac_func_search_save_LIBS
=$LIBS
9510 ac_cv_search_RegOpenKeyExA
=no
9511 cat >conftest.
$ac_ext <<_ACEOF
9514 cat confdefs.h
>>conftest.
$ac_ext
9515 cat >>conftest.
$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9518 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */
9524 char RegOpenKeyExA ();
9533 rm -f conftest.
$ac_objext conftest
$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535 (eval $ac_link) 2>conftest.er1
9537 grep -v '^ *+' conftest.er1
>conftest.err
9539 cat conftest.err
>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; } &&
9548 { ac_try
='test -s conftest$ac_exeext'
9549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); }; }; then
9554 ac_cv_search_RegOpenKeyExA
="none required"
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9560 rm -f conftest.err conftest.
$ac_objext \
9561 conftest
$ac_exeext conftest.
$ac_ext
9562 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9563 for ac_lib
in advapi32
; do
9564 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9565 cat >conftest.
$ac_ext <<_ACEOF
9568 cat confdefs.h
>>conftest.
$ac_ext
9569 cat >>conftest.
$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9572 /* Override any gcc2 internal prototype to avoid an error. */
9576 /* We use char because int might match the return type of a gcc2
9577 builtin and then its argument prototype would still apply. */
9578 char RegOpenKeyExA ();
9587 rm -f conftest.
$ac_objext conftest
$ac_exeext
9588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9589 (eval $ac_link) 2>conftest.er1
9591 grep -v '^ *+' conftest.er1
>conftest.err
9593 cat conftest.err
>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } &&
9596 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try
='test -s conftest$ac_exeext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
9608 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
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
9619 LIBS
=$ac_func_search_save_LIBS
9621 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9622 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9623 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9624 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9629 echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6
9633 # Check if user specified a different registry key.
9634 case "x${enable_win32_registry}" in
9637 gcc_cv_win32_registry_key
="$VERSION"
9640 # no registry lookup.
9641 gcc_cv_win32_registry_key
=''
9644 # user-specified key.
9645 gcc_cv_win32_registry_key
="$enable_win32_registry"
9649 if test "x$enable_win32_registry" != xno
; then
9650 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9651 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9653 cat >>confdefs.h
<<_ACEOF
9654 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9657 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9658 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9663 # Get an absolute path to the GCC top-level source directory
9664 holddir
=`${PWDCMD-pwd}`
9666 topdir
=`${PWDCMD-pwd}`
9669 # Conditionalize the makefile for this host machine.
9671 for f
in ${host_xmake_file}
9673 if test -f ${srcdir}/config
/$f
9675 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9679 # Conditionalize the makefile for this target machine.
9681 for f
in ${tmake_file}
9683 if test -f ${srcdir}/config
/$f
9685 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9688 tmake_file
="${tmake_file_}"
9690 symbolic_link
='ln -s'
9692 # If the host doesn't support symlinks, modify CC in
9693 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9694 # Otherwise, we can use "CC=$(CC)".
9696 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9698 cc_set_by_configure
="\$(CC)"
9699 quoted_cc_set_by_configure
="\$(CC)"
9700 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9701 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9704 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9706 symbolic_link
="cp -p"
9710 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9711 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9712 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9713 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9717 out_object_file
=`basename $out_file .c`.o
9721 for f
in $tm_file; do
9724 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9725 tm_include_list
="${tm_include_list} $f"
9728 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9729 tm_include_list
="${tm_include_list} config/$f"
9736 for f
in $tm_p_file; do
9739 tm_p_file_list
="${tm_p_file_list} $f"
9740 tm_p_include_list
="${tm_p_include_list} $f"
9743 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9744 tm_p_include_list
="${tm_p_include_list} config/$f"
9750 for f
in $xm_file; do
9753 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9754 xm_include_list
="${xm_include_list} $f"
9757 xm_file_list
="${xm_file_list} $f"
9758 xm_include_list
="${xm_include_list} $f"
9761 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9762 xm_include_list
="${xm_include_list} config/$f"
9768 host_xm_include_list
=
9769 for f
in $host_xm_file; do
9772 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9773 host_xm_include_list
="${host_xm_include_list} $f"
9776 host_xm_file_list
="${host_xm_file_list} $f"
9777 host_xm_include_list
="${host_xm_include_list} $f"
9780 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9781 host_xm_include_list
="${host_xm_include_list} config/$f"
9787 for f
in $build_xm_file; do
9790 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9791 build_xm_include_list
="${build_xm_include_list} $f"
9793 auto-build.h | auto-host.h
)
9794 build_xm_file_list
="${build_xm_file_list} $f"
9795 build_xm_include_list
="${build_xm_include_list} $f"
9798 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9799 build_xm_include_list
="${build_xm_include_list} config/$f"
9804 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9805 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9808 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9809 if test x
$host != x
$target
9811 CROSS
="-DCROSS_COMPILE"
9813 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9814 case "$host","$target" in
9815 # Darwin crosses can use the host system's libraries and headers,
9816 # because of the fat library support. Of course, it must be the
9817 # same version of Darwin on both sides. Allow the user to
9818 # just say --target=foo-darwin without a version number to mean
9819 # "the version on this system".
9820 *-*-darwin*,*-*-darwin*)
9821 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9822 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9823 if test $hostos = $targetos -o $targetos = darwin
; then
9825 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9830 i?
86-*-*,x86_64-
*-* \
9831 | powerpc
*-*-*,powerpc64
*-*-*)
9832 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9834 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9835 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9836 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9839 # If this is a cross-compiler that does not
9840 # have its own set of headers then define
9843 # If this is using newlib, without having the headers available now,
9844 # then define inhibit_libc in LIBGCC2_CFLAGS.
9845 # This prevents libgcc2 from containing any code which requires libc
9848 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9849 test x
$with_newlib = xyes
; } &&
9850 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9851 inhibit_libc
=-Dinhibit_libc
9855 # When building gcc with a cross-compiler, we need to adjust things so
9856 # that the generator programs are still built with the native compiler.
9857 # Also, we cannot run fixincludes or fix-header.
9859 # These are the normal (build=host) settings:
9861 BUILD_PREFIX_1
=ignore-
9862 CC_FOR_BUILD
='$(CC)'
9863 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9865 STMP_FIXINC
=stmp-fixinc
9867 # Possibly disable fixproto, on a per-target basis.
9868 case ${use_fixproto} in
9873 STMP_FIXPROTO
=stmp-fixproto
9878 # And these apply if build != host, or we are generating coverage data
9879 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9882 BUILD_PREFIX_1
=build-
9883 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9885 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9891 # Expand extra_headers to include complete path.
9892 # This substitutes for lots of t-* files.
9894 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9895 for file in ${extra_headers} ; do
9896 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9899 # Add a definition of USE_COLLECT2 if system wants one.
9900 case $use_collect2 in
9901 no
) use_collect2
= ;;
9904 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9905 xm_defines
="${xm_defines} USE_COLLECT2"
9909 # ---------------------------
9910 # Assembler & linker features
9911 # ---------------------------
9913 # Identify the assembler which will work hand-in-glove with the newly
9914 # built GCC, so that we can examine its features. This is the assembler
9915 # which will be driven by the driver program.
9917 # If build != host, and we aren't building gas in-tree, we identify a
9918 # build->target assembler and hope that it will have the same features
9919 # as the host->target assembler we'll be using.
9920 echo "$as_me:$LINENO: checking what assembler to use" >&5
9921 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9924 gcc_cv_gas_major_version
=
9925 gcc_cv_gas_minor_version
=
9926 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9927 if test -x "$DEFAULT_ASSEMBLER"; then
9928 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9929 elif test -x "$AS"; then
9931 elif test -x as
$host_exeext; then
9932 # Build using assembler in the current directory.
9933 gcc_cv_as
=.
/as
$host_exeext
9934 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9935 && test -f ..
/gas
/Makefile
; then
9936 # Single tree build which includes gas.
9938 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9939 for f
in $gcc_cv_as_bfd_srcdir/configure \
9940 $gcc_cv_as_gas_srcdir/configure \
9941 $gcc_cv_as_gas_srcdir/configure.
in \
9942 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9943 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9944 if test x
$gcc_cv_gas_version != x
; then
9948 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9949 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9950 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9951 case $gcc_cv_gas_patch_version in
9952 "") gcc_cv_gas_patch_version
="0" ;;
9954 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9955 + $gcc_cv_gas_minor_version \) \* 1000 \
9956 + $gcc_cv_gas_patch_version`
9958 rm -f as
$host_exeext
9959 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9960 in_tree_gas_is_elf
=no
9961 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9962 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9963 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9965 in_tree_gas_is_elf
=yes
9969 if test "x$gcc_cv_as" = x
; then
9970 # Search the same directories that the installed compiler will
9971 # search. Else we may find the wrong assembler and lose. If we
9972 # do not find a suitable assembler binary, then try the user's
9975 # Also note we have to check MD_EXEC_PREFIX before checking the
9976 # user's path. Unfortunately, there is no good way to get at the
9977 # value of MD_EXEC_PREFIX here. So we do a brute force search
9978 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9979 # to be fixed as part of the make/configure rewrite too.
9981 if test "x$exec_prefix" = xNONE
; then
9982 if test "x$prefix" = xNONE
; then
9983 test_prefix
=/usr
/local
9988 test_prefix
=$exec_prefix
9991 # If the loop below does not find an assembler, then use whatever
9992 # one we can find in the users's path.
9994 if test "x$program_prefix" != xNONE
; then
9995 gcc_cv_as
=${program_prefix}as
$host_exeext
9997 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
10000 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10001 $test_prefix/libexec/gcc/$target_noncanonical \
10002 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10003 /usr/lib/gcc/$target_noncanonical \
10004 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10005 $test_prefix/$target_noncanonical/bin"
10007 if test x
$host = x
$target; then
10008 test_dirs
="$test_dirs \
10013 /bsd43/usr/lib/cmplrs/cc \
10014 /usr/cross64/usr/bin \
10015 /usr/lib/cmplrs/cc \
10016 /sysv/usr/lib/cmplrs/cc \
10017 /svr4/usr/lib/cmplrs/cc \
10021 for dir
in $test_dirs; do
10022 if test -x $dir/as
$host_exeext; then
10023 gcc_cv_as
=$dir/as
$host_exeext
10028 case $in_tree_gas in
10030 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10031 echo "${ECHO_T}\"newly built gas\"" >&6
10034 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10035 echo "${ECHO_T}$gcc_cv_as" >&6
10039 # Identify the linker which will work hand-in-glove with the newly
10040 # built GCC, so that we can examine its features. This is the linker
10041 # which will be driven by the driver program.
10043 # If build != host, and we aren't building gas in-tree, we identify a
10044 # build->target linker and hope that it will have the same features
10045 # as the host->target linker we'll be using.
10046 echo "$as_me:$LINENO: checking what linker to use" >&5
10047 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10050 gcc_cv_gld_major_version
=
10051 gcc_cv_gld_minor_version
=
10052 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10053 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10054 if test -x "$DEFAULT_LINKER"; then
10055 gcc_cv_ld
="$DEFAULT_LINKER"
10056 elif test -x "$LD_FOR_TARGET"; then
10057 gcc_cv_ld
="$LD_FOR_TARGET"
10058 elif test -x "$LD" && test x
$host = x
$target; then
10060 elif test -x collect-ld
$host_exeext; then
10061 # Build using linker in the current directory.
10062 gcc_cv_ld
=.
/collect-ld
$host_exeext
10063 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10064 && test -f ..
/ld
/Makefile
; then
10065 # Single tree build which includes ld.
10067 in_tree_ld_is_elf
=no
10068 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10069 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10070 in_tree_ld_is_elf
=yes
10072 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
10074 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10075 if test x
$gcc_cv_gld_version != x
; then
10079 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10080 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10081 rm -f collect-ld
$host_exeext
10082 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10086 if test "x$gcc_cv_ld" = x
; then
10087 # Search the same directories that the installed compiler will
10088 # search. Else we may find the wrong linker and lose. If we
10089 # do not find a suitable linker binary, then try the user's
10092 # Also note we have to check MD_EXEC_PREFIX before checking the
10093 # user's path. Unfortunately, there is no good way to get at the
10094 # value of MD_EXEC_PREFIX here. So we do a brute force search
10095 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10096 # to be fixed as part of the make/configure rewrite too.
10098 if test "x$exec_prefix" = xNONE
; then
10099 if test "x$prefix" = xNONE
; then
10100 test_prefix
=/usr
/local
10102 test_prefix
=$prefix
10105 test_prefix
=$exec_prefix
10108 # If the loop below does not find an linker, then use whatever
10109 # one we can find in the users's path.
10111 if test "x$program_prefix" != xNONE
; then
10112 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10114 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10117 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10118 $test_prefix/libexec/gcc/$target_noncanonical \
10119 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10120 /usr/lib/gcc/$target_noncanonical \
10121 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10122 $test_prefix/$target_noncanonical/bin"
10124 if test x
$host = x
$target; then
10125 test_dirs
="$test_dirs \
10130 /bsd43/usr/lib/cmplrs/cc \
10131 /usr/cross64/usr/bin \
10132 /usr/lib/cmplrs/cc \
10133 /sysv/usr/lib/cmplrs/cc \
10134 /svr4/usr/lib/cmplrs/cc \
10138 for dir
in $test_dirs; do
10139 if test -x $dir/ld
$host_exeext; then
10140 gcc_cv_ld
=$dir/ld
$host_exeext
10145 case $in_tree_ld in
10147 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10148 echo "${ECHO_T}\"newly built ld\"" >&6
10151 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10152 echo "${ECHO_T}$gcc_cv_ld" >&6
10156 # Figure out what nm we will be using.
10157 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10158 echo "$as_me:$LINENO: checking what nm to use" >&5
10159 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10161 if test -x nm
$host_exeext; then
10162 gcc_cv_nm
=.
/nm
$host_exeext
10163 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10164 && test -f ..
/binutils
/Makefile
; then
10165 # Single tree build which includes binutils.
10167 gcc_cv_nm
=.
/nm
$host_exeext
10168 rm -f nm
$host_exeext
10169 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10170 elif test "x$program_prefix" != xNONE
; then
10171 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10173 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10175 case $in_tree_nm in
10176 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10177 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10178 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10179 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10182 # Figure out what objdump we will be using.
10183 echo "$as_me:$LINENO: checking what objdump to use" >&5
10184 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10186 if test -x objdump
$host_exeext; then
10187 gcc_cv_objdump
=.
/objdump
$host_exeext
10188 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10189 && test -f ..
/binutils
/Makefile
; then
10190 # Single tree build which includes binutils.
10191 in_tree_objdump
=yes
10192 gcc_cv_objdump
=.
/objdump
$host_exeext
10193 rm -f objdump
$host_exeext
10194 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10195 objdump
$host_exeext 2>/dev
/null
10196 elif test "x$program_prefix" != xNONE
; then
10197 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10199 gcc_cv_objdump
=`echo objdump | \
10200 sed "${program_transform_name}"`$host_exeext
10202 case $in_tree_objdump in
10203 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10204 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10205 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10206 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10209 # Figure out what assembler alignment features are present.
10210 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10211 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10212 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 gcc_cv_as_balign_and_p2align
=no
10216 if test $in_tree_gas = yes; then
10217 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10218 then gcc_cv_as_balign_and_p2align
=yes
10220 elif test x
$gcc_cv_as != x
; then
10222 .p2align 2' > conftest.s
10223 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }
10230 gcc_cv_as_balign_and_p2align
=yes
10232 echo "configure: failed program was" >&5
10235 rm -f conftest.o conftest.s
10238 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10239 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10240 if test $gcc_cv_as_balign_and_p2align = yes; then
10242 cat >>confdefs.h
<<\_ACEOF
10243 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10248 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10249 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10250 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 gcc_cv_as_max_skip_p2align
=no
10254 if test $in_tree_gas = yes; then
10255 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10256 then gcc_cv_as_max_skip_p2align
=yes
10258 elif test x
$gcc_cv_as != x
; then
10259 echo '.p2align 4,,7' > conftest.s
10260 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }
10267 gcc_cv_as_max_skip_p2align
=yes
10269 echo "configure: failed program was" >&5
10272 rm -f conftest.o conftest.s
10275 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10276 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10277 if test $gcc_cv_as_max_skip_p2align = yes; then
10279 cat >>confdefs.h
<<\_ACEOF
10280 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10285 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10286 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10287 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 gcc_cv_as_subsection_m1
=no
10291 if test $in_tree_gas = yes; then
10292 if test $in_tree_gas_is_elf = yes \
10293 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10294 then gcc_cv_as_subsection_m1
=yes
10296 elif test x
$gcc_cv_as != x
; then
10297 echo 'conftest_label1: .word 0
10299 conftest_label2: .word 0
10300 .previous' > conftest.s
10301 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }
10308 if test x
$gcc_cv_nm != x
; then
10309 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10310 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10311 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10313 else gcc_cv_as_subsection_m1
=yes
10315 rm -f conftest.nm1 conftest.nm2
10318 echo "configure: failed program was" >&5
10321 rm -f conftest.o conftest.s
10324 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10325 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10326 if test $gcc_cv_as_subsection_m1 = yes; then
10328 cat >>confdefs.h
<<\_ACEOF
10329 #define HAVE_GAS_SUBSECTION_ORDERING 1
10334 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10335 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10336 if test "${gcc_cv_as_weak+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 if test $in_tree_gas = yes; then
10341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10342 then gcc_cv_as_weak
=yes
10344 elif test x
$gcc_cv_as != x
; then
10345 echo ' .weak foobar' > conftest.s
10346 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }
10355 echo "configure: failed program was" >&5
10358 rm -f conftest.o conftest.s
10361 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10362 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10363 if test $gcc_cv_as_weak = yes; then
10365 cat >>confdefs.h
<<\_ACEOF
10366 #define HAVE_GAS_WEAK 1
10371 # .hidden needs to be supported in both the assembler and the linker,
10372 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10373 # This is irritatingly difficult to feature test for; we have to check the
10374 # date string after the version number. If we've got an in-tree
10375 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10377 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10378 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10379 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10380 if test "${gcc_cv_as_hidden+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 gcc_cv_as_hidden
=no
10384 if test $in_tree_gas = yes; then
10385 if test $in_tree_gas_is_elf = yes \
10386 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10387 then gcc_cv_as_hidden
=yes
10389 elif test x
$gcc_cv_as != x
; then
10390 echo ' .hidden foobar
10391 foobar:' > conftest.s
10392 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }
10399 gcc_cv_as_hidden
=yes
10401 echo "configure: failed program was" >&5
10404 rm -f conftest.o conftest.s
10407 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10408 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10411 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10412 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10413 if test "${gcc_cv_ld_hidden+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 if test $in_tree_ld = yes ; then
10417 gcc_cv_ld_hidden
=no
10418 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 \
10419 && test $in_tree_ld_is_elf = yes; then
10420 gcc_cv_ld_hidden
=yes
10423 gcc_cv_ld_hidden
=yes
10424 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10425 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10426 ld_vers
=`echo $ld_ver | sed -n \
10427 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10428 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10429 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10430 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10431 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10432 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10433 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'`
10434 if test 0"$ld_date" -lt 20020404; then
10435 if test -n "$ld_date"; then
10436 # If there was date string, but was earlier than 2002-04-04, fail
10437 gcc_cv_ld_hidden
=no
10438 elif test -z "$ld_vers"; then
10439 # If there was no date string nor ld version number, something is wrong
10440 gcc_cv_ld_hidden
=no
10442 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10443 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10444 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10445 test -z "$ld_vers_patch" && ld_vers_patch
=0
10446 if test "$ld_vers_major" -lt 2; then
10447 gcc_cv_ld_hidden
=no
10448 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10449 gcc_cv_ld_hidden
="no"
10450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10451 gcc_cv_ld_hidden
=no
10456 case "${target}" in
10457 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10458 gcc_cv_ld_hidden
=yes
10461 gcc_cv_ld_hidden
=no
10467 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10468 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10469 libgcc_visibility
=no
10471 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10472 libgcc_visibility
=yes
10474 cat >>confdefs.h
<<\_ACEOF
10475 #define HAVE_GAS_HIDDEN 1
10480 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10481 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10482 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10483 if test "${gcc_cv_as_leb128+set}" = set; then
10484 echo $ECHO_N "(cached) $ECHO_C" >&6
10486 gcc_cv_as_leb128
=no
10487 if test $in_tree_gas = yes; then
10488 if test $in_tree_gas_is_elf = yes \
10489 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10490 then gcc_cv_as_leb128
=yes
10492 elif test x
$gcc_cv_as != x
; then
10499 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }
10506 # GAS versions before 2.11 do not support uleb128,
10507 # despite appearing to.
10508 # ??? There exists an elf-specific test that will crash
10509 # the assembler. Perhaps it's better to figure out whether
10510 # arbitrary sections are supported and try the test.
10511 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10512 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10513 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10514 as_major
=`echo $as_ver | sed 's/\..*//'`
10515 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10516 if test $as_major -eq 2 && test $as_minor -lt 11
10518 else gcc_cv_as_leb128
=yes
10522 echo "configure: failed program was" >&5
10525 rm -f conftest.o conftest.s
10528 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10529 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10530 if test $gcc_cv_as_leb128 = yes; then
10532 cat >>confdefs.h
<<\_ACEOF
10533 #define HAVE_AS_LEB128 1
10538 # GAS versions up to and including 2.11.0 may mis-optimize
10540 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10541 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10542 if test "${gcc_cv_as_eh_frame+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 gcc_cv_as_eh_frame
=no
10546 if test $in_tree_gas = yes; then
10547 if test $in_tree_gas_is_elf = yes \
10548 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10549 then gcc_cv_as_eh_frame
=yes
10551 elif test x
$gcc_cv_as != x
; then
10558 .section .eh_frame,"aw",@progbits
10560 .4byte .LECIE1-.LSCIE1
10574 .4byte .LEFDE1-.LASFDE1
10576 .4byte .LASFDE1-__FRAME_BEGIN__
10583 .LEFDE1:' > conftest.s
10584 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }
10591 cat > conftest.lit
<<EOF
10592 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10593 0010 01000000 12000000 18000000 00000000 ................
10594 0020 08000000 04080000 0044 .........D
10596 cat > conftest.big
<<EOF
10597 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10598 0010 00000001 00000012 00000018 00000000 ................
10599 0020 00000008 04000000 0844 .........D
10601 # If the assembler didn't choke, and we can objdump,
10602 # and we got the correct data, then succeed.
10603 if test x
$gcc_cv_objdump != x \
10604 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10605 |
tail -3 > conftest.got \
10606 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10607 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10609 gcc_cv_as_eh_frame
=yes
10610 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 gcc_cv_as_eh_frame
=buggy
10618 # Uh oh, what do we do now?
10619 gcc_cv_as_eh_frame
=no
10622 echo "configure: failed program was" >&5
10625 rm -f conftest.o conftest.s
10628 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10629 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10632 if test $gcc_cv_as_eh_frame = buggy
; then
10634 cat >>confdefs.h
<<\_ACEOF
10635 #define USE_AS_TRADITIONAL_FORMAT 1
10640 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10641 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10642 if test "${gcc_cv_as_shf_merge+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 gcc_cv_as_shf_merge
=no
10646 if test $in_tree_gas = yes; then
10647 if test $in_tree_gas_is_elf = yes \
10648 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10649 then gcc_cv_as_shf_merge
=yes
10651 elif test x
$gcc_cv_as != x
; then
10652 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10653 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }
10660 gcc_cv_as_shf_merge
=yes
10662 echo "configure: failed program was" >&5
10665 rm -f conftest.o conftest.s
10668 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10669 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10672 cat >>confdefs.h
<<_ACEOF
10673 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10677 # Thread-local storage - the check is heavily parametrized.
10685 .section ".tdata","awT",@progbits
10688 ldq $27,__tls_get_addr($29) !literal!1
10689 lda $16,foo($29) !tlsgd!1
10690 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10691 ldq $27,__tls_get_addr($29) !literal!2
10692 lda $16,foo($29) !tlsldm!2
10693 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10694 ldq $1,foo($29) !gotdtprel
10695 ldah $2,foo($29) !dtprelhi
10696 lda $3,foo($2) !dtprello
10697 lda $4,foo($29) !dtprel
10698 ldq $1,foo($29) !gottprel
10699 ldah $2,foo($29) !tprelhi
10700 lda $3,foo($2) !tprello
10701 lda $4,foo($29) !tprel'
10704 tls_as_opt
=--fatal-warnings
10708 .section ".tdata","awT",@progbits
10712 leal foo@TLSGD(,%ebx,1), %eax
10713 leal foo@TLSLDM(%ebx), %eax
10714 leal foo@DTPOFF(%eax), %edx
10715 movl foo@GOTTPOFF(%ebx), %eax
10716 subl foo@GOTTPOFF(%ebx), %eax
10717 addl foo@GOTNTPOFF(%ebx), %eax
10718 movl foo@INDNTPOFF, %eax
10719 movl $foo@TPOFF, %eax
10720 subl $foo@TPOFF, %eax
10721 leal foo@NTPOFF(%ecx), %eax'
10724 tls_as_opt
=--fatal-warnings
10728 .section ".tdata","awT",@progbits
10732 leaq foo@TLSGD(%rip), %rdi
10733 leaq foo@TLSLD(%rip), %rdi
10734 leaq foo@DTPOFF(%rax), %rdx
10735 movq foo@GOTTPOFF(%rip), %rax
10736 movq $foo@TPOFF, %rax'
10739 tls_as_opt
=--fatal-warnings
10743 .section ".tdata","awT",@progbits
10746 addl r16 = @ltoff(@dtpmod(foo#)), gp
10747 addl r17 = @ltoff(@dtprel(foo#)), gp
10748 addl r18 = @ltoff(@tprel(foo#)), gp
10749 addl r19 = @dtprel(foo#), gp
10750 adds r21 = @dtprel(foo#), r13
10751 movl r23 = @dtprel(foo#)
10752 addl r20 = @tprel(foo#), gp
10753 adds r22 = @tprel(foo#), r13
10754 movl r24 = @tprel(foo#)'
10757 tls_as_opt
=--fatal-warnings
10761 .section ".tdata","awT",@progbits
10769 addi 3,31,ld0@got@tlsgd
10771 addi 3,31,x1@got@tlsld
10774 addis 9,3,x2@dtprel@ha
10775 addi 9,9,x2@dtprel@l
10776 lwz 9,x3@got@tprel(31)
10779 addis 9,2,x2@tprel@ha
10780 addi 9,9,x2@tprel@l'
10783 tls_as_opt
="-a32 --fatal-warnings"
10787 .section ".tdata","awT",@progbits
10795 addi 3,2,ld0@got@tlsgd
10801 addi 3,2,x1@got@tlsld
10807 addis 9,3,x2@dtprel@ha
10808 addi 9,9,x2@dtprel@l
10811 ld 9,x3@got@dtprel(2)
10817 tls_as_opt
="-a64 --fatal-warnings"
10821 .section ".tdata","awT",@progbits
10828 .long foo@GOTNTPOFF
10829 .long foo@INDNTPOFF
10830 l %r1,foo@GOTNTPOFF(%r12)
10831 l %r1,0(%r1):tls_load:foo
10832 bas %r14,0(%r1,%r13):tls_gdcall:foo
10833 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10836 tls_as_opt
="-m31 --fatal-warnings"
10840 .section ".tdata","awT",@progbits
10847 .quad foo@GOTNTPOFF
10848 lg %r1,foo@GOTNTPOFF(%r12)
10849 larl %r1,foo@INDNTPOFF
10850 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10851 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10854 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10856 sh-
*-* | sh
[34]-*-*)
10858 .section ".tdata","awT",@progbits
10868 tls_as_opt
=--fatal-warnings
10872 sparc
*-sun-solaris2.
*)
10879 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10881 .section ".tdata",#alloc,#write,#tls
10884 sethi %tgd_hi22(foo), %o0
10885 add %o0, %tgd_lo10(foo), %o1
10886 add %l7, %o1, %o0, %tgd_add(foo)
10887 call __tls_get_addr, %tgd_call(foo)
10888 sethi %tldm_hi22(foo), %l1
10889 add %l1, %tldm_lo10(foo), %l2
10890 add %l7, %l2, %o0, %tldm_add(foo)
10891 call __tls_get_addr, %tldm_call(foo)
10892 sethi %tldo_hix22(foo), %l3
10893 xor %l3, %tldo_lox10(foo), %l4
10894 add %o0, %l4, %l5, %tldo_add(foo)
10895 sethi %tie_hi22(foo), %o3
10896 add %o3, %tie_lo10(foo), %o3
10897 ld [%l7 + %o3], %o2, %tie_ld(foo)
10898 add %g7, %o2, %o4, %tie_add(foo)
10899 sethi %tle_hix22(foo), %l1
10900 xor %l1, %tle_lox10(foo), %o5
10901 ld [%g7 + %o5], %o1'
10906 .section ".tdata","awT",@progbits
10909 sethi %tgd_hi22(foo), %o0
10910 add %o0, %tgd_lo10(foo), %o1
10911 add %l7, %o1, %o0, %tgd_add(foo)
10912 call __tls_get_addr, %tgd_call(foo)
10913 sethi %tldm_hi22(foo), %l1
10914 add %l1, %tldm_lo10(foo), %l2
10915 add %l7, %l2, %o0, %tldm_add(foo)
10916 call __tls_get_addr, %tldm_call(foo)
10917 sethi %tldo_hix22(foo), %l3
10918 xor %l3, %tldo_lox10(foo), %l4
10919 add %o0, %l4, %l5, %tldo_add(foo)
10920 sethi %tie_hi22(foo), %o3
10921 add %o3, %tie_lo10(foo), %o3
10922 ld [%l7 + %o3], %o2, %tie_ld(foo)
10923 add %g7, %o2, %o4, %tie_add(foo)
10924 sethi %tle_hix22(foo), %l1
10925 xor %l1, %tle_lox10(foo), %o5
10926 ld [%g7 + %o5], %o1'
10929 tls_as_opt
="-32 --fatal-warnings"
10933 if test -z "$tls_first_major"; then
10934 : # If we don't have a check, assume no support.
10936 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10937 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10938 if test "${gcc_cv_as_tls+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 if test $in_tree_gas = yes; then
10943 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10944 then gcc_cv_as_tls
=yes
10946 elif test x
$gcc_cv_as != x
; then
10947 echo "$conftest_s" > conftest.s
10948 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }
10957 echo "configure: failed program was" >&5
10960 rm -f conftest.o conftest.s
10963 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10964 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10965 if test $gcc_cv_as_tls = yes; then
10967 cat >>confdefs.h
<<\_ACEOF
10968 #define HAVE_AS_TLS 1
10974 # Target-specific assembler checks.
10977 # All TARGET_ABI_OSF targets.
10978 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10979 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10980 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10981 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 gcc_cv_as_alpha_explicit_relocs
=no
10985 if test $in_tree_gas = yes; then
10986 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10987 then gcc_cv_as_alpha_explicit_relocs
=yes
10989 elif test x
$gcc_cv_as != x
; then
10990 echo ' .set nomacro
10992 extbl $3, $2, $3 !lituse_bytoff!1
10993 ldq $2, a($29) !literal!1
10994 ldq $4, b($29) !literal!2
10995 ldq_u $3, 0($2) !lituse_base!1
10996 ldq $27, f($29) !literal!5
10997 jsr $26, ($27), f !lituse_jsr!5
10998 ldah $29, 0($26) !gpdisp!3
10999 lda $0, c($29) !gprel
11000 ldah $1, d($29) !gprelhigh
11001 lda $1, d($1) !gprellow
11002 lda $29, 0($29) !gpdisp!3' > conftest.s
11003 if { ac_try
='$gcc_cv_as -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); }; }
11010 gcc_cv_as_alpha_explicit_relocs
=yes
11012 echo "configure: failed program was" >&5
11015 rm -f conftest.o conftest.s
11018 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11019 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11020 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11022 cat >>confdefs.h
<<\_ACEOF
11023 #define HAVE_AS_EXPLICIT_RELOCS 1
11030 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11031 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11032 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 gcc_cv_as_cris_no_mul_bug
=no
11036 if test $in_tree_gas = yes; then
11037 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11038 then gcc_cv_as_cris_no_mul_bug
=yes
11040 elif test x
$gcc_cv_as != x
; then
11041 echo '.text' > conftest.s
11042 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }
11049 gcc_cv_as_cris_no_mul_bug
=yes
11051 echo "configure: failed program was" >&5
11054 rm -f conftest.o conftest.s
11057 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11058 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11059 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11061 cat >>confdefs.h
<<\_ACEOF
11062 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11069 echo "$as_me:$LINENO: checking assembler for .register" >&5
11070 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11071 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 gcc_cv_as_sparc_register_op
=no
11075 if test x
$gcc_cv_as != x
; then
11076 echo '.register %g2, #scratch' > conftest.s
11077 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }
11084 gcc_cv_as_sparc_register_op
=yes
11086 echo "configure: failed program was" >&5
11089 rm -f conftest.o conftest.s
11092 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11093 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11094 if test $gcc_cv_as_sparc_register_op = yes; then
11096 cat >>confdefs.h
<<\_ACEOF
11097 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11102 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11103 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11104 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 gcc_cv_as_sparc_relax
=no
11108 if test x
$gcc_cv_as != x
; then
11109 echo '.text' > conftest.s
11110 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }
11117 gcc_cv_as_sparc_relax
=yes
11119 echo "configure: failed program was" >&5
11122 rm -f conftest.o conftest.s
11125 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11126 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11127 if test $gcc_cv_as_sparc_relax = yes; then
11129 cat >>confdefs.h
<<\_ACEOF
11130 #define HAVE_AS_RELAX_OPTION 1
11135 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11136 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11137 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 gcc_cv_as_sparc_ua_pcrel
=no
11141 if test x
$gcc_cv_as != x
; then
11148 .uaword %r_disp32(foo)' > conftest.s
11149 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }
11156 if test x
$gcc_cv_ld != x \
11157 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11158 gcc_cv_as_sparc_ua_pcrel
=yes
11162 echo "configure: failed program was" >&5
11165 rm -f conftest.o conftest.s
11168 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11169 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11170 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11172 cat >>confdefs.h
<<\_ACEOF
11173 #define HAVE_AS_SPARC_UA_PCREL 1
11177 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11178 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11179 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11183 if test x
$gcc_cv_as != x
; then
11187 .uaword %r_disp32(foo)
11188 .byte 0x32, 0x33, 0x34
11192 .skip 4' > conftest.s
11193 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }
11200 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11201 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11202 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11203 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11204 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11205 |
grep 'DISP32' > /dev
/null
2>&1; then
11208 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11213 echo "configure: failed program was" >&5
11216 rm -f conftest.o conftest.s
11219 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11220 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11221 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11223 cat >>confdefs.h
<<\_ACEOF
11224 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11229 fi # unaligned pcrel relocs
11231 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11232 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11233 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 gcc_cv_as_sparc_offsetable_lo10
=no
11237 if test x
$gcc_cv_as != x
; then
11239 or %g1, %lo(ab) + 12, %g1
11240 or %g1, %lo(ab + 12), %g1' > conftest.s
11241 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }
11248 if test x
$gcc_cv_objdump != x \
11249 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11250 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11251 gcc_cv_as_offsetable_lo10
=yes
11254 echo "configure: failed program was" >&5
11257 rm -f conftest.o conftest.s
11260 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11261 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11262 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11264 cat >>confdefs.h
<<\_ACEOF
11265 #define HAVE_AS_OFFSETABLE_LO10 1
11271 i
[34567]86-*-* | x86_64-
*-*)
11272 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11273 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11274 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 gcc_cv_as_ix86_filds_fists
=no
11278 if test $in_tree_gas = yes; then
11279 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11280 then gcc_cv_as_ix86_filds_fists
=yes
11282 elif test x
$gcc_cv_as != x
; then
11283 echo 'filds mem; fists mem' > conftest.s
11284 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286 (eval $ac_try) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); }; }
11291 gcc_cv_as_ix86_filds_fists
=yes
11293 echo "configure: failed program was" >&5
11296 rm -f conftest.o conftest.s
11299 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11300 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11301 if test $gcc_cv_as_ix86_filds_fists = yes; then
11303 cat >>confdefs.h
<<\_ACEOF
11304 #define HAVE_GAS_FILDS_FISTS 1
11309 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11310 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11311 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 gcc_cv_as_ix86_cmov_sun_syntax
=no
11315 if test x
$gcc_cv_as != x
; then
11316 echo 'cmovl.l %edx, %eax' > conftest.s
11317 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }
11324 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11326 echo "configure: failed program was" >&5
11329 rm -f conftest.o conftest.s
11332 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11333 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11334 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11336 cat >>confdefs.h
<<\_ACEOF
11337 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11342 # This one is used unconditionally by i386.[ch]; it is to be defined
11343 # to 1 if the feature is present, 0 otherwise.
11344 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11345 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11346 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 gcc_cv_as_ix86_gotoff_in_data
=no
11350 if test $in_tree_gas = yes; then
11351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11352 then gcc_cv_as_ix86_gotoff_in_data
=yes
11354 elif test x
$gcc_cv_as != x
; then
11359 .long .L0@GOTOFF' > conftest.s
11360 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362 (eval $ac_try) 2>&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; }
11367 gcc_cv_as_ix86_gotoff_in_data
=yes
11369 echo "configure: failed program was" >&5
11372 rm -f conftest.o conftest.s
11375 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11376 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11379 cat >>confdefs.h
<<_ACEOF
11380 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11386 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11387 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11388 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11392 if test $in_tree_gas = yes; then
11393 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11394 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11396 elif test x
$gcc_cv_as != x
; then
11398 addl r15 = @ltoffx(x#), gp
11400 ld8.mov r16 = [r15], x#' > conftest.s
11401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }
11408 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11410 echo "configure: failed program was" >&5
11413 rm -f conftest.o conftest.s
11416 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11417 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11418 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11420 cat >>confdefs.h
<<\_ACEOF
11421 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11430 *-*-aix*) conftest_s
=' .csect .text[PR]
11432 *-*-darwin*) conftest_s
=' .text
11434 *) conftest_s
=' .text
11438 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11439 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11440 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 gcc_cv_as_powerpc_mfcrf
=no
11444 if test $in_tree_gas = yes; then
11445 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11446 then gcc_cv_as_powerpc_mfcrf
=yes
11448 elif test x
$gcc_cv_as != x
; then
11449 echo "$conftest_s" > conftest.s
11450 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }
11457 gcc_cv_as_powerpc_mfcrf
=yes
11459 echo "configure: failed program was" >&5
11462 rm -f conftest.o conftest.s
11465 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11466 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11467 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11469 cat >>confdefs.h
<<\_ACEOF
11470 #define HAVE_AS_MFCRF 1
11477 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11478 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11479 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 gcc_cv_as_mips_explicit_relocs
=no
11483 if test $in_tree_gas = yes; then
11484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11485 then gcc_cv_as_mips_explicit_relocs
=yes
11487 elif test x
$gcc_cv_as != x
; then
11488 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11489 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; }
11496 gcc_cv_as_mips_explicit_relocs
=yes
11498 echo "configure: failed program was" >&5
11501 rm -f conftest.o conftest.s
11504 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11505 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11506 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11507 if test x
$target_cpu_default = x
11508 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11509 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11515 # ??? Not all targets support dwarf2 debug_line, even within a version
11516 # of gas. Moreover, we need to emit a valid instruction to trigger any
11517 # info to the output file. So, as supported targets are added to gas 2.11,
11518 # add some instruction here to (also) show we expect this might work.
11519 # ??? Once 2.11 is released, probably need to add first known working
11520 # version to the per-target configury.
11522 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11523 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11524 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11527 ia64
*-*-* | s390
*-*-*)
11534 if test x
"$insn" != x
; then
11536 .file 1 \"conftest.s\"
11539 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11540 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11541 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 gcc_cv_as_dwarf2_debug_line
=no
11545 if test $in_tree_gas = yes; then
11546 if test $in_tree_gas_is_elf = yes \
11547 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11548 then gcc_cv_as_dwarf2_debug_line
=yes
11550 elif test x
$gcc_cv_as != x
; then
11551 echo "$conftest_s" > conftest.s
11552 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }
11559 # ??? This fails with non-gnu grep. Maybe use objdump?
11560 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11561 gcc_cv_as_dwarf2_debug_line
=yes
11564 echo "configure: failed program was" >&5
11567 rm -f conftest.o conftest.s
11570 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11571 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11574 # The .debug_line file table must be in the exact order that
11575 # we specified the files, since these indices are also used
11576 # by DW_AT_decl_file. Approximate this test by testing if
11577 # the assembler bitches if the same index is assigned twice.
11578 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11579 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11580 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 gcc_cv_as_dwarf2_file_buggy
=no
11584 if test x
$gcc_cv_as != x
; then
11585 echo ' .file 1 "foo.s"
11586 .file 1 "bar.s"' > conftest.s
11587 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }
11594 gcc_cv_as_dwarf2_file_buggy
=yes
11596 echo "configure: failed program was" >&5
11599 rm -f conftest.o conftest.s
11602 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11603 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11606 if test $gcc_cv_as_dwarf2_debug_line = yes \
11607 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11609 cat >>confdefs.h
<<\_ACEOF
11610 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11615 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11616 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11617 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 gcc_cv_as_gdwarf2_flag
=no
11621 if test $in_tree_gas = yes; then
11622 if test $in_tree_gas_is_elf = yes \
11623 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11624 then gcc_cv_as_gdwarf2_flag
=yes
11626 elif test x
$gcc_cv_as != x
; then
11627 echo "$insn" > conftest.s
11628 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }
11635 gcc_cv_as_gdwarf2_flag
=yes
11637 echo "configure: failed program was" >&5
11640 rm -f conftest.o conftest.s
11643 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11644 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11645 if test $gcc_cv_as_gdwarf2_flag = yes; then
11647 cat >>confdefs.h
<<\_ACEOF
11648 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11653 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11654 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11655 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 gcc_cv_as_gstabs_flag
=no
11659 if test $in_tree_gas = yes; then
11660 if test $in_tree_gas_is_elf = yes \
11661 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11662 then gcc_cv_as_gstabs_flag
=yes
11664 elif test x
$gcc_cv_as != x
; then
11665 echo "$insn" > conftest.s
11666 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }
11673 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11674 # and warns about it, but still exits successfully. So check for
11676 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }
11683 else gcc_cv_as_gstabs_flag
=yes
11686 echo "configure: failed program was" >&5
11689 rm -f conftest.o conftest.s
11692 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11693 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11694 if test $gcc_cv_as_gstabs_flag = yes; then
11696 cat >>confdefs.h
<<\_ACEOF
11697 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11703 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11704 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11705 gcc_cv_ld_ro_rw_mix
=unknown
11706 if test $in_tree_ld = yes ; then
11707 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 \
11708 && test $in_tree_ld_is_elf = yes; then
11709 gcc_cv_ld_ro_rw_mix
=read-write
11711 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11712 echo '.section myfoosect, "a"' > conftest1.s
11713 echo '.section myfoosect, "aw"' > conftest2.s
11714 echo '.byte 1' >> conftest2.s
11715 echo '.section myfoosect, "a"' > conftest3.s
11716 echo '.byte 0' >> conftest3.s
11717 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11718 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11719 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11720 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11721 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11722 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11723 | sed -e '/myfoosect/!d' -e N`
11724 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11725 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11726 gcc_cv_ld_ro_rw_mix
=read-only
11728 gcc_cv_ld_ro_rw_mix
=read-write
11732 rm -f conftest.
* conftest
[123].
*
11734 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11736 cat >>confdefs.h
<<\_ACEOF
11737 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11741 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11742 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11744 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11745 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11746 gcc_cv_ld_eh_frame_hdr
=no
11747 if test $in_tree_ld = yes ; then
11748 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 \
11749 && test $in_tree_ld_is_elf = yes; then
11750 gcc_cv_ld_eh_frame_hdr
=yes
11752 elif test x
$gcc_cv_ld != x
; then
11753 # Check if linker supports --eh-frame-hdr option
11754 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11755 gcc_cv_ld_eh_frame_hdr
=yes
11758 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11760 cat >>confdefs.h
<<\_ACEOF
11761 #define HAVE_LD_EH_FRAME_HDR 1
11765 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11766 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11768 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11769 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11771 if test $in_tree_ld = yes ; then
11772 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 \
11773 && test $in_tree_ld_is_elf = yes; then
11776 elif test x
$gcc_cv_ld != x
; then
11777 # Check if linker supports -pie option
11778 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11782 if test x
"$gcc_cv_ld_pie" = xyes
; then
11784 cat >>confdefs.h
<<\_ACEOF
11785 #define HAVE_LD_PIE 1
11789 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11790 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11796 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11797 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11799 cat >>confdefs.h
<<_ACEOF
11800 #define PREFIX_INCLUDE_DIR "$prefix/include"
11805 # Find out what GC implementation we want, or may, use.
11807 # Check whether --with-gc or --without-gc was given.
11808 if test "${with_gc+set}" = set; then
11815 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11816 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11817 { (exit 1); exit 1; }; }
11824 echo "Using $GGC for garbage collection."
11826 # Use the system's zlib library.
11828 zlibinc
="-I\$(srcdir)/../zlib"
11830 # Check whether --with-system-zlib or --without-system-zlib was given.
11831 if test "${with_system_zlib+set}" = set; then
11832 withval
="$with_system_zlib"
11841 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11842 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11843 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11844 if test "${enable_maintainer_mode+set}" = set; then
11845 enableval
="$enable_maintainer_mode"
11846 maintainer_mode
=$enableval
11851 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11852 echo "${ECHO_T}$maintainer_mode" >&6
11854 if test "$maintainer_mode" = "yes"; then
11864 # Make empty files to contain the specs and options for each language.
11865 # Then add #include lines to for a compiler that has specs and/or options.
11870 for subdir
in .
$subdirs
11872 if test -f $srcdir/$subdir/lang.opt
; then
11873 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11875 if test -f $srcdir/$subdir/lang-specs.h
; then
11876 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11878 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11879 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11883 # These (without "all_") are set in each config-lang.in.
11884 # `language' must be a single word so is spelled singularly.
11886 all_boot_languages
=
11889 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11890 # List of language makefile fragments.
11891 all_lang_makefrags
=
11892 # List of language subdirectory makefiles. Deprecated.
11893 all_lang_makefiles
=
11894 # Files for gengtype
11895 all_gtfiles
="$target_gtfiles"
11896 # Files for gengtype with language
11897 all_gtfiles_files_langs
=
11898 all_gtfiles_files_files
=
11900 # Add the language fragments.
11901 # Languages are added via two mechanisms. Some information must be
11902 # recorded in makefile variables, these are defined in config-lang.in.
11903 # We accumulate them and plug them into the main Makefile.
11904 # The other mechanism is a set of hooks for each of the main targets
11905 # like `clean', `install', etc.
11907 language_hooks
="Make-hooks"
11917 .
${srcdir}/$s/config-lang.
in
11918 if test "x$language" = x
11920 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11923 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11924 if test -f ${srcdir}/$s/Makefile.
in
11925 then all_lang_makefiles
="$s/Makefile"
11927 all_languages
="$all_languages $language"
11928 if test "x$boot_language" = xyes
11930 all_boot_languages
="$all_boot_languages $language"
11932 all_compilers
="$all_compilers $compilers"
11933 all_stagestuff
="$all_stagestuff $stagestuff"
11934 all_outputs
="$all_outputs $outputs"
11935 all_gtfiles
="$all_gtfiles $gtfiles"
11938 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11939 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11943 # Pick up gtfiles for c
11946 .
${srcdir}/c-config-lang.
in
11947 all_gtfiles
="$all_gtfiles $gtfiles"
11950 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11951 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11955 for language
in $all_languages
11957 check_languages
="$check_languages check-$language"
11960 # We link each language in with a set of hooks, reached indirectly via
11965 target_list
="all.build all.cross start.encap rest.encap tags \
11966 install-normal install-common install-man \
11967 uninstall info man srcextra srcman srcinfo \
11968 mostlyclean clean distclean maintainer-clean \
11969 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11970 for t
in $target_list
11973 for lang
in $all_languages
11977 echo "lang.$t: $x" >> Make-hooks
11986 echo "dir ." > .gdbinit
11987 echo "dir ${srcdir}" >> .gdbinit
11988 if test x
$gdb_needs_out_file_path = xyes
11990 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11992 if test "x$subdirs" != x
; then
11995 echo "dir ${srcdir}/$s" >> .gdbinit
11998 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12000 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12001 # absolute path for gcc_tooldir based on inserting the number of up-directory
12002 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12003 # $(libsubdir)/@(unlibsubdir) based path.
12004 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12005 # make and thus we'd get different behavior depending on where we built the
12007 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12008 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12010 # An explanation of the sed strings:
12011 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12012 # -e 's|/$||' match a trailing forward slash and eliminates it
12013 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12014 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12016 # (*) Note this pattern overwrites the first character of the string
12017 # with a forward slash if one is not already present. This is not a
12018 # problem because the exact names of the sub-directories concerned is
12019 # unimportant, just the number of them matters.
12021 # The practical upshot of these patterns is like this:
12023 # prefix exec_prefix result
12024 # ------ ----------- ------
12025 # /foo /foo/bar ../
12026 # /foo/ /foo/bar ../
12027 # /foo /foo/bar/ ../
12028 # /foo/ /foo/bar/ ../
12029 # /foo /foo/bar/ugg ../../
12032 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12037 # Find a directory in which to install a shared libgcc.
12039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12040 if test "${enable_version_specific_runtime_libs+set}" = set; then
12041 enableval
="$enable_version_specific_runtime_libs"
12046 # Check whether --with-slibdir or --without-slibdir was given.
12047 if test "${with_slibdir+set}" = set; then
12048 withval
="$with_slibdir"
12049 slibdir
="$with_slibdir"
12051 if test "${enable_version_specific_runtime_libs+set}" = set; then
12052 slibdir
='$(libsubdir)'
12053 elif test "$host" != "$target"; then
12054 slibdir
='$(build_tooldir)/lib'
12056 slibdir
='$(libdir)'
12061 objdir
=`${PWDCMD-pwd}`
12064 # Substitute configuration variables
12133 # If it doesn't already exist, create document directory
12134 echo "checking for the document directory." 1>&2
12135 if test -d doc
; then
12142 if test x
${build} = x
${host} ; then
12143 if test x
${host} = x
${target} ; then
12144 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12146 echo "Links are now set up to build a cross-compiler" 1>&2
12147 echo " from ${host} to ${target}." 1>&2
12150 if test x
${host} = x
${target} ; then
12151 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12152 echo " for ${target}." 1>&2
12154 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12155 echo " from ${host} to ${target}." 1>&2
12159 # Configure the subdirectories
12160 # AC_CONFIG_SUBDIRS($subdirs)
12162 # Create the Makefile
12163 # and configure language subdirectories
12164 ac_config_files
="$ac_config_files $all_outputs"
12167 ac_config_commands
="$ac_config_commands default"
12169 cat >confcache
<<\_ACEOF
12170 # This file is a shell script that caches the results of configure
12171 # tests run on this system so they can be shared between configure
12172 # scripts and configure runs, see configure's option --config-cache.
12173 # It is not useful on other systems. If it contains results you don't
12174 # want to keep, you may remove or edit it.
12176 # config.status only pays attention to the cache file if you give it
12177 # the --recheck option to rerun configure.
12179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12181 # following values.
12185 # The following way of writing the cache mishandles newlines in values,
12186 # but we know of no workaround that is simple, portable, and efficient.
12187 # So, don't put newlines in cache variables' values.
12188 # Ultrix sh set writes to stderr and can't be redirected directly,
12189 # and sets the high bit in the cache file unless we assign to the vars.
12192 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12194 # `set' does not quote correctly, so add quotes (double-quote
12195 # substitution turns \\\\ into \\, and sed turns \\ into \).
12198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12201 # `set' quotes correctly as required by POSIX, so do not add quotes.
12203 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12212 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12214 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12215 if test -w $cache_file; then
12216 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12217 cat confcache
>$cache_file
12219 echo "not updating unwritable cache $cache_file"
12224 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12225 # Let make expand exec_prefix.
12226 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12228 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12229 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12230 # trailing colons and then remove the whole line if VPATH becomes empty
12231 # (actually we leave an empty line to preserve line numbers).
12232 if test "x$srcdir" = x.
; then
12233 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12234 s/:*\$(srcdir):*/:/;
12235 s/:*\${srcdir}:*/:/;
12237 s/^\([^=]*=[ ]*\):*/\1/;
12243 DEFS
=-DHAVE_CONFIG_H
12247 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12248 # 1. Remove the extension, and $U if already installed.
12249 ac_i
=`echo "$ac_i" |
12250 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12252 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12253 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12255 LIBOBJS
=$ac_libobjs
12257 LTLIBOBJS
=$ac_ltlibobjs
12261 : ${CONFIG_STATUS=./config.status}
12262 ac_clean_files_save
=$ac_clean_files
12263 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12264 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12265 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12266 cat >$CONFIG_STATUS <<_ACEOF
12268 # Generated by $as_me.
12269 # Run this file to recreate the current configuration.
12270 # Compiler output produced by configure, useful for debugging
12271 # configure, is in config.log if it exists.
12274 ac_cs_recheck=false
12276 SHELL=\${CONFIG_SHELL-$SHELL}
12279 cat >>$CONFIG_STATUS <<\_ACEOF
12280 ## --------------------- ##
12281 ## M4sh Initialization. ##
12282 ## --------------------- ##
12284 # Be Bourne compatible
12285 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12288 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12289 # is contrary to our usage. Disable this feature.
12290 alias -g '${1+"$@"}'='"$@"'
12291 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12294 DUALCASE
=1; export DUALCASE
# for MKS sh
12296 # Support unset when possible.
12297 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12304 # Work around bugs in pre-3.0 UWIN ksh.
12305 $as_unset ENV MAIL MAILPATH
12312 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12313 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12314 LC_TELEPHONE LC_TIME
12316 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12317 eval $as_var=C
; export $as_var
12323 # Required to use basename.
12324 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12330 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12331 as_basename
=basename
12337 # Name of the executable.
12338 as_me
=`$as_basename "$0" ||
12339 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12340 X"$0" : 'X\(//\)$' \| \
12341 X"$0" : 'X\(/\)$' \| \
12342 . : '\(.\)' 2>/dev/null ||
12344 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12345 /^X\/\(\/\/\)$/{ s//\1/; q; }
12346 /^X\/\(\/\).*/{ s//\1/; q; }
12350 # PATH needs CR, and LINENO needs CR and PATH.
12351 # Avoid depending upon Character Ranges.
12352 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12353 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12354 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12355 as_cr_digits
='0123456789'
12356 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12358 # The user is always right.
12359 if test "${PATH_SEPARATOR+set}" != set; then
12360 echo "#! /bin/sh" >conf$$.sh
12361 echo "exit 0" >>conf$$.sh
12363 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12372 as_lineno_1
=$LINENO
12373 as_lineno_2
=$LINENO
12374 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12375 test "x$as_lineno_1" != "x$as_lineno_2" &&
12376 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12377 # Find who we are. Look in the path if we contain no path at all
12380 *[\\/]* ) as_myself
=$0 ;;
12381 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12382 for as_dir
in $PATH
12385 test -z "$as_dir" && as_dir
=.
12386 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12391 # We did not find ourselves, most probably we were run as `sh COMMAND'
12392 # in which case we are not to be found in the path.
12393 if test "x$as_myself" = x
; then
12396 if test ! -f "$as_myself"; then
12397 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12398 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12399 { (exit 1); exit 1; }; }
12401 case $CONFIG_SHELL in
12403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12404 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12407 test -z "$as_dir" && as_dir
=.
12408 for as_base
in sh bash ksh sh5
; do
12411 if ("$as_dir/$as_base" -c '
12412 as_lineno_1=$LINENO
12413 as_lineno_2=$LINENO
12414 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12415 test "x$as_lineno_1" != "x$as_lineno_2" &&
12416 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12417 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12418 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12419 CONFIG_SHELL
=$as_dir/$as_base
12420 export CONFIG_SHELL
12421 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12430 # uniformly replaced by the line number. The first 'sed' inserts a
12431 # line-number line before each line; the second 'sed' does the real
12432 # work. The second script uses 'N' to pair each line-number line
12433 # with the numbered line, and appends trailing '-' during
12434 # substitution so that $LINENO is not a special case at line end.
12435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12436 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12437 sed '=' <$as_myself |
12442 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12445 s,^['$as_cr_digits']*\n,,
12446 ' >$as_me.lineno
&&
12447 chmod +x
$as_me.lineno ||
12448 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12449 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12450 { (exit 1); exit 1; }; }
12452 # Don't try to exec as it changes $[0], causing all sort of problems
12453 # (the dirname of $[0] is not the place where we might find the
12454 # original and so on. Autoconf is especially sensible to this).
12456 # Exit status is that of the last command.
12461 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12462 *c
*,-n*) ECHO_N
= ECHO_C
='
12464 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12465 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12468 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12474 rm -f conf$$ conf$$.exe conf$$.
file
12476 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12477 # We could just check for DJGPP; but this test a) works b) is more generic
12478 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12479 if test -f conf$$.exe
; then
12480 # Don't use ln at all; we don't have any links
12485 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12490 rm -f conf$$ conf$$.exe conf$$.
file
12492 if mkdir
-p .
2>/dev
/null
; then
12495 test -d .
/-p && rmdir .
/-p
12499 as_executable_p
="test -f"
12501 # Sed expression to map a string onto a valid CPP name.
12502 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12504 # Sed expression to map a string onto a valid variable name.
12505 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12509 # We need space, tab and new line, in precisely that order.
12519 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12520 # report actual input values of CONFIG_FILES etc. instead of their
12521 # values after options handling. Logging --version etc. is OK.
12525 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12526 ## Running $as_me. ##
12531 This file was extended by $as_me, which was
12532 generated by GNU Autoconf 2.59. Invocation command line was
12534 CONFIG_FILES = $CONFIG_FILES
12535 CONFIG_HEADERS = $CONFIG_HEADERS
12536 CONFIG_LINKS = $CONFIG_LINKS
12537 CONFIG_COMMANDS = $CONFIG_COMMANDS
12541 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12545 # Files that config.status was made for.
12546 if test -n "$ac_config_files"; then
12547 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12550 if test -n "$ac_config_headers"; then
12551 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12554 if test -n "$ac_config_links"; then
12555 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12558 if test -n "$ac_config_commands"; then
12559 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12562 cat >>$CONFIG_STATUS <<\_ACEOF
12565 \`$as_me' instantiates files from templates according to the
12566 current configuration.
12568 Usage: $0 [OPTIONS] [FILE]...
12570 -h, --help print this help, then exit
12571 -V, --version print version number, then exit
12572 -q, --quiet do not print progress messages
12573 -d, --debug don't remove temporary files
12574 --recheck update $as_me by reconfiguring in the same conditions
12575 --file=FILE[:TEMPLATE]
12576 instantiate the configuration file FILE
12577 --header=FILE[:TEMPLATE]
12578 instantiate the configuration header FILE
12580 Configuration files:
12583 Configuration headers:
12586 Configuration commands:
12589 Report bugs to <bug-autoconf@gnu.org>."
12592 cat >>$CONFIG_STATUS <<_ACEOF
12595 configured by $0, generated by GNU Autoconf 2.59,
12596 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12598 Copyright (C) 2003 Free Software Foundation, Inc.
12599 This config.status script is free software; the Free Software Foundation
12600 gives unlimited permission to copy, distribute and modify it."
12604 cat >>$CONFIG_STATUS <<\_ACEOF
12605 # If no file are specified by the user, then we need to provide default
12606 # value. By we need to know if files were specified by the user.
12612 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12613 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12621 *) # This is not an option, so the user has probably given explicit
12624 ac_need_defaults
=false
;;
12628 # Handling of the options.
12630 cat >>$CONFIG_STATUS <<\_ACEOF
12631 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12633 --version |
--vers* |
-V )
12634 echo "$ac_cs_version"; exit 0 ;;
12636 # Conflict between --help and --header
12637 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12638 Try \`$0 --help' for more information." >&5
12639 echo "$as_me: error: ambiguous option: $1
12640 Try \`$0 --help' for more information." >&2;}
12641 { (exit 1); exit 1; }; };;
12642 --help |
--hel |
-h )
12643 echo "$ac_cs_usage"; exit 0 ;;
12644 --debug |
--d* |
-d )
12646 --file |
--fil |
--fi |
--f )
12648 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12649 ac_need_defaults
=false
;;
12650 --header |
--heade |
--head |
--hea )
12652 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12653 ac_need_defaults
=false
;;
12654 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12655 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12658 # This is an error.
12659 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12660 Try \`$0 --help' for more information." >&5
12661 echo "$as_me: error: unrecognized option: $1
12662 Try \`$0 --help' for more information." >&2;}
12663 { (exit 1); exit 1; }; } ;;
12665 *) ac_config_targets
="$ac_config_targets $1" ;;
12671 ac_configure_extra_args
=
12673 if $ac_cs_silent; then
12675 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12679 cat >>$CONFIG_STATUS <<_ACEOF
12680 if \$ac_cs_recheck; then
12681 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12682 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12687 cat >>$CONFIG_STATUS <<_ACEOF
12689 # INIT-COMMANDS section.
12693 symbolic_link='$symbolic_link'
12700 cat >>$CONFIG_STATUS <<\_ACEOF
12701 for ac_config_target
in $ac_config_targets
12703 case "$ac_config_target" in
12704 # Handling of arguments.
12705 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12706 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12707 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12708 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12709 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12710 { (exit 1); exit 1; }; };;
12714 # If the user did not use the arguments to specify the items to instantiate,
12715 # then the envvar interface is used. Set only those that are not.
12716 # We use the long form for the default assignment because of an extremely
12717 # bizarre bug on SunOS 4.1.3.
12718 if $ac_need_defaults; then
12719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12724 # Have a temporary directory for convenience. Make it in the build tree
12725 # simply because there is no reason to put it here, and in addition,
12726 # creating and moving files from /tmp can sometimes cause problems.
12727 # Create a temporary directory, and hook for its removal unless debugging.
12730 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12731 trap '{ (exit 1); exit 1; }' 1 2 13 15
12734 # Create a (secure) tmp directory for tmp files.
12737 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12738 test -n "$tmp" && test -d "$tmp"
12741 tmp
=.
/confstat$$
-$RANDOM
12742 (umask 077 && mkdir
$tmp)
12745 echo "$me: cannot create a temporary directory in ." >&2
12746 { (exit 1); exit 1; }
12751 cat >>$CONFIG_STATUS <<_ACEOF
12754 # CONFIG_FILES section.
12757 # No need to generate the scripts if there are no CONFIG_FILES.
12758 # This happens for instance when ./config.status config.h
12759 if test -n "\$CONFIG_FILES"; then
12760 # Protect against being on the right side of a sed subst in config.status.
12761 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12762 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12763 s,@SHELL@,$SHELL,;t t
12764 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12765 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12766 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12767 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12768 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12769 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12770 s,@exec_prefix@,$exec_prefix,;t t
12771 s,@prefix@,$prefix,;t t
12772 s,@program_transform_name@,$program_transform_name,;t t
12773 s,@bindir@,$bindir,;t t
12774 s,@sbindir@,$sbindir,;t t
12775 s,@libexecdir@,$libexecdir,;t t
12776 s,@datadir@,$datadir,;t t
12777 s,@sysconfdir@,$sysconfdir,;t t
12778 s,@sharedstatedir@,$sharedstatedir,;t t
12779 s,@localstatedir@,$localstatedir,;t t
12780 s,@libdir@,$libdir,;t t
12781 s,@includedir@,$includedir,;t t
12782 s,@oldincludedir@,$oldincludedir,;t t
12783 s,@infodir@,$infodir,;t t
12784 s,@mandir@,$mandir,;t t
12785 s,@build_alias@,$build_alias,;t t
12786 s,@host_alias@,$host_alias,;t t
12787 s,@target_alias@,$target_alias,;t t
12788 s,@DEFS@,$DEFS,;t t
12789 s,@ECHO_C@,$ECHO_C,;t t
12790 s,@ECHO_N@,$ECHO_N,;t t
12791 s,@ECHO_T@,$ECHO_T,;t t
12792 s,@LIBS@,$LIBS,;t t
12793 s,@build@,$build,;t t
12794 s,@build_cpu@,$build_cpu,;t t
12795 s,@build_vendor@,$build_vendor,;t t
12796 s,@build_os@,$build_os,;t t
12797 s,@host@,$host,;t t
12798 s,@host_cpu@,$host_cpu,;t t
12799 s,@host_vendor@,$host_vendor,;t t
12800 s,@host_os@,$host_os,;t t
12801 s,@target@,$target,;t t
12802 s,@target_cpu@,$target_cpu,;t t
12803 s,@target_vendor@,$target_vendor,;t t
12804 s,@target_os@,$target_os,;t t
12805 s,@build_subdir@,$build_subdir,;t t
12806 s,@host_subdir@,$host_subdir,;t t
12807 s,@target_subdir@,$target_subdir,;t t
12808 s,@GENINSRC@,$GENINSRC,;t t
12810 s,@CFLAGS@,$CFLAGS,;t t
12811 s,@LDFLAGS@,$LDFLAGS,;t t
12812 s,@CPPFLAGS@,$CPPFLAGS,;t t
12813 s,@ac_ct_CC@,$ac_ct_CC,;t t
12814 s,@EXEEXT@,$EXEEXT,;t t
12815 s,@OBJEXT@,$OBJEXT,;t t
12816 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12817 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12819 s,@strict1_warn@,$strict1_warn,;t t
12820 s,@warn_cflags@,$warn_cflags,;t t
12821 s,@WERROR@,$WERROR,;t t
12822 s,@nocommon_flag@,$nocommon_flag,;t t
12823 s,@EGREP@,$EGREP,;t t
12824 s,@valgrind_path@,$valgrind_path,;t t
12825 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12826 s,@valgrind_command@,$valgrind_command,;t t
12827 s,@coverage_flags@,$coverage_flags,;t t
12828 s,@enable_multilib@,$enable_multilib,;t t
12829 s,@enable_shared@,$enable_shared,;t t
12830 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12831 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12832 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12833 s,@onestep@,$onestep,;t t
12834 s,@SET_MAKE@,$SET_MAKE,;t t
12837 s,@LN_S@,$LN_S,;t t
12838 s,@RANLIB@,$RANLIB,;t t
12839 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12840 s,@INSTALL@,$INSTALL,;t t
12841 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12842 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12843 s,@make_compare_target@,$make_compare_target,;t t
12844 s,@have_mktemp_command@,$have_mktemp_command,;t t
12845 s,@MAKEINFO@,$MAKEINFO,;t t
12846 s,@BUILD_INFO@,$BUILD_INFO,;t t
12847 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12848 s,@FLEX@,$FLEX,;t t
12849 s,@BISON@,$BISON,;t t
12850 s,@stage1_cflags@,$stage1_cflags,;t t
12851 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12852 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12853 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12854 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12855 s,@LIBICONV@,$LIBICONV,;t t
12856 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12857 s,@manext@,$manext,;t t
12858 s,@objext@,$objext,;t t
12859 s,@gthread_flags@,$gthread_flags,;t t
12860 s,@extra_modes_file@,$extra_modes_file,;t t
12861 s,@FORBUILD@,$FORBUILD,;t t
12862 s,@PACKAGE@,$PACKAGE,;t t
12863 s,@VERSION@,$VERSION,;t t
12864 s,@USE_NLS@,$USE_NLS,;t t
12865 s,@LIBINTL@,$LIBINTL,;t t
12866 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12867 s,@INCINTL@,$INCINTL,;t t
12868 s,@XGETTEXT@,$XGETTEXT,;t t
12869 s,@GMSGFMT@,$GMSGFMT,;t t
12870 s,@POSUB@,$POSUB,;t t
12871 s,@CATALOGS@,$CATALOGS,;t t
12872 s,@CROSS@,$CROSS,;t t
12874 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12875 s,@inhibit_libc@,$inhibit_libc,;t t
12876 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12877 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12878 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12879 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12880 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12881 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12882 s,@libgcc_visibility@,$libgcc_visibility,;t t
12884 s,@zlibdir@,$zlibdir,;t t
12885 s,@zlibinc@,$zlibinc,;t t
12886 s,@MAINT@,$MAINT,;t t
12887 s,@gcc_tooldir@,$gcc_tooldir,;t t
12888 s,@dollar@,$dollar,;t t
12889 s,@slibdir@,$slibdir,;t t
12890 s,@objdir@,$objdir,;t t
12891 s,@subdirs@,$subdirs,;t t
12892 s,@srcdir@,$srcdir,;t t
12893 s,@all_boot_languages@,$all_boot_languages,;t t
12894 s,@all_compilers@,$all_compilers,;t t
12895 s,@all_gtfiles@,$all_gtfiles,;t t
12896 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12897 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12898 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12899 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12900 s,@all_languages@,$all_languages,;t t
12901 s,@all_stagestuff@,$all_stagestuff,;t t
12902 s,@build_exeext@,$build_exeext,;t t
12903 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12904 s,@build_xm_file_list@,$build_xm_file_list,;t t
12905 s,@build_xm_include_list@,$build_xm_include_list,;t t
12906 s,@build_xm_defines@,$build_xm_defines,;t t
12907 s,@check_languages@,$check_languages,;t t
12908 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12909 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12910 s,@cpp_install_dir@,$cpp_install_dir,;t t
12911 s,@xmake_file@,$xmake_file,;t t
12912 s,@tmake_file@,$tmake_file,;t t
12913 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12914 s,@extra_headers_list@,$extra_headers_list,;t t
12915 s,@extra_objs@,$extra_objs,;t t
12916 s,@extra_parts@,$extra_parts,;t t
12917 s,@extra_passes@,$extra_passes,;t t
12918 s,@extra_programs@,$extra_programs,;t t
12919 s,@float_h_file@,$float_h_file,;t t
12920 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12921 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12922 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12923 s,@gcc_version@,$gcc_version,;t t
12924 s,@gcc_version_full@,$gcc_version_full,;t t
12925 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12926 s,@host_exeext@,$host_exeext,;t t
12927 s,@host_xm_file_list@,$host_xm_file_list,;t t
12928 s,@host_xm_include_list@,$host_xm_include_list,;t t
12929 s,@host_xm_defines@,$host_xm_defines,;t t
12930 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12931 s,@install@,$install,;t t
12932 s,@lang_opt_files@,$lang_opt_files,;t t
12933 s,@lang_specs_files@,$lang_specs_files,;t t
12934 s,@lang_tree_files@,$lang_tree_files,;t t
12935 s,@local_prefix@,$local_prefix,;t t
12936 s,@md_file@,$md_file,;t t
12937 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12938 s,@out_file@,$out_file,;t t
12939 s,@out_object_file@,$out_object_file,;t t
12940 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12941 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12942 s,@symbolic_link@,$symbolic_link,;t t
12943 s,@thread_file@,$thread_file,;t t
12944 s,@tm_file_list@,$tm_file_list,;t t
12945 s,@tm_include_list@,$tm_include_list,;t t
12946 s,@tm_defines@,$tm_defines,;t t
12947 s,@tm_p_file_list@,$tm_p_file_list,;t t
12948 s,@tm_p_include_list@,$tm_p_include_list,;t t
12949 s,@xm_file_list@,$xm_file_list,;t t
12950 s,@xm_include_list@,$xm_include_list,;t t
12951 s,@xm_defines@,$xm_defines,;t t
12952 s,@target_noncanonical@,$target_noncanonical,;t t
12953 s,@c_target_objs@,$c_target_objs,;t t
12954 s,@cxx_target_objs@,$cxx_target_objs,;t t
12955 s,@target_cpu_default@,$target_cpu_default,;t t
12956 s,@LIBOBJS@,$LIBOBJS,;t t
12957 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12958 /@language_hooks@/r $language_hooks
12959 s,@language_hooks@,,;t t
12964 cat >>$CONFIG_STATUS <<\_ACEOF
12965 # Split the substitutions into bite-sized pieces for seds with
12966 # small command number limits, like on Digital OSF/1 and HP-UX.
12967 ac_max_sed_lines
=48
12968 ac_sed_frag
=1 # Number of current file.
12969 ac_beg
=1 # First line for current file.
12970 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12973 while $ac_more_lines; do
12974 if test $ac_beg -gt 1; then
12975 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12977 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12979 if test ! -s $tmp/subs.frag
; then
12980 ac_more_lines
=false
12982 # The purpose of the label and of the branching condition is to
12983 # speed up the sed processing (if there are no `@' at all, there
12984 # is no need to browse any of the substitutions).
12985 # These are the two extra sed commands mentioned above.
12987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12988 if test -z "$ac_sed_cmds"; then
12989 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12991 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12993 ac_sed_frag
=`expr $ac_sed_frag + 1`
12995 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12998 if test -z "$ac_sed_cmds"; then
13001 fi # test -n "$CONFIG_FILES"
13004 cat >>$CONFIG_STATUS <<\_ACEOF
13005 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13006 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13008 - |
*:- |
*:-:* ) # input from stdin
13010 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13011 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13012 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13013 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13014 * ) ac_file_in
=$ac_file.
in ;;
13017 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13018 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13020 X"$ac_file" : 'X\(//\)[^/]' \| \
13021 X"$ac_file" : 'X\(//\)$' \| \
13022 X"$ac_file" : 'X\(/\)' \| \
13023 . : '\(.\)' 2>/dev/null ||
13025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13027 /^X\(\/\/\)$/{ s//\1/; q; }
13028 /^X\(\/\).*/{ s//\1/; q; }
13030 { if $as_mkdir_p; then
13035 while test ! -d "$as_dir"; do
13036 as_dirs
="$as_dir $as_dirs"
13037 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13039 X"$as_dir" : 'X\(//\)[^/]' \| \
13040 X"$as_dir" : 'X\(//\)$' \| \
13041 X"$as_dir" : 'X\(/\)' \| \
13042 . : '\(.\)' 2>/dev/null ||
13044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13045 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13046 /^X\(\/\/\)$/{ s//\1/; q; }
13047 /^X\(\/\).*/{ s//\1/; q; }
13050 test ! -n "$as_dirs" || mkdir
$as_dirs
13051 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13053 { (exit 1); exit 1; }; }; }
13057 if test "$ac_dir" != .
; then
13058 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13059 # A "../" for each directory in $ac_dir_suffix.
13060 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13062 ac_dir_suffix
= ac_top_builddir
=
13066 .
) # No --srcdir option. We are building in place.
13068 if test -z "$ac_top_builddir"; then
13071 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13073 [\\/]* | ?
:[\\/]* ) # Absolute path.
13074 ac_srcdir
=$srcdir$ac_dir_suffix;
13075 ac_top_srcdir
=$srcdir ;;
13076 *) # Relative path.
13077 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13078 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13081 # Do not use `cd foo && pwd` to compute absolute paths, because
13082 # the directories may not exist.
13084 .
) ac_abs_builddir
="$ac_dir";;
13087 .
) ac_abs_builddir
=`pwd`;;
13088 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13089 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13092 case $ac_abs_builddir in
13093 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13095 case ${ac_top_builddir}.
in
13096 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13097 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13098 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13101 case $ac_abs_builddir in
13102 .
) ac_abs_srcdir
=$ac_srcdir;;
13105 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13106 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13107 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13110 case $ac_abs_builddir in
13111 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13113 case $ac_top_srcdir in
13114 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13115 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13116 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13122 # Let's still pretend it is `configure' which instantiates (i.e., don't
13123 # use $as_me), people would be surprised to read:
13124 # /* config.h. Generated by config.status. */
13125 if test x
"$ac_file" = x-
; then
13128 configure_input
="$ac_file. "
13130 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13131 sed 's,.*/,,'` by configure."
13133 # First look for the input files in the build tree, otherwise in the
13135 ac_file_inputs
=`IFS=:
13136 for f in $ac_file_in; do
13138 -) echo $tmp/stdin ;;
13140 # Absolute (can't be DOS-style, as IFS=:)
13141 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13142 echo "$as_me: error: cannot find input file: $f" >&2;}
13143 { (exit 1); exit 1; }; }
13146 if test -f "$f"; then
13149 elif test -f "$srcdir/$f"; then
13154 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13155 echo "$as_me: error: cannot find input file: $f" >&2;}
13156 { (exit 1); exit 1; }; }
13159 done` ||
{ (exit 1); exit 1; }
13161 if test x
"$ac_file" != x-
; then
13162 { echo "$as_me:$LINENO: creating $ac_file" >&5
13163 echo "$as_me: creating $ac_file" >&6;}
13167 cat >>$CONFIG_STATUS <<_ACEOF
13171 cat >>$CONFIG_STATUS <<\_ACEOF
13173 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13174 s
,@configure_input@
,$configure_input,;t t
13175 s
,@srcdir@
,$ac_srcdir,;t t
13176 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13177 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13178 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13179 s
,@builddir@
,$ac_builddir,;t t
13180 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13181 s
,@top_builddir@
,$ac_top_builddir,;t t
13182 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13183 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13185 if test x"$ac_file" != x-; then
13186 mv $tmp/out $ac_file
13194 cat >>$CONFIG_STATUS <<\_ACEOF
13197 # CONFIG_HEADER section.
13200 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13201 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13203 # ac_d sets the value in "#define NAME VALUE" lines.
13204 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13205 ac_dB
='[ ].*$,\1#\2'
13208 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13209 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13210 ac_uB
='$,\1#\2define\3'
13214 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13215 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13217 - |
*:- |
*:-:* ) # input from stdin
13219 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13220 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13221 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13222 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13223 * ) ac_file_in
=$ac_file.
in ;;
13226 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13227 echo "$as_me: creating $ac_file" >&6;}
13229 # First look for the input files in the build tree, otherwise in the
13231 ac_file_inputs
=`IFS=:
13232 for f in $ac_file_in; do
13234 -) echo $tmp/stdin ;;
13236 # Absolute (can't be DOS-style, as IFS=:)
13237 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13238 echo "$as_me: error: cannot find input file: $f" >&2;}
13239 { (exit 1); exit 1; }; }
13240 # Do quote $f, to prevent DOS paths from being IFS'd.
13243 if test -f "$f"; then
13246 elif test -f "$srcdir/$f"; then
13251 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13252 echo "$as_me: error: cannot find input file: $f" >&2;}
13253 { (exit 1); exit 1; }; }
13256 done` ||
{ (exit 1); exit 1; }
13257 # Remove the trailing spaces.
13258 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13262 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13263 # `conftest.undefs', that substitutes the proper values into
13264 # config.h.in to produce config.h. The first handles `#define'
13265 # templates, and the second `#undef' templates.
13266 # And first: Protect against being on the right side of a sed subst in
13267 # config.status. Protect against being in an unquoted here document
13268 # in config.status.
13269 rm -f conftest.defines conftest.undefs
13270 # Using a here document instead of a string reduces the quoting nightmare.
13271 # Putting comments in sed scripts is not portable.
13273 # `end' is used to avoid that the second main sed command (meant for
13274 # 0-ary CPP macros) applies to n-ary macro definitions.
13275 # See the Autoconf documentation for `clear'.
13276 cat >confdef2sed.
sed <<\_ACEOF
13281 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13283 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13286 # If some macros were called several times there might be several times
13287 # the same #defines, which is useless. Nevertheless, we may not want to
13288 # sort them, since we want the *last* AC-DEFINE to be honored.
13289 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13290 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13291 rm -f confdef2sed.sed
13293 # This sed command replaces #undef with comments. This is necessary, for
13294 # example, in the case of _POSIX_SOURCE, which is predefined and required
13295 # on some systems where configure will not decide to define it.
13296 cat >>conftest.undefs <<\_ACEOF
13297 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13300 # Break up conftest.defines because some shells have a limit on the size
13301 # of here documents, and old seds have small limits too (100 cmds).
13302 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13303 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13304 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13305 echo ' :' >>$CONFIG_STATUS
13306 rm -f conftest.tail
13307 while grep . conftest.defines >/dev/null
13309 # Write a limited-size here document to $tmp/defines.sed.
13310 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13311 # Speed up: don't consider the non `#define' lines.
13312 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13313 # Work around the forget-to-reset-the-flag bug.
13314 echo 't clr' >>$CONFIG_STATUS
13315 echo ': clr' >>$CONFIG_STATUS
13316 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13318 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13320 mv $tmp/out $tmp/in
13322 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13323 rm -f conftest.defines
13324 mv conftest.
tail conftest.defines
13326 rm -f conftest.defines
13327 echo ' fi # grep' >>$CONFIG_STATUS
13328 echo >>$CONFIG_STATUS
13330 # Break up conftest.undefs because some shells have a limit on the size
13331 # of here documents, and old seds have small limits too (100 cmds).
13332 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13333 rm -f conftest.
tail
13334 while grep . conftest.undefs
>/dev
/null
13336 # Write a limited-size here document to $tmp/undefs.sed.
13337 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13338 # Speed up: don't consider the non
`#undef'
13339 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13340 # Work around the forget-to-reset-the-flag bug.
13341 echo 't clr' >>$CONFIG_STATUS
13342 echo ': clr' >>$CONFIG_STATUS
13343 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13345 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13347 mv $tmp/out $tmp/in
13349 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13350 rm -f conftest.undefs
13351 mv conftest.tail conftest.undefs
13353 rm -f conftest.undefs
13355 cat >>$CONFIG_STATUS <<\_ACEOF
13356 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13357 # use $as_me), people would be surprised to read:
13358 # /* config.h. Generated by config.status. */
13359 if test x
"$ac_file" = x-
; then
13360 echo "/* Generated by configure. */" >$tmp/config.h
13362 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13364 cat $tmp/in >>$tmp/config.h
13366 if test x
"$ac_file" != x-
; then
13367 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13368 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13369 echo "$as_me: $ac_file is unchanged" >&6;}
13371 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13372 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13373 X"$ac_file" : 'X\(//\)[^/]' \| \
13374 X"$ac_file" : 'X\(//\)$' \| \
13375 X"$ac_file" : 'X\(/\)' \| \
13376 . : '\(.\)' 2>/dev/null ||
13378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13380 /^X\(\/\/\)$/{ s//\1/; q; }
13381 /^X\(\/\).*/{ s//\1/; q; }
13383 { if $as_mkdir_p; then
13388 while test ! -d "$as_dir"; do
13389 as_dirs
="$as_dir $as_dirs"
13390 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13392 X"$as_dir" : 'X\(//\)[^/]' \| \
13393 X"$as_dir" : 'X\(//\)$' \| \
13394 X"$as_dir" : 'X\(/\)' \| \
13395 . : '\(.\)' 2>/dev/null ||
13397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13399 /^X\(\/\/\)$/{ s//\1/; q; }
13400 /^X\(\/\).*/{ s//\1/; q; }
13403 test ! -n "$as_dirs" || mkdir
$as_dirs
13404 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13406 { (exit 1); exit 1; }; }; }
13409 mv $tmp/config.h
$ac_file
13413 rm -f $tmp/config.h
13417 cat >>$CONFIG_STATUS <<\_ACEOF
13420 # CONFIG_COMMANDS section.
13422 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13423 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13424 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13425 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13426 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13427 X"$ac_dest" : 'X\(//\)[^/]' \| \
13428 X"$ac_dest" : 'X\(//\)$' \| \
13429 X"$ac_dest" : 'X\(/\)' \| \
13430 . : '\(.\)' 2>/dev/null ||
13432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13434 /^X\(\/\/\)$/{ s//\1/; q; }
13435 /^X\(\/\).*/{ s//\1/; q; }
13437 { if $as_mkdir_p; then
13442 while test ! -d "$as_dir"; do
13443 as_dirs
="$as_dir $as_dirs"
13444 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13446 X"$as_dir" : 'X\(//\)[^/]' \| \
13447 X"$as_dir" : 'X\(//\)$' \| \
13448 X"$as_dir" : 'X\(/\)' \| \
13449 . : '\(.\)' 2>/dev/null ||
13451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13452 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13453 /^X\(\/\/\)$/{ s//\1/; q; }
13454 /^X\(\/\).*/{ s//\1/; q; }
13457 test ! -n "$as_dirs" || mkdir
$as_dirs
13458 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13459 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13460 { (exit 1); exit 1; }; }; }
13464 if test "$ac_dir" != .
; then
13465 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13466 # A "../" for each directory in $ac_dir_suffix.
13467 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13469 ac_dir_suffix
= ac_top_builddir
=
13473 .
) # No --srcdir option. We are building in place.
13475 if test -z "$ac_top_builddir"; then
13478 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13480 [\\/]* | ?
:[\\/]* ) # Absolute path.
13481 ac_srcdir
=$srcdir$ac_dir_suffix;
13482 ac_top_srcdir
=$srcdir ;;
13483 *) # Relative path.
13484 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13485 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13488 # Do not use `cd foo && pwd` to compute absolute paths, because
13489 # the directories may not exist.
13491 .
) ac_abs_builddir
="$ac_dir";;
13494 .
) ac_abs_builddir
=`pwd`;;
13495 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13496 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13499 case $ac_abs_builddir in
13500 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13502 case ${ac_top_builddir}.
in
13503 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13504 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13505 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13508 case $ac_abs_builddir in
13509 .
) ac_abs_srcdir
=$ac_srcdir;;
13512 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13513 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13514 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13517 case $ac_abs_builddir in
13518 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13520 case $ac_top_srcdir in
13521 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13522 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13523 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13528 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13529 echo "$as_me: executing $ac_dest commands" >&6;}
13532 case ${CONFIG_HEADERS} in
13533 *auto-host.h
:config.
in*)
13536 # Make sure all the subdirs exist.
13539 test -d $d || mkdir
$d
13541 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13542 # bootstrapping and the installation procedure can still use
13543 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13544 # FLAGS_TO_PASS has been modified to solve the problem there.
13545 # This is virtually a duplicate of what happens in configure.lang; we do
13546 # an extra check to make sure this only happens if ln -s can be used.
13547 if test "$symbolic_link" = "ln -s"; then
13548 for d
in ${subdirs} fixinc
; do
13549 STARTDIR
=`${PWDCMD-pwd}`
13551 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13554 $symbolic_link ..
/$t $t 2>/dev
/null
13564 cat >>$CONFIG_STATUS <<\_ACEOF
13566 { (exit 0); exit 0; }
13568 chmod +x
$CONFIG_STATUS
13569 ac_clean_files
=$ac_clean_files_save
13572 # configure is writing to config.log, and then calls config.status.
13573 # config.status does its own redirection, appending to config.log.
13574 # Unfortunately, on DOS this fails, as config.log is still kept open
13575 # by configure, so config.status won't be able to write to it; its
13576 # output is simply discarded. So we exec the FD to /dev/null,
13577 # effectively closing config.log, so it can be properly (re)opened and
13578 # appended to by config.status. When coming back to configure, we
13579 # need to make the FD available again.
13580 if test "$no_create" != yes; then
13582 ac_config_status_args
=
13583 test "$silent" = yes &&
13584 ac_config_status_args
="$ac_config_status_args --quiet"
13586 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13588 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13589 # would make configure fail if this is the last instruction.
13590 $ac_cs_success ||
{ (exit 1); exit 1; }