2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/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 -n "`(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
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP GNATBIND ac_ct_GNATBIND strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files
='language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-generated-files-in-srcdir
853 put copies of generated files
in source dir
854 intended
for creating
source tarballs
for users
855 without texinfo bison or flex.
856 --enable-werror enable -Werror in bootstrap stage2 and later
857 --enable-checking=LIST
858 enable expensive run-time checks. With LIST
,
859 enable only specific categories of checks.
860 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
,fold;
861 default is misc
,tree
,gc
,rtlflag
862 --enable-coverage=LEVEL
863 enable compiler
\'s code coverage collection.
864 Use to measure compiler performance and
locate
865 unused parts of the compiler. With LEVEL
, specify
866 optimization. Values are opt
, noopt
,
868 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
869 --enable-multilib enable library support
for multiple ABIs
870 --enable-__cxa_atexit enable __cxa_atexit
for C
++
871 --enable-threads enable thread usage
for target GCC
872 --enable-threads=LIB use LIB thread package
for target GCC
873 --enable-objc-gc enable the use of Boehm
's garbage collector with
874 the GNU Objective-C runtime
875 --disable-shared don't provide a shared libgcc
876 --enable-intermodule build the compiler
in one step
877 --enable-initfini-array use .init_array
/.fini_array sections
878 --enable-sjlj-exceptions
879 arrange to use setjmp
/longjmp exception handling
880 --enable-libunwind-exceptions force use libunwind
for exceptions
881 --disable-win32-registry
882 disable lookup of installation paths
in the
883 Registry on Windows hosts
884 --enable-win32-registry enable registry lookup
(default
)
885 --enable-win32-registry=KEY
886 use KEY instead of GCC version as the last portion
888 --enable-maintainer-mode
889 enable make rules and dependencies not useful
890 (and sometimes confusing
) to the casual installer
891 --enable-version-specific-runtime-libs
892 specify that runtime libraries should be
893 installed
in a compiler-specific directory
896 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
897 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
898 --with-local-prefix=DIR specifies directory to put
local include
899 --with-gxx-include-dir=DIR
900 specifies directory to put g
++ header files
901 --with-cpp-install-dir=DIR
902 install the user visible C preprocessor
in DIR
903 (relative to PREFIX
) as well as PREFIX
/bin
904 --with-gnu-ld arrange to work with GNU ld.
905 --with-ld arrange to use the specified ld
(full pathname
)
906 --with-gnu-as arrange to work with GNU as
907 --with-as arrange to use the specified as
(full pathname
)
908 --with-stabs arrange to use stabs instead of
host debug format
909 --with-dwarf2 force the default debug format to be DWARF
2
910 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
911 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
912 --with-gc={page
,zone
} choose the garbage collection mechanism to use
914 --with-system-zlib use installed libz
915 --with-slibdir=DIR shared libraries
in DIR LIBDIR
917 Some influential environment variables
:
918 CC C compiler
command
919 CFLAGS C compiler flags
920 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
921 nonstandard directory
<lib dir
>
922 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
923 headers
in a nonstandard directory
<include dir
>
926 Use these variables to override the choices made by
`configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
932 if test "$ac_init_help" = "recursive"; then
933 # If there are subdirs, report their specific --help.
935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936 test -d $ac_dir || continue
939 if test "$ac_dir" != .; then
940 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
941 # A "../" for each directory in $ac_dir_suffix.
942 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
944 ac_dir_suffix= ac_top_builddir=
948 .) # No --srcdir option. We are building in place.
950 if test -z "$ac_top_builddir"; then
953 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
955 [\\/]* | ?:[\\/]* ) # Absolute path.
956 ac_srcdir=$srcdir$ac_dir_suffix;
957 ac_top_srcdir=$srcdir ;;
959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57. Invocation command line was
1016 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1017 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1018 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1019 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1020 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1022 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1023 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1025 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1026 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1027 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1028 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1029 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1030 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1031 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_must_keep_next=false
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1093 -* ) ac_must_keep_next=true ;;
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log. We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close
' the trap.
1111 trap 'exit_status
=$?
1112 # Save into config.log some information that might help in debugging.
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1122 # The following way of writing the cache mishandles newlines in values,
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1145 for ac_var
in $ac_subst_vars
1147 eval ac_val
=$
`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1152 if test -n "$ac_subst_files"; then
1159 for ac_var
in $ac_subst_files
1161 eval ac_val
=$
`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1167 if test -s confdefs.h
; then
1174 sed "/^$/d" confdefs.h |
sort
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1181 rm -f core core.
* *.core
&&
1182 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1195 # Predefined preprocessor variables.
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1231 for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's
/^
/|
/' "$ac_site_file" >&5
1240 if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1257 # Check that the precious variables saved in the cache have kept the same
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1270 ac_cache_corrupted=: ;;
1272 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1279 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1304 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1311 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1336 # Determine the host, build, and target systems
1338 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1339 if test -f $ac_dir/install-sh; then
1341 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 elif test -f $ac_dir/install.sh; then
1345 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 elif test -f $ac_dir/shtool; then
1349 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 if test -z "$ac_aux_dir"; then
1354 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1356 { (exit 1); exit 1; }; }
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362 # Make sure we can run config.sub.
1363 $ac_config_sub sun4 >/dev/null 2>&1 ||
1364 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1365 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1366 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: checking build system type" >&5
1369 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1370 if test "${ac_cv_build+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 ac_cv_build_alias=$build_alias
1374 test -z "$ac_cv_build_alias" &&
1375 ac_cv_build_alias=`$ac_config_guess`
1376 test -z "$ac_cv_build_alias" &&
1377 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1378 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1379 { (exit 1); exit 1; }; }
1380 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1381 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1382 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1383 { (exit 1); exit 1; }; }
1386 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1387 echo "${ECHO_T}$ac_cv_build" >&6
1389 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1390 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1391 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1394 echo "$as_me:$LINENO: checking host system type" >&5
1395 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1396 if test "${ac_cv_host+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 ac_cv_host_alias=$host_alias
1400 test -z "$ac_cv_host_alias" &&
1401 ac_cv_host_alias=$ac_cv_build_alias
1402 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1403 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1404 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1405 { (exit 1); exit 1; }; }
1408 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1409 echo "${ECHO_T}$ac_cv_host" >&6
1411 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1412 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1413 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1416 echo "$as_me:$LINENO: checking target system type" >&5
1417 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1418 if test "${ac_cv_target+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_target_alias=$target_alias
1422 test "x$ac_cv_target_alias" = "x" &&
1423 ac_cv_target_alias=$ac_cv_host_alias
1424 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1425 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1426 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1427 { (exit 1); exit 1; }; }
1430 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1431 echo "${ECHO_T}$ac_cv_target" >&6
1432 target=$ac_cv_target
1433 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1434 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1435 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1438 # The aliases save the names the user supplied, while $host etc.
1439 # will get canonicalized.
1440 test -n "$target_alias" &&
1441 test "$program_prefix$program_suffix$program_transform_name" = \
1443 program_prefix=${target_alias}-
1445 # Determine the noncanonical target name, for directory use.
1446 case ${build_alias} in
1447 "") build_noncanonical=${build} ;;
1448 *) build_noncanonical=${build_alias} ;;
1451 case ${host_alias} in
1452 "") host_noncanonical=${build_noncanonical} ;;
1453 *) host_noncanonical=${host_alias} ;;
1456 case ${target_alias} in
1457 "") target_noncanonical=${host_noncanonical} ;;
1458 *) target_noncanonical=${target_alias} ;;
1462 # Determine the target- and build-specific subdirectories
1463 # Prefix 'build-
' so this never conflicts with target_subdir.
1464 build_subdir="build-${build_noncanonical}"
1465 # Not really a subdirectory, but here for completeness.
1468 target_subdir=${target_noncanonical}
1471 # Set program_transform_name
1472 test "$program_prefix" != NONE &&
1473 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1474 # Use a double $ so make ignores it.
1475 test "$program_suffix" != NONE &&
1476 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1477 # Double any \ or $. echo might interpret backslashes.
1478 # By default was `s,x,x', remove it
if useless.
1479 cat <<\_ACEOF
>conftest.
sed
1480 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1482 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1486 # Check for bogus environment variables.
1487 # Test if LIBRARY_PATH contains the notation for the current directory
1488 # since this would lead to problems installing/building glibc.
1489 # LIBRARY_PATH contains the current directory if one of the following
1491 # - one of the terminals (":" and ";") is the first or last sign
1492 # - two terminals occur directly after each other
1493 # - the path contains an element with a dot in it
1494 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1495 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1496 case ${LIBRARY_PATH} in
1497 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1498 library_path_setting
="contains current directory"
1501 library_path_setting
="ok"
1504 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1505 echo "${ECHO_T}$library_path_setting" >&6
1506 if test "$library_path_setting" != "ok"; then
1507 { { echo "$as_me:$LINENO: error:
1508 *** LIBRARY_PATH shouldn't contain the current directory when
1509 *** building gcc. Please change the environment variable
1510 *** and run configure again." >&5
1511 echo "$as_me: error:
1512 *** LIBRARY_PATH shouldn't contain the current directory when
1513 *** building gcc. Please change the environment variable
1514 *** and run configure again." >&2;}
1515 { (exit 1); exit 1; }; }
1518 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1519 # since this would lead to problems installing/building glibc.
1520 # GCC_EXEC_PREFIX contains the current directory if one of the following
1522 # - one of the terminals (":" and ";") is the first or last sign
1523 # - two terminals occur directly after each other
1524 # - the path contains an element with a dot in it
1525 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1526 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1527 case ${GCC_EXEC_PREFIX} in
1528 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1529 gcc_exec_prefix_setting
="contains current directory"
1532 gcc_exec_prefix_setting
="ok"
1535 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1536 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1537 if test "$gcc_exec_prefix_setting" != "ok"; then
1538 { { echo "$as_me:$LINENO: error:
1539 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1540 *** building gcc. Please change the environment variable
1541 *** and run configure again." >&5
1542 echo "$as_me: error:
1543 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1544 *** building gcc. Please change the environment variable
1545 *** and run configure again." >&2;}
1546 { (exit 1); exit 1; }; }
1553 # Specify the local prefix
1556 # Check whether --with-local-prefix or --without-local-prefix was given.
1557 if test "${with_local_prefix+set}" = set; then
1558 withval
="$with_local_prefix"
1559 case "${withval}" in
1560 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1561 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1562 { (exit 1); exit 1; }; } ;;
1564 *) local_prefix
=$with_local_prefix ;;
1568 # Default local prefix if it is empty
1569 if test x
$local_prefix = x
; then
1570 local_prefix
=/usr
/local
1573 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1574 # passed in by the toplevel make and thus we'd get different behavior
1575 # depending on where we built the sources.
1576 gcc_gxx_include_dir
=
1577 # Specify the g++ header file directory
1579 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1580 if test "${with_gxx_include_dir+set}" = set; then
1581 withval
="$with_gxx_include_dir"
1582 case "${withval}" in
1583 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1584 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1585 { (exit 1); exit 1; }; } ;;
1587 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1591 if test x
${gcc_gxx_include_dir} = x
; then
1592 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1593 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1595 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1596 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1601 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1602 if test "${with_cpp_install_dir+set}" = set; then
1603 withval
="$with_cpp_install_dir"
1604 if test x
$withval = xyes
; then
1605 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1606 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1607 { (exit 1); exit 1; }; }
1608 elif test x
$withval != xno
; then
1609 cpp_install_dir
=$withval
1613 # We would like to our source tree to be readonly. However when releases or
1614 # pre-releases are generated, the flex/bison generated files as well as the
1615 # various formats of manuals need to be included along with the rest of the
1616 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1619 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1620 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1621 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1622 if test "${enable_generated_files_in_srcdir+set}" = set; then
1623 enableval
="$enable_generated_files_in_srcdir"
1624 generated_files_in_srcdir
=$enableval
1626 generated_files_in_srcdir
=no
1629 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1630 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1632 if test "$generated_files_in_srcdir" = "yes"; then
1639 # -------------------
1640 # Find default linker
1641 # -------------------
1645 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1646 if test "${with_gnu_ld+set}" = set; then
1647 withval
="$with_gnu_ld"
1648 gnu_ld_flag
="$with_gnu_ld"
1653 # With pre-defined ld
1655 # Check whether --with-ld or --without-ld was given.
1656 if test "${with_ld+set}" = set; then
1658 DEFAULT_LINKER
="$with_ld"
1660 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1661 if test ! -x "$DEFAULT_LINKER"; then
1662 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1663 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1664 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1668 cat >>confdefs.h
<<_ACEOF
1669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1674 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1675 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1676 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1677 if test x
"$gnu_ld_flag" = x
"no"; then
1678 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1679 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1681 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1682 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1689 # ----------------------
1690 # Find default assembler
1691 # ----------------------
1695 # Check whether --with-gnu-as or --without-gnu-as was given.
1696 if test "${with_gnu_as+set}" = set; then
1697 withval
="$with_gnu_as"
1698 gas_flag
="$with_gnu_as"
1704 # Check whether --with-as or --without-as was given.
1705 if test "${with_as+set}" = set; then
1707 DEFAULT_ASSEMBLER
="$with_as"
1709 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1710 if test ! -x "$DEFAULT_ASSEMBLER"; then
1711 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1712 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1713 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1717 cat >>confdefs.h
<<_ACEOF
1718 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1723 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1724 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1725 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1726 if test x
"$gas_flag" = x
"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1742 # Find the native compiler
1744 ac_cpp
='$CPP $CPPFLAGS'
1745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1748 if test -n "$ac_tool_prefix"; then
1749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1750 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 if test -n "$CC"; then
1757 ac_cv_prog_CC
="$CC" # Let the user override the test.
1759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir
=.
1764 for ac_exec_ext
in '' $ac_executable_extensions; do
1765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 if test -n "$CC"; then
1777 echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1780 echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1785 if test -z "$ac_cv_prog_CC"; then
1787 # Extract the first word of "gcc", so it can be a program name with args.
1788 set dummy gcc
; ac_word
=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$ac_ct_CC"; then
1795 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir
=.
1802 for ac_exec_ext
in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_ac_ct_CC
="gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1827 if test -z "$CC"; then
1828 if test -n "$ac_tool_prefix"; then
1829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1830 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$CC"; then
1837 ac_cv_prog_CC
="$CC" # Let the user override the test.
1839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir
=.
1844 for ac_exec_ext
in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 if test -n "$CC"; then
1857 echo "$as_me:$LINENO: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1865 if test -z "$ac_cv_prog_CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc
; ac_word
=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$ac_ct_CC"; then
1875 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1881 test -z "$as_dir" && as_dir
=.
1882 for ac_exec_ext
in '' $ac_executable_extensions; do
1883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1884 ac_cv_prog_ac_ct_CC
="cc"
1885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1898 echo "$as_me:$LINENO: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc
; ac_word
=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$CC"; then
1917 ac_cv_prog_CC
="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1928 ac_prog_rejected
=yes
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 if test $ac_prog_rejected = yes; then
1939 # We found a bogon in the path, so make sure we never use it.
1940 set dummy
$ac_cv_prog_CC
1942 if test $# != 0; then
1943 # We chose a different compiler from the bogus one.
1944 # However, it has the same basename, so the bogon will be chosen
1945 # first if we set CC to just the basename; use the full file name.
1947 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1953 if test -n "$CC"; then
1954 echo "$as_me:$LINENO: result: $CC" >&5
1955 echo "${ECHO_T}$CC" >&6
1957 echo "$as_me:$LINENO: result: no" >&5
1958 echo "${ECHO_T}no" >&6
1962 if test -z "$CC"; then
1963 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1967 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC
="$CC" # Let the user override the test.
1976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir
=.
1981 for ac_exec_ext
in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993 if test -n "$CC"; then
1994 echo "$as_me:$LINENO: result: $CC" >&5
1995 echo "${ECHO_T}$CC" >&6
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 test -n "$CC" && break
2004 if test -z "$CC"; then
2008 # Extract the first word of "$ac_prog", so it can be a program name with args.
2009 set dummy
$ac_prog; ac_word
=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$ac_ct_CC"; then
2016 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir
=.
2023 for ac_exec_ext
in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_ac_ct_CC
="$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2035 if test -n "$ac_ct_CC"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037 echo "${ECHO_T}$ac_ct_CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2043 test -n "$ac_ct_CC" && break
2052 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2053 See \`config.log' for more details." >&5
2054 echo "$as_me: error: no acceptable C compiler found in \$PATH
2055 See \`config.log' for more details." >&2;}
2056 { (exit 1); exit 1; }; }
2058 # Provide some information about the compiler.
2059 echo "$as_me:$LINENO:" \
2060 "checking for C compiler version" >&5
2061 ac_compiler
=`set X $ac_compile; echo $2`
2062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2063 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }
2067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2068 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }
2072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2073 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }
2078 cat >conftest.
$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2082 cat confdefs.h
>>conftest.
$ac_ext
2083 cat >>conftest.
$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 ac_clean_files_save
=$ac_clean_files
2095 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2096 # Try to create an executable without -o first, disregard a.out.
2097 # It will help us diagnose broken compilers, and finding out an intuition
2099 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2100 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2101 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2102 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2103 (eval $ac_link_default) 2>&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; then
2107 # Find the output, starting from the most likely. This scheme is
2108 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # Be careful to initialize this variable, since it used to be cached.
2112 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2114 # b.out is created by i960 compilers.
2115 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2117 test -f "$ac_file" ||
continue
2119 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2122 # This is the source file.
2125 # We found the default executable, but exeext='' is most
2129 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130 # FIXME: I believe we export ac_cv_exeext for Libtool,
2131 # but it would be cool to find out if it's true. Does anybody
2132 # maintain Libtool? --akim.
2140 echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.
$ac_ext >&5
2143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&2;}
2147 { (exit 77); exit 77; }; }
2150 ac_exeext
=$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_file" >&5
2152 echo "${ECHO_T}$ac_file" >&6
2154 # Check the compiler produces executables we can run. If not, either
2155 # the compiler is broken, or we cross compile.
2156 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2159 # If not cross compiling, check that we can run a simple program.
2160 if test "$cross_compiling" != yes; then
2161 if { ac_try
='./$ac_file'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2169 if test "$cross_compiling" = maybe
; then
2172 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2173 If you meant to cross compile, use \`--host'.
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot run C compiled programs.
2176 If you meant to cross compile, use \`--host'.
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2182 echo "$as_me:$LINENO: result: yes" >&5
2183 echo "${ECHO_T}yes" >&6
2185 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2186 ac_clean_files
=$ac_clean_files_save
2187 # Check the compiler produces executables we can run. If not, either
2188 # the compiler is broken, or we cross compile.
2189 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2190 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2191 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2192 echo "${ECHO_T}$cross_compiling" >&6
2194 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2195 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2197 (eval $ac_link) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; then
2201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2203 # work properly (i.e., refer to `conftest.exe'), while it won't with
2205 for ac_file
in conftest.exe conftest conftest.
*; do
2206 test -f "$ac_file" ||
continue
2208 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2209 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2223 rm -f conftest
$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2225 echo "${ECHO_T}$ac_cv_exeext" >&6
2227 rm -f conftest.
$ac_ext
2228 EXEEXT
=$ac_cv_exeext
2230 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2231 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2232 if test "${ac_cv_objext+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2235 cat >conftest.
$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2239 cat confdefs.h
>>conftest.
$ac_ext
2240 cat >>conftest.
$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2251 rm -f conftest.o conftest.obj
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2260 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.
$ac_ext >&5
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2277 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2278 echo "${ECHO_T}$ac_cv_objext" >&6
2279 OBJEXT
=$ac_cv_objext
2281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 cat >conftest.
$ac_ext <<_ACEOF
2287 #line $LINENO "configure"
2290 cat confdefs.h
>>conftest.
$ac_ext
2291 cat >>conftest.
$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2305 rm -f conftest.
$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try
='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.
$ac_ext >&5
2324 rm -f conftest.
$ac_objext conftest.
$ac_ext
2325 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS
=${CFLAGS+set}
2332 ac_save_CFLAGS
=$CFLAGS
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 cat >conftest.
$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2343 cat confdefs.h
>>conftest.
$ac_ext
2344 cat >>conftest.
$ac_ext <<_ACEOF
2345 /* end confdefs.h. */
2355 rm -f conftest.
$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); } &&
2361 { ac_try
='test -s conftest.$ac_objext'
2362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.
$ac_ext >&5
2374 rm -f conftest.
$ac_objext conftest.
$ac_ext
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2378 if test "$ac_test_CFLAGS" = set; then
2379 CFLAGS
=$ac_save_CFLAGS
2380 elif test $ac_cv_prog_cc_g = yes; then
2381 if test "$GCC" = yes; then
2387 if test "$GCC" = yes; then
2393 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2394 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2395 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 ac_cv_prog_cc_stdc
=no
2400 cat >conftest.
$ac_ext <<_ACEOF
2401 #line $LINENO "configure"
2404 cat confdefs.h
>>conftest.
$ac_ext
2405 cat >>conftest.
$ac_ext <<_ACEOF
2406 /* end confdefs.h. */
2409 #include <sys/types.h>
2410 #include <sys/stat.h>
2411 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2412 struct buf { int x; };
2413 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2414 static char *e (p, i)
2420 static char *f (char * (*g) (char **, int), char **p, ...)
2425 s = g (p, va_arg (v,int));
2429 int test (int i, double x);
2430 struct s1 {int (*f) (int a);};
2431 struct s2 {int (*f) (double a);};
2432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2443 # Don't try gcc -ansi; that turns off useful extensions and
2444 # breaks some systems' header files.
2445 # AIX -qlanglvl=ansi
2446 # Ultrix and OSF/1 -std1
2447 # HP-UX 10.20 and later -Ae
2448 # HP-UX older versions -Aa -D_HPUX_SOURCE
2449 # SVR4 -Xc -D__EXTENSIONS__
2450 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2452 CC
="$ac_save_CC $ac_arg"
2453 rm -f conftest.
$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try
='test -s conftest.$ac_objext'
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; }; then
2465 ac_cv_prog_cc_stdc
=$ac_arg
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.
$ac_ext >&5
2472 rm -f conftest.
$ac_objext
2474 rm -f conftest.
$ac_ext conftest.
$ac_objext
2479 case "x$ac_cv_prog_cc_stdc" in
2481 echo "$as_me:$LINENO: result: none needed" >&5
2482 echo "${ECHO_T}none needed" >&6 ;;
2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2489 # Some people use a C++ compiler to compile C. Since we use `exit',
2490 # in C++ we need to declare it. In case someone uses the same compiler
2491 # for both compiling C and C++ we need to have the C++ compiler decide
2492 # the declaration of exit, since it's the most demanding environment.
2493 cat >conftest.
$ac_ext <<_ACEOF
2498 rm -f conftest.
$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try
='test -s conftest.$ac_objext'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; }; then
2510 for ac_declaration
in \
2512 '#include <stdlib.h>' \
2513 'extern "C" void std::exit (int) throw (); using std::exit;' \
2514 'extern "C" void std::exit (int); using std::exit;' \
2515 'extern "C" void exit (int) throw ();' \
2516 'extern "C" void exit (int);' \
2519 cat >conftest.
$ac_ext <<_ACEOF
2520 #line $LINENO "configure"
2523 cat confdefs.h
>>conftest.
$ac_ext
2524 cat >>conftest.
$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2536 rm -f conftest.
$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try
='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.
$ac_ext >&5
2555 rm -f conftest.
$ac_objext conftest.
$ac_ext
2556 cat >conftest.
$ac_ext <<_ACEOF
2557 #line $LINENO "configure"
2560 cat confdefs.h
>>conftest.
$ac_ext
2561 cat >>conftest.
$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2572 rm -f conftest.
$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2586 echo "$as_me: failed program was:" >&5
2587 sed 's/^/| /' conftest.
$ac_ext >&5
2590 rm -f conftest.
$ac_objext conftest.
$ac_ext
2593 if test -n "$ac_declaration"; then
2594 echo '#ifdef __cplusplus' >>confdefs.h
2595 echo $ac_declaration >>confdefs.h
2596 echo '#endif' >>confdefs.h
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.
$ac_ext >&5
2604 rm -f conftest.
$ac_objext conftest.
$ac_ext
2606 ac_cpp
='$CPP $CPPFLAGS'
2607 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2608 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2609 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2611 if test "x$CC" != xcc
; then
2612 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2613 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2615 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2616 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2618 set dummy
$CC; ac_cc
=`echo $2 |
2619 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2620 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 cat >conftest.
$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2627 cat confdefs.h
>>conftest.
$ac_ext
2628 cat >>conftest.
$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2639 # Make sure it works both with $CC and with simple cc.
2640 # We do the test twice because some compilers refuse to overwrite an
2641 # existing .o file with -o, though they will create one.
2642 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2643 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); };
2654 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2655 if test "x$CC" != xcc
; then
2656 # Test first that cc exists at all.
2657 if { ac_try
='cc -c conftest.$ac_ext >&5'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2664 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); };
2678 # cc exists but doesn't like -o.
2679 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2684 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2689 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2690 echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2693 echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2696 cat >>confdefs.h
<<\_ACEOF
2697 #define NO_MINUS_C_MINUS_O 1
2702 # autoconf is lame and doesn't give us any substitution variable for this.
2703 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2704 NO_MINUS_C_MINUS_O
=yes
2706 OUTPUT_OPTION
='-o $@'
2711 # -------------------------
2712 # Check C compiler features
2713 # -------------------------
2716 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2717 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2718 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 save_CFLAGS
="$CFLAGS"
2722 CFLAGS
="-Wno-long-long"
2723 cat >conftest.
$ac_ext <<_ACEOF
2724 #line $LINENO "configure"
2727 cat confdefs.h
>>conftest.
$ac_ext
2728 cat >>conftest.
$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.
$ac_objext
2740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2741 (eval $ac_compile) 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 { ac_try
='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_no_long_long
=yes
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.
$ac_ext >&5
2756 ac_cv_prog_cc_no_long_long
=no
2758 rm -f conftest.
$ac_objext conftest.
$ac_ext
2759 CFLAGS
="$save_CFLAGS"
2761 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2762 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2765 ac_cpp
='$CPP $CPPFLAGS'
2766 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2769 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2770 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2771 # On Suns, sometimes $CPP names a directory.
2772 if test -n "$CPP" && test -d "$CPP"; then
2775 if test -z "$CPP"; then
2776 if test "${ac_cv_prog_CPP+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 # Double quotes because CPP needs to be expanded
2780 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2783 for ac_c_preproc_warn_flag
in '' yes
2785 # Use a header file that comes with gcc, so configuring glibc
2786 # with a fresh cross-compiler works.
2787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2788 # <limits.h> exists even on freestanding compilers.
2789 # On the NeXT, cc -E runs the code through the compiler's parser,
2790 # not just through cpp. "Syntax error" is here to catch this case.
2791 cat >conftest.
$ac_ext <<_ACEOF
2792 #line $LINENO "configure"
2795 cat confdefs.h
>>conftest.
$ac_ext
2796 cat >>conftest.
$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2799 # include <limits.h>
2801 # include <assert.h>
2805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2808 grep -v '^ *+' conftest.er1
>conftest.err
2810 cat conftest.err
>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } >/dev
/null
; then
2813 if test -s conftest.err
; then
2814 ac_cpp_err
=$ac_c_preproc_warn_flag
2821 if test -z "$ac_cpp_err"; then
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.
$ac_ext >&5
2827 # Broken: fails on valid input.
2830 rm -f conftest.err conftest.
$ac_ext
2832 # OK, works on sane cases. Now check whether non-existent headers
2833 # can be detected and how.
2834 cat >conftest.
$ac_ext <<_ACEOF
2835 #line $LINENO "configure"
2838 cat confdefs.h
>>conftest.
$ac_ext
2839 cat >>conftest.
$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <ac_nonexistent.h>
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1
>conftest.err
2848 cat conftest.err
>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev
/null
; then
2851 if test -s conftest.err
; then
2852 ac_cpp_err
=$ac_c_preproc_warn_flag
2859 if test -z "$ac_cpp_err"; then
2860 # Broken: success on invalid input.
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.
$ac_ext >&5
2866 # Passes both tests.
2870 rm -f conftest.err conftest.
$ac_ext
2873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2874 rm -f conftest.err conftest.
$ac_ext
2875 if $ac_preproc_ok; then
2887 echo "$as_me:$LINENO: result: $CPP" >&5
2888 echo "${ECHO_T}$CPP" >&6
2890 for ac_c_preproc_warn_flag
in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.
$ac_ext <<_ACEOF
2899 #line $LINENO "configure"
2902 cat confdefs.h
>>conftest.
$ac_ext
2903 cat >>conftest.
$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2906 # include <limits.h>
2908 # include <assert.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1
>conftest.err
2917 cat conftest.err
>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev
/null
; then
2920 if test -s conftest.err
; then
2921 ac_cpp_err
=$ac_c_preproc_warn_flag
2928 if test -z "$ac_cpp_err"; then
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.
$ac_ext >&5
2934 # Broken: fails on valid input.
2937 rm -f conftest.err conftest.
$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.
$ac_ext <<_ACEOF
2942 #line $LINENO "configure"
2945 cat confdefs.h
>>conftest.
$ac_ext
2946 cat >>conftest.
$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <ac_nonexistent.h>
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1
>conftest.err
2955 cat conftest.err
>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev
/null
; then
2958 if test -s conftest.err
; then
2959 ac_cpp_err
=$ac_c_preproc_warn_flag
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.
$ac_ext >&5
2973 # Passes both tests.
2977 rm -f conftest.err conftest.
$ac_ext
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.
$ac_ext
2982 if $ac_preproc_ok; then
2985 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2986 See \`config.log' for more details." >&5
2987 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&2;}
2989 { (exit 1); exit 1; }; }
2993 ac_cpp
='$CPP $CPPFLAGS'
2994 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2998 echo "$as_me:$LINENO: checking for inline" >&5
2999 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3000 if test "${ac_cv_c_inline+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 for ac_kw
in inline __inline__ __inline
; do
3005 cat >conftest.
$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3014 static $ac_kw foo_t static_foo () {return 0; }
3015 $ac_kw foo_t foo () {return 0; }
3019 rm -f conftest.
$ac_objext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021 (eval $ac_compile) 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try
='test -s conftest.$ac_objext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 ac_cv_c_inline
=$ac_kw; break
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.
$ac_ext >&5
3037 rm -f conftest.
$ac_objext conftest.
$ac_ext
3041 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3042 echo "${ECHO_T}$ac_cv_c_inline" >&6
3043 case $ac_cv_c_inline in
3046 cat >>confdefs.h
<<\_ACEOF
3050 *) cat >>confdefs.h
<<_ACEOF
3051 #define inline $ac_cv_c_inline
3057 echo "$as_me:$LINENO: checking for long long int" >&5
3058 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3059 if test "${ac_cv_c_long_long+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 cat >conftest.
$ac_ext <<_ACEOF
3063 #line $LINENO "configure"
3066 cat confdefs.h
>>conftest.
$ac_ext
3067 cat >>conftest.
$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.
$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try
='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 ac_cv_c_long_long
=yes
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.
$ac_ext >&5
3095 ac_cv_c_long_long
=no
3097 rm -f conftest.
$ac_objext conftest.
$ac_ext
3099 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3100 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3101 if test $ac_cv_c_long_long = yes; then
3103 cat >>confdefs.h
<<\_ACEOF
3104 #define HAVE_LONG_LONG 1
3108 echo "$as_me:$LINENO: checking for __int64" >&5
3109 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3110 if test "${ac_cv_c___int64+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 cat >conftest.
$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3117 cat confdefs.h
>>conftest.
$ac_ext
3118 cat >>conftest.
$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.
$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131 (eval $ac_compile) 2>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try
='test -s conftest.$ac_objext'
3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.
$ac_ext >&5
3148 rm -f conftest.
$ac_objext conftest.
$ac_ext
3150 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3151 echo "${ECHO_T}$ac_cv_c___int64" >&6
3152 if test $ac_cv_c___int64 = yes; then
3154 cat >>confdefs.h
<<\_ACEOF
3155 #define HAVE___INT64 1
3160 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3161 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3162 if test "${gcc_cv_c__bool+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
3165 cat >conftest.
$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h
>>conftest.
$ac_ext
3170 cat >>conftest.
$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.
$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183 (eval $ac_compile) 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try
='test -s conftest.$ac_objext'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; }; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.
$ac_ext >&5
3200 rm -f conftest.
$ac_objext conftest.
$ac_ext
3203 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3204 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3205 if test $gcc_cv_c__bool = yes; then
3207 cat >>confdefs.h
<<\_ACEOF
3208 #define HAVE__BOOL 1
3214 # sizeof(char) is 1 by definition.
3215 echo "$as_me:$LINENO: checking size of void *" >&5
3216 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3217 if test "${ac_cv_sizeof_void_p+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3221 cat >conftest.
$ac_ext <<_ACEOF
3222 #line $LINENO "configure"
3225 cat confdefs.h
>>conftest.
$ac_ext
3226 cat >>conftest.
$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3235 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3240 rm -f conftest.
$ac_objext
3241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try
='test -s conftest.$ac_objext'
3247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; }; then
3252 ac_cv_sizeof_void_p
=$ac_size
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.
$ac_ext >&5
3258 rm -f conftest.
$ac_objext conftest.
$ac_ext
3259 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3264 if test x
$ac_cv_sizeof_void_p = x
; then
3265 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3266 echo "$as_me: error: cannot determine a size for void *" >&2;}
3267 { (exit 1); exit 1; }; }
3269 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3270 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3272 cat >>confdefs.h
<<_ACEOF
3273 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3277 echo "$as_me:$LINENO: checking size of short" >&5
3278 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3279 if test "${ac_cv_sizeof_short+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3283 cat >conftest.
$ac_ext <<_ACEOF
3284 #line $LINENO "configure"
3287 cat confdefs.h
>>conftest.
$ac_ext
3288 cat >>conftest.
$ac_ext <<_ACEOF
3289 /* end confdefs.h. */
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3297 switch (0) case 0: case (sizeof (short) == $ac_size):;
3302 rm -f conftest.
$ac_objext
3303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3304 (eval $ac_compile) 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try
='test -s conftest.$ac_objext'
3309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; }; then
3314 ac_cv_sizeof_short
=$ac_size
3316 echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.
$ac_ext >&5
3320 rm -f conftest.
$ac_objext conftest.
$ac_ext
3321 if test x
$ac_cv_sizeof_short != x
; then break; fi
3326 if test x
$ac_cv_sizeof_short = x
; then
3327 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3328 echo "$as_me: error: cannot determine a size for short" >&2;}
3329 { (exit 1); exit 1; }; }
3331 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3332 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3334 cat >>confdefs.h
<<_ACEOF
3335 #define SIZEOF_SHORT $ac_cv_sizeof_short
3339 echo "$as_me:$LINENO: checking size of int" >&5
3340 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3341 if test "${ac_cv_sizeof_int+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3345 cat >conftest.
$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3349 cat confdefs.h
>>conftest.
$ac_ext
3350 cat >>conftest.
$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include "confdefs.h"
3353 #include <sys/types.h>
3359 switch (0) case 0: case (sizeof (int) == $ac_size):;
3364 rm -f conftest.
$ac_objext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366 (eval $ac_compile) 2>&5
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
3370 { ac_try
='test -s conftest.$ac_objext'
3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_cv_sizeof_int
=$ac_size
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.
$ac_ext >&5
3382 rm -f conftest.
$ac_objext conftest.
$ac_ext
3383 if test x
$ac_cv_sizeof_int != x
; then break; fi
3388 if test x
$ac_cv_sizeof_int = x
; then
3389 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3390 echo "$as_me: error: cannot determine a size for int" >&2;}
3391 { (exit 1); exit 1; }; }
3393 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3394 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3396 cat >>confdefs.h
<<_ACEOF
3397 #define SIZEOF_INT $ac_cv_sizeof_int
3401 echo "$as_me:$LINENO: checking size of long" >&5
3402 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3403 if test "${ac_cv_sizeof_long+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3407 cat >conftest.
$ac_ext <<_ACEOF
3408 #line $LINENO "configure"
3411 cat confdefs.h
>>conftest.
$ac_ext
3412 cat >>conftest.
$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3421 switch (0) case 0: case (sizeof (long) == $ac_size):;
3426 rm -f conftest.
$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try
='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_sizeof_long
=$ac_size
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.
$ac_ext >&5
3444 rm -f conftest.
$ac_objext conftest.
$ac_ext
3445 if test x
$ac_cv_sizeof_long != x
; then break; fi
3450 if test x
$ac_cv_sizeof_long = x
; then
3451 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3452 echo "$as_me: error: cannot determine a size for long" >&2;}
3453 { (exit 1); exit 1; }; }
3455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3456 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3458 cat >>confdefs.h
<<_ACEOF
3459 #define SIZEOF_LONG $ac_cv_sizeof_long
3463 if test $ac_cv_c_long_long = yes; then
3464 echo "$as_me:$LINENO: checking size of long long" >&5
3465 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3466 if test "${ac_cv_sizeof_long_long+set}" = set; then
3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3470 cat >conftest.
$ac_ext <<_ACEOF
3471 #line $LINENO "configure"
3474 cat confdefs.h
>>conftest.
$ac_ext
3475 cat >>conftest.
$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include "confdefs.h"
3478 #include <sys/types.h>
3484 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3489 rm -f conftest.
$ac_objext
3490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try
='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_sizeof_long_long
=$ac_size
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.
$ac_ext >&5
3507 rm -f conftest.
$ac_objext conftest.
$ac_ext
3508 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3513 if test x
$ac_cv_sizeof_long_long = x
; then
3514 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3515 echo "$as_me: error: cannot determine a size for long long" >&2;}
3516 { (exit 1); exit 1; }; }
3518 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3519 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3521 cat >>confdefs.h
<<_ACEOF
3522 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3527 if test $ac_cv_c___int64 = yes; then
3528 echo "$as_me:$LINENO: checking size of __int64" >&5
3529 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3530 if test "${ac_cv_sizeof___int64+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3534 cat >conftest.
$ac_ext <<_ACEOF
3535 #line $LINENO "configure"
3538 cat confdefs.h
>>conftest.
$ac_ext
3539 cat >>conftest.
$ac_ext <<_ACEOF
3540 /* end confdefs.h. */
3541 #include "confdefs.h"
3542 #include <sys/types.h>
3548 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3553 rm -f conftest.
$ac_objext
3554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555 (eval $ac_compile) 2>&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } &&
3559 { ac_try
='test -s conftest.$ac_objext'
3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); }; }; then
3565 ac_cv_sizeof___int64
=$ac_size
3567 echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.
$ac_ext >&5
3571 rm -f conftest.
$ac_objext conftest.
$ac_ext
3572 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3577 if test x
$ac_cv_sizeof___int64 = x
; then
3578 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3579 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3580 { (exit 1); exit 1; }; }
3582 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3583 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3585 cat >>confdefs.h
<<_ACEOF
3586 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3596 # See if GNAT has been installed
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3602 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 if test -n "$GNATBIND"; then
3609 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir
=.
3616 for ac_exec_ext
in '' $ac_executable_extensions; do
3617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3618 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 GNATBIND
=$ac_cv_prog_GNATBIND
3628 if test -n "$GNATBIND"; then
3629 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3630 echo "${ECHO_T}$GNATBIND" >&6
3632 echo "$as_me:$LINENO: result: no" >&5
3633 echo "${ECHO_T}no" >&6
3637 if test -z "$ac_cv_prog_GNATBIND"; then
3638 ac_ct_GNATBIND
=$GNATBIND
3639 # Extract the first word of "gnatbind", so it can be a program name with args.
3640 set dummy gnatbind
; ac_word
=$2
3641 echo "$as_me:$LINENO: checking for $ac_word" >&5
3642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3643 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3646 if test -n "$ac_ct_GNATBIND"; then
3647 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3653 test -z "$as_dir" && as_dir
=.
3654 for ac_exec_ext
in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3666 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3667 if test -n "$ac_ct_GNATBIND"; then
3668 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3669 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 GNATBIND
=$ac_ct_GNATBIND
3677 GNATBIND
="$ac_cv_prog_GNATBIND"
3680 echo "$as_me:$LINENO: checking whether compiler driver understands Ada" >&5
3681 echo $ECHO_N "checking whether compiler driver understands Ada... $ECHO_C" >&6
3682 if test "${gcc_cv_cc_supports_ada+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 cat >conftest.adb
<<EOF
3686 procedure conftest is begin null; end conftest;
3688 gcc_cv_cc_supports_ada
=no
3689 # There is a bug in old released versions of GCC which causes the
3690 # driver to exit successfully when the appropriate language module
3691 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3692 # Therefore we must check for the error message as well as an
3693 # unsuccessful exit.
3694 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
3695 if test x
"$errors" = x
; then
3696 gcc_cv_cc_supports_ada
=yes
3701 echo "$as_me:$LINENO: result: $gcc_cv_cc_supports_ada" >&5
3702 echo "${ECHO_T}$gcc_cv_cc_supports_ada" >&6
3704 if test x
$GNATBIND != xno
&& test x
$gcc_cv_supports_ada != xno
; then
3711 # ---------------------
3712 # Warnings and checking
3713 # ---------------------
3716 if test $ac_cv_prog_cc_no_long_long = yes ; then
3717 strict1_warn
="-pedantic -Wno-long-long"
3721 # If the native compiler is GCC, we can enable warnings even in stage1.
3722 # That's useful for people building cross-compilers, or just running a
3725 if test "x$GCC" = "xyes"; then
3726 warn_cflags
='$(GCC_WARN_CFLAGS)'
3730 # Enable -Werror in bootstrap stage2 and later.
3731 # Change the default to "no" on release branches.
3732 # Check whether --enable-werror or --disable-werror was given.
3733 if test "${enable_werror+set}" = set; then
3734 enableval
="$enable_werror"
3739 if test x
$enable_werror = xyes
; then
3744 # Enable expensive internal checks
3745 # Check whether --enable-checking or --disable-checking was given.
3746 if test "${enable_checking+set}" = set; then
3747 enableval
="$enable_checking"
3751 ac_rtlflag_checking
=
3753 ac_gc_always_collect
=
3755 case "${enableval}" in
3756 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3757 ac_rtlflag_checking
=1 ;;
3759 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3760 set fnord
$enableval; shift
3765 misc
) ac_checking
=1 ;;
3766 tree
) ac_tree_checking
=1 ;;
3767 rtlflag
) ac_rtlflag_checking
=1 ;;
3768 rtl
) ac_rtl_checking
=1 ;;
3769 gc
) ac_gc_checking
=1 ;;
3770 gcac
) ac_gc_always_collect
=1 ;;
3771 fold) ac_fold_checking
=1 ;;
3772 valgrind
) ac_checking_valgrind
=1 ;;
3773 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3774 echo "$as_me: error: unknown check category $check" >&2;}
3775 { (exit 1); exit 1; }; } ;;
3782 # Enable some checks by default for development versions of GCC
3783 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3786 if test x
$ac_checking != x
; then
3788 cat >>confdefs.h
<<\_ACEOF
3789 #define ENABLE_CHECKING 1
3792 nocommon_flag
=-fno-common
3795 if test x
$ac_tree_checking != x
; then
3797 cat >>confdefs.h
<<\_ACEOF
3798 #define ENABLE_TREE_CHECKING 1
3802 if test x
$ac_rtl_checking != x
; then
3804 cat >>confdefs.h
<<\_ACEOF
3805 #define ENABLE_RTL_CHECKING 1
3809 if test x
$ac_rtlflag_checking != x
; then
3811 cat >>confdefs.h
<<\_ACEOF
3812 #define ENABLE_RTL_FLAG_CHECKING 1
3816 if test x
$ac_gc_checking != x
; then
3818 cat >>confdefs.h
<<\_ACEOF
3819 #define ENABLE_GC_CHECKING 1
3823 if test x
$ac_gc_always_collect != x
; then
3825 cat >>confdefs.h
<<\_ACEOF
3826 #define ENABLE_GC_ALWAYS_COLLECT 1
3830 if test x
$ac_fold_checking != x
; then
3832 cat >>confdefs.h
<<\_ACEOF
3833 #define ENABLE_FOLD_CHECKING 1
3837 valgrind_path_defines
=
3841 echo "$as_me:$LINENO: checking for egrep" >&5
3842 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3843 if test "${ac_cv_prog_egrep+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3847 then ac_cv_prog_egrep
='grep -E'
3848 else ac_cv_prog_egrep
='egrep'
3851 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3852 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3853 EGREP
=$ac_cv_prog_egrep
3856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3858 if test "${ac_cv_header_stdc+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 cat >conftest.
$ac_ext <<_ACEOF
3862 #line $LINENO "configure"
3865 cat confdefs.h
>>conftest.
$ac_ext
3866 cat >>conftest.
$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3881 rm -f conftest.
$ac_objext
3882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try
='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 ac_cv_header_stdc
=yes
3895 echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.
$ac_ext >&5
3898 ac_cv_header_stdc
=no
3900 rm -f conftest.
$ac_objext conftest.
$ac_ext
3902 if test $ac_cv_header_stdc = yes; then
3903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3904 cat >conftest.
$ac_ext <<_ACEOF
3905 #line $LINENO "configure"
3908 cat confdefs.h
>>conftest.
$ac_ext
3909 cat >>conftest.
$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3915 $EGREP "memchr" >/dev
/null
2>&1; then
3918 ac_cv_header_stdc
=no
3924 if test $ac_cv_header_stdc = yes; then
3925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3926 cat >conftest.
$ac_ext <<_ACEOF
3927 #line $LINENO "configure"
3930 cat confdefs.h
>>conftest.
$ac_ext
3931 cat >>conftest.
$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3937 $EGREP "free" >/dev
/null
2>&1; then
3940 ac_cv_header_stdc
=no
3946 if test $ac_cv_header_stdc = yes; then
3947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3948 if test "$cross_compiling" = yes; then
3951 cat >conftest.
$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3955 cat confdefs.h
>>conftest.
$ac_ext
3956 cat >>conftest.
$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3959 #if ((' ' & 0x0FF) == 0x020)
3960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3963 # define ISLOWER(c) \
3964 (('a' <= (c) && (c) <= 'i') \
3965 || ('j' <= (c) && (c) <= 'r') \
3966 || ('s' <= (c) && (c) <= 'z'))
3967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3975 for (i = 0; i < 256; i++)
3976 if (XOR (islower (i), ISLOWER (i))
3977 || toupper (i) != TOUPPER (i))
3982 rm -f conftest
$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); }; }; then
3995 echo "$as_me: program exited with status $ac_status" >&5
3996 echo "$as_me: failed program was:" >&5
3997 sed 's/^/| /' conftest.
$ac_ext >&5
4000 ac_cv_header_stdc
=no
4002 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4006 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4008 if test $ac_cv_header_stdc = yes; then
4010 cat >>confdefs.h
<<\_ACEOF
4011 #define STDC_HEADERS 1
4016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4026 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4027 inttypes.h stdint.h unistd.h
4029 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030 echo "$as_me:$LINENO: checking for $ac_header" >&5
4031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.
$ac_ext <<_ACEOF
4036 #line $LINENO "configure"
4039 cat confdefs.h
>>conftest.
$ac_ext
4040 cat >>conftest.
$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 $ac_includes_default
4044 #include <$ac_header>
4046 rm -f conftest.
$ac_objext
4047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4048 (eval $ac_compile) 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try
='test -s conftest.$ac_objext'
4053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; }; then
4058 eval "$as_ac_Header=yes"
4060 echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4063 eval "$as_ac_Header=no"
4065 rm -f conftest.
$ac_objext conftest.
$ac_ext
4067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4070 cat >>confdefs.h
<<_ACEOF
4071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4079 if test "${ac_cv_header_valgrind_h+set}" = set; then
4080 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4081 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4082 if test "${ac_cv_header_valgrind_h+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4086 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4088 # Is the header compilable?
4089 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4090 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4091 cat >conftest.
$ac_ext <<_ACEOF
4092 #line $LINENO "configure"
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 $ac_includes_default
4099 #include <valgrind.h>
4101 rm -f conftest.
$ac_objext
4102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103 (eval $ac_compile) 2>&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); } &&
4107 { ac_try
='test -s conftest.$ac_objext'
4108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 ac_header_compiler
=yes
4115 echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.
$ac_ext >&5
4118 ac_header_compiler
=no
4120 rm -f conftest.
$ac_objext conftest.
$ac_ext
4121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4122 echo "${ECHO_T}$ac_header_compiler" >&6
4124 # Is the header present?
4125 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4126 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4127 cat >conftest.
$ac_ext <<_ACEOF
4128 #line $LINENO "configure"
4131 cat confdefs.h
>>conftest.
$ac_ext
4132 cat >>conftest.
$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <valgrind.h>
4136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1
>conftest.err
4141 cat conftest.err
>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev
/null
; then
4144 if test -s conftest.err
; then
4145 ac_cpp_err
=$ac_c_preproc_warn_flag
4152 if test -z "$ac_cpp_err"; then
4153 ac_header_preproc
=yes
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.
$ac_ext >&5
4158 ac_header_preproc
=no
4160 rm -f conftest.err conftest.
$ac_ext
4161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4162 echo "${ECHO_T}$ac_header_preproc" >&6
4164 # So? What about this header?
4165 case $ac_header_compiler:$ac_header_preproc in
4167 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4168 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4169 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4170 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4173 ## ------------------------------------ ##
4174 ## Report this to bug-autoconf@gnu.org. ##
4175 ## ------------------------------------ ##
4178 sed "s/^/$as_me: WARNING: /" >&2
4181 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4182 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4183 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4184 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4186 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4189 ## ------------------------------------ ##
4190 ## Report this to bug-autoconf@gnu.org. ##
4191 ## ------------------------------------ ##
4194 sed "s/^/$as_me: WARNING: /" >&2
4197 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4198 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4199 if test "${ac_cv_header_valgrind_h+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_header_valgrind_h
=$ac_header_preproc
4204 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4205 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4208 if test $ac_cv_header_valgrind_h = yes; then
4216 if test x
$ac_checking_valgrind != x
; then
4217 # It is certainly possible that there's valgrind but no valgrind.h.
4218 # GCC relies on making annotations so we must have both.
4219 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4220 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4221 cat >conftest.
$ac_ext <<_ACEOF
4222 #line $LINENO "configure"
4225 cat confdefs.h
>>conftest.
$ac_ext
4226 cat >>conftest.
$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <valgrind/memcheck.h>
4229 #ifndef VALGRIND_DISCARD
4230 #error VALGRIND_DISCARD not defined
4233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4234 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4236 grep -v '^ *+' conftest.er1
>conftest.err
4238 cat conftest.err
>&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } >/dev
/null
; then
4241 if test -s conftest.err
; then
4242 ac_cpp_err
=$ac_c_preproc_warn_flag
4249 if test -z "$ac_cpp_err"; then
4250 gcc_cv_header_valgrind_memcheck_h
=yes
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.
$ac_ext >&5
4255 gcc_cv_header_valgrind_memcheck_h
=no
4257 rm -f conftest.err conftest.
$ac_ext
4258 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4259 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4260 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4261 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4262 cat >conftest.
$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <memcheck.h>
4270 #ifndef VALGRIND_DISCARD
4271 #error VALGRIND_DISCARD not defined
4274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4275 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4277 grep -v '^ *+' conftest.er1
>conftest.err
4279 cat conftest.err
>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev
/null
; then
4282 if test -s conftest.err
; then
4283 ac_cpp_err
=$ac_c_preproc_warn_flag
4290 if test -z "$ac_cpp_err"; then
4291 gcc_cv_header_memcheck_h
=yes
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.
$ac_ext >&5
4296 gcc_cv_header_memcheck_h
=no
4298 rm -f conftest.err conftest.
$ac_ext
4299 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4300 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4302 # Prepare PATH_SEPARATOR.
4303 # The user is always right.
4304 if test "${PATH_SEPARATOR+set}" != set; then
4305 echo "#! /bin/sh" >conf$$.sh
4306 echo "exit 0" >>conf$$.sh
4308 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4316 # Find out how to test for executable files. Don't use a zero-byte file,
4317 # as systems may use methods other than mode bits to determine executability.
4318 cat >conf$$.
file <<_ASEOF
4322 chmod +x conf$$.
file
4323 if test -x conf$$.
file >/dev
/null
2>&1; then
4324 ac_executable_p
="test -x"
4326 ac_executable_p
="test -f"
4330 # Extract the first word of "valgrind", so it can be a program name with args.
4331 set dummy valgrind
; ac_word
=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_path_valgrind_path+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 case "$valgrind_path" in
4339 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4342 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4343 for ac_dir
in $PATH; do
4345 test -z "$ac_dir" && ac_dir
=.
4346 for ac_exec_ext
in '' $ac_executable_extensions; do
4347 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4348 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4349 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4359 valgrind_path
="$ac_cv_path_valgrind_path"
4360 if test -n "$valgrind_path"; then
4361 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4362 echo "${ECHO_T}$valgrind_path" >&6
4364 echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6
4368 if test "x$valgrind_path" = "x" \
4369 ||
(test $have_valgrind_h = no \
4370 && test $gcc_cv_header_memcheck_h = no \
4371 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4372 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4373 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4374 { (exit 1); exit 1; }; }
4376 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4377 valgrind_command
="$valgrind_path -q"
4379 cat >>confdefs.h
<<\_ACEOF
4380 #define ENABLE_VALGRIND_CHECKING 1
4383 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4385 cat >>confdefs.h
<<\_ACEOF
4386 #define HAVE_VALGRIND_MEMCHECK_H 1
4390 if test $gcc_cv_header_memcheck_h = yes; then
4392 cat >>confdefs.h
<<\_ACEOF
4393 #define HAVE_MEMCHECK_H 1
4401 # Enable code coverage collection
4402 # Check whether --enable-coverage or --disable-coverage was given.
4403 if test "${enable_coverage+set}" = set; then
4404 enableval
="$enable_coverage"
4405 case "${enableval}" in
4407 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4410 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4413 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4414 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4415 { (exit 1); exit 1; }; }
4423 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4424 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4425 enableval
="$enable_gather_detailed_mem_stats"
4428 enable_gather_detailed_mem_stats
=no
4430 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4432 cat >>confdefs.h
<<\_ACEOF
4433 #define GATHER_STATISTICS 1
4438 # -------------------------------
4439 # Miscenalleous configure options
4440 # -------------------------------
4444 # Check whether --with-stabs or --without-stabs was given.
4445 if test "${with_stabs+set}" = set; then
4446 withval
="$with_stabs"
4452 # Determine whether or not multilibs are enabled.
4453 # Check whether --enable-multilib or --disable-multilib was given.
4454 if test "${enable_multilib+set}" = set; then
4455 enableval
="$enable_multilib"
4462 # Enable __cxa_atexit for C++.
4463 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4464 if test "${enable___cxa_atexit+set}" = set; then
4465 enableval
="$enable___cxa_atexit"
4470 # Pass with no value to take the default
4471 # Pass with a value to specify a thread package
4472 # Check whether --enable-threads or --disable-threads was given.
4473 if test "${enable_threads+set}" = set; then
4474 enableval
="$enable_threads"
4479 # Save in case it gets overwritten in config.gcc
4480 enable_threads_flag
=$enable_threads
4482 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4483 if test "${enable_objc_gc+set}" = set; then
4484 enableval
="$enable_objc_gc"
4485 if test x
$enable_objc_gc = xno
; then
4495 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4496 if test "${with_dwarf2+set}" = set; then
4497 withval
="$with_dwarf2"
4498 dwarf2
="$with_dwarf2"
4503 # Check whether --enable-shared or --disable-shared was given.
4504 if test "${enable_shared+set}" = set; then
4505 enableval
="$enable_shared"
4507 case $enable_shared in
4511 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4512 for pkg
in $enableval; do
4513 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4527 # Check whether --with-sysroot or --without-sysroot was given.
4528 if test "${with_sysroot+set}" = set; then
4529 withval
="$with_sysroot"
4531 case ${with_sysroot} in
4532 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4533 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4536 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4537 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4539 if test "x$exec_prefix" = xNONE
; then
4540 if test "x$prefix" = xNONE
; then
4541 test_prefix
=/usr
/local
4546 test_prefix
=$exec_prefix
4548 case ${TARGET_SYSTEM_ROOT} in
4549 "${test_prefix}"|
"${test_prefix}/"*|\
4550 '${exec_prefix}'|
'${exec_prefix}/'*)
4551 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4552 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4559 TARGET_SYSTEM_ROOT_DEFINE
=
4560 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4567 # Build with intermodule optimisations
4568 # Check whether --enable-intermodule or --disable-intermodule was given.
4569 if test "${enable_intermodule+set}" = set; then
4570 enableval
="$enable_intermodule"
4571 case ${enable_intermodule} in
4572 yes) onestep
="-onestep";;
4580 # -------------------------
4581 # Checks for other programs
4582 # -------------------------
4584 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4585 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4586 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
4587 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 cat >conftest.
make <<\_ACEOF
4592 @
echo 'ac_maketemp="$(MAKE)"'
4594 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4595 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4596 if test -n "$ac_maketemp"; then
4597 eval ac_cv_prog_make_
${ac_make}_set
=yes
4599 eval ac_cv_prog_make_
${ac_make}_set
=no
4603 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4604 echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6
4608 echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6
4610 SET_MAKE
="MAKE=${MAKE-make}"
4614 # Find some useful tools
4615 for ac_prog
in gawk mawk nawk
awk
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy
$ac_prog; ac_word
=$2
4619 echo "$as_me:$LINENO: checking for $ac_word" >&5
4620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621 if test "${ac_cv_prog_AWK+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 if test -n "$AWK"; then
4625 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir
=.
4632 for ac_exec_ext
in '' $ac_executable_extensions; do
4633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_AWK
="$ac_prog"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 if test -n "$AWK"; then
4645 echo "$as_me:$LINENO: result: $AWK" >&5
4646 echo "${ECHO_T}$AWK" >&6
4648 echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6
4652 test -n "$AWK" && break
4655 # We need awk to run opts.sh (to create options.c and options.h).
4656 # Bail out if it's missing.
4658 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4659 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4660 { (exit 1); exit 1; }; } ;;
4663 echo "$as_me:$LINENO: checking whether ln works" >&5
4664 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4665 if test "${gcc_cv_prog_LN+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 rm -f conftestdata_t
4669 echo >conftestdata_f
4670 if ln conftestdata_f conftestdata_t
2>/dev
/null
4674 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4676 gcc_cv_prog_LN
="ln -s"
4681 rm -f conftestdata_f conftestdata_t
4684 LN
="$gcc_cv_prog_LN"
4685 if test "$gcc_cv_prog_LN" = "ln"; then
4686 echo "$as_me:$LINENO: result: yes" >&5
4687 echo "${ECHO_T}yes" >&6
4689 if test "$gcc_cv_prog_LN" = "ln -s"; then
4690 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4691 echo "${ECHO_T}no, using ln -s" >&6
4693 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4694 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4698 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4699 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4700 if test "${gcc_cv_prog_LN_S+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 rm -f conftestdata_t
4704 echo >conftestdata_f
4705 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4707 gcc_cv_prog_LN_S
="ln -s"
4709 if ln conftestdata_f conftestdata_t
2>/dev
/null
4716 rm -f conftestdata_f conftestdata_t
4719 LN_S
="$gcc_cv_prog_LN_S"
4720 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4721 echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6
4724 if test "$gcc_cv_prog_LN_S" = "ln"; then
4725 echo "$as_me:$LINENO: result: no, using ln" >&5
4726 echo "${ECHO_T}no, using ln" >&6
4728 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4729 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4735 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4736 echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_prog_RANLIB+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if test -n "$RANLIB"; then
4742 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4748 test -z "$as_dir" && as_dir
=.
4749 for ac_exec_ext
in '' $ac_executable_extensions; do
4750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 RANLIB
=$ac_cv_prog_RANLIB
4761 if test -n "$RANLIB"; then
4762 echo "$as_me:$LINENO: result: $RANLIB" >&5
4763 echo "${ECHO_T}$RANLIB" >&6
4765 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4770 if test -z "$ac_cv_prog_RANLIB"; then
4771 ac_ct_RANLIB
=$RANLIB
4772 # Extract the first word of "ranlib", so it can be a program name with args.
4773 set dummy ranlib
; ac_word
=$2
4774 echo "$as_me:$LINENO: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$ac_ct_RANLIB"; then
4780 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir
=.
4787 for ac_exec_ext
in '' $ac_executable_extensions; do
4788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4799 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4800 if test -n "$ac_ct_RANLIB"; then
4801 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4802 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4804 echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6
4808 RANLIB
=$ac_ct_RANLIB
4810 RANLIB
="$ac_cv_prog_RANLIB"
4813 # Find a good install program. We prefer a C program (faster),
4814 # so one script is as good as another. But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4822 # ./install, which can be erroneously created by make from ./install.sh.
4823 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4824 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4825 if test -z "$INSTALL"; then
4826 if test "${ac_cv_path_install+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4830 for ac_dir
in $PATH; do
4831 # Account for people who put trailing slashes in PATH elements.
4833 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4835 # OSF1 and SCO ODT 3.0 have their own names for install.
4836 for ac_prog
in ginstall scoinst
install; do
4837 if test -f $ac_dir/$ac_prog; then
4838 if test $ac_prog = install &&
4839 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4840 # AIX install. It has an incompatible calling convention.
4841 # OSF/1 installbsd also uses dspmsg, but is usable.
4844 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4855 if test "${ac_cv_path_install+set}" = set; then
4856 INSTALL
="$ac_cv_path_install"
4858 # As a last resort, use the slow shell script. We don't cache a
4859 # path for INSTALL within a source directory, because that will
4860 # break other packages using the cache if that directory is
4861 # removed, or if the path is relative.
4862 INSTALL
="$ac_install_sh"
4865 echo "$as_me:$LINENO: result: $INSTALL" >&5
4866 echo "${ECHO_T}$INSTALL" >&6
4868 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4869 # It thinks the first close brace ends the variable substitution.
4870 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4872 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4875 # See if cmp has --ignore-initial.
4876 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
4877 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
4878 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 gcc_cv_prog_cmp_skip
=slowcompare
4884 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
4885 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
4888 gcc_cv_prog_cmp_skip
=gnucompare
4891 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
4892 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
4893 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
4896 gcc_cv_prog_cmp_skip
=fastcompare
4903 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
4904 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
4905 make_compare_target
=$gcc_cv_prog_cmp_skip
4909 # See if we have the mktemp command.
4910 # Extract the first word of "mktemp", so it can be a program name with args.
4911 set dummy mktemp
; ac_word
=$2
4912 echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$have_mktemp_command"; then
4918 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
4920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir
=.
4925 for ac_exec_ext
in '' $ac_executable_extensions; do
4926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4927 ac_cv_prog_have_mktemp_command
="yes"
4928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
4937 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
4938 if test -n "$have_mktemp_command"; then
4939 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4940 echo "${ECHO_T}$have_mktemp_command" >&6
4942 echo "$as_me:$LINENO: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4947 # Do we have a single-tree copy of texinfo?
4948 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
4949 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
4950 gcc_cv_prog_makeinfo_modern
=yes
4951 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4952 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4954 # See if makeinfo has been installed and is modern enough
4955 # that we can use it.
4956 # Extract the first word of "makeinfo", so it can be a program name with args.
4957 set dummy makeinfo
; ac_word
=$2
4958 echo "$as_me:$LINENO: checking for $ac_word" >&5
4959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4960 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 if test -n "$MAKEINFO"; then
4964 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 for ac_exec_ext
in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_MAKEINFO
="makeinfo"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 MAKEINFO
=$ac_cv_prog_MAKEINFO
4983 if test -n "$MAKEINFO"; then
4984 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4985 echo "${ECHO_T}$MAKEINFO" >&6
4987 echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4991 if test -n "$MAKEINFO"; then
4992 # Found it, now check the version.
4993 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4994 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4995 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4998 ac_prog_version
=`$MAKEINFO --version 2>&1 |
4999 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5000 echo "configure:5000: version of makeinfo is $ac_prog_version" >&5
5001 case $ac_prog_version in
5002 '') gcc_cv_prog_makeinfo_modern
=no
;;
5004 gcc_cv_prog_makeinfo_modern
=yes;;
5005 *) gcc_cv_prog_makeinfo_modern
=no
;;
5009 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5010 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5012 gcc_cv_prog_makeinfo_modern
=no
5017 if test $gcc_cv_prog_makeinfo_modern = no
; then
5018 { echo "$as_me:$LINENO: WARNING:
5019 *** Makeinfo is missing or too old.
5020 *** Info documentation will not be built." >&5
5021 echo "$as_me: WARNING:
5022 *** Makeinfo is missing or too old.
5023 *** Info documentation will not be built." >&2;}
5029 # Is pod2man recent enough to regenerate manpages?
5030 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5031 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5032 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034 echo "${ECHO_T}yes" >&6
5035 GENERATED_MANPAGES
=generated-manpages
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5043 if test -f $srcdir/..
/flex
/skel.c
; then
5044 FLEX
='$(objdir)/../flex/flex'
5046 # Extract the first word of "flex", so it can be a program name with args.
5047 set dummy flex
; ac_word
=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_prog_FLEX+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$FLEX"; then
5054 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir
=.
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_FLEX
="flex"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5073 FLEX
=$ac_cv_prog_FLEX
5074 if test -n "$FLEX"; then
5075 echo "$as_me:$LINENO: result: $FLEX" >&5
5076 echo "${ECHO_T}$FLEX" >&6
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5085 # The -L switch is so bison can find its skeleton file.
5086 if test -f $srcdir/..
/bison
/bison.simple
; then
5087 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5089 # Extract the first word of "bison", so it can be a program name with args.
5090 set dummy bison
; ac_word
=$2
5091 echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5093 if test "${ac_cv_prog_BISON+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 if test -n "$BISON"; then
5097 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5103 test -z "$as_dir" && as_dir
=.
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_BISON
="bison"
5107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5116 BISON
=$ac_cv_prog_BISON
5117 if test -n "$BISON"; then
5118 echo "$as_me:$LINENO: result: $BISON" >&5
5119 echo "${ECHO_T}$BISON" >&6
5121 echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6
5127 # --------------------
5128 # Checks for C headers
5129 # --------------------
5131 echo "$as_me:$LINENO: checking for GNU C library" >&5
5132 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5133 if test "${gcc_cv_glibc+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.
$ac_ext <<_ACEOF
5137 #line $LINENO "configure"
5140 cat confdefs.h
>>conftest.
$ac_ext
5141 cat >>conftest.
$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 #include <features.h>
5148 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5149 #error Not a GNU C library system
5155 rm -f conftest.
$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try
='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.
$ac_ext >&5
5174 rm -f conftest.
$ac_objext conftest.
$ac_ext
5177 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5178 echo "${ECHO_T}$gcc_cv_glibc" >&6
5179 if test $gcc_cv_glibc = yes; then
5181 cat >>confdefs.h
<<\_ACEOF
5182 #define _GNU_SOURCE 1
5187 # Need to reject headers which give warnings, so that the -Werror bootstrap
5188 # works later. *sigh* This needs to come before all header checks.
5190 ac_c_preproc_warn_flag
=yes
5192 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5193 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5194 if test "${ac_cv_header_stdc+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 cat >conftest.
$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5201 cat confdefs.h
>>conftest.
$ac_ext
5202 cat >>conftest.
$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5217 rm -f conftest.
$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try
='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_header_stdc
=yes
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.
$ac_ext >&5
5234 ac_cv_header_stdc
=no
5236 rm -f conftest.
$ac_objext conftest.
$ac_ext
5238 if test $ac_cv_header_stdc = yes; then
5239 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5240 cat >conftest.
$ac_ext <<_ACEOF
5241 #line $LINENO "configure"
5244 cat confdefs.h
>>conftest.
$ac_ext
5245 cat >>conftest.
$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5251 $EGREP "memchr" >/dev
/null
2>&1; then
5254 ac_cv_header_stdc
=no
5260 if test $ac_cv_header_stdc = yes; then
5261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5262 cat >conftest.
$ac_ext <<_ACEOF
5263 #line $LINENO "configure"
5266 cat confdefs.h
>>conftest.
$ac_ext
5267 cat >>conftest.
$ac_ext <<_ACEOF
5268 /* end confdefs.h. */
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273 $EGREP "free" >/dev
/null
2>&1; then
5276 ac_cv_header_stdc
=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5284 if test "$cross_compiling" = yes; then
5287 cat >conftest.
$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5291 cat confdefs.h
>>conftest.
$ac_ext
5292 cat >>conftest.
$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5295 #if ((' ' & 0x0FF) == 0x020)
5296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5299 # define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5318 rm -f conftest
$ac_exeext
5319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5320 (eval $ac_link) 2>&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5331 echo "$as_me: program exited with status $ac_status" >&5
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.
$ac_ext >&5
5336 ac_cv_header_stdc
=no
5338 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5342 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5343 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5344 if test $ac_cv_header_stdc = yes; then
5346 cat >>confdefs.h
<<\_ACEOF
5347 #define STDC_HEADERS 1
5352 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5353 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5354 if test "${ac_cv_header_time+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 cat >conftest.
$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5361 cat confdefs.h
>>conftest.
$ac_ext
5362 cat >>conftest.
$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5365 #include <sys/time.h>
5371 if ((struct tm *) 0)
5377 rm -f conftest.
$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try
='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 ac_cv_header_time
=yes
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.
$ac_ext >&5
5394 ac_cv_header_time
=no
5396 rm -f conftest.
$ac_objext conftest.
$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5399 echo "${ECHO_T}$ac_cv_header_time" >&6
5400 if test $ac_cv_header_time = yes; then
5402 cat >>confdefs.h
<<\_ACEOF
5403 #define TIME_WITH_SYS_TIME 1
5408 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5409 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5410 if test "${ac_cv_header_stdbool_h+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 cat >conftest.
$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5417 cat confdefs.h
>>conftest.
$ac_ext
5418 cat >>conftest.
$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <stdbool.h>
5429 rm -f conftest.
$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431 (eval $ac_compile) 2>&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); } &&
5435 { ac_try
='test -s conftest.$ac_objext'
5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }; }; then
5441 ac_cv_header_stdbool_h
=yes
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.
$ac_ext >&5
5446 ac_cv_header_stdbool_h
=no
5448 rm -f conftest.
$ac_objext conftest.
$ac_ext
5450 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5451 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5452 if test $ac_cv_header_stdbool_h = yes; then
5454 cat >>confdefs.h
<<\_ACEOF
5455 #define HAVE_STDBOOL_H 1
5460 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5461 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5462 if test "${gcc_cv_header_string+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 cat >conftest.
$ac_ext <<_ACEOF
5466 #line $LINENO "configure"
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #include <strings.h>
5482 rm -f conftest.
$ac_objext
5483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5484 (eval $ac_compile) 2>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try
='test -s conftest.$ac_objext'
5489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; }; then
5494 gcc_cv_header_string
=yes
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.
$ac_ext >&5
5499 gcc_cv_header_string
=no
5501 rm -f conftest.
$ac_objext conftest.
$ac_ext
5503 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5504 echo "${ECHO_T}$gcc_cv_header_string" >&6
5505 if test $gcc_cv_header_string = yes; then
5507 cat >>confdefs.h
<<\_ACEOF
5508 #define STRING_WITH_STRINGS 1
5513 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5514 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5515 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.
$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5522 cat confdefs.h
>>conftest.
$ac_ext
5523 cat >>conftest.
$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <sys/types.h>
5526 #include <sys/wait.h>
5528 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5531 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5539 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5544 rm -f conftest.
$ac_objext
5545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try
='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_header_sys_wait_h
=yes
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.
$ac_ext >&5
5561 ac_cv_header_sys_wait_h
=no
5563 rm -f conftest.
$ac_objext conftest.
$ac_ext
5565 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5566 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5567 if test $ac_cv_header_sys_wait_h = yes; then
5569 cat >>confdefs.h
<<\_ACEOF
5570 #define HAVE_SYS_WAIT_H 1
5596 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5597 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5598 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5599 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5601 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5602 echo "$as_me:$LINENO: checking for $ac_header" >&5
5603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.
$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5611 cat confdefs.h
>>conftest.
$ac_ext
5612 cat >>conftest.
$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <$ac_header>
5616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5619 grep -v '^ *+' conftest.er1
>conftest.err
5621 cat conftest.err
>&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } >/dev
/null
; then
5624 if test -s conftest.err
; then
5625 ac_cpp_err
=$ac_c_preproc_warn_flag
5632 if test -z "$ac_cpp_err"; then
5633 eval "$as_ac_Header=yes"
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.
$ac_ext >&5
5638 eval "$as_ac_Header=no"
5640 rm -f conftest.err conftest.
$ac_ext
5642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645 cat >>confdefs.h
<<_ACEOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5653 # Check for thread headers.
5654 echo "$as_me:$LINENO: checking for thread.h" >&5
5655 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5656 if test "${ac_cv_header_thread_h+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 cat >conftest.
$ac_ext <<_ACEOF
5660 #line $LINENO "configure"
5663 cat confdefs.h
>>conftest.
$ac_ext
5664 cat >>conftest.
$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5669 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5671 grep -v '^ *+' conftest.er1
>conftest.err
5673 cat conftest.err
>&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev
/null
; then
5676 if test -s conftest.err
; then
5677 ac_cpp_err
=$ac_c_preproc_warn_flag
5684 if test -z "$ac_cpp_err"; then
5685 ac_cv_header_thread_h
=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.
$ac_ext >&5
5690 ac_cv_header_thread_h
=no
5692 rm -f conftest.err conftest.
$ac_ext
5694 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5695 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5696 if test $ac_cv_header_thread_h = yes; then
5702 echo "$as_me:$LINENO: checking for pthread.h" >&5
5703 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5704 if test "${ac_cv_header_pthread_h+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.
$ac_ext <<_ACEOF
5708 #line $LINENO "configure"
5711 cat confdefs.h
>>conftest.
$ac_ext
5712 cat >>conftest.
$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #include <pthread.h>
5716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5717 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1
>conftest.err
5721 cat conftest.err
>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } >/dev
/null
; then
5724 if test -s conftest.err
; then
5725 ac_cpp_err
=$ac_c_preproc_warn_flag
5732 if test -z "$ac_cpp_err"; then
5733 ac_cv_header_pthread_h
=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.
$ac_ext >&5
5738 ac_cv_header_pthread_h
=no
5740 rm -f conftest.err conftest.
$ac_ext
5742 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5743 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5744 if test $ac_cv_header_pthread_h = yes; then
5751 # These tests can't be done till we know if we have limits.h.
5752 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
5753 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
5754 if test "${gcc_cv_decl_char_bit+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.
$ac_ext <<_ACEOF
5758 #line $LINENO "configure"
5761 cat confdefs.h
>>conftest.
$ac_ext
5762 cat >>conftest.
$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #ifdef HAVE_LIMITS_H
5771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5772 $EGREP "found" >/dev
/null
2>&1; then
5773 gcc_cv_decl_char_bit
=yes
5775 gcc_cv_decl_char_bit
=no
5781 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
5782 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
5783 if test $gcc_cv_decl_char_bit = no
; then
5784 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
5785 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
5786 if test "${gcc_cv_c_nbby+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 while test $i -lt 65; do
5792 cat >conftest.
$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5796 cat confdefs.h
>>conftest.
$ac_ext
5797 cat >>conftest.
$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5804 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
5805 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try
='test -s conftest.$ac_objext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 gcc_cv_c_nbby
=$i; break
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.
$ac_ext >&5
5829 rm -f conftest.
$ac_objext conftest.
$ac_ext
5832 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
5835 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
5836 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
5837 if test $gcc_cv_c_nbby = failed
; then
5838 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
5839 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
5840 { (exit 1); exit 1; }; }
5843 cat >>confdefs.h
<<_ACEOF
5844 #define CHAR_BIT $gcc_cv_c_nbby
5849 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5850 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5851 if test "${ac_cv_c_bigendian+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_cv_c_bigendian
=unknown
5855 # See if sys/param.h defines the BYTE_ORDER macro.
5856 cat >conftest.
$ac_ext <<_ACEOF
5857 #line $LINENO "configure"
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 #include <sys/param.h>
5869 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5876 rm -f conftest.
$ac_objext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 # It does; now see whether it defined to BIG_ENDIAN or not.
5889 cat >conftest.
$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h
>>conftest.
$ac_ext
5894 cat >>conftest.
$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 #include <sys/types.h>
5897 #include <sys/param.h>
5902 #if BYTE_ORDER != BIG_ENDIAN
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_c_bigendian
=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.
$ac_ext >&5
5926 ac_cv_c_bigendian
=no
5928 rm -f conftest.
$ac_objext conftest.
$ac_ext
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.
$ac_ext >&5
5934 rm -f conftest.
$ac_objext conftest.
$ac_ext
5935 if test $ac_cv_c_bigendian = unknown
; then
5936 if test "$cross_compiling" = yes; then
5937 echo $ac_n "cross-compiling... " 2>&6
5939 cat >conftest.
$ac_ext <<_ACEOF
5940 #line $LINENO "configure"
5943 cat confdefs.h
>>conftest.
$ac_ext
5944 cat >>conftest.
$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5947 /* Are we little or big endian? From Harbison&Steele. */
5951 char c[sizeof (long)];
5954 exit (u.c[sizeof (long) - 1] == 1);
5957 rm -f conftest
$ac_exeext
5958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5959 (eval $ac_link) 2>&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_c_bigendian
=no
5970 echo "$as_me: program exited with status $ac_status" >&5
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.
$ac_ext >&5
5975 ac_cv_c_bigendian
=yes
5977 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5981 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5982 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5983 if test $ac_cv_c_bigendian = unknown
; then
5984 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
5985 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
5987 cat >conftest.c
<<EOF
5988 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5989 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5990 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
5991 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5992 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5993 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
5994 int main() { _ascii (); _ebcdic (); return 0; }
5996 if test -f conftest.c
; then
5997 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
5998 if test `grep -l BIGenDianSyS conftest.o` ; then
5999 echo $ac_n ' big endian probe OK, ' 1>&6
6000 ac_cv_c_bigendian
=yes
6002 if test `grep -l LiTTleEnDian conftest.o` ; then
6003 echo $ac_n ' little endian probe OK, ' 1>&6
6004 if test $ac_cv_c_bigendian = yes ; then
6005 ac_cv_c_bigendian
=unknown
;
6007 ac_cv_c_bigendian
=no
6010 echo $ac_n 'guessing bigendian ... ' >&6
6013 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6014 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6016 if test $ac_cv_c_bigendian = yes; then
6018 cat >>confdefs.h
<<\_ACEOF
6019 #define WORDS_BIGENDIAN 1
6023 cat >>confdefs.h
<<\_ACEOF
6024 #define HOST_WORDS_BIG_ENDIAN 1
6032 cat >>confdefs.h
<<_ACEOF
6033 #define BYTEORDER $BYTEORDER
6036 if test $ac_cv_c_bigendian = unknown
; then
6037 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6038 echo "$as_me: error: unknown endianess - sorry" >&2;}
6039 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
6047 # Stage specific cflags for build.
6051 if test x
$GCC = xyes
6053 stage1_cflags
="-Wa,-J"
6059 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6060 # sources; use -no-cpp-precomp to get to GNU cpp.
6061 # Apple's GCC has bugs in designated initializer handling, so disable
6063 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6068 # These libraries may be used by collect2.
6069 # We may need a special search path to get them linked.
6070 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6071 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6072 if test "${gcc_cv_collect2_libs+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6076 for libs
in '' -lld -lmld \
6077 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6078 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6081 cat >conftest.
$ac_ext <<_ACEOF
6082 #line $LINENO "configure"
6085 cat confdefs.h
>>conftest.
$ac_ext
6086 cat >>conftest.
$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6089 /* Override any gcc2 internal prototype to avoid an error. */
6093 /* We use char because int might match the return type of a gcc2
6094 builtin and then its argument prototype would still apply. */
6104 rm -f conftest.
$ac_objext conftest
$ac_exeext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106 (eval $ac_link) 2>&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } &&
6110 { ac_try
='test -s conftest$ac_exeext'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; }; then
6116 gcc_cv_collect2_libs
="$libs"; break
6118 echo "$as_me: failed program was:" >&5
6119 sed 's/^/| /' conftest.
$ac_ext >&5
6122 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6125 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6127 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6128 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6129 case $gcc_cv_collect2_libs in
6131 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6135 # When building Ada code on Alpha, we need exc_resume which is usually in
6136 # -lexc. So test for it.
6139 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6140 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6141 if test "${ac_cv_search_exc_resume+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 ac_func_search_save_LIBS
=$LIBS
6145 ac_cv_search_exc_resume
=no
6146 cat >conftest.
$ac_ext <<_ACEOF
6147 #line $LINENO "configure"
6150 cat confdefs.h
>>conftest.
$ac_ext
6151 cat >>conftest.
$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6154 /* Override any gcc2 internal prototype to avoid an error. */
6158 /* We use char because int might match the return type of a gcc2
6159 builtin and then its argument prototype would still apply. */
6169 rm -f conftest.
$ac_objext conftest
$ac_exeext
6170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try
='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 ac_cv_search_exc_resume
="none required"
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.
$ac_ext >&5
6187 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6188 if test "$ac_cv_search_exc_resume" = no
; then
6189 for ac_lib
in exc
; do
6190 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6191 cat >conftest.
$ac_ext <<_ACEOF
6192 #line $LINENO "configure"
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6199 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext
6215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6216 (eval $ac_link) 2>&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } &&
6220 { ac_try
='test -s conftest$ac_exeext'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; }; then
6226 ac_cv_search_exc_resume
="-l$ac_lib"
6229 echo "$as_me: failed program was:" >&5
6230 sed 's/^/| /' conftest.
$ac_ext >&5
6233 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6236 LIBS
=$ac_func_search_save_LIBS
6238 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6239 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6240 if test "$ac_cv_search_exc_resume" != no
; then
6241 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6249 # Some systems put ldexp and frexp in libm instead of libc; assume
6250 # they're both in the same place. jcf-dump needs them.
6253 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6254 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6255 if test "${ac_cv_search_ldexp+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 ac_func_search_save_LIBS
=$LIBS
6259 ac_cv_search_ldexp
=no
6260 cat >conftest.
$ac_ext <<_ACEOF
6261 #line $LINENO "configure"
6264 cat confdefs.h
>>conftest.
$ac_ext
6265 cat >>conftest.
$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6283 rm -f conftest.
$ac_objext conftest
$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try
='test -s conftest$ac_exeext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_search_ldexp
="none required"
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6301 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6302 if test "$ac_cv_search_ldexp" = no
; then
6304 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6305 cat >conftest.
$ac_ext <<_ACEOF
6306 #line $LINENO "configure"
6309 cat confdefs.h
>>conftest.
$ac_ext
6310 cat >>conftest.
$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6313 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6328 rm -f conftest.
$ac_objext conftest
$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330 (eval $ac_link) 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try
='test -s conftest$ac_exeext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_search_ldexp
="-l$ac_lib"
6343 echo "$as_me: failed program was:" >&5
6344 sed 's/^/| /' conftest.
$ac_ext >&5
6347 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6350 LIBS
=$ac_func_search_save_LIBS
6352 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6353 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6354 if test "$ac_cv_search_ldexp" != no
; then
6355 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6363 # Use <inttypes.h> only if it exists,
6364 # doesn't clash with <sys/types.h>, and declares intmax_t.
6365 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6366 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6367 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 cat >conftest.
$ac_ext <<_ACEOF
6371 #line $LINENO "configure"
6374 cat confdefs.h
>>conftest.
$ac_ext
6375 cat >>conftest.
$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <inttypes.h>
6387 rm -f conftest.
$ac_objext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6389 (eval $ac_compile) 2>&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } &&
6393 { ac_try
='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 gcc_cv_header_inttypes_h
=yes
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.
$ac_ext >&5
6404 gcc_cv_header_inttypes_h
=no
6406 rm -f conftest.
$ac_objext conftest.
$ac_ext
6409 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6410 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6411 if test $gcc_cv_header_inttypes_h = yes; then
6413 cat >>confdefs.h
<<\_ACEOF
6414 #define HAVE_INTTYPES_H 1
6445 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6446 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6447 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6448 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6451 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6452 echo "$as_me:$LINENO: checking for $ac_func" >&5
6453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6454 if eval "test \"\${$as_ac_var+set}\" = set"; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 cat >conftest.
$ac_ext <<_ACEOF
6458 #line $LINENO "configure"
6461 cat confdefs.h
>>conftest.
$ac_ext
6462 cat >>conftest.
$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func (); below.
6466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467 <limits.h> exists even on freestanding compilers. */
6469 # include <limits.h>
6471 # include <assert.h>
6473 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6487 char (*f) () = $ac_func;
6496 return f != $ac_func;
6501 rm -f conftest.
$ac_objext conftest
$ac_exeext
6502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6503 (eval $ac_link) 2>&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } &&
6507 { ac_try
='test -s conftest$ac_exeext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 eval "$as_ac_var=yes"
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.
$ac_ext >&5
6518 eval "$as_ac_var=no"
6520 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6524 if test `eval echo '${'$as_ac_var'}'` = yes; then
6525 cat >>confdefs.h
<<_ACEOF
6526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6533 if test x
$ac_cv_func_mbstowcs = xyes
; then
6534 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6535 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6536 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 if test "$cross_compiling" = yes; then
6540 gcc_cv_func_mbstowcs_works
=yes
6542 cat >conftest.
$ac_ext <<_ACEOF
6543 #line $LINENO "configure"
6546 cat confdefs.h
>>conftest.
$ac_ext
6547 cat >>conftest.
$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6556 rm -f conftest
$ac_exeext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6558 (eval $ac_link) 2>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 gcc_cv_func_mbstowcs_works
=yes
6569 echo "$as_me: program exited with status $ac_status" >&5
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6574 gcc_cv_func_mbstowcs_works
=no
6576 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6579 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6580 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6581 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6583 cat >>confdefs.h
<<\_ACEOF
6584 #define HAVE_WORKING_MBSTOWCS 1
6590 echo "$as_me:$LINENO: checking for ssize_t" >&5
6591 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6592 if test "${ac_cv_type_ssize_t+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 cat >conftest.
$ac_ext <<_ACEOF
6596 #line $LINENO "configure"
6599 cat confdefs.h
>>conftest.
$ac_ext
6600 cat >>conftest.
$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6602 $ac_includes_default
6608 if (sizeof (ssize_t))
6614 rm -f conftest.
$ac_objext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6616 (eval $ac_compile) 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try
='test -s conftest.$ac_objext'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; }; then
6626 ac_cv_type_ssize_t
=yes
6628 echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.
$ac_ext >&5
6631 ac_cv_type_ssize_t
=no
6633 rm -f conftest.
$ac_objext conftest.
$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6637 if test $ac_cv_type_ssize_t = yes; then
6641 cat >>confdefs.h
<<_ACEOF
6648 # Try to determine the array type of the second argument of getgroups
6649 # for the target system (int or gid_t).
6650 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6651 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6652 if test "${ac_cv_type_uid_t+set}" = set; then
6653 echo $ECHO_N "(cached) $ECHO_C" >&6
6655 cat >conftest.
$ac_ext <<_ACEOF
6656 #line $LINENO "configure"
6659 cat confdefs.h
>>conftest.
$ac_ext
6660 cat >>conftest.
$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <sys/types.h>
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "uid_t" >/dev
/null
2>&1; then
6667 ac_cv_type_uid_t
=yes
6674 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6675 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6676 if test $ac_cv_type_uid_t = no
; then
6678 cat >>confdefs.h
<<\_ACEOF
6683 cat >>confdefs.h
<<\_ACEOF
6689 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6690 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6691 if test "${ac_cv_type_getgroups+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 if test "$cross_compiling" = yes; then
6695 ac_cv_type_getgroups
=cross
6697 cat >conftest.
$ac_ext <<_ACEOF
6698 #line $LINENO "configure"
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 /* Thanks to Mike Rendell for this test. */
6705 #include <sys/types.h>
6708 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6715 union { gid_t gval; long lval; } val;
6718 for (i = 0; i < NGID; i++)
6719 gidset[i] = val.gval;
6720 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6722 /* Exit non-zero if getgroups seems to require an array of ints. This
6723 happens when gid_t is short but getgroups modifies an array of ints. */
6724 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6727 rm -f conftest
$ac_exeext
6728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6729 (eval $ac_link) 2>&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
6738 ac_cv_type_getgroups
=gid_t
6740 echo "$as_me: program exited with status $ac_status" >&5
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.
$ac_ext >&5
6745 ac_cv_type_getgroups
=int
6747 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6749 if test $ac_cv_type_getgroups = cross
; then
6750 cat >conftest.
$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6754 cat confdefs.h
>>conftest.
$ac_ext
6755 cat >>conftest.
$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6761 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
6762 ac_cv_type_getgroups
=gid_t
6764 ac_cv_type_getgroups
=int
6770 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6771 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6773 cat >>confdefs.h
<<_ACEOF
6774 #define GETGROUPS_T $ac_cv_type_getgroups
6778 if test "${target}" = "${build}"; then
6779 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
6782 # This condition may need some tweaking. It should include all
6783 # targets where the array type of the second argument of getgroups
6784 # is int and the type of gid_t is not equivalent to int.
6785 *-*-sunos* |
*-*-ultrix*)
6786 TARGET_GETGROUPS_T
=int
6789 TARGET_GETGROUPS_T
=gid_t
6795 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
6796 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
6797 if test "${gcc_cv_func_printf_ptr+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 if test "$cross_compiling" = yes; then
6801 gcc_cv_func_printf_ptr
=no
6803 cat >conftest.
$ac_ext <<_ACEOF
6804 #line $LINENO "configure"
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6815 char *p = buf, *q = NULL;
6816 sprintf(buf, "%p", p);
6817 sscanf(buf, "%p", &q);
6821 rm -f conftest
$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823 (eval $ac_link) 2>&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 gcc_cv_func_printf_ptr
=yes
6834 echo "$as_me: program exited with status $ac_status" >&5
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.
$ac_ext >&5
6839 gcc_cv_func_printf_ptr
=no
6841 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6843 rm -f core core.
* *.core
6845 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
6846 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
6847 if test $gcc_cv_func_printf_ptr = yes ; then
6849 cat >>confdefs.h
<<\_ACEOF
6850 #define HAVE_PRINTF_PTR 1
6855 if test $ac_cv_header_sys_mman_h != yes \
6856 ||
test $ac_cv_func_mmap != yes; then
6857 gcc_cv_func_mmap_file
=no
6858 gcc_cv_func_mmap_dev_zero
=no
6859 gcc_cv_func_mmap_anon
=no
6861 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
6862 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
6863 if test "${gcc_cv_func_mmap_file+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 # Add a system to this blacklist if
6867 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
6868 # memory area containing the same data that you'd get if you applied
6869 # read() to the same fd. The only system known to have a problem here
6870 # is VMS, where text files have record structure.
6873 gcc_cv_func_mmap_file
=no
;;
6875 gcc_cv_func_mmap_file
=yes;;
6878 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
6879 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
6880 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
6881 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
6882 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 # Add a system to this blacklist if it has mmap() but /dev/zero
6886 # does not exist, or if mmapping /dev/zero does not give anonymous
6887 # zeroed pages with both the following properties:
6888 # 1. If you map N consecutive pages in with one call, and then
6889 # unmap any subset of those pages, the pages that were not
6890 # explicitly unmapped remain accessible.
6891 # 2. If you map two adjacent blocks of memory and then unmap them
6892 # both at once, they must both go away.
6893 # Systems known to be in this category are Windows (all variants),
6896 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
6897 gcc_cv_func_mmap_dev_zero
=no
;;
6899 gcc_cv_func_mmap_dev_zero
=yes;;
6902 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
6903 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
6905 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
6906 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
6907 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
6908 if test "${gcc_cv_decl_map_anon+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.
$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6915 cat confdefs.h
>>conftest.
$ac_ext
6916 cat >>conftest.
$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 #include <sys/types.h>
6919 #include <sys/mman.h>
6922 #ifndef MAP_ANONYMOUS
6923 #define MAP_ANONYMOUS MAP_ANON
6929 int n = MAP_ANONYMOUS;
6934 rm -f conftest.
$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try
='test -s conftest.$ac_objext'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; }; then
6946 gcc_cv_decl_map_anon
=yes
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6951 gcc_cv_decl_map_anon
=no
6953 rm -f conftest.
$ac_objext conftest.
$ac_ext
6955 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
6956 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
6958 if test $gcc_cv_decl_map_anon = no
; then
6959 gcc_cv_func_mmap_anon
=no
6961 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
6962 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
6963 if test "${gcc_cv_func_mmap_anon+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 # Add a system to this blacklist if it has mmap() and MAP_ANON or
6967 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
6968 # doesn't give anonymous zeroed pages with the same properties listed
6969 # above for use of /dev/zero.
6970 # Systems known to be in this category are Windows, VMS, and SCO Unix.
6972 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
6973 gcc_cv_func_mmap_anon
=no
;;
6975 gcc_cv_func_mmap_anon
=yes;;
6978 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
6979 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
6983 if test $gcc_cv_func_mmap_file = yes; then
6985 cat >>confdefs.h
<<\_ACEOF
6986 #define HAVE_MMAP_FILE 1
6990 if test $gcc_cv_func_mmap_dev_zero = yes; then
6992 cat >>confdefs.h
<<\_ACEOF
6993 #define HAVE_MMAP_DEV_ZERO 1
6997 if test $gcc_cv_func_mmap_anon = yes; then
6999 cat >>confdefs.h
<<\_ACEOF
7000 #define HAVE_MMAP_ANON 1
7008 # Under VMS, vfork works very differently than on Unix. The standard test
7009 # won't work, and it isn't easily adaptable. It makes more sense to
7011 ac_cv_func_vfork_works
=yes
7014 echo "$as_me:$LINENO: checking for pid_t" >&5
7015 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7016 if test "${ac_cv_type_pid_t+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cat >conftest.
$ac_ext <<_ACEOF
7020 #line $LINENO "configure"
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7038 rm -f conftest.
$ac_objext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7040 (eval $ac_compile) 2>&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try
='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 ac_cv_type_pid_t
=yes
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.
$ac_ext >&5
7057 rm -f conftest.
$ac_objext conftest.
$ac_ext
7059 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7060 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7061 if test $ac_cv_type_pid_t = yes; then
7065 cat >>confdefs.h
<<_ACEOF
7073 for ac_header
in unistd.h vfork.h
7075 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 cat >conftest.
$ac_ext <<_ACEOF
7082 #line $LINENO "configure"
7085 cat confdefs.h
>>conftest.
$ac_ext
7086 cat >>conftest.
$ac_ext <<_ACEOF
7087 /* end confdefs.h. */
7088 #include <$ac_header>
7090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7091 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7093 grep -v '^ *+' conftest.er1
>conftest.err
7095 cat conftest.err
>&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } >/dev
/null
; then
7098 if test -s conftest.err
; then
7099 ac_cpp_err
=$ac_c_preproc_warn_flag
7106 if test -z "$ac_cpp_err"; then
7107 eval "$as_ac_Header=yes"
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.
$ac_ext >&5
7112 eval "$as_ac_Header=no"
7114 rm -f conftest.err conftest.
$ac_ext
7116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7119 cat >>confdefs.h
<<_ACEOF
7120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7128 for ac_func
in fork vfork
7130 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7131 echo "$as_me:$LINENO: checking for $ac_func" >&5
7132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_var+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 cat >conftest.
$ac_ext <<_ACEOF
7137 #line $LINENO "configure"
7140 cat confdefs.h
>>conftest.
$ac_ext
7141 cat >>conftest.
$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 /* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char $ac_func (); below.
7145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7146 <limits.h> exists even on freestanding compilers. */
7148 # include <limits.h>
7150 # include <assert.h>
7152 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7166 char (*f) () = $ac_func;
7175 return f != $ac_func;
7180 rm -f conftest.
$ac_objext conftest
$ac_exeext
7181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7182 (eval $ac_link) 2>&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } &&
7186 { ac_try
='test -s conftest$ac_exeext'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; }; then
7192 eval "$as_ac_var=yes"
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.
$ac_ext >&5
7197 eval "$as_ac_var=no"
7199 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7203 if test `eval echo '${'$as_ac_var'}'` = yes; then
7204 cat >>confdefs.h
<<_ACEOF
7205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211 if test "x$ac_cv_func_fork" = xyes
; then
7212 echo "$as_me:$LINENO: checking for working fork" >&5
7213 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7214 if test "${ac_cv_func_fork_works+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 if test "$cross_compiling" = yes; then
7218 ac_cv_func_fork_works
=cross
7220 cat >conftest.
$ac_ext <<_ACEOF
7221 /* By Ruediger Kuhlmann. */
7222 #include <sys/types.h>
7224 # include <unistd.h>
7226 /* Some systems only have a dummy stub for fork() */
7234 rm -f conftest
$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; }; then
7245 ac_cv_func_fork_works
=yes
7247 echo "$as_me: program exited with status $ac_status" >&5
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7252 ac_cv_func_fork_works
=no
7254 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7257 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7258 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7261 ac_cv_func_fork_works
=$ac_cv_func_fork
7263 if test "x$ac_cv_func_fork_works" = xcross
; then
7265 *-*-amigaos* |
*-*-msdosdjgpp*)
7266 # Override, as these systems have only a dummy fork() stub
7267 ac_cv_func_fork_works
=no
7270 ac_cv_func_fork_works
=yes
7273 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7274 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7276 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7277 if test "x$ac_cv_func_vfork" = xyes
; then
7278 echo "$as_me:$LINENO: checking for working vfork" >&5
7279 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7280 if test "${ac_cv_func_vfork_works+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 if test "$cross_compiling" = yes; then
7284 ac_cv_func_vfork_works
=cross
7286 cat >conftest.
$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7290 cat confdefs.h
>>conftest.
$ac_ext
7291 cat >>conftest.
$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 /* Thanks to Paul Eggert for this test. */
7296 #include <sys/types.h>
7297 #include <sys/stat.h>
7298 #include <sys/wait.h>
7300 # include <unistd.h>
7305 /* On some sparc systems, changes by the child to local and incoming
7306 argument registers are propagated back to the parent. The compiler
7307 is told about this with #include <vfork.h>, but some compilers
7308 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7309 static variable whose address is put into a register that is
7310 clobbered by the vfork. */
7313 sparc_address_test (int arg)
7315 sparc_address_test (arg) int arg;
7336 pid_t parent = getpid ();
7339 sparc_address_test (0);
7344 /* Here is another test for sparc vfork register problems. This
7345 test uses lots of local variables, at least as many local
7346 variables as main has allocated so far including compiler
7347 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7348 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7349 reuse the register of parent for one of the local variables,
7350 since it will think that parent can't possibly be used any more
7351 in this routine. Assigning to the local variable will thus
7352 munge parent in the parent process. */
7354 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7355 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7356 /* Convince the compiler that p..p7 are live; otherwise, it might
7357 use the same hardware register for all 8 local variables. */
7358 if (p != p1 || p != p2 || p != p3 || p != p4
7359 || p != p5 || p != p6 || p != p7)
7362 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7363 from child file descriptors. If the child closes a descriptor
7364 before it execs or exits, this munges the parent's descriptor
7365 as well. Test for this by closing stdout in the child. */
7366 _exit(close(fileno(stdout)) != 0);
7371 while (wait(&status) != child)
7374 /* Was there some problem with vforking? */
7377 /* Did the child fail? (This shouldn't happen.) */
7380 /* Did the vfork/compiler bug occur? */
7381 || parent != getpid()
7383 /* Did the file descriptor bug occur? */
7384 || fstat(fileno(stdout), &st) != 0
7389 rm -f conftest
$ac_exeext
7390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7391 (eval $ac_link) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }; }; then
7400 ac_cv_func_vfork_works
=yes
7402 echo "$as_me: program exited with status $ac_status" >&5
7403 echo "$as_me: failed program was:" >&5
7404 sed 's/^/| /' conftest.
$ac_ext >&5
7407 ac_cv_func_vfork_works
=no
7409 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7412 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7413 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7416 if test "x$ac_cv_func_fork_works" = xcross
; then
7417 ac_cv_func_vfork_works
=ac_cv_func_vfork
7418 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7419 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7422 if test "x$ac_cv_func_vfork_works" = xyes
; then
7424 cat >>confdefs.h
<<\_ACEOF
7425 #define HAVE_WORKING_VFORK 1
7430 cat >>confdefs.h
<<\_ACEOF
7435 if test "x$ac_cv_func_fork_works" = xyes
; then
7437 cat >>confdefs.h
<<\_ACEOF
7438 #define HAVE_WORKING_FORK 1
7446 am_cv_lib_iconv_ldpath
=
7448 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7449 if test "${with_libiconv_prefix+set}" = set; then
7450 withval
="$with_libiconv_prefix"
7452 for dir
in `echo "$withval" | tr : ' '`; do
7453 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7454 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7460 for ac_header
in iconv.h
7462 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7463 echo "$as_me:$LINENO: checking for $ac_header" >&5
7464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 cat >conftest.
$ac_ext <<_ACEOF
7469 #line $LINENO "configure"
7472 cat confdefs.h
>>conftest.
$ac_ext
7473 cat >>conftest.
$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <$ac_header>
7477 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7478 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7480 grep -v '^ *+' conftest.er1
>conftest.err
7482 cat conftest.err
>&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); } >/dev
/null
; then
7485 if test -s conftest.err
; then
7486 ac_cpp_err
=$ac_c_preproc_warn_flag
7493 if test -z "$ac_cpp_err"; then
7494 eval "$as_ac_Header=yes"
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.
$ac_ext >&5
7499 eval "$as_ac_Header=no"
7501 rm -f conftest.err conftest.
$ac_ext
7503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7506 cat >>confdefs.h
<<_ACEOF
7507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514 echo "$as_me:$LINENO: checking for iconv" >&5
7515 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7516 if test "${am_cv_func_iconv+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 am_cv_func_iconv
="no, consider installing GNU libiconv"
7522 cat >conftest.
$ac_ext <<_ACEOF
7523 #line $LINENO "configure"
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7534 iconv_t cd = iconv_open("","");
7535 iconv(cd,NULL,NULL,NULL,NULL);
7541 rm -f conftest.
$ac_objext conftest
$ac_exeext
7542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7543 (eval $ac_link) 2>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
7547 { ac_try
='test -s conftest$ac_exeext'
7548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; }; then
7553 am_cv_func_iconv
=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.
$ac_ext >&5
7559 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7560 if test "$am_cv_func_iconv" != yes; then
7561 am_save_LIBS
="$LIBS"
7562 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7563 cat >conftest.
$ac_ext <<_ACEOF
7564 #line $LINENO "configure"
7567 cat confdefs.h
>>conftest.
$ac_ext
7568 cat >>conftest.
$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7575 iconv_t cd = iconv_open("","");
7576 iconv(cd,NULL,NULL,NULL,NULL);
7582 rm -f conftest.
$ac_objext conftest
$ac_exeext
7583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7584 (eval $ac_link) 2>&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } &&
7588 { ac_try
='test -s conftest$ac_exeext'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; }; then
7595 am_cv_func_iconv
=yes
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.
$ac_ext >&5
7601 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7602 LIBS
="$am_save_LIBS"
7606 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7607 echo "${ECHO_T}$am_cv_func_iconv" >&6
7608 if test "$am_cv_func_iconv" = yes; then
7610 cat >>confdefs.h
<<\_ACEOF
7611 #define HAVE_ICONV 1
7614 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7615 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
7616 if test "${am_cv_proto_iconv+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 cat >conftest.
$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7624 cat confdefs.h
>>conftest.
$ac_ext
7625 cat >>conftest.
$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7634 #if defined(__STDC__) || defined(__cplusplus)
7635 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7648 rm -f conftest.
$ac_objext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7650 (eval $ac_compile) 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try
='test -s conftest.$ac_objext'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 am_cv_proto_iconv_arg1
=""
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7665 am_cv_proto_iconv_arg1
="const"
7667 rm -f conftest.
$ac_objext conftest.
$ac_ext
7668 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);"
7671 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7672 echo "$as_me:$LINENO: result: ${ac_t:-
7673 }$am_cv_proto_iconv" >&5
7674 echo "${ECHO_T}${ac_t:-
7675 }$am_cv_proto_iconv" >&6
7677 cat >>confdefs.h
<<_ACEOF
7678 #define ICONV_CONST $am_cv_proto_iconv_arg1
7683 if test "$am_cv_lib_iconv" = yes; then
7684 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
7688 # Until we have in-tree GNU iconv:
7693 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7694 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7695 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 cat >conftest.
$ac_ext <<_ACEOF
7699 #line $LINENO "configure"
7702 cat confdefs.h
>>conftest.
$ac_ext
7703 cat >>conftest.
$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7714 rm -f conftest.
$ac_objext conftest
$ac_exeext
7715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
7720 { ac_try
='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 am_cv_val_LC_MESSAGES
=yes
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.
$ac_ext >&5
7731 am_cv_val_LC_MESSAGES
=no
7733 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7735 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7736 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7737 if test $am_cv_val_LC_MESSAGES = yes; then
7739 cat >>confdefs.h
<<\_ACEOF
7740 #define HAVE_LC_MESSAGES 1
7746 # We will need to find libiberty.h and ansidecl.h
7747 saved_CFLAGS
="$CFLAGS"
7748 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
7749 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
7750 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
7751 fprintf_unlocked strstr errno snprintf vasprintf \
7752 malloc realloc calloc free
basename getopt
clock
7754 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7755 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7756 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7757 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 cat >conftest.
$ac_ext <<_ACEOF
7761 #line $LINENO "configure"
7764 cat confdefs.h
>>conftest.
$ac_ext
7765 cat >>conftest.
$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7768 #define $ac_tr_decl 1
7770 #include "ansidecl.h"
7777 char *(*pfn) = (char *(*)) $ac_func ;
7783 rm -f conftest.
$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try
='test -s conftest.$ac_objext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 eval "gcc_cv_have_decl_$ac_func=yes"
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.
$ac_ext >&5
7800 eval "gcc_cv_have_decl_$ac_func=no"
7802 rm -f conftest.
$ac_objext conftest.
$ac_ext
7805 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7806 echo "$as_me:$LINENO: result: yes" >&5
7807 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7808 #define $ac_tr_decl 1
7812 echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7814 #define $ac_tr_decl 0
7820 if test x
= y
; then
7822 cat >>confdefs.h
<<\_ACEOF
7823 #define HAVE_DECL_GETENV 1
7826 cat >>confdefs.h
<<\_ACEOF
7827 #define HAVE_DECL_ATOL 1
7830 cat >>confdefs.h
<<\_ACEOF
7831 #define HAVE_DECL_SBRK 1
7834 cat >>confdefs.h
<<\_ACEOF
7835 #define HAVE_DECL_ABORT 1
7838 cat >>confdefs.h
<<\_ACEOF
7839 #define HAVE_DECL_ATOF 1
7842 cat >>confdefs.h
<<\_ACEOF
7843 #define HAVE_DECL_GETCWD 1
7846 cat >>confdefs.h
<<\_ACEOF
7847 #define HAVE_DECL_GETWD 1
7851 cat >>confdefs.h
<<\_ACEOF
7852 #define HAVE_DECL_STRSIGNAL 1
7855 cat >>confdefs.h
<<\_ACEOF
7856 #define HAVE_DECL_PUTC_UNLOCKED 1
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_DECL_FPUTS_UNLOCKED 1
7863 cat >>confdefs.h
<<\_ACEOF
7864 #define HAVE_DECL_FWRITE_UNLOCKED 1
7868 cat >>confdefs.h
<<\_ACEOF
7869 #define HAVE_DECL_FPRINTF_UNLOCKED 1
7872 cat >>confdefs.h
<<\_ACEOF
7873 #define HAVE_DECL_STRSTR 1
7876 cat >>confdefs.h
<<\_ACEOF
7877 #define HAVE_DECL_ERRNO 1
7880 cat >>confdefs.h
<<\_ACEOF
7881 #define HAVE_DECL_SNPRINTF 1
7884 cat >>confdefs.h
<<\_ACEOF
7885 #define HAVE_DECL_VASPRINTF 1
7889 cat >>confdefs.h
<<\_ACEOF
7890 #define HAVE_DECL_MALLOC 1
7893 cat >>confdefs.h
<<\_ACEOF
7894 #define HAVE_DECL_REALLOC 1
7897 cat >>confdefs.h
<<\_ACEOF
7898 #define HAVE_DECL_CALLOC 1
7901 cat >>confdefs.h
<<\_ACEOF
7902 #define HAVE_DECL_FREE 1
7905 cat >>confdefs.h
<<\_ACEOF
7906 #define HAVE_DECL_BASENAME 1
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define HAVE_DECL_GETOPT 1
7913 cat >>confdefs.h
<<\_ACEOF
7914 #define HAVE_DECL_CLOCK 1
7919 for ac_func
in getrlimit setrlimit getrusage
7921 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7922 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
7923 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
7924 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7927 cat >conftest.
$ac_ext <<_ACEOF
7928 #line $LINENO "configure"
7931 cat confdefs.h
>>conftest.
$ac_ext
7932 cat >>conftest.
$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7935 #define $ac_tr_decl 1
7937 #include "ansidecl.h"
7939 #ifdef HAVE_SYS_RESOURCE_H
7940 #include <sys/resource.h>
7948 char *(*pfn) = (char *(*)) $ac_func ;
7954 rm -f conftest.
$ac_objext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try
='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 eval "gcc_cv_have_decl_$ac_func=yes"
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.
$ac_ext >&5
7971 eval "gcc_cv_have_decl_$ac_func=no"
7973 rm -f conftest.
$ac_objext conftest.
$ac_ext
7976 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
7977 echo "$as_me:$LINENO: result: yes" >&5
7978 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
7979 #define $ac_tr_decl 1
7983 echo "$as_me:$LINENO: result: no" >&5
7984 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
7985 #define $ac_tr_decl 0
7991 if test x
= y
; then
7993 cat >>confdefs.h
<<\_ACEOF
7994 #define HAVE_DECL_GETRLIMIT 1
7997 cat >>confdefs.h
<<\_ACEOF
7998 #define HAVE_DECL_SETRLIMIT 1
8001 cat >>confdefs.h
<<\_ACEOF
8002 #define HAVE_DECL_GETRUSAGE 1
8007 cat >conftest.
$ac_ext <<_ACEOF
8008 #line $LINENO "configure"
8011 cat confdefs.h
>>conftest.
$ac_ext
8012 cat >>conftest.
$ac_ext <<_ACEOF
8013 /* end confdefs.h. */
8015 #include "ansidecl.h"
8017 #ifdef HAVE_SYS_RESOURCE_H
8018 #include <sys/resource.h>
8029 rm -f conftest.
$ac_objext
8030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8031 (eval $ac_compile) 2>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -s conftest.$ac_objext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.
$ac_ext >&5
8047 cat >>confdefs.h
<<\_ACEOF
8052 rm -f conftest.
$ac_objext conftest.
$ac_ext
8054 for ac_func
in ldgetname
8056 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8057 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8058 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8059 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8062 cat >conftest.
$ac_ext <<_ACEOF
8063 #line $LINENO "configure"
8066 cat confdefs.h
>>conftest.
$ac_ext
8067 cat >>conftest.
$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8070 #define $ac_tr_decl 1
8072 #include "ansidecl.h"
8083 char *(*pfn) = (char *(*)) $ac_func ;
8089 rm -f conftest.
$ac_objext
8090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8091 (eval $ac_compile) 2>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try
='test -s conftest.$ac_objext'
8096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); }; }; then
8101 eval "gcc_cv_have_decl_$ac_func=yes"
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.
$ac_ext >&5
8106 eval "gcc_cv_have_decl_$ac_func=no"
8108 rm -f conftest.
$ac_objext conftest.
$ac_ext
8111 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8112 echo "$as_me:$LINENO: result: yes" >&5
8113 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8114 #define $ac_tr_decl 1
8118 echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8120 #define $ac_tr_decl 0
8126 if test x
= y
; then
8128 cat >>confdefs.h
<<\_ACEOF
8129 #define HAVE_DECL_LDGETNAME 1
8134 for ac_func
in times
8136 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8137 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8138 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8139 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 cat >conftest.
$ac_ext <<_ACEOF
8143 #line $LINENO "configure"
8146 cat confdefs.h
>>conftest.
$ac_ext
8147 cat >>conftest.
$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8150 #define $ac_tr_decl 1
8152 #include "ansidecl.h"
8154 #ifdef HAVE_SYS_TIMES_H
8155 #include <sys/times.h>
8163 char *(*pfn) = (char *(*)) $ac_func ;
8169 rm -f conftest.
$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try
='test -s conftest.$ac_objext'
8176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 eval "gcc_cv_have_decl_$ac_func=yes"
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.
$ac_ext >&5
8186 eval "gcc_cv_have_decl_$ac_func=no"
8188 rm -f conftest.
$ac_objext conftest.
$ac_ext
8191 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8192 echo "$as_me:$LINENO: result: yes" >&5
8193 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8194 #define $ac_tr_decl 1
8198 echo "$as_me:$LINENO: result: no" >&5
8199 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8200 #define $ac_tr_decl 0
8206 if test x
= y
; then
8208 cat >>confdefs.h
<<\_ACEOF
8209 #define HAVE_DECL_TIMES 1
8214 # More time-related stuff.
8215 echo "$as_me:$LINENO: checking for struct tms" >&5
8216 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8217 if test "${ac_cv_struct_tms+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 cat >conftest.
$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8225 cat confdefs.h
>>conftest.
$ac_ext
8226 cat >>conftest.
$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8229 #include "ansidecl.h"
8231 #ifdef HAVE_SYS_TIMES_H
8232 #include <sys/times.h>
8243 rm -f conftest.
$ac_objext
8244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245 (eval $ac_compile) 2>&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } &&
8249 { ac_try
='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_cv_struct_tms
=yes
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.
$ac_ext >&5
8262 rm -f conftest.
$ac_objext conftest.
$ac_ext
8264 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8265 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8266 if test $ac_cv_struct_tms = yes; then
8268 cat >>confdefs.h
<<\_ACEOF
8269 #define HAVE_STRUCT_TMS 1
8274 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8275 # revisit after autoconf 2.50.
8276 echo "$as_me:$LINENO: checking for clock_t" >&5
8277 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8278 if test "${gcc_cv_type_clock_t+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 cat >conftest.
$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8286 cat confdefs.h
>>conftest.
$ac_ext
8287 cat >>conftest.
$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8290 #include "ansidecl.h"
8301 rm -f conftest.
$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } &&
8307 { ac_try
='test -s conftest.$ac_objext'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; }; then
8313 gcc_cv_type_clock_t
=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.
$ac_ext >&5
8318 gcc_cv_type_clock_t
=no
8320 rm -f conftest.
$ac_objext conftest.
$ac_ext
8322 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8323 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8324 if test $gcc_cv_type_clock_t = yes; then
8326 cat >>confdefs.h
<<\_ACEOF
8327 #define HAVE_CLOCK_T 1
8332 echo "$as_me:$LINENO: checking for uchar" >&5
8333 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8334 if test "${gcc_cv_type_uchar+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 cat >conftest.
$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8341 cat confdefs.h
>>conftest.
$ac_ext
8342 cat >>conftest.
$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8345 #include "ansidecl.h"
8351 if ((uchar *)0) return 0;
8352 if (sizeof(uchar)) return 0;
8357 rm -f conftest.
$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } &&
8363 { ac_try
='test -s conftest.$ac_objext'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
8369 ac_cv_type_uchar
=yes
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.
$ac_ext >&5
8376 rm -f conftest.
$ac_objext conftest.
$ac_ext
8378 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8379 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8380 if test $ac_cv_type_uchar = yes; then
8382 cat >>confdefs.h
<<\_ACEOF
8383 #define HAVE_UCHAR 1
8388 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8389 CFLAGS
="$saved_CFLAGS"
8391 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8392 if test "${enable_initfini_array+set}" = set; then
8393 enableval
="$enable_initfini_array"
8397 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8398 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8399 if test "${gcc_cv_initfini_array+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 if test "$cross_compiling" = yes; then
8403 gcc_cv_initfini_array
=no
8405 cat >conftest.
$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8414 int main (void) { return x; }
8415 int foo (void) { x = 0; }
8416 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8418 rm -f conftest
$ac_exeext
8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8420 (eval $ac_link) 2>&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 gcc_cv_initfini_array
=yes
8431 echo "$as_me: program exited with status $ac_status" >&5
8432 echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.
$ac_ext >&5
8436 gcc_cv_initfini_array
=no
8438 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8441 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8442 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8443 enable_initfini_array
=$gcc_cv_initfini_array
8446 if test $enable_initfini_array = yes; then
8448 cat >>confdefs.h
<<\_ACEOF
8449 #define HAVE_INITFINI_ARRAY 1
8454 # mkdir takes a single argument on some systems.
8455 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8456 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8457 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 cat >conftest.
$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8464 cat confdefs.h
>>conftest.
$ac_ext
8465 cat >>conftest.
$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8468 #include <sys/types.h>
8469 #ifdef HAVE_SYS_STAT_H
8470 # include <sys/stat.h>
8472 #ifdef HAVE_UNISTD_H
8473 # include <unistd.h>
8475 #ifdef HAVE_DIRECT_H
8476 # include <direct.h>
8486 rm -f conftest.
$ac_objext
8487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8488 (eval $ac_compile) 2>&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try
='test -s conftest.$ac_objext'
8493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); }; }; then
8498 gcc_cv_mkdir_takes_one_arg
=no
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.
$ac_ext >&5
8503 gcc_cv_mkdir_takes_one_arg
=yes
8505 rm -f conftest.
$ac_objext conftest.
$ac_ext
8507 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8508 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8509 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8511 cat >>confdefs.h
<<\_ACEOF
8512 #define MKDIR_TAKES_ONE_ARG 1
8524 # With Setjmp/Longjmp based exception handling.
8525 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8526 if test "${enable_sjlj_exceptions+set}" = set; then
8527 enableval
="$enable_sjlj_exceptions"
8528 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8530 cat >>confdefs.h
<<_ACEOF
8531 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8536 if test x
$host = x
$target; then
8537 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8538 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8539 if test "${ac_cv_lib_unwind_main+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 ac_check_lib_save_LIBS
=$LIBS
8543 LIBS
="-lunwind $LIBS"
8544 cat >conftest.
$ac_ext <<_ACEOF
8545 #line $LINENO "configure"
8548 cat confdefs.h
>>conftest.
$ac_ext
8549 cat >>conftest.
$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8561 rm -f conftest.
$ac_objext conftest
$ac_exeext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try
='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_lib_unwind_main
=yes
8575 echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.
$ac_ext >&5
8578 ac_cv_lib_unwind_main
=no
8580 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8581 LIBS
=$ac_check_lib_save_LIBS
8583 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8584 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8585 if test $ac_cv_lib_unwind_main = yes; then
8586 use_libunwind_default
=yes
8588 use_libunwind_default
=no
8592 use_libunwind_default
=no
8594 # Use libunwind based exception handling.
8595 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8596 if test "${enable_libunwind_exceptions+set}" = set; then
8597 enableval
="$enable_libunwind_exceptions"
8598 use_libunwind_exceptions
=$enableval
8600 use_libunwind_exceptions
=$use_libunwind_default
8602 if test x
"$use_libunwind_exceptions" = xyes
; then
8604 cat >>confdefs.h
<<\_ACEOF
8605 #define USE_LIBUNWIND_EXCEPTIONS 1
8610 # --------------------------------------------------------
8611 # Build, host, and target specific configuration fragments
8612 # --------------------------------------------------------
8614 # Collect build-machine-specific information.
8615 .
${srcdir}/config.build
8617 # Collect host-machine-specific information.
8618 .
${srcdir}/config.
host
8622 # Collect target-machine-specific information.
8623 .
${srcdir}/config.gcc
8625 extra_objs
="${host_extra_objs} ${extra_objs}"
8627 # Default the target-machine variables that were not explicitly set.
8628 if test x
"$tm_file" = x
8629 then tm_file
=$cpu_type/$cpu_type.h
; fi
8631 if test x
"$extra_headers" = x
8632 then extra_headers
=; fi
8634 if test x
$md_file = x
8635 then md_file
=$cpu_type/$cpu_type.md
; fi
8637 if test x
$out_file = x
8638 then out_file
=$cpu_type/$cpu_type.c
; fi
8640 if test x
"$tmake_file" = x
8641 then tmake_file
=$cpu_type/t-
$cpu_type
8644 if test x
"$dwarf2" = xyes
8645 then tm_file
="$tm_file tm-dwarf2.h"
8648 # Say what files are being used for the output code and MD file.
8649 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
8650 echo "Using \`$srcdir/config/$md_file' as machine description file."
8652 # If any of the xm_file variables contain nonexistent files, warn
8653 # about them and drop them.
8656 for x
in $build_xm_file; do
8657 if test -f $srcdir/config
/$x
8659 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8660 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8666 for x
in $host_xm_file; do
8667 if test -f $srcdir/config
/$x
8669 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8670 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8676 for x
in $xm_file; do
8677 if test -f $srcdir/config
/$x
8679 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
8680 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
8686 for f
in $tm_file; do
8689 if test $count = ax
; then
8690 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
8692 echo "Using the following target machine macro files:"
8693 for f
in $tm_file; do
8694 echo " $srcdir/config/$f"
8698 if test x
$need_64bit_hwint = xyes
; then
8700 cat >>confdefs.h
<<\_ACEOF
8701 #define NEED_64BIT_HOST_WIDE_INT 1
8707 for f
in $host_xm_file; do
8710 if test $count = a
; then
8712 elif test $count = ax
; then
8713 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
8715 echo "Using the following host machine macro files:"
8716 for f
in $host_xm_file; do
8717 echo " $srcdir/config/$f"
8720 echo "Using ${out_host_hook_obj} for host machine hooks."
8722 if test "$host_xm_file" != "$build_xm_file"; then
8724 for f
in $build_xm_file; do
8727 if test $count = a
; then
8729 elif test $count = ax
; then
8730 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
8732 echo "Using the following build machine macro files:"
8733 for f
in $build_xm_file; do
8734 echo " $srcdir/config/$f"
8739 # Check if a valid thread package
8740 case ${enable_threads_flag} in
8743 target_thread_file
='single'
8747 target_thread_file
='single'
8749 aix | dce | gnat | irix | posix | rtems | \
8750 single | solaris | vxworks | win32
)
8751 target_thread_file
=${enable_threads_flag}
8754 echo "${enable_threads_flag} is an unknown thread package" 1>&2
8759 if test x
${thread_file} = x
; then
8760 # No thread file set by target-specific clauses in config.gcc,
8761 # so use file chosen by default logic above
8762 thread_file
=${target_thread_file}
8765 if test x
$enable___cxa_atexit = xyes || \
8766 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
8768 cat >>confdefs.h
<<\_ACEOF
8769 #define DEFAULT_USE_CXA_ATEXIT 1
8774 # Look for a file containing extra machine modes.
8775 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
8776 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
8779 cat >>confdefs.h
<<_ACEOF
8780 #define EXTRA_MODES_FILE "config/$extra_modes"
8785 # auto-host.h is the file containing items generated by autoconf and is
8786 # the first file included by config.h.
8787 # If host=build, it is correct to have bconfig include auto-host.h
8788 # as well. If host!=build, we are in error and need to do more
8789 # work to find out the build config parameters.
8790 if test x
$host = x
$build
8792 build_auto
=auto-host.h
8795 # We create a subdir, then run autoconf in the subdir.
8796 # To prevent recursion we set host and build for the new
8797 # invocation of configure to the build for this invocation
8804 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
8805 *) realsrcdir
=..
/${srcdir};;
8807 saved_CFLAGS
="${CFLAGS}"
8808 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
8809 ${realsrcdir}/configure \
8810 --target=$target_alias --host=$build_alias --build=$build_alias
8811 CFLAGS
="${saved_CFLAGS}"
8813 # We just finished tests for the build machine, so rename
8814 # the file auto-build.h in the gcc directory.
8815 mv auto-host.h ..
/auto-build.h
8818 build_auto
=auto-build.h
8819 FORBUILD
=..
/${build_subdir}
8823 tm_file
="${tm_file} defaults.h"
8824 tm_p_file
="${tm_p_file} tm-preds.h"
8825 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
8826 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
8827 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
8828 # put this back in temporarily.
8829 xm_file
="ansidecl.h ${xm_file}"
8835 # Get the version trigger filename from the toplevel
8836 if test "${with_gcc_version_trigger+set}" = set; then
8837 gcc_version_trigger
=$with_gcc_version_trigger
8839 gcc_version_trigger
=${srcdir}/version.c
8841 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
8842 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8844 # Compile in configure arguments.
8845 if test -f configargs.h
; then
8846 # Being re-configured.
8847 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
8848 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
8850 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
8853 # Double all backslashes and backslash all quotes to turn
8854 # gcc_config_arguments into a C string.
8855 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
8856 $gcc_config_arguments
8858 gcc_config_arguments_str
=`cat conftest.out`
8861 cat > configargs.h
<<EOF
8862 /* Generated automatically. */
8863 static const char configuration_arguments[] = "$gcc_config_arguments_str";
8864 static const char thread_model[] = "$thread_file";
8866 static const struct {
8867 const char *name, *value;
8868 } configure_default_options[] = $configure_default_options;
8871 # Internationalization
8873 VERSION
="$gcc_version"
8877 # If we haven't got the data from the intl directory,
8878 # assume NLS is disabled.
8886 if test -f ..
/intl
/config.intl
; then
8887 . ..
/intl
/config.intl
8889 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8890 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8891 if test x
"$USE_NLS" != xyes
; then
8892 echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8895 echo "$as_me:$LINENO: result: yes" >&5
8896 echo "${ECHO_T}yes" >&6
8898 cat >>confdefs.h
<<\_ACEOF
8899 #define ENABLE_NLS 1
8903 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8904 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8905 # Look for .po and .gmo files in the source directory.
8908 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
8909 # If there aren't any .gmo files the shell will give us the
8910 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8912 case "$cat" in *\
**)
8915 # The quadruple backslash is collapsed to a double backslash
8916 # by the backticks, then collapsed again by the double quotes,
8917 # leaving us with one backslash in the sed expression (right
8918 # before the dot that mustn't act as a wildcard).
8919 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
8920 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
8921 # The user is allowed to set LINGUAS to a list of languages to
8922 # install catalogs for. If it's empty that means "all of them."
8923 if test "x$LINGUAS" = x
; then
8924 CATALOGS
="$CATALOGS $cat"
8925 XLINGUAS
="$XLINGUAS $lang"
8927 case "$LINGUAS" in *$lang*)
8928 CATALOGS
="$CATALOGS $cat"
8929 XLINGUAS
="$XLINGUAS $lang"
8935 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8936 echo "${ECHO_T}$LINGUAS" >&6
8939 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
8940 # -liconv on the link line twice.
8941 case "$LIBINTL" in *$LIBICONV*)
8945 # Windows32 Registry support for specifying GCC installation paths.
8946 # Check whether --enable-win32-registry or --disable-win32-registry was given.
8947 if test "${enable_win32_registry+set}" = set; then
8948 enableval
="$enable_win32_registry"
8952 win32 | pe | cygwin
* | mingw32
* | uwin
*)
8953 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
8954 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
8955 if test "x$enable_win32_registry" != xno
; then
8957 cat >>confdefs.h
<<\_ACEOF
8958 #define ENABLE_WIN32_REGISTRY 1
8961 echo "$as_me:$LINENO: result: yes" >&5
8962 echo "${ECHO_T}yes" >&6
8963 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
8964 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
8965 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8968 ac_func_search_save_LIBS
=$LIBS
8969 ac_cv_search_RegOpenKeyExA
=no
8970 cat >conftest.
$ac_ext <<_ACEOF
8971 #line $LINENO "configure"
8974 cat confdefs.h
>>conftest.
$ac_ext
8975 cat >>conftest.
$ac_ext <<_ACEOF
8976 /* end confdefs.h. */
8978 /* Override any gcc2 internal prototype to avoid an error. */
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8984 char RegOpenKeyExA ();
8993 rm -f conftest.
$ac_objext conftest
$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try
='test -s conftest$ac_exeext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_cv_search_RegOpenKeyExA
="none required"
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.
$ac_ext >&5
9011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9012 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9013 for ac_lib
in advapi32
; do
9014 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9015 cat >conftest.
$ac_ext <<_ACEOF
9016 #line $LINENO "configure"
9019 cat confdefs.h
>>conftest.
$ac_ext
9020 cat >>conftest.
$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any gcc2 internal prototype to avoid an error. */
9027 /* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029 char RegOpenKeyExA ();
9038 rm -f conftest.
$ac_objext conftest
$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040 (eval $ac_link) 2>&5
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } &&
9044 { ac_try
='test -s conftest$ac_exeext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.
$ac_ext >&5
9057 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9060 LIBS
=$ac_func_search_save_LIBS
9062 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9063 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9064 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9065 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9070 echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9074 # Check if user specified a different registry key.
9075 case "x${enable_win32_registry}" in
9078 gcc_cv_win32_registry_key
="$VERSION"
9081 # no registry lookup.
9082 gcc_cv_win32_registry_key
=''
9085 # user-specified key.
9086 gcc_cv_win32_registry_key
="$enable_win32_registry"
9090 if test "x$enable_win32_registry" != xno
; then
9091 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9092 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9094 cat >>confdefs.h
<<_ACEOF
9095 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9098 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9099 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9104 # Get an absolute path to the GCC top-level source directory
9105 holddir
=`${PWDCMD-pwd}`
9107 topdir
=`${PWDCMD-pwd}`
9110 # Conditionalize the makefile for this host machine.
9112 for f
in ${host_xmake_file}
9114 if test -f ${srcdir}/config
/$f
9116 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9120 # Conditionalize the makefile for this target machine.
9122 for f
in ${tmake_file}
9124 if test -f ${srcdir}/config
/$f
9126 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9129 tmake_file
="${tmake_file_}"
9131 symbolic_link
='ln -s'
9133 # If the host doesn't support symlinks, modify CC in
9134 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9135 # Otherwise, we can use "CC=$(CC)".
9137 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9139 cc_set_by_configure
="\$(CC)"
9140 quoted_cc_set_by_configure
="\$(CC)"
9141 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9142 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9145 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9147 symbolic_link
="cp -p"
9151 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9152 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9153 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9154 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9158 out_object_file
=`basename $out_file .c`.o
9162 for f
in $tm_file; do
9165 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9166 tm_include_list
="${tm_include_list} $f"
9169 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9170 tm_include_list
="${tm_include_list} config/$f"
9177 for f
in $tm_p_file; do
9180 tm_p_file_list
="${tm_p_file_list} $f"
9181 tm_p_include_list
="${tm_p_include_list} $f"
9184 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9185 tm_p_include_list
="${tm_p_include_list} config/$f"
9191 for f
in $xm_file; do
9194 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9195 xm_include_list
="${xm_include_list} $f"
9198 xm_file_list
="${xm_file_list} $f"
9199 xm_include_list
="${xm_include_list} $f"
9202 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9203 xm_include_list
="${xm_include_list} config/$f"
9209 host_xm_include_list
=
9210 for f
in $host_xm_file; do
9213 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9214 host_xm_include_list
="${host_xm_include_list} $f"
9217 host_xm_file_list
="${host_xm_file_list} $f"
9218 host_xm_include_list
="${host_xm_include_list} $f"
9221 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9222 host_xm_include_list
="${host_xm_include_list} config/$f"
9228 for f
in $build_xm_file; do
9231 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9232 build_xm_include_list
="${build_xm_include_list} $f"
9234 auto-build.h | auto-host.h
)
9235 build_xm_file_list
="${build_xm_file_list} $f"
9236 build_xm_include_list
="${build_xm_include_list} $f"
9239 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9240 build_xm_include_list
="${build_xm_include_list} config/$f"
9245 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9246 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9249 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9250 if test x
$host != x
$target
9252 CROSS
="-DCROSS_COMPILE"
9254 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9255 case "$host","$target" in
9256 # Darwin crosses can use the host system's libraries and headers,
9257 # because of the fat library support. Of course, it must be the
9258 # same version of Darwin on both sides. Allow the user to
9259 # just say --target=foo-darwin without a version number to mean
9260 # "the version on this system".
9261 *-*-darwin*,*-*-darwin*)
9262 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9263 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9264 if test $hostos = $targetos -o $targetos = darwin
; then
9266 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9271 i?
86-*-*,x86_64-
*-* \
9272 | powerpc
*-*-*,powerpc64
*-*-*)
9273 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9275 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9276 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9277 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9280 # If this is a cross-compiler that does not
9281 # have its own set of headers then define
9284 # If this is using newlib, without having the headers available now,
9285 # then define inhibit_libc in LIBGCC2_CFLAGS.
9286 # This prevents libgcc2 from containing any code which requires libc
9289 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9290 test x
$with_newlib = xyes
; } &&
9291 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9292 inhibit_libc
=-Dinhibit_libc
9296 # When building gcc with a cross-compiler, we need to adjust things so
9297 # that the generator programs are still built with the native compiler.
9298 # Also, we cannot run fixincludes or fix-header.
9300 # These are the normal (build=host) settings:
9302 BUILD_PREFIX_1
=ignore-
9303 CC_FOR_BUILD
='$(CC)'
9304 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9306 STMP_FIXINC
=stmp-fixinc
9308 # Possibly disable fixproto, on a per-target basis.
9309 case ${use_fixproto} in
9314 STMP_FIXPROTO
=stmp-fixproto
9319 # And these apply if build != host, or we are generating coverage data
9320 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9323 BUILD_PREFIX_1
=build-
9324 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9326 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9332 # Expand extra_headers to include complete path.
9333 # This substitutes for lots of t-* files.
9335 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9336 for file in ${extra_headers} ; do
9337 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9340 # Add a definition of USE_COLLECT2 if system wants one.
9341 case $use_collect2 in
9342 no
) use_collect2
= ;;
9345 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9346 xm_defines
="${xm_defines} USE_COLLECT2"
9350 # Identify the assembler which will work hand-in-glove with the newly
9351 # built GCC, so that we can examine its features. This is the assembler
9352 # which will be driven by the driver program.
9354 # If build != host, and we aren't building gas in-tree, we identify a
9355 # build->target assembler and hope that it will have the same features
9356 # as the host->target assembler we'll be using.
9357 echo "$as_me:$LINENO: checking what assembler to use" >&5
9358 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9361 gcc_cv_gas_major_version
=
9362 gcc_cv_gas_minor_version
=
9363 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9364 if test -x "$DEFAULT_ASSEMBLER"; then
9365 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9366 elif test -x "$AS"; then
9368 elif test -x as
$host_exeext; then
9369 # Build using assembler in the current directory.
9370 gcc_cv_as
=.
/as
$host_exeext
9371 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9372 && test -f ..
/gas
/Makefile
; then
9373 # Single tree build which includes gas.
9375 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9376 for f
in $gcc_cv_as_bfd_srcdir/configure \
9377 $gcc_cv_as_gas_srcdir/configure \
9378 $gcc_cv_as_gas_srcdir/configure.
in \
9379 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9380 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9381 if test x
$gcc_cv_gas_version != x
; then
9385 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9386 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9387 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9388 case $gcc_cv_gas_patch_version in
9389 "") gcc_cv_gas_patch_version
="0" ;;
9391 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9392 + $gcc_cv_gas_minor_version \) \* 1000 \
9393 + $gcc_cv_gas_patch_version`
9395 rm -f as
$host_exeext
9396 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9397 in_tree_gas_is_elf
=no
9398 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9399 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9400 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9402 in_tree_gas_is_elf
=yes
9406 if test "x$gcc_cv_as" = x
; then
9407 # Search the same directories that the installed compiler will
9408 # search. Else we may find the wrong assembler and lose. If we
9409 # do not find a suitable assembler binary, then try the user's
9412 # Also note we have to check MD_EXEC_PREFIX before checking the
9413 # user's path. Unfortunately, there is no good way to get at the
9414 # value of MD_EXEC_PREFIX here. So we do a brute force search
9415 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9416 # to be fixed as part of the make/configure rewrite too.
9418 if test "x$exec_prefix" = xNONE
; then
9419 if test "x$prefix" = xNONE
; then
9420 test_prefix
=/usr
/local
9425 test_prefix
=$exec_prefix
9428 # If the loop below does not find an assembler, then use whatever
9429 # one we can find in the users's path.
9431 if test "x$program_prefix" != xNONE
; then
9432 gcc_cv_as
=${program_prefix}as
$host_exeext
9434 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
9437 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9438 $test_prefix/lib/gcc-lib/$target_noncanonical \
9439 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9440 /usr/lib/gcc/$target_noncanonical \
9441 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9442 $test_prefix/$target_noncanonical/bin"
9444 if test x
$host = x
$target; then
9445 test_dirs
="$test_dirs \
9450 /bsd43/usr/lib/cmplrs/cc \
9451 /usr/cross64/usr/bin \
9452 /usr/lib/cmplrs/cc \
9453 /sysv/usr/lib/cmplrs/cc \
9454 /svr4/usr/lib/cmplrs/cc \
9458 for dir
in $test_dirs; do
9459 if test -x $dir/as
$host_exeext; then
9460 gcc_cv_as
=$dir/as
$host_exeext
9465 case $in_tree_gas in
9467 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9468 echo "${ECHO_T}\"newly built gas\"" >&6
9471 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9472 echo "${ECHO_T}$gcc_cv_as" >&6
9476 # Identify the linker which will work hand-in-glove with the newly
9477 # built GCC, so that we can examine its features. This is the linker
9478 # which will be driven by the driver program.
9480 # If build != host, and we aren't building gas in-tree, we identify a
9481 # build->target linker and hope that it will have the same features
9482 # as the host->target linker we'll be using.
9483 echo "$as_me:$LINENO: checking what linker to use" >&5
9484 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
9487 gcc_cv_gld_major_version
=
9488 gcc_cv_gld_minor_version
=
9489 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
9490 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9491 if test -x "$DEFAULT_LINKER"; then
9492 gcc_cv_ld
="$DEFAULT_LINKER"
9493 elif test -x "$LD"; then
9495 elif test -x collect-ld
$host_exeext; then
9496 # Build using linker in the current directory.
9497 gcc_cv_ld
=.
/collect-ld
$host_exeext
9498 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
9499 && test -f ..
/ld
/Makefile
; then
9500 # Single tree build which includes ld.
9502 in_tree_ld_is_elf
=no
9503 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
9504 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
9505 in_tree_ld_is_elf
=yes
9507 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
9509 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9510 if test x
$gcc_cv_gld_version != x
; then
9514 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
9515 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9516 rm -f collect-ld
$host_exeext
9517 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
9521 if test "x$gcc_cv_ld" = x
; then
9522 # Search the same directories that the installed compiler will
9523 # search. Else we may find the wrong linker and lose. If we
9524 # do not find a suitable linker binary, then try the user's
9527 # Also note we have to check MD_EXEC_PREFIX before checking the
9528 # user's path. Unfortunately, there is no good way to get at the
9529 # value of MD_EXEC_PREFIX here. So we do a brute force search
9530 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9531 # to be fixed as part of the make/configure rewrite too.
9533 if test "x$exec_prefix" = xNONE
; then
9534 if test "x$prefix" = xNONE
; then
9535 test_prefix
=/usr
/local
9540 test_prefix
=$exec_prefix
9543 # If the loop below does not find an linker, then use whatever
9544 # one we can find in the users's path.
9546 if test "x$program_prefix" != xNONE
; then
9547 gcc_cv_ld
=${program_prefix}ld
$host_exeext
9549 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
9552 test_dirs
="$test_prefix/lib/gcc-lib/$target_noncanonical/$gcc_version \
9553 $test_prefix/lib/gcc-lib/$target_noncanonical \
9554 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9555 /usr/lib/gcc/$target_noncanonical \
9556 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9557 $test_prefix/$target_noncanonical/bin"
9559 if test x
$host = x
$target; then
9560 test_dirs
="$test_dirs \
9565 /bsd43/usr/lib/cmplrs/cc \
9566 /usr/cross64/usr/bin \
9567 /usr/lib/cmplrs/cc \
9568 /sysv/usr/lib/cmplrs/cc \
9569 /svr4/usr/lib/cmplrs/cc \
9573 for dir
in $test_dirs; do
9574 if test -x $dir/ld
$host_exeext; then
9575 gcc_cv_ld
=$dir/ld
$host_exeext
9582 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
9583 echo "${ECHO_T}\"newly built ld\"" >&6
9586 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
9587 echo "${ECHO_T}$gcc_cv_ld" >&6
9591 # Figure out what nm we will be using.
9592 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
9593 echo "$as_me:$LINENO: checking what nm to use" >&5
9594 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
9596 if test -x nm
$host_exeext; then
9597 gcc_cv_nm
=.
/nm
$host_exeext
9598 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9599 && test -f ..
/binutils
/Makefile
; then
9600 # Single tree build which includes binutils.
9602 gcc_cv_nm
=.
/nm
$host_exeext
9603 rm -f nm
$host_exeext
9604 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
9605 elif test "x$program_prefix" != xNONE
; then
9606 gcc_cv_nm
=${program_prefix}nm
$host_exeext
9608 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
9611 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
9612 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
9613 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
9614 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
9617 # Figure out what objdump we will be using.
9618 echo "$as_me:$LINENO: checking what objdump to use" >&5
9619 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
9621 if test -x objdump
$host_exeext; then
9622 gcc_cv_objdump
=.
/objdump
$host_exeext
9623 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
9624 && test -f ..
/binutils
/Makefile
; then
9625 # Single tree build which includes binutils.
9627 gcc_cv_objdump
=.
/objdump
$host_exeext
9628 rm -f objdump
$host_exeext
9629 $symbolic_link ..
/binutils
/objdump
$host_exeext \
9630 objdump
$host_exeext 2>/dev
/null
9631 elif test "x$program_prefix" != xNONE
; then
9632 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
9634 gcc_cv_objdump
=`echo objdump | \
9635 sed ${program_transform_name}`$host_exeext
9637 case $in_tree_objdump in
9638 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
9639 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
9640 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
9641 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
9644 # Figure out what assembler alignment features are present.
9645 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
9646 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
9647 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 gcc_cv_as_balign_and_p2align
=no
9651 if test $in_tree_gas = yes; then
9652 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
9653 then gcc_cv_as_balign_and_p2align
=yes
9655 elif test x
$gcc_cv_as != x
; then
9657 .p2align 2' > conftest.s
9658 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }
9665 gcc_cv_as_balign_and_p2align
=yes
9667 echo "configure: failed program was" >&5
9670 rm -f conftest.o conftest.s
9673 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
9674 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
9675 if test $gcc_cv_as_balign_and_p2align = yes; then
9677 cat >>confdefs.h
<<\_ACEOF
9678 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
9683 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
9684 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
9685 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 gcc_cv_as_max_skip_p2align
=no
9689 if test $in_tree_gas = yes; then
9690 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
9691 then gcc_cv_as_max_skip_p2align
=yes
9693 elif test x
$gcc_cv_as != x
; then
9694 echo '.p2align 4,,7' > conftest.s
9695 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }
9702 gcc_cv_as_max_skip_p2align
=yes
9704 echo "configure: failed program was" >&5
9707 rm -f conftest.o conftest.s
9710 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
9711 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
9712 if test $gcc_cv_as_max_skip_p2align = yes; then
9714 cat >>confdefs.h
<<\_ACEOF
9715 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
9720 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
9721 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
9722 if test "${gcc_cv_as_subsection_m1+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 gcc_cv_as_subsection_m1
=no
9726 if test $in_tree_gas = yes; then
9727 if test $in_tree_gas_is_elf = yes \
9728 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
9729 then gcc_cv_as_subsection_m1
=yes
9731 elif test x
$gcc_cv_as != x
; then
9732 echo 'conftest_label1: .word 0
9734 conftest_label2: .word 0
9735 .previous' > conftest.s
9736 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }
9743 if test x
$gcc_cv_nm != x
; then
9744 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
9745 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
9746 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
9748 else gcc_cv_as_subsection_m1
=yes
9750 rm -f conftest.nm1 conftest.nm2
9753 echo "configure: failed program was" >&5
9756 rm -f conftest.o conftest.s
9759 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
9760 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
9761 if test $gcc_cv_as_subsection_m1 = yes; then
9763 cat >>confdefs.h
<<\_ACEOF
9764 #define HAVE_GAS_SUBSECTION_ORDERING 1
9769 echo "$as_me:$LINENO: checking assembler for .weak" >&5
9770 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
9771 if test "${gcc_cv_as_weak+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 if test $in_tree_gas = yes; then
9776 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
9777 then gcc_cv_as_weak
=yes
9779 elif test x
$gcc_cv_as != x
; then
9780 echo ' .weak foobar' > conftest.s
9781 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }
9790 echo "configure: failed program was" >&5
9793 rm -f conftest.o conftest.s
9796 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
9797 echo "${ECHO_T}$gcc_cv_as_weak" >&6
9798 if test $gcc_cv_as_weak = yes; then
9800 cat >>confdefs.h
<<\_ACEOF
9801 #define HAVE_GAS_WEAK 1
9806 # .hidden needs to be supported in both the assembler and the linker,
9807 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
9808 # This is irritatingly difficult to feature test for; we have to check the
9809 # date string after the version number. If we've got an in-tree
9810 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
9812 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
9813 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
9814 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
9815 if test "${gcc_cv_as_hidden+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 if test $in_tree_gas = yes; then
9820 if test $in_tree_gas_is_elf = yes \
9821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
9822 then gcc_cv_as_hidden
=yes
9824 elif test x
$gcc_cv_as != x
; then
9825 echo ' .hidden foobar
9826 foobar:' > conftest.s
9827 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }
9834 gcc_cv_as_hidden
=yes
9836 echo "configure: failed program was" >&5
9839 rm -f conftest.o conftest.s
9842 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
9843 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
9846 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
9847 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
9848 if test "${gcc_cv_ld_hidden+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 if test $in_tree_ld = yes ; then
9853 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 \
9854 && test $in_tree_ld_is_elf = yes; then
9855 gcc_cv_ld_hidden
=yes
9858 gcc_cv_ld_hidden
=yes
9859 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
9860 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
9861 ld_vers
=`echo $ld_ver | sed -n \
9862 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9863 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9864 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
9865 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
9867 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
9868 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'`
9869 if test 0"$ld_date" -lt 20020404; then
9870 if test -n "$ld_date"; then
9871 # If there was date string, but was earlier than 2002-04-04, fail
9873 elif test -z "$ld_vers"; then
9874 # If there was no date string nor ld version number, something is wrong
9877 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
9878 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
9879 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9880 test -z "$ld_vers_patch" && ld_vers_patch
=0
9881 if test "$ld_vers_major" -lt 2; then
9883 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
9884 gcc_cv_ld_hidden
="no"
9885 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
9892 hppa64
*-*-hpux* | ia64
*-*-hpux*)
9893 gcc_cv_ld_hidden
=yes
9902 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
9903 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
9904 libgcc_visibility
=no
9906 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
9907 libgcc_visibility
=yes
9909 cat >>confdefs.h
<<\_ACEOF
9910 #define HAVE_GAS_HIDDEN 1
9915 # Check if we have .[us]leb128, and support symbol arithmetic with it.
9916 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
9917 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
9918 if test "${gcc_cv_as_leb128+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9922 if test $in_tree_gas = yes; then
9923 if test $in_tree_gas_is_elf = yes \
9924 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
9925 then gcc_cv_as_leb128
=yes
9927 elif test x
$gcc_cv_as != x
; then
9934 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }
9941 # GAS versions before 2.11 do not support uleb128,
9942 # despite appearing to.
9943 # ??? There exists an elf-specific test that will crash
9944 # the assembler. Perhaps it's better to figure out whether
9945 # arbitrary sections are supported and try the test.
9946 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
9947 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
9948 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
9949 as_major
=`echo $as_ver | sed 's/\..*//'`
9950 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
9951 if test $as_major -eq 2 && test $as_minor -lt 11
9953 else gcc_cv_as_leb128
=yes
9957 echo "configure: failed program was" >&5
9960 rm -f conftest.o conftest.s
9963 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
9964 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
9965 if test $gcc_cv_as_leb128 = yes; then
9967 cat >>confdefs.h
<<\_ACEOF
9968 #define HAVE_AS_LEB128 1
9973 # GAS versions up to and including 2.11.0 may mis-optimize
9975 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
9976 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
9977 if test "${gcc_cv_as_eh_frame+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 gcc_cv_as_eh_frame
=no
9981 if test $in_tree_gas = yes; then
9982 if test $in_tree_gas_is_elf = yes \
9983 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
9984 then gcc_cv_as_eh_frame
=yes
9986 elif test x
$gcc_cv_as != x
; then
9993 .section .eh_frame,"aw",@progbits
9995 .4byte .LECIE1-.LSCIE1
10009 .4byte .LEFDE1-.LASFDE1
10011 .4byte .LASFDE1-__FRAME_BEGIN__
10018 .LEFDE1:' > conftest.s
10019 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }
10026 cat > conftest.lit
<<EOF
10027 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10028 0010 01000000 12000000 18000000 00000000 ................
10029 0020 08000000 04080000 0044 .........D
10031 cat > conftest.big
<<EOF
10032 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10033 0010 00000001 00000012 00000018 00000000 ................
10034 0020 00000008 04000000 0844 .........D
10036 # If the assembler didn't choke, and we can objdump,
10037 # and we got the correct data, then succeed.
10038 if test x
$gcc_cv_objdump != x \
10039 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10040 |
tail -3 > conftest.got \
10041 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10042 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10044 gcc_cv_as_eh_frame
=yes
10045 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 gcc_cv_as_eh_frame
=buggy
10053 # Uh oh, what do we do now?
10054 gcc_cv_as_eh_frame
=no
10057 echo "configure: failed program was" >&5
10060 rm -f conftest.o conftest.s
10063 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10064 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10067 if test $gcc_cv_as_eh_frame = buggy
; then
10069 cat >>confdefs.h
<<\_ACEOF
10070 #define USE_AS_TRADITIONAL_FORMAT 1
10075 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10076 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10077 if test "${gcc_cv_as_shf_merge+set}" = set; then
10078 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 gcc_cv_as_shf_merge
=no
10081 if test $in_tree_gas = yes; then
10082 if test $in_tree_gas_is_elf = yes \
10083 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10084 then gcc_cv_as_shf_merge
=yes
10086 elif test x
$gcc_cv_as != x
; then
10087 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10088 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; }
10095 gcc_cv_as_shf_merge
=yes
10097 echo "configure: failed program was" >&5
10100 rm -f conftest.o conftest.s
10103 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10104 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10107 cat >>confdefs.h
<<_ACEOF
10108 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10112 # Thread-local storage - the check is heavily parametrized.
10120 .section ".tdata","awT",@progbits
10123 ldq $27,__tls_get_addr($29) !literal!1
10124 lda $16,foo($29) !tlsgd!1
10125 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10126 ldq $27,__tls_get_addr($29) !literal!2
10127 lda $16,foo($29) !tlsldm!2
10128 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10129 ldq $1,foo($29) !gotdtprel
10130 ldah $2,foo($29) !dtprelhi
10131 lda $3,foo($2) !dtprello
10132 lda $4,foo($29) !dtprel
10133 ldq $1,foo($29) !gottprel
10134 ldah $2,foo($29) !tprelhi
10135 lda $3,foo($2) !tprello
10136 lda $4,foo($29) !tprel'
10139 tls_as_opt
=--fatal-warnings
10143 .section ".tdata","awT",@progbits
10147 leal foo@TLSGD(,%ebx,1), %eax
10148 leal foo@TLSLDM(%ebx), %eax
10149 leal foo@DTPOFF(%eax), %edx
10150 movl foo@GOTTPOFF(%ebx), %eax
10151 subl foo@GOTTPOFF(%ebx), %eax
10152 addl foo@GOTNTPOFF(%ebx), %eax
10153 movl foo@INDNTPOFF, %eax
10154 movl $foo@TPOFF, %eax
10155 subl $foo@TPOFF, %eax
10156 leal foo@NTPOFF(%ecx), %eax'
10159 tls_as_opt
=--fatal-warnings
10163 .section ".tdata","awT",@progbits
10167 leaq foo@TLSGD(%rip), %rdi
10168 leaq foo@TLSLD(%rip), %rdi
10169 leaq foo@DTPOFF(%rax), %rdx
10170 movq foo@GOTTPOFF(%rip), %rax
10171 movq $foo@TPOFF, %rax'
10174 tls_as_opt
=--fatal-warnings
10178 .section ".tdata","awT",@progbits
10181 addl r16 = @ltoff(@dtpmod(foo#)), gp
10182 addl r17 = @ltoff(@dtprel(foo#)), gp
10183 addl r18 = @ltoff(@tprel(foo#)), gp
10184 addl r19 = @dtprel(foo#), gp
10185 adds r21 = @dtprel(foo#), r13
10186 movl r23 = @dtprel(foo#)
10187 addl r20 = @tprel(foo#), gp
10188 adds r22 = @tprel(foo#), r13
10189 movl r24 = @tprel(foo#)'
10192 tls_as_opt
=--fatal-warnings
10196 .section ".tdata","awT",@progbits
10204 addi 3,31,ld0@got@tlsgd
10206 addi 3,31,x1@got@tlsld
10209 addis 9,3,x2@dtprel@ha
10210 addi 9,9,x2@dtprel@l
10211 lwz 9,x3@got@tprel(31)
10214 addis 9,2,x2@tprel@ha
10215 addi 9,9,x2@tprel@l'
10218 tls_as_opt
="-a32 --fatal-warnings"
10222 .section ".tdata","awT",@progbits
10230 addi 3,2,ld0@got@tlsgd
10236 addi 3,2,x1@got@tlsld
10242 addis 9,3,x2@dtprel@ha
10243 addi 9,9,x2@dtprel@l
10246 ld 9,x3@got@dtprel(2)
10252 tls_as_opt
="-a64 --fatal-warnings"
10256 .section ".tdata","awT",@progbits
10263 .long foo@GOTNTPOFF
10264 .long foo@INDNTPOFF
10265 l %r1,foo@GOTNTPOFF(%r12)
10266 l %r1,0(%r1):tls_load:foo
10267 bas %r14,0(%r1,%r13):tls_gdcall:foo
10268 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10271 tls_as_opt
="-m31 --fatal-warnings"
10275 .section ".tdata","awT",@progbits
10282 .quad foo@GOTNTPOFF
10283 lg %r1,foo@GOTNTPOFF(%r12)
10284 larl %r1,foo@INDNTPOFF
10285 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10286 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10289 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10291 sh-
*-* | sh
[34]-*-*)
10293 .section ".tdata","awT",@progbits
10303 tls_as_opt
=--fatal-warnings
10307 sparc
*-sun-solaris2.
*)
10314 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10316 .section ".tdata",#alloc,#write,#tls
10319 sethi %tgd_hi22(foo), %o0
10320 add %o0, %tgd_lo10(foo), %o1
10321 add %l7, %o1, %o0, %tgd_add(foo)
10322 call __tls_get_addr, %tgd_call(foo)
10323 sethi %tldm_hi22(foo), %l1
10324 add %l1, %tldm_lo10(foo), %l2
10325 add %l7, %l2, %o0, %tldm_add(foo)
10326 call __tls_get_addr, %tldm_call(foo)
10327 sethi %tldo_hix22(foo), %l3
10328 xor %l3, %tldo_lox10(foo), %l4
10329 add %o0, %l4, %l5, %tldo_add(foo)
10330 sethi %tie_hi22(foo), %o3
10331 add %o3, %tie_lo10(foo), %o3
10332 ld [%l7 + %o3], %o2, %tie_ld(foo)
10333 add %g7, %o2, %o4, %tie_add(foo)
10334 sethi %tle_hix22(foo), %l1
10335 xor %l1, %tle_lox10(foo), %o5
10336 ld [%g7 + %o5], %o1'
10341 .section ".tdata","awT",@progbits
10344 sethi %tgd_hi22(foo), %o0
10345 add %o0, %tgd_lo10(foo), %o1
10346 add %l7, %o1, %o0, %tgd_add(foo)
10347 call __tls_get_addr, %tgd_call(foo)
10348 sethi %tldm_hi22(foo), %l1
10349 add %l1, %tldm_lo10(foo), %l2
10350 add %l7, %l2, %o0, %tldm_add(foo)
10351 call __tls_get_addr, %tldm_call(foo)
10352 sethi %tldo_hix22(foo), %l3
10353 xor %l3, %tldo_lox10(foo), %l4
10354 add %o0, %l4, %l5, %tldo_add(foo)
10355 sethi %tie_hi22(foo), %o3
10356 add %o3, %tie_lo10(foo), %o3
10357 ld [%l7 + %o3], %o2, %tie_ld(foo)
10358 add %g7, %o2, %o4, %tie_add(foo)
10359 sethi %tle_hix22(foo), %l1
10360 xor %l1, %tle_lox10(foo), %o5
10361 ld [%g7 + %o5], %o1'
10364 tls_as_opt
="-32 --fatal-warnings"
10368 if test -z "$tls_first_major"; then
10369 : # If we don't have a check, assume no support.
10371 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10372 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10373 if test "${gcc_cv_as_tls+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 if test $in_tree_gas = yes; then
10378 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10379 then gcc_cv_as_tls
=yes
10381 elif test x
$gcc_cv_as != x
; then
10382 echo "$conftest_s" > conftest.s
10383 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }
10392 echo "configure: failed program was" >&5
10395 rm -f conftest.o conftest.s
10398 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10399 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10400 if test $gcc_cv_as_tls = yes; then
10402 cat >>confdefs.h
<<\_ACEOF
10403 #define HAVE_AS_TLS 1
10409 # Target-specific assembler checks.
10412 # All TARGET_ABI_OSF targets.
10413 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10414 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10415 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10416 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 gcc_cv_as_alpha_explicit_relocs
=no
10420 if test $in_tree_gas = yes; then
10421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10422 then gcc_cv_as_alpha_explicit_relocs
=yes
10424 elif test x
$gcc_cv_as != x
; then
10425 echo ' .set nomacro
10427 extbl $3, $2, $3 !lituse_bytoff!1
10428 ldq $2, a($29) !literal!1
10429 ldq $4, b($29) !literal!2
10430 ldq_u $3, 0($2) !lituse_base!1
10431 ldq $27, f($29) !literal!5
10432 jsr $26, ($27), f !lituse_jsr!5
10433 ldah $29, 0($26) !gpdisp!3
10434 lda $0, c($29) !gprel
10435 ldah $1, d($29) !gprelhigh
10436 lda $1, d($1) !gprellow
10437 lda $29, 0($29) !gpdisp!3' > conftest.s
10438 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }
10445 gcc_cv_as_alpha_explicit_relocs
=yes
10447 echo "configure: failed program was" >&5
10450 rm -f conftest.o conftest.s
10453 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10454 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10455 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10457 cat >>confdefs.h
<<\_ACEOF
10458 #define HAVE_AS_EXPLICIT_RELOCS 1
10465 echo "$as_me:$LINENO: checking assembler for .register" >&5
10466 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
10467 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10470 gcc_cv_as_sparc_register_op
=no
10471 if test x
$gcc_cv_as != x
; then
10472 echo '.register %g2, #scratch' > conftest.s
10473 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475 (eval $ac_try) 2>&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); }; }
10480 gcc_cv_as_sparc_register_op
=yes
10482 echo "configure: failed program was" >&5
10485 rm -f conftest.o conftest.s
10488 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
10489 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
10490 if test $gcc_cv_as_sparc_register_op = yes; then
10492 cat >>confdefs.h
<<\_ACEOF
10493 #define HAVE_AS_REGISTER_PSEUDO_OP 1
10498 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
10499 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
10500 if test "${gcc_cv_as_sparc_relax+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 gcc_cv_as_sparc_relax
=no
10504 if test x
$gcc_cv_as != x
; then
10505 echo '.text' > conftest.s
10506 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }
10513 gcc_cv_as_sparc_relax
=yes
10515 echo "configure: failed program was" >&5
10518 rm -f conftest.o conftest.s
10521 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
10522 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
10523 if test $gcc_cv_as_sparc_relax = yes; then
10525 cat >>confdefs.h
<<\_ACEOF
10526 #define HAVE_AS_RELAX_OPTION 1
10531 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
10532 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
10533 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 gcc_cv_as_sparc_ua_pcrel
=no
10537 if test x
$gcc_cv_as != x
; then
10544 .uaword %r_disp32(foo)' > conftest.s
10545 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }
10552 if test x
$gcc_cv_ld != x \
10553 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
10554 gcc_cv_as_sparc_ua_pcrel
=yes
10558 echo "configure: failed program was" >&5
10561 rm -f conftest.o conftest.s
10564 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
10565 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
10566 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
10568 cat >>confdefs.h
<<\_ACEOF
10569 #define HAVE_AS_SPARC_UA_PCREL 1
10573 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
10574 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
10575 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 gcc_cv_as_sparc_ua_pcrel_hidden
=no
10579 if test x
$gcc_cv_as != x
; then
10583 .uaword %r_disp32(foo)
10584 .byte 0x32, 0x33, 0x34
10588 .skip 4' > conftest.s
10589 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }
10596 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
10597 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
10598 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
10599 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
10600 if $gcc_cv_objdump -R conftest
2> /dev
/null \
10601 |
grep 'DISP32' > /dev
/null
2>&1; then
10604 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
10609 echo "configure: failed program was" >&5
10612 rm -f conftest.o conftest.s
10615 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
10616 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
10617 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
10619 cat >>confdefs.h
<<\_ACEOF
10620 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
10625 fi # unaligned pcrel relocs
10627 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
10628 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
10629 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 gcc_cv_as_sparc_offsetable_lo10
=no
10633 if test x
$gcc_cv_as != x
; then
10635 or %g1, %lo(ab) + 12, %g1
10636 or %g1, %lo(ab + 12), %g1' > conftest.s
10637 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }
10644 if test x
$gcc_cv_objdump != x \
10645 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
10646 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
10647 gcc_cv_as_offsetable_lo10
=yes
10650 echo "configure: failed program was" >&5
10653 rm -f conftest.o conftest.s
10656 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
10657 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
10658 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
10660 cat >>confdefs.h
<<\_ACEOF
10661 #define HAVE_AS_OFFSETABLE_LO10 1
10667 i
[34567]86-*-* | x86_64-
*-*)
10668 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
10669 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
10670 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 gcc_cv_as_ix86_filds_fists
=no
10674 if test $in_tree_gas = yes; then
10675 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10676 then gcc_cv_as_ix86_filds_fists
=yes
10678 elif test x
$gcc_cv_as != x
; then
10679 echo 'filds mem; fists mem' > conftest.s
10680 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }
10687 gcc_cv_as_ix86_filds_fists
=yes
10689 echo "configure: failed program was" >&5
10692 rm -f conftest.o conftest.s
10695 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
10696 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
10697 if test $gcc_cv_as_ix86_filds_fists = yes; then
10699 cat >>confdefs.h
<<\_ACEOF
10700 #define HAVE_GAS_FILDS_FISTS 1
10705 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
10706 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
10707 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 gcc_cv_as_ix86_cmov_sun_syntax
=no
10711 if test x
$gcc_cv_as != x
; then
10712 echo 'cmovl.l %edx, %eax' > conftest.s
10713 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }
10720 gcc_cv_as_ix86_cmov_sun_syntax
=yes
10722 echo "configure: failed program was" >&5
10725 rm -f conftest.o conftest.s
10728 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
10729 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
10730 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
10732 cat >>confdefs.h
<<\_ACEOF
10733 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
10738 # This one is used unconditionally by i386.[ch]; it is to be defined
10739 # to 1 if the feature is present, 0 otherwise.
10740 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
10741 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
10742 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 gcc_cv_as_ix86_gotoff_in_data
=no
10746 if test $in_tree_gas = yes; then
10747 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10748 then gcc_cv_as_ix86_gotoff_in_data
=yes
10750 elif test x
$gcc_cv_as != x
; then
10755 .long .L0@GOTOFF' > conftest.s
10756 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758 (eval $ac_try) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); }; }
10763 gcc_cv_as_ix86_gotoff_in_data
=yes
10765 echo "configure: failed program was" >&5
10768 rm -f conftest.o conftest.s
10771 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
10772 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
10775 cat >>confdefs.h
<<_ACEOF
10776 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
10782 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
10783 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
10784 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
10788 if test $in_tree_gas = yes; then
10789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10790 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10792 elif test x
$gcc_cv_as != x
; then
10794 addl r15 = @ltoffx(x#), gp
10796 ld8.mov r16 = [r15], x#' > conftest.s
10797 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; }
10804 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
10806 echo "configure: failed program was" >&5
10809 rm -f conftest.o conftest.s
10812 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
10813 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
10814 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
10816 cat >>confdefs.h
<<\_ACEOF
10817 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
10826 *-*-aix) conftest_s
=' .csect .textPR';;
10827 *) conftest_s
=' .text';;
10829 conftest_s
="$conftest_s
10832 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
10833 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
10834 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 gcc_cv_as_powerpc_mfcrf
=no
10838 if test $in_tree_gas = yes; then
10839 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10840 then gcc_cv_as_powerpc_mfcrf
=yes
10842 elif test x
$gcc_cv_as != x
; then
10843 echo "$conftest_s" > conftest.s
10844 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }
10851 gcc_cv_as_powerpc_mfcrf
=yes
10853 echo "configure: failed program was" >&5
10856 rm -f conftest.o conftest.s
10859 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
10860 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
10861 if test $gcc_cv_as_powerpc_mfcrf = yes; then
10863 cat >>confdefs.h
<<\_ACEOF
10864 #define HAVE_AS_MFCRF 1
10871 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10872 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10873 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 gcc_cv_as_mips_explicit_relocs
=no
10877 if test $in_tree_gas = yes; then
10878 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
10879 then gcc_cv_as_mips_explicit_relocs
=yes
10881 elif test x
$gcc_cv_as != x
; then
10882 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
10883 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }
10890 gcc_cv_as_mips_explicit_relocs
=yes
10892 echo "configure: failed program was" >&5
10895 rm -f conftest.o conftest.s
10898 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
10899 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
10900 if test $gcc_cv_as_mips_explicit_relocs = yes; then
10901 if test x
$target_cpu_default = x
10902 then target_cpu_default
=MASK_EXPLICIT_RELOCS
10903 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
10909 # ??? Not all targets support dwarf2 debug_line, even within a version
10910 # of gas. Moreover, we need to emit a valid instruction to trigger any
10911 # info to the output file. So, as supported targets are added to gas 2.11,
10912 # add some instruction here to (also) show we expect this might work.
10913 # ??? Once 2.11 is released, probably need to add first known working
10914 # version to the per-target configury.
10916 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
10917 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
10918 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
10928 if test x
"$insn" != x
; then
10930 .file 1 \"conftest.s\"
10933 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
10934 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
10935 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 gcc_cv_as_dwarf2_debug_line
=no
10939 if test $in_tree_gas = yes; then
10940 if test $in_tree_gas_is_elf = yes \
10941 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10942 then gcc_cv_as_dwarf2_debug_line
=yes
10944 elif test x
$gcc_cv_as != x
; then
10945 echo "$conftest_s" > conftest.s
10946 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }
10953 # ??? This fails with non-gnu grep. Maybe use objdump?
10954 if grep debug_line conftest.o
> /dev
/null
2>&1; then
10955 gcc_cv_as_dwarf2_debug_line
=yes
10958 echo "configure: failed program was" >&5
10961 rm -f conftest.o conftest.s
10964 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
10965 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
10968 # The .debug_line file table must be in the exact order that
10969 # we specified the files, since these indices are also used
10970 # by DW_AT_decl_file. Approximate this test by testing if
10971 # the assembler bitches if the same index is assigned twice.
10972 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
10973 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
10974 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 gcc_cv_as_dwarf2_file_buggy
=no
10978 if test x
$gcc_cv_as != x
; then
10979 echo ' .file 1 "foo.s"
10980 .file 1 "bar.s"' > conftest.s
10981 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }
10988 gcc_cv_as_dwarf2_file_buggy
=yes
10990 echo "configure: failed program was" >&5
10993 rm -f conftest.o conftest.s
10996 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
10997 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11000 if test $gcc_cv_as_dwarf2_debug_line = yes \
11001 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11003 cat >>confdefs.h
<<\_ACEOF
11004 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11009 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11010 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11011 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 gcc_cv_as_gdwarf2_flag
=no
11015 if test $in_tree_gas = yes; then
11016 if test $in_tree_gas_is_elf = yes \
11017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11018 then gcc_cv_as_gdwarf2_flag
=yes
11020 elif test x
$gcc_cv_as != x
; then
11021 echo "$insn" > conftest.s
11022 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }
11029 gcc_cv_as_gdwarf2_flag
=yes
11031 echo "configure: failed program was" >&5
11034 rm -f conftest.o conftest.s
11037 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11038 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11039 if test $gcc_cv_as_gdwarf2_flag = yes; then
11041 cat >>confdefs.h
<<\_ACEOF
11042 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11047 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11048 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11049 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 gcc_cv_as_gstabs_flag
=no
11053 if test $in_tree_gas = yes; then
11054 if test $in_tree_gas_is_elf = yes \
11055 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11056 then gcc_cv_as_gstabs_flag
=yes
11058 elif test x
$gcc_cv_as != x
; then
11059 echo "$insn" > conftest.s
11060 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }
11067 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11068 # and warns about it, but still exits successfully. So check for
11070 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }
11077 else gcc_cv_as_gstabs_flag
=yes
11080 echo "configure: failed program was" >&5
11083 rm -f conftest.o conftest.s
11086 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11087 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11088 if test $gcc_cv_as_gstabs_flag = yes; then
11090 cat >>confdefs.h
<<\_ACEOF
11091 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11097 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11098 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11099 gcc_cv_ld_ro_rw_mix
=unknown
11100 if test $in_tree_ld = yes ; then
11101 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 \
11102 && test $in_tree_ld_is_elf = yes; then
11103 gcc_cv_ld_ro_rw_mix
=read-write
11105 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11106 echo '.section myfoosect, "a"' > conftest1.s
11107 echo '.section myfoosect, "aw"' > conftest2.s
11108 echo '.byte 1' >> conftest2.s
11109 echo '.section myfoosect, "a"' > conftest3.s
11110 echo '.byte 0' >> conftest3.s
11111 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11112 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11113 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11114 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11115 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11116 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11117 | sed -e '/myfoosect/!d' -e N`
11118 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11119 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11120 gcc_cv_ld_ro_rw_mix
=read-only
11122 gcc_cv_ld_ro_rw_mix
=read-write
11126 rm -f conftest.
* conftest
[123].
*
11128 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11130 cat >>confdefs.h
<<\_ACEOF
11131 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11135 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11136 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11138 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11139 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11140 gcc_cv_ld_eh_frame_hdr
=no
11141 if test $in_tree_ld = yes ; then
11142 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 \
11143 && test $in_tree_ld_is_elf = yes; then
11144 gcc_cv_ld_eh_frame_hdr
=yes
11146 elif test x
$gcc_cv_ld != x
; then
11147 # Check if linker supports --eh-frame-hdr option
11148 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11149 gcc_cv_ld_eh_frame_hdr
=yes
11152 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11154 cat >>confdefs.h
<<\_ACEOF
11155 #define HAVE_LD_EH_FRAME_HDR 1
11159 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11160 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11162 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11163 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11165 if test $in_tree_ld = yes ; then
11166 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 \
11167 && test $in_tree_ld_is_elf = yes; then
11170 elif test x
$gcc_cv_ld != x
; then
11171 # Check if linker supports -pie option
11172 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11176 if test x
"$gcc_cv_ld_pie" = xyes
; then
11178 cat >>confdefs.h
<<\_ACEOF
11179 #define HAVE_LD_PIE 1
11183 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11184 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11186 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11187 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11189 cat >>confdefs.h
<<_ACEOF
11190 #define PREFIX_INCLUDE_DIR "$prefix/include"
11195 # Figure out what language subdirectories are present.
11196 # Look if the user specified --enable-languages="..."; if not, use
11197 # the environment variable $LANGUAGES if defined. $LANGUAGES might
11198 # go away some day.
11199 # NB: embedded tabs in this IF block -- do not untabify
11200 if test x
"${enable_languages+set}" != xset
; then
11201 if test x
"${LANGUAGES+set}" = xset
; then
11202 enable_languages
="${LANGUAGES}"
11203 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
11204 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
11207 enable_languages
=all
11210 if test x
"${enable_languages}" = x \
11211 ||
test x
"${enable_languages}" = xyes
;
11213 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
11214 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
11215 { (exit 1); exit 1; }; }
11218 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
11220 # First scan to see if an enabled language requires some other language.
11221 # We assume that a given config-lang.in will list all the language
11222 # front ends it requires, even if some are required indirectly.
11223 for lang
in ${srcdir}/*/config-lang.
in
11226 # The odd quoting in the next line works around
11227 # an apparent bug in bash 1.12 on linux.
11228 ${srcdir}/[*]/config-lang.
in)
11231 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11232 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
11233 for other
in $this_lang_requires
11235 case ,${enable_languages}, in
11241 enable_languages
="$enable_languages,$other"
11249 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
11252 for lang
in ${srcdir}/*/config-lang.
in
11255 # The odd quoting in the next line works around
11256 # an apparent bug in bash 1.12 on linux.
11257 ${srcdir}/[*]/config-lang.
in) ;;
11259 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
11260 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
11261 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
11262 if test "x$lang_alias" = x
11264 echo "$lang doesn't set \$language." 1>&2
11267 case ${build_by_default},${enable_languages}, in
11268 *,$lang_alias,*) add_this_lang
=yes ;;
11269 no
,*) add_this_lang
=no
;;
11270 *,all
,*) add_this_lang
=yes ;;
11271 *) add_this_lang
=no
;;
11273 found_languages
="${found_languages} ${lang_alias}"
11274 if test x
"${add_this_lang}" = xyes
; then
11276 ${srcdir}/ada
/config-lang.
in)
11277 if test x
$have_gnat = xyes
; then
11278 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11282 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
11291 for expected_language
in ${expected_languages} ..
11293 if test "${expected_language}" != ..
; then
11294 missing_language
="${expected_language}"
11295 if test "${expected_language}" = "c" \
11296 ||
test "${expected_language}" = "all"; then
11299 for found_language
in ${found_languages} ..
11301 if test "${found_language}" != ..
; then
11302 if test "${expected_language}" = "${found_language}"; then
11307 if test "x${missing_language}" != x
; then
11308 missing_languages
="${missing_languages} ${missing_language}"
11313 if test "x$missing_languages" != x
; then
11314 { { echo "$as_me:$LINENO: error:
11315 The following requested languages were not found:${missing_languages}
11316 The following languages were available: c${found_languages}" >&5
11317 echo "$as_me: error:
11318 The following requested languages were not found:${missing_languages}
11319 The following languages were available: c${found_languages}" >&2;}
11320 { (exit 1); exit 1; }; }
11323 # Make gthr-default.h if we have a thread file.
11325 if test $thread_file != single
; then
11326 rm -f gthr-default.h
11327 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
11328 gthread_flags
=-DHAVE_GTHR_DEFAULT
11332 # Find out what GC implementation we want, or may, use.
11334 # Check whether --with-gc or --without-gc was given.
11335 if test "${with_gc+set}" = set; then
11342 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11343 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11344 { (exit 1); exit 1; }; }
11351 echo "Using $GGC for garbage collection."
11353 # Use the system's zlib library.
11355 zlibinc
="-I\$(srcdir)/../zlib"
11357 # Check whether --with-system-zlib or --without-system-zlib was given.
11358 if test "${with_system_zlib+set}" = set; then
11359 withval
="$with_system_zlib"
11368 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11369 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11370 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11371 if test "${enable_maintainer_mode+set}" = set; then
11372 enableval
="$enable_maintainer_mode"
11373 maintainer_mode
=$enableval
11378 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11379 echo "${ECHO_T}$maintainer_mode" >&6
11381 if test "$maintainer_mode" = "yes"; then
11387 # Make empty files to contain the specs and options for each language.
11388 # Then add #include lines to for a compiler that has specs and/or options.
11393 for subdir
in .
$subdirs
11395 if test -f $srcdir/$subdir/lang.opt
; then
11396 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11398 if test -f $srcdir/$subdir/lang-specs.h
; then
11399 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11401 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11402 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11406 # These (without "all_") are set in each config-lang.in.
11407 # `language' must be a single word so is spelled singularly.
11409 all_boot_languages
=
11412 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
11413 # List of language makefile fragments.
11414 all_lang_makefrags
=
11415 # List of language subdirectory makefiles. Deprecated.
11416 all_lang_makefiles
=
11417 # Files for gengtype
11418 all_gtfiles
="$target_gtfiles"
11419 # Files for gengtype with language
11420 all_gtfiles_files_langs
=
11421 all_gtfiles_files_files
=
11423 # Add the language fragments.
11424 # Languages are added via two mechanisms. Some information must be
11425 # recorded in makefile variables, these are defined in config-lang.in.
11426 # We accumulate them and plug them into the main Makefile.
11427 # The other mechanism is a set of hooks for each of the main targets
11428 # like `clean', `install', etc.
11430 language_hooks
="Make-hooks"
11440 .
${srcdir}/$s/config-lang.
in
11441 if test "x$language" = x
11443 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11446 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11447 if test -f ${srcdir}/$s/Makefile.
in
11448 then all_lang_makefiles
="$s/Makefile"
11450 all_languages
="$all_languages $language"
11451 if test "x$boot_language" = xyes
11453 all_boot_languages
="$all_boot_languages $language"
11455 all_compilers
="$all_compilers $compilers"
11456 all_stagestuff
="$all_stagestuff $stagestuff"
11457 all_outputs
="$all_outputs $outputs"
11458 all_gtfiles
="$all_gtfiles $gtfiles"
11461 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11462 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11466 # Pick up gtfiles for c
11469 .
${srcdir}/c-config-lang.
in
11470 all_gtfiles
="$all_gtfiles $gtfiles"
11473 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
11474 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
11478 for language
in $all_languages
11480 check_languages
="$check_languages check-$language"
11483 # We link each language in with a set of hooks, reached indirectly via
11488 target_list
="all.build all.cross start.encap rest.encap tags \
11489 install-normal install-common install-man \
11490 uninstall info man srcextra srcman srcinfo \
11491 mostlyclean clean distclean maintainer-clean \
11492 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
11493 for t
in $target_list
11496 for lang
in $all_languages
11500 echo "lang.$t: $x" >> Make-hooks
11505 echo "dir ." > .gdbinit
11506 echo "dir ${srcdir}" >> .gdbinit
11507 if test x
$gdb_needs_out_file_path = xyes
11509 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
11511 if test "x$subdirs" != x
; then
11514 echo "dir ${srcdir}/$s" >> .gdbinit
11517 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
11519 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
11520 # absolute path for gcc_tooldir based on inserting the number of up-directory
11521 # movements required to get from $(exec_prefix) to $(prefix) into the basic
11522 # $(libsubdir)/@(unlibsubdir) based path.
11523 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
11524 # make and thus we'd get different behavior depending on where we built the
11526 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
11527 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
11529 # An explanation of the sed strings:
11530 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
11531 # -e 's|/$||' match a trailing forward slash and eliminates it
11532 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
11533 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
11535 # (*) Note this pattern overwrites the first character of the string
11536 # with a forward slash if one is not already present. This is not a
11537 # problem because the exact names of the sub-directories concerned is
11538 # unimportant, just the number of them matters.
11540 # The practical upshot of these patterns is like this:
11542 # prefix exec_prefix result
11543 # ------ ----------- ------
11544 # /foo /foo/bar ../
11545 # /foo/ /foo/bar ../
11546 # /foo /foo/bar/ ../
11547 # /foo/ /foo/bar/ ../
11548 # /foo /foo/bar/ugg ../../
11551 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
11556 # Find a directory in which to install a shared libgcc.
11558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
11559 if test "${enable_version_specific_runtime_libs+set}" = set; then
11560 enableval
="$enable_version_specific_runtime_libs"
11565 # Check whether --with-slibdir or --without-slibdir was given.
11566 if test "${with_slibdir+set}" = set; then
11567 withval
="$with_slibdir"
11568 slibdir
="$with_slibdir"
11570 if test "${enable_version_specific_runtime_libs+set}" = set; then
11571 slibdir
='$(libsubdir)'
11572 elif test "$host" != "$target"; then
11573 slibdir
='$(build_tooldir)/lib'
11575 slibdir
='$(libdir)'
11580 objdir
=`${PWDCMD-pwd}`
11583 # Substitute configuration variables
11652 # If it doesn't already exist, create document directory
11653 echo "checking for the document directory." 1>&2
11654 if test -d doc
; then
11661 if test x
${build} = x
${host} ; then
11662 if test x
${host} = x
${target} ; then
11663 echo "Links are now set up to build a native compiler for ${target}." 1>&2
11665 echo "Links are now set up to build a cross-compiler" 1>&2
11666 echo " from ${host} to ${target}." 1>&2
11669 if test x
${host} = x
${target} ; then
11670 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
11671 echo " for ${target}." 1>&2
11673 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
11674 echo " from ${host} to ${target}." 1>&2
11678 # Configure the subdirectories
11679 # AC_CONFIG_SUBDIRS($subdirs)
11681 # Create the Makefile
11682 # and configure language subdirectories
11683 ac_config_files
="$ac_config_files $all_outputs"
11686 ac_config_commands
="$ac_config_commands default"
11688 cat >confcache
<<\_ACEOF
11689 # This file is a shell script that caches the results of configure
11690 # tests run on this system so they can be shared between configure
11691 # scripts and configure runs, see configure's option --config-cache.
11692 # It is not useful on other systems. If it contains results you don't
11693 # want to keep, you may remove or edit it.
11695 # config.status only pays attention to the cache file if you give it
11696 # the --recheck option to rerun configure.
11698 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11699 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11700 # following values.
11704 # The following way of writing the cache mishandles newlines in values,
11705 # but we know of no workaround that is simple, portable, and efficient.
11706 # So, don't put newlines in cache variables' values.
11707 # Ultrix sh set writes to stderr and can't be redirected directly,
11708 # and sets the high bit in the cache file unless we assign to the vars.
11711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11713 # `set' does not quote correctly, so add quotes (double-quote
11714 # substitution turns \\\\ into \\, and sed turns \\ into \).
11717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11720 # `set' quotes correctly as required by POSIX, so do not add quotes.
11722 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11729 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11731 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11733 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
11734 if test -w $cache_file; then
11735 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11736 cat confcache
>$cache_file
11738 echo "not updating unwritable cache $cache_file"
11743 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11744 # Let make expand exec_prefix.
11745 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11747 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11748 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11749 # trailing colons and then remove the whole line if VPATH becomes empty
11750 # (actually we leave an empty line to preserve line numbers).
11751 if test "x$srcdir" = x.
; then
11752 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
11753 s/:*\$(srcdir):*/:/;
11754 s/:*\${srcdir}:*/:/;
11756 s/^\([^=]*=[ ]*\):*/\1/;
11762 DEFS
=-DHAVE_CONFIG_H
11766 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11767 # 1. Remove the extension, and $U if already installed.
11768 ac_i
=`echo "$ac_i" |
11769 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11771 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
11772 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
11774 LIBOBJS
=$ac_libobjs
11776 LTLIBOBJS
=$ac_ltlibobjs
11780 : ${CONFIG_STATUS=./config.status}
11781 ac_clean_files_save
=$ac_clean_files
11782 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11783 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11784 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11785 cat >$CONFIG_STATUS <<_ACEOF
11787 # Generated by $as_me.
11788 # Run this file to recreate the current configuration.
11789 # Compiler output produced by configure, useful for debugging
11790 # configure, is in config.log if it exists.
11793 ac_cs_recheck=false
11795 SHELL=\${CONFIG_SHELL-$SHELL}
11798 cat >>$CONFIG_STATUS <<\_ACEOF
11799 ## --------------------- ##
11800 ## M4sh Initialization. ##
11801 ## --------------------- ##
11803 # Be Bourne compatible
11804 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
11807 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11808 # is contrary to our usage. Disable this feature.
11809 alias -g '${1+"$@"}'='"$@"'
11810 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
11814 # Support unset when possible.
11815 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
11822 # Work around bugs in pre-3.0 UWIN ksh.
11823 $as_unset ENV MAIL MAILPATH
11830 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11831 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11832 LC_TELEPHONE LC_TIME
11834 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11835 eval $as_var=C
; export $as_var
11841 # Required to use basename.
11842 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11848 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
11849 as_basename
=basename
11855 # Name of the executable.
11856 as_me
=`$as_basename "$0" ||
11857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11858 X"$0" : 'X\(//\)$' \| \
11859 X"$0" : 'X\(/\)$' \| \
11860 . : '\(.\)' 2>/dev/null ||
11862 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11863 /^X\/\(\/\/\)$/{ s//\1/; q; }
11864 /^X\/\(\/\).*/{ s//\1/; q; }
11868 # PATH needs CR, and LINENO needs CR and PATH.
11869 # Avoid depending upon Character Ranges.
11870 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11871 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11872 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11873 as_cr_digits
='0123456789'
11874 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11876 # The user is always right.
11877 if test "${PATH_SEPARATOR+set}" != set; then
11878 echo "#! /bin/sh" >conf$$.sh
11879 echo "exit 0" >>conf$$.sh
11881 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
11890 as_lineno_1
=$LINENO
11891 as_lineno_2
=$LINENO
11892 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
11893 test "x$as_lineno_1" != "x$as_lineno_2" &&
11894 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
11895 # Find who we are. Look in the path if we contain no path at all
11898 *[\\/]* ) as_myself
=$0 ;;
11899 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11900 for as_dir
in $PATH
11903 test -z "$as_dir" && as_dir
=.
11904 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
11909 # We did not find ourselves, most probably we were run as `sh COMMAND'
11910 # in which case we are not to be found in the path.
11911 if test "x$as_myself" = x
; then
11914 if test ! -f "$as_myself"; then
11915 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11917 { (exit 1); exit 1; }; }
11919 case $CONFIG_SHELL in
11921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11922 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
11925 test -z "$as_dir" && as_dir
=.
11926 for as_base
in sh bash ksh sh5
; do
11929 if ("$as_dir/$as_base" -c '
11930 as_lineno_1=$LINENO
11931 as_lineno_2=$LINENO
11932 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11933 test "x$as_lineno_1" != "x$as_lineno_2" &&
11934 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
11935 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
11936 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
11937 CONFIG_SHELL
=$as_dir/$as_base
11938 export CONFIG_SHELL
11939 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11947 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11948 # uniformly replaced by the line number. The first 'sed' inserts a
11949 # line-number line before each line; the second 'sed' does the real
11950 # work. The second script uses 'N' to pair each line-number line
11951 # with the numbered line, and appends trailing '-' during
11952 # substitution so that $LINENO is not a special case at line end.
11953 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11954 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11955 sed '=' <$as_myself |
11960 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11963 s,^['$as_cr_digits']*\n,,
11964 ' >$as_me.lineno
&&
11965 chmod +x
$as_me.lineno ||
11966 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11968 { (exit 1); exit 1; }; }
11970 # Don't try to exec as it changes $[0], causing all sort of problems
11971 # (the dirname of $[0] is not the place where we might find the
11972 # original and so on. Autoconf is especially sensible to this).
11974 # Exit status is that of the last command.
11979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11980 *c
*,-n*) ECHO_N
= ECHO_C
='
11982 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
11983 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
11986 if expr a
: '\(a\)' >/dev
/null
2>&1; then
11992 rm -f conf$$ conf$$.exe conf$$.
file
11994 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11995 # We could just check for DJGPP; but this test a) works b) is more generic
11996 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11997 if test -f conf$$.exe
; then
11998 # Don't use ln at all; we don't have any links
12003 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12008 rm -f conf$$ conf$$.exe conf$$.
file
12010 if mkdir
-p .
2>/dev
/null
; then
12016 as_executable_p
="test -f"
12018 # Sed expression to map a string onto a valid CPP name.
12019 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12021 # Sed expression to map a string onto a valid variable name.
12022 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12026 # We need space, tab and new line, in precisely that order.
12036 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12037 # report actual input values of CONFIG_FILES etc. instead of their
12038 # values after options handling. Logging --version etc. is OK.
12042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12043 ## Running $as_me. ##
12048 This file was extended by $as_me, which was
12049 generated by GNU Autoconf 2.57. Invocation command line was
12051 CONFIG_FILES = $CONFIG_FILES
12052 CONFIG_HEADERS = $CONFIG_HEADERS
12053 CONFIG_LINKS = $CONFIG_LINKS
12054 CONFIG_COMMANDS = $CONFIG_COMMANDS
12058 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12062 # Files that config.status was made for.
12063 if test -n "$ac_config_files"; then
12064 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12067 if test -n "$ac_config_headers"; then
12068 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12071 if test -n "$ac_config_links"; then
12072 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12075 if test -n "$ac_config_commands"; then
12076 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12079 cat >>$CONFIG_STATUS <<\_ACEOF
12082 \`$as_me' instantiates files from templates according to the
12083 current configuration.
12085 Usage: $0 [OPTIONS] [FILE]...
12087 -h, --help print this help, then exit
12088 -V, --version print version number, then exit
12089 -q, --quiet do not print progress messages
12090 -d, --debug don't remove temporary files
12091 --recheck update $as_me by reconfiguring in the same conditions
12092 --file=FILE[:TEMPLATE]
12093 instantiate the configuration file FILE
12094 --header=FILE[:TEMPLATE]
12095 instantiate the configuration header FILE
12097 Configuration files:
12100 Configuration headers:
12103 Configuration commands:
12106 Report bugs to <bug-autoconf@gnu.org>."
12109 cat >>$CONFIG_STATUS <<_ACEOF
12112 configured by $0, generated by GNU Autoconf 2.57,
12113 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12115 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12116 Free Software Foundation, Inc.
12117 This config.status script is free software; the Free Software Foundation
12118 gives unlimited permission to copy, distribute and modify it."
12122 cat >>$CONFIG_STATUS <<\_ACEOF
12123 # If no file are specified by the user, then we need to provide default
12124 # value. By we need to know if files were specified by the user.
12130 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12131 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12139 *) # This is not an option, so the user has probably given explicit
12142 ac_need_defaults
=false
;;
12146 # Handling of the options.
12148 cat >>$CONFIG_STATUS <<\_ACEOF
12149 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12151 --version |
--vers* |
-V )
12152 echo "$ac_cs_version"; exit 0 ;;
12154 # Conflict between --help and --header
12155 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12156 Try \`$0 --help' for more information." >&5
12157 echo "$as_me: error: ambiguous option: $1
12158 Try \`$0 --help' for more information." >&2;}
12159 { (exit 1); exit 1; }; };;
12160 --help |
--hel |
-h )
12161 echo "$ac_cs_usage"; exit 0 ;;
12162 --debug |
--d* |
-d )
12164 --file |
--fil |
--fi |
--f )
12166 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12167 ac_need_defaults
=false
;;
12168 --header |
--heade |
--head |
--hea )
12170 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12171 ac_need_defaults
=false
;;
12172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12173 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12176 # This is an error.
12177 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12178 Try \`$0 --help' for more information." >&5
12179 echo "$as_me: error: unrecognized option: $1
12180 Try \`$0 --help' for more information." >&2;}
12181 { (exit 1); exit 1; }; } ;;
12183 *) ac_config_targets
="$ac_config_targets $1" ;;
12189 ac_configure_extra_args
=
12191 if $ac_cs_silent; then
12193 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12197 cat >>$CONFIG_STATUS <<_ACEOF
12198 if \$ac_cs_recheck; then
12199 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12200 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12205 cat >>$CONFIG_STATUS <<_ACEOF
12207 # INIT-COMMANDS section.
12211 symbolic_link='$symbolic_link'
12218 cat >>$CONFIG_STATUS <<\_ACEOF
12219 for ac_config_target
in $ac_config_targets
12221 case "$ac_config_target" in
12222 # Handling of arguments.
12223 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12224 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12225 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12226 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12227 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12228 { (exit 1); exit 1; }; };;
12232 # If the user did not use the arguments to specify the items to instantiate,
12233 # then the envvar interface is used. Set only those that are not.
12234 # We use the long form for the default assignment because of an extremely
12235 # bizarre bug on SunOS 4.1.3.
12236 if $ac_need_defaults; then
12237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12242 # Have a temporary directory for convenience. Make it in the build tree
12243 # simply because there is no reason to put it here, and in addition,
12244 # creating and moving files from /tmp can sometimes cause problems.
12245 # Create a temporary directory, and hook for its removal unless debugging.
12248 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12249 trap '{ (exit 1); exit 1; }' 1 2 13 15
12252 # Create a (secure) tmp directory for tmp files.
12255 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12256 test -n "$tmp" && test -d "$tmp"
12259 tmp
=.
/confstat$$
-$RANDOM
12260 (umask 077 && mkdir
$tmp)
12263 echo "$me: cannot create a temporary directory in ." >&2
12264 { (exit 1); exit 1; }
12269 cat >>$CONFIG_STATUS <<_ACEOF
12272 # CONFIG_FILES section.
12275 # No need to generate the scripts if there are no CONFIG_FILES.
12276 # This happens for instance when ./config.status config.h
12277 if test -n "\$CONFIG_FILES"; then
12278 # Protect against being on the right side of a sed subst in config.status.
12279 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12280 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12281 s,@SHELL@,$SHELL,;t t
12282 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12283 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12284 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12285 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12286 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12287 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12288 s,@exec_prefix@,$exec_prefix,;t t
12289 s,@prefix@,$prefix,;t t
12290 s,@program_transform_name@,$program_transform_name,;t t
12291 s,@bindir@,$bindir,;t t
12292 s,@sbindir@,$sbindir,;t t
12293 s,@libexecdir@,$libexecdir,;t t
12294 s,@datadir@,$datadir,;t t
12295 s,@sysconfdir@,$sysconfdir,;t t
12296 s,@sharedstatedir@,$sharedstatedir,;t t
12297 s,@localstatedir@,$localstatedir,;t t
12298 s,@libdir@,$libdir,;t t
12299 s,@includedir@,$includedir,;t t
12300 s,@oldincludedir@,$oldincludedir,;t t
12301 s,@infodir@,$infodir,;t t
12302 s,@mandir@,$mandir,;t t
12303 s,@build_alias@,$build_alias,;t t
12304 s,@host_alias@,$host_alias,;t t
12305 s,@target_alias@,$target_alias,;t t
12306 s,@DEFS@,$DEFS,;t t
12307 s,@ECHO_C@,$ECHO_C,;t t
12308 s,@ECHO_N@,$ECHO_N,;t t
12309 s,@ECHO_T@,$ECHO_T,;t t
12310 s,@LIBS@,$LIBS,;t t
12311 s,@build@,$build,;t t
12312 s,@build_cpu@,$build_cpu,;t t
12313 s,@build_vendor@,$build_vendor,;t t
12314 s,@build_os@,$build_os,;t t
12315 s,@host@,$host,;t t
12316 s,@host_cpu@,$host_cpu,;t t
12317 s,@host_vendor@,$host_vendor,;t t
12318 s,@host_os@,$host_os,;t t
12319 s,@target@,$target,;t t
12320 s,@target_cpu@,$target_cpu,;t t
12321 s,@target_vendor@,$target_vendor,;t t
12322 s,@target_os@,$target_os,;t t
12323 s,@build_subdir@,$build_subdir,;t t
12324 s,@host_subdir@,$host_subdir,;t t
12325 s,@target_subdir@,$target_subdir,;t t
12326 s,@GENINSRC@,$GENINSRC,;t t
12328 s,@CFLAGS@,$CFLAGS,;t t
12329 s,@LDFLAGS@,$LDFLAGS,;t t
12330 s,@CPPFLAGS@,$CPPFLAGS,;t t
12331 s,@ac_ct_CC@,$ac_ct_CC,;t t
12332 s,@EXEEXT@,$EXEEXT,;t t
12333 s,@OBJEXT@,$OBJEXT,;t t
12334 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12335 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12337 s,@GNATBIND@,$GNATBIND,;t t
12338 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
12339 s,@strict1_warn@,$strict1_warn,;t t
12340 s,@warn_cflags@,$warn_cflags,;t t
12341 s,@WERROR@,$WERROR,;t t
12342 s,@nocommon_flag@,$nocommon_flag,;t t
12343 s,@EGREP@,$EGREP,;t t
12344 s,@valgrind_path@,$valgrind_path,;t t
12345 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12346 s,@valgrind_command@,$valgrind_command,;t t
12347 s,@coverage_flags@,$coverage_flags,;t t
12348 s,@enable_multilib@,$enable_multilib,;t t
12349 s,@enable_shared@,$enable_shared,;t t
12350 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12351 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12352 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12353 s,@onestep@,$onestep,;t t
12354 s,@SET_MAKE@,$SET_MAKE,;t t
12357 s,@LN_S@,$LN_S,;t t
12358 s,@RANLIB@,$RANLIB,;t t
12359 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12360 s,@INSTALL@,$INSTALL,;t t
12361 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12362 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12363 s,@make_compare_target@,$make_compare_target,;t t
12364 s,@have_mktemp_command@,$have_mktemp_command,;t t
12365 s,@MAKEINFO@,$MAKEINFO,;t t
12366 s,@BUILD_INFO@,$BUILD_INFO,;t t
12367 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12368 s,@FLEX@,$FLEX,;t t
12369 s,@BISON@,$BISON,;t t
12370 s,@stage1_cflags@,$stage1_cflags,;t t
12371 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12372 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12373 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12374 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12375 s,@LIBICONV@,$LIBICONV,;t t
12376 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12377 s,@manext@,$manext,;t t
12378 s,@objext@,$objext,;t t
12379 s,@extra_modes_file@,$extra_modes_file,;t t
12380 s,@FORBUILD@,$FORBUILD,;t t
12381 s,@PACKAGE@,$PACKAGE,;t t
12382 s,@VERSION@,$VERSION,;t t
12383 s,@USE_NLS@,$USE_NLS,;t t
12384 s,@LIBINTL@,$LIBINTL,;t t
12385 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12386 s,@INCINTL@,$INCINTL,;t t
12387 s,@XGETTEXT@,$XGETTEXT,;t t
12388 s,@GMSGFMT@,$GMSGFMT,;t t
12389 s,@POSUB@,$POSUB,;t t
12390 s,@CATALOGS@,$CATALOGS,;t t
12391 s,@CROSS@,$CROSS,;t t
12393 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12394 s,@inhibit_libc@,$inhibit_libc,;t t
12395 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12396 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12397 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12398 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12399 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12400 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12401 s,@libgcc_visibility@,$libgcc_visibility,;t t
12402 s,@gthread_flags@,$gthread_flags,;t t
12404 s,@zlibdir@,$zlibdir,;t t
12405 s,@zlibinc@,$zlibinc,;t t
12406 s,@MAINT@,$MAINT,;t t
12407 s,@gcc_tooldir@,$gcc_tooldir,;t t
12408 s,@dollar@,$dollar,;t t
12409 s,@slibdir@,$slibdir,;t t
12410 s,@objdir@,$objdir,;t t
12411 s,@subdirs@,$subdirs,;t t
12412 s,@srcdir@,$srcdir,;t t
12413 s,@all_boot_languages@,$all_boot_languages,;t t
12414 s,@all_compilers@,$all_compilers,;t t
12415 s,@all_gtfiles@,$all_gtfiles,;t t
12416 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12417 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12418 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12419 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12420 s,@all_languages@,$all_languages,;t t
12421 s,@all_stagestuff@,$all_stagestuff,;t t
12422 s,@build_exeext@,$build_exeext,;t t
12423 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12424 s,@build_xm_file_list@,$build_xm_file_list,;t t
12425 s,@build_xm_include_list@,$build_xm_include_list,;t t
12426 s,@build_xm_defines@,$build_xm_defines,;t t
12427 s,@check_languages@,$check_languages,;t t
12428 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12429 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12430 s,@cpp_install_dir@,$cpp_install_dir,;t t
12431 s,@xmake_file@,$xmake_file,;t t
12432 s,@tmake_file@,$tmake_file,;t t
12433 s,@extra_headers_list@,$extra_headers_list,;t t
12434 s,@extra_objs@,$extra_objs,;t t
12435 s,@extra_parts@,$extra_parts,;t t
12436 s,@extra_passes@,$extra_passes,;t t
12437 s,@extra_programs@,$extra_programs,;t t
12438 s,@float_h_file@,$float_h_file,;t t
12439 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12440 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12441 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12442 s,@gcc_version@,$gcc_version,;t t
12443 s,@gcc_version_full@,$gcc_version_full,;t t
12444 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
12445 s,@host_exeext@,$host_exeext,;t t
12446 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
12447 s,@host_xm_file_list@,$host_xm_file_list,;t t
12448 s,@host_xm_include_list@,$host_xm_include_list,;t t
12449 s,@host_xm_defines@,$host_xm_defines,;t t
12450 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
12451 s,@install@,$install,;t t
12452 s,@lang_opt_files@,$lang_opt_files,;t t
12453 s,@lang_specs_files@,$lang_specs_files,;t t
12454 s,@lang_tree_files@,$lang_tree_files,;t t
12455 s,@local_prefix@,$local_prefix,;t t
12456 s,@md_file@,$md_file,;t t
12457 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
12458 s,@out_file@,$out_file,;t t
12459 s,@out_object_file@,$out_object_file,;t t
12460 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
12461 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
12462 s,@symbolic_link@,$symbolic_link,;t t
12463 s,@thread_file@,$thread_file,;t t
12464 s,@tm_file_list@,$tm_file_list,;t t
12465 s,@tm_include_list@,$tm_include_list,;t t
12466 s,@tm_defines@,$tm_defines,;t t
12467 s,@tm_p_file_list@,$tm_p_file_list,;t t
12468 s,@tm_p_include_list@,$tm_p_include_list,;t t
12469 s,@xm_file_list@,$xm_file_list,;t t
12470 s,@xm_include_list@,$xm_include_list,;t t
12471 s,@xm_defines@,$xm_defines,;t t
12472 s,@target_noncanonical@,$target_noncanonical,;t t
12473 s,@c_target_objs@,$c_target_objs,;t t
12474 s,@cxx_target_objs@,$cxx_target_objs,;t t
12475 s,@target_cpu_default@,$target_cpu_default,;t t
12476 s,@LIBOBJS@,$LIBOBJS,;t t
12477 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12478 /@language_hooks@/r $language_hooks
12479 s,@language_hooks@,,;t t
12484 cat >>$CONFIG_STATUS <<\_ACEOF
12485 # Split the substitutions into bite-sized pieces for seds with
12486 # small command number limits, like on Digital OSF/1 and HP-UX.
12487 ac_max_sed_lines
=48
12488 ac_sed_frag
=1 # Number of current file.
12489 ac_beg
=1 # First line for current file.
12490 ac_end
=$ac_max_sed_lines # Line after last line for current file.
12493 while $ac_more_lines; do
12494 if test $ac_beg -gt 1; then
12495 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12497 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
12499 if test ! -s $tmp/subs.frag
; then
12500 ac_more_lines
=false
12502 # The purpose of the label and of the branching condition is to
12503 # speed up the sed processing (if there are no `@' at all, there
12504 # is no need to browse any of the substitutions).
12505 # These are the two extra sed commands mentioned above.
12507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
12508 if test -z "$ac_sed_cmds"; then
12509 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
12511 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12513 ac_sed_frag
=`expr $ac_sed_frag + 1`
12515 ac_end
=`expr $ac_end + $ac_max_sed_lines`
12518 if test -z "$ac_sed_cmds"; then
12521 fi # test -n "$CONFIG_FILES"
12524 cat >>$CONFIG_STATUS <<\_ACEOF
12525 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
12526 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12528 - |
*:- |
*:-:* ) # input from stdin
12530 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12531 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12532 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12533 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12534 * ) ac_file_in
=$ac_file.
in ;;
12537 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12538 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12540 X"$ac_file" : 'X\(//\)[^/]' \| \
12541 X"$ac_file" : 'X\(//\)$' \| \
12542 X"$ac_file" : 'X\(/\)' \| \
12543 . : '\(.\)' 2>/dev/null ||
12545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12546 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12547 /^X\(\/\/\)$/{ s//\1/; q; }
12548 /^X\(\/\).*/{ s//\1/; q; }
12550 { if $as_mkdir_p; then
12555 while test ! -d "$as_dir"; do
12556 as_dirs
="$as_dir $as_dirs"
12557 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12559 X"$as_dir" : 'X\(//\)[^/]' \| \
12560 X"$as_dir" : 'X\(//\)$' \| \
12561 X"$as_dir" : 'X\(/\)' \| \
12562 . : '\(.\)' 2>/dev/null ||
12564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12565 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12566 /^X\(\/\/\)$/{ s//\1/; q; }
12567 /^X\(\/\).*/{ s//\1/; q; }
12570 test ! -n "$as_dirs" || mkdir
$as_dirs
12571 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12573 { (exit 1); exit 1; }; }; }
12577 if test "$ac_dir" != .
; then
12578 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12579 # A "../" for each directory in $ac_dir_suffix.
12580 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12582 ac_dir_suffix
= ac_top_builddir
=
12586 .
) # No --srcdir option. We are building in place.
12588 if test -z "$ac_top_builddir"; then
12591 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12593 [\\/]* | ?
:[\\/]* ) # Absolute path.
12594 ac_srcdir
=$srcdir$ac_dir_suffix;
12595 ac_top_srcdir
=$srcdir ;;
12596 *) # Relative path.
12597 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12598 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12602 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12603 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12604 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12605 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12609 if test x
"$ac_file" != x-
; then
12610 { echo "$as_me:$LINENO: creating $ac_file" >&5
12611 echo "$as_me: creating $ac_file" >&6;}
12614 # Let's still pretend it is `configure' which instantiates (i.e., don't
12615 # use $as_me), people would be surprised to read:
12616 # /* config.h. Generated by config.status. */
12617 if test x
"$ac_file" = x-
; then
12620 configure_input
="$ac_file. "
12622 configure_input
=$configure_input"Generated from `echo $ac_file_in |
12623 sed 's,.*/,,'` by configure."
12625 # First look for the input files in the build tree, otherwise in the
12627 ac_file_inputs
=`IFS=:
12628 for f in $ac_file_in; do
12630 -) echo $tmp/stdin ;;
12632 # Absolute (can't be DOS-style, as IFS=:)
12633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12634 echo "$as_me: error: cannot find input file: $f" >&2;}
12635 { (exit 1); exit 1; }; }
12638 if test -f "$f"; then
12641 elif test -f "$srcdir/$f"; then
12646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12647 echo "$as_me: error: cannot find input file: $f" >&2;}
12648 { (exit 1); exit 1; }; }
12651 done` ||
{ (exit 1); exit 1; }
12653 cat >>$CONFIG_STATUS <<_ACEOF
12657 cat >>$CONFIG_STATUS <<\_ACEOF
12659 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12660 s
,@configure_input@
,$configure_input,;t t
12661 s
,@srcdir@
,$ac_srcdir,;t t
12662 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
12663 s
,@top_srcdir@
,$ac_top_srcdir,;t t
12664 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
12665 s
,@builddir@
,$ac_builddir,;t t
12666 s
,@abs_builddir@
,$ac_abs_builddir,;t t
12667 s
,@top_builddir@
,$ac_top_builddir,;t t
12668 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
12669 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12671 if test x"$ac_file" != x-; then
12672 mv $tmp/out $ac_file
12680 cat >>$CONFIG_STATUS <<\_ACEOF
12683 # CONFIG_HEADER section.
12686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
12687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12689 # ac_d sets the value in "#define NAME VALUE" lines.
12690 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12691 ac_dB
='[ ].*$,\1#\2'
12694 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12695 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12696 ac_uB
='$,\1#\2define\3'
12700 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
12701 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12703 - |
*:- |
*:-:* ) # input from stdin
12705 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12706 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12707 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12708 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
12709 * ) ac_file_in
=$ac_file.
in ;;
12712 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
12713 echo "$as_me: creating $ac_file" >&6;}
12715 # First look for the input files in the build tree, otherwise in the
12717 ac_file_inputs
=`IFS=:
12718 for f in $ac_file_in; do
12720 -) echo $tmp/stdin ;;
12722 # Absolute (can't be DOS-style, as IFS=:)
12723 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12724 echo "$as_me: error: cannot find input file: $f" >&2;}
12725 { (exit 1); exit 1; }; }
12728 if test -f "$f"; then
12731 elif test -f "$srcdir/$f"; then
12736 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12737 echo "$as_me: error: cannot find input file: $f" >&2;}
12738 { (exit 1); exit 1; }; }
12741 done` ||
{ (exit 1); exit 1; }
12742 # Remove the trailing spaces.
12743 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12747 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12748 # `conftest.undefs', that substitutes the proper values into
12749 # config.h.in to produce config.h. The first handles `#define'
12750 # templates, and the second `#undef' templates.
12751 # And first: Protect against being on the right side of a sed subst in
12752 # config.status. Protect against being in an unquoted here document
12753 # in config.status.
12754 rm -f conftest.defines conftest.undefs
12755 # Using a here document instead of a string reduces the quoting nightmare.
12756 # Putting comments in sed scripts is not portable.
12758 # `end' is used to avoid that the second main sed command (meant for
12759 # 0-ary CPP macros) applies to n-ary macro definitions.
12760 # See the Autoconf documentation for `clear'.
12761 cat >confdef2sed.
sed <<\_ACEOF
12766 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12768 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12771 # If some macros were called several times there might be several times
12772 # the same #defines, which is useless. Nevertheless, we may not want to
12773 # sort them, since we want the *last* AC-DEFINE to be honored.
12774 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12775 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12776 rm -f confdef2sed.sed
12778 # This sed command replaces #undef with comments. This is necessary, for
12779 # example, in the case of _POSIX_SOURCE, which is predefined and required
12780 # on some systems where configure will not decide to define it.
12781 cat >>conftest.undefs <<\_ACEOF
12782 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12785 # Break up conftest.defines because some shells have a limit on the size
12786 # of here documents, and old seds have small limits too (100 cmds).
12787 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12788 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12789 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12790 echo ' :' >>$CONFIG_STATUS
12791 rm -f conftest.tail
12792 while grep . conftest.defines >/dev/null
12794 # Write a limited-size here document to $tmp/defines.sed.
12795 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12796 # Speed up: don't consider the non `#define' lines.
12797 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12798 # Work around the forget-to-reset-the-flag bug.
12799 echo 't clr' >>$CONFIG_STATUS
12800 echo ': clr' >>$CONFIG_STATUS
12801 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
12803 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12805 mv $tmp/out $tmp/in
12807 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
12808 rm -f conftest.defines
12809 mv conftest.
tail conftest.defines
12811 rm -f conftest.defines
12812 echo ' fi # grep' >>$CONFIG_STATUS
12813 echo >>$CONFIG_STATUS
12815 # Break up conftest.undefs because some shells have a limit on the size
12816 # of here documents, and old seds have small limits too (100 cmds).
12817 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12818 rm -f conftest.
tail
12819 while grep . conftest.undefs
>/dev
/null
12821 # Write a limited-size here document to $tmp/undefs.sed.
12822 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12823 # Speed up: don't consider the non
`#undef'
12824 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12825 # Work around the forget-to-reset-the-flag bug.
12826 echo 't clr' >>$CONFIG_STATUS
12827 echo ': clr' >>$CONFIG_STATUS
12828 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12830 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12832 mv $tmp/out $tmp/in
12834 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12835 rm -f conftest.undefs
12836 mv conftest.tail conftest.undefs
12838 rm -f conftest.undefs
12840 cat >>$CONFIG_STATUS <<\_ACEOF
12841 # Let's still pretend it is `configure
' which instantiates (i.e., don't
12842 # use $as_me), people would be surprised to read:
12843 # /* config.h. Generated by config.status. */
12844 if test x
"$ac_file" = x-
; then
12845 echo "/* Generated by configure. */" >$tmp/config.h
12847 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12849 cat $tmp/in >>$tmp/config.h
12851 if test x
"$ac_file" != x-
; then
12852 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
12853 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12854 echo "$as_me: $ac_file is unchanged" >&6;}
12856 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
12857 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12858 X"$ac_file" : 'X\(//\)[^/]' \| \
12859 X"$ac_file" : 'X\(//\)$' \| \
12860 X"$ac_file" : 'X\(/\)' \| \
12861 . : '\(.\)' 2>/dev/null ||
12863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12865 /^X\(\/\/\)$/{ s//\1/; q; }
12866 /^X\(\/\).*/{ s//\1/; q; }
12868 { if $as_mkdir_p; then
12873 while test ! -d "$as_dir"; do
12874 as_dirs
="$as_dir $as_dirs"
12875 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
12876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12877 X"$as_dir" : 'X\(//\)[^/]' \| \
12878 X"$as_dir" : 'X\(//\)$' \| \
12879 X"$as_dir" : 'X\(/\)' \| \
12880 . : '\(.\)' 2>/dev/null ||
12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12884 /^X\(\/\/\)$/{ s//\1/; q; }
12885 /^X\(\/\).*/{ s//\1/; q; }
12888 test ! -n "$as_dirs" || mkdir
$as_dirs
12889 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12890 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12891 { (exit 1); exit 1; }; }; }
12894 mv $tmp/config.h
$ac_file
12898 rm -f $tmp/config.h
12902 cat >>$CONFIG_STATUS <<\_ACEOF
12905 # CONFIG_COMMANDS section.
12907 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
12908 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
12909 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
12910 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
12911 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12912 X"$ac_dest" : 'X\(//\)[^/]' \| \
12913 X"$ac_dest" : 'X\(//\)$' \| \
12914 X"$ac_dest" : 'X\(/\)' \| \
12915 . : '\(.\)' 2>/dev/null ||
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12919 /^X\(\/\/\)$/{ s//\1/; q; }
12920 /^X\(\/\).*/{ s//\1/; q; }
12924 if test "$ac_dir" != .
; then
12925 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12926 # A "../" for each directory in $ac_dir_suffix.
12927 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12929 ac_dir_suffix
= ac_top_builddir
=
12933 .
) # No --srcdir option. We are building in place.
12935 if test -z "$ac_top_builddir"; then
12938 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
12940 [\\/]* | ?
:[\\/]* ) # Absolute path.
12941 ac_srcdir
=$srcdir$ac_dir_suffix;
12942 ac_top_srcdir
=$srcdir ;;
12943 *) # Relative path.
12944 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
12945 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
12947 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12949 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
12950 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12951 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12952 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12955 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12956 echo "$as_me: executing $ac_dest commands" >&6;}
12959 case ${CONFIG_HEADERS} in
12960 *auto-host.h
:config.
in*)
12963 # Make sure all the subdirs exist.
12966 test -d $d || mkdir
$d
12968 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
12969 # bootstrapping and the installation procedure can still use
12970 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
12971 # FLAGS_TO_PASS has been modified to solve the problem there.
12972 # This is virtually a duplicate of what happens in configure.lang; we do
12973 # an extra check to make sure this only happens if ln -s can be used.
12974 if test "$symbolic_link" = "ln -s"; then
12975 for d
in ${subdirs} fixinc
; do
12976 STARTDIR
=`${PWDCMD-pwd}`
12978 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
12981 $symbolic_link ..
/$t $t 2>/dev
/null
12991 cat >>$CONFIG_STATUS <<\_ACEOF
12993 { (exit 0); exit 0; }
12995 chmod +x
$CONFIG_STATUS
12996 ac_clean_files
=$ac_clean_files_save
12999 # configure is writing to config.log, and then calls config.status.
13000 # config.status does its own redirection, appending to config.log.
13001 # Unfortunately, on DOS this fails, as config.log is still kept open
13002 # by configure, so config.status won't be able to write to it; its
13003 # output is simply discarded. So we exec the FD to /dev/null,
13004 # effectively closing config.log, so it can be properly (re)opened and
13005 # appended to by config.status. When coming back to configure, we
13006 # need to make the FD available again.
13007 if test "$no_create" != yes; then
13009 ac_config_status_args
=
13010 test "$silent" = yes &&
13011 ac_config_status_args
="$ac_config_status_args --quiet"
13013 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13015 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13016 # would make configure fail if this is the last instruction.
13017 $ac_cs_success ||
{ (exit 1); exit 1; }