2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER 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_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines target_noncanonical c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
,fold;
871 default is misc
,tree
,gc
,rtlflag
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
\'s code coverage collection.
875 Use to measure compiler performance and
locate
876 unused parts of the compiler. With LEVEL
, specify
877 optimization. Values are opt
, noopt
,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support
for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit
for C
++
882 --enable-threads enable thread usage
for target GCC
883 --enable-threads=LIB use LIB thread package
for target GCC
884 --enable-objc-gc enable the use of Boehm
's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don't provide a shared libgcc
887 --enable-intermodule build the compiler
in one step
888 --enable-languages=LIST specify
which front-ends to build
889 --enable-initfini-array use .init_array
/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp
/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind
for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths
in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup
(default
)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing
) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed
in a compiler-specific directory
908 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
909 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
910 --with-local-prefix=DIR specifies directory to put
local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g
++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor
in DIR
915 (relative to PREFIX
) as well as PREFIX
/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld
(full pathname
)
918 --with-demangler-in-ld try to use demangler
in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as
(full pathname
)
921 --with-stabs arrange to use stabs instead of
host debug format
922 --with-dwarf2 force the default debug format to be DWARF
2
923 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
924 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
925 --with-gc={page
,zone
} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries
in DIR LIBDIR
931 Some influential environment variables
:
932 CC C compiler
command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
935 nonstandard directory
<lib dir
>
936 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
937 headers
in a nonstandard directory
<include dir
>
939 GMPLIBS How to link GMP
940 GMPINC How to
find GMP include files
942 Use these variables to override the choices made by
`configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix= ac_top_builddir=
964 .) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo
&& pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .) ac_abs_builddir="$ac_dir";;
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1065 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1066 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1067 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1068 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1070 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1071 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1073 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1074 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1075 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1076 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1077 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1078 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1079 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next=false
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next=true ;;
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close
' the trap.
1159 trap 'exit_status
=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var
in $ac_subst_vars
1195 eval ac_val
=$
`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var
in $ac_subst_files
1209 eval ac_val
=$
`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h
; then
1222 sed "/^$/d" confdefs.h |
sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core
*.core
&&
1230 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's
/^
/|
/' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1327 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1352 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1359 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1386 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1387 if test -f $ac_dir/install-sh; then
1389 ac_install_sh="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh; then
1393 ac_install_sh="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool; then
1397 ac_install_sh="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4 >/dev/null 2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1438 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1439 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias=$ac_cv_build_alias
1450 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1460 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1461 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias=$ac_cv_host_alias
1472 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target=$ac_cv_target
1481 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1482 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1483 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical=${build} ;;
1496 *) build_noncanonical=${build_alias} ;;
1499 case ${host_alias} in
1500 "") host_noncanonical=${build_noncanonical} ;;
1501 *) host_noncanonical=${host_alias} ;;
1504 case ${target_alias} in
1505 "") target_noncanonical=${host_noncanonical} ;;
1506 *) target_noncanonical=${target_alias} ;;
1510 # Determine the target- and build-specific subdirectories
1511 # Prefix 'build-
' so this never conflicts with target_subdir.
1512 build_subdir="build-${build_noncanonical}"
1513 # Not really a subdirectory, but here for completeness.
1516 target_subdir=${target_noncanonical}
1519 # Set program_transform_name
1520 test "$program_prefix" != NONE &&
1521 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it
if useless.
1527 cat <<\_ACEOF
>conftest.
sed
1528 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1530 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1534 # Check for bogus environment variables.
1535 # Test if LIBRARY_PATH contains the notation for the current directory
1536 # since this would lead to problems installing/building glibc.
1537 # LIBRARY_PATH contains the current directory if one of the following
1539 # - one of the terminals (":" and ";") is the first or last sign
1540 # - two terminals occur directly after each other
1541 # - the path contains an element with a dot in it
1542 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1543 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1544 case ${LIBRARY_PATH} in
1545 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1546 library_path_setting
="contains current directory"
1549 library_path_setting
="ok"
1552 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1553 echo "${ECHO_T}$library_path_setting" >&6
1554 if test "$library_path_setting" != "ok"; then
1555 { { echo "$as_me:$LINENO: error:
1556 *** LIBRARY_PATH shouldn't contain the current directory when
1557 *** building gcc. Please change the environment variable
1558 *** and run configure again." >&5
1559 echo "$as_me: error:
1560 *** LIBRARY_PATH shouldn't contain the current directory when
1561 *** building gcc. Please change the environment variable
1562 *** and run configure again." >&2;}
1563 { (exit 1); exit 1; }; }
1566 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1567 # since this would lead to problems installing/building glibc.
1568 # GCC_EXEC_PREFIX contains the current directory if one of the following
1570 # - one of the terminals (":" and ";") is the first or last sign
1571 # - two terminals occur directly after each other
1572 # - the path contains an element with a dot in it
1573 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1574 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1575 case ${GCC_EXEC_PREFIX} in
1576 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1577 gcc_exec_prefix_setting
="contains current directory"
1580 gcc_exec_prefix_setting
="ok"
1583 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1584 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1585 if test "$gcc_exec_prefix_setting" != "ok"; then
1586 { { echo "$as_me:$LINENO: error:
1587 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1588 *** building gcc. Please change the environment variable
1589 *** and run configure again." >&5
1590 echo "$as_me: error:
1591 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1592 *** building gcc. Please change the environment variable
1593 *** and run configure again." >&2;}
1594 { (exit 1); exit 1; }; }
1601 # Specify the local prefix
1604 # Check whether --with-local-prefix or --without-local-prefix was given.
1605 if test "${with_local_prefix+set}" = set; then
1606 withval
="$with_local_prefix"
1607 case "${withval}" in
1608 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1609 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1610 { (exit 1); exit 1; }; } ;;
1612 *) local_prefix
=$with_local_prefix ;;
1616 # Default local prefix if it is empty
1617 if test x
$local_prefix = x
; then
1618 local_prefix
=/usr
/local
1621 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1622 # passed in by the toplevel make and thus we'd get different behavior
1623 # depending on where we built the sources.
1624 gcc_gxx_include_dir
=
1625 # Specify the g++ header file directory
1627 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1628 if test "${with_gxx_include_dir+set}" = set; then
1629 withval
="$with_gxx_include_dir"
1630 case "${withval}" in
1631 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1632 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1633 { (exit 1); exit 1; }; } ;;
1635 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1639 if test x
${gcc_gxx_include_dir} = x
; then
1640 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1641 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1643 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1644 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1649 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1650 if test "${with_cpp_install_dir+set}" = set; then
1651 withval
="$with_cpp_install_dir"
1652 if test x
$withval = xyes
; then
1653 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1654 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1655 { (exit 1); exit 1; }; }
1656 elif test x
$withval != xno
; then
1657 cpp_install_dir
=$withval
1661 # We would like to our source tree to be readonly. However when releases or
1662 # pre-releases are generated, the flex/bison generated files as well as the
1663 # various formats of manuals need to be included along with the rest of the
1664 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1667 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1668 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1669 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1670 if test "${enable_generated_files_in_srcdir+set}" = set; then
1671 enableval
="$enable_generated_files_in_srcdir"
1672 generated_files_in_srcdir
=$enableval
1674 generated_files_in_srcdir
=no
1677 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1678 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1680 if test "$generated_files_in_srcdir" = "yes"; then
1687 # -------------------
1688 # Find default linker
1689 # -------------------
1693 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1694 if test "${with_gnu_ld+set}" = set; then
1695 withval
="$with_gnu_ld"
1696 gnu_ld_flag
="$with_gnu_ld"
1701 # With pre-defined ld
1703 # Check whether --with-ld or --without-ld was given.
1704 if test "${with_ld+set}" = set; then
1706 DEFAULT_LINKER
="$with_ld"
1708 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1709 if test ! -x "$DEFAULT_LINKER"; then
1710 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1711 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1712 { (exit 1); exit 1; }; }
1713 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1717 cat >>confdefs.h
<<_ACEOF
1718 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1723 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1724 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1725 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1726 if test x
"$gnu_ld_flag" = x
"no"; then
1727 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1728 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1730 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1731 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1738 # With demangler in GNU ld
1740 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1741 if test "${with_demangler_in_ld+set}" = set; then
1742 withval
="$with_demangler_in_ld"
1743 demangler_in_ld
="$with_demangler_in_ld"
1748 # ----------------------
1749 # Find default assembler
1750 # ----------------------
1754 # Check whether --with-gnu-as or --without-gnu-as was given.
1755 if test "${with_gnu_as+set}" = set; then
1756 withval
="$with_gnu_as"
1757 gas_flag
="$with_gnu_as"
1763 # Check whether --with-as or --without-as was given.
1764 if test "${with_as+set}" = set; then
1766 DEFAULT_ASSEMBLER
="$with_as"
1768 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1769 if test ! -x "$DEFAULT_ASSEMBLER"; then
1770 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1771 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1772 { (exit 1); exit 1; }; }
1773 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1777 cat >>confdefs.h
<<_ACEOF
1778 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1783 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1784 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1785 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1786 if test x
"$gas_flag" = x
"no"; then
1787 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1788 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1790 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1791 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1794 echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1802 # If a non-executable a.out is present (e.g. created by GNU as above even if
1803 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1804 # file, even when creating an executable, so an execution test fails.
1805 # Remove possible default executable files to avoid this.
1807 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1808 # Autoconf includes it.
1809 rm -f a.out a.exe b.out
1811 # Find the native compiler
1813 ac_cpp
='$CPP $CPPFLAGS'
1814 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1815 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1816 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1817 if test -n "$ac_tool_prefix"; then
1818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1819 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1820 echo "$as_me:$LINENO: checking for $ac_word" >&5
1821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1822 if test "${ac_cv_prog_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC
="$CC" # Let the user override the test.
1828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1832 test -z "$as_dir" && as_dir
=.
1833 for ac_exec_ext
in '' $ac_executable_extensions; do
1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1835 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845 if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6
1849 echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6
1854 if test -z "$ac_cv_prog_CC"; then
1856 # Extract the first word of "gcc", so it can be a program name with args.
1857 set dummy gcc
; ac_word
=$2
1858 echo "$as_me:$LINENO: checking for $ac_word" >&5
1859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1863 if test -n "$ac_ct_CC"; then
1864 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1870 test -z "$as_dir" && as_dir
=.
1871 for ac_exec_ext
in '' $ac_executable_extensions; do
1872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1873 ac_cv_prog_ac_ct_CC
="gcc"
1874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1883 if test -n "$ac_ct_CC"; then
1884 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1885 echo "${ECHO_T}$ac_ct_CC" >&6
1887 echo "$as_me:$LINENO: result: no" >&5
1888 echo "${ECHO_T}no" >&6
1896 if test -z "$CC"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1899 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1900 echo "$as_me:$LINENO: checking for $ac_word" >&5
1901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902 if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC
="$CC" # Let the user override the test.
1908 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1912 test -z "$as_dir" && as_dir
=.
1913 for ac_exec_ext
in '' $ac_executable_extensions; do
1914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925 if test -n "$CC"; then
1926 echo "$as_me:$LINENO: result: $CC" >&5
1927 echo "${ECHO_T}$CC" >&6
1929 echo "$as_me:$LINENO: result: no" >&5
1930 echo "${ECHO_T}no" >&6
1934 if test -z "$ac_cv_prog_CC"; then
1936 # Extract the first word of "cc", so it can be a program name with args.
1937 set dummy cc
; ac_word
=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir
=.
1951 for ac_exec_ext
in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC
="cc"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1977 if test -z "$CC"; then
1978 # Extract the first word of "cc", so it can be a program name with args.
1979 set dummy cc
; ac_word
=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_CC+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1985 if test -n "$CC"; then
1986 ac_cv_prog_CC
="$CC" # Let the user override the test.
1989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir
=.
1994 for ac_exec_ext
in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1997 ac_prog_rejected
=yes
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007 if test $ac_prog_rejected = yes; then
2008 # We found a bogon in the path, so make sure we never use it.
2009 set dummy
$ac_cv_prog_CC
2011 if test $# != 0; then
2012 # We chose a different compiler from the bogus one.
2013 # However, it has the same basename, so the bogon will be chosen
2014 # first if we set CC to just the basename; use the full file name.
2016 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2022 if test -n "$CC"; then
2023 echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6
2026 echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6
2031 if test -z "$CC"; then
2032 if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC
="$CC" # Let the user override the test.
2045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir
=.
2050 for ac_exec_ext
in '' $ac_executable_extensions; do
2051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6
2066 echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2070 test -n "$CC" && break
2073 if test -z "$CC"; then
2077 # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy
$ac_prog; ac_word
=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 if test -n "$ac_ct_CC"; then
2085 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2091 test -z "$as_dir" && as_dir
=.
2092 for ac_exec_ext
in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_ac_ct_CC
="$ac_prog"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2112 test -n "$ac_ct_CC" && break
2121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2127 # Provide some information about the compiler.
2128 echo "$as_me:$LINENO:" \
2129 "checking for C compiler version" >&5
2130 ac_compiler
=`set X $ac_compile; echo $2`
2131 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2132 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2137 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2142 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2147 cat >conftest.
$ac_ext <<_ACEOF
2150 cat confdefs.h
>>conftest.
$ac_ext
2151 cat >>conftest.
$ac_ext <<_ACEOF
2152 /* end confdefs.h. */
2162 ac_clean_files_save
=$ac_clean_files
2163 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2164 # Try to create an executable without -o first, disregard a.out.
2165 # It will help us diagnose broken compilers, and finding out an intuition
2167 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2168 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2169 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2170 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2171 (eval $ac_link_default) 2>&5
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 # Find the output, starting from the most likely. This scheme is
2176 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2179 # Be careful to initialize this variable, since it used to be cached.
2180 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2182 # b.out is created by i960 compilers.
2183 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2185 test -f "$ac_file" ||
continue
2187 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2190 # This is the source file.
2193 # We found the default executable, but exeext='' is most
2197 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 # FIXME: I believe we export ac_cv_exeext for Libtool,
2199 # but it would be cool to find out if it's true. Does anybody
2200 # maintain Libtool? --akim.
2208 echo "$as_me: failed program was:" >&5
2209 sed 's/^/| /' conftest.
$ac_ext >&5
2211 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&5
2213 echo "$as_me: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&2;}
2215 { (exit 77); exit 77; }; }
2218 ac_exeext
=$ac_cv_exeext
2219 echo "$as_me:$LINENO: result: $ac_file" >&5
2220 echo "${ECHO_T}$ac_file" >&6
2222 # Check the compiler produces executables we can run. If not, either
2223 # the compiler is broken, or we cross compile.
2224 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2225 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2226 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2227 # If not cross compiling, check that we can run a simple program.
2228 if test "$cross_compiling" != yes; then
2229 if { ac_try
='./$ac_file'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2237 if test "$cross_compiling" = maybe
; then
2240 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&5
2243 echo "$as_me: error: cannot run C compiled programs.
2244 If you meant to cross compile, use \`--host'.
2245 See \`config.log' for more details." >&2;}
2246 { (exit 1); exit 1; }; }
2250 echo "$as_me:$LINENO: result: yes" >&5
2251 echo "${ECHO_T}yes" >&6
2253 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2254 ac_clean_files
=$ac_clean_files_save
2255 # Check the compiler produces executables we can run. If not, either
2256 # the compiler is broken, or we cross compile.
2257 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2258 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2259 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2260 echo "${ECHO_T}$cross_compiling" >&6
2262 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2263 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2265 (eval $ac_link) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file
in conftest.exe conftest conftest.
*; do
2274 test -f "$ac_file" ||
continue
2276 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2277 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest
$ac_cv_exeext
2292 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6
2295 rm -f conftest.
$ac_ext
2296 EXEEXT
=$ac_cv_exeext
2298 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.
$ac_ext <<_ACEOF
2306 cat confdefs.h
>>conftest.
$ac_ext
2307 cat >>conftest.
$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2320 (eval $ac_compile) 2>&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2326 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2327 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.
$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2344 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6
2346 OBJEXT
=$ac_cv_objext
2348 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.
$ac_ext <<_ACEOF
2356 cat confdefs.h
>>conftest.
$ac_ext
2357 cat >>conftest.
$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.
$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1
>conftest.err
2377 cat conftest.err
>&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } &&
2380 { ac_try
='test -z "$ac_c_werror_flag"
2381 || test ! -s conftest.err'
2382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); }; } &&
2387 { ac_try
='test -s conftest.$ac_objext'
2388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; }; then
2395 echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.
$ac_ext >&5
2400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2401 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2404 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2405 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2406 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2407 ac_test_CFLAGS
=${CFLAGS+set}
2408 ac_save_CFLAGS
=$CFLAGS
2410 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2411 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2412 if test "${ac_cv_prog_cc_g+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 cat >conftest.
$ac_ext <<_ACEOF
2418 cat confdefs.h
>>conftest.
$ac_ext
2419 cat >>conftest.
$ac_ext <<_ACEOF
2420 /* end confdefs.h. */
2430 rm -f conftest.
$ac_objext
2431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2432 (eval $ac_compile) 2>conftest.er1
2434 grep -v '^ *+' conftest.er1
>conftest.err
2436 cat conftest.err
>&5
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); } &&
2439 { ac_try
='test -z "$ac_c_werror_flag"
2440 || test ! -s conftest.err'
2441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try
='test -s conftest.$ac_objext'
2447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }; }; then
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.
$ac_ext >&5
2459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2461 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2462 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2463 if test "$ac_test_CFLAGS" = set; then
2464 CFLAGS
=$ac_save_CFLAGS
2465 elif test $ac_cv_prog_cc_g = yes; then
2466 if test "$GCC" = yes; then
2472 if test "$GCC" = yes; then
2478 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2479 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2480 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 ac_cv_prog_cc_stdc
=no
2485 cat >conftest.
$ac_ext <<_ACEOF
2488 cat confdefs.h
>>conftest.
$ac_ext
2489 cat >>conftest.
$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2493 #include <sys/types.h>
2494 #include <sys/stat.h>
2495 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2496 struct buf { int x; };
2497 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2498 static char *e (p, i)
2504 static char *f (char * (*g) (char **, int), char **p, ...)
2509 s = g (p, va_arg (v,int));
2514 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2515 function prototypes and stuff, but not '\xHH' hex character constants.
2516 These don't provoke an error unfortunately, instead are silently treated
2517 as 'x'. The following induces an error, until -std1 is added to get
2518 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2519 array size at least. It's necessary to write '\x00'==0 to get something
2520 that's true only with -std1. */
2521 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2523 int test (int i, double x);
2524 struct s1 {int (*f) (int a);};
2525 struct s2 {int (*f) (double a);};
2526 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2532 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2537 # Don't try gcc -ansi; that turns off useful extensions and
2538 # breaks some systems' header files.
2539 # AIX -qlanglvl=ansi
2540 # Ultrix and OSF/1 -std1
2541 # HP-UX 10.20 and later -Ae
2542 # HP-UX older versions -Aa -D_HPUX_SOURCE
2543 # SVR4 -Xc -D__EXTENSIONS__
2544 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546 CC
="$ac_save_CC $ac_arg"
2547 rm -f conftest.
$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1
>conftest.err
2553 cat conftest.err
>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try
='test -z "$ac_c_werror_flag"
2557 || test ! -s conftest.err'
2558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; } &&
2563 { ac_try
='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 ac_cv_prog_cc_stdc
=$ac_arg
2572 echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.
$ac_ext >&5
2576 rm -f conftest.err conftest.
$ac_objext
2578 rm -f conftest.
$ac_ext conftest.
$ac_objext
2583 case "x$ac_cv_prog_cc_stdc" in
2585 echo "$as_me:$LINENO: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2593 # Some people use a C++ compiler to compile C. Since we use `exit',
2594 # in C++ we need to declare it. In case someone uses the same compiler
2595 # for both compiling C and C++ we need to have the C++ compiler decide
2596 # the declaration of exit, since it's the most demanding environment.
2597 cat >conftest.
$ac_ext <<_ACEOF
2602 rm -f conftest.
$ac_objext
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1
>conftest.err
2608 cat conftest.err
>&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try
='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try
='test -s conftest.$ac_objext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 for ac_declaration
in \
2626 'extern "C" void std::exit (int) throw (); using std::exit;' \
2627 'extern "C" void std::exit (int); using std::exit;' \
2628 'extern "C" void exit (int) throw ();' \
2629 'extern "C" void exit (int);' \
2632 cat >conftest.
$ac_ext <<_ACEOF
2635 cat confdefs.h
>>conftest.
$ac_ext
2636 cat >>conftest.
$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2648 rm -f conftest.
$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1
>conftest.err
2654 cat conftest.err
>&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try
='test -z "$ac_c_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try
='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.
$ac_ext >&5
2677 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2678 cat >conftest.
$ac_ext <<_ACEOF
2681 cat confdefs.h
>>conftest.
$ac_ext
2682 cat >>conftest.
$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.
$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1
>conftest.err
2699 cat conftest.err
>&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try
='test -z "$ac_c_werror_flag"
2703 || test ! -s conftest.err'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; } &&
2709 { ac_try
='test -s conftest.$ac_objext'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; }; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2724 if test -n "$ac_declaration"; then
2725 echo '#ifdef __cplusplus' >>confdefs.h
2726 echo $ac_declaration >>confdefs.h
2727 echo '#endif' >>confdefs.h
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.
$ac_ext >&5
2735 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2737 ac_cpp
='$CPP $CPPFLAGS'
2738 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2742 if test "x$CC" != xcc
; then
2743 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2744 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2746 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2747 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2749 set dummy
$CC; ac_cc
=`echo $2 |
2750 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2751 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 cat >conftest.
$ac_ext <<_ACEOF
2757 cat confdefs.h
>>conftest.
$ac_ext
2758 cat >>conftest.
$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 # Make sure it works both with $CC and with simple cc.
2770 # We do the test twice because some compilers refuse to overwrite an
2771 # existing .o file with -o, though they will create one.
2772 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2773 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
2778 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); };
2784 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2785 if test "x$CC" != xcc
; then
2786 # Test first that cc exists at all.
2787 if { ac_try
='cc -c conftest.$ac_ext >&5'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; }; then
2793 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } &&
2799 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); };
2808 # cc exists but doesn't like -o.
2809 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2814 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2819 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2820 echo "$as_me:$LINENO: result: yes" >&5
2821 echo "${ECHO_T}yes" >&6
2823 echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6
2826 cat >>confdefs.h
<<\_ACEOF
2827 #define NO_MINUS_C_MINUS_O 1
2832 # autoconf is lame and doesn't give us any substitution variable for this.
2833 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2834 NO_MINUS_C_MINUS_O
=yes
2836 OUTPUT_OPTION
='-o $@'
2841 # -------------------------
2842 # Check C compiler features
2843 # -------------------------
2846 ac_cpp
='$CPP $CPPFLAGS'
2847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2850 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2851 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2852 # On Suns, sometimes $CPP names a directory.
2853 if test -n "$CPP" && test -d "$CPP"; then
2856 if test -z "$CPP"; then
2857 if test "${ac_cv_prog_CPP+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 # Double quotes because CPP needs to be expanded
2861 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2864 for ac_c_preproc_warn_flag
in '' yes
2866 # Use a header file that comes with gcc, so configuring glibc
2867 # with a fresh cross-compiler works.
2868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2869 # <limits.h> exists even on freestanding compilers.
2870 # On the NeXT, cc -E runs the code through the compiler's parser,
2871 # not just through cpp. "Syntax error" is here to catch this case.
2872 cat >conftest.
$ac_ext <<_ACEOF
2875 cat confdefs.h
>>conftest.
$ac_ext
2876 cat >>conftest.
$ac_ext <<_ACEOF
2877 /* end confdefs.h. */
2879 # include <limits.h>
2881 # include <assert.h>
2885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2886 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2888 grep -v '^ *+' conftest.er1
>conftest.err
2890 cat conftest.err
>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); } >/dev
/null
; then
2893 if test -s conftest.err
; then
2894 ac_cpp_err
=$ac_c_preproc_warn_flag
2895 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2902 if test -z "$ac_cpp_err"; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.
$ac_ext >&5
2908 # Broken: fails on valid input.
2911 rm -f conftest.err conftest.
$ac_ext
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >conftest.
$ac_ext <<_ACEOF
2918 cat confdefs.h
>>conftest.
$ac_ext
2919 cat >>conftest.
$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ac_nonexistent.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2941 # Broken: success on invalid input.
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.
$ac_ext >&5
2947 # Passes both tests.
2951 rm -f conftest.err conftest.
$ac_ext
2954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2955 rm -f conftest.err conftest.
$ac_ext
2956 if $ac_preproc_ok; then
2968 echo "$as_me:$LINENO: result: $CPP" >&5
2969 echo "${ECHO_T}$CPP" >&6
2971 for ac_c_preproc_warn_flag
in '' yes
2973 # Use a header file that comes with gcc, so configuring glibc
2974 # with a fresh cross-compiler works.
2975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2976 # <limits.h> exists even on freestanding compilers.
2977 # On the NeXT, cc -E runs the code through the compiler's parser,
2978 # not just through cpp. "Syntax error" is here to catch this case.
2979 cat >conftest.
$ac_ext <<_ACEOF
2982 cat confdefs.h
>>conftest.
$ac_ext
2983 cat >>conftest.
$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2986 # include <limits.h>
2988 # include <assert.h>
2992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2993 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2995 grep -v '^ *+' conftest.er1
>conftest.err
2997 cat conftest.err
>&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev
/null
; then
3000 if test -s conftest.err
; then
3001 ac_cpp_err
=$ac_c_preproc_warn_flag
3002 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3009 if test -z "$ac_cpp_err"; then
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.
$ac_ext >&5
3015 # Broken: fails on valid input.
3018 rm -f conftest.err conftest.
$ac_ext
3020 # OK, works on sane cases. Now check whether non-existent headers
3021 # can be detected and how.
3022 cat >conftest.
$ac_ext <<_ACEOF
3025 cat confdefs.h
>>conftest.
$ac_ext
3026 cat >>conftest.
$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028 #include <ac_nonexistent.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3048 # Broken: success on invalid input.
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.
$ac_ext >&5
3054 # Passes both tests.
3058 rm -f conftest.err conftest.
$ac_ext
3061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3062 rm -f conftest.err conftest.
$ac_ext
3063 if $ac_preproc_ok; then
3066 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3074 ac_cpp
='$CPP $CPPFLAGS'
3075 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3080 echo "$as_me:$LINENO: checking for inline" >&5
3081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3082 if test "${ac_cv_c_inline+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 for ac_kw
in inline __inline__ __inline
; do
3087 cat >conftest.
$ac_ext <<_ACEOF
3090 cat confdefs.h
>>conftest.
$ac_ext
3091 cat >>conftest.
$ac_ext <<_ACEOF
3092 /* end confdefs.h. */
3095 static $ac_kw foo_t static_foo () {return 0; }
3096 $ac_kw foo_t foo () {return 0; }
3100 rm -f conftest.
$ac_objext
3101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3102 (eval $ac_compile) 2>conftest.er1
3104 grep -v '^ *+' conftest.er1
>conftest.err
3106 cat conftest.err
>&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try
='test -z "$ac_c_werror_flag"
3110 || test ! -s conftest.err'
3111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try
='test -s conftest.$ac_objext'
3117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; }; then
3122 ac_cv_c_inline
=$ac_kw; break
3124 echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.
$ac_ext >&5
3128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3132 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3133 echo "${ECHO_T}$ac_cv_c_inline" >&6
3136 case $ac_cv_c_inline in
3139 case $ac_cv_c_inline in
3141 *) ac_val
=$ac_cv_c_inline;;
3143 cat >>confdefs.h
<<_ACEOF
3145 #define inline $ac_val
3152 echo "$as_me:$LINENO: checking for long long int" >&5
3153 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3154 if test "${ac_cv_c_long_long+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 cat >conftest.
$ac_ext <<_ACEOF
3160 cat confdefs.h
>>conftest.
$ac_ext
3161 cat >>conftest.
$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.
$ac_objext
3173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } &&
3181 { ac_try
='test -z "$ac_c_werror_flag"
3182 || test ! -s conftest.err'
3183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; } &&
3188 { ac_try
='test -s conftest.$ac_objext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 ac_cv_c_long_long
=yes
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.
$ac_ext >&5
3199 ac_cv_c_long_long
=no
3201 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3203 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3204 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3205 if test $ac_cv_c_long_long = yes; then
3207 cat >>confdefs.h
<<\_ACEOF
3208 #define HAVE_LONG_LONG 1
3212 echo "$as_me:$LINENO: checking for __int64" >&5
3213 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3214 if test "${ac_cv_c___int64+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 cat >conftest.
$ac_ext <<_ACEOF
3220 cat confdefs.h
>>conftest.
$ac_ext
3221 cat >>conftest.
$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3232 rm -f conftest.
$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1
>conftest.err
3238 cat conftest.err
>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try
='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try
='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.
$ac_ext >&5
3261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3264 echo "${ECHO_T}$ac_cv_c___int64" >&6
3265 if test $ac_cv_c___int64 = yes; then
3267 cat >>confdefs.h
<<\_ACEOF
3268 #define HAVE___INT64 1
3274 # sizeof(char) is 1 by definition.
3275 echo "$as_me:$LINENO: checking size of void *" >&5
3276 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3277 if test "${ac_cv_sizeof_void_p+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3281 cat >conftest.
$ac_ext <<_ACEOF
3284 cat confdefs.h
>>conftest.
$ac_ext
3285 cat >>conftest.
$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3299 rm -f conftest.
$ac_objext
3300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301 (eval $ac_compile) 2>conftest.er1
3303 grep -v '^ *+' conftest.er1
>conftest.err
3305 cat conftest.err
>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } &&
3308 { ac_try
='test -z "$ac_c_werror_flag"
3309 || test ! -s conftest.err'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try
='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_sizeof_void_p
=$ac_size
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.
$ac_ext >&5
3327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3328 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3333 if test x
$ac_cv_sizeof_void_p = x
; then
3334 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3335 echo "$as_me: error: cannot determine a size for void *" >&2;}
3336 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3341 cat >>confdefs.h
<<_ACEOF
3342 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3346 echo "$as_me:$LINENO: checking size of short" >&5
3347 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_short+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3352 cat >conftest.
$ac_ext <<_ACEOF
3355 cat confdefs.h
>>conftest.
$ac_ext
3356 cat >>conftest.
$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3358 #include "confdefs.h"
3359 #include <sys/types.h>
3365 switch (0) case 0: case (sizeof (short) == $ac_size):;
3370 rm -f conftest.
$ac_objext
3371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372 (eval $ac_compile) 2>conftest.er1
3374 grep -v '^ *+' conftest.er1
>conftest.err
3376 cat conftest.err
>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); } &&
3379 { ac_try
='test -z "$ac_c_werror_flag"
3380 || test ! -s conftest.err'
3381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }; } &&
3386 { ac_try
='test -s conftest.$ac_objext'
3387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3392 ac_cv_sizeof_short
=$ac_size
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.
$ac_ext >&5
3398 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3399 if test x
$ac_cv_sizeof_short != x
; then break; fi
3404 if test x
$ac_cv_sizeof_short = x
; then
3405 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3406 echo "$as_me: error: cannot determine a size for short" >&2;}
3407 { (exit 1); exit 1; }; }
3409 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3410 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3412 cat >>confdefs.h
<<_ACEOF
3413 #define SIZEOF_SHORT $ac_cv_sizeof_short
3417 echo "$as_me:$LINENO: checking size of int" >&5
3418 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3419 if test "${ac_cv_sizeof_int+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3423 cat >conftest.
$ac_ext <<_ACEOF
3426 cat confdefs.h
>>conftest.
$ac_ext
3427 cat >>conftest.
$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3429 #include "confdefs.h"
3430 #include <sys/types.h>
3436 switch (0) case 0: case (sizeof (int) == $ac_size):;
3441 rm -f conftest.
$ac_objext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443 (eval $ac_compile) 2>conftest.er1
3445 grep -v '^ *+' conftest.er1
>conftest.err
3447 cat conftest.err
>&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try
='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try
='test -s conftest.$ac_objext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_sizeof_int
=$ac_size
3465 echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3470 if test x
$ac_cv_sizeof_int != x
; then break; fi
3475 if test x
$ac_cv_sizeof_int = x
; then
3476 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3477 echo "$as_me: error: cannot determine a size for int" >&2;}
3478 { (exit 1); exit 1; }; }
3480 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3481 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3483 cat >>confdefs.h
<<_ACEOF
3484 #define SIZEOF_INT $ac_cv_sizeof_int
3488 echo "$as_me:$LINENO: checking size of long" >&5
3489 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_long+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3494 cat >conftest.
$ac_ext <<_ACEOF
3497 cat confdefs.h
>>conftest.
$ac_ext
3498 cat >>conftest.
$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include "confdefs.h"
3501 #include <sys/types.h>
3507 switch (0) case 0: case (sizeof (long) == $ac_size):;
3512 rm -f conftest.
$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>conftest.er1
3516 grep -v '^ *+' conftest.er1
>conftest.err
3518 cat conftest.err
>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try
='test -z "$ac_c_werror_flag"
3522 || test ! -s conftest.err'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; } &&
3528 { ac_try
='test -s conftest.$ac_objext'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; }; then
3534 ac_cv_sizeof_long
=$ac_size
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.
$ac_ext >&5
3540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3541 if test x
$ac_cv_sizeof_long != x
; then break; fi
3546 if test x
$ac_cv_sizeof_long = x
; then
3547 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3548 echo "$as_me: error: cannot determine a size for long" >&2;}
3549 { (exit 1); exit 1; }; }
3551 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3552 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3554 cat >>confdefs.h
<<_ACEOF
3555 #define SIZEOF_LONG $ac_cv_sizeof_long
3559 if test $ac_cv_c_long_long = yes; then
3560 echo "$as_me:$LINENO: checking size of long long" >&5
3561 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3562 if test "${ac_cv_sizeof_long_long+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3566 cat >conftest.
$ac_ext <<_ACEOF
3569 cat confdefs.h
>>conftest.
$ac_ext
3570 cat >>conftest.
$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include "confdefs.h"
3573 #include <sys/types.h>
3579 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3584 rm -f conftest.
$ac_objext
3585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586 (eval $ac_compile) 2>conftest.er1
3588 grep -v '^ *+' conftest.er1
>conftest.err
3590 cat conftest.err
>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } &&
3593 { ac_try
='test -z "$ac_c_werror_flag"
3594 || test ! -s conftest.err'
3595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; } &&
3600 { ac_try
='test -s conftest.$ac_objext'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; }; then
3606 ac_cv_sizeof_long_long
=$ac_size
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3613 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3618 if test x
$ac_cv_sizeof_long_long = x
; then
3619 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3620 echo "$as_me: error: cannot determine a size for long long" >&2;}
3621 { (exit 1); exit 1; }; }
3623 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3624 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3626 cat >>confdefs.h
<<_ACEOF
3627 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3632 if test $ac_cv_c___int64 = yes; then
3633 echo "$as_me:$LINENO: checking size of __int64" >&5
3634 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3635 if test "${ac_cv_sizeof___int64+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3639 cat >conftest.
$ac_ext <<_ACEOF
3642 cat confdefs.h
>>conftest.
$ac_ext
3643 cat >>conftest.
$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 #include "confdefs.h"
3646 #include <sys/types.h>
3652 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3657 rm -f conftest.
$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3661 grep -v '^ *+' conftest.er1
>conftest.err
3663 cat conftest.err
>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try
='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try
='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_sizeof___int64
=$ac_size
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.
$ac_ext >&5
3685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3686 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3691 if test x
$ac_cv_sizeof___int64 = x
; then
3692 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3693 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3694 { (exit 1); exit 1; }; }
3696 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3697 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3699 cat >>confdefs.h
<<_ACEOF
3700 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3706 # ---------------------
3707 # Warnings and checking
3708 # ---------------------
3710 # Check $CC warning features (if it's GCC).
3711 # We want to use -pedantic, but we don't want warnings about
3714 # So, we only use -pedantic if we can disable those warnings.
3716 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3717 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3718 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 save_CFLAGS
="$CFLAGS"
3722 CFLAGS
="-Wno-long-long"
3723 cat >conftest.
$ac_ext <<_ACEOF
3726 cat confdefs.h
>>conftest.
$ac_ext
3727 cat >>conftest.
$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3731 rm -f conftest.
$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733 (eval $ac_compile) 2>conftest.er1
3735 grep -v '^ *+' conftest.er1
>conftest.err
3737 cat conftest.err
>&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } &&
3740 { ac_try
='test -z "$ac_c_werror_flag"
3741 || test ! -s conftest.err'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; } &&
3747 { ac_try
='test -s conftest.$ac_objext'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; }; then
3753 ac_cv_prog_cc_w_no_long_long
=yes
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.
$ac_ext >&5
3758 ac_cv_prog_cc_w_no_long_long
=no
3760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3761 CFLAGS
="$save_CFLAGS"
3764 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3765 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 save_CFLAGS
="$CFLAGS"
3773 CFLAGS
="-Wno-variadic-macros"
3774 cat >conftest.
$ac_ext <<_ACEOF
3777 cat confdefs.h
>>conftest.
$ac_ext
3778 cat >>conftest.
$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 rm -f conftest.
$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try
='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try
='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_cc_w_no_variadic_macros
=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.
$ac_ext >&5
3809 ac_cv_prog_cc_w_no_variadic_macros
=no
3811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3812 CFLAGS
="$save_CFLAGS"
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3819 if test $ac_cv_prog_cc_w_no_long_long = yes \
3820 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3821 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
3825 # Add -Wold-style-definition if it's accepted
3826 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3827 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3828 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 save_CFLAGS
="$CFLAGS"
3832 CFLAGS
="-Wold-style-definition"
3833 cat >conftest.
$ac_ext <<_ACEOF
3836 cat confdefs.h
>>conftest.
$ac_ext
3837 cat >>conftest.
$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 rm -f conftest.
$ac_objext
3842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3843 (eval $ac_compile) 2>conftest.er1
3845 grep -v '^ *+' conftest.er1
>conftest.err
3847 cat conftest.err
>&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } &&
3850 { ac_try
='test -z "$ac_c_werror_flag"
3851 || test ! -s conftest.err'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try
='test -s conftest.$ac_objext'
3858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); }; }; then
3863 ac_cv_prog_cc_w_old_style_definition
=yes
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.
$ac_ext >&5
3868 ac_cv_prog_cc_w_old_style_definition
=no
3870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3871 CFLAGS
="$save_CFLAGS"
3874 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3875 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3876 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3877 strict1_warn
="${strict1_warn} -Wold-style-definition"
3880 # Enable -Werror, period.
3881 # Check whether --enable-werror_always or --disable-werror_always was given.
3882 if test "${enable_werror_always+set}" = set; then
3883 enableval
="$enable_werror_always"
3886 enable_werror_always
=no
3888 if test x
${enable_werror_always} = xyes
; then
3889 strict1_warn
="${strict1_warn} -Werror"
3893 # If the native compiler is GCC, we can enable warnings even in stage1.
3894 # That's useful for people building cross-compilers, or just running a
3897 if test "x$GCC" = "xyes"; then
3898 warn_cflags
='$(GCC_WARN_CFLAGS)'
3902 # Enable -Werror in bootstrap stage2 and later.
3903 # Change the default to "no" on release branches.
3904 # Check whether --enable-werror or --disable-werror was given.
3905 if test "${enable_werror+set}" = set; then
3906 enableval
="$enable_werror"
3911 if test x
$enable_werror = xyes
; then
3916 # Enable expensive internal checks
3917 # Check whether --enable-checking or --disable-checking was given.
3918 if test "${enable_checking+set}" = set; then
3919 enableval
="$enable_checking"
3923 ac_rtlflag_checking
=
3925 ac_gc_always_collect
=
3927 case "${enableval}" in
3928 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3929 ac_rtlflag_checking
=1 ;;
3931 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3932 set fnord
$enableval; shift
3937 misc
) ac_checking
=1 ;;
3938 tree
) ac_tree_checking
=1 ;;
3939 rtlflag
) ac_rtlflag_checking
=1 ;;
3940 rtl
) ac_rtl_checking
=1 ;;
3941 gc
) ac_gc_checking
=1 ;;
3942 gcac
) ac_gc_always_collect
=1 ;;
3943 fold) ac_fold_checking
=1 ;;
3944 valgrind
) ac_checking_valgrind
=1 ;;
3945 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3946 echo "$as_me: error: unknown check category $check" >&2;}
3947 { (exit 1); exit 1; }; } ;;
3954 # Enable some checks by default for development versions of GCC
3955 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3958 if test x
$ac_checking != x
; then
3960 cat >>confdefs.h
<<\_ACEOF
3961 #define ENABLE_CHECKING 1
3964 nocommon_flag
=-fno-common
3967 if test x
$ac_tree_checking != x
; then
3969 cat >>confdefs.h
<<\_ACEOF
3970 #define ENABLE_TREE_CHECKING 1
3973 TREEBROWSER
=tree-browser.o
3976 if test x
$ac_rtl_checking != x
; then
3978 cat >>confdefs.h
<<\_ACEOF
3979 #define ENABLE_RTL_CHECKING 1
3983 if test x
$ac_rtlflag_checking != x
; then
3985 cat >>confdefs.h
<<\_ACEOF
3986 #define ENABLE_RTL_FLAG_CHECKING 1
3990 if test x
$ac_gc_checking != x
; then
3992 cat >>confdefs.h
<<\_ACEOF
3993 #define ENABLE_GC_CHECKING 1
3997 if test x
$ac_gc_always_collect != x
; then
3999 cat >>confdefs.h
<<\_ACEOF
4000 #define ENABLE_GC_ALWAYS_COLLECT 1
4004 if test x
$ac_fold_checking != x
; then
4006 cat >>confdefs.h
<<\_ACEOF
4007 #define ENABLE_FOLD_CHECKING 1
4011 valgrind_path_defines
=
4015 echo "$as_me:$LINENO: checking for egrep" >&5
4016 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4017 if test "${ac_cv_prog_egrep+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4021 then ac_cv_prog_egrep
='grep -E'
4022 else ac_cv_prog_egrep
='egrep'
4025 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4026 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4027 EGREP
=$ac_cv_prog_egrep
4030 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4031 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4032 if test "${ac_cv_header_stdc+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 cat >conftest.
$ac_ext <<_ACEOF
4038 cat confdefs.h
>>conftest.
$ac_ext
4039 cat >>conftest.
$ac_ext <<_ACEOF
4040 /* end confdefs.h. */
4054 rm -f conftest.
$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>conftest.er1
4058 grep -v '^ *+' conftest.er1
>conftest.err
4060 cat conftest.err
>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } &&
4063 { ac_try
='test -z "$ac_c_werror_flag"
4064 || test ! -s conftest.err'
4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); }; } &&
4070 { ac_try
='test -s conftest.$ac_objext'
4071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 ac_cv_header_stdc
=yes
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.
$ac_ext >&5
4081 ac_cv_header_stdc
=no
4083 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4085 if test $ac_cv_header_stdc = yes; then
4086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4087 cat >conftest.
$ac_ext <<_ACEOF
4090 cat confdefs.h
>>conftest.
$ac_ext
4091 cat >>conftest.
$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 $EGREP "memchr" >/dev
/null
2>&1; then
4100 ac_cv_header_stdc
=no
4106 if test $ac_cv_header_stdc = yes; then
4107 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4108 cat >conftest.
$ac_ext <<_ACEOF
4111 cat confdefs.h
>>conftest.
$ac_ext
4112 cat >>conftest.
$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4118 $EGREP "free" >/dev
/null
2>&1; then
4121 ac_cv_header_stdc
=no
4127 if test $ac_cv_header_stdc = yes; then
4128 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4129 if test "$cross_compiling" = yes; then
4132 cat >conftest.
$ac_ext <<_ACEOF
4135 cat confdefs.h
>>conftest.
$ac_ext
4136 cat >>conftest.
$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4139 #if ((' ' & 0x0FF) == 0x020)
4140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143 # define ISLOWER(c) \
4144 (('a' <= (c) && (c) <= 'i') \
4145 || ('j' <= (c) && (c) <= 'r') \
4146 || ('s' <= (c) && (c) <= 'z'))
4147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155 for (i = 0; i < 256; i++)
4156 if (XOR (islower (i), ISLOWER (i))
4157 || toupper (i) != TOUPPER (i))
4162 rm -f conftest
$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.
$ac_ext >&5
4180 ac_cv_header_stdc
=no
4182 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4187 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4188 if test $ac_cv_header_stdc = yes; then
4190 cat >>confdefs.h
<<\_ACEOF
4191 #define STDC_HEADERS 1
4196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4206 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4207 inttypes.h stdint.h unistd.h
4209 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210 echo "$as_me:$LINENO: checking for $ac_header" >&5
4211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 cat >conftest.
$ac_ext <<_ACEOF
4218 cat confdefs.h
>>conftest.
$ac_ext
4219 cat >>conftest.
$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 $ac_includes_default
4223 #include <$ac_header>
4225 rm -f conftest.
$ac_objext
4226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>conftest.er1
4229 grep -v '^ *+' conftest.er1
>conftest.err
4231 cat conftest.err
>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } &&
4234 { ac_try
='test -z "$ac_c_werror_flag"
4235 || test ! -s conftest.err'
4236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; } &&
4241 { ac_try
='test -s conftest.$ac_objext'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
4247 eval "$as_ac_Header=yes"
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.
$ac_ext >&5
4252 eval "$as_ac_Header=no"
4254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4259 cat >>confdefs.h
<<_ACEOF
4260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4268 if test "${ac_cv_header_valgrind_h+set}" = set; then
4269 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4270 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4271 if test "${ac_cv_header_valgrind_h+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4275 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4277 # Is the header compilable?
4278 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4279 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4280 cat >conftest.
$ac_ext <<_ACEOF
4283 cat confdefs.h
>>conftest.
$ac_ext
4284 cat >>conftest.
$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 $ac_includes_default
4287 #include <valgrind.h>
4289 rm -f conftest.
$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291 (eval $ac_compile) 2>conftest.er1
4293 grep -v '^ *+' conftest.er1
>conftest.err
4295 cat conftest.err
>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } &&
4298 { ac_try
='test -z "$ac_c_werror_flag"
4299 || test ! -s conftest.err'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 ac_header_compiler
=yes
4313 echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.
$ac_ext >&5
4316 ac_header_compiler
=no
4318 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4320 echo "${ECHO_T}$ac_header_compiler" >&6
4322 # Is the header present?
4323 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4324 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4325 cat >conftest.
$ac_ext <<_ACEOF
4328 cat confdefs.h
>>conftest.
$ac_ext
4329 cat >>conftest.
$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <valgrind.h>
4333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4334 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4336 grep -v '^ *+' conftest.er1
>conftest.err
4338 cat conftest.err
>&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } >/dev
/null
; then
4341 if test -s conftest.err
; then
4342 ac_cpp_err
=$ac_c_preproc_warn_flag
4343 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4350 if test -z "$ac_cpp_err"; then
4351 ac_header_preproc
=yes
4353 echo "$as_me: failed program was:" >&5
4354 sed 's/^/| /' conftest.
$ac_ext >&5
4356 ac_header_preproc
=no
4358 rm -f conftest.err conftest.
$ac_ext
4359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4360 echo "${ECHO_T}$ac_header_preproc" >&6
4362 # So? What about this header?
4363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4366 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4368 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4369 ac_header_preproc
=yes
4372 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4373 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4374 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4375 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4377 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4379 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4381 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4383 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4386 ## ------------------------------------------ ##
4387 ## Report this to the AC_PACKAGE_NAME lists. ##
4388 ## ------------------------------------------ ##
4391 sed "s/^/$as_me: WARNING: /" >&2
4394 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4395 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4396 if test "${ac_cv_header_valgrind_h+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 ac_cv_header_valgrind_h
=$ac_header_preproc
4401 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4402 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4405 if test $ac_cv_header_valgrind_h = yes; then
4413 if test x
$ac_checking_valgrind != x
; then
4414 # It is certainly possible that there's valgrind but no valgrind.h.
4415 # GCC relies on making annotations so we must have both.
4416 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4417 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4418 cat >conftest.
$ac_ext <<_ACEOF
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <valgrind/memcheck.h>
4425 #ifndef VALGRIND_DISCARD
4426 #error VALGRIND_DISCARD not defined
4429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1
>conftest.err
4434 cat conftest.err
>&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev
/null
; then
4437 if test -s conftest.err
; then
4438 ac_cpp_err
=$ac_c_preproc_warn_flag
4439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4446 if test -z "$ac_cpp_err"; then
4447 gcc_cv_header_valgrind_memcheck_h
=yes
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4452 gcc_cv_header_valgrind_memcheck_h
=no
4454 rm -f conftest.err conftest.
$ac_ext
4455 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4456 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4457 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4458 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4459 cat >conftest.
$ac_ext <<_ACEOF
4462 cat confdefs.h
>>conftest.
$ac_ext
4463 cat >>conftest.
$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <memcheck.h>
4466 #ifndef VALGRIND_DISCARD
4467 #error VALGRIND_DISCARD not defined
4470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4471 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4473 grep -v '^ *+' conftest.er1
>conftest.err
4475 cat conftest.err
>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } >/dev
/null
; then
4478 if test -s conftest.err
; then
4479 ac_cpp_err
=$ac_c_preproc_warn_flag
4480 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4487 if test -z "$ac_cpp_err"; then
4488 gcc_cv_header_memcheck_h
=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.
$ac_ext >&5
4493 gcc_cv_header_memcheck_h
=no
4495 rm -f conftest.err conftest.
$ac_ext
4496 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4497 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4499 # Prepare PATH_SEPARATOR.
4500 # The user is always right.
4501 if test "${PATH_SEPARATOR+set}" != set; then
4502 echo "#! /bin/sh" >conf$$.sh
4503 echo "exit 0" >>conf$$.sh
4505 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4513 # Find out how to test for executable files. Don't use a zero-byte file,
4514 # as systems may use methods other than mode bits to determine executability.
4515 cat >conf$$.
file <<_ASEOF
4519 chmod +x conf$$.
file
4520 if test -x conf$$.
file >/dev
/null
2>&1; then
4521 ac_executable_p
="test -x"
4523 ac_executable_p
="test -f"
4527 # Extract the first word of "valgrind", so it can be a program name with args.
4528 set dummy valgrind
; ac_word
=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_path_valgrind_path+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4534 case "$valgrind_path" in
4536 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4539 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4540 for ac_dir
in $PATH; do
4542 test -z "$ac_dir" && ac_dir
=.
4543 for ac_exec_ext
in '' $ac_executable_extensions; do
4544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4545 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4546 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4556 valgrind_path
="$ac_cv_path_valgrind_path"
4557 if test -n "$valgrind_path"; then
4558 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4559 echo "${ECHO_T}$valgrind_path" >&6
4561 echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6
4565 if test "x$valgrind_path" = "x" \
4566 ||
(test $have_valgrind_h = no \
4567 && test $gcc_cv_header_memcheck_h = no \
4568 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4569 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4570 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4571 { (exit 1); exit 1; }; }
4573 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4574 valgrind_command
="$valgrind_path -q"
4576 cat >>confdefs.h
<<\_ACEOF
4577 #define ENABLE_VALGRIND_CHECKING 1
4580 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4582 cat >>confdefs.h
<<\_ACEOF
4583 #define HAVE_VALGRIND_MEMCHECK_H 1
4587 if test $gcc_cv_header_memcheck_h = yes; then
4589 cat >>confdefs.h
<<\_ACEOF
4590 #define HAVE_MEMCHECK_H 1
4598 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4599 if test "${enable_mapped_location+set}" = set; then
4600 enableval
="$enable_mapped_location"
4603 enable_mapped_location
=no
4606 if test "$enable_mapped_location" = yes ; then
4608 cat >>confdefs.h
<<\_ACEOF
4609 #define USE_MAPPED_LOCATION 1
4614 # Enable code coverage collection
4615 # Check whether --enable-coverage or --disable-coverage was given.
4616 if test "${enable_coverage+set}" = set; then
4617 enableval
="$enable_coverage"
4618 case "${enableval}" in
4620 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4623 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4626 # a.k.a. --disable-coverage
4630 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4631 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4632 { (exit 1); exit 1; }; }
4640 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4641 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4642 enableval
="$enable_gather_detailed_mem_stats"
4645 enable_gather_detailed_mem_stats
=no
4647 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4649 cat >>confdefs.h
<<\_ACEOF
4650 #define GATHER_STATISTICS 1
4655 # -------------------------------
4656 # Miscenalleous configure options
4657 # -------------------------------
4661 # Check whether --with-stabs or --without-stabs was given.
4662 if test "${with_stabs+set}" = set; then
4663 withval
="$with_stabs"
4669 # Determine whether or not multilibs are enabled.
4670 # Check whether --enable-multilib or --disable-multilib was given.
4671 if test "${enable_multilib+set}" = set; then
4672 enableval
="$enable_multilib"
4679 # Enable __cxa_atexit for C++.
4680 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4681 if test "${enable___cxa_atexit+set}" = set; then
4682 enableval
="$enable___cxa_atexit"
4687 # Pass with no value to take the default
4688 # Pass with a value to specify a thread package
4689 # Check whether --enable-threads or --disable-threads was given.
4690 if test "${enable_threads+set}" = set; then
4691 enableval
="$enable_threads"
4697 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4698 if test "${enable_objc_gc+set}" = set; then
4699 enableval
="$enable_objc_gc"
4700 if test x
$enable_objc_gc = xno
; then
4710 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4711 if test "${with_dwarf2+set}" = set; then
4712 withval
="$with_dwarf2"
4713 dwarf2
="$with_dwarf2"
4718 # Check whether --enable-shared or --disable-shared was given.
4719 if test "${enable_shared+set}" = set; then
4720 enableval
="$enable_shared"
4722 case $enable_shared in
4726 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4727 for pkg
in $enableval; do
4728 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4742 # Check whether --with-sysroot or --without-sysroot was given.
4743 if test "${with_sysroot+set}" = set; then
4744 withval
="$with_sysroot"
4746 case ${with_sysroot} in
4747 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4748 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4751 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4752 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4754 if test "x$exec_prefix" = xNONE
; then
4755 if test "x$prefix" = xNONE
; then
4756 test_prefix
=/usr
/local
4761 test_prefix
=$exec_prefix
4763 case ${TARGET_SYSTEM_ROOT} in
4764 "${test_prefix}"|
"${test_prefix}/"*|\
4765 '${exec_prefix}'|
'${exec_prefix}/'*)
4766 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4767 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4774 TARGET_SYSTEM_ROOT_DEFINE
=
4775 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4782 # Build with intermodule optimisations
4783 # Check whether --enable-intermodule or --disable-intermodule was given.
4784 if test "${enable_intermodule+set}" = set; then
4785 enableval
="$enable_intermodule"
4786 case ${enable_intermodule} in
4787 yes) onestep
="-onestep";;
4795 # Sanity check enable_languages in case someone does not run the toplevel
4796 # configure # script.
4797 # Check whether --enable-languages or --disable-languages was given.
4798 if test "${enable_languages+set}" = set; then
4799 enableval
="$enable_languages"
4800 case ,${enable_languages}, in
4802 # go safe -- we cannot be much sure without the toplevel
4804 # analysis of which target libs are present and usable
4808 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4809 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4810 { (exit 1); exit 1; }; }
4815 enable_languages
=c
,${enable_languages}
4823 for lang
in ${srcdir}/*/config-lang.
in
4826 # The odd quoting in the next line works around
4827 # an apparent bug in bash 1.12 on linux.
4828 ${srcdir}/[*]/config-lang.
in) ;;
4830 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4831 if test "x$lang_alias" = x
4833 echo "$lang doesn't set \$language." 1>&2
4836 case ",$enable_languages," in
4838 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4845 # -------------------------
4846 # Checks for other programs
4847 # -------------------------
4849 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4850 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4851 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4852 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.
make <<\_ACEOF
4857 @
echo 'ac_maketemp="$(MAKE)"'
4859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4860 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4861 if test -n "$ac_maketemp"; then
4862 eval ac_cv_prog_make_
${ac_make}_set
=yes
4864 eval ac_cv_prog_make_
${ac_make}_set
=no
4868 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4873 echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 SET_MAKE
="MAKE=${MAKE-make}"
4879 # Find some useful tools
4880 for ac_prog
in gawk mawk nawk
awk
4882 # Extract the first word of "$ac_prog", so it can be a program name with args.
4883 set dummy
$ac_prog; ac_word
=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AWK+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$AWK"; then
4890 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AWK
="$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 if test -n "$AWK"; then
4910 echo "$as_me:$LINENO: result: $AWK" >&5
4911 echo "${ECHO_T}$AWK" >&6
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AWK" && break
4920 # We need awk to create options.c and options.h.
4921 # Bail out if it's missing.
4923 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4924 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4928 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4929 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4930 if test "${gcc_cv_prog_LN_S+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4933 rm -f conftestdata_t
4934 echo >conftestdata_f
4935 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4937 gcc_cv_prog_LN_S
="ln -s"
4939 if ln conftestdata_f conftestdata_t
2>/dev
/null
4946 rm -f conftestdata_f conftestdata_t
4949 LN_S
="$gcc_cv_prog_LN_S"
4950 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4954 if test "$gcc_cv_prog_LN_S" = "ln"; then
4955 echo "$as_me:$LINENO: result: no, using ln" >&5
4956 echo "${ECHO_T}no, using ln" >&6
4958 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4959 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4963 echo "$as_me:$LINENO: checking whether ln works" >&5
4964 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4965 if test "${acx_cv_prog_LN+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 rm -f conftestdata_t
4969 echo >conftestdata_f
4970 if ln conftestdata_f conftestdata_t
2>/dev
/null
4976 rm -f conftestdata_f conftestdata_t
4979 if test $acx_cv_prog_LN = no
; then
4981 echo "$as_me:$LINENO: result: no, using $LN" >&5
4982 echo "${ECHO_T}no, using $LN" >&6
4984 LN
="$acx_cv_prog_LN"
4985 echo "$as_me:$LINENO: result: yes" >&5
4986 echo "${ECHO_T}yes" >&6
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4992 echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994 if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5004 test -z "$as_dir" && as_dir
=.
5005 for ac_exec_ext
in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 RANLIB
=$ac_cv_prog_RANLIB
5017 if test -n "$RANLIB"; then
5018 echo "$as_me:$LINENO: result: $RANLIB" >&5
5019 echo "${ECHO_T}$RANLIB" >&6
5021 echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6
5026 if test -z "$ac_cv_prog_RANLIB"; then
5027 ac_ct_RANLIB
=$RANLIB
5028 # Extract the first word of "ranlib", so it can be a program name with args.
5029 set dummy ranlib
; ac_word
=$2
5030 echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -n "$ac_ct_RANLIB"; then
5036 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir
=.
5043 for ac_exec_ext
in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5055 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5056 if test -n "$ac_ct_RANLIB"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5058 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5060 echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 RANLIB
=$ac_ct_RANLIB
5066 RANLIB
="$ac_cv_prog_RANLIB"
5071 # By default, the Darwin ranlib will not treat common symbols as
5072 # definitions when building the archive table of contents. Other
5073 # ranlibs do that; pass an option to the Darwin ranlib that makes
5074 # it behave similarly.
5082 # Find a good install program. We prefer a C program (faster),
5083 # so one script is as good as another. But avoid the broken or
5084 # incompatible versions:
5085 # SysV /etc/install, /usr/sbin/install
5086 # SunOS /usr/etc/install
5087 # IRIX /sbin/install
5089 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5090 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5091 # ./install, which can be erroneously created by make from ./install.sh.
5092 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5093 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5094 if test -z "$INSTALL"; then
5095 if test "${ac_cv_path_install+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5098 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
5099 for ac_dir
in $PATH; do
5100 # Account for people who put trailing slashes in PATH elements.
5102 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5104 # OSF1 and SCO ODT 3.0 have their own names for install.
5105 for ac_prog
in ginstall scoinst
install; do
5106 if test -f $ac_dir/$ac_prog; then
5107 if test $ac_prog = install &&
5108 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5109 # AIX install. It has an incompatible calling convention.
5110 # OSF/1 installbsd also uses dspmsg, but is usable.
5113 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5124 if test "${ac_cv_path_install+set}" = set; then
5125 INSTALL
="$ac_cv_path_install"
5127 # As a last resort, use the slow shell script. We don't cache a
5128 # path for INSTALL within a source directory, because that will
5129 # break other packages using the cache if that directory is
5130 # removed, or if the path is relative.
5131 INSTALL
="$ac_install_sh"
5134 echo "$as_me:$LINENO: result: $INSTALL" >&5
5135 echo "${ECHO_T}$INSTALL" >&6
5137 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5138 # It thinks the first close brace ends the variable substitution.
5139 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5141 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5144 # See if cmp has --ignore-initial.
5145 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5146 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5147 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 gcc_cv_prog_cmp_skip
=slowcompare
5153 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5154 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5157 gcc_cv_prog_cmp_skip
=gnucompare
5160 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5161 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5162 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5165 gcc_cv_prog_cmp_skip
=fastcompare
5172 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5173 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5174 make_compare_target
=$gcc_cv_prog_cmp_skip
5178 # See if we have the mktemp command.
5179 # Extract the first word of "mktemp", so it can be a program name with args.
5180 set dummy mktemp
; ac_word
=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test -n "$have_mktemp_command"; then
5187 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir
=.
5194 for ac_exec_ext
in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_have_mktemp_command
="yes"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5206 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5207 if test -n "$have_mktemp_command"; then
5208 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5209 echo "${ECHO_T}$have_mktemp_command" >&6
5211 echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6
5216 # Do we have a single-tree copy of texinfo?
5217 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
5218 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
5219 gcc_cv_prog_makeinfo_modern
=yes
5220 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5221 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5223 # See if makeinfo has been installed and is modern enough
5224 # that we can use it.
5225 # Extract the first word of "makeinfo", so it can be a program name with args.
5226 set dummy makeinfo
; ac_word
=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 if test -n "$MAKEINFO"; then
5233 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5239 test -z "$as_dir" && as_dir
=.
5240 for ac_exec_ext
in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_MAKEINFO
="makeinfo"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251 MAKEINFO
=$ac_cv_prog_MAKEINFO
5252 if test -n "$MAKEINFO"; then
5253 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5254 echo "${ECHO_T}$MAKEINFO" >&6
5256 echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5260 if test -n "$MAKEINFO"; then
5261 # Found it, now check the version.
5262 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5263 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5264 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5268 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5269 echo "configure:5269: version of makeinfo is $ac_prog_version" >&5
5270 case $ac_prog_version in
5271 '') gcc_cv_prog_makeinfo_modern
=no
;;
5273 gcc_cv_prog_makeinfo_modern
=yes;;
5274 *) gcc_cv_prog_makeinfo_modern
=no
;;
5278 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5279 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5281 gcc_cv_prog_makeinfo_modern
=no
5286 if test $gcc_cv_prog_makeinfo_modern = no
; then
5287 { echo "$as_me:$LINENO: WARNING:
5288 *** Makeinfo is missing or too old.
5289 *** Info documentation will not be built." >&5
5290 echo "$as_me: WARNING:
5291 *** Makeinfo is missing or too old.
5292 *** Info documentation will not be built." >&2;}
5298 # Is pod2man recent enough to regenerate manpages?
5299 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5300 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5301 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5302 echo "$as_me:$LINENO: result: yes" >&5
5303 echo "${ECHO_T}yes" >&6
5304 GENERATED_MANPAGES
=generated-manpages
5306 echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6
5312 if test x
${build} = x
${host} && test -f $srcdir/..
/flex
/skel.c
; then
5313 FLEX
='$(objdir)/../flex/flex'
5315 # Extract the first word of "flex", so it can be a program name with args.
5316 set dummy flex
; ac_word
=$2
5317 echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5319 if test "${ac_cv_prog_FLEX+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 if test -n "$FLEX"; then
5323 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir
=.
5330 for ac_exec_ext
in '' $ac_executable_extensions; do
5331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_FLEX
="flex"
5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5342 FLEX
=$ac_cv_prog_FLEX
5343 if test -n "$FLEX"; then
5344 echo "$as_me:$LINENO: result: $FLEX" >&5
5345 echo "${ECHO_T}$FLEX" >&6
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5354 # The -L switch is so bison can find its skeleton file.
5355 if test x
${build} = x
${host} && test -f $srcdir/..
/bison
/bison.simple
; then
5356 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5358 # Extract the first word of "bison", so it can be a program name with args.
5359 set dummy bison
; ac_word
=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_BISON+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5365 if test -n "$BISON"; then
5366 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5372 test -z "$as_dir" && as_dir
=.
5373 for ac_exec_ext
in '' $ac_executable_extensions; do
5374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375 ac_cv_prog_BISON
="bison"
5376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5385 BISON
=$ac_cv_prog_BISON
5386 if test -n "$BISON"; then
5387 echo "$as_me:$LINENO: result: $BISON" >&5
5388 echo "${ECHO_T}$BISON" >&6
5390 echo "$as_me:$LINENO: result: no" >&5
5391 echo "${ECHO_T}no" >&6
5396 # --------------------
5397 # Checks for C headers
5398 # --------------------
5400 echo "$as_me:$LINENO: checking for GNU C library" >&5
5401 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5402 if test "${gcc_cv_glibc+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 cat >conftest.
$ac_ext <<_ACEOF
5408 cat confdefs.h
>>conftest.
$ac_ext
5409 cat >>conftest.
$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <features.h>
5416 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5417 #error Not a GNU C library system
5423 rm -f conftest.
$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>conftest.er1
5427 grep -v '^ *+' conftest.er1
>conftest.err
5429 cat conftest.err
>&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } &&
5432 { ac_try
='test -z "$ac_c_werror_flag"
5433 || test ! -s conftest.err'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try
='test -s conftest.$ac_objext'
5440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); }; }; then
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5455 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5456 echo "${ECHO_T}$gcc_cv_glibc" >&6
5457 if test $gcc_cv_glibc = yes; then
5459 cat >>confdefs.h
<<\_ACEOF
5460 #define _GNU_SOURCE 1
5465 # Need to reject headers which give warnings, so that the -Werror bootstrap
5466 # works later. *sigh* This needs to come before all header checks.
5468 ac_c_preproc_warn_flag
=yes
5470 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5471 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5472 if test "${ac_cv_header_stdc+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 cat >conftest.
$ac_ext <<_ACEOF
5478 cat confdefs.h
>>conftest.
$ac_ext
5479 cat >>conftest.
$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5494 rm -f conftest.
$ac_objext
5495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5498 grep -v '^ *+' conftest.er1
>conftest.err
5500 cat conftest.err
>&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try
='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try
='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
5516 ac_cv_header_stdc
=yes
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.
$ac_ext >&5
5521 ac_cv_header_stdc
=no
5523 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5525 if test $ac_cv_header_stdc = yes; then
5526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5527 cat >conftest.
$ac_ext <<_ACEOF
5530 cat confdefs.h
>>conftest.
$ac_ext
5531 cat >>conftest.
$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "memchr" >/dev
/null
2>&1; then
5540 ac_cv_header_stdc
=no
5546 if test $ac_cv_header_stdc = yes; then
5547 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5548 cat >conftest.
$ac_ext <<_ACEOF
5551 cat confdefs.h
>>conftest.
$ac_ext
5552 cat >>conftest.
$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5558 $EGREP "free" >/dev
/null
2>&1; then
5561 ac_cv_header_stdc
=no
5567 if test $ac_cv_header_stdc = yes; then
5568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5569 if test "$cross_compiling" = yes; then
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 #if ((' ' & 0x0FF) == 0x020)
5580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5583 # define ISLOWER(c) \
5584 (('a' <= (c) && (c) <= 'i') \
5585 || ('j' <= (c) && (c) <= 'r') \
5586 || ('s' <= (c) && (c) <= 'z'))
5587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5595 for (i = 0; i < 256; i++)
5596 if (XOR (islower (i), ISLOWER (i))
5597 || toupper (i) != TOUPPER (i))
5602 rm -f conftest
$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604 (eval $ac_link) 2>&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5615 echo "$as_me: program exited with status $ac_status" >&5
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.
$ac_ext >&5
5620 ac_cv_header_stdc
=no
5622 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5627 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5628 if test $ac_cv_header_stdc = yes; then
5630 cat >>confdefs.h
<<\_ACEOF
5631 #define STDC_HEADERS 1
5636 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5637 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5638 if test "${ac_cv_header_time+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 cat >conftest.
$ac_ext <<_ACEOF
5644 cat confdefs.h
>>conftest.
$ac_ext
5645 cat >>conftest.
$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 #include <sys/types.h>
5648 #include <sys/time.h>
5654 if ((struct tm *) 0)
5660 rm -f conftest.
$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662 (eval $ac_compile) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1
>conftest.err
5666 cat conftest.err
>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try
='test -z "$ac_c_werror_flag"
5670 || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try
='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_header_time
=yes
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.
$ac_ext >&5
5687 ac_cv_header_time
=no
5689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5692 echo "${ECHO_T}$ac_cv_header_time" >&6
5693 if test $ac_cv_header_time = yes; then
5695 cat >>confdefs.h
<<\_ACEOF
5696 #define TIME_WITH_SYS_TIME 1
5701 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5702 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5703 if test "${gcc_cv_header_string+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5706 cat >conftest.
$ac_ext <<_ACEOF
5709 cat confdefs.h
>>conftest.
$ac_ext
5710 cat >>conftest.
$ac_ext <<_ACEOF
5711 /* end confdefs.h. */
5713 #include <strings.h>
5722 rm -f conftest.
$ac_objext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>conftest.er1
5726 grep -v '^ *+' conftest.er1
>conftest.err
5728 cat conftest.err
>&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try
='test -z "$ac_c_werror_flag"
5732 || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try
='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 gcc_cv_header_string
=yes
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.
$ac_ext >&5
5749 gcc_cv_header_string
=no
5751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5753 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5754 echo "${ECHO_T}$gcc_cv_header_string" >&6
5755 if test $gcc_cv_header_string = yes; then
5757 cat >>confdefs.h
<<\_ACEOF
5758 #define STRING_WITH_STRINGS 1
5763 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5764 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5765 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 #include <sys/types.h>
5775 #include <sys/wait.h>
5777 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5780 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5788 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5793 rm -f conftest.
$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } &&
5802 { ac_try
='test -z "$ac_c_werror_flag"
5803 || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try
='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_header_sys_wait_h
=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.
$ac_ext >&5
5820 ac_cv_header_sys_wait_h
=no
5822 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5824 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5825 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5826 if test $ac_cv_header_sys_wait_h = yes; then
5828 cat >>confdefs.h
<<\_ACEOF
5829 #define HAVE_SYS_WAIT_H 1
5855 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5856 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5857 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5858 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5860 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5861 echo "$as_me:$LINENO: checking for $ac_header" >&5
5862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <$ac_header>
5874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5877 grep -v '^ *+' conftest.er1
>conftest.err
5879 cat conftest.err
>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } >/dev
/null
; then
5882 if test -s conftest.err
; then
5883 ac_cpp_err
=$ac_c_preproc_warn_flag
5884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5891 if test -z "$ac_cpp_err"; then
5892 eval "$as_ac_Header=yes"
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.
$ac_ext >&5
5897 eval "$as_ac_Header=no"
5899 rm -f conftest.err conftest.
$ac_ext
5901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5904 cat >>confdefs.h
<<_ACEOF
5905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5912 # Check for thread headers.
5913 echo "$as_me:$LINENO: checking for thread.h" >&5
5914 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5915 if test "${ac_cv_header_thread_h+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 cat >conftest.
$ac_ext <<_ACEOF
5921 cat confdefs.h
>>conftest.
$ac_ext
5922 cat >>conftest.
$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5927 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5929 grep -v '^ *+' conftest.er1
>conftest.err
5931 cat conftest.err
>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } >/dev
/null
; then
5934 if test -s conftest.err
; then
5935 ac_cpp_err
=$ac_c_preproc_warn_flag
5936 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5943 if test -z "$ac_cpp_err"; then
5944 ac_cv_header_thread_h
=yes
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.
$ac_ext >&5
5949 ac_cv_header_thread_h
=no
5951 rm -f conftest.err conftest.
$ac_ext
5953 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5954 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5955 if test $ac_cv_header_thread_h = yes; then
5961 echo "$as_me:$LINENO: checking for pthread.h" >&5
5962 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5963 if test "${ac_cv_header_pthread_h+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <pthread.h>
5974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5975 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1
>conftest.err
5979 cat conftest.err
>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } >/dev
/null
; then
5982 if test -s conftest.err
; then
5983 ac_cpp_err
=$ac_c_preproc_warn_flag
5984 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5991 if test -z "$ac_cpp_err"; then
5992 ac_cv_header_pthread_h
=yes
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.
$ac_ext >&5
5997 ac_cv_header_pthread_h
=no
5999 rm -f conftest.err conftest.
$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6002 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6003 if test $ac_cv_header_pthread_h = yes; then
6010 # These tests can't be done till we know if we have limits.h.
6011 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6012 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6013 if test "${gcc_cv_decl_char_bit+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 cat >conftest.
$ac_ext <<_ACEOF
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #ifdef HAVE_LIMITS_H
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "found" >/dev
/null
2>&1; then
6031 gcc_cv_decl_char_bit
=yes
6033 gcc_cv_decl_char_bit
=no
6039 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6040 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6041 if test $gcc_cv_decl_char_bit = no
; then
6042 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6043 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6044 if test "${gcc_cv_c_nbby+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 while test $i -lt 65; do
6050 cat >conftest.
$ac_ext <<_ACEOF
6053 cat confdefs.h
>>conftest.
$ac_ext
6054 cat >>conftest.
$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6061 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6062 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6068 rm -f conftest.
$ac_objext
6069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070 (eval $ac_compile) 2>conftest.er1
6072 grep -v '^ *+' conftest.er1
>conftest.err
6074 cat conftest.err
>&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); } &&
6077 { ac_try
='test -z "$ac_c_werror_flag"
6078 || test ! -s conftest.err'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try
='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 gcc_cv_c_nbby
=$i; break
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6099 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6102 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6103 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6104 if test $gcc_cv_c_nbby = failed
; then
6105 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6106 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6107 { (exit 1); exit 1; }; }
6110 cat >>confdefs.h
<<_ACEOF
6111 #define CHAR_BIT $gcc_cv_c_nbby
6116 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6117 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6118 if test "${ac_cv_c_bigendian+set}" = set; then
6119 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 ac_cv_c_bigendian
=unknown
6122 # See if sys/param.h defines the BYTE_ORDER macro.
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <sys/types.h>
6130 #include <sys/param.h>
6135 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6142 rm -f conftest.
$ac_objext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>conftest.er1
6146 grep -v '^ *+' conftest.er1
>conftest.err
6148 cat conftest.err
>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try
='test -z "$ac_c_werror_flag"
6152 || test ! -s conftest.err'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; } &&
6158 { ac_try
='test -s conftest.$ac_objext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 # It does; now see whether it defined to BIG_ENDIAN or not.
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <sys/types.h>
6172 #include <sys/param.h>
6177 #if BYTE_ORDER != BIG_ENDIAN
6184 rm -f conftest.
$ac_objext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6188 grep -v '^ *+' conftest.er1
>conftest.err
6190 cat conftest.err
>&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try
='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try
='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_c_bigendian
=yes
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.
$ac_ext >&5
6211 ac_cv_c_bigendian
=no
6213 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6215 echo "$as_me: failed program was:" >&5
6216 sed 's/^/| /' conftest.
$ac_ext >&5
6219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6220 if test $ac_cv_c_bigendian = unknown
; then
6221 if test "$cross_compiling" = yes; then
6222 echo $ac_n "cross-compiling... " 2>&6
6224 cat >conftest.
$ac_ext <<_ACEOF
6227 cat confdefs.h
>>conftest.
$ac_ext
6228 cat >>conftest.
$ac_ext <<_ACEOF
6229 /* end confdefs.h. */
6231 /* Are we little or big endian? From Harbison&Steele. */
6235 char c[sizeof (long)];
6238 exit (u.c[sizeof (long) - 1] == 1);
6241 rm -f conftest
$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243 (eval $ac_link) 2>&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 ac_cv_c_bigendian
=no
6254 echo "$as_me: program exited with status $ac_status" >&5
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.
$ac_ext >&5
6259 ac_cv_c_bigendian
=yes
6261 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6265 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6266 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6267 if test $ac_cv_c_bigendian = unknown
; then
6268 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6269 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6271 cat >conftest.c
<<EOF
6272 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6273 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6274 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6275 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6276 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6277 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6278 int main() { _ascii (); _ebcdic (); return 0; }
6280 if test -f conftest.c
; then
6281 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6282 if test `grep -l BIGenDianSyS conftest.o` ; then
6283 echo $ac_n ' big endian probe OK, ' 1>&6
6284 ac_cv_c_bigendian
=yes
6286 if test `grep -l LiTTleEnDian conftest.o` ; then
6287 echo $ac_n ' little endian probe OK, ' 1>&6
6288 if test $ac_cv_c_bigendian = yes ; then
6289 ac_cv_c_bigendian
=unknown
;
6291 ac_cv_c_bigendian
=no
6294 echo $ac_n 'guessing bigendian ... ' >&6
6297 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6298 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6300 if test $ac_cv_c_bigendian = yes; then
6302 cat >>confdefs.h
<<\_ACEOF
6303 #define WORDS_BIGENDIAN 1
6307 cat >>confdefs.h
<<\_ACEOF
6308 #define HOST_WORDS_BIG_ENDIAN 1
6316 cat >>confdefs.h
<<_ACEOF
6317 #define BYTEORDER $BYTEORDER
6320 if test $ac_cv_c_bigendian = unknown
; then
6321 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6322 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6323 { (exit 1); exit 1; }; }
6331 # Stage specific cflags for build.
6335 if test x
$GCC = xyes
6337 stage1_cflags
="-Wa,-J"
6343 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6344 # sources; use -no-cpp-precomp to get to GNU cpp.
6345 # Apple's GCC has bugs in designated initializer handling, so disable
6347 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6352 # These libraries may be used by collect2.
6353 # We may need a special search path to get them linked.
6354 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6355 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6356 if test "${gcc_cv_collect2_libs+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 for libs
in '' -lld -lmld \
6361 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6362 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6376 /* We use char because int might match the return type of a gcc2
6377 builtin and then its argument prototype would still apply. */
6387 rm -f conftest.
$ac_objext conftest
$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try
='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6409 gcc_cv_collect2_libs
="$libs"; break
6411 echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.
$ac_ext >&5
6415 rm -f conftest.err conftest.
$ac_objext \
6416 conftest
$ac_exeext conftest.
$ac_ext
6419 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6421 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6422 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6423 case $gcc_cv_collect2_libs in
6425 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6429 # When building Ada code on Alpha, we need exc_resume which is usually in
6430 # -lexc. So test for it.
6433 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6434 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6435 if test "${ac_cv_search_exc_resume+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 ac_func_search_save_LIBS
=$LIBS
6439 ac_cv_search_exc_resume
=no
6440 cat >conftest.
$ac_ext <<_ACEOF
6443 cat confdefs.h
>>conftest.
$ac_ext
6444 cat >>conftest.
$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6462 rm -f conftest.
$ac_objext conftest
$ac_exeext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6464 (eval $ac_link) 2>conftest.er1
6466 grep -v '^ *+' conftest.er1
>conftest.err
6468 cat conftest.err
>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try
='test -z "$ac_c_werror_flag"
6472 || test ! -s conftest.err'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; } &&
6478 { ac_try
='test -s conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6484 ac_cv_search_exc_resume
="none required"
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.
$ac_ext >&5
6490 rm -f conftest.err conftest.
$ac_objext \
6491 conftest
$ac_exeext conftest.
$ac_ext
6492 if test "$ac_cv_search_exc_resume" = no
; then
6493 for ac_lib
in exc
; do
6494 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6495 cat >conftest.
$ac_ext <<_ACEOF
6498 cat confdefs.h
>>conftest.
$ac_ext
6499 cat >>conftest.
$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6517 rm -f conftest.
$ac_objext conftest
$ac_exeext
6518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6519 (eval $ac_link) 2>conftest.er1
6521 grep -v '^ *+' conftest.er1
>conftest.err
6523 cat conftest.err
>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -z "$ac_c_werror_flag"
6527 || test ! -s conftest.err'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try
='test -s conftest$ac_exeext'
6534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 ac_cv_search_exc_resume
="-l$ac_lib"
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.
$ac_ext >&5
6546 rm -f conftest.err conftest.
$ac_objext \
6547 conftest
$ac_exeext conftest.
$ac_ext
6550 LIBS
=$ac_func_search_save_LIBS
6552 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6553 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6554 if test "$ac_cv_search_exc_resume" != no
; then
6555 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6563 # Some systems put ldexp and frexp in libm instead of libc; assume
6564 # they're both in the same place. jcf-dump needs them.
6567 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6568 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6569 if test "${ac_cv_search_ldexp+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_func_search_save_LIBS
=$LIBS
6573 ac_cv_search_ldexp
=no
6574 cat >conftest.
$ac_ext <<_ACEOF
6577 cat confdefs.h
>>conftest.
$ac_ext
6578 cat >>conftest.
$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6581 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6596 rm -f conftest.
$ac_objext conftest
$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6600 grep -v '^ *+' conftest.er1
>conftest.err
6602 cat conftest.err
>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try
='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try
='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_search_ldexp
="none required"
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.
$ac_ext >&5
6624 rm -f conftest.err conftest.
$ac_objext \
6625 conftest
$ac_exeext conftest.
$ac_ext
6626 if test "$ac_cv_search_ldexp" = no
; then
6628 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6629 cat >conftest.
$ac_ext <<_ACEOF
6632 cat confdefs.h
>>conftest.
$ac_ext
6633 cat >>conftest.
$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6636 /* Override any gcc2 internal prototype to avoid an error. */
6640 /* We use char because int might match the return type of a gcc2
6641 builtin and then its argument prototype would still apply. */
6651 rm -f conftest.
$ac_objext conftest
$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653 (eval $ac_link) 2>conftest.er1
6655 grep -v '^ *+' conftest.er1
>conftest.err
6657 cat conftest.err
>&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try
='test -z "$ac_c_werror_flag"
6661 || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try
='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 ac_cv_search_ldexp
="-l$ac_lib"
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.
$ac_ext >&5
6680 rm -f conftest.err conftest.
$ac_objext \
6681 conftest
$ac_exeext conftest.
$ac_ext
6684 LIBS
=$ac_func_search_save_LIBS
6686 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6687 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6688 if test "$ac_cv_search_ldexp" != no
; then
6689 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6697 # Use <inttypes.h> only if it exists,
6698 # doesn't clash with <sys/types.h>, and declares intmax_t.
6699 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6700 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6701 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 cat >conftest.
$ac_ext <<_ACEOF
6707 cat confdefs.h
>>conftest.
$ac_ext
6708 cat >>conftest.
$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <inttypes.h>
6720 rm -f conftest.
$ac_objext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6722 (eval $ac_compile) 2>conftest.er1
6724 grep -v '^ *+' conftest.er1
>conftest.err
6726 cat conftest.err
>&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } &&
6729 { ac_try
='test -z "$ac_c_werror_flag"
6730 || test ! -s conftest.err'
6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); }; } &&
6736 { ac_try
='test -s conftest.$ac_objext'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; }; then
6742 gcc_cv_header_inttypes_h
=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 gcc_cv_header_inttypes_h
=no
6749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6752 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6753 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6754 if test $gcc_cv_header_inttypes_h = yes; then
6756 cat >>confdefs.h
<<\_ACEOF
6757 #define HAVE_INTTYPES_H 1
6788 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6789 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6790 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6791 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6794 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6795 echo "$as_me:$LINENO: checking for $ac_func" >&5
6796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6797 if eval "test \"\${$as_ac_var+set}\" = set"; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 cat >conftest.
$ac_ext <<_ACEOF
6803 cat confdefs.h
>>conftest.
$ac_ext
6804 cat >>conftest.
$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6808 #define $ac_func innocuous_$ac_func
6810 /* System header to define __stub macros and hopefully few prototypes,
6811 which can conflict with char $ac_func (); below.
6812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6813 <limits.h> exists even on freestanding compilers. */
6816 # include <limits.h>
6818 # include <assert.h>
6823 /* Override any gcc2 internal prototype to avoid an error. */
6828 /* We use char because int might match the return type of a gcc2
6829 builtin and then its argument prototype would still apply. */
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6837 char (*f) () = $ac_func;
6846 return f != $ac_func;
6851 rm -f conftest.
$ac_objext conftest
$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1
>conftest.err
6857 cat conftest.err
>&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try
='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try
='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 eval "$as_ac_var=yes"
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.
$ac_ext >&5
6878 eval "$as_ac_var=no"
6880 rm -f conftest.err conftest.
$ac_objext \
6881 conftest
$ac_exeext conftest.
$ac_ext
6883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6885 if test `eval echo '${'$as_ac_var'}'` = yes; then
6886 cat >>confdefs.h
<<_ACEOF
6887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6894 if test x
$ac_cv_func_mbstowcs = xyes
; then
6895 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6896 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6897 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 if test "$cross_compiling" = yes; then
6901 gcc_cv_func_mbstowcs_works
=yes
6903 cat >conftest.
$ac_ext <<_ACEOF
6906 cat confdefs.h
>>conftest.
$ac_ext
6907 cat >>conftest.
$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6916 rm -f conftest
$ac_exeext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6918 (eval $ac_link) 2>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6927 gcc_cv_func_mbstowcs_works
=yes
6929 echo "$as_me: program exited with status $ac_status" >&5
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.
$ac_ext >&5
6934 gcc_cv_func_mbstowcs_works
=no
6936 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6939 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6940 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6941 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6943 cat >>confdefs.h
<<\_ACEOF
6944 #define HAVE_WORKING_MBSTOWCS 1
6950 echo "$as_me:$LINENO: checking for ssize_t" >&5
6951 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6952 if test "${ac_cv_type_ssize_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.
$ac_ext <<_ACEOF
6958 cat confdefs.h
>>conftest.
$ac_ext
6959 cat >>conftest.
$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 $ac_includes_default
6967 if (sizeof (ssize_t))
6973 rm -f conftest.
$ac_objext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975 (eval $ac_compile) 2>conftest.er1
6977 grep -v '^ *+' conftest.er1
>conftest.err
6979 cat conftest.err
>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } &&
6982 { ac_try
='test -z "$ac_c_werror_flag"
6983 || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try
='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_type_ssize_t
=yes
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.
$ac_ext >&5
7000 ac_cv_type_ssize_t
=no
7002 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7004 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7005 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7006 if test $ac_cv_type_ssize_t = yes; then
7010 cat >>confdefs.h
<<_ACEOF
7017 # Try to determine the array type of the second argument of getgroups
7018 # for the target system (int or gid_t).
7019 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7020 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7021 if test "${ac_cv_type_uid_t+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 cat >conftest.
$ac_ext <<_ACEOF
7027 cat confdefs.h
>>conftest.
$ac_ext
7028 cat >>conftest.
$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <sys/types.h>
7033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "uid_t" >/dev
/null
2>&1; then
7035 ac_cv_type_uid_t
=yes
7042 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7043 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7044 if test $ac_cv_type_uid_t = no
; then
7046 cat >>confdefs.h
<<\_ACEOF
7051 cat >>confdefs.h
<<\_ACEOF
7057 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7058 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7059 if test "${ac_cv_type_getgroups+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 if test "$cross_compiling" = yes; then
7063 ac_cv_type_getgroups
=cross
7065 cat >conftest.
$ac_ext <<_ACEOF
7068 cat confdefs.h
>>conftest.
$ac_ext
7069 cat >>conftest.
$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 /* Thanks to Mike Rendell for this test. */
7072 #include <sys/types.h>
7075 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7082 union { gid_t gval; long lval; } val;
7085 for (i = 0; i < NGID; i++)
7086 gidset[i] = val.gval;
7087 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7089 /* Exit non-zero if getgroups seems to require an array of ints. This
7090 happens when gid_t is short but getgroups modifies an array of ints. */
7091 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7094 rm -f conftest
$ac_exeext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_type_getgroups
=gid_t
7107 echo "$as_me: program exited with status $ac_status" >&5
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.
$ac_ext >&5
7112 ac_cv_type_getgroups
=int
7114 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7116 if test $ac_cv_type_getgroups = cross
; then
7117 cat >conftest.
$ac_ext <<_ACEOF
7120 cat confdefs.h
>>conftest.
$ac_ext
7121 cat >>conftest.
$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7127 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7128 ac_cv_type_getgroups
=gid_t
7130 ac_cv_type_getgroups
=int
7136 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7137 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7139 cat >>confdefs.h
<<_ACEOF
7140 #define GETGROUPS_T $ac_cv_type_getgroups
7144 if test "${target}" = "${build}"; then
7145 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7148 # This condition may need some tweaking. It should include all
7149 # targets where the array type of the second argument of getgroups
7150 # is int and the type of gid_t is not equivalent to int.
7151 *-*-sunos* |
*-*-ultrix*)
7152 TARGET_GETGROUPS_T
=int
7155 TARGET_GETGROUPS_T
=gid_t
7161 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7162 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7163 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test "$cross_compiling" = yes; then
7167 gcc_cv_func_printf_ptr
=no
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7180 char *p = buf, *q = NULL;
7181 sprintf(buf, "%p", p);
7182 sscanf(buf, "%p", &q);
7186 rm -f conftest
$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7197 gcc_cv_func_printf_ptr
=yes
7199 echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.
$ac_ext >&5
7204 gcc_cv_func_printf_ptr
=no
7206 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7208 rm -f core core.
* *.core
7210 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7211 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7212 if test $gcc_cv_func_printf_ptr = yes ; then
7214 cat >>confdefs.h
<<\_ACEOF
7215 #define HAVE_PRINTF_PTR 1
7220 if test $ac_cv_header_sys_mman_h != yes \
7221 ||
test $ac_cv_func_mmap != yes; then
7222 gcc_cv_func_mmap_file
=no
7223 gcc_cv_func_mmap_dev_zero
=no
7224 gcc_cv_func_mmap_anon
=no
7226 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7227 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7228 if test "${gcc_cv_func_mmap_file+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7231 # Add a system to this blacklist if
7232 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7233 # memory area containing the same data that you'd get if you applied
7234 # read() to the same fd. The only system known to have a problem here
7235 # is VMS, where text files have record structure.
7238 gcc_cv_func_mmap_file
=no
;;
7240 gcc_cv_func_mmap_file
=yes;;
7243 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7244 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7245 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7246 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7247 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 # Add a system to this blacklist if it has mmap() but /dev/zero
7251 # does not exist, or if mmapping /dev/zero does not give anonymous
7252 # zeroed pages with both the following properties:
7253 # 1. If you map N consecutive pages in with one call, and then
7254 # unmap any subset of those pages, the pages that were not
7255 # explicitly unmapped remain accessible.
7256 # 2. If you map two adjacent blocks of memory and then unmap them
7257 # both at once, they must both go away.
7258 # Systems known to be in this category are Windows (all variants),
7261 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7262 gcc_cv_func_mmap_dev_zero
=no
;;
7264 gcc_cv_func_mmap_dev_zero
=yes;;
7267 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7268 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7270 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7271 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7272 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7273 if test "${gcc_cv_decl_map_anon+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 cat >conftest.
$ac_ext <<_ACEOF
7279 cat confdefs.h
>>conftest.
$ac_ext
7280 cat >>conftest.
$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 #include <sys/types.h>
7283 #include <sys/mman.h>
7286 #ifndef MAP_ANONYMOUS
7287 #define MAP_ANONYMOUS MAP_ANON
7293 int n = MAP_ANONYMOUS;
7298 rm -f conftest.
$ac_objext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7300 (eval $ac_compile) 2>conftest.er1
7302 grep -v '^ *+' conftest.er1
>conftest.err
7304 cat conftest.err
>&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try
='test -z "$ac_c_werror_flag"
7308 || test ! -s conftest.err'
7309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); }; } &&
7314 { ac_try
='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 gcc_cv_decl_map_anon
=yes
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.
$ac_ext >&5
7325 gcc_cv_decl_map_anon
=no
7327 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7329 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7330 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7332 if test $gcc_cv_decl_map_anon = no
; then
7333 gcc_cv_func_mmap_anon
=no
7335 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7336 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7337 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7341 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7342 # doesn't give anonymous zeroed pages with the same properties listed
7343 # above for use of /dev/zero.
7344 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7346 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7347 gcc_cv_func_mmap_anon
=no
;;
7349 gcc_cv_func_mmap_anon
=yes;;
7352 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7353 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7357 if test $gcc_cv_func_mmap_file = yes; then
7359 cat >>confdefs.h
<<\_ACEOF
7360 #define HAVE_MMAP_FILE 1
7364 if test $gcc_cv_func_mmap_dev_zero = yes; then
7366 cat >>confdefs.h
<<\_ACEOF
7367 #define HAVE_MMAP_DEV_ZERO 1
7371 if test $gcc_cv_func_mmap_anon = yes; then
7373 cat >>confdefs.h
<<\_ACEOF
7374 #define HAVE_MMAP_ANON 1
7382 # Under VMS, vfork works very differently than on Unix. The standard test
7383 # won't work, and it isn't easily adaptable. It makes more sense to
7385 ac_cv_func_vfork_works
=yes
7388 echo "$as_me:$LINENO: checking for pid_t" >&5
7389 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7390 if test "${ac_cv_type_pid_t+set}" = set; then
7391 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 cat >conftest.
$ac_ext <<_ACEOF
7396 cat confdefs.h
>>conftest.
$ac_ext
7397 cat >>conftest.
$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7411 rm -f conftest.
$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1
>conftest.err
7417 cat conftest.err
>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try
='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try
='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_type_pid_t
=yes
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.
$ac_ext >&5
7440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7443 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7444 if test $ac_cv_type_pid_t = yes; then
7448 cat >>confdefs.h
<<_ACEOF
7456 for ac_header
in unistd.h vfork.h
7458 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7459 echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cat >conftest.
$ac_ext <<_ACEOF
7467 cat confdefs.h
>>conftest.
$ac_ext
7468 cat >>conftest.
$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7470 #include <$ac_header>
7472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7475 grep -v '^ *+' conftest.er1
>conftest.err
7477 cat conftest.err
>&5
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } >/dev
/null
; then
7480 if test -s conftest.err
; then
7481 ac_cpp_err
=$ac_c_preproc_warn_flag
7482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7489 if test -z "$ac_cpp_err"; then
7490 eval "$as_ac_Header=yes"
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.
$ac_ext >&5
7495 eval "$as_ac_Header=no"
7497 rm -f conftest.err conftest.
$ac_ext
7499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7502 cat >>confdefs.h
<<_ACEOF
7503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7511 for ac_func
in fork vfork
7513 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7514 echo "$as_me:$LINENO: checking for $ac_func" >&5
7515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7516 if eval "test \"\${$as_ac_var+set}\" = set"; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 cat >conftest.
$ac_ext <<_ACEOF
7522 cat confdefs.h
>>conftest.
$ac_ext
7523 cat >>conftest.
$ac_ext <<_ACEOF
7524 /* end confdefs.h. */
7525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7527 #define $ac_func innocuous_$ac_func
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char $ac_func (); below.
7531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7532 <limits.h> exists even on freestanding compilers. */
7535 # include <limits.h>
7537 # include <assert.h>
7542 /* Override any gcc2 internal prototype to avoid an error. */
7547 /* We use char because int might match the return type of a gcc2
7548 builtin and then its argument prototype would still apply. */
7550 /* The GNU C library defines this for functions which it implements
7551 to always fail with ENOSYS. Some functions are actually named
7552 something starting with __ and the normal name is an alias. */
7553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7556 char (*f) () = $ac_func;
7565 return f != $ac_func;
7570 rm -f conftest.
$ac_objext conftest
$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try
='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try
='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 eval "$as_ac_var=no"
7599 rm -f conftest.err conftest.
$ac_objext \
7600 conftest
$ac_exeext conftest.
$ac_ext
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7604 if test `eval echo '${'$as_ac_var'}'` = yes; then
7605 cat >>confdefs.h
<<_ACEOF
7606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7612 if test "x$ac_cv_func_fork" = xyes
; then
7613 echo "$as_me:$LINENO: checking for working fork" >&5
7614 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7615 if test "${ac_cv_func_fork_works+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 if test "$cross_compiling" = yes; then
7619 ac_cv_func_fork_works
=cross
7621 cat >conftest.
$ac_ext <<_ACEOF
7622 /* By Ruediger Kuhlmann. */
7623 #include <sys/types.h>
7625 # include <unistd.h>
7627 /* Some systems only have a dummy stub for fork() */
7635 rm -f conftest
$ac_exeext
7636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7637 (eval $ac_link) 2>&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; }; then
7646 ac_cv_func_fork_works
=yes
7648 echo "$as_me: program exited with status $ac_status" >&5
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7653 ac_cv_func_fork_works
=no
7655 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7658 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7659 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7662 ac_cv_func_fork_works
=$ac_cv_func_fork
7664 if test "x$ac_cv_func_fork_works" = xcross
; then
7666 *-*-amigaos* |
*-*-msdosdjgpp*)
7667 # Override, as these systems have only a dummy fork() stub
7668 ac_cv_func_fork_works
=no
7671 ac_cv_func_fork_works
=yes
7674 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7675 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7677 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7678 if test "x$ac_cv_func_vfork" = xyes
; then
7679 echo "$as_me:$LINENO: checking for working vfork" >&5
7680 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7681 if test "${ac_cv_func_vfork_works+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 if test "$cross_compiling" = yes; then
7685 ac_cv_func_vfork_works
=cross
7687 cat >conftest.
$ac_ext <<_ACEOF
7690 cat confdefs.h
>>conftest.
$ac_ext
7691 cat >>conftest.
$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 /* Thanks to Paul Eggert for this test. */
7696 #include <sys/types.h>
7697 #include <sys/stat.h>
7698 #include <sys/wait.h>
7700 # include <unistd.h>
7705 /* On some sparc systems, changes by the child to local and incoming
7706 argument registers are propagated back to the parent. The compiler
7707 is told about this with #include <vfork.h>, but some compilers
7708 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7709 static variable whose address is put into a register that is
7710 clobbered by the vfork. */
7713 sparc_address_test (int arg)
7715 sparc_address_test (arg) int arg;
7736 pid_t parent = getpid ();
7739 sparc_address_test (0);
7744 /* Here is another test for sparc vfork register problems. This
7745 test uses lots of local variables, at least as many local
7746 variables as main has allocated so far including compiler
7747 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7748 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7749 reuse the register of parent for one of the local variables,
7750 since it will think that parent can't possibly be used any more
7751 in this routine. Assigning to the local variable will thus
7752 munge parent in the parent process. */
7754 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7755 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7756 /* Convince the compiler that p..p7 are live; otherwise, it might
7757 use the same hardware register for all 8 local variables. */
7758 if (p != p1 || p != p2 || p != p3 || p != p4
7759 || p != p5 || p != p6 || p != p7)
7762 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7763 from child file descriptors. If the child closes a descriptor
7764 before it execs or exits, this munges the parent's descriptor
7765 as well. Test for this by closing stdout in the child. */
7766 _exit(close(fileno(stdout)) != 0);
7771 while (wait(&status) != child)
7774 /* Was there some problem with vforking? */
7777 /* Did the child fail? (This shouldn't happen.) */
7780 /* Did the vfork/compiler bug occur? */
7781 || parent != getpid()
7783 /* Did the file descriptor bug occur? */
7784 || fstat(fileno(stdout), &st) != 0
7789 rm -f conftest
$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_func_vfork_works
=yes
7802 echo "$as_me: program exited with status $ac_status" >&5
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.
$ac_ext >&5
7807 ac_cv_func_vfork_works
=no
7809 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7813 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7816 if test "x$ac_cv_func_fork_works" = xcross
; then
7817 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7818 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7819 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7822 if test "x$ac_cv_func_vfork_works" = xyes
; then
7824 cat >>confdefs.h
<<\_ACEOF
7825 #define HAVE_WORKING_VFORK 1
7830 cat >>confdefs.h
<<\_ACEOF
7835 if test "x$ac_cv_func_fork_works" = xyes
; then
7837 cat >>confdefs.h
<<\_ACEOF
7838 #define HAVE_WORKING_FORK 1
7846 am_cv_lib_iconv_ldpath
=
7848 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7849 if test "${with_libiconv_prefix+set}" = set; then
7850 withval
="$with_libiconv_prefix"
7852 for dir
in `echo "$withval" | tr : ' '`; do
7853 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7854 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7860 for ac_header
in iconv.h
7862 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7863 echo "$as_me:$LINENO: checking for $ac_header" >&5
7864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.
$ac_ext <<_ACEOF
7871 cat confdefs.h
>>conftest.
$ac_ext
7872 cat >>conftest.
$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7874 #include <$ac_header>
7876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7877 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7879 grep -v '^ *+' conftest.er1
>conftest.err
7881 cat conftest.err
>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } >/dev
/null
; then
7884 if test -s conftest.err
; then
7885 ac_cpp_err
=$ac_c_preproc_warn_flag
7886 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7893 if test -z "$ac_cpp_err"; then
7894 eval "$as_ac_Header=yes"
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.
$ac_ext >&5
7899 eval "$as_ac_Header=no"
7901 rm -f conftest.err conftest.
$ac_ext
7903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h
<<_ACEOF
7907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7914 echo "$as_me:$LINENO: checking for iconv" >&5
7915 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7916 if test "${am_cv_func_iconv+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 am_cv_func_iconv
="no, consider installing GNU libiconv"
7922 cat >conftest.
$ac_ext <<_ACEOF
7925 cat confdefs.h
>>conftest.
$ac_ext
7926 cat >>conftest.
$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7933 iconv_t cd = iconv_open("","");
7934 iconv(cd,NULL,NULL,NULL,NULL);
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>conftest.er1
7944 grep -v '^ *+' conftest.er1
>conftest.err
7946 cat conftest.err
>&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } &&
7949 { ac_try
='test -z "$ac_c_werror_flag"
7950 || test ! -s conftest.err'
7951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); }; } &&
7956 { ac_try
='test -s conftest$ac_exeext'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; }; then
7962 am_cv_func_iconv
=yes
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.
$ac_ext >&5
7968 rm -f conftest.err conftest.
$ac_objext \
7969 conftest
$ac_exeext conftest.
$ac_ext
7970 if test "$am_cv_func_iconv" != yes; then
7971 am_save_LIBS
="$LIBS"
7972 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7973 cat >conftest.
$ac_ext <<_ACEOF
7976 cat confdefs.h
>>conftest.
$ac_ext
7977 cat >>conftest.
$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7984 iconv_t cd = iconv_open("","");
7985 iconv(cd,NULL,NULL,NULL,NULL);
7991 rm -f conftest.
$ac_objext conftest
$ac_exeext
7992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7993 (eval $ac_link) 2>conftest.er1
7995 grep -v '^ *+' conftest.er1
>conftest.err
7997 cat conftest.err
>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try
='test -z "$ac_c_werror_flag"
8001 || test ! -s conftest.err'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try
='test -s conftest$ac_exeext'
8008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); }; }; then
8014 am_cv_func_iconv
=yes
8016 echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.
$ac_ext >&5
8020 rm -f conftest.err conftest.
$ac_objext \
8021 conftest
$ac_exeext conftest.
$ac_ext
8022 LIBS
="$am_save_LIBS"
8026 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8027 echo "${ECHO_T}$am_cv_func_iconv" >&6
8028 if test "$am_cv_func_iconv" = yes; then
8030 cat >>confdefs.h
<<\_ACEOF
8031 #define HAVE_ICONV 1
8034 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8035 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8036 if test "${am_cv_proto_iconv+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 cat >conftest.
$ac_ext <<_ACEOF
8043 cat confdefs.h
>>conftest.
$ac_ext
8044 cat >>conftest.
$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8053 #if defined(__STDC__) || defined(__cplusplus)
8054 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8067 rm -f conftest.
$ac_objext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8071 grep -v '^ *+' conftest.er1
>conftest.err
8073 cat conftest.err
>&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try
='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try
='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 am_cv_proto_iconv_arg1
=""
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.
$ac_ext >&5
8094 am_cv_proto_iconv_arg1
="const"
8096 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8097 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);"
8100 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8101 echo "$as_me:$LINENO: result: ${ac_t:-
8102 }$am_cv_proto_iconv" >&5
8103 echo "${ECHO_T}${ac_t:-
8104 }$am_cv_proto_iconv" >&6
8106 cat >>confdefs.h
<<_ACEOF
8107 #define ICONV_CONST $am_cv_proto_iconv_arg1
8112 if test "$am_cv_lib_iconv" = yes; then
8113 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8117 # Until we have in-tree GNU iconv:
8122 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8123 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8124 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8127 cat >conftest.
$ac_ext <<_ACEOF
8130 cat confdefs.h
>>conftest.
$ac_ext
8131 cat >>conftest.
$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8142 rm -f conftest.
$ac_objext conftest
$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>conftest.er1
8146 grep -v '^ *+' conftest.er1
>conftest.err
8148 cat conftest.err
>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try
='test -z "$ac_c_werror_flag"
8152 || test ! -s conftest.err'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; } &&
8158 { ac_try
='test -s conftest$ac_exeext'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; }; then
8164 am_cv_val_LC_MESSAGES
=yes
8166 echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.
$ac_ext >&5
8169 am_cv_val_LC_MESSAGES
=no
8171 rm -f conftest.err conftest.
$ac_objext \
8172 conftest
$ac_exeext conftest.
$ac_ext
8174 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8175 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8176 if test $am_cv_val_LC_MESSAGES = yes; then
8178 cat >>confdefs.h
<<\_ACEOF
8179 #define HAVE_LC_MESSAGES 1
8185 # We will need to find libiberty.h and ansidecl.h
8186 saved_CFLAGS
="$CFLAGS"
8187 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8212 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8213 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8214 fprintf_unlocked strstr errno snprintf vasprintf \
8215 malloc realloc calloc free
basename getopt
clock getpagesize
8217 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8218 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8219 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8220 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 cat >conftest.
$ac_ext <<_ACEOF
8226 cat confdefs.h
>>conftest.
$ac_ext
8227 cat >>conftest.
$ac_ext <<_ACEOF
8228 /* end confdefs.h. */
8230 #define $ac_tr_decl 1
8232 #include "ansidecl.h"
8239 char *(*pfn) = (char *(*)) $ac_func ;
8245 rm -f conftest.
$ac_objext
8246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8247 (eval $ac_compile) 2>conftest.er1
8249 grep -v '^ *+' conftest.er1
>conftest.err
8251 cat conftest.err
>&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try
='test -z "$ac_c_werror_flag"
8255 || test ! -s conftest.err'
8256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); }; } &&
8261 { ac_try
='test -s conftest.$ac_objext'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 eval "gcc_cv_have_decl_$ac_func=yes"
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.
$ac_ext >&5
8272 eval "gcc_cv_have_decl_$ac_func=no"
8274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8280 #define $ac_tr_decl 1
8284 echo "$as_me:$LINENO: result: no" >&5
8285 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8286 #define $ac_tr_decl 0
8297 for ac_func
in getrlimit setrlimit getrusage
8299 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8300 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8301 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8302 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 cat >conftest.
$ac_ext <<_ACEOF
8308 cat confdefs.h
>>conftest.
$ac_ext
8309 cat >>conftest.
$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8312 #define $ac_tr_decl 1
8314 #include "ansidecl.h"
8316 #ifdef HAVE_SYS_RESOURCE_H
8317 #include <sys/resource.h>
8325 char *(*pfn) = (char *(*)) $ac_func ;
8331 rm -f conftest.
$ac_objext
8332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8333 (eval $ac_compile) 2>conftest.er1
8335 grep -v '^ *+' conftest.er1
>conftest.err
8337 cat conftest.err
>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try
='test -z "$ac_c_werror_flag"
8341 || test ! -s conftest.err'
8342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); }; } &&
8347 { ac_try
='test -s conftest.$ac_objext'
8348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8353 eval "gcc_cv_have_decl_$ac_func=yes"
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.
$ac_ext >&5
8358 eval "gcc_cv_have_decl_$ac_func=no"
8360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8366 #define $ac_tr_decl 1
8370 echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8372 #define $ac_tr_decl 0
8380 cat >conftest.
$ac_ext <<_ACEOF
8383 cat confdefs.h
>>conftest.
$ac_ext
8384 cat >>conftest.
$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 #include "ansidecl.h"
8389 #ifdef HAVE_SYS_RESOURCE_H
8390 #include <sys/resource.h>
8401 rm -f conftest.
$ac_objext
8402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8403 (eval $ac_compile) 2>conftest.er1
8405 grep -v '^ *+' conftest.er1
>conftest.err
8407 cat conftest.err
>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } &&
8410 { ac_try
='test -z "$ac_c_werror_flag"
8411 || test ! -s conftest.err'
8412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; } &&
8417 { ac_try
='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8425 echo "$as_me: failed program was:" >&5
8426 sed 's/^/| /' conftest.
$ac_ext >&5
8429 cat >>confdefs.h
<<\_ACEOF
8434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 for ac_func
in ldgetname
8439 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8440 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8441 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8442 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cat >conftest.
$ac_ext <<_ACEOF
8448 cat confdefs.h
>>conftest.
$ac_ext
8449 cat >>conftest.
$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8452 #define $ac_tr_decl 1
8454 #include "ansidecl.h"
8465 char *(*pfn) = (char *(*)) $ac_func ;
8471 rm -f conftest.
$ac_objext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>conftest.er1
8475 grep -v '^ *+' conftest.er1
>conftest.err
8477 cat conftest.err
>&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try
='test -z "$ac_c_werror_flag"
8481 || test ! -s conftest.err'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; } &&
8487 { ac_try
='test -s conftest.$ac_objext'
8488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; }; then
8493 eval "gcc_cv_have_decl_$ac_func=yes"
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 eval "gcc_cv_have_decl_$ac_func=no"
8500 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8503 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8506 #define $ac_tr_decl 1
8510 echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8512 #define $ac_tr_decl 0
8521 for ac_func
in times
8523 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8524 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8525 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8526 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8527 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 cat >conftest.
$ac_ext <<_ACEOF
8532 cat confdefs.h
>>conftest.
$ac_ext
8533 cat >>conftest.
$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8536 #define $ac_tr_decl 1
8538 #include "ansidecl.h"
8540 #ifdef HAVE_SYS_TIMES_H
8541 #include <sys/times.h>
8549 char *(*pfn) = (char *(*)) $ac_func ;
8555 rm -f conftest.
$ac_objext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8557 (eval $ac_compile) 2>conftest.er1
8559 grep -v '^ *+' conftest.er1
>conftest.err
8561 cat conftest.err
>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } &&
8564 { ac_try
='test -z "$ac_c_werror_flag"
8565 || test ! -s conftest.err'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; } &&
8571 { ac_try
='test -s conftest.$ac_objext'
8572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); }; }; then
8577 eval "gcc_cv_have_decl_$ac_func=yes"
8579 echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.
$ac_ext >&5
8582 eval "gcc_cv_have_decl_$ac_func=no"
8584 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8588 echo "$as_me:$LINENO: result: yes" >&5
8589 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8590 #define $ac_tr_decl 1
8594 echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8596 #define $ac_tr_decl 0
8604 # More time-related stuff.
8605 echo "$as_me:$LINENO: checking for struct tms" >&5
8606 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8607 if test "${ac_cv_struct_tms+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.
$ac_ext <<_ACEOF
8614 cat confdefs.h
>>conftest.
$ac_ext
8615 cat >>conftest.
$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 #include "ansidecl.h"
8620 #ifdef HAVE_SYS_TIMES_H
8621 #include <sys/times.h>
8632 rm -f conftest.
$ac_objext
8633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8634 (eval $ac_compile) 2>conftest.er1
8636 grep -v '^ *+' conftest.er1
>conftest.err
8638 cat conftest.err
>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } &&
8641 { ac_try
='test -z "$ac_c_werror_flag"
8642 || test ! -s conftest.err'
8643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try
='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 ac_cv_struct_tms
=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.
$ac_ext >&5
8661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8664 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8665 if test $ac_cv_struct_tms = yes; then
8667 cat >>confdefs.h
<<\_ACEOF
8668 #define HAVE_STRUCT_TMS 1
8673 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8674 # revisit after autoconf 2.50.
8675 echo "$as_me:$LINENO: checking for clock_t" >&5
8676 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8677 if test "${gcc_cv_type_clock_t+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.
$ac_ext <<_ACEOF
8684 cat confdefs.h
>>conftest.
$ac_ext
8685 cat >>conftest.
$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8688 #include "ansidecl.h"
8699 rm -f conftest.
$ac_objext
8700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8701 (eval $ac_compile) 2>conftest.er1
8703 grep -v '^ *+' conftest.er1
>conftest.err
8705 cat conftest.err
>&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } &&
8708 { ac_try
='test -z "$ac_c_werror_flag"
8709 || test ! -s conftest.err'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; } &&
8715 { ac_try
='test -s conftest.$ac_objext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 gcc_cv_type_clock_t
=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.
$ac_ext >&5
8726 gcc_cv_type_clock_t
=no
8728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8731 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8732 if test $gcc_cv_type_clock_t = yes; then
8734 cat >>confdefs.h
<<\_ACEOF
8735 #define HAVE_CLOCK_T 1
8740 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8741 CFLAGS
="$saved_CFLAGS"
8743 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8744 if test "${enable_initfini_array+set}" = set; then
8745 enableval
="$enable_initfini_array"
8749 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8750 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8751 if test "${gcc_cv_initfini_array+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8754 if test "$cross_compiling" = yes; then
8755 gcc_cv_initfini_array
=no
8757 cat >conftest.
$ac_ext <<_ACEOF
8760 cat confdefs.h
>>conftest.
$ac_ext
8761 cat >>conftest.
$ac_ext <<_ACEOF
8762 /* end confdefs.h. */
8765 int main (void) { return x; }
8766 int foo (void) { x = 0; }
8767 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8769 rm -f conftest
$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 gcc_cv_initfini_array
=yes
8782 echo "$as_me: program exited with status $ac_status" >&5
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.
$ac_ext >&5
8787 gcc_cv_initfini_array
=no
8789 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8792 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8793 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8794 enable_initfini_array
=$gcc_cv_initfini_array
8797 if test $enable_initfini_array = yes; then
8799 cat >>confdefs.h
<<\_ACEOF
8800 #define HAVE_INITFINI_ARRAY 1
8805 # mkdir takes a single argument on some systems.
8806 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8807 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8808 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 cat >conftest.
$ac_ext <<_ACEOF
8814 cat confdefs.h
>>conftest.
$ac_ext
8815 cat >>conftest.
$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8818 #include <sys/types.h>
8819 #ifdef HAVE_SYS_STAT_H
8820 # include <sys/stat.h>
8822 #ifdef HAVE_UNISTD_H
8823 # include <unistd.h>
8825 #ifdef HAVE_DIRECT_H
8826 # include <direct.h>
8836 rm -f conftest.
$ac_objext
8837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8838 (eval $ac_compile) 2>conftest.er1
8840 grep -v '^ *+' conftest.er1
>conftest.err
8842 cat conftest.err
>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try
='test -z "$ac_c_werror_flag"
8846 || test ! -s conftest.err'
8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); }; } &&
8852 { ac_try
='test -s conftest.$ac_objext'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 gcc_cv_mkdir_takes_one_arg
=no
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.
$ac_ext >&5
8863 gcc_cv_mkdir_takes_one_arg
=yes
8865 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8868 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8869 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8871 cat >>confdefs.h
<<\_ACEOF
8872 #define MKDIR_TAKES_ONE_ARG 1
8884 # With Setjmp/Longjmp based exception handling.
8885 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8886 if test "${enable_sjlj_exceptions+set}" = set; then
8887 enableval
="$enable_sjlj_exceptions"
8888 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8890 cat >>confdefs.h
<<_ACEOF
8891 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8896 if test x
$host = x
$target; then
8897 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8898 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8899 if test "${ac_cv_lib_unwind_main+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_check_lib_save_LIBS
=$LIBS
8903 LIBS
="-lunwind $LIBS"
8904 cat >conftest.
$ac_ext <<_ACEOF
8907 cat confdefs.h
>>conftest.
$ac_ext
8908 cat >>conftest.
$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8920 rm -f conftest.
$ac_objext conftest
$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1
>conftest.err
8926 cat conftest.err
>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try
='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try
='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_lib_unwind_main
=yes
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.
$ac_ext >&5
8947 ac_cv_lib_unwind_main
=no
8949 rm -f conftest.err conftest.
$ac_objext \
8950 conftest
$ac_exeext conftest.
$ac_ext
8951 LIBS
=$ac_check_lib_save_LIBS
8953 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8954 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8955 if test $ac_cv_lib_unwind_main = yes; then
8956 use_libunwind_default
=yes
8958 use_libunwind_default
=no
8962 use_libunwind_default
=no
8964 # Use libunwind based exception handling.
8965 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8966 if test "${enable_libunwind_exceptions+set}" = set; then
8967 enableval
="$enable_libunwind_exceptions"
8968 use_libunwind_exceptions
=$enableval
8970 use_libunwind_exceptions
=$use_libunwind_default
8972 if test x
"$use_libunwind_exceptions" = xyes
; then
8974 cat >>confdefs.h
<<\_ACEOF
8975 #define USE_LIBUNWIND_EXCEPTIONS 1
8980 # --------------------------------------------------------
8981 # Build, host, and target specific configuration fragments
8982 # --------------------------------------------------------
8984 # Collect build-machine-specific information.
8985 .
${srcdir}/config.build
8987 # Collect host-machine-specific information.
8988 .
${srcdir}/config.
host
8992 # Collect target-machine-specific information.
8993 .
${srcdir}/config.gcc
8995 extra_objs
="${host_extra_objs} ${extra_objs}"
8996 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
8998 # Default the target-machine variables that were not explicitly set.
8999 if test x
"$tm_file" = x
9000 then tm_file
=$cpu_type/$cpu_type.h
; fi
9002 if test x
"$extra_headers" = x
9003 then extra_headers
=; fi
9005 if test x
$md_file = x
9006 then md_file
=$cpu_type/$cpu_type.md
; fi
9008 if test x
$out_file = x
9009 then out_file
=$cpu_type/$cpu_type.c
; fi
9011 if test x
"$tmake_file" = x
9012 then tmake_file
=$cpu_type/t-
$cpu_type
9015 if test x
"$dwarf2" = xyes
9016 then tm_file
="$tm_file tm-dwarf2.h"
9019 # Say what files are being used for the output code and MD file.
9020 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9021 echo "Using \`$srcdir/config/$md_file' as machine description file."
9023 # If any of the xm_file variables contain nonexistent files, warn
9024 # about them and drop them.
9027 for x
in $build_xm_file; do
9028 if test -f $srcdir/config
/$x
9030 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9031 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9037 for x
in $host_xm_file; do
9038 if test -f $srcdir/config
/$x
9040 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9041 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9047 for x
in $xm_file; do
9048 if test -f $srcdir/config
/$x
9050 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9051 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9057 for f
in $tm_file; do
9060 if test $count = ax
; then
9061 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9063 echo "Using the following target machine macro files:"
9064 for f
in $tm_file; do
9065 echo " $srcdir/config/$f"
9069 if test x
$need_64bit_hwint = xyes
; then
9071 cat >>confdefs.h
<<\_ACEOF
9072 #define NEED_64BIT_HOST_WIDE_INT 1
9078 for f
in $host_xm_file; do
9081 if test $count = a
; then
9083 elif test $count = ax
; then
9084 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9086 echo "Using the following host machine macro files:"
9087 for f
in $host_xm_file; do
9088 echo " $srcdir/config/$f"
9091 echo "Using ${out_host_hook_obj} for host machine hooks."
9093 if test "$host_xm_file" != "$build_xm_file"; then
9095 for f
in $build_xm_file; do
9098 if test $count = a
; then
9100 elif test $count = ax
; then
9101 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9103 echo "Using the following build machine macro files:"
9104 for f
in $build_xm_file; do
9105 echo " $srcdir/config/$f"
9114 # Check if a valid thread package
9115 case ${enable_threads} in
9118 target_thread_file
='single'
9122 target_thread_file
='single'
9124 aix | dce | gnat | irix | posix | rtems | \
9125 single | solaris | vxworks | win32
)
9126 target_thread_file
=${enable_threads}
9129 echo "${enable_threads} is an unknown thread package" 1>&2
9134 if test x
${thread_file} = x
; then
9135 # No thread file set by target-specific clauses in config.gcc,
9136 # so use file chosen by default logic above
9137 thread_file
=${target_thread_file}
9140 # Make gthr-default.h if we have a thread file.
9142 if test $thread_file != single
; then
9143 rm -f gthr-default.h
9144 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9145 gthread_flags
=-DHAVE_GTHR_DEFAULT
9153 if test x
$enable___cxa_atexit = xyes || \
9154 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9155 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9156 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9157 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 cat >conftest.
$ac_ext <<_ACEOF
9163 cat confdefs.h
>>conftest.
$ac_ext
9164 cat >>conftest.
$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9168 #define __cxa_atexit innocuous___cxa_atexit
9170 /* System header to define __stub macros and hopefully few prototypes,
9171 which can conflict with char __cxa_atexit (); below.
9172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 <limits.h> exists even on freestanding compilers. */
9176 # include <limits.h>
9178 # include <assert.h>
9183 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9190 char __cxa_atexit ();
9191 /* The GNU C library defines this for functions which it implements
9192 to always fail with ENOSYS. Some functions are actually named
9193 something starting with __ and the normal name is an alias. */
9194 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9197 char (*f) () = __cxa_atexit;
9206 return f != __cxa_atexit;
9211 rm -f conftest.
$ac_objext conftest
$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9215 grep -v '^ *+' conftest.er1
>conftest.err
9217 cat conftest.err
>&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try
='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try
='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_func___cxa_atexit
=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.
$ac_ext >&5
9238 ac_cv_func___cxa_atexit
=no
9240 rm -f conftest.err conftest.
$ac_objext \
9241 conftest
$ac_exeext conftest.
$ac_ext
9243 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9244 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9245 if test $ac_cv_func___cxa_atexit = yes; then
9247 cat >>confdefs.h
<<\_ACEOF
9248 #define DEFAULT_USE_CXA_ATEXIT 1
9252 echo "__cxa_atexit can't be enabled on this target"
9257 # Look for a file containing extra machine modes.
9258 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9259 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9262 cat >>confdefs.h
<<_ACEOF
9263 #define EXTRA_MODES_FILE "config/$extra_modes"
9268 # auto-host.h is the file containing items generated by autoconf and is
9269 # the first file included by config.h.
9270 # If host=build, it is correct to have bconfig include auto-host.h
9271 # as well. If host!=build, we are in error and need to do more
9272 # work to find out the build config parameters.
9273 if test x
$host = x
$build
9275 build_auto
=auto-host.h
9278 # We create a subdir, then run autoconf in the subdir.
9279 # To prevent recursion we set host and build for the new
9280 # invocation of configure to the build for this invocation
9287 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9288 *) realsrcdir
=..
/${srcdir};;
9290 saved_CFLAGS
="${CFLAGS}"
9291 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9292 ${realsrcdir}/configure \
9293 --enable-languages=${enable_languages-all} \
9294 --target=$target_alias --host=$build_alias --build=$build_alias
9295 CFLAGS
="${saved_CFLAGS}"
9297 # We just finished tests for the build machine, so rename
9298 # the file auto-build.h in the gcc directory.
9299 mv auto-host.h ..
/auto-build.h
9302 build_auto
=auto-build.h
9303 FORBUILD
=..
/${build_subdir}
9307 tm_file
="${tm_file} defaults.h"
9308 tm_p_file
="${tm_p_file} tm-preds.h"
9309 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9310 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9311 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9312 # put this back in temporarily.
9313 xm_file
="ansidecl.h ${xm_file}"
9319 # Get the version trigger filename from the toplevel
9320 if test "${with_gcc_version_trigger+set}" = set; then
9321 gcc_version_trigger
=$with_gcc_version_trigger
9323 gcc_version_trigger
=${srcdir}/version.c
9325 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9326 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9328 # Compile in configure arguments.
9329 if test -f configargs.h
; then
9330 # Being re-configured.
9331 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9332 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9334 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9337 # Double all backslashes and backslash all quotes to turn
9338 # gcc_config_arguments into a C string.
9339 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9340 $gcc_config_arguments
9342 gcc_config_arguments_str
=`cat conftest.out`
9345 cat > configargs.h
<<EOF
9346 /* Generated automatically. */
9347 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9348 static const char thread_model[] = "$thread_file";
9350 static const struct {
9351 const char *name, *value;
9352 } configure_default_options[] = $configure_default_options;
9355 # Internationalization
9357 VERSION
="$gcc_version"
9361 # If we haven't got the data from the intl directory,
9362 # assume NLS is disabled.
9370 if test -f ..
/intl
/config.intl
; then
9371 . ..
/intl
/config.intl
9373 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9374 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9375 if test x
"$USE_NLS" != xyes
; then
9376 echo "$as_me:$LINENO: result: no" >&5
9377 echo "${ECHO_T}no" >&6
9379 echo "$as_me:$LINENO: result: yes" >&5
9380 echo "${ECHO_T}yes" >&6
9382 cat >>confdefs.h
<<\_ACEOF
9383 #define ENABLE_NLS 1
9387 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9388 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9389 # Look for .po and .gmo files in the source directory.
9392 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9393 # If there aren't any .gmo files the shell will give us the
9394 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9396 case "$cat" in *\
**)
9399 # The quadruple backslash is collapsed to a double backslash
9400 # by the backticks, then collapsed again by the double quotes,
9401 # leaving us with one backslash in the sed expression (right
9402 # before the dot that mustn't act as a wildcard).
9403 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9404 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9405 # The user is allowed to set LINGUAS to a list of languages to
9406 # install catalogs for. If it's empty that means "all of them."
9407 if test "x$LINGUAS" = x
; then
9408 CATALOGS
="$CATALOGS $cat"
9409 XLINGUAS
="$XLINGUAS $lang"
9411 case "$LINGUAS" in *$lang*)
9412 CATALOGS
="$CATALOGS $cat"
9413 XLINGUAS
="$XLINGUAS $lang"
9419 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9420 echo "${ECHO_T}$LINGUAS" >&6
9423 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9424 # -liconv on the link line twice.
9425 case "$LIBINTL" in *$LIBICONV*)
9429 # Windows32 Registry support for specifying GCC installation paths.
9430 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9431 if test "${enable_win32_registry+set}" = set; then
9432 enableval
="$enable_win32_registry"
9436 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9437 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9438 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9439 if test "x$enable_win32_registry" != xno
; then
9441 cat >>confdefs.h
<<\_ACEOF
9442 #define ENABLE_WIN32_REGISTRY 1
9445 echo "$as_me:$LINENO: result: yes" >&5
9446 echo "${ECHO_T}yes" >&6
9447 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9448 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9449 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_func_search_save_LIBS
=$LIBS
9453 ac_cv_search_RegOpenKeyExA
=no
9454 cat >conftest.
$ac_ext <<_ACEOF
9457 cat confdefs.h
>>conftest.
$ac_ext
9458 cat >>conftest.
$ac_ext <<_ACEOF
9459 /* end confdefs.h. */
9461 /* Override any gcc2 internal prototype to avoid an error. */
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9467 char RegOpenKeyExA ();
9476 rm -f conftest.
$ac_objext conftest
$ac_exeext
9477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>conftest.er1
9480 grep -v '^ *+' conftest.er1
>conftest.err
9482 cat conftest.err
>&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try
='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try
='test -s conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_cv_search_RegOpenKeyExA
="none required"
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.
$ac_ext >&5
9504 rm -f conftest.err conftest.
$ac_objext \
9505 conftest
$ac_exeext conftest.
$ac_ext
9506 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9507 for ac_lib
in advapi32
; do
9508 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9509 cat >conftest.
$ac_ext <<_ACEOF
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9516 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9522 char RegOpenKeyExA ();
9531 rm -f conftest.
$ac_objext conftest
$ac_exeext
9532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9533 (eval $ac_link) 2>conftest.er1
9535 grep -v '^ *+' conftest.er1
>conftest.err
9537 cat conftest.err
>&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try
='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try
='test -s conftest$ac_exeext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9560 rm -f conftest.err conftest.
$ac_objext \
9561 conftest
$ac_exeext conftest.
$ac_ext
9564 LIBS
=$ac_func_search_save_LIBS
9566 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9567 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9568 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9569 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9574 echo "$as_me:$LINENO: result: no" >&5
9575 echo "${ECHO_T}no" >&6
9578 # Check if user specified a different registry key.
9579 case "x${enable_win32_registry}" in
9582 gcc_cv_win32_registry_key
="$VERSION"
9585 # no registry lookup.
9586 gcc_cv_win32_registry_key
=''
9589 # user-specified key.
9590 gcc_cv_win32_registry_key
="$enable_win32_registry"
9594 if test "x$enable_win32_registry" != xno
; then
9595 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9596 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9598 cat >>confdefs.h
<<_ACEOF
9599 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9602 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9603 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9608 # Get an absolute path to the GCC top-level source directory
9609 holddir
=`${PWDCMD-pwd}`
9611 topdir
=`${PWDCMD-pwd}`
9614 # Conditionalize the makefile for this host machine.
9616 for f
in ${host_xmake_file}
9618 if test -f ${srcdir}/config
/$f
9620 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9624 # Conditionalize the makefile for this target machine.
9626 for f
in ${tmake_file}
9628 if test -f ${srcdir}/config
/$f
9630 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9633 tmake_file
="${tmake_file_}"
9635 symbolic_link
='ln -s'
9637 # If the host doesn't support symlinks, modify CC in
9638 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9639 # Otherwise, we can use "CC=$(CC)".
9641 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9643 cc_set_by_configure
="\$(CC)"
9644 quoted_cc_set_by_configure
="\$(CC)"
9645 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9646 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9649 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9651 symbolic_link
="cp -p"
9655 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9656 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9657 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9658 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9662 out_object_file
=`basename $out_file .c`.o
9666 for f
in $tm_file; do
9669 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9670 tm_include_list
="${tm_include_list} $f"
9673 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9674 tm_include_list
="${tm_include_list} config/$f"
9681 for f
in $tm_p_file; do
9684 tm_p_file_list
="${tm_p_file_list} $f"
9685 tm_p_include_list
="${tm_p_include_list} $f"
9688 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9689 tm_p_include_list
="${tm_p_include_list} config/$f"
9695 for f
in $xm_file; do
9698 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9699 xm_include_list
="${xm_include_list} $f"
9702 xm_file_list
="${xm_file_list} $f"
9703 xm_include_list
="${xm_include_list} $f"
9706 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9707 xm_include_list
="${xm_include_list} config/$f"
9713 host_xm_include_list
=
9714 for f
in $host_xm_file; do
9717 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9718 host_xm_include_list
="${host_xm_include_list} $f"
9721 host_xm_file_list
="${host_xm_file_list} $f"
9722 host_xm_include_list
="${host_xm_include_list} $f"
9725 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9726 host_xm_include_list
="${host_xm_include_list} config/$f"
9732 for f
in $build_xm_file; do
9735 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9736 build_xm_include_list
="${build_xm_include_list} $f"
9738 auto-build.h | auto-host.h
)
9739 build_xm_file_list
="${build_xm_file_list} $f"
9740 build_xm_include_list
="${build_xm_include_list} $f"
9743 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9744 build_xm_include_list
="${build_xm_include_list} config/$f"
9749 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9750 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9753 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9754 if test x
$host != x
$target
9756 CROSS
="-DCROSS_COMPILE"
9758 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9759 case "$host","$target" in
9760 # Darwin crosses can use the host system's libraries and headers,
9761 # because of the fat library support. Of course, it must be the
9762 # same version of Darwin on both sides. Allow the user to
9763 # just say --target=foo-darwin without a version number to mean
9764 # "the version on this system".
9765 *-*-darwin*,*-*-darwin*)
9766 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9767 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9768 if test $hostos = $targetos -o $targetos = darwin
; then
9770 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9775 i?
86-*-*,x86_64-
*-* \
9776 | powerpc
*-*-*,powerpc64
*-*-*)
9777 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9779 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9780 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9781 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9784 # If this is a cross-compiler that does not
9785 # have its own set of headers then define
9788 # If this is using newlib, without having the headers available now,
9789 # then define inhibit_libc in LIBGCC2_CFLAGS.
9790 # This prevents libgcc2 from containing any code which requires libc
9793 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9794 test x
$with_newlib = xyes
; } &&
9795 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9796 inhibit_libc
=-Dinhibit_libc
9800 # When building gcc with a cross-compiler, we need to adjust things so
9801 # that the generator programs are still built with the native compiler.
9802 # Also, we cannot run fixincludes or fix-header.
9804 # These are the normal (build=host) settings:
9806 BUILD_PREFIX_1
=ignore-
9807 CC_FOR_BUILD
='$(CC)'
9808 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9810 STMP_FIXINC
=stmp-fixinc
9812 # Possibly disable fixproto, on a per-target basis.
9813 case ${use_fixproto} in
9818 STMP_FIXPROTO
=stmp-fixproto
9823 # And these apply if build != host, or we are generating coverage data
9824 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9827 BUILD_PREFIX_1
=build-
9828 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9830 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9836 # Expand extra_headers to include complete path.
9837 # This substitutes for lots of t-* files.
9839 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9840 for file in ${extra_headers} ; do
9841 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9844 # Define collect2 in Makefile.
9845 case $host_can_use_collect2 in
9847 *) collect2
='collect2$(exeext)' ;;
9851 # Add a definition of USE_COLLECT2 if system wants one.
9852 case $use_collect2 in
9853 no
) use_collect2
= ;;
9856 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9857 xm_defines
="${xm_defines} USE_COLLECT2"
9858 case $host_can_use_collect2 in
9860 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9861 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9862 { (exit 1); exit 1; }; }
9868 # ---------------------------
9869 # Assembler & linker features
9870 # ---------------------------
9872 # Identify the assembler which will work hand-in-glove with the newly
9873 # built GCC, so that we can examine its features. This is the assembler
9874 # which will be driven by the driver program.
9876 # If build != host, and we aren't building gas in-tree, we identify a
9877 # build->target assembler and hope that it will have the same features
9878 # as the host->target assembler we'll be using.
9879 echo "$as_me:$LINENO: checking what assembler to use" >&5
9880 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9883 gcc_cv_gas_major_version
=
9884 gcc_cv_gas_minor_version
=
9885 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9886 if test -x "$DEFAULT_ASSEMBLER"; then
9887 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9888 elif test -x as
$host_exeext; then
9889 # Build using assembler in the current directory.
9890 gcc_cv_as
=.
/as
$host_exeext
9891 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9892 && test -f ..
/gas
/Makefile \
9893 && test x
$build = x
$host; then
9894 # Single tree build which includes gas. We want to prefer it
9895 # over whatever linker top-level may have detected, since
9896 # we'll use what we're building after installation anyway.
9898 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9899 for f
in $gcc_cv_as_bfd_srcdir/configure \
9900 $gcc_cv_as_gas_srcdir/configure \
9901 $gcc_cv_as_gas_srcdir/configure.
in \
9902 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9903 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9904 if test x
$gcc_cv_gas_version != x
; then
9908 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9909 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9910 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9911 case $gcc_cv_gas_patch_version in
9912 "") gcc_cv_gas_patch_version
="0" ;;
9914 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9915 + $gcc_cv_gas_minor_version \) \* 1000 \
9916 + $gcc_cv_gas_patch_version`
9918 rm -f as
$host_exeext
9919 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9920 in_tree_gas_is_elf
=no
9921 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9922 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9923 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9925 in_tree_gas_is_elf
=yes
9927 elif test -x "$AS_FOR_TARGET"; then
9928 gcc_cv_as
="$AS_FOR_TARGET"
9929 elif test -x "$AS" && test x
$host = x
$target; then
9933 if test "x$gcc_cv_as" = x
; then
9934 # Search the same directories that the installed compiler will
9935 # search. Else we may find the wrong assembler and lose. If we
9936 # do not find a suitable assembler binary, then try the user's
9939 # Also note we have to check MD_EXEC_PREFIX before checking the
9940 # user's path. Unfortunately, there is no good way to get at the
9941 # value of MD_EXEC_PREFIX here. So we do a brute force search
9942 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9943 # to be fixed as part of the make/configure rewrite too.
9945 if test "x$exec_prefix" = xNONE
; then
9946 if test "x$prefix" = xNONE
; then
9947 test_prefix
=/usr
/local
9952 test_prefix
=$exec_prefix
9955 # If the loop below does not find an assembler, then use whatever
9956 # one we can find in the users's path.
9958 if test "x$program_prefix" != xNONE
; then
9959 gcc_cv_as
=${program_prefix}as
$host_exeext
9961 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
9964 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9965 $test_prefix/libexec/gcc/$target_noncanonical \
9966 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9967 /usr/lib/gcc/$target_noncanonical \
9968 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9969 $test_prefix/$target_noncanonical/bin"
9971 if test x
$host = x
$target; then
9972 test_dirs
="$test_dirs \
9977 /bsd43/usr/lib/cmplrs/cc \
9978 /usr/cross64/usr/bin \
9979 /usr/lib/cmplrs/cc \
9980 /sysv/usr/lib/cmplrs/cc \
9981 /svr4/usr/lib/cmplrs/cc \
9985 for dir
in $test_dirs; do
9986 if test -x $dir/as
$host_exeext; then
9987 gcc_cv_as
=$dir/as
$host_exeext
9992 case $in_tree_gas in
9994 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9995 echo "${ECHO_T}\"newly built gas\"" >&6
9998 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9999 echo "${ECHO_T}$gcc_cv_as" >&6
10003 # Identify the linker which will work hand-in-glove with the newly
10004 # built GCC, so that we can examine its features. This is the linker
10005 # which will be driven by the driver program.
10007 # If build != host, and we aren't building gas in-tree, we identify a
10008 # build->target linker and hope that it will have the same features
10009 # as the host->target linker we'll be using.
10010 echo "$as_me:$LINENO: checking what linker to use" >&5
10011 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10014 gcc_cv_gld_major_version
=
10015 gcc_cv_gld_minor_version
=
10016 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10017 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10018 if test -x "$DEFAULT_LINKER"; then
10019 gcc_cv_ld
="$DEFAULT_LINKER"
10020 elif test -x collect-ld
$host_exeext; then
10021 # Build using linker in the current directory.
10022 gcc_cv_ld
=.
/collect-ld
$host_exeext
10023 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10024 && test -f ..
/ld
/Makefile \
10025 && test x
$build = x
$host; then
10026 # Single tree build which includes ld. We want to prefer it
10027 # over whatever linker top-level may have detected, since
10028 # we'll use what we're building after installation anyway.
10030 in_tree_ld_is_elf
=no
10031 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10032 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10033 in_tree_ld_is_elf
=yes
10035 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
10037 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10038 if test x
$gcc_cv_gld_version != x
; then
10042 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10043 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10044 rm -f collect-ld
$host_exeext
10045 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10047 elif test -x "$LD_FOR_TARGET"; then
10048 gcc_cv_ld
="$LD_FOR_TARGET"
10049 elif test -x "$LD" && test x
$host = x
$target; then
10053 if test "x$gcc_cv_ld" = x
; then
10054 # Search the same directories that the installed compiler will
10055 # search. Else we may find the wrong linker and lose. If we
10056 # do not find a suitable linker binary, then try the user's
10059 # Also note we have to check MD_EXEC_PREFIX before checking the
10060 # user's path. Unfortunately, there is no good way to get at the
10061 # value of MD_EXEC_PREFIX here. So we do a brute force search
10062 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10063 # to be fixed as part of the make/configure rewrite too.
10065 if test "x$exec_prefix" = xNONE
; then
10066 if test "x$prefix" = xNONE
; then
10067 test_prefix
=/usr
/local
10069 test_prefix
=$prefix
10072 test_prefix
=$exec_prefix
10075 # If the loop below does not find an linker, then use whatever
10076 # one we can find in the users's path.
10078 if test "x$program_prefix" != xNONE
; then
10079 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10081 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10084 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10085 $test_prefix/libexec/gcc/$target_noncanonical \
10086 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10087 /usr/lib/gcc/$target_noncanonical \
10088 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10089 $test_prefix/$target_noncanonical/bin"
10091 if test x
$host = x
$target; then
10092 test_dirs
="$test_dirs \
10097 /bsd43/usr/lib/cmplrs/cc \
10098 /usr/cross64/usr/bin \
10099 /usr/lib/cmplrs/cc \
10100 /sysv/usr/lib/cmplrs/cc \
10101 /svr4/usr/lib/cmplrs/cc \
10105 for dir
in $test_dirs; do
10106 if test -x $dir/ld
$host_exeext; then
10107 gcc_cv_ld
=$dir/ld
$host_exeext
10112 case $in_tree_ld in
10114 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10115 echo "${ECHO_T}\"newly built ld\"" >&6
10118 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10119 echo "${ECHO_T}$gcc_cv_ld" >&6
10123 # Figure out what nm we will be using.
10124 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10125 echo "$as_me:$LINENO: checking what nm to use" >&5
10126 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10128 if test -x nm
$host_exeext; then
10129 gcc_cv_nm
=.
/nm
$host_exeext
10130 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10131 && test -f ..
/binutils
/Makefile
; then
10132 # Single tree build which includes binutils.
10134 gcc_cv_nm
=.
/nm
$host_exeext
10135 rm -f nm
$host_exeext
10136 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10137 elif test "x$program_prefix" != xNONE
; then
10138 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10140 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10142 case $in_tree_nm in
10143 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10144 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10145 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10146 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10149 # Figure out what objdump we will be using.
10150 echo "$as_me:$LINENO: checking what objdump to use" >&5
10151 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10153 if test -x objdump
$host_exeext; then
10154 gcc_cv_objdump
=.
/objdump
$host_exeext
10155 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10156 && test -f ..
/binutils
/Makefile
; then
10157 # Single tree build which includes binutils.
10158 in_tree_objdump
=yes
10159 gcc_cv_objdump
=.
/objdump
$host_exeext
10160 rm -f objdump
$host_exeext
10161 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10162 objdump
$host_exeext 2>/dev
/null
10163 elif test "x$program_prefix" != xNONE
; then
10164 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10166 gcc_cv_objdump
=`echo objdump | \
10167 sed "${program_transform_name}"`$host_exeext
10169 case $in_tree_objdump in
10170 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10171 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10172 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10173 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10176 # Figure out what assembler alignment features are present.
10177 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10178 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10179 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 gcc_cv_as_balign_and_p2align
=no
10183 if test $in_tree_gas = yes; then
10184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10185 then gcc_cv_as_balign_and_p2align
=yes
10187 elif test x
$gcc_cv_as != x
; then
10189 .p2align 2' > conftest.s
10190 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }
10197 gcc_cv_as_balign_and_p2align
=yes
10199 echo "configure: failed program was" >&5
10202 rm -f conftest.o conftest.s
10205 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10206 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10207 if test $gcc_cv_as_balign_and_p2align = yes; then
10209 cat >>confdefs.h
<<\_ACEOF
10210 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10215 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10216 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10217 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 gcc_cv_as_max_skip_p2align
=no
10221 if test $in_tree_gas = yes; then
10222 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10223 then gcc_cv_as_max_skip_p2align
=yes
10225 elif test x
$gcc_cv_as != x
; then
10226 echo '.p2align 4,,7' > conftest.s
10227 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }
10234 gcc_cv_as_max_skip_p2align
=yes
10236 echo "configure: failed program was" >&5
10239 rm -f conftest.o conftest.s
10242 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10243 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10244 if test $gcc_cv_as_max_skip_p2align = yes; then
10246 cat >>confdefs.h
<<\_ACEOF
10247 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10252 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10253 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10254 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 gcc_cv_as_subsection_m1
=no
10258 if test $in_tree_gas = yes; then
10259 if test $in_tree_gas_is_elf = yes \
10260 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10261 then gcc_cv_as_subsection_m1
=yes
10263 elif test x
$gcc_cv_as != x
; then
10264 echo 'conftest_label1: .word 0
10266 conftest_label2: .word 0
10267 .previous' > conftest.s
10268 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }
10275 if test x
$gcc_cv_nm != x
; then
10276 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10277 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10278 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10280 else gcc_cv_as_subsection_m1
=yes
10282 rm -f conftest.nm1 conftest.nm2
10285 echo "configure: failed program was" >&5
10288 rm -f conftest.o conftest.s
10291 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10292 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10293 if test $gcc_cv_as_subsection_m1 = yes; then
10295 cat >>confdefs.h
<<\_ACEOF
10296 #define HAVE_GAS_SUBSECTION_ORDERING 1
10301 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10302 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10303 if test "${gcc_cv_as_weak+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 if test $in_tree_gas = yes; then
10308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10309 then gcc_cv_as_weak
=yes
10311 elif test x
$gcc_cv_as != x
; then
10312 echo ' .weak foobar' > conftest.s
10313 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }
10322 echo "configure: failed program was" >&5
10325 rm -f conftest.o conftest.s
10328 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10329 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10330 if test $gcc_cv_as_weak = yes; then
10332 cat >>confdefs.h
<<\_ACEOF
10333 #define HAVE_GAS_WEAK 1
10338 # .hidden needs to be supported in both the assembler and the linker,
10339 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10340 # This is irritatingly difficult to feature test for; we have to check the
10341 # date string after the version number. If we've got an in-tree
10342 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10344 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10345 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10346 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10347 if test "${gcc_cv_as_hidden+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 gcc_cv_as_hidden
=no
10351 if test $in_tree_gas = yes; then
10352 if test $in_tree_gas_is_elf = yes \
10353 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10354 then gcc_cv_as_hidden
=yes
10356 elif test x
$gcc_cv_as != x
; then
10357 echo ' .hidden foobar
10358 foobar:' > conftest.s
10359 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; }
10366 gcc_cv_as_hidden
=yes
10368 echo "configure: failed program was" >&5
10371 rm -f conftest.o conftest.s
10374 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10375 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10378 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10379 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10380 if test "${gcc_cv_ld_hidden+set}" = set; then
10381 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 if test $in_tree_ld = yes ; then
10384 gcc_cv_ld_hidden
=no
10385 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 \
10386 && test $in_tree_ld_is_elf = yes; then
10387 gcc_cv_ld_hidden
=yes
10390 gcc_cv_ld_hidden
=yes
10391 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10392 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10393 ld_vers
=`echo $ld_ver | sed -n \
10394 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10395 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10396 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10397 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10398 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10399 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10400 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'`
10401 if test 0"$ld_date" -lt 20020404; then
10402 if test -n "$ld_date"; then
10403 # If there was date string, but was earlier than 2002-04-04, fail
10404 gcc_cv_ld_hidden
=no
10405 elif test -z "$ld_vers"; then
10406 # If there was no date string nor ld version number, something is wrong
10407 gcc_cv_ld_hidden
=no
10409 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10410 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10411 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10412 test -z "$ld_vers_patch" && ld_vers_patch
=0
10413 if test "$ld_vers_major" -lt 2; then
10414 gcc_cv_ld_hidden
=no
10415 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10416 gcc_cv_ld_hidden
="no"
10417 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10418 gcc_cv_ld_hidden
=no
10423 case "${target}" in
10424 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10425 gcc_cv_ld_hidden
=yes
10428 gcc_cv_ld_hidden
=no
10434 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10435 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10436 libgcc_visibility
=no
10438 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10439 libgcc_visibility
=yes
10441 cat >>confdefs.h
<<\_ACEOF
10442 #define HAVE_GAS_HIDDEN 1
10447 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10448 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10449 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10450 if test "${gcc_cv_as_leb128+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 gcc_cv_as_leb128
=no
10454 if test $in_tree_gas = yes; then
10455 if test $in_tree_gas_is_elf = yes \
10456 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10457 then gcc_cv_as_leb128
=yes
10459 elif test x
$gcc_cv_as != x
; then
10466 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }
10473 # GAS versions before 2.11 do not support uleb128,
10474 # despite appearing to.
10475 # ??? There exists an elf-specific test that will crash
10476 # the assembler. Perhaps it's better to figure out whether
10477 # arbitrary sections are supported and try the test.
10478 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10479 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10480 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10481 as_major
=`echo $as_ver | sed 's/\..*//'`
10482 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10483 if test $as_major -eq 2 && test $as_minor -lt 11
10485 else gcc_cv_as_leb128
=yes
10489 echo "configure: failed program was" >&5
10492 rm -f conftest.o conftest.s
10495 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10496 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10497 if test $gcc_cv_as_leb128 = yes; then
10499 cat >>confdefs.h
<<\_ACEOF
10500 #define HAVE_AS_LEB128 1
10505 # GAS versions up to and including 2.11.0 may mis-optimize
10507 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10508 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10509 if test "${gcc_cv_as_eh_frame+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 gcc_cv_as_eh_frame
=no
10513 if test $in_tree_gas = yes; then
10514 if test $in_tree_gas_is_elf = yes \
10515 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10516 then gcc_cv_as_eh_frame
=yes
10518 elif test x
$gcc_cv_as != x
; then
10525 .section .eh_frame,"aw",@progbits
10527 .4byte .LECIE1-.LSCIE1
10541 .4byte .LEFDE1-.LASFDE1
10543 .4byte .LASFDE1-__FRAME_BEGIN__
10550 .LEFDE1:' > conftest.s
10551 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }
10558 cat > conftest.lit
<<EOF
10559 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10560 0010 01000000 12000000 18000000 00000000 ................
10561 0020 08000000 04080000 0044 .........D
10563 cat > conftest.big
<<EOF
10564 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10565 0010 00000001 00000012 00000018 00000000 ................
10566 0020 00000008 04000000 0844 .........D
10568 # If the assembler didn't choke, and we can objdump,
10569 # and we got the correct data, then succeed.
10570 if test x
$gcc_cv_objdump != x \
10571 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10572 |
tail -3 > conftest.got \
10573 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10574 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10576 gcc_cv_as_eh_frame
=yes
10577 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 gcc_cv_as_eh_frame
=buggy
10585 # Uh oh, what do we do now?
10586 gcc_cv_as_eh_frame
=no
10589 echo "configure: failed program was" >&5
10592 rm -f conftest.o conftest.s
10595 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10596 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10599 if test $gcc_cv_as_eh_frame = buggy
; then
10601 cat >>confdefs.h
<<\_ACEOF
10602 #define USE_AS_TRADITIONAL_FORMAT 1
10607 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10608 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10609 if test "${gcc_cv_as_shf_merge+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10612 gcc_cv_as_shf_merge
=no
10613 if test $in_tree_gas = yes; then
10614 if test $in_tree_gas_is_elf = yes \
10615 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10616 then gcc_cv_as_shf_merge
=yes
10618 elif test x
$gcc_cv_as != x
; then
10619 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10620 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }
10627 gcc_cv_as_shf_merge
=yes
10629 echo "configure: failed program was" >&5
10632 rm -f conftest.o conftest.s
10635 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10636 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10639 cat >>confdefs.h
<<_ACEOF
10640 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10644 # Thread-local storage - the check is heavily parametrized.
10652 .section ".tdata","awT",@progbits
10655 ldq $27,__tls_get_addr($29) !literal!1
10656 lda $16,foo($29) !tlsgd!1
10657 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10658 ldq $27,__tls_get_addr($29) !literal!2
10659 lda $16,foo($29) !tlsldm!2
10660 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10661 ldq $1,foo($29) !gotdtprel
10662 ldah $2,foo($29) !dtprelhi
10663 lda $3,foo($2) !dtprello
10664 lda $4,foo($29) !dtprel
10665 ldq $1,foo($29) !gottprel
10666 ldah $2,foo($29) !tprelhi
10667 lda $3,foo($2) !tprello
10668 lda $4,foo($29) !tprel'
10671 tls_as_opt
=--fatal-warnings
10675 .section ".tdata","awT",@progbits
10679 leal foo@TLSGD(,%ebx,1), %eax
10680 leal foo@TLSLDM(%ebx), %eax
10681 leal foo@DTPOFF(%eax), %edx
10682 movl foo@GOTTPOFF(%ebx), %eax
10683 subl foo@GOTTPOFF(%ebx), %eax
10684 addl foo@GOTNTPOFF(%ebx), %eax
10685 movl foo@INDNTPOFF, %eax
10686 movl $foo@TPOFF, %eax
10687 subl $foo@TPOFF, %eax
10688 leal foo@NTPOFF(%ecx), %eax'
10691 tls_as_opt
=--fatal-warnings
10695 .section ".tdata","awT",@progbits
10699 leaq foo@TLSGD(%rip), %rdi
10700 leaq foo@TLSLD(%rip), %rdi
10701 leaq foo@DTPOFF(%rax), %rdx
10702 movq foo@GOTTPOFF(%rip), %rax
10703 movq $foo@TPOFF, %rax'
10706 tls_as_opt
=--fatal-warnings
10710 .section ".tdata","awT",@progbits
10713 addl r16 = @ltoff(@dtpmod(foo#)), gp
10714 addl r17 = @ltoff(@dtprel(foo#)), gp
10715 addl r18 = @ltoff(@tprel(foo#)), gp
10716 addl r19 = @dtprel(foo#), gp
10717 adds r21 = @dtprel(foo#), r13
10718 movl r23 = @dtprel(foo#)
10719 addl r20 = @tprel(foo#), gp
10720 adds r22 = @tprel(foo#), r13
10721 movl r24 = @tprel(foo#)'
10724 tls_as_opt
=--fatal-warnings
10728 .section ".tdata","awT",@progbits
10736 addi 3,31,ld0@got@tlsgd
10738 addi 3,31,x1@got@tlsld
10741 addis 9,3,x2@dtprel@ha
10742 addi 9,9,x2@dtprel@l
10743 lwz 9,x3@got@tprel(31)
10746 addis 9,2,x2@tprel@ha
10747 addi 9,9,x2@tprel@l'
10750 tls_as_opt
="-a32 --fatal-warnings"
10754 .section ".tdata","awT",@progbits
10762 addi 3,2,ld0@got@tlsgd
10768 addi 3,2,x1@got@tlsld
10774 addis 9,3,x2@dtprel@ha
10775 addi 9,9,x2@dtprel@l
10778 ld 9,x3@got@dtprel(2)
10784 tls_as_opt
="-a64 --fatal-warnings"
10788 .section ".tdata","awT",@progbits
10795 .long foo@GOTNTPOFF
10796 .long foo@INDNTPOFF
10797 l %r1,foo@GOTNTPOFF(%r12)
10798 l %r1,0(%r1):tls_load:foo
10799 bas %r14,0(%r1,%r13):tls_gdcall:foo
10800 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10803 tls_as_opt
="-m31 --fatal-warnings"
10807 .section ".tdata","awT",@progbits
10814 .quad foo@GOTNTPOFF
10815 lg %r1,foo@GOTNTPOFF(%r12)
10816 larl %r1,foo@INDNTPOFF
10817 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10818 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10821 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10823 sh-
*-* | sh
[34]-*-*)
10825 .section ".tdata","awT",@progbits
10835 tls_as_opt
=--fatal-warnings
10839 sparc
*-sun-solaris2.
*)
10846 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10848 .section ".tdata",#alloc,#write,#tls
10851 sethi %tgd_hi22(foo), %o0
10852 add %o0, %tgd_lo10(foo), %o1
10853 add %l7, %o1, %o0, %tgd_add(foo)
10854 call __tls_get_addr, %tgd_call(foo)
10855 sethi %tldm_hi22(foo), %l1
10856 add %l1, %tldm_lo10(foo), %l2
10857 add %l7, %l2, %o0, %tldm_add(foo)
10858 call __tls_get_addr, %tldm_call(foo)
10859 sethi %tldo_hix22(foo), %l3
10860 xor %l3, %tldo_lox10(foo), %l4
10861 add %o0, %l4, %l5, %tldo_add(foo)
10862 sethi %tie_hi22(foo), %o3
10863 add %o3, %tie_lo10(foo), %o3
10864 ld [%l7 + %o3], %o2, %tie_ld(foo)
10865 add %g7, %o2, %o4, %tie_add(foo)
10866 sethi %tle_hix22(foo), %l1
10867 xor %l1, %tle_lox10(foo), %o5
10868 ld [%g7 + %o5], %o1'
10873 .section ".tdata","awT",@progbits
10876 sethi %tgd_hi22(foo), %o0
10877 add %o0, %tgd_lo10(foo), %o1
10878 add %l7, %o1, %o0, %tgd_add(foo)
10879 call __tls_get_addr, %tgd_call(foo)
10880 sethi %tldm_hi22(foo), %l1
10881 add %l1, %tldm_lo10(foo), %l2
10882 add %l7, %l2, %o0, %tldm_add(foo)
10883 call __tls_get_addr, %tldm_call(foo)
10884 sethi %tldo_hix22(foo), %l3
10885 xor %l3, %tldo_lox10(foo), %l4
10886 add %o0, %l4, %l5, %tldo_add(foo)
10887 sethi %tie_hi22(foo), %o3
10888 add %o3, %tie_lo10(foo), %o3
10889 ld [%l7 + %o3], %o2, %tie_ld(foo)
10890 add %g7, %o2, %o4, %tie_add(foo)
10891 sethi %tle_hix22(foo), %l1
10892 xor %l1, %tle_lox10(foo), %o5
10893 ld [%g7 + %o5], %o1'
10896 tls_as_opt
="-32 --fatal-warnings"
10900 if test -z "$tls_first_major"; then
10901 : # If we don't have a check, assume no support.
10903 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10904 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10905 if test "${gcc_cv_as_tls+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 if test $in_tree_gas = yes; then
10910 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10911 then gcc_cv_as_tls
=yes
10913 elif test x
$gcc_cv_as != x
; then
10914 echo "$conftest_s" > conftest.s
10915 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }
10924 echo "configure: failed program was" >&5
10927 rm -f conftest.o conftest.s
10930 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10931 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10932 if test $gcc_cv_as_tls = yes; then
10934 cat >>confdefs.h
<<\_ACEOF
10935 #define HAVE_AS_TLS 1
10941 # Target-specific assembler checks.
10943 if test x
"$demangler_in_ld" = xyes
; then
10944 echo "$as_me:$LINENO: checking linker --demangle support" >&5
10945 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
10946 gcc_cv_ld_demangle
=no
10947 if test $in_tree_ld = yes; then
10948 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
10949 gcc_cv_ld_demangle
=yes
10951 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
10952 # Check if the GNU linker supports --demangle option
10953 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
10954 gcc_cv_ld_demangle
=yes
10957 if test x
"$gcc_cv_ld_demangle" = xyes
; then
10959 cat >>confdefs.h
<<\_ACEOF
10960 #define HAVE_LD_DEMANGLE 1
10964 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
10965 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
10969 # All TARGET_ABI_OSF targets.
10970 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10971 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10972 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10973 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 gcc_cv_as_alpha_explicit_relocs
=no
10977 if test $in_tree_gas = yes; then
10978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10979 then gcc_cv_as_alpha_explicit_relocs
=yes
10981 elif test x
$gcc_cv_as != x
; then
10982 echo ' .set nomacro
10984 extbl $3, $2, $3 !lituse_bytoff!1
10985 ldq $2, a($29) !literal!1
10986 ldq $4, b($29) !literal!2
10987 ldq_u $3, 0($2) !lituse_base!1
10988 ldq $27, f($29) !literal!5
10989 jsr $26, ($27), f !lituse_jsr!5
10990 ldah $29, 0($26) !gpdisp!3
10991 lda $0, c($29) !gprel
10992 ldah $1, d($29) !gprelhigh
10993 lda $1, d($1) !gprellow
10994 lda $29, 0($29) !gpdisp!3' > conftest.s
10995 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997 (eval $ac_try) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); }; }
11002 gcc_cv_as_alpha_explicit_relocs
=yes
11004 echo "configure: failed program was" >&5
11007 rm -f conftest.o conftest.s
11010 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11011 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11012 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11014 cat >>confdefs.h
<<\_ACEOF
11015 #define HAVE_AS_EXPLICIT_RELOCS 1
11022 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11023 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11024 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 gcc_cv_as_cris_no_mul_bug
=no
11028 if test $in_tree_gas = yes; then
11029 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11030 then gcc_cv_as_cris_no_mul_bug
=yes
11032 elif test x
$gcc_cv_as != x
; then
11033 echo '.text' > conftest.s
11034 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; }
11041 gcc_cv_as_cris_no_mul_bug
=yes
11043 echo "configure: failed program was" >&5
11046 rm -f conftest.o conftest.s
11049 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11050 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11051 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11053 cat >>confdefs.h
<<\_ACEOF
11054 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11061 echo "$as_me:$LINENO: checking assembler for .register" >&5
11062 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11063 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 gcc_cv_as_sparc_register_op
=no
11067 if test x
$gcc_cv_as != x
; then
11068 echo '.register %g2, #scratch' > conftest.s
11069 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }
11076 gcc_cv_as_sparc_register_op
=yes
11078 echo "configure: failed program was" >&5
11081 rm -f conftest.o conftest.s
11084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11085 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11086 if test $gcc_cv_as_sparc_register_op = yes; then
11088 cat >>confdefs.h
<<\_ACEOF
11089 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11094 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11095 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11096 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 gcc_cv_as_sparc_relax
=no
11100 if test x
$gcc_cv_as != x
; then
11101 echo '.text' > conftest.s
11102 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }
11109 gcc_cv_as_sparc_relax
=yes
11111 echo "configure: failed program was" >&5
11114 rm -f conftest.o conftest.s
11117 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11118 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11119 if test $gcc_cv_as_sparc_relax = yes; then
11121 cat >>confdefs.h
<<\_ACEOF
11122 #define HAVE_AS_RELAX_OPTION 1
11127 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11128 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11129 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 gcc_cv_as_sparc_ua_pcrel
=no
11133 if test x
$gcc_cv_as != x
; then
11140 .uaword %r_disp32(foo)' > conftest.s
11141 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }
11148 if test x
$gcc_cv_ld != x \
11149 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11150 gcc_cv_as_sparc_ua_pcrel
=yes
11154 echo "configure: failed program was" >&5
11157 rm -f conftest.o conftest.s
11160 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11161 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11162 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11164 cat >>confdefs.h
<<\_ACEOF
11165 #define HAVE_AS_SPARC_UA_PCREL 1
11169 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11170 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11171 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11175 if test x
$gcc_cv_as != x
; then
11179 .uaword %r_disp32(foo)
11180 .byte 0x32, 0x33, 0x34
11184 .skip 4' > conftest.s
11185 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }
11192 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11193 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11194 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11195 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11196 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11197 |
grep 'DISP32' > /dev
/null
2>&1; then
11200 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11205 echo "configure: failed program was" >&5
11208 rm -f conftest.o conftest.s
11211 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11212 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11213 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11215 cat >>confdefs.h
<<\_ACEOF
11216 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11221 fi # unaligned pcrel relocs
11223 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11224 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11225 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11226 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 gcc_cv_as_sparc_offsetable_lo10
=no
11229 if test x
$gcc_cv_as != x
; then
11231 or %g1, %lo(ab) + 12, %g1
11232 or %g1, %lo(ab + 12), %g1' > conftest.s
11233 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }
11240 if test x
$gcc_cv_objdump != x \
11241 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11242 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11243 gcc_cv_as_offsetable_lo10
=yes
11246 echo "configure: failed program was" >&5
11249 rm -f conftest.o conftest.s
11252 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11253 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11254 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11256 cat >>confdefs.h
<<\_ACEOF
11257 #define HAVE_AS_OFFSETABLE_LO10 1
11263 i
[34567]86-*-* | x86_64-
*-*)
11265 cygwin
* | pe | mingw32
*)
11266 # Used for DWARF 2 in PE
11267 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11268 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11269 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 gcc_cv_as_ix86_pe_secrel32
=no
11273 if test $in_tree_gas = yes; then
11274 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11275 then gcc_cv_as_ix86_pe_secrel32
=yes
11277 elif test x
$gcc_cv_as != x
; then
11281 .secrel32 foo' > conftest.s
11282 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }
11289 if test x
$gcc_cv_ld != x \
11290 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
11291 gcc_cv_as_ix86_pe_secrel32
=yes
11295 echo "configure: failed program was" >&5
11298 rm -f conftest.o conftest.s
11301 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11302 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11303 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11305 cat >>confdefs.h
<<\_ACEOF
11306 #define HAVE_GAS_PE_SECREL32_RELOC 1
11313 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11314 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11315 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 gcc_cv_as_ix86_filds_fists
=no
11319 if test $in_tree_gas = yes; then
11320 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11321 then gcc_cv_as_ix86_filds_fists
=yes
11323 elif test x
$gcc_cv_as != x
; then
11324 echo 'filds mem; fists mem' > conftest.s
11325 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }
11332 gcc_cv_as_ix86_filds_fists
=yes
11334 echo "configure: failed program was" >&5
11337 rm -f conftest.o conftest.s
11340 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11341 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11342 if test $gcc_cv_as_ix86_filds_fists = yes; then
11344 cat >>confdefs.h
<<\_ACEOF
11345 #define HAVE_GAS_FILDS_FISTS 1
11350 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11351 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11352 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11355 gcc_cv_as_ix86_cmov_sun_syntax
=no
11356 if test x
$gcc_cv_as != x
; then
11357 echo 'cmovl.l %edx, %eax' > conftest.s
11358 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }
11365 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11367 echo "configure: failed program was" >&5
11370 rm -f conftest.o conftest.s
11373 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11374 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11375 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11377 cat >>confdefs.h
<<\_ACEOF
11378 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11383 # This one is used unconditionally by i386.[ch]; it is to be defined
11384 # to 1 if the feature is present, 0 otherwise.
11385 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11386 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11387 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 gcc_cv_as_ix86_gotoff_in_data
=no
11391 if test $in_tree_gas = yes; then
11392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11393 then gcc_cv_as_ix86_gotoff_in_data
=yes
11395 elif test x
$gcc_cv_as != x
; then
11400 .long .L0@GOTOFF' > conftest.s
11401 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }
11408 gcc_cv_as_ix86_gotoff_in_data
=yes
11410 echo "configure: failed program was" >&5
11413 rm -f conftest.o conftest.s
11416 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11417 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11420 cat >>confdefs.h
<<_ACEOF
11421 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11427 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11428 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11429 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11433 if test $in_tree_gas = yes; then
11434 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11435 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11437 elif test x
$gcc_cv_as != x
; then
11439 addl r15 = @ltoffx(x#), gp
11441 ld8.mov r16 = [r15], x#' > conftest.s
11442 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }
11449 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11451 echo "configure: failed program was" >&5
11454 rm -f conftest.o conftest.s
11457 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11458 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11459 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11461 cat >>confdefs.h
<<\_ACEOF
11462 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11471 *-*-aix*) conftest_s
=' .csect .text[PR]
11473 *-*-darwin*) conftest_s
=' .text
11475 *) conftest_s
=' .text
11479 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11480 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11481 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 gcc_cv_as_powerpc_mfcrf
=no
11485 if test $in_tree_gas = yes; then
11486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11487 then gcc_cv_as_powerpc_mfcrf
=yes
11489 elif test x
$gcc_cv_as != x
; then
11490 echo "$conftest_s" > conftest.s
11491 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }
11498 gcc_cv_as_powerpc_mfcrf
=yes
11500 echo "configure: failed program was" >&5
11503 rm -f conftest.o conftest.s
11506 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11507 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11508 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11510 cat >>confdefs.h
<<\_ACEOF
11511 #define HAVE_AS_MFCRF 1
11518 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11519 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11520 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11521 echo $ECHO_N "(cached) $ECHO_C" >&6
11523 gcc_cv_as_mips_explicit_relocs
=no
11524 if test $in_tree_gas = yes; then
11525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11526 then gcc_cv_as_mips_explicit_relocs
=yes
11528 elif test x
$gcc_cv_as != x
; then
11529 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11530 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }
11537 gcc_cv_as_mips_explicit_relocs
=yes
11539 echo "configure: failed program was" >&5
11542 rm -f conftest.o conftest.s
11545 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11546 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11547 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11548 if test x
$target_cpu_default = x
11549 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11550 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11556 # ??? Not all targets support dwarf2 debug_line, even within a version
11557 # of gas. Moreover, we need to emit a valid instruction to trigger any
11558 # info to the output file. So, as supported targets are added to gas 2.11,
11559 # add some instruction here to (also) show we expect this might work.
11560 # ??? Once 2.11 is released, probably need to add first known working
11561 # version to the per-target configury.
11563 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11564 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11565 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11568 ia64
*-*-* | s390
*-*-*)
11575 if test x
"$insn" != x
; then
11577 .file 1 \"conftest.s\"
11580 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11581 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11582 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 gcc_cv_as_dwarf2_debug_line
=no
11586 if test $in_tree_gas = yes; then
11587 if test $in_tree_gas_is_elf = yes \
11588 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11589 then gcc_cv_as_dwarf2_debug_line
=yes
11591 elif test x
$gcc_cv_as != x
; then
11592 echo "$conftest_s" > conftest.s
11593 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11595 (eval $ac_try) 2>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); }; }
11600 # ??? This fails with non-gnu grep. Maybe use objdump?
11601 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11602 gcc_cv_as_dwarf2_debug_line
=yes
11605 echo "configure: failed program was" >&5
11608 rm -f conftest.o conftest.s
11611 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11612 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11615 # The .debug_line file table must be in the exact order that
11616 # we specified the files, since these indices are also used
11617 # by DW_AT_decl_file. Approximate this test by testing if
11618 # the assembler bitches if the same index is assigned twice.
11619 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11620 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11621 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 gcc_cv_as_dwarf2_file_buggy
=no
11625 if test x
$gcc_cv_as != x
; then
11626 echo ' .file 1 "foo.s"
11627 .file 1 "bar.s"' > conftest.s
11628 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }
11635 gcc_cv_as_dwarf2_file_buggy
=yes
11637 echo "configure: failed program was" >&5
11640 rm -f conftest.o conftest.s
11643 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11644 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11647 if test $gcc_cv_as_dwarf2_debug_line = yes \
11648 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11650 cat >>confdefs.h
<<\_ACEOF
11651 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11656 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11657 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11658 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 gcc_cv_as_gdwarf2_flag
=no
11662 if test $in_tree_gas = yes; then
11663 if test $in_tree_gas_is_elf = yes \
11664 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11665 then gcc_cv_as_gdwarf2_flag
=yes
11667 elif test x
$gcc_cv_as != x
; then
11668 echo "$insn" > conftest.s
11669 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }
11676 gcc_cv_as_gdwarf2_flag
=yes
11678 echo "configure: failed program was" >&5
11681 rm -f conftest.o conftest.s
11684 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11685 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11686 if test $gcc_cv_as_gdwarf2_flag = yes; then
11688 cat >>confdefs.h
<<\_ACEOF
11689 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11694 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11695 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11696 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 gcc_cv_as_gstabs_flag
=no
11700 if test $in_tree_gas = yes; then
11701 if test $in_tree_gas_is_elf = yes \
11702 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11703 then gcc_cv_as_gstabs_flag
=yes
11705 elif test x
$gcc_cv_as != x
; then
11706 echo "$insn" > conftest.s
11707 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }
11714 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11715 # and warns about it, but still exits successfully. So check for
11717 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }
11724 else gcc_cv_as_gstabs_flag
=yes
11727 echo "configure: failed program was" >&5
11730 rm -f conftest.o conftest.s
11733 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11734 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11735 if test $gcc_cv_as_gstabs_flag = yes; then
11737 cat >>confdefs.h
<<\_ACEOF
11738 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11744 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11745 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11746 gcc_cv_ld_ro_rw_mix
=unknown
11747 if test $in_tree_ld = yes ; then
11748 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
11749 && test $in_tree_ld_is_elf = yes; then
11750 gcc_cv_ld_ro_rw_mix
=read-write
11752 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11753 echo '.section myfoosect, "a"' > conftest1.s
11754 echo '.section myfoosect, "aw"' > conftest2.s
11755 echo '.byte 1' >> conftest2.s
11756 echo '.section myfoosect, "a"' > conftest3.s
11757 echo '.byte 0' >> conftest3.s
11758 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11759 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11760 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11761 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11762 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11763 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11764 | sed -e '/myfoosect/!d' -e N`
11765 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11766 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11767 gcc_cv_ld_ro_rw_mix
=read-only
11769 gcc_cv_ld_ro_rw_mix
=read-write
11773 rm -f conftest.
* conftest
[123].
*
11775 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11777 cat >>confdefs.h
<<\_ACEOF
11778 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11782 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11783 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11785 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11786 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11787 gcc_cv_ld_eh_frame_hdr
=no
11788 if test $in_tree_ld = yes ; then
11789 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 \
11790 && test $in_tree_ld_is_elf = yes; then
11791 gcc_cv_ld_eh_frame_hdr
=yes
11793 elif test x
$gcc_cv_ld != x
; then
11794 # Check if linker supports --eh-frame-hdr option
11795 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11796 gcc_cv_ld_eh_frame_hdr
=yes
11799 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11801 cat >>confdefs.h
<<\_ACEOF
11802 #define HAVE_LD_EH_FRAME_HDR 1
11806 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11807 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11809 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11810 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11812 if test $in_tree_ld = yes ; then
11813 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 \
11814 && test $in_tree_ld_is_elf = yes; then
11817 elif test x
$gcc_cv_ld != x
; then
11818 # Check if linker supports -pie option
11819 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11823 if test x
"$gcc_cv_ld_pie" = xyes
; then
11825 cat >>confdefs.h
<<\_ACEOF
11826 #define HAVE_LD_PIE 1
11830 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11831 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11837 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11838 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11839 if test "${gcc_cv_ld_as_needed+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 gcc_cv_ld_as_needed
=no
11843 if test $in_tree_ld = yes ; then
11844 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
11845 && test $in_tree_ld_is_elf = yes; then
11846 gcc_cv_ld_as_needed
=yes
11848 elif test x
$gcc_cv_ld != x
; then
11849 # Check if linker supports --as-needed and --no-as-needed options
11850 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
11851 gcc_cv_ld_as_needed
=yes
11856 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11857 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11858 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
11860 cat >>confdefs.h
<<\_ACEOF
11861 #define HAVE_LD_AS_NEEDED 1
11866 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11867 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11869 cat >>confdefs.h
<<_ACEOF
11870 #define PREFIX_INCLUDE_DIR "$prefix/include"
11875 # Find out what GC implementation we want, or may, use.
11877 # Check whether --with-gc or --without-gc was given.
11878 if test "${with_gc+set}" = set; then
11885 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11886 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11887 { (exit 1); exit 1; }; }
11894 echo "Using $GGC for garbage collection."
11896 # Use the system's zlib library.
11898 zlibinc
="-I\$(srcdir)/../zlib"
11900 # Check whether --with-system-zlib or --without-system-zlib was given.
11901 if test "${with_system_zlib+set}" = set; then
11902 withval
="$with_system_zlib"
11911 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11912 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11913 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11914 if test "${enable_maintainer_mode+set}" = set; then
11915 enableval
="$enable_maintainer_mode"
11916 maintainer_mode
=$enableval
11921 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11922 echo "${ECHO_T}$maintainer_mode" >&6
11924 if test "$maintainer_mode" = "yes"; then
11930 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11931 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11933 # Check whether --with-libbanshee or --without-libbanshee was given.
11934 if test "${with_libbanshee+set}" = set; then
11935 withval
="$with_libbanshee"
11936 libbanshee
="$with_libbanshee"
11941 if test x
"$libbanshee" = xyes
; then
11942 BANSHEELIB
="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11943 BANSHEEINC
="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11944 ANDER
="tree-alias-ander.o"
11946 cat >>confdefs.h
<<\_ACEOF
11947 #define HAVE_BANSHEE 1
11955 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11956 echo "${ECHO_T}$with_libbanshee" >&6
11966 # Make empty files to contain the specs and options for each language.
11967 # Then add #include lines to for a compiler that has specs and/or options.
11972 for subdir
in .
$subdirs
11974 if test -f $srcdir/$subdir/lang.opt
; then
11975 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11977 if test -f $srcdir/$subdir/lang-specs.h
; then
11978 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11980 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11981 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11985 # These (without "all_") are set in each config-lang.in.
11986 # `language' must be a single word so is spelled singularly.
11988 all_boot_languages
=
11991 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11992 # List of language makefile fragments.
11993 all_lang_makefrags
=
11994 # List of language subdirectory makefiles. Deprecated.
11995 all_lang_makefiles
=
11996 # Files for gengtype
11997 all_gtfiles
="$target_gtfiles"
11998 # Files for gengtype with language
11999 all_gtfiles_files_langs
=
12000 all_gtfiles_files_files
=
12002 # Add the language fragments.
12003 # Languages are added via two mechanisms. Some information must be
12004 # recorded in makefile variables, these are defined in config-lang.in.
12005 # We accumulate them and plug them into the main Makefile.
12006 # The other mechanism is a set of hooks for each of the main targets
12007 # like `clean', `install', etc.
12009 language_hooks
="Make-hooks"
12019 .
${srcdir}/$s/config-lang.
in
12020 if test "x$language" = x
12022 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12025 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12026 if test -f ${srcdir}/$s/Makefile.
in
12027 then all_lang_makefiles
="$s/Makefile"
12029 all_languages
="$all_languages $language"
12030 if test "x$boot_language" = xyes
12032 all_boot_languages
="$all_boot_languages $language"
12034 all_compilers
="$all_compilers $compilers"
12035 all_stagestuff
="$all_stagestuff $stagestuff"
12036 all_outputs
="$all_outputs $outputs"
12037 all_gtfiles
="$all_gtfiles $gtfiles"
12040 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12041 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12045 # Pick up gtfiles for c
12048 .
${srcdir}/c-config-lang.
in
12049 all_gtfiles
="$all_gtfiles $gtfiles"
12052 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12053 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12057 for language
in $all_languages
12059 check_languages
="$check_languages check-$language"
12062 # We link each language in with a set of hooks, reached indirectly via
12067 target_list
="all.build all.cross start.encap rest.encap tags \
12068 install-normal install-common install-man \
12069 uninstall info man srcextra srcman srcinfo \
12070 mostlyclean clean distclean maintainer-clean \
12071 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12072 for t
in $target_list
12075 for lang
in $all_languages
12079 echo "lang.$t: $x" >> Make-hooks
12088 echo "dir ." > .gdbinit
12089 echo "dir ${srcdir}" >> .gdbinit
12090 if test x
$gdb_needs_out_file_path = xyes
12092 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12094 if test "x$subdirs" != x
; then
12097 echo "dir ${srcdir}/$s" >> .gdbinit
12100 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12102 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12103 # absolute path for gcc_tooldir based on inserting the number of up-directory
12104 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12105 # $(libsubdir)/@(unlibsubdir) based path.
12106 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12107 # make and thus we'd get different behavior depending on where we built the
12109 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12110 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12112 # An explanation of the sed strings:
12113 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12114 # -e 's|/$||' match a trailing forward slash and eliminates it
12115 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12116 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12118 # (*) Note this pattern overwrites the first character of the string
12119 # with a forward slash if one is not already present. This is not a
12120 # problem because the exact names of the sub-directories concerned is
12121 # unimportant, just the number of them matters.
12123 # The practical upshot of these patterns is like this:
12125 # prefix exec_prefix result
12126 # ------ ----------- ------
12127 # /foo /foo/bar ../
12128 # /foo/ /foo/bar ../
12129 # /foo /foo/bar/ ../
12130 # /foo/ /foo/bar/ ../
12131 # /foo /foo/bar/ugg ../../
12134 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12139 # Find a directory in which to install a shared libgcc.
12141 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12142 if test "${enable_version_specific_runtime_libs+set}" = set; then
12143 enableval
="$enable_version_specific_runtime_libs"
12148 # Check whether --with-slibdir or --without-slibdir was given.
12149 if test "${with_slibdir+set}" = set; then
12150 withval
="$with_slibdir"
12151 slibdir
="$with_slibdir"
12153 if test "${enable_version_specific_runtime_libs+set}" = set; then
12154 slibdir
='$(libsubdir)'
12155 elif test "$host" != "$target"; then
12156 slibdir
='$(build_tooldir)/lib'
12158 slibdir
='$(libdir)'
12163 objdir
=`${PWDCMD-pwd}`
12166 # Substitute configuration variables
12235 # If it doesn't already exist, create document directory
12236 echo "checking for the document directory." 1>&2
12237 if test -d doc
; then
12244 if test x
${build} = x
${host} ; then
12245 if test x
${host} = x
${target} ; then
12246 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12248 echo "Links are now set up to build a cross-compiler" 1>&2
12249 echo " from ${host} to ${target}." 1>&2
12252 if test x
${host} = x
${target} ; then
12253 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12254 echo " for ${target}." 1>&2
12256 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12257 echo " from ${host} to ${target}." 1>&2
12264 # Configure the subdirectories
12265 # AC_CONFIG_SUBDIRS($subdirs)
12267 # Create the Makefile
12268 # and configure language subdirectories
12269 ac_config_files
="$ac_config_files $all_outputs"
12272 ac_config_commands
="$ac_config_commands default"
12274 cat >confcache
<<\_ACEOF
12275 # This file is a shell script that caches the results of configure
12276 # tests run on this system so they can be shared between configure
12277 # scripts and configure runs, see configure's option --config-cache.
12278 # It is not useful on other systems. If it contains results you don't
12279 # want to keep, you may remove or edit it.
12281 # config.status only pays attention to the cache file if you give it
12282 # the --recheck option to rerun configure.
12284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12286 # following values.
12290 # The following way of writing the cache mishandles newlines in values,
12291 # but we know of no workaround that is simple, portable, and efficient.
12292 # So, don't put newlines in cache variables' values.
12293 # Ultrix sh set writes to stderr and can't be redirected directly,
12294 # and sets the high bit in the cache file unless we assign to the vars.
12297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12299 # `set' does not quote correctly, so add quotes (double-quote
12300 # substitution turns \\\\ into \\, and sed turns \\ into \).
12303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12306 # `set' quotes correctly as required by POSIX, so do not add quotes.
12308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12317 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12319 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12320 if test -w $cache_file; then
12321 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12322 cat confcache
>$cache_file
12324 echo "not updating unwritable cache $cache_file"
12329 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12330 # Let make expand exec_prefix.
12331 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12333 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12334 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12335 # trailing colons and then remove the whole line if VPATH becomes empty
12336 # (actually we leave an empty line to preserve line numbers).
12337 if test "x$srcdir" = x.
; then
12338 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12339 s/:*\$(srcdir):*/:/;
12340 s/:*\${srcdir}:*/:/;
12342 s/^\([^=]*=[ ]*\):*/\1/;
12348 DEFS
=-DHAVE_CONFIG_H
12352 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12353 # 1. Remove the extension, and $U if already installed.
12354 ac_i
=`echo "$ac_i" |
12355 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12357 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12358 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12360 LIBOBJS
=$ac_libobjs
12362 LTLIBOBJS
=$ac_ltlibobjs
12366 : ${CONFIG_STATUS=./config.status}
12367 ac_clean_files_save
=$ac_clean_files
12368 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12369 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12370 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12371 cat >$CONFIG_STATUS <<_ACEOF
12373 # Generated by $as_me.
12374 # Run this file to recreate the current configuration.
12375 # Compiler output produced by configure, useful for debugging
12376 # configure, is in config.log if it exists.
12379 ac_cs_recheck=false
12381 SHELL=\${CONFIG_SHELL-$SHELL}
12384 cat >>$CONFIG_STATUS <<\_ACEOF
12385 ## --------------------- ##
12386 ## M4sh Initialization. ##
12387 ## --------------------- ##
12389 # Be Bourne compatible
12390 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12393 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12394 # is contrary to our usage. Disable this feature.
12395 alias -g '${1+"$@"}'='"$@"'
12396 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12399 DUALCASE
=1; export DUALCASE
# for MKS sh
12401 # Support unset when possible.
12402 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12409 # Work around bugs in pre-3.0 UWIN ksh.
12410 $as_unset ENV MAIL MAILPATH
12417 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12418 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12419 LC_TELEPHONE LC_TIME
12421 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12422 eval $as_var=C
; export $as_var
12428 # Required to use basename.
12429 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12435 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12436 as_basename
=basename
12442 # Name of the executable.
12443 as_me
=`$as_basename "$0" ||
12444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12445 X"$0" : 'X\(//\)$' \| \
12446 X"$0" : 'X\(/\)$' \| \
12447 . : '\(.\)' 2>/dev/null ||
12449 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12450 /^X\/\(\/\/\)$/{ s//\1/; q; }
12451 /^X\/\(\/\).*/{ s//\1/; q; }
12455 # PATH needs CR, and LINENO needs CR and PATH.
12456 # Avoid depending upon Character Ranges.
12457 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12458 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12459 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12460 as_cr_digits
='0123456789'
12461 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12463 # The user is always right.
12464 if test "${PATH_SEPARATOR+set}" != set; then
12465 echo "#! /bin/sh" >conf$$.sh
12466 echo "exit 0" >>conf$$.sh
12468 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12477 as_lineno_1
=$LINENO
12478 as_lineno_2
=$LINENO
12479 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12480 test "x$as_lineno_1" != "x$as_lineno_2" &&
12481 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12482 # Find who we are. Look in the path if we contain no path at all
12485 *[\\/]* ) as_myself
=$0 ;;
12486 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12487 for as_dir
in $PATH
12490 test -z "$as_dir" && as_dir
=.
12491 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12496 # We did not find ourselves, most probably we were run as `sh COMMAND'
12497 # in which case we are not to be found in the path.
12498 if test "x$as_myself" = x
; then
12501 if test ! -f "$as_myself"; then
12502 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12503 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12504 { (exit 1); exit 1; }; }
12506 case $CONFIG_SHELL in
12508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12509 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12512 test -z "$as_dir" && as_dir
=.
12513 for as_base
in sh bash ksh sh5
; do
12516 if ("$as_dir/$as_base" -c '
12517 as_lineno_1=$LINENO
12518 as_lineno_2=$LINENO
12519 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12520 test "x$as_lineno_1" != "x$as_lineno_2" &&
12521 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12522 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12523 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12524 CONFIG_SHELL
=$as_dir/$as_base
12525 export CONFIG_SHELL
12526 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12534 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12535 # uniformly replaced by the line number. The first 'sed' inserts a
12536 # line-number line before each line; the second 'sed' does the real
12537 # work. The second script uses 'N' to pair each line-number line
12538 # with the numbered line, and appends trailing '-' during
12539 # substitution so that $LINENO is not a special case at line end.
12540 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12541 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12542 sed '=' <$as_myself |
12547 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12550 s,^['$as_cr_digits']*\n,,
12551 ' >$as_me.lineno
&&
12552 chmod +x
$as_me.lineno ||
12553 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12554 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12555 { (exit 1); exit 1; }; }
12557 # Don't try to exec as it changes $[0], causing all sort of problems
12558 # (the dirname of $[0] is not the place where we might find the
12559 # original and so on. Autoconf is especially sensible to this).
12561 # Exit status is that of the last command.
12566 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12567 *c
*,-n*) ECHO_N
= ECHO_C
='
12569 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12570 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12573 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12579 rm -f conf$$ conf$$.exe conf$$.
file
12581 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12582 # We could just check for DJGPP; but this test a) works b) is more generic
12583 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12584 if test -f conf$$.exe
; then
12585 # Don't use ln at all; we don't have any links
12590 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12595 rm -f conf$$ conf$$.exe conf$$.
file
12597 if mkdir
-p .
2>/dev
/null
; then
12600 test -d .
/-p && rmdir .
/-p
12604 as_executable_p
="test -f"
12606 # Sed expression to map a string onto a valid CPP name.
12607 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12609 # Sed expression to map a string onto a valid variable name.
12610 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12614 # We need space, tab and new line, in precisely that order.
12624 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12625 # report actual input values of CONFIG_FILES etc. instead of their
12626 # values after options handling. Logging --version etc. is OK.
12630 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12631 ## Running $as_me. ##
12636 This file was extended by $as_me, which was
12637 generated by GNU Autoconf 2.59. Invocation command line was
12639 CONFIG_FILES = $CONFIG_FILES
12640 CONFIG_HEADERS = $CONFIG_HEADERS
12641 CONFIG_LINKS = $CONFIG_LINKS
12642 CONFIG_COMMANDS = $CONFIG_COMMANDS
12646 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12650 # Files that config.status was made for.
12651 if test -n "$ac_config_files"; then
12652 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12655 if test -n "$ac_config_headers"; then
12656 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12659 if test -n "$ac_config_links"; then
12660 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12663 if test -n "$ac_config_commands"; then
12664 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12667 cat >>$CONFIG_STATUS <<\_ACEOF
12670 \`$as_me' instantiates files from templates according to the
12671 current configuration.
12673 Usage: $0 [OPTIONS] [FILE]...
12675 -h, --help print this help, then exit
12676 -V, --version print version number, then exit
12677 -q, --quiet do not print progress messages
12678 -d, --debug don't remove temporary files
12679 --recheck update $as_me by reconfiguring in the same conditions
12680 --file=FILE[:TEMPLATE]
12681 instantiate the configuration file FILE
12682 --header=FILE[:TEMPLATE]
12683 instantiate the configuration header FILE
12685 Configuration files:
12688 Configuration headers:
12691 Configuration commands:
12694 Report bugs to <bug-autoconf@gnu.org>."
12697 cat >>$CONFIG_STATUS <<_ACEOF
12700 configured by $0, generated by GNU Autoconf 2.59,
12701 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12703 Copyright (C) 2003 Free Software Foundation, Inc.
12704 This config.status script is free software; the Free Software Foundation
12705 gives unlimited permission to copy, distribute and modify it."
12709 cat >>$CONFIG_STATUS <<\_ACEOF
12710 # If no file are specified by the user, then we need to provide default
12711 # value. By we need to know if files were specified by the user.
12717 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12718 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12726 *) # This is not an option, so the user has probably given explicit
12729 ac_need_defaults
=false
;;
12733 # Handling of the options.
12735 cat >>$CONFIG_STATUS <<\_ACEOF
12736 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12738 --version |
--vers* |
-V )
12739 echo "$ac_cs_version"; exit 0 ;;
12741 # Conflict between --help and --header
12742 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12743 Try \`$0 --help' for more information." >&5
12744 echo "$as_me: error: ambiguous option: $1
12745 Try \`$0 --help' for more information." >&2;}
12746 { (exit 1); exit 1; }; };;
12747 --help |
--hel |
-h )
12748 echo "$ac_cs_usage"; exit 0 ;;
12749 --debug |
--d* |
-d )
12751 --file |
--fil |
--fi |
--f )
12753 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12754 ac_need_defaults
=false
;;
12755 --header |
--heade |
--head |
--hea )
12757 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12758 ac_need_defaults
=false
;;
12759 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12760 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12763 # This is an error.
12764 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12765 Try \`$0 --help' for more information." >&5
12766 echo "$as_me: error: unrecognized option: $1
12767 Try \`$0 --help' for more information." >&2;}
12768 { (exit 1); exit 1; }; } ;;
12770 *) ac_config_targets
="$ac_config_targets $1" ;;
12776 ac_configure_extra_args
=
12778 if $ac_cs_silent; then
12780 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12784 cat >>$CONFIG_STATUS <<_ACEOF
12785 if \$ac_cs_recheck; then
12786 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12787 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12792 cat >>$CONFIG_STATUS <<_ACEOF
12794 # INIT-COMMANDS section.
12798 symbolic_link='$symbolic_link'
12805 cat >>$CONFIG_STATUS <<\_ACEOF
12806 for ac_config_target
in $ac_config_targets
12808 case "$ac_config_target" in
12809 # Handling of arguments.
12810 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12811 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12812 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12813 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12814 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12815 { (exit 1); exit 1; }; };;
12819 # If the user did not use the arguments to specify the items to instantiate,
12820 # then the envvar interface is used. Set only those that are not.
12821 # We use the long form for the default assignment because of an extremely
12822 # bizarre bug on SunOS 4.1.3.
12823 if $ac_need_defaults; then
12824 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12825 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12826 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12829 # Have a temporary directory for convenience. Make it in the build tree
12830 # simply because there is no reason to put it here, and in addition,
12831 # creating and moving files from /tmp can sometimes cause problems.
12832 # Create a temporary directory, and hook for its removal unless debugging.
12835 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12836 trap '{ (exit 1); exit 1; }' 1 2 13 15
12839 # Create a (secure) tmp directory for tmp files.
12842 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12843 test -n "$tmp" && test -d "$tmp"
12846 tmp
=.
/confstat$$
-$RANDOM
12847 (umask 077 && mkdir
$tmp)
12850 echo "$me: cannot create a temporary directory in ." >&2
12851 { (exit 1); exit 1; }
12856 cat >>$CONFIG_STATUS <<_ACEOF
12859 # CONFIG_FILES section.
12862 # No need to generate the scripts if there are no CONFIG_FILES.
12863 # This happens for instance when ./config.status config.h
12864 if test -n "\$CONFIG_FILES"; then
12865 # Protect against being on the right side of a sed subst in config.status.
12866 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12867 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12868 s,@SHELL@,$SHELL,;t t
12869 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12870 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12871 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12872 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12873 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12874 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12875 s,@exec_prefix@,$exec_prefix,;t t
12876 s,@prefix@,$prefix,;t t
12877 s,@program_transform_name@,$program_transform_name,;t t
12878 s,@bindir@,$bindir,;t t
12879 s,@sbindir@,$sbindir,;t t
12880 s,@libexecdir@,$libexecdir,;t t
12881 s,@datadir@,$datadir,;t t
12882 s,@sysconfdir@,$sysconfdir,;t t
12883 s,@sharedstatedir@,$sharedstatedir,;t t
12884 s,@localstatedir@,$localstatedir,;t t
12885 s,@libdir@,$libdir,;t t
12886 s,@includedir@,$includedir,;t t
12887 s,@oldincludedir@,$oldincludedir,;t t
12888 s,@infodir@,$infodir,;t t
12889 s,@mandir@,$mandir,;t t
12890 s,@build_alias@,$build_alias,;t t
12891 s,@host_alias@,$host_alias,;t t
12892 s,@target_alias@,$target_alias,;t t
12893 s,@DEFS@,$DEFS,;t t
12894 s,@ECHO_C@,$ECHO_C,;t t
12895 s,@ECHO_N@,$ECHO_N,;t t
12896 s,@ECHO_T@,$ECHO_T,;t t
12897 s,@LIBS@,$LIBS,;t t
12898 s,@build@,$build,;t t
12899 s,@build_cpu@,$build_cpu,;t t
12900 s,@build_vendor@,$build_vendor,;t t
12901 s,@build_os@,$build_os,;t t
12902 s,@host@,$host,;t t
12903 s,@host_cpu@,$host_cpu,;t t
12904 s,@host_vendor@,$host_vendor,;t t
12905 s,@host_os@,$host_os,;t t
12906 s,@target@,$target,;t t
12907 s,@target_cpu@,$target_cpu,;t t
12908 s,@target_vendor@,$target_vendor,;t t
12909 s,@target_os@,$target_os,;t t
12910 s,@build_subdir@,$build_subdir,;t t
12911 s,@host_subdir@,$host_subdir,;t t
12912 s,@target_subdir@,$target_subdir,;t t
12913 s,@GENINSRC@,$GENINSRC,;t t
12915 s,@CFLAGS@,$CFLAGS,;t t
12916 s,@LDFLAGS@,$LDFLAGS,;t t
12917 s,@CPPFLAGS@,$CPPFLAGS,;t t
12918 s,@ac_ct_CC@,$ac_ct_CC,;t t
12919 s,@EXEEXT@,$EXEEXT,;t t
12920 s,@OBJEXT@,$OBJEXT,;t t
12921 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12922 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12924 s,@strict1_warn@,$strict1_warn,;t t
12925 s,@warn_cflags@,$warn_cflags,;t t
12926 s,@WERROR@,$WERROR,;t t
12927 s,@nocommon_flag@,$nocommon_flag,;t t
12928 s,@TREEBROWSER@,$TREEBROWSER,;t t
12929 s,@EGREP@,$EGREP,;t t
12930 s,@valgrind_path@,$valgrind_path,;t t
12931 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12932 s,@valgrind_command@,$valgrind_command,;t t
12933 s,@coverage_flags@,$coverage_flags,;t t
12934 s,@enable_multilib@,$enable_multilib,;t t
12935 s,@enable_shared@,$enable_shared,;t t
12936 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12937 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12938 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12939 s,@onestep@,$onestep,;t t
12940 s,@SET_MAKE@,$SET_MAKE,;t t
12942 s,@LN_S@,$LN_S,;t t
12944 s,@RANLIB@,$RANLIB,;t t
12945 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12946 s,@ranlib_flags@,$ranlib_flags,;t t
12947 s,@INSTALL@,$INSTALL,;t t
12948 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12949 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12950 s,@make_compare_target@,$make_compare_target,;t t
12951 s,@have_mktemp_command@,$have_mktemp_command,;t t
12952 s,@MAKEINFO@,$MAKEINFO,;t t
12953 s,@BUILD_INFO@,$BUILD_INFO,;t t
12954 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12955 s,@FLEX@,$FLEX,;t t
12956 s,@BISON@,$BISON,;t t
12957 s,@stage1_cflags@,$stage1_cflags,;t t
12958 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12959 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12960 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12961 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12962 s,@LIBICONV@,$LIBICONV,;t t
12963 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12964 s,@manext@,$manext,;t t
12965 s,@objext@,$objext,;t t
12966 s,@gthread_flags@,$gthread_flags,;t t
12967 s,@extra_modes_file@,$extra_modes_file,;t t
12968 s,@FORBUILD@,$FORBUILD,;t t
12969 s,@PACKAGE@,$PACKAGE,;t t
12970 s,@VERSION@,$VERSION,;t t
12971 s,@USE_NLS@,$USE_NLS,;t t
12972 s,@LIBINTL@,$LIBINTL,;t t
12973 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12974 s,@INCINTL@,$INCINTL,;t t
12975 s,@XGETTEXT@,$XGETTEXT,;t t
12976 s,@GMSGFMT@,$GMSGFMT,;t t
12977 s,@POSUB@,$POSUB,;t t
12978 s,@CATALOGS@,$CATALOGS,;t t
12979 s,@CROSS@,$CROSS,;t t
12981 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12982 s,@inhibit_libc@,$inhibit_libc,;t t
12983 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12984 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12985 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12986 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12987 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12988 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12989 s,@collect2@,$collect2,;t t
12990 s,@libgcc_visibility@,$libgcc_visibility,;t t
12992 s,@zlibdir@,$zlibdir,;t t
12993 s,@zlibinc@,$zlibinc,;t t
12994 s,@MAINT@,$MAINT,;t t
12995 s,@ANDER@,$ANDER,;t t
12996 s,@BANSHEEINC@,$BANSHEEINC,;t t
12997 s,@BANSHEELIB@,$BANSHEELIB,;t t
12998 s,@gcc_tooldir@,$gcc_tooldir,;t t
12999 s,@dollar@,$dollar,;t t
13000 s,@slibdir@,$slibdir,;t t
13001 s,@objdir@,$objdir,;t t
13002 s,@subdirs@,$subdirs,;t t
13003 s,@srcdir@,$srcdir,;t t
13004 s,@all_boot_languages@,$all_boot_languages,;t t
13005 s,@all_compilers@,$all_compilers,;t t
13006 s,@all_gtfiles@,$all_gtfiles,;t t
13007 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13008 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13009 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13010 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13011 s,@all_languages@,$all_languages,;t t
13012 s,@all_stagestuff@,$all_stagestuff,;t t
13013 s,@build_exeext@,$build_exeext,;t t
13014 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13015 s,@build_xm_file_list@,$build_xm_file_list,;t t
13016 s,@build_xm_include_list@,$build_xm_include_list,;t t
13017 s,@build_xm_defines@,$build_xm_defines,;t t
13018 s,@check_languages@,$check_languages,;t t
13019 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13020 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13021 s,@cpp_install_dir@,$cpp_install_dir,;t t
13022 s,@xmake_file@,$xmake_file,;t t
13023 s,@tmake_file@,$tmake_file,;t t
13024 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13025 s,@extra_headers_list@,$extra_headers_list,;t t
13026 s,@extra_objs@,$extra_objs,;t t
13027 s,@extra_parts@,$extra_parts,;t t
13028 s,@extra_passes@,$extra_passes,;t t
13029 s,@extra_programs@,$extra_programs,;t t
13030 s,@float_h_file@,$float_h_file,;t t
13031 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13032 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13033 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13034 s,@gcc_version@,$gcc_version,;t t
13035 s,@gcc_version_full@,$gcc_version_full,;t t
13036 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13037 s,@host_exeext@,$host_exeext,;t t
13038 s,@host_xm_file_list@,$host_xm_file_list,;t t
13039 s,@host_xm_include_list@,$host_xm_include_list,;t t
13040 s,@host_xm_defines@,$host_xm_defines,;t t
13041 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13042 s,@install@,$install,;t t
13043 s,@lang_opt_files@,$lang_opt_files,;t t
13044 s,@lang_specs_files@,$lang_specs_files,;t t
13045 s,@lang_tree_files@,$lang_tree_files,;t t
13046 s,@local_prefix@,$local_prefix,;t t
13047 s,@md_file@,$md_file,;t t
13048 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13049 s,@out_file@,$out_file,;t t
13050 s,@out_object_file@,$out_object_file,;t t
13051 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13052 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13053 s,@symbolic_link@,$symbolic_link,;t t
13054 s,@thread_file@,$thread_file,;t t
13055 s,@tm_file_list@,$tm_file_list,;t t
13056 s,@tm_include_list@,$tm_include_list,;t t
13057 s,@tm_defines@,$tm_defines,;t t
13058 s,@tm_p_file_list@,$tm_p_file_list,;t t
13059 s,@tm_p_include_list@,$tm_p_include_list,;t t
13060 s,@xm_file_list@,$xm_file_list,;t t
13061 s,@xm_include_list@,$xm_include_list,;t t
13062 s,@xm_defines@,$xm_defines,;t t
13063 s,@target_noncanonical@,$target_noncanonical,;t t
13064 s,@c_target_objs@,$c_target_objs,;t t
13065 s,@cxx_target_objs@,$cxx_target_objs,;t t
13066 s,@target_cpu_default@,$target_cpu_default,;t t
13067 s,@GMPLIBS@,$GMPLIBS,;t t
13068 s,@GMPINC@,$GMPINC,;t t
13069 s,@LIBOBJS@,$LIBOBJS,;t t
13070 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13071 /@language_hooks@/r $language_hooks
13072 s,@language_hooks@,,;t t
13077 cat >>$CONFIG_STATUS <<\_ACEOF
13078 # Split the substitutions into bite-sized pieces for seds with
13079 # small command number limits, like on Digital OSF/1 and HP-UX.
13080 ac_max_sed_lines
=48
13081 ac_sed_frag
=1 # Number of current file.
13082 ac_beg
=1 # First line for current file.
13083 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13086 while $ac_more_lines; do
13087 if test $ac_beg -gt 1; then
13088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13090 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13092 if test ! -s $tmp/subs.frag
; then
13093 ac_more_lines
=false
13095 # The purpose of the label and of the branching condition is to
13096 # speed up the sed processing (if there are no `@' at all, there
13097 # is no need to browse any of the substitutions).
13098 # These are the two extra sed commands mentioned above.
13100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13101 if test -z "$ac_sed_cmds"; then
13102 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13104 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13106 ac_sed_frag
=`expr $ac_sed_frag + 1`
13108 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13111 if test -z "$ac_sed_cmds"; then
13114 fi # test -n "$CONFIG_FILES"
13117 cat >>$CONFIG_STATUS <<\_ACEOF
13118 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13121 - |
*:- |
*:-:* ) # input from stdin
13123 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13124 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13125 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13126 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13127 * ) ac_file_in
=$ac_file.
in ;;
13130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13131 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13133 X"$ac_file" : 'X\(//\)[^/]' \| \
13134 X"$ac_file" : 'X\(//\)$' \| \
13135 X"$ac_file" : 'X\(/\)' \| \
13136 . : '\(.\)' 2>/dev/null ||
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13140 /^X\(\/\/\)$/{ s//\1/; q; }
13141 /^X\(\/\).*/{ s//\1/; q; }
13143 { if $as_mkdir_p; then
13148 while test ! -d "$as_dir"; do
13149 as_dirs
="$as_dir $as_dirs"
13150 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13152 X"$as_dir" : 'X\(//\)[^/]' \| \
13153 X"$as_dir" : 'X\(//\)$' \| \
13154 X"$as_dir" : 'X\(/\)' \| \
13155 . : '\(.\)' 2>/dev/null ||
13157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13159 /^X\(\/\/\)$/{ s//\1/; q; }
13160 /^X\(\/\).*/{ s//\1/; q; }
13163 test ! -n "$as_dirs" || mkdir
$as_dirs
13164 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13166 { (exit 1); exit 1; }; }; }
13170 if test "$ac_dir" != .
; then
13171 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13172 # A "../" for each directory in $ac_dir_suffix.
13173 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13175 ac_dir_suffix
= ac_top_builddir
=
13179 .
) # No --srcdir option. We are building in place.
13181 if test -z "$ac_top_builddir"; then
13184 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13186 [\\/]* | ?
:[\\/]* ) # Absolute path.
13187 ac_srcdir
=$srcdir$ac_dir_suffix;
13188 ac_top_srcdir
=$srcdir ;;
13189 *) # Relative path.
13190 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13191 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13194 # Do not use `cd foo && pwd` to compute absolute paths, because
13195 # the directories may not exist.
13197 .
) ac_abs_builddir
="$ac_dir";;
13200 .
) ac_abs_builddir
=`pwd`;;
13201 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13202 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13205 case $ac_abs_builddir in
13206 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13208 case ${ac_top_builddir}.
in
13209 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13210 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13211 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13214 case $ac_abs_builddir in
13215 .
) ac_abs_srcdir
=$ac_srcdir;;
13218 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13219 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13220 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13223 case $ac_abs_builddir in
13224 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13226 case $ac_top_srcdir in
13227 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13228 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13229 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13235 if test x
"$ac_file" != x-
; then
13236 { echo "$as_me:$LINENO: creating $ac_file" >&5
13237 echo "$as_me: creating $ac_file" >&6;}
13240 # Let's still pretend it is `configure' which instantiates (i.e., don't
13241 # use $as_me), people would be surprised to read:
13242 # /* config.h. Generated by config.status. */
13243 if test x
"$ac_file" = x-
; then
13246 configure_input
="$ac_file. "
13248 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13249 sed 's,.*/,,'` by configure."
13251 # First look for the input files in the build tree, otherwise in the
13253 ac_file_inputs
=`IFS=:
13254 for f in $ac_file_in; do
13256 -) echo $tmp/stdin ;;
13258 # Absolute (can't be DOS-style, as IFS=:)
13259 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13260 echo "$as_me: error: cannot find input file: $f" >&2;}
13261 { (exit 1); exit 1; }; }
13264 if test -f "$f"; then
13267 elif test -f "$srcdir/$f"; then
13272 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13273 echo "$as_me: error: cannot find input file: $f" >&2;}
13274 { (exit 1); exit 1; }; }
13277 done` ||
{ (exit 1); exit 1; }
13279 cat >>$CONFIG_STATUS <<_ACEOF
13283 cat >>$CONFIG_STATUS <<\_ACEOF
13285 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13286 s
,@configure_input@
,$configure_input,;t t
13287 s
,@srcdir@
,$ac_srcdir,;t t
13288 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13289 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13290 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13291 s
,@builddir@
,$ac_builddir,;t t
13292 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13293 s
,@top_builddir@
,$ac_top_builddir,;t t
13294 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13295 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13297 if test x"$ac_file" != x-; then
13298 mv $tmp/out $ac_file
13306 cat >>$CONFIG_STATUS <<\_ACEOF
13309 # CONFIG_HEADER section.
13312 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13313 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13315 # ac_d sets the value in "#define NAME VALUE" lines.
13316 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13317 ac_dB
='[ ].*$,\1#\2'
13320 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13321 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13322 ac_uB
='$,\1#\2define\3'
13326 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13329 - |
*:- |
*:-:* ) # input from stdin
13331 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13332 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13333 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13334 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13335 * ) ac_file_in
=$ac_file.
in ;;
13338 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13339 echo "$as_me: creating $ac_file" >&6;}
13341 # First look for the input files in the build tree, otherwise in the
13343 ac_file_inputs
=`IFS=:
13344 for f in $ac_file_in; do
13346 -) echo $tmp/stdin ;;
13348 # Absolute (can't be DOS-style, as IFS=:)
13349 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13350 echo "$as_me: error: cannot find input file: $f" >&2;}
13351 { (exit 1); exit 1; }; }
13352 # Do quote $f, to prevent DOS paths from being IFS'd.
13355 if test -f "$f"; then
13358 elif test -f "$srcdir/$f"; then
13363 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13364 echo "$as_me: error: cannot find input file: $f" >&2;}
13365 { (exit 1); exit 1; }; }
13368 done` ||
{ (exit 1); exit 1; }
13369 # Remove the trailing spaces.
13370 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13374 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13375 # `conftest.undefs', that substitutes the proper values into
13376 # config.h.in to produce config.h. The first handles `#define'
13377 # templates, and the second `#undef' templates.
13378 # And first: Protect against being on the right side of a sed subst in
13379 # config.status. Protect against being in an unquoted here document
13380 # in config.status.
13381 rm -f conftest.defines conftest.undefs
13382 # Using a here document instead of a string reduces the quoting nightmare.
13383 # Putting comments in sed scripts is not portable.
13385 # `end' is used to avoid that the second main sed command (meant for
13386 # 0-ary CPP macros) applies to n-ary macro definitions.
13387 # See the Autoconf documentation for `clear'.
13388 cat >confdef2sed.
sed <<\_ACEOF
13393 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13395 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13398 # If some macros were called several times there might be several times
13399 # the same #defines, which is useless. Nevertheless, we may not want to
13400 # sort them, since we want the *last* AC-DEFINE to be honored.
13401 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13402 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13403 rm -f confdef2sed.sed
13405 # This sed command replaces #undef with comments. This is necessary, for
13406 # example, in the case of _POSIX_SOURCE, which is predefined and required
13407 # on some systems where configure will not decide to define it.
13408 cat >>conftest.undefs <<\_ACEOF
13409 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13412 # Break up conftest.defines because some shells have a limit on the size
13413 # of here documents, and old seds have small limits too (100 cmds).
13414 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13415 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13416 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13417 echo ' :' >>$CONFIG_STATUS
13418 rm -f conftest.tail
13419 while grep . conftest.defines >/dev/null
13421 # Write a limited-size here document to $tmp/defines.sed.
13422 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13423 # Speed up: don't consider the non `#define' lines.
13424 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13425 # Work around the forget-to-reset-the-flag bug.
13426 echo 't clr' >>$CONFIG_STATUS
13427 echo ': clr' >>$CONFIG_STATUS
13428 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13430 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13432 mv $tmp/out $tmp/in
13434 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13435 rm -f conftest.defines
13436 mv conftest.
tail conftest.defines
13438 rm -f conftest.defines
13439 echo ' fi # grep' >>$CONFIG_STATUS
13440 echo >>$CONFIG_STATUS
13442 # Break up conftest.undefs because some shells have a limit on the size
13443 # of here documents, and old seds have small limits too (100 cmds).
13444 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13445 rm -f conftest.
tail
13446 while grep . conftest.undefs
>/dev
/null
13448 # Write a limited-size here document to $tmp/undefs.sed.
13449 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13450 # Speed up: don't consider the non
`#undef'
13451 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13452 # Work around the forget-to-reset-the-flag bug.
13453 echo 't clr' >>$CONFIG_STATUS
13454 echo ': clr' >>$CONFIG_STATUS
13455 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13457 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13459 mv $tmp/out $tmp/in
13461 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13462 rm -f conftest.undefs
13463 mv conftest.tail conftest.undefs
13465 rm -f conftest.undefs
13467 cat >>$CONFIG_STATUS <<\_ACEOF
13468 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13469 # use $as_me), people would be surprised to read:
13470 # /* config.h. Generated by config.status. */
13471 if test x
"$ac_file" = x-
; then
13472 echo "/* Generated by configure. */" >$tmp/config.h
13474 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13476 cat $tmp/in >>$tmp/config.h
13478 if test x
"$ac_file" != x-
; then
13479 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13480 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13481 echo "$as_me: $ac_file is unchanged" >&6;}
13483 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13485 X"$ac_file" : 'X\(//\)[^/]' \| \
13486 X"$ac_file" : 'X\(//\)$' \| \
13487 X"$ac_file" : 'X\(/\)' \| \
13488 . : '\(.\)' 2>/dev/null ||
13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13492 /^X\(\/\/\)$/{ s//\1/; q; }
13493 /^X\(\/\).*/{ s//\1/; q; }
13495 { if $as_mkdir_p; then
13500 while test ! -d "$as_dir"; do
13501 as_dirs
="$as_dir $as_dirs"
13502 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13504 X"$as_dir" : 'X\(//\)[^/]' \| \
13505 X"$as_dir" : 'X\(//\)$' \| \
13506 X"$as_dir" : 'X\(/\)' \| \
13507 . : '\(.\)' 2>/dev/null ||
13509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13511 /^X\(\/\/\)$/{ s//\1/; q; }
13512 /^X\(\/\).*/{ s//\1/; q; }
13515 test ! -n "$as_dirs" || mkdir
$as_dirs
13516 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13517 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13518 { (exit 1); exit 1; }; }; }
13521 mv $tmp/config.h
$ac_file
13525 rm -f $tmp/config.h
13529 cat >>$CONFIG_STATUS <<\_ACEOF
13532 # CONFIG_COMMANDS section.
13534 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13535 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13536 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13537 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13538 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13539 X"$ac_dest" : 'X\(//\)[^/]' \| \
13540 X"$ac_dest" : 'X\(//\)$' \| \
13541 X"$ac_dest" : 'X\(/\)' \| \
13542 . : '\(.\)' 2>/dev/null ||
13544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13545 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13546 /^X\(\/\/\)$/{ s//\1/; q; }
13547 /^X\(\/\).*/{ s//\1/; q; }
13549 { if $as_mkdir_p; then
13554 while test ! -d "$as_dir"; do
13555 as_dirs
="$as_dir $as_dirs"
13556 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13558 X"$as_dir" : 'X\(//\)[^/]' \| \
13559 X"$as_dir" : 'X\(//\)$' \| \
13560 X"$as_dir" : 'X\(/\)' \| \
13561 . : '\(.\)' 2>/dev/null ||
13563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13564 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13565 /^X\(\/\/\)$/{ s//\1/; q; }
13566 /^X\(\/\).*/{ s//\1/; q; }
13569 test ! -n "$as_dirs" || mkdir
$as_dirs
13570 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13571 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13572 { (exit 1); exit 1; }; }; }
13576 if test "$ac_dir" != .
; then
13577 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13578 # A "../" for each directory in $ac_dir_suffix.
13579 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13581 ac_dir_suffix
= ac_top_builddir
=
13585 .
) # No --srcdir option. We are building in place.
13587 if test -z "$ac_top_builddir"; then
13590 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13592 [\\/]* | ?
:[\\/]* ) # Absolute path.
13593 ac_srcdir
=$srcdir$ac_dir_suffix;
13594 ac_top_srcdir
=$srcdir ;;
13595 *) # Relative path.
13596 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13597 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13600 # Do not use `cd foo && pwd` to compute absolute paths, because
13601 # the directories may not exist.
13603 .
) ac_abs_builddir
="$ac_dir";;
13606 .
) ac_abs_builddir
=`pwd`;;
13607 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13608 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13611 case $ac_abs_builddir in
13612 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13614 case ${ac_top_builddir}.
in
13615 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13616 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13617 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13620 case $ac_abs_builddir in
13621 .
) ac_abs_srcdir
=$ac_srcdir;;
13624 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13625 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13626 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13629 case $ac_abs_builddir in
13630 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13632 case $ac_top_srcdir in
13633 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13634 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13635 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13640 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13641 echo "$as_me: executing $ac_dest commands" >&6;}
13644 case ${CONFIG_HEADERS} in
13645 *auto-host.h
:config.
in*)
13648 # Make sure all the subdirs exist.
13651 test -d $d || mkdir
$d
13653 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13654 # bootstrapping and the installation procedure can still use
13655 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13656 # FLAGS_TO_PASS has been modified to solve the problem there.
13657 # This is virtually a duplicate of what happens in configure.lang; we do
13658 # an extra check to make sure this only happens if ln -s can be used.
13659 if test "$symbolic_link" = "ln -s"; then
13660 for d
in ${subdirs} fixinc
; do
13661 STARTDIR
=`${PWDCMD-pwd}`
13663 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13666 $symbolic_link ..
/$t $t 2>/dev
/null
13676 cat >>$CONFIG_STATUS <<\_ACEOF
13678 { (exit 0); exit 0; }
13680 chmod +x
$CONFIG_STATUS
13681 ac_clean_files
=$ac_clean_files_save
13684 # configure is writing to config.log, and then calls config.status.
13685 # config.status does its own redirection, appending to config.log.
13686 # Unfortunately, on DOS this fails, as config.log is still kept open
13687 # by configure, so config.status won't be able to write to it; its
13688 # output is simply discarded. So we exec the FD to /dev/null,
13689 # effectively closing config.log, so it can be properly (re)opened and
13690 # appended to by config.status. When coming back to configure, we
13691 # need to make the FD available again.
13692 if test "$no_create" != yes; then
13694 ac_config_status_args
=
13695 test "$silent" = yes &&
13696 ac_config_status_args
="$ac_config_status_args --quiet"
13698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13701 # would make configure fail if this is the last instruction.
13702 $ac_cs_success ||
{ (exit 1); exit 1; }