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-gnu-as arrange to work with GNU as
919 --with-as arrange to use the specified as
(full pathname
)
920 --with-stabs arrange to use stabs instead of
host debug format
921 --with-dwarf2 force the default debug format to be DWARF
2
922 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
923 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
924 --with-gc={page
,zone
} choose the garbage collection mechanism to use
926 --with-system-zlib use installed libz
927 --with-libbanshee enable libbanshee
928 --with-slibdir=DIR shared libraries
in DIR LIBDIR
930 Some influential environment variables
:
931 CC C compiler
command
932 CFLAGS C compiler flags
933 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
934 nonstandard directory
<lib dir
>
935 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
936 headers
in a nonstandard directory
<include dir
>
938 GMPLIBS How to link GMP
939 GMPINC How to
find GMP include files
941 Use these variables to override the choices made by
`configure' or to help
942 it to find libraries and programs with nonstandard names/locations.
947 if test "$ac_init_help" = "recursive"; then
948 # If there are subdirs, report their specific --help.
950 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
951 test -d $ac_dir || continue
954 if test "$ac_dir" != .; then
955 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
956 # A "../" for each directory in $ac_dir_suffix.
957 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
959 ac_dir_suffix= ac_top_builddir=
963 .) # No --srcdir option. We are building in place.
965 if test -z "$ac_top_builddir"; then
968 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
970 [\\/]* | ?:[\\/]* ) # Absolute path.
971 ac_srcdir=$srcdir$ac_dir_suffix;
972 ac_top_srcdir=$srcdir ;;
974 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
975 ac_top_srcdir=$ac_top_builddir$srcdir ;;
978 # Do not use `cd foo
&& pwd` to compute absolute paths, because
979 # the directories may not exist.
981 .) ac_abs_builddir="$ac_dir";;
984 .) ac_abs_builddir=`pwd`;;
985 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
986 *) ac_abs_builddir=`pwd`/"$ac_dir";;
989 case $ac_abs_builddir in
990 .) ac_abs_top_builddir=${ac_top_builddir}.;;
992 case ${ac_top_builddir}. in
993 .) ac_abs_top_builddir=$ac_abs_builddir;;
994 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
995 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
998 case $ac_abs_builddir in
999 .) ac_abs_srcdir=$ac_srcdir;;
1002 .) ac_abs_srcdir=$ac_abs_builddir;;
1003 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1004 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1010 case $ac_top_srcdir in
1011 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1012 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1013 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1018 # Check for guested configure; otherwise get Cygnus style configure.
1019 if test -f $ac_srcdir/configure.gnu; then
1021 $SHELL $ac_srcdir/configure.gnu --help=recursive
1022 elif test -f $ac_srcdir/configure; then
1024 $SHELL $ac_srcdir/configure --help=recursive
1025 elif test -f $ac_srcdir/configure.ac ||
1026 test -f $ac_srcdir/configure.in; then
1028 $ac_configure --help
1030 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1036 test -n "$ac_init_help" && exit 0
1037 if $ac_init_version; then
1040 Copyright (C) 2003 Free Software Foundation, Inc.
1041 This configure script is free software; the Free Software Foundation
1042 gives unlimited permission to copy, distribute and modify it.
1048 This file contains any messages produced by compilers while
1049 running configure, to aid debugging if configure makes a mistake.
1051 It was created by $as_me, which was
1052 generated by GNU Autoconf 2.59. Invocation command line was
1063 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1064 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1065 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1066 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1067 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1069 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1070 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1072 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1073 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1074 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1075 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1076 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1077 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1078 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1086 test -z "$as_dir" && as_dir=.
1087 echo "PATH: $as_dir"
1102 # Keep a trace of the command line.
1103 # Strip out --no-create and --no-recursion so they do not pile up.
1104 # Strip out --silent because we don't want to record it for future runs.
1105 # Also quote any args containing shell meta-characters.
1106 # Make two passes to allow for proper duplicate-argument suppression.
1111 ac_must_keep_next=false
1117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1121 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1122 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1125 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1127 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1128 if test $ac_must_keep_next = true; then
1129 ac_must_keep_next=false # Got value, back to normal.
1132 *=* | --config-cache | -C | -disable-* | --disable-* \
1133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1135 | -with-* | --with-* | -without-* | --without-* | --x)
1136 case "$ac_configure_args0 " in
1137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1140 -* ) ac_must_keep_next=true ;;
1143 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1144 # Get rid of the leading space.
1150 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1151 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1153 # When interrupted or exit'd, cleanup temporary files, and complete
1154 # config.log. We remove comments because anyway the quotes in there
1155 # would cause problems or look ugly.
1156 # WARNING: Be sure not to use single quotes in there, as some shells,
1157 # such as our DU 5.0 friend, will then `close
' the trap.
1158 trap 'exit_status
=$?
1159 # Save into config.log some information that might help in debugging.
1164 ## ---------------- ##
1165 ## Cache variables. ##
1166 ## ---------------- ##
1169 # The following way of writing the cache mishandles newlines in values,
1172 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1175 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1180 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1187 ## ----------------- ##
1188 ## Output variables. ##
1189 ## ----------------- ##
1192 for ac_var
in $ac_subst_vars
1194 eval ac_val
=$
`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1199 if test -n "$ac_subst_files"; then
1206 for ac_var
in $ac_subst_files
1208 eval ac_val
=$
`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1214 if test -s confdefs.h
; then
1221 sed "/^$/d" confdefs.h |
sort
1224 test "$ac_signal" != 0 &&
1225 echo "$as_me: caught signal $ac_signal"
1226 echo "$as_me: exit $exit_status"
1228 rm -f core
*.core
&&
1229 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1232 for ac_signal in 1 2 13 15; do
1233 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1238 rm -rf conftest* confdefs.h
1239 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1242 # Predefined preprocessor variables.
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_NAME "$PACKAGE_NAME"
1249 cat >>confdefs.h <<_ACEOF
1250 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_STRING "$PACKAGE_STRING"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1269 # Let the site file select an alternate cache file if it wants to.
1270 # Prefer explicitly selected file to automatically selected ones.
1271 if test -z "$CONFIG_SITE"; then
1272 if test "x$prefix" != xNONE; then
1273 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1275 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1278 for ac_site_file in $CONFIG_SITE; do
1279 if test -r "$ac_site_file"; then
1280 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1281 echo "$as_me: loading site script $ac_site_file" >&6;}
1282 sed 's
/^
/|
/' "$ac_site_file" >&5
1287 if test -r "$cache_file"; then
1288 # Some versions of bash will fail to source /dev/null (special
1289 # files actually), so we avoid doing that.
1290 if test -f "$cache_file"; then
1291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1292 echo "$as_me: loading cache $cache_file" >&6;}
1294 [\\/]* | ?:[\\/]* ) . $cache_file;;
1295 *) . ./$cache_file;;
1299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1300 echo "$as_me: creating cache $cache_file" >&6;}
1304 # Check that the precious variables saved in the cache have kept the same
1306 ac_cache_corrupted=false
1307 for ac_var in `(set) 2>&1 |
1308 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1310 eval ac_new_set=\$ac_env_${ac_var}_set
1311 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1312 eval ac_new_val="\$ac_env_${ac_var}_value"
1313 case $ac_old_set,$ac_new_set in
1315 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1317 ac_cache_corrupted=: ;;
1319 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1324 if test "x$ac_old_val" != "x$ac_new_val"; then
1325 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1326 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1327 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1328 echo "$as_me: former value: $ac_old_val" >&2;}
1329 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1330 echo "$as_me: current value: $ac_new_val" >&2;}
1331 ac_cache_corrupted=:
1334 # Pass precious variables to config.status.
1335 if test "$ac_new_set" = set; then
1337 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1338 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1339 *) ac_arg=$ac_var=$ac_new_val ;;
1341 case " $ac_configure_args " in
1342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1343 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1347 if $ac_cache_corrupted; then
1348 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1350 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1351 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1352 { (exit 1); exit 1; }; }
1356 ac_cpp='$CPP $CPPFLAGS'
1357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1358 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1383 # Determine the host, build, and target systems
1385 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1386 if test -f $ac_dir/install-sh; then
1388 ac_install_sh="$ac_aux_dir/install-sh -c"
1390 elif test -f $ac_dir/install.sh; then
1392 ac_install_sh="$ac_aux_dir/install.sh -c"
1394 elif test -f $ac_dir/shtool; then
1396 ac_install_sh="$ac_aux_dir/shtool install -c"
1400 if test -z "$ac_aux_dir"; then
1401 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1402 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1403 { (exit 1); exit 1; }; }
1405 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1406 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1407 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1409 # Make sure we can run config.sub.
1410 $ac_config_sub sun4 >/dev/null 2>&1 ||
1411 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1412 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1413 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: checking build system type" >&5
1416 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1417 if test "${ac_cv_build+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 ac_cv_build_alias=$build_alias
1421 test -z "$ac_cv_build_alias" &&
1422 ac_cv_build_alias=`$ac_config_guess`
1423 test -z "$ac_cv_build_alias" &&
1424 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1425 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1426 { (exit 1); exit 1; }; }
1427 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1428 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1429 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1430 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1434 echo "${ECHO_T}$ac_cv_build" >&6
1436 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1437 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1438 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1441 echo "$as_me:$LINENO: checking host system type" >&5
1442 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1443 if test "${ac_cv_host+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 ac_cv_host_alias=$host_alias
1447 test -z "$ac_cv_host_alias" &&
1448 ac_cv_host_alias=$ac_cv_build_alias
1449 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1450 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1451 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1452 { (exit 1); exit 1; }; }
1455 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1456 echo "${ECHO_T}$ac_cv_host" >&6
1458 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1459 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1460 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1463 echo "$as_me:$LINENO: checking target system type" >&5
1464 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1465 if test "${ac_cv_target+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 ac_cv_target_alias=$target_alias
1469 test "x$ac_cv_target_alias" = "x" &&
1470 ac_cv_target_alias=$ac_cv_host_alias
1471 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1473 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1474 { (exit 1); exit 1; }; }
1477 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1478 echo "${ECHO_T}$ac_cv_target" >&6
1479 target=$ac_cv_target
1480 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1481 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1482 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1485 # The aliases save the names the user supplied, while $host etc.
1486 # will get canonicalized.
1487 test -n "$target_alias" &&
1488 test "$program_prefix$program_suffix$program_transform_name" = \
1490 program_prefix=${target_alias}-
1492 # Determine the noncanonical target name, for directory use.
1493 case ${build_alias} in
1494 "") build_noncanonical=${build} ;;
1495 *) build_noncanonical=${build_alias} ;;
1498 case ${host_alias} in
1499 "") host_noncanonical=${build_noncanonical} ;;
1500 *) host_noncanonical=${host_alias} ;;
1503 case ${target_alias} in
1504 "") target_noncanonical=${host_noncanonical} ;;
1505 *) target_noncanonical=${target_alias} ;;
1509 # Determine the target- and build-specific subdirectories
1510 # Prefix 'build-
' so this never conflicts with target_subdir.
1511 build_subdir="build-${build_noncanonical}"
1512 # Not really a subdirectory, but here for completeness.
1515 target_subdir=${target_noncanonical}
1518 # Set program_transform_name
1519 test "$program_prefix" != NONE &&
1520 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1521 # Use a double $ so make ignores it.
1522 test "$program_suffix" != NONE &&
1523 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1524 # Double any \ or $. echo might interpret backslashes.
1525 # By default was `s,x,x', remove it
if useless.
1526 cat <<\_ACEOF
>conftest.
sed
1527 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1529 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1533 # Check for bogus environment variables.
1534 # Test if LIBRARY_PATH contains the notation for the current directory
1535 # since this would lead to problems installing/building glibc.
1536 # LIBRARY_PATH contains the current directory if one of the following
1538 # - one of the terminals (":" and ";") is the first or last sign
1539 # - two terminals occur directly after each other
1540 # - the path contains an element with a dot in it
1541 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1542 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1543 case ${LIBRARY_PATH} in
1544 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1545 library_path_setting
="contains current directory"
1548 library_path_setting
="ok"
1551 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1552 echo "${ECHO_T}$library_path_setting" >&6
1553 if test "$library_path_setting" != "ok"; then
1554 { { echo "$as_me:$LINENO: error:
1555 *** LIBRARY_PATH shouldn't contain the current directory when
1556 *** building gcc. Please change the environment variable
1557 *** and run configure again." >&5
1558 echo "$as_me: error:
1559 *** LIBRARY_PATH shouldn't contain the current directory when
1560 *** building gcc. Please change the environment variable
1561 *** and run configure again." >&2;}
1562 { (exit 1); exit 1; }; }
1565 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1566 # since this would lead to problems installing/building glibc.
1567 # GCC_EXEC_PREFIX contains the current directory if one of the following
1569 # - one of the terminals (":" and ";") is the first or last sign
1570 # - two terminals occur directly after each other
1571 # - the path contains an element with a dot in it
1572 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1573 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1574 case ${GCC_EXEC_PREFIX} in
1575 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1576 gcc_exec_prefix_setting
="contains current directory"
1579 gcc_exec_prefix_setting
="ok"
1582 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1583 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1584 if test "$gcc_exec_prefix_setting" != "ok"; then
1585 { { echo "$as_me:$LINENO: error:
1586 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1587 *** building gcc. Please change the environment variable
1588 *** and run configure again." >&5
1589 echo "$as_me: error:
1590 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1591 *** building gcc. Please change the environment variable
1592 *** and run configure again." >&2;}
1593 { (exit 1); exit 1; }; }
1600 # Specify the local prefix
1603 # Check whether --with-local-prefix or --without-local-prefix was given.
1604 if test "${with_local_prefix+set}" = set; then
1605 withval
="$with_local_prefix"
1606 case "${withval}" in
1607 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1608 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1609 { (exit 1); exit 1; }; } ;;
1611 *) local_prefix
=$with_local_prefix ;;
1615 # Default local prefix if it is empty
1616 if test x
$local_prefix = x
; then
1617 local_prefix
=/usr
/local
1620 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1621 # passed in by the toplevel make and thus we'd get different behavior
1622 # depending on where we built the sources.
1623 gcc_gxx_include_dir
=
1624 # Specify the g++ header file directory
1626 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1627 if test "${with_gxx_include_dir+set}" = set; then
1628 withval
="$with_gxx_include_dir"
1629 case "${withval}" in
1630 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1631 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1634 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1638 if test x
${gcc_gxx_include_dir} = x
; then
1639 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1640 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1642 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1643 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1648 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1649 if test "${with_cpp_install_dir+set}" = set; then
1650 withval
="$with_cpp_install_dir"
1651 if test x
$withval = xyes
; then
1652 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1653 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1654 { (exit 1); exit 1; }; }
1655 elif test x
$withval != xno
; then
1656 cpp_install_dir
=$withval
1660 # We would like to our source tree to be readonly. However when releases or
1661 # pre-releases are generated, the flex/bison generated files as well as the
1662 # various formats of manuals need to be included along with the rest of the
1663 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1666 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1667 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1668 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1669 if test "${enable_generated_files_in_srcdir+set}" = set; then
1670 enableval
="$enable_generated_files_in_srcdir"
1671 generated_files_in_srcdir
=$enableval
1673 generated_files_in_srcdir
=no
1676 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1677 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1679 if test "$generated_files_in_srcdir" = "yes"; then
1686 # -------------------
1687 # Find default linker
1688 # -------------------
1692 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1693 if test "${with_gnu_ld+set}" = set; then
1694 withval
="$with_gnu_ld"
1695 gnu_ld_flag
="$with_gnu_ld"
1700 # With pre-defined ld
1702 # Check whether --with-ld or --without-ld was given.
1703 if test "${with_ld+set}" = set; then
1705 DEFAULT_LINKER
="$with_ld"
1707 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1708 if test ! -x "$DEFAULT_LINKER"; then
1709 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1710 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1711 { (exit 1); exit 1; }; }
1712 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1716 cat >>confdefs.h
<<_ACEOF
1717 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1722 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1723 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1724 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1725 if test x
"$gnu_ld_flag" = x
"no"; then
1726 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1727 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1737 # ----------------------
1738 # Find default assembler
1739 # ----------------------
1743 # Check whether --with-gnu-as or --without-gnu-as was given.
1744 if test "${with_gnu_as+set}" = set; then
1745 withval
="$with_gnu_as"
1746 gas_flag
="$with_gnu_as"
1752 # Check whether --with-as or --without-as was given.
1753 if test "${with_as+set}" = set; then
1755 DEFAULT_ASSEMBLER
="$with_as"
1757 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1758 if test ! -x "$DEFAULT_ASSEMBLER"; then
1759 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1761 { (exit 1); exit 1; }; }
1762 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1766 cat >>confdefs.h
<<_ACEOF
1767 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1772 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1773 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1774 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1775 if test x
"$gas_flag" = x
"no"; then
1776 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1777 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1779 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1780 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1791 # If a non-executable a.out is present (e.g. created by GNU as above even if
1792 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1793 # file, even when creating an executable, so an execution test fails.
1794 # Remove possible default executable files to avoid this.
1796 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1797 # Autoconf includes it.
1798 rm -f a.out a.exe b.out
1800 # Find the native compiler
1802 ac_cpp
='$CPP $CPPFLAGS'
1803 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1804 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1805 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1806 if test -n "$ac_tool_prefix"; then
1807 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1808 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$CC"; then
1815 ac_cv_prog_CC
="$CC" # Let the user override the test.
1817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir
=.
1822 for ac_exec_ext
in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 if test -n "$CC"; then
1835 echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1843 if test -z "$ac_cv_prog_CC"; then
1845 # Extract the first word of "gcc", so it can be a program name with args.
1846 set dummy gcc
; ac_word
=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 if test -n "$ac_ct_CC"; then
1853 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1859 test -z "$as_dir" && as_dir
=.
1860 for ac_exec_ext
in '' $ac_executable_extensions; do
1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862 ac_cv_prog_ac_ct_CC
="gcc"
1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1872 if test -n "$ac_ct_CC"; then
1873 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1874 echo "${ECHO_T}$ac_ct_CC" >&6
1876 echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1889 echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC
="$CC" # Let the user override the test.
1897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir
=.
1902 for ac_exec_ext
in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 if test -n "$CC"; then
1915 echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6
1918 echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6
1923 if test -z "$ac_cv_prog_CC"; then
1925 # Extract the first word of "cc", so it can be a program name with args.
1926 set dummy cc
; ac_word
=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 if test -n "$ac_ct_CC"; then
1933 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1939 test -z "$as_dir" && as_dir
=.
1940 for ac_exec_ext
in '' $ac_executable_extensions; do
1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942 ac_cv_prog_ac_ct_CC
="cc"
1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1952 if test -n "$ac_ct_CC"; then
1953 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954 echo "${ECHO_T}$ac_ct_CC" >&6
1956 echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1966 if test -z "$CC"; then
1967 # Extract the first word of "cc", so it can be a program name with args.
1968 set dummy cc
; ac_word
=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC
="$CC" # Let the user override the test.
1978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1982 test -z "$as_dir" && as_dir
=.
1983 for ac_exec_ext
in '' $ac_executable_extensions; do
1984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1986 ac_prog_rejected
=yes
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 if test $ac_prog_rejected = yes; then
1997 # We found a bogon in the path, so make sure we never use it.
1998 set dummy
$ac_cv_prog_CC
2000 if test $# != 0; then
2001 # We chose a different compiler from the bogus one.
2002 # However, it has the same basename, so the bogon will be chosen
2003 # first if we set CC to just the basename; use the full file name.
2005 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2011 if test -n "$CC"; then
2012 echo "$as_me:$LINENO: result: $CC" >&5
2013 echo "${ECHO_T}$CC" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$CC"; then
2021 if test -n "$ac_tool_prefix"; then
2024 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2025 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC
="$CC" # Let the user override the test.
2034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2038 test -z "$as_dir" && as_dir
=.
2039 for ac_exec_ext
in '' $ac_executable_extensions; do
2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test -n "$CC"; then
2052 echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6
2055 echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2059 test -n "$CC" && break
2062 if test -z "$CC"; then
2066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy
$ac_prog; ac_word
=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 if test -n "$ac_ct_CC"; then
2074 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2076 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2080 test -z "$as_dir" && as_dir
=.
2081 for ac_exec_ext
in '' $ac_executable_extensions; do
2082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083 ac_cv_prog_ac_ct_CC
="$ac_prog"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2097 echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101 test -n "$ac_ct_CC" && break
2110 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2116 # Provide some information about the compiler.
2117 echo "$as_me:$LINENO:" \
2118 "checking for C compiler version" >&5
2119 ac_compiler
=`set X $ac_compile; echo $2`
2120 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2121 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2126 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2131 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 cat >conftest.
$ac_ext <<_ACEOF
2139 cat confdefs.h
>>conftest.
$ac_ext
2140 cat >>conftest.
$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2151 ac_clean_files_save
=$ac_clean_files
2152 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2156 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2158 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2159 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2160 (eval $ac_link_default) 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; then
2164 # Find the output, starting from the most likely. This scheme is
2165 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2168 # Be careful to initialize this variable, since it used to be cached.
2169 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171 # b.out is created by i960 compilers.
2172 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2174 test -f "$ac_file" ||
continue
2176 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2179 # This is the source file.
2182 # We found the default executable, but exeext='' is most
2186 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 # FIXME: I believe we export ac_cv_exeext for Libtool,
2188 # but it would be cool to find out if it's true. Does anybody
2189 # maintain Libtool? --akim.
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.
$ac_ext >&5
2200 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&2;}
2204 { (exit 77); exit 77; }; }
2207 ac_exeext
=$ac_cv_exeext
2208 echo "$as_me:$LINENO: result: $ac_file" >&5
2209 echo "${ECHO_T}$ac_file" >&6
2211 # Check the compiler produces executables we can run. If not, either
2212 # the compiler is broken, or we cross compile.
2213 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2214 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2215 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2216 # If not cross compiling, check that we can run a simple program.
2217 if test "$cross_compiling" != yes; then
2218 if { ac_try
='./$ac_file'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; }; then
2226 if test "$cross_compiling" = maybe
; then
2229 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&2;}
2235 { (exit 1); exit 1; }; }
2239 echo "$as_me:$LINENO: result: yes" >&5
2240 echo "${ECHO_T}yes" >&6
2242 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2243 ac_clean_files
=$ac_clean_files_save
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2247 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2248 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2249 echo "${ECHO_T}$cross_compiling" >&6
2251 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2252 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2254 (eval $ac_link) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2259 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2260 # work properly (i.e., refer to `conftest.exe'), while it won't with
2262 for ac_file
in conftest.exe conftest conftest.
*; do
2263 test -f "$ac_file" ||
continue
2265 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2266 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2276 See \`config.log' for more details." >&2;}
2277 { (exit 1); exit 1; }; }
2280 rm -f conftest
$ac_cv_exeext
2281 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2282 echo "${ECHO_T}$ac_cv_exeext" >&6
2284 rm -f conftest.
$ac_ext
2285 EXEEXT
=$ac_cv_exeext
2287 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2288 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2289 if test "${ac_cv_objext+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 cat >conftest.
$ac_ext <<_ACEOF
2295 cat confdefs.h
>>conftest.
$ac_ext
2296 cat >>conftest.
$ac_ext <<_ACEOF
2297 /* end confdefs.h. */
2307 rm -f conftest.o conftest.obj
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2316 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2321 echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.
$ac_ext >&5
2324 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&5
2326 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2327 See \`config.log' for more details." >&2;}
2328 { (exit 1); exit 1; }; }
2331 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2333 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2334 echo "${ECHO_T}$ac_cv_objext" >&6
2335 OBJEXT
=$ac_cv_objext
2337 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2338 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2339 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 cat >conftest.
$ac_ext <<_ACEOF
2345 cat confdefs.h
>>conftest.
$ac_ext
2346 cat >>conftest.
$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2360 rm -f conftest.
$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362 (eval $ac_compile) 2>conftest.er1
2364 grep -v '^ *+' conftest.er1
>conftest.err
2366 cat conftest.err
>&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try
='test -z "$ac_c_werror_flag"
2370 || test ! -s conftest.err'
2371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); }; } &&
2376 { ac_try
='test -s conftest.$ac_objext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.
$ac_ext >&5
2389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2390 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2393 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2394 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2395 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2396 ac_test_CFLAGS
=${CFLAGS+set}
2397 ac_save_CFLAGS
=$CFLAGS
2399 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2400 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2401 if test "${ac_cv_prog_cc_g+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.
$ac_ext <<_ACEOF
2407 cat confdefs.h
>>conftest.
$ac_ext
2408 cat >>conftest.
$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2419 rm -f conftest.
$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1
>conftest.err
2425 cat conftest.err
>&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try
='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try
='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.
$ac_ext >&5
2448 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2450 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2451 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2452 if test "$ac_test_CFLAGS" = set; then
2453 CFLAGS
=$ac_save_CFLAGS
2454 elif test $ac_cv_prog_cc_g = yes; then
2455 if test "$GCC" = yes; then
2461 if test "$GCC" = yes; then
2467 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2468 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2469 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2472 ac_cv_prog_cc_stdc
=no
2474 cat >conftest.
$ac_ext <<_ACEOF
2477 cat confdefs.h
>>conftest.
$ac_ext
2478 cat >>conftest.
$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2482 #include <sys/types.h>
2483 #include <sys/stat.h>
2484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2485 struct buf { int x; };
2486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2487 static char *e (p, i)
2493 static char *f (char * (*g) (char **, int), char **p, ...)
2498 s = g (p, va_arg (v,int));
2503 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2504 function prototypes and stuff, but not '\xHH' hex character constants.
2505 These don't provoke an error unfortunately, instead are silently treated
2506 as 'x'. The following induces an error, until -std1 is added to get
2507 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2508 array size at least. It's necessary to write '\x00'==0 to get something
2509 that's true only with -std1. */
2510 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512 int test (int i, double x);
2513 struct s1 {int (*f) (int a);};
2514 struct s2 {int (*f) (double a);};
2515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2521 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2526 # Don't try gcc -ansi; that turns off useful extensions and
2527 # breaks some systems' header files.
2528 # AIX -qlanglvl=ansi
2529 # Ultrix and OSF/1 -std1
2530 # HP-UX 10.20 and later -Ae
2531 # HP-UX older versions -Aa -D_HPUX_SOURCE
2532 # SVR4 -Xc -D__EXTENSIONS__
2533 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535 CC
="$ac_save_CC $ac_arg"
2536 rm -f conftest.
$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2540 grep -v '^ *+' conftest.er1
>conftest.err
2542 cat conftest.err
>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try
='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try
='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 ac_cv_prog_cc_stdc
=$ac_arg
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.
$ac_ext >&5
2565 rm -f conftest.err conftest.
$ac_objext
2567 rm -f conftest.
$ac_ext conftest.
$ac_objext
2572 case "x$ac_cv_prog_cc_stdc" in
2574 echo "$as_me:$LINENO: result: none needed" >&5
2575 echo "${ECHO_T}none needed" >&6 ;;
2577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2578 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2579 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2582 # Some people use a C++ compiler to compile C. Since we use `exit',
2583 # in C++ we need to declare it. In case someone uses the same compiler
2584 # for both compiling C and C++ we need to have the C++ compiler decide
2585 # the declaration of exit, since it's the most demanding environment.
2586 cat >conftest.
$ac_ext <<_ACEOF
2591 rm -f conftest.
$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2595 grep -v '^ *+' conftest.er1
>conftest.err
2597 cat conftest.err
>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try
='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try
='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 for ac_declaration
in \
2615 'extern "C" void std::exit (int) throw (); using std::exit;' \
2616 'extern "C" void std::exit (int); using std::exit;' \
2617 'extern "C" void exit (int) throw ();' \
2618 'extern "C" void exit (int);' \
2621 cat >conftest.
$ac_ext <<_ACEOF
2624 cat confdefs.h
>>conftest.
$ac_ext
2625 cat >>conftest.
$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2637 rm -f conftest.
$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>conftest.er1
2641 grep -v '^ *+' conftest.er1
>conftest.err
2643 cat conftest.err
>&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } &&
2646 { ac_try
='test -z "$ac_c_werror_flag"
2647 || test ! -s conftest.err'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; } &&
2653 { ac_try
='test -s conftest.$ac_objext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.
$ac_ext >&5
2666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2667 cat >conftest.
$ac_ext <<_ACEOF
2670 cat confdefs.h
>>conftest.
$ac_ext
2671 cat >>conftest.
$ac_ext <<_ACEOF
2672 /* end confdefs.h. */
2682 rm -f conftest.
$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684 (eval $ac_compile) 2>conftest.er1
2686 grep -v '^ *+' conftest.er1
>conftest.err
2688 cat conftest.err
>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try
='test -z "$ac_c_werror_flag"
2692 || test ! -s conftest.err'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; } &&
2698 { ac_try
='test -s conftest.$ac_objext'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; }; then
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.
$ac_ext >&5
2710 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2713 if test -n "$ac_declaration"; then
2714 echo '#ifdef __cplusplus' >>confdefs.h
2715 echo $ac_declaration >>confdefs.h
2716 echo '#endif' >>confdefs.h
2720 echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.
$ac_ext >&5
2724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2726 ac_cpp
='$CPP $CPPFLAGS'
2727 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2731 if test "x$CC" != xcc
; then
2732 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2733 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2735 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2736 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2738 set dummy
$CC; ac_cc
=`echo $2 |
2739 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2740 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2741 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 cat >conftest.
$ac_ext <<_ACEOF
2746 cat confdefs.h
>>conftest.
$ac_ext
2747 cat >>conftest.
$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 # Make sure it works both with $CC and with simple cc.
2759 # We do the test twice because some compilers refuse to overwrite an
2760 # existing .o file with -o, though they will create one.
2761 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2762 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); } &&
2767 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); };
2773 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2774 if test "x$CC" != xcc
; then
2775 # Test first that cc exists at all.
2776 if { ac_try
='cc -c conftest.$ac_ext >&5'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2797 # cc exists but doesn't like -o.
2798 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2803 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2808 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2815 cat >>confdefs.h
<<\_ACEOF
2816 #define NO_MINUS_C_MINUS_O 1
2821 # autoconf is lame and doesn't give us any substitution variable for this.
2822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2823 NO_MINUS_C_MINUS_O
=yes
2825 OUTPUT_OPTION
='-o $@'
2830 # -------------------------
2831 # Check C compiler features
2832 # -------------------------
2835 ac_cpp
='$CPP $CPPFLAGS'
2836 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2839 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2840 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2841 # On Suns, sometimes $CPP names a directory.
2842 if test -n "$CPP" && test -d "$CPP"; then
2845 if test -z "$CPP"; then
2846 if test "${ac_cv_prog_CPP+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 # Double quotes because CPP needs to be expanded
2850 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2853 for ac_c_preproc_warn_flag
in '' yes
2855 # Use a header file that comes with gcc, so configuring glibc
2856 # with a fresh cross-compiler works.
2857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2858 # <limits.h> exists even on freestanding compilers.
2859 # On the NeXT, cc -E runs the code through the compiler's parser,
2860 # not just through cpp. "Syntax error" is here to catch this case.
2861 cat >conftest.
$ac_ext <<_ACEOF
2864 cat confdefs.h
>>conftest.
$ac_ext
2865 cat >>conftest.
$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2868 # include <limits.h>
2870 # include <assert.h>
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2877 grep -v '^ *+' conftest.er1
>conftest.err
2879 cat conftest.err
>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } >/dev
/null
; then
2882 if test -s conftest.err
; then
2883 ac_cpp_err
=$ac_c_preproc_warn_flag
2884 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2891 if test -z "$ac_cpp_err"; then
2894 echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.
$ac_ext >&5
2897 # Broken: fails on valid input.
2900 rm -f conftest.err conftest.
$ac_ext
2902 # OK, works on sane cases. Now check whether non-existent headers
2903 # can be detected and how.
2904 cat >conftest.
$ac_ext <<_ACEOF
2907 cat confdefs.h
>>conftest.
$ac_ext
2908 cat >>conftest.
$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2910 #include <ac_nonexistent.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1
>conftest.err
2917 cat conftest.err
>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev
/null
; then
2920 if test -s conftest.err
; then
2921 ac_cpp_err
=$ac_c_preproc_warn_flag
2922 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2929 if test -z "$ac_cpp_err"; then
2930 # Broken: success on invalid input.
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2936 # Passes both tests.
2940 rm -f conftest.err conftest.
$ac_ext
2943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2944 rm -f conftest.err conftest.
$ac_ext
2945 if $ac_preproc_ok; then
2957 echo "$as_me:$LINENO: result: $CPP" >&5
2958 echo "${ECHO_T}$CPP" >&6
2960 for ac_c_preproc_warn_flag
in '' yes
2962 # Use a header file that comes with gcc, so configuring glibc
2963 # with a fresh cross-compiler works.
2964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2965 # <limits.h> exists even on freestanding compilers.
2966 # On the NeXT, cc -E runs the code through the compiler's parser,
2967 # not just through cpp. "Syntax error" is here to catch this case.
2968 cat >conftest.
$ac_ext <<_ACEOF
2971 cat confdefs.h
>>conftest.
$ac_ext
2972 cat >>conftest.
$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2975 # include <limits.h>
2977 # include <assert.h>
2981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2982 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2984 grep -v '^ *+' conftest.er1
>conftest.err
2986 cat conftest.err
>&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); } >/dev
/null
; then
2989 if test -s conftest.err
; then
2990 ac_cpp_err
=$ac_c_preproc_warn_flag
2991 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2998 if test -z "$ac_cpp_err"; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.
$ac_ext >&5
3004 # Broken: fails on valid input.
3007 rm -f conftest.err conftest.
$ac_ext
3009 # OK, works on sane cases. Now check whether non-existent headers
3010 # can be detected and how.
3011 cat >conftest.
$ac_ext <<_ACEOF
3014 cat confdefs.h
>>conftest.
$ac_ext
3015 cat >>conftest.
$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1
>conftest.err
3024 cat conftest.err
>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev
/null
; then
3027 if test -s conftest.err
; then
3028 ac_cpp_err
=$ac_c_preproc_warn_flag
3029 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3036 if test -z "$ac_cpp_err"; then
3037 # Broken: success on invalid input.
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3043 # Passes both tests.
3047 rm -f conftest.err conftest.
$ac_ext
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.err conftest.
$ac_ext
3052 if $ac_preproc_ok; then
3055 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3063 ac_cpp
='$CPP $CPPFLAGS'
3064 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3069 echo "$as_me:$LINENO: checking for inline" >&5
3070 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3071 if test "${ac_cv_c_inline+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 for ac_kw
in inline __inline__ __inline
; do
3076 cat >conftest.
$ac_ext <<_ACEOF
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3084 static $ac_kw foo_t static_foo () {return 0; }
3085 $ac_kw foo_t foo () {return 0; }
3089 rm -f conftest.
$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3093 grep -v '^ *+' conftest.er1
>conftest.err
3095 cat conftest.err
>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try
='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try
='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_cv_c_inline
=$ac_kw; break
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.
$ac_ext >&5
3117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3122 echo "${ECHO_T}$ac_cv_c_inline" >&6
3125 case $ac_cv_c_inline in
3128 case $ac_cv_c_inline in
3130 *) ac_val
=$ac_cv_c_inline;;
3132 cat >>confdefs.h
<<_ACEOF
3134 #define inline $ac_val
3141 echo "$as_me:$LINENO: checking for long long int" >&5
3142 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3143 if test "${ac_cv_c_long_long+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 cat >conftest.
$ac_ext <<_ACEOF
3149 cat confdefs.h
>>conftest.
$ac_ext
3150 cat >>conftest.
$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.
$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3165 grep -v '^ *+' conftest.er1
>conftest.err
3167 cat conftest.err
>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try
='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try
='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_c_long_long
=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.
$ac_ext >&5
3188 ac_cv_c_long_long
=no
3190 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3192 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3193 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3194 if test $ac_cv_c_long_long = yes; then
3196 cat >>confdefs.h
<<\_ACEOF
3197 #define HAVE_LONG_LONG 1
3201 echo "$as_me:$LINENO: checking for __int64" >&5
3202 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3203 if test "${ac_cv_c___int64+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 cat >conftest.
$ac_ext <<_ACEOF
3209 cat confdefs.h
>>conftest.
$ac_ext
3210 cat >>conftest.
$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 rm -f conftest.
$ac_objext
3222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3223 (eval $ac_compile) 2>conftest.er1
3225 grep -v '^ *+' conftest.er1
>conftest.err
3227 cat conftest.err
>&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
3230 { ac_try
='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try
='test -s conftest.$ac_objext'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.
$ac_ext >&5
3250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3252 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3253 echo "${ECHO_T}$ac_cv_c___int64" >&6
3254 if test $ac_cv_c___int64 = yes; then
3256 cat >>confdefs.h
<<\_ACEOF
3257 #define HAVE___INT64 1
3263 # sizeof(char) is 1 by definition.
3264 echo "$as_me:$LINENO: checking size of void *" >&5
3265 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3266 if test "${ac_cv_sizeof_void_p+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3270 cat >conftest.
$ac_ext <<_ACEOF
3273 cat confdefs.h
>>conftest.
$ac_ext
3274 cat >>conftest.
$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3283 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3288 rm -f conftest.
$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3292 grep -v '^ *+' conftest.er1
>conftest.err
3294 cat conftest.err
>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try
='test -z "$ac_c_werror_flag"
3298 || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try
='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 ac_cv_sizeof_void_p
=$ac_size
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.
$ac_ext >&5
3316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3317 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3322 if test x
$ac_cv_sizeof_void_p = x
; then
3323 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3324 echo "$as_me: error: cannot determine a size for void *" >&2;}
3325 { (exit 1); exit 1; }; }
3327 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3328 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3330 cat >>confdefs.h
<<_ACEOF
3331 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3335 echo "$as_me:$LINENO: checking size of short" >&5
3336 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3337 if test "${ac_cv_sizeof_short+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3341 cat >conftest.
$ac_ext <<_ACEOF
3344 cat confdefs.h
>>conftest.
$ac_ext
3345 cat >>conftest.
$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3347 #include "confdefs.h"
3348 #include <sys/types.h>
3354 switch (0) case 0: case (sizeof (short) == $ac_size):;
3359 rm -f conftest.
$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1
>conftest.err
3365 cat conftest.err
>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try
='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3381 ac_cv_sizeof_short
=$ac_size
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.
$ac_ext >&5
3387 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3388 if test x
$ac_cv_sizeof_short != x
; then break; fi
3393 if test x
$ac_cv_sizeof_short = x
; then
3394 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3395 echo "$as_me: error: cannot determine a size for short" >&2;}
3396 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3399 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3401 cat >>confdefs.h
<<_ACEOF
3402 #define SIZEOF_SHORT $ac_cv_sizeof_short
3406 echo "$as_me:$LINENO: checking size of int" >&5
3407 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3408 if test "${ac_cv_sizeof_int+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3412 cat >conftest.
$ac_ext <<_ACEOF
3415 cat confdefs.h
>>conftest.
$ac_ext
3416 cat >>conftest.
$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3425 switch (0) case 0: case (sizeof (int) == $ac_size):;
3430 rm -f conftest.
$ac_objext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3432 (eval $ac_compile) 2>conftest.er1
3434 grep -v '^ *+' conftest.er1
>conftest.err
3436 cat conftest.err
>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try
='test -z "$ac_c_werror_flag"
3440 || test ! -s conftest.err'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; } &&
3446 { ac_try
='test -s conftest.$ac_objext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_sizeof_int
=$ac_size
3454 echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.
$ac_ext >&5
3458 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3459 if test x
$ac_cv_sizeof_int != x
; then break; fi
3464 if test x
$ac_cv_sizeof_int = x
; then
3465 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3466 echo "$as_me: error: cannot determine a size for int" >&2;}
3467 { (exit 1); exit 1; }; }
3469 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3470 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3472 cat >>confdefs.h
<<_ACEOF
3473 #define SIZEOF_INT $ac_cv_sizeof_int
3477 echo "$as_me:$LINENO: checking size of long" >&5
3478 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3479 if test "${ac_cv_sizeof_long+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3483 cat >conftest.
$ac_ext <<_ACEOF
3486 cat confdefs.h
>>conftest.
$ac_ext
3487 cat >>conftest.
$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3489 #include "confdefs.h"
3490 #include <sys/types.h>
3496 switch (0) case 0: case (sizeof (long) == $ac_size):;
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1
>conftest.err
3507 cat conftest.err
>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try
='test -z "$ac_c_werror_flag"
3511 || test ! -s conftest.err'
3512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }; } &&
3517 { ac_try
='test -s conftest.$ac_objext'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; }; then
3523 ac_cv_sizeof_long
=$ac_size
3525 echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.
$ac_ext >&5
3529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3530 if test x
$ac_cv_sizeof_long != x
; then break; fi
3535 if test x
$ac_cv_sizeof_long = x
; then
3536 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3537 echo "$as_me: error: cannot determine a size for long" >&2;}
3538 { (exit 1); exit 1; }; }
3540 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3541 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3543 cat >>confdefs.h
<<_ACEOF
3544 #define SIZEOF_LONG $ac_cv_sizeof_long
3548 if test $ac_cv_c_long_long = yes; then
3549 echo "$as_me:$LINENO: checking size of long long" >&5
3550 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_long_long+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3555 cat >conftest.
$ac_ext <<_ACEOF
3558 cat confdefs.h
>>conftest.
$ac_ext
3559 cat >>conftest.
$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include "confdefs.h"
3562 #include <sys/types.h>
3568 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3573 rm -f conftest.
$ac_objext
3574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>conftest.er1
3577 grep -v '^ *+' conftest.er1
>conftest.err
3579 cat conftest.err
>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try
='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try
='test -s conftest.$ac_objext'
3590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_sizeof_long_long
=$ac_size
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.
$ac_ext >&5
3601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3602 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3607 if test x
$ac_cv_sizeof_long_long = x
; then
3608 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3609 echo "$as_me: error: cannot determine a size for long long" >&2;}
3610 { (exit 1); exit 1; }; }
3612 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3613 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3615 cat >>confdefs.h
<<_ACEOF
3616 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3621 if test $ac_cv_c___int64 = yes; then
3622 echo "$as_me:$LINENO: checking size of __int64" >&5
3623 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3624 if test "${ac_cv_sizeof___int64+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3628 cat >conftest.
$ac_ext <<_ACEOF
3631 cat confdefs.h
>>conftest.
$ac_ext
3632 cat >>conftest.
$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3641 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3646 rm -f conftest.
$ac_objext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>conftest.er1
3650 grep -v '^ *+' conftest.er1
>conftest.err
3652 cat conftest.err
>&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
3655 { ac_try
='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try
='test -s conftest.$ac_objext'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_sizeof___int64
=$ac_size
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.
$ac_ext >&5
3674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3675 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3680 if test x
$ac_cv_sizeof___int64 = x
; then
3681 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3682 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3683 { (exit 1); exit 1; }; }
3685 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3686 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3688 cat >>confdefs.h
<<_ACEOF
3689 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3695 # ---------------------
3696 # Warnings and checking
3697 # ---------------------
3699 # Check $CC warning features (if it's GCC).
3700 # We want to use -pedantic, but we don't want warnings about
3703 # So, we only use -pedantic if we can disable those warnings.
3705 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3706 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3707 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 save_CFLAGS
="$CFLAGS"
3711 CFLAGS
="-Wno-long-long"
3712 cat >conftest.
$ac_ext <<_ACEOF
3715 cat confdefs.h
>>conftest.
$ac_ext
3716 cat >>conftest.
$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3720 rm -f conftest.
$ac_objext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>conftest.er1
3724 grep -v '^ *+' conftest.er1
>conftest.err
3726 cat conftest.err
>&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } &&
3729 { ac_try
='test -z "$ac_c_werror_flag"
3730 || test ! -s conftest.err'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; } &&
3736 { ac_try
='test -s conftest.$ac_objext'
3737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; }; then
3742 ac_cv_prog_cc_w_no_long_long
=yes
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.
$ac_ext >&5
3747 ac_cv_prog_cc_w_no_long_long
=no
3749 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3750 CFLAGS
="$save_CFLAGS"
3753 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3754 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3756 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3757 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3758 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 save_CFLAGS
="$CFLAGS"
3762 CFLAGS
="-Wno-variadic-macros"
3763 cat >conftest.
$ac_ext <<_ACEOF
3766 cat confdefs.h
>>conftest.
$ac_ext
3767 cat >>conftest.
$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3771 rm -f conftest.
$ac_objext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773 (eval $ac_compile) 2>conftest.er1
3775 grep -v '^ *+' conftest.er1
>conftest.err
3777 cat conftest.err
>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try
='test -z "$ac_c_werror_flag"
3781 || test ! -s conftest.err'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; } &&
3787 { ac_try
='test -s conftest.$ac_objext'
3788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); }; }; then
3793 ac_cv_prog_cc_w_no_variadic_macros
=yes
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.
$ac_ext >&5
3798 ac_cv_prog_cc_w_no_variadic_macros
=no
3800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3801 CFLAGS
="$save_CFLAGS"
3804 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3805 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3808 if test $ac_cv_prog_cc_w_no_long_long = yes \
3809 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3810 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
3814 # Add -Wold-style-definition if it's accepted
3815 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3816 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3817 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 save_CFLAGS
="$CFLAGS"
3821 CFLAGS
="-Wold-style-definition"
3822 cat >conftest.
$ac_ext <<_ACEOF
3825 cat confdefs.h
>>conftest.
$ac_ext
3826 cat >>conftest.
$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3830 rm -f conftest.
$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>conftest.er1
3834 grep -v '^ *+' conftest.er1
>conftest.err
3836 cat conftest.err
>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } &&
3839 { ac_try
='test -z "$ac_c_werror_flag"
3840 || test ! -s conftest.err'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try
='test -s conftest.$ac_objext'
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_cv_prog_cc_w_old_style_definition
=yes
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.
$ac_ext >&5
3857 ac_cv_prog_cc_w_old_style_definition
=no
3859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3860 CFLAGS
="$save_CFLAGS"
3863 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3864 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3865 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3866 strict1_warn
="${strict1_warn} -Wold-style-definition"
3869 # Enable -Werror, period.
3870 # Check whether --enable-werror_always or --disable-werror_always was given.
3871 if test "${enable_werror_always+set}" = set; then
3872 enableval
="$enable_werror_always"
3875 enable_werror_always
=no
3877 if test x
${enable_werror_always} = xyes
; then
3878 strict1_warn
="${strict1_warn} -Werror"
3882 # If the native compiler is GCC, we can enable warnings even in stage1.
3883 # That's useful for people building cross-compilers, or just running a
3886 if test "x$GCC" = "xyes"; then
3887 warn_cflags
='$(GCC_WARN_CFLAGS)'
3891 # Enable -Werror in bootstrap stage2 and later.
3892 # Change the default to "no" on release branches.
3893 # Check whether --enable-werror or --disable-werror was given.
3894 if test "${enable_werror+set}" = set; then
3895 enableval
="$enable_werror"
3900 if test x
$enable_werror = xyes
; then
3905 # Enable expensive internal checks
3906 # Check whether --enable-checking or --disable-checking was given.
3907 if test "${enable_checking+set}" = set; then
3908 enableval
="$enable_checking"
3912 ac_rtlflag_checking
=
3914 ac_gc_always_collect
=
3916 case "${enableval}" in
3917 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3918 ac_rtlflag_checking
=1 ;;
3920 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3921 set fnord
$enableval; shift
3926 misc
) ac_checking
=1 ;;
3927 tree
) ac_tree_checking
=1 ;;
3928 rtlflag
) ac_rtlflag_checking
=1 ;;
3929 rtl
) ac_rtl_checking
=1 ;;
3930 gc
) ac_gc_checking
=1 ;;
3931 gcac
) ac_gc_always_collect
=1 ;;
3932 fold) ac_fold_checking
=1 ;;
3933 valgrind
) ac_checking_valgrind
=1 ;;
3934 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3935 echo "$as_me: error: unknown check category $check" >&2;}
3936 { (exit 1); exit 1; }; } ;;
3943 # Enable some checks by default for development versions of GCC
3944 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3947 if test x
$ac_checking != x
; then
3949 cat >>confdefs.h
<<\_ACEOF
3950 #define ENABLE_CHECKING 1
3953 nocommon_flag
=-fno-common
3956 if test x
$ac_tree_checking != x
; then
3958 cat >>confdefs.h
<<\_ACEOF
3959 #define ENABLE_TREE_CHECKING 1
3962 TREEBROWSER
=tree-browser.o
3965 if test x
$ac_rtl_checking != x
; then
3967 cat >>confdefs.h
<<\_ACEOF
3968 #define ENABLE_RTL_CHECKING 1
3972 if test x
$ac_rtlflag_checking != x
; then
3974 cat >>confdefs.h
<<\_ACEOF
3975 #define ENABLE_RTL_FLAG_CHECKING 1
3979 if test x
$ac_gc_checking != x
; then
3981 cat >>confdefs.h
<<\_ACEOF
3982 #define ENABLE_GC_CHECKING 1
3986 if test x
$ac_gc_always_collect != x
; then
3988 cat >>confdefs.h
<<\_ACEOF
3989 #define ENABLE_GC_ALWAYS_COLLECT 1
3993 if test x
$ac_fold_checking != x
; then
3995 cat >>confdefs.h
<<\_ACEOF
3996 #define ENABLE_FOLD_CHECKING 1
4000 valgrind_path_defines
=
4004 echo "$as_me:$LINENO: checking for egrep" >&5
4005 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4006 if test "${ac_cv_prog_egrep+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4010 then ac_cv_prog_egrep
='grep -E'
4011 else ac_cv_prog_egrep
='egrep'
4014 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4015 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4016 EGREP
=$ac_cv_prog_egrep
4019 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4020 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4021 if test "${ac_cv_header_stdc+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.
$ac_ext <<_ACEOF
4027 cat confdefs.h
>>conftest.
$ac_ext
4028 cat >>conftest.
$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4043 rm -f conftest.
$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1
>conftest.err
4049 cat conftest.err
>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try
='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try
='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 ac_cv_header_stdc
=yes
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.
$ac_ext >&5
4070 ac_cv_header_stdc
=no
4072 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4074 if test $ac_cv_header_stdc = yes; then
4075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4076 cat >conftest.
$ac_ext <<_ACEOF
4079 cat confdefs.h
>>conftest.
$ac_ext
4080 cat >>conftest.
$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4086 $EGREP "memchr" >/dev
/null
2>&1; then
4089 ac_cv_header_stdc
=no
4095 if test $ac_cv_header_stdc = yes; then
4096 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4097 cat >conftest.
$ac_ext <<_ACEOF
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "free" >/dev
/null
2>&1; then
4110 ac_cv_header_stdc
=no
4116 if test $ac_cv_header_stdc = yes; then
4117 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4118 if test "$cross_compiling" = yes; then
4121 cat >conftest.
$ac_ext <<_ACEOF
4124 cat confdefs.h
>>conftest.
$ac_ext
4125 cat >>conftest.
$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4128 #if ((' ' & 0x0FF) == 0x020)
4129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4132 # define ISLOWER(c) \
4133 (('a' <= (c) && (c) <= 'i') \
4134 || ('j' <= (c) && (c) <= 'r') \
4135 || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4144 for (i = 0; i < 256; i++)
4145 if (XOR (islower (i), ISLOWER (i))
4146 || toupper (i) != TOUPPER (i))
4151 rm -f conftest
$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153 (eval $ac_link) 2>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4164 echo "$as_me: program exited with status $ac_status" >&5
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.
$ac_ext >&5
4169 ac_cv_header_stdc
=no
4171 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4175 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4176 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4177 if test $ac_cv_header_stdc = yes; then
4179 cat >>confdefs.h
<<\_ACEOF
4180 #define STDC_HEADERS 1
4185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4195 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4196 inttypes.h stdint.h unistd.h
4198 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 echo "$as_me:$LINENO: checking for $ac_header" >&5
4200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.
$ac_ext <<_ACEOF
4207 cat confdefs.h
>>conftest.
$ac_ext
4208 cat >>conftest.
$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4212 #include <$ac_header>
4214 rm -f conftest.
$ac_objext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4216 (eval $ac_compile) 2>conftest.er1
4218 grep -v '^ *+' conftest.er1
>conftest.err
4220 cat conftest.err
>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try
='test -z "$ac_c_werror_flag"
4224 || test ! -s conftest.err'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try
='test -s conftest.$ac_objext'
4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 eval "$as_ac_Header=yes"
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.
$ac_ext >&5
4241 eval "$as_ac_Header=no"
4243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4248 cat >>confdefs.h
<<_ACEOF
4249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4257 if test "${ac_cv_header_valgrind_h+set}" = set; then
4258 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4259 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4260 if test "${ac_cv_header_valgrind_h+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4264 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4266 # Is the header compilable?
4267 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4268 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4269 cat >conftest.
$ac_ext <<_ACEOF
4272 cat confdefs.h
>>conftest.
$ac_ext
4273 cat >>conftest.
$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 $ac_includes_default
4276 #include <valgrind.h>
4278 rm -f conftest.
$ac_objext
4279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4280 (eval $ac_compile) 2>conftest.er1
4282 grep -v '^ *+' conftest.er1
>conftest.err
4284 cat conftest.err
>&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try
='test -z "$ac_c_werror_flag"
4288 || test ! -s conftest.err'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; } &&
4294 { ac_try
='test -s conftest.$ac_objext'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_header_compiler
=yes
4302 echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.
$ac_ext >&5
4305 ac_header_compiler
=no
4307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4309 echo "${ECHO_T}$ac_header_compiler" >&6
4311 # Is the header present?
4312 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4313 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4314 cat >conftest.
$ac_ext <<_ACEOF
4317 cat confdefs.h
>>conftest.
$ac_ext
4318 cat >>conftest.
$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <valgrind.h>
4322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4323 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4325 grep -v '^ *+' conftest.er1
>conftest.err
4327 cat conftest.err
>&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } >/dev
/null
; then
4330 if test -s conftest.err
; then
4331 ac_cpp_err
=$ac_c_preproc_warn_flag
4332 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4339 if test -z "$ac_cpp_err"; then
4340 ac_header_preproc
=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.
$ac_ext >&5
4345 ac_header_preproc
=no
4347 rm -f conftest.err conftest.
$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4349 echo "${ECHO_T}$ac_header_preproc" >&6
4351 # So? What about this header?
4352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4354 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4355 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4356 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4357 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4358 ac_header_preproc
=yes
4361 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4362 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4364 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4365 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4366 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4368 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4371 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4372 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4375 ## ------------------------------------------ ##
4376 ## Report this to the AC_PACKAGE_NAME lists. ##
4377 ## ------------------------------------------ ##
4380 sed "s/^/$as_me: WARNING: /" >&2
4383 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4384 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4385 if test "${ac_cv_header_valgrind_h+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 ac_cv_header_valgrind_h
=$ac_header_preproc
4390 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4391 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4394 if test $ac_cv_header_valgrind_h = yes; then
4402 if test x
$ac_checking_valgrind != x
; then
4403 # It is certainly possible that there's valgrind but no valgrind.h.
4404 # GCC relies on making annotations so we must have both.
4405 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4406 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4410 cat confdefs.h
>>conftest.
$ac_ext
4411 cat >>conftest.
$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 #include <valgrind/memcheck.h>
4414 #ifndef VALGRIND_DISCARD
4415 #error VALGRIND_DISCARD not defined
4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1
>conftest.err
4423 cat conftest.err
>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev
/null
; then
4426 if test -s conftest.err
; then
4427 ac_cpp_err
=$ac_c_preproc_warn_flag
4428 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4435 if test -z "$ac_cpp_err"; then
4436 gcc_cv_header_valgrind_memcheck_h
=yes
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.
$ac_ext >&5
4441 gcc_cv_header_valgrind_memcheck_h
=no
4443 rm -f conftest.err conftest.
$ac_ext
4444 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4445 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4446 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4447 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <memcheck.h>
4455 #ifndef VALGRIND_DISCARD
4456 #error VALGRIND_DISCARD not defined
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1
>conftest.err
4464 cat conftest.err
>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev
/null
; then
4467 if test -s conftest.err
; then
4468 ac_cpp_err
=$ac_c_preproc_warn_flag
4469 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4476 if test -z "$ac_cpp_err"; then
4477 gcc_cv_header_memcheck_h
=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.
$ac_ext >&5
4482 gcc_cv_header_memcheck_h
=no
4484 rm -f conftest.err conftest.
$ac_ext
4485 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4486 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4488 # Prepare PATH_SEPARATOR.
4489 # The user is always right.
4490 if test "${PATH_SEPARATOR+set}" != set; then
4491 echo "#! /bin/sh" >conf$$.sh
4492 echo "exit 0" >>conf$$.sh
4494 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4502 # Find out how to test for executable files. Don't use a zero-byte file,
4503 # as systems may use methods other than mode bits to determine executability.
4504 cat >conf$$.
file <<_ASEOF
4508 chmod +x conf$$.
file
4509 if test -x conf$$.
file >/dev
/null
2>&1; then
4510 ac_executable_p
="test -x"
4512 ac_executable_p
="test -f"
4516 # Extract the first word of "valgrind", so it can be a program name with args.
4517 set dummy valgrind
; ac_word
=$2
4518 echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4520 if test "${ac_cv_path_valgrind_path+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 case "$valgrind_path" in
4525 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4528 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4529 for ac_dir
in $PATH; do
4531 test -z "$ac_dir" && ac_dir
=.
4532 for ac_exec_ext
in '' $ac_executable_extensions; do
4533 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4534 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4535 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4545 valgrind_path
="$ac_cv_path_valgrind_path"
4546 if test -n "$valgrind_path"; then
4547 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4548 echo "${ECHO_T}$valgrind_path" >&6
4550 echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 if test "x$valgrind_path" = "x" \
4555 ||
(test $have_valgrind_h = no \
4556 && test $gcc_cv_header_memcheck_h = no \
4557 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4558 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4559 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4560 { (exit 1); exit 1; }; }
4562 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4563 valgrind_command
="$valgrind_path -q"
4565 cat >>confdefs.h
<<\_ACEOF
4566 #define ENABLE_VALGRIND_CHECKING 1
4569 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4571 cat >>confdefs.h
<<\_ACEOF
4572 #define HAVE_VALGRIND_MEMCHECK_H 1
4576 if test $gcc_cv_header_memcheck_h = yes; then
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define HAVE_MEMCHECK_H 1
4587 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4588 if test "${enable_mapped_location+set}" = set; then
4589 enableval
="$enable_mapped_location"
4592 enable_mapped_location
=no
4595 if test "$enable_mapped_location" = yes ; then
4597 cat >>confdefs.h
<<\_ACEOF
4598 #define USE_MAPPED_LOCATION 1
4603 # Enable code coverage collection
4604 # Check whether --enable-coverage or --disable-coverage was given.
4605 if test "${enable_coverage+set}" = set; then
4606 enableval
="$enable_coverage"
4607 case "${enableval}" in
4609 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4612 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4615 # a.k.a. --disable-coverage
4619 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4620 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4621 { (exit 1); exit 1; }; }
4629 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4630 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4631 enableval
="$enable_gather_detailed_mem_stats"
4634 enable_gather_detailed_mem_stats
=no
4636 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4638 cat >>confdefs.h
<<\_ACEOF
4639 #define GATHER_STATISTICS 1
4644 # -------------------------------
4645 # Miscenalleous configure options
4646 # -------------------------------
4650 # Check whether --with-stabs or --without-stabs was given.
4651 if test "${with_stabs+set}" = set; then
4652 withval
="$with_stabs"
4658 # Determine whether or not multilibs are enabled.
4659 # Check whether --enable-multilib or --disable-multilib was given.
4660 if test "${enable_multilib+set}" = set; then
4661 enableval
="$enable_multilib"
4668 # Enable __cxa_atexit for C++.
4669 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4670 if test "${enable___cxa_atexit+set}" = set; then
4671 enableval
="$enable___cxa_atexit"
4676 # Pass with no value to take the default
4677 # Pass with a value to specify a thread package
4678 # Check whether --enable-threads or --disable-threads was given.
4679 if test "${enable_threads+set}" = set; then
4680 enableval
="$enable_threads"
4686 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4687 if test "${enable_objc_gc+set}" = set; then
4688 enableval
="$enable_objc_gc"
4689 if test x
$enable_objc_gc = xno
; then
4699 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4700 if test "${with_dwarf2+set}" = set; then
4701 withval
="$with_dwarf2"
4702 dwarf2
="$with_dwarf2"
4707 # Check whether --enable-shared or --disable-shared was given.
4708 if test "${enable_shared+set}" = set; then
4709 enableval
="$enable_shared"
4711 case $enable_shared in
4715 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4716 for pkg
in $enableval; do
4717 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4731 # Check whether --with-sysroot or --without-sysroot was given.
4732 if test "${with_sysroot+set}" = set; then
4733 withval
="$with_sysroot"
4735 case ${with_sysroot} in
4736 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4737 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4740 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4741 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4743 if test "x$exec_prefix" = xNONE
; then
4744 if test "x$prefix" = xNONE
; then
4745 test_prefix
=/usr
/local
4750 test_prefix
=$exec_prefix
4752 case ${TARGET_SYSTEM_ROOT} in
4753 "${test_prefix}"|
"${test_prefix}/"*|\
4754 '${exec_prefix}'|
'${exec_prefix}/'*)
4755 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4756 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4763 TARGET_SYSTEM_ROOT_DEFINE
=
4764 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4771 # Build with intermodule optimisations
4772 # Check whether --enable-intermodule or --disable-intermodule was given.
4773 if test "${enable_intermodule+set}" = set; then
4774 enableval
="$enable_intermodule"
4775 case ${enable_intermodule} in
4776 yes) onestep
="-onestep";;
4784 # Sanity check enable_languages in case someone does not run the toplevel
4785 # configure # script.
4786 # Check whether --enable-languages or --disable-languages was given.
4787 if test "${enable_languages+set}" = set; then
4788 enableval
="$enable_languages"
4789 case ,${enable_languages}, in
4791 # go safe -- we cannot be much sure without the toplevel
4793 # analysis of which target libs are present and usable
4797 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4798 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4799 { (exit 1); exit 1; }; }
4804 enable_languages
=c
,${enable_languages}
4812 for lang
in ${srcdir}/*/config-lang.
in
4815 # The odd quoting in the next line works around
4816 # an apparent bug in bash 1.12 on linux.
4817 ${srcdir}/[*]/config-lang.
in) ;;
4819 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4820 if test "x$lang_alias" = x
4822 echo "$lang doesn't set \$language." 1>&2
4825 case ",$enable_languages," in
4827 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4834 # -------------------------
4835 # Checks for other programs
4836 # -------------------------
4838 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4840 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4841 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 cat >conftest.
make <<\_ACEOF
4846 @
echo 'ac_maketemp="$(MAKE)"'
4848 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4849 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4850 if test -n "$ac_maketemp"; then
4851 eval ac_cv_prog_make_
${ac_make}_set
=yes
4853 eval ac_cv_prog_make_
${ac_make}_set
=no
4857 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4858 echo "$as_me:$LINENO: result: yes" >&5
4859 echo "${ECHO_T}yes" >&6
4862 echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6
4864 SET_MAKE
="MAKE=${MAKE-make}"
4868 # Find some useful tools
4869 for ac_prog
in gawk mawk nawk
awk
4871 # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy
$ac_prog; ac_word
=$2
4873 echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_AWK+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$AWK"; then
4879 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir
=.
4886 for ac_exec_ext
in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_AWK
="$ac_prog"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 if test -n "$AWK"; then
4899 echo "$as_me:$LINENO: result: $AWK" >&5
4900 echo "${ECHO_T}$AWK" >&6
4902 echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6
4906 test -n "$AWK" && break
4909 # We need awk to create options.c and options.h.
4910 # Bail out if it's missing.
4912 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4913 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4917 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4918 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4919 if test "${gcc_cv_prog_LN_S+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 rm -f conftestdata_t
4923 echo >conftestdata_f
4924 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4926 gcc_cv_prog_LN_S
="ln -s"
4928 if ln conftestdata_f conftestdata_t
2>/dev
/null
4935 rm -f conftestdata_f conftestdata_t
4938 LN_S
="$gcc_cv_prog_LN_S"
4939 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4940 echo "$as_me:$LINENO: result: yes" >&5
4941 echo "${ECHO_T}yes" >&6
4943 if test "$gcc_cv_prog_LN_S" = "ln"; then
4944 echo "$as_me:$LINENO: result: no, using ln" >&5
4945 echo "${ECHO_T}no, using ln" >&6
4947 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4948 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4952 echo "$as_me:$LINENO: checking whether ln works" >&5
4953 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4954 if test "${acx_cv_prog_LN+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 rm -f conftestdata_t
4958 echo >conftestdata_f
4959 if ln conftestdata_f conftestdata_t
2>/dev
/null
4965 rm -f conftestdata_f conftestdata_t
4968 if test $acx_cv_prog_LN = no
; then
4970 echo "$as_me:$LINENO: result: no, using $LN" >&5
4971 echo "${ECHO_T}no, using $LN" >&6
4973 LN
="$acx_cv_prog_LN"
4974 echo "$as_me:$LINENO: result: yes" >&5
4975 echo "${ECHO_T}yes" >&6
4978 if test -n "$ac_tool_prefix"; then
4979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4980 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4981 echo "$as_me:$LINENO: checking for $ac_word" >&5
4982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983 if test "${ac_cv_prog_RANLIB+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4986 if test -n "$RANLIB"; then
4987 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir
=.
4994 for ac_exec_ext
in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 RANLIB
=$ac_cv_prog_RANLIB
5006 if test -n "$RANLIB"; then
5007 echo "$as_me:$LINENO: result: $RANLIB" >&5
5008 echo "${ECHO_T}$RANLIB" >&6
5010 echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5015 if test -z "$ac_cv_prog_RANLIB"; then
5016 ac_ct_RANLIB
=$RANLIB
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018 set dummy ranlib
; ac_word
=$2
5019 echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 if test -n "$ac_ct_RANLIB"; then
5025 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir
=.
5032 for ac_exec_ext
in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5044 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5045 if test -n "$ac_ct_RANLIB"; then
5046 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5047 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5049 echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6
5053 RANLIB
=$ac_ct_RANLIB
5055 RANLIB
="$ac_cv_prog_RANLIB"
5060 # By default, the Darwin ranlib will not treat common symbols as
5061 # definitions when building the archive table of contents. Other
5062 # ranlibs do that; pass an option to the Darwin ranlib that makes
5063 # it behave similarly.
5071 # Find a good install program. We prefer a C program (faster),
5072 # so one script is as good as another. But avoid the broken or
5073 # incompatible versions:
5074 # SysV /etc/install, /usr/sbin/install
5075 # SunOS /usr/etc/install
5076 # IRIX /sbin/install
5078 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5079 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5080 # ./install, which can be erroneously created by make from ./install.sh.
5081 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5082 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5083 if test -z "$INSTALL"; then
5084 if test "${ac_cv_path_install+set}" = set; then
5085 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
5088 for ac_dir
in $PATH; do
5089 # Account for people who put trailing slashes in PATH elements.
5091 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5093 # OSF1 and SCO ODT 3.0 have their own names for install.
5094 for ac_prog
in ginstall scoinst
install; do
5095 if test -f $ac_dir/$ac_prog; then
5096 if test $ac_prog = install &&
5097 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5098 # AIX install. It has an incompatible calling convention.
5099 # OSF/1 installbsd also uses dspmsg, but is usable.
5102 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5113 if test "${ac_cv_path_install+set}" = set; then
5114 INSTALL
="$ac_cv_path_install"
5116 # As a last resort, use the slow shell script. We don't cache a
5117 # path for INSTALL within a source directory, because that will
5118 # break other packages using the cache if that directory is
5119 # removed, or if the path is relative.
5120 INSTALL
="$ac_install_sh"
5123 echo "$as_me:$LINENO: result: $INSTALL" >&5
5124 echo "${ECHO_T}$INSTALL" >&6
5126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5127 # It thinks the first close brace ends the variable substitution.
5128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5130 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5133 # See if cmp has --ignore-initial.
5134 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5135 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5136 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 gcc_cv_prog_cmp_skip
=slowcompare
5142 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5143 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5146 gcc_cv_prog_cmp_skip
=gnucompare
5149 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5150 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5151 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5154 gcc_cv_prog_cmp_skip
=fastcompare
5161 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5162 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5163 make_compare_target
=$gcc_cv_prog_cmp_skip
5167 # See if we have the mktemp command.
5168 # Extract the first word of "mktemp", so it can be a program name with args.
5169 set dummy mktemp
; ac_word
=$2
5170 echo "$as_me:$LINENO: checking for $ac_word" >&5
5171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 if test -n "$have_mktemp_command"; then
5176 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir
=.
5183 for ac_exec_ext
in '' $ac_executable_extensions; do
5184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5185 ac_cv_prog_have_mktemp_command
="yes"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5195 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5196 if test -n "$have_mktemp_command"; then
5197 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5198 echo "${ECHO_T}$have_mktemp_command" >&6
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5205 # Do we have a single-tree copy of texinfo?
5206 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
5207 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
5208 gcc_cv_prog_makeinfo_modern
=yes
5209 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5210 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5212 # See if makeinfo has been installed and is modern enough
5213 # that we can use it.
5214 # Extract the first word of "makeinfo", so it can be a program name with args.
5215 set dummy makeinfo
; ac_word
=$2
5216 echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5218 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5219 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 if test -n "$MAKEINFO"; then
5222 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir
=.
5229 for ac_exec_ext
in '' $ac_executable_extensions; do
5230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_MAKEINFO
="makeinfo"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 MAKEINFO
=$ac_cv_prog_MAKEINFO
5241 if test -n "$MAKEINFO"; then
5242 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5243 echo "${ECHO_T}$MAKEINFO" >&6
5245 echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6
5249 if test -n "$MAKEINFO"; then
5250 # Found it, now check the version.
5251 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5252 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5253 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5257 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5258 echo "configure:5258: version of makeinfo is $ac_prog_version" >&5
5259 case $ac_prog_version in
5260 '') gcc_cv_prog_makeinfo_modern
=no
;;
5262 gcc_cv_prog_makeinfo_modern
=yes;;
5263 *) gcc_cv_prog_makeinfo_modern
=no
;;
5267 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5268 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5270 gcc_cv_prog_makeinfo_modern
=no
5275 if test $gcc_cv_prog_makeinfo_modern = no
; then
5276 { echo "$as_me:$LINENO: WARNING:
5277 *** Makeinfo is missing or too old.
5278 *** Info documentation will not be built." >&5
5279 echo "$as_me: WARNING:
5280 *** Makeinfo is missing or too old.
5281 *** Info documentation will not be built." >&2;}
5287 # Is pod2man recent enough to regenerate manpages?
5288 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5289 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5290 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5291 echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6
5293 GENERATED_MANPAGES
=generated-manpages
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5301 if test x
${build} = x
${host} && test -f $srcdir/..
/flex
/skel.c
; then
5302 FLEX
='$(objdir)/../flex/flex'
5304 # Extract the first word of "flex", so it can be a program name with args.
5305 set dummy flex
; ac_word
=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_prog_FLEX+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 if test -n "$FLEX"; then
5312 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5318 test -z "$as_dir" && as_dir
=.
5319 for ac_exec_ext
in '' $ac_executable_extensions; do
5320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321 ac_cv_prog_FLEX
="flex"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5331 FLEX
=$ac_cv_prog_FLEX
5332 if test -n "$FLEX"; then
5333 echo "$as_me:$LINENO: result: $FLEX" >&5
5334 echo "${ECHO_T}$FLEX" >&6
5336 echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6
5343 # The -L switch is so bison can find its skeleton file.
5344 if test x
${build} = x
${host} && test -f $srcdir/..
/bison
/bison.simple
; then
5345 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5347 # Extract the first word of "bison", so it can be a program name with args.
5348 set dummy bison
; ac_word
=$2
5349 echo "$as_me:$LINENO: checking for $ac_word" >&5
5350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351 if test "${ac_cv_prog_BISON+set}" = set; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5354 if test -n "$BISON"; then
5355 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir
=.
5362 for ac_exec_ext
in '' $ac_executable_extensions; do
5363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364 ac_cv_prog_BISON
="bison"
5365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5371 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5374 BISON
=$ac_cv_prog_BISON
5375 if test -n "$BISON"; then
5376 echo "$as_me:$LINENO: result: $BISON" >&5
5377 echo "${ECHO_T}$BISON" >&6
5379 echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6
5385 # --------------------
5386 # Checks for C headers
5387 # --------------------
5389 echo "$as_me:$LINENO: checking for GNU C library" >&5
5390 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5391 if test "${gcc_cv_glibc+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 cat >conftest.
$ac_ext <<_ACEOF
5397 cat confdefs.h
>>conftest.
$ac_ext
5398 cat >>conftest.
$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5400 #include <features.h>
5405 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5406 #error Not a GNU C library system
5412 rm -f conftest.
$ac_objext
5413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5414 (eval $ac_compile) 2>conftest.er1
5416 grep -v '^ *+' conftest.er1
>conftest.err
5418 cat conftest.err
>&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try
='test -z "$ac_c_werror_flag"
5422 || test ! -s conftest.err'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; } &&
5428 { ac_try
='test -s conftest.$ac_objext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.
$ac_ext >&5
5441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5444 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5445 echo "${ECHO_T}$gcc_cv_glibc" >&6
5446 if test $gcc_cv_glibc = yes; then
5448 cat >>confdefs.h
<<\_ACEOF
5449 #define _GNU_SOURCE 1
5454 # Need to reject headers which give warnings, so that the -Werror bootstrap
5455 # works later. *sigh* This needs to come before all header checks.
5457 ac_c_preproc_warn_flag
=yes
5459 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5461 if test "${ac_cv_header_stdc+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 cat >conftest.
$ac_ext <<_ACEOF
5467 cat confdefs.h
>>conftest.
$ac_ext
5468 cat >>conftest.
$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5483 rm -f conftest.
$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5487 grep -v '^ *+' conftest.er1
>conftest.err
5489 cat conftest.err
>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try
='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try
='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 ac_cv_header_stdc
=yes
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5510 ac_cv_header_stdc
=no
5512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5514 if test $ac_cv_header_stdc = yes; then
5515 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5516 cat >conftest.
$ac_ext <<_ACEOF
5519 cat confdefs.h
>>conftest.
$ac_ext
5520 cat >>conftest.
$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5526 $EGREP "memchr" >/dev
/null
2>&1; then
5529 ac_cv_header_stdc
=no
5535 if test $ac_cv_header_stdc = yes; then
5536 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5537 cat >conftest.
$ac_ext <<_ACEOF
5540 cat confdefs.h
>>conftest.
$ac_ext
5541 cat >>conftest.
$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5547 $EGREP "free" >/dev
/null
2>&1; then
5550 ac_cv_header_stdc
=no
5556 if test $ac_cv_header_stdc = yes; then
5557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5558 if test "$cross_compiling" = yes; then
5561 cat >conftest.
$ac_ext <<_ACEOF
5564 cat confdefs.h
>>conftest.
$ac_ext
5565 cat >>conftest.
$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5568 #if ((' ' & 0x0FF) == 0x020)
5569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5572 # define ISLOWER(c) \
5573 (('a' <= (c) && (c) <= 'i') \
5574 || ('j' <= (c) && (c) <= 'r') \
5575 || ('s' <= (c) && (c) <= 'z'))
5576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5584 for (i = 0; i < 256; i++)
5585 if (XOR (islower (i), ISLOWER (i))
5586 || toupper (i) != TOUPPER (i))
5591 rm -f conftest
$ac_exeext
5592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5604 echo "$as_me: program exited with status $ac_status" >&5
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.
$ac_ext >&5
5609 ac_cv_header_stdc
=no
5611 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5616 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5617 if test $ac_cv_header_stdc = yes; then
5619 cat >>confdefs.h
<<\_ACEOF
5620 #define STDC_HEADERS 1
5625 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5626 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5627 if test "${ac_cv_header_time+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 cat >conftest.
$ac_ext <<_ACEOF
5633 cat confdefs.h
>>conftest.
$ac_ext
5634 cat >>conftest.
$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <sys/types.h>
5637 #include <sys/time.h>
5643 if ((struct tm *) 0)
5649 rm -f conftest.
$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651 (eval $ac_compile) 2>conftest.er1
5653 grep -v '^ *+' conftest.er1
>conftest.err
5655 cat conftest.err
>&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try
='test -z "$ac_c_werror_flag"
5659 || test ! -s conftest.err'
5660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); }; } &&
5665 { ac_try
='test -s conftest.$ac_objext'
5666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); }; }; then
5671 ac_cv_header_time
=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5676 ac_cv_header_time
=no
5678 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5681 echo "${ECHO_T}$ac_cv_header_time" >&6
5682 if test $ac_cv_header_time = yes; then
5684 cat >>confdefs.h
<<\_ACEOF
5685 #define TIME_WITH_SYS_TIME 1
5690 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5691 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5692 if test "${gcc_cv_header_string+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 cat >conftest.
$ac_ext <<_ACEOF
5698 cat confdefs.h
>>conftest.
$ac_ext
5699 cat >>conftest.
$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5702 #include <strings.h>
5711 rm -f conftest.
$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1
>conftest.err
5717 cat conftest.err
>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try
='test -z "$ac_c_werror_flag"
5721 || test ! -s conftest.err'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; } &&
5727 { ac_try
='test -s conftest.$ac_objext'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
5733 gcc_cv_header_string
=yes
5735 echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.
$ac_ext >&5
5738 gcc_cv_header_string
=no
5740 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5742 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5743 echo "${ECHO_T}$gcc_cv_header_string" >&6
5744 if test $gcc_cv_header_string = yes; then
5746 cat >>confdefs.h
<<\_ACEOF
5747 #define STRING_WITH_STRINGS 1
5752 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5753 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5754 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cat >conftest.
$ac_ext <<_ACEOF
5760 cat confdefs.h
>>conftest.
$ac_ext
5761 cat >>conftest.
$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 #include <sys/types.h>
5764 #include <sys/wait.h>
5766 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5769 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5777 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5782 rm -f conftest.
$ac_objext
5783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784 (eval $ac_compile) 2>conftest.er1
5786 grep -v '^ *+' conftest.er1
>conftest.err
5788 cat conftest.err
>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try
='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try
='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_header_sys_wait_h
=yes
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.
$ac_ext >&5
5809 ac_cv_header_sys_wait_h
=no
5811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5814 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5815 if test $ac_cv_header_sys_wait_h = yes; then
5817 cat >>confdefs.h
<<\_ACEOF
5818 #define HAVE_SYS_WAIT_H 1
5844 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5845 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5846 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5847 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5849 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5850 echo "$as_me:$LINENO: checking for $ac_header" >&5
5851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 cat >conftest.
$ac_ext <<_ACEOF
5858 cat confdefs.h
>>conftest.
$ac_ext
5859 cat >>conftest.
$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <$ac_header>
5863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } >/dev
/null
; then
5871 if test -s conftest.err
; then
5872 ac_cpp_err
=$ac_c_preproc_warn_flag
5873 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5880 if test -z "$ac_cpp_err"; then
5881 eval "$as_ac_Header=yes"
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.
$ac_ext >&5
5886 eval "$as_ac_Header=no"
5888 rm -f conftest.err conftest.
$ac_ext
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h
<<_ACEOF
5894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901 # Check for thread headers.
5902 echo "$as_me:$LINENO: checking for thread.h" >&5
5903 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5904 if test "${ac_cv_header_thread_h+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5916 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5918 grep -v '^ *+' conftest.er1
>conftest.err
5920 cat conftest.err
>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev
/null
; then
5923 if test -s conftest.err
; then
5924 ac_cpp_err
=$ac_c_preproc_warn_flag
5925 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5932 if test -z "$ac_cpp_err"; then
5933 ac_cv_header_thread_h
=yes
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.
$ac_ext >&5
5938 ac_cv_header_thread_h
=no
5940 rm -f conftest.err conftest.
$ac_ext
5942 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5943 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5944 if test $ac_cv_header_thread_h = yes; then
5950 echo "$as_me:$LINENO: checking for pthread.h" >&5
5951 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5952 if test "${ac_cv_header_pthread_h+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <pthread.h>
5963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1
>conftest.err
5968 cat conftest.err
>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } >/dev
/null
; then
5971 if test -s conftest.err
; then
5972 ac_cpp_err
=$ac_c_preproc_warn_flag
5973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5980 if test -z "$ac_cpp_err"; then
5981 ac_cv_header_pthread_h
=yes
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 ac_cv_header_pthread_h
=no
5988 rm -f conftest.err conftest.
$ac_ext
5990 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5991 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5992 if test $ac_cv_header_pthread_h = yes; then
5999 # These tests can't be done till we know if we have limits.h.
6000 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6001 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6002 if test "${gcc_cv_decl_char_bit+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.
$ac_ext <<_ACEOF
6008 cat confdefs.h
>>conftest.
$ac_ext
6009 cat >>conftest.
$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 #ifdef HAVE_LIMITS_H
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 $EGREP "found" >/dev
/null
2>&1; then
6020 gcc_cv_decl_char_bit
=yes
6022 gcc_cv_decl_char_bit
=no
6028 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6029 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6030 if test $gcc_cv_decl_char_bit = no
; then
6031 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6032 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6033 if test "${gcc_cv_c_nbby+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 while test $i -lt 65; do
6039 cat >conftest.
$ac_ext <<_ACEOF
6042 cat confdefs.h
>>conftest.
$ac_ext
6043 cat >>conftest.
$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6050 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6051 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6057 rm -f conftest.
$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6061 grep -v '^ *+' conftest.er1
>conftest.err
6063 cat conftest.err
>&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try
='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try
='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 gcc_cv_c_nbby
=$i; break
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.
$ac_ext >&5
6085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6091 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6092 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6093 if test $gcc_cv_c_nbby = failed
; then
6094 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6095 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6096 { (exit 1); exit 1; }; }
6099 cat >>confdefs.h
<<_ACEOF
6100 #define CHAR_BIT $gcc_cv_c_nbby
6105 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6106 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6107 if test "${ac_cv_c_bigendian+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_c_bigendian
=unknown
6111 # See if sys/param.h defines the BYTE_ORDER macro.
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 #include <sys/types.h>
6119 #include <sys/param.h>
6124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6131 rm -f conftest.
$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6135 grep -v '^ *+' conftest.er1
>conftest.err
6137 cat conftest.err
>&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try
='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try
='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 # It does; now see whether it defined to BIG_ENDIAN or not.
6154 cat >conftest.
$ac_ext <<_ACEOF
6157 cat confdefs.h
>>conftest.
$ac_ext
6158 cat >>conftest.
$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <sys/types.h>
6161 #include <sys/param.h>
6166 #if BYTE_ORDER != BIG_ENDIAN
6173 rm -f conftest.
$ac_objext
6174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6175 (eval $ac_compile) 2>conftest.er1
6177 grep -v '^ *+' conftest.er1
>conftest.err
6179 cat conftest.err
>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try
='test -z "$ac_c_werror_flag"
6183 || test ! -s conftest.err'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try
='test -s conftest.$ac_objext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 ac_cv_c_bigendian
=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.
$ac_ext >&5
6200 ac_cv_c_bigendian
=no
6202 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.
$ac_ext >&5
6208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6209 if test $ac_cv_c_bigendian = unknown
; then
6210 if test "$cross_compiling" = yes; then
6211 echo $ac_n "cross-compiling... " 2>&6
6213 cat >conftest.
$ac_ext <<_ACEOF
6216 cat confdefs.h
>>conftest.
$ac_ext
6217 cat >>conftest.
$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6220 /* Are we little or big endian? From Harbison&Steele. */
6224 char c[sizeof (long)];
6227 exit (u.c[sizeof (long) - 1] == 1);
6230 rm -f conftest
$ac_exeext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6232 (eval $ac_link) 2>&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
6241 ac_cv_c_bigendian
=no
6243 echo "$as_me: program exited with status $ac_status" >&5
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_c_bigendian
=yes
6250 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6254 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6255 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6256 if test $ac_cv_c_bigendian = unknown
; then
6257 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6258 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6260 cat >conftest.c
<<EOF
6261 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6262 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6263 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6264 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6265 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6266 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6267 int main() { _ascii (); _ebcdic (); return 0; }
6269 if test -f conftest.c
; then
6270 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6271 if test `grep -l BIGenDianSyS conftest.o` ; then
6272 echo $ac_n ' big endian probe OK, ' 1>&6
6273 ac_cv_c_bigendian
=yes
6275 if test `grep -l LiTTleEnDian conftest.o` ; then
6276 echo $ac_n ' little endian probe OK, ' 1>&6
6277 if test $ac_cv_c_bigendian = yes ; then
6278 ac_cv_c_bigendian
=unknown
;
6280 ac_cv_c_bigendian
=no
6283 echo $ac_n 'guessing bigendian ... ' >&6
6286 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6287 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6289 if test $ac_cv_c_bigendian = yes; then
6291 cat >>confdefs.h
<<\_ACEOF
6292 #define WORDS_BIGENDIAN 1
6296 cat >>confdefs.h
<<\_ACEOF
6297 #define HOST_WORDS_BIG_ENDIAN 1
6305 cat >>confdefs.h
<<_ACEOF
6306 #define BYTEORDER $BYTEORDER
6309 if test $ac_cv_c_bigendian = unknown
; then
6310 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6311 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6312 { (exit 1); exit 1; }; }
6320 # Stage specific cflags for build.
6324 if test x
$GCC = xyes
6326 stage1_cflags
="-Wa,-J"
6332 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6333 # sources; use -no-cpp-precomp to get to GNU cpp.
6334 # Apple's GCC has bugs in designated initializer handling, so disable
6336 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6341 # These libraries may be used by collect2.
6342 # We may need a special search path to get them linked.
6343 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6344 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6345 if test "${gcc_cv_collect2_libs+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6349 for libs
in '' -lld -lmld \
6350 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6351 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6354 cat >conftest.
$ac_ext <<_ACEOF
6357 cat confdefs.h
>>conftest.
$ac_ext
6358 cat >>conftest.
$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6361 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6376 rm -f conftest.
$ac_objext conftest
$ac_exeext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>conftest.er1
6380 grep -v '^ *+' conftest.er1
>conftest.err
6382 cat conftest.err
>&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try
='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try
='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 gcc_cv_collect2_libs
="$libs"; break
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.
$ac_ext >&5
6404 rm -f conftest.err conftest.
$ac_objext \
6405 conftest
$ac_exeext conftest.
$ac_ext
6408 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6410 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6411 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6412 case $gcc_cv_collect2_libs in
6414 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6418 # When building Ada code on Alpha, we need exc_resume which is usually in
6419 # -lexc. So test for it.
6422 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6423 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6424 if test "${ac_cv_search_exc_resume+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_func_search_save_LIBS
=$LIBS
6428 ac_cv_search_exc_resume
=no
6429 cat >conftest.
$ac_ext <<_ACEOF
6432 cat confdefs.h
>>conftest.
$ac_ext
6433 cat >>conftest.
$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6436 /* Override any gcc2 internal prototype to avoid an error. */
6440 /* We use char because int might match the return type of a gcc2
6441 builtin and then its argument prototype would still apply. */
6451 rm -f conftest.
$ac_objext conftest
$ac_exeext
6452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6453 (eval $ac_link) 2>conftest.er1
6455 grep -v '^ *+' conftest.er1
>conftest.err
6457 cat conftest.err
>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try
='test -z "$ac_c_werror_flag"
6461 || test ! -s conftest.err'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; } &&
6467 { ac_try
='test -s conftest$ac_exeext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6473 ac_cv_search_exc_resume
="none required"
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.
$ac_ext >&5
6479 rm -f conftest.err conftest.
$ac_objext \
6480 conftest
$ac_exeext conftest.
$ac_ext
6481 if test "$ac_cv_search_exc_resume" = no
; then
6482 for ac_lib
in exc
; do
6483 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6484 cat >conftest.
$ac_ext <<_ACEOF
6487 cat confdefs.h
>>conftest.
$ac_ext
6488 cat >>conftest.
$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6506 rm -f conftest.
$ac_objext conftest
$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1
>conftest.err
6512 cat conftest.err
>&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try
='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try
='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_search_exc_resume
="-l$ac_lib"
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.
$ac_ext >&5
6535 rm -f conftest.err conftest.
$ac_objext \
6536 conftest
$ac_exeext conftest.
$ac_ext
6539 LIBS
=$ac_func_search_save_LIBS
6541 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6542 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6543 if test "$ac_cv_search_exc_resume" != no
; then
6544 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6552 # Some systems put ldexp and frexp in libm instead of libc; assume
6553 # they're both in the same place. jcf-dump needs them.
6556 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6557 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6558 if test "${ac_cv_search_ldexp+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 ac_func_search_save_LIBS
=$LIBS
6562 ac_cv_search_ldexp
=no
6563 cat >conftest.
$ac_ext <<_ACEOF
6566 cat confdefs.h
>>conftest.
$ac_ext
6567 cat >>conftest.
$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6585 rm -f conftest.
$ac_objext conftest
$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>conftest.er1
6589 grep -v '^ *+' conftest.er1
>conftest.err
6591 cat conftest.err
>&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try
='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try
='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_search_ldexp
="none required"
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.
$ac_ext >&5
6613 rm -f conftest.err conftest.
$ac_objext \
6614 conftest
$ac_exeext conftest.
$ac_ext
6615 if test "$ac_cv_search_ldexp" = no
; then
6617 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6618 cat >conftest.
$ac_ext <<_ACEOF
6621 cat confdefs.h
>>conftest.
$ac_ext
6622 cat >>conftest.
$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6629 /* We use char because int might match the return type of a gcc2
6630 builtin and then its argument prototype would still apply. */
6640 rm -f conftest.
$ac_objext conftest
$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1
>conftest.err
6646 cat conftest.err
>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try
='test -z "$ac_c_werror_flag"
6650 || test ! -s conftest.err'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; } &&
6656 { ac_try
='test -s conftest$ac_exeext'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 ac_cv_search_ldexp
="-l$ac_lib"
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.
$ac_ext >&5
6669 rm -f conftest.err conftest.
$ac_objext \
6670 conftest
$ac_exeext conftest.
$ac_ext
6673 LIBS
=$ac_func_search_save_LIBS
6675 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6676 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6677 if test "$ac_cv_search_ldexp" != no
; then
6678 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6686 # Use <inttypes.h> only if it exists,
6687 # doesn't clash with <sys/types.h>, and declares intmax_t.
6688 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6689 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6690 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 cat >conftest.
$ac_ext <<_ACEOF
6696 cat confdefs.h
>>conftest.
$ac_ext
6697 cat >>conftest.
$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/types.h>
6700 #include <inttypes.h>
6709 rm -f conftest.
$ac_objext
6710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6711 (eval $ac_compile) 2>conftest.er1
6713 grep -v '^ *+' conftest.er1
>conftest.err
6715 cat conftest.err
>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try
='test -z "$ac_c_werror_flag"
6719 || test ! -s conftest.err'
6720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); }; } &&
6725 { ac_try
='test -s conftest.$ac_objext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 gcc_cv_header_inttypes_h
=yes
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.
$ac_ext >&5
6736 gcc_cv_header_inttypes_h
=no
6738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6741 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6742 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6743 if test $gcc_cv_header_inttypes_h = yes; then
6745 cat >>confdefs.h
<<\_ACEOF
6746 #define HAVE_INTTYPES_H 1
6777 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6778 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6779 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6780 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6783 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6784 echo "$as_me:$LINENO: checking for $ac_func" >&5
6785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6786 if eval "test \"\${$as_ac_var+set}\" = set"; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 cat >conftest.
$ac_ext <<_ACEOF
6792 cat confdefs.h
>>conftest.
$ac_ext
6793 cat >>conftest.
$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6797 #define $ac_func innocuous_$ac_func
6799 /* System header to define __stub macros and hopefully few prototypes,
6800 which can conflict with char $ac_func (); below.
6801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6802 <limits.h> exists even on freestanding compilers. */
6805 # include <limits.h>
6807 # include <assert.h>
6812 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6820 /* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
6823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6826 char (*f) () = $ac_func;
6835 return f != $ac_func;
6840 rm -f conftest.
$ac_objext conftest
$ac_exeext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>conftest.er1
6844 grep -v '^ *+' conftest.er1
>conftest.err
6846 cat conftest.err
>&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } &&
6849 { ac_try
='test -z "$ac_c_werror_flag"
6850 || test ! -s conftest.err'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; } &&
6856 { ac_try
='test -s conftest$ac_exeext'
6857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 eval "$as_ac_var=yes"
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.
$ac_ext >&5
6867 eval "$as_ac_var=no"
6869 rm -f conftest.err conftest.
$ac_objext \
6870 conftest
$ac_exeext conftest.
$ac_ext
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6874 if test `eval echo '${'$as_ac_var'}'` = yes; then
6875 cat >>confdefs.h
<<_ACEOF
6876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6883 if test x
$ac_cv_func_mbstowcs = xyes
; then
6884 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6885 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6886 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 if test "$cross_compiling" = yes; then
6890 gcc_cv_func_mbstowcs_works
=yes
6892 cat >conftest.
$ac_ext <<_ACEOF
6895 cat confdefs.h
>>conftest.
$ac_ext
6896 cat >>conftest.
$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6905 rm -f conftest
$ac_exeext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6907 (eval $ac_link) 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; }; then
6916 gcc_cv_func_mbstowcs_works
=yes
6918 echo "$as_me: program exited with status $ac_status" >&5
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.
$ac_ext >&5
6923 gcc_cv_func_mbstowcs_works
=no
6925 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6928 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6929 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6930 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6932 cat >>confdefs.h
<<\_ACEOF
6933 #define HAVE_WORKING_MBSTOWCS 1
6939 echo "$as_me:$LINENO: checking for ssize_t" >&5
6940 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6941 if test "${ac_cv_type_ssize_t+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6944 cat >conftest.
$ac_ext <<_ACEOF
6947 cat confdefs.h
>>conftest.
$ac_ext
6948 cat >>conftest.
$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 $ac_includes_default
6956 if (sizeof (ssize_t))
6962 rm -f conftest.
$ac_objext
6963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>conftest.er1
6966 grep -v '^ *+' conftest.er1
>conftest.err
6968 cat conftest.err
>&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
6971 { ac_try
='test -z "$ac_c_werror_flag"
6972 || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try
='test -s conftest.$ac_objext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6984 ac_cv_type_ssize_t
=yes
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.
$ac_ext >&5
6989 ac_cv_type_ssize_t
=no
6991 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6993 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6994 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6995 if test $ac_cv_type_ssize_t = yes; then
6999 cat >>confdefs.h
<<_ACEOF
7006 # Try to determine the array type of the second argument of getgroups
7007 # for the target system (int or gid_t).
7008 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7009 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7010 if test "${ac_cv_type_uid_t+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 cat >conftest.
$ac_ext <<_ACEOF
7016 cat confdefs.h
>>conftest.
$ac_ext
7017 cat >>conftest.
$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 #include <sys/types.h>
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "uid_t" >/dev
/null
2>&1; then
7024 ac_cv_type_uid_t
=yes
7031 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7032 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7033 if test $ac_cv_type_uid_t = no
; then
7035 cat >>confdefs.h
<<\_ACEOF
7040 cat >>confdefs.h
<<\_ACEOF
7046 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7047 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7048 if test "${ac_cv_type_getgroups+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 if test "$cross_compiling" = yes; then
7052 ac_cv_type_getgroups
=cross
7054 cat >conftest.
$ac_ext <<_ACEOF
7057 cat confdefs.h
>>conftest.
$ac_ext
7058 cat >>conftest.
$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Thanks to Mike Rendell for this test. */
7061 #include <sys/types.h>
7064 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7071 union { gid_t gval; long lval; } val;
7074 for (i = 0; i < NGID; i++)
7075 gidset[i] = val.gval;
7076 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7078 /* Exit non-zero if getgroups seems to require an array of ints. This
7079 happens when gid_t is short but getgroups modifies an array of ints. */
7080 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7083 rm -f conftest
$ac_exeext
7084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085 (eval $ac_link) 2>&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7094 ac_cv_type_getgroups
=gid_t
7096 echo "$as_me: program exited with status $ac_status" >&5
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7101 ac_cv_type_getgroups
=int
7103 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7105 if test $ac_cv_type_getgroups = cross
; then
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7117 ac_cv_type_getgroups
=gid_t
7119 ac_cv_type_getgroups
=int
7125 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7126 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7128 cat >>confdefs.h
<<_ACEOF
7129 #define GETGROUPS_T $ac_cv_type_getgroups
7133 if test "${target}" = "${build}"; then
7134 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7137 # This condition may need some tweaking. It should include all
7138 # targets where the array type of the second argument of getgroups
7139 # is int and the type of gid_t is not equivalent to int.
7140 *-*-sunos* |
*-*-ultrix*)
7141 TARGET_GETGROUPS_T
=int
7144 TARGET_GETGROUPS_T
=gid_t
7150 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7151 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7152 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 if test "$cross_compiling" = yes; then
7156 gcc_cv_func_printf_ptr
=no
7158 cat >conftest.
$ac_ext <<_ACEOF
7161 cat confdefs.h
>>conftest.
$ac_ext
7162 cat >>conftest.
$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7169 char *p = buf, *q = NULL;
7170 sprintf(buf, "%p", p);
7171 sscanf(buf, "%p", &q);
7175 rm -f conftest
$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 (eval $ac_link) 2>&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 gcc_cv_func_printf_ptr
=yes
7188 echo "$as_me: program exited with status $ac_status" >&5
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.
$ac_ext >&5
7193 gcc_cv_func_printf_ptr
=no
7195 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7197 rm -f core core.
* *.core
7199 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7200 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7201 if test $gcc_cv_func_printf_ptr = yes ; then
7203 cat >>confdefs.h
<<\_ACEOF
7204 #define HAVE_PRINTF_PTR 1
7209 if test $ac_cv_header_sys_mman_h != yes \
7210 ||
test $ac_cv_func_mmap != yes; then
7211 gcc_cv_func_mmap_file
=no
7212 gcc_cv_func_mmap_dev_zero
=no
7213 gcc_cv_func_mmap_anon
=no
7215 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7216 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7217 if test "${gcc_cv_func_mmap_file+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 # Add a system to this blacklist if
7221 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7222 # memory area containing the same data that you'd get if you applied
7223 # read() to the same fd. The only system known to have a problem here
7224 # is VMS, where text files have record structure.
7227 gcc_cv_func_mmap_file
=no
;;
7229 gcc_cv_func_mmap_file
=yes;;
7232 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7233 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7234 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7235 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7236 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 # Add a system to this blacklist if it has mmap() but /dev/zero
7240 # does not exist, or if mmapping /dev/zero does not give anonymous
7241 # zeroed pages with both the following properties:
7242 # 1. If you map N consecutive pages in with one call, and then
7243 # unmap any subset of those pages, the pages that were not
7244 # explicitly unmapped remain accessible.
7245 # 2. If you map two adjacent blocks of memory and then unmap them
7246 # both at once, they must both go away.
7247 # Systems known to be in this category are Windows (all variants),
7250 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7251 gcc_cv_func_mmap_dev_zero
=no
;;
7253 gcc_cv_func_mmap_dev_zero
=yes;;
7256 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7257 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7259 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7260 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7261 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7262 if test "${gcc_cv_decl_map_anon+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7272 #include <sys/mman.h>
7275 #ifndef MAP_ANONYMOUS
7276 #define MAP_ANONYMOUS MAP_ANON
7282 int n = MAP_ANONYMOUS;
7287 rm -f conftest.
$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7291 grep -v '^ *+' conftest.er1
>conftest.err
7293 cat conftest.err
>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try
='test -z "$ac_c_werror_flag"
7297 || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try
='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 gcc_cv_decl_map_anon
=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7314 gcc_cv_decl_map_anon
=no
7316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7318 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7319 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7321 if test $gcc_cv_decl_map_anon = no
; then
7322 gcc_cv_func_mmap_anon
=no
7324 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7325 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7326 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7330 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7331 # doesn't give anonymous zeroed pages with the same properties listed
7332 # above for use of /dev/zero.
7333 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7335 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7336 gcc_cv_func_mmap_anon
=no
;;
7338 gcc_cv_func_mmap_anon
=yes;;
7341 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7342 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7346 if test $gcc_cv_func_mmap_file = yes; then
7348 cat >>confdefs.h
<<\_ACEOF
7349 #define HAVE_MMAP_FILE 1
7353 if test $gcc_cv_func_mmap_dev_zero = yes; then
7355 cat >>confdefs.h
<<\_ACEOF
7356 #define HAVE_MMAP_DEV_ZERO 1
7360 if test $gcc_cv_func_mmap_anon = yes; then
7362 cat >>confdefs.h
<<\_ACEOF
7363 #define HAVE_MMAP_ANON 1
7371 # Under VMS, vfork works very differently than on Unix. The standard test
7372 # won't work, and it isn't easily adaptable. It makes more sense to
7374 ac_cv_func_vfork_works
=yes
7377 echo "$as_me:$LINENO: checking for pid_t" >&5
7378 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7379 if test "${ac_cv_type_pid_t+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 cat >conftest.
$ac_ext <<_ACEOF
7385 cat confdefs.h
>>conftest.
$ac_ext
7386 cat >>conftest.
$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7400 rm -f conftest.
$ac_objext
7401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7402 (eval $ac_compile) 2>conftest.er1
7404 grep -v '^ *+' conftest.er1
>conftest.err
7406 cat conftest.err
>&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try
='test -z "$ac_c_werror_flag"
7410 || test ! -s conftest.err'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; } &&
7416 { ac_try
='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 ac_cv_type_pid_t
=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.
$ac_ext >&5
7429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7432 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7433 if test $ac_cv_type_pid_t = yes; then
7437 cat >>confdefs.h
<<_ACEOF
7445 for ac_header
in unistd.h vfork.h
7447 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7448 echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.
$ac_ext <<_ACEOF
7456 cat confdefs.h
>>conftest.
$ac_ext
7457 cat >>conftest.
$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7459 #include <$ac_header>
7461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7462 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1
>conftest.err
7466 cat conftest.err
>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } >/dev
/null
; then
7469 if test -s conftest.err
; then
7470 ac_cpp_err
=$ac_c_preproc_warn_flag
7471 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7478 if test -z "$ac_cpp_err"; then
7479 eval "$as_ac_Header=yes"
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.
$ac_ext >&5
7484 eval "$as_ac_Header=no"
7486 rm -f conftest.err conftest.
$ac_ext
7488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491 cat >>confdefs.h
<<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500 for ac_func
in fork vfork
7502 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7503 echo "$as_me:$LINENO: checking for $ac_func" >&5
7504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7505 if eval "test \"\${$as_ac_var+set}\" = set"; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.
$ac_ext <<_ACEOF
7511 cat confdefs.h
>>conftest.
$ac_ext
7512 cat >>conftest.
$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7516 #define $ac_func innocuous_$ac_func
7518 /* System header to define __stub macros and hopefully few prototypes,
7519 which can conflict with char $ac_func (); below.
7520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7521 <limits.h> exists even on freestanding compilers. */
7524 # include <limits.h>
7526 # include <assert.h>
7531 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7545 char (*f) () = $ac_func;
7554 return f != $ac_func;
7559 rm -f conftest.
$ac_objext conftest
$ac_exeext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561 (eval $ac_link) 2>conftest.er1
7563 grep -v '^ *+' conftest.er1
>conftest.err
7565 cat conftest.err
>&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try
='test -z "$ac_c_werror_flag"
7569 || test ! -s conftest.err'
7570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; } &&
7575 { ac_try
='test -s conftest$ac_exeext'
7576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 eval "$as_ac_var=yes"
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.
$ac_ext >&5
7586 eval "$as_ac_var=no"
7588 rm -f conftest.err conftest.
$ac_objext \
7589 conftest
$ac_exeext conftest.
$ac_ext
7591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7593 if test `eval echo '${'$as_ac_var'}'` = yes; then
7594 cat >>confdefs.h
<<_ACEOF
7595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7601 if test "x$ac_cv_func_fork" = xyes
; then
7602 echo "$as_me:$LINENO: checking for working fork" >&5
7603 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7604 if test "${ac_cv_func_fork_works+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 if test "$cross_compiling" = yes; then
7608 ac_cv_func_fork_works
=cross
7610 cat >conftest.
$ac_ext <<_ACEOF
7611 /* By Ruediger Kuhlmann. */
7612 #include <sys/types.h>
7614 # include <unistd.h>
7616 /* Some systems only have a dummy stub for fork() */
7624 rm -f conftest
$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626 (eval $ac_link) 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; }; then
7635 ac_cv_func_fork_works
=yes
7637 echo "$as_me: program exited with status $ac_status" >&5
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.
$ac_ext >&5
7642 ac_cv_func_fork_works
=no
7644 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7647 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7648 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7651 ac_cv_func_fork_works
=$ac_cv_func_fork
7653 if test "x$ac_cv_func_fork_works" = xcross
; then
7655 *-*-amigaos* |
*-*-msdosdjgpp*)
7656 # Override, as these systems have only a dummy fork() stub
7657 ac_cv_func_fork_works
=no
7660 ac_cv_func_fork_works
=yes
7663 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7664 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7666 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7667 if test "x$ac_cv_func_vfork" = xyes
; then
7668 echo "$as_me:$LINENO: checking for working vfork" >&5
7669 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7670 if test "${ac_cv_func_vfork_works+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7673 if test "$cross_compiling" = yes; then
7674 ac_cv_func_vfork_works
=cross
7676 cat >conftest.
$ac_ext <<_ACEOF
7679 cat confdefs.h
>>conftest.
$ac_ext
7680 cat >>conftest.
$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 /* Thanks to Paul Eggert for this test. */
7685 #include <sys/types.h>
7686 #include <sys/stat.h>
7687 #include <sys/wait.h>
7689 # include <unistd.h>
7694 /* On some sparc systems, changes by the child to local and incoming
7695 argument registers are propagated back to the parent. The compiler
7696 is told about this with #include <vfork.h>, but some compilers
7697 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7698 static variable whose address is put into a register that is
7699 clobbered by the vfork. */
7702 sparc_address_test (int arg)
7704 sparc_address_test (arg) int arg;
7725 pid_t parent = getpid ();
7728 sparc_address_test (0);
7733 /* Here is another test for sparc vfork register problems. This
7734 test uses lots of local variables, at least as many local
7735 variables as main has allocated so far including compiler
7736 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7737 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7738 reuse the register of parent for one of the local variables,
7739 since it will think that parent can't possibly be used any more
7740 in this routine. Assigning to the local variable will thus
7741 munge parent in the parent process. */
7743 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7744 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7745 /* Convince the compiler that p..p7 are live; otherwise, it might
7746 use the same hardware register for all 8 local variables. */
7747 if (p != p1 || p != p2 || p != p3 || p != p4
7748 || p != p5 || p != p6 || p != p7)
7751 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7752 from child file descriptors. If the child closes a descriptor
7753 before it execs or exits, this munges the parent's descriptor
7754 as well. Test for this by closing stdout in the child. */
7755 _exit(close(fileno(stdout)) != 0);
7760 while (wait(&status) != child)
7763 /* Was there some problem with vforking? */
7766 /* Did the child fail? (This shouldn't happen.) */
7769 /* Did the vfork/compiler bug occur? */
7770 || parent != getpid()
7772 /* Did the file descriptor bug occur? */
7773 || fstat(fileno(stdout), &st) != 0
7778 rm -f conftest
$ac_exeext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7780 (eval $ac_link) 2>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_func_vfork_works
=yes
7791 echo "$as_me: program exited with status $ac_status" >&5
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.
$ac_ext >&5
7796 ac_cv_func_vfork_works
=no
7798 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7801 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7802 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7805 if test "x$ac_cv_func_fork_works" = xcross
; then
7806 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7807 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7808 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7811 if test "x$ac_cv_func_vfork_works" = xyes
; then
7813 cat >>confdefs.h
<<\_ACEOF
7814 #define HAVE_WORKING_VFORK 1
7819 cat >>confdefs.h
<<\_ACEOF
7824 if test "x$ac_cv_func_fork_works" = xyes
; then
7826 cat >>confdefs.h
<<\_ACEOF
7827 #define HAVE_WORKING_FORK 1
7835 am_cv_lib_iconv_ldpath
=
7837 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7838 if test "${with_libiconv_prefix+set}" = set; then
7839 withval
="$with_libiconv_prefix"
7841 for dir
in `echo "$withval" | tr : ' '`; do
7842 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7843 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7849 for ac_header
in iconv.h
7851 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7852 echo "$as_me:$LINENO: checking for $ac_header" >&5
7853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 cat >conftest.
$ac_ext <<_ACEOF
7860 cat confdefs.h
>>conftest.
$ac_ext
7861 cat >>conftest.
$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 #include <$ac_header>
7865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7866 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } >/dev
/null
; then
7873 if test -s conftest.err
; then
7874 ac_cpp_err
=$ac_c_preproc_warn_flag
7875 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7882 if test -z "$ac_cpp_err"; then
7883 eval "$as_ac_Header=yes"
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7888 eval "$as_ac_Header=no"
7890 rm -f conftest.err conftest.
$ac_ext
7892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7895 cat >>confdefs.h
<<_ACEOF
7896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7903 echo "$as_me:$LINENO: checking for iconv" >&5
7904 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7905 if test "${am_cv_func_iconv+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 am_cv_func_iconv
="no, consider installing GNU libiconv"
7911 cat >conftest.
$ac_ext <<_ACEOF
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7922 iconv_t cd = iconv_open("","");
7923 iconv(cd,NULL,NULL,NULL,NULL);
7929 rm -f conftest.
$ac_objext conftest
$ac_exeext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7931 (eval $ac_link) 2>conftest.er1
7933 grep -v '^ *+' conftest.er1
>conftest.err
7935 cat conftest.err
>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try
='test -z "$ac_c_werror_flag"
7939 || test ! -s conftest.err'
7940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); }; } &&
7945 { ac_try
='test -s conftest$ac_exeext'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 am_cv_func_iconv
=yes
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.
$ac_ext >&5
7957 rm -f conftest.err conftest.
$ac_objext \
7958 conftest
$ac_exeext conftest.
$ac_ext
7959 if test "$am_cv_func_iconv" != yes; then
7960 am_save_LIBS
="$LIBS"
7961 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
7962 cat >conftest.
$ac_ext <<_ACEOF
7965 cat confdefs.h
>>conftest.
$ac_ext
7966 cat >>conftest.
$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7973 iconv_t cd = iconv_open("","");
7974 iconv(cd,NULL,NULL,NULL,NULL);
7980 rm -f conftest.
$ac_objext conftest
$ac_exeext
7981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7982 (eval $ac_link) 2>conftest.er1
7984 grep -v '^ *+' conftest.er1
>conftest.err
7986 cat conftest.err
>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } &&
7989 { ac_try
='test -z "$ac_c_werror_flag"
7990 || test ! -s conftest.err'
7991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); }; } &&
7996 { ac_try
='test -s conftest$ac_exeext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8003 am_cv_func_iconv
=yes
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.
$ac_ext >&5
8009 rm -f conftest.err conftest.
$ac_objext \
8010 conftest
$ac_exeext conftest.
$ac_ext
8011 LIBS
="$am_save_LIBS"
8015 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8016 echo "${ECHO_T}$am_cv_func_iconv" >&6
8017 if test "$am_cv_func_iconv" = yes; then
8019 cat >>confdefs.h
<<\_ACEOF
8020 #define HAVE_ICONV 1
8023 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8024 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8025 if test "${am_cv_proto_iconv+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 cat >conftest.
$ac_ext <<_ACEOF
8032 cat confdefs.h
>>conftest.
$ac_ext
8033 cat >>conftest.
$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8042 #if defined(__STDC__) || defined(__cplusplus)
8043 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8056 rm -f conftest.
$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1
>conftest.err
8062 cat conftest.err
>&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try
='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try
='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 am_cv_proto_iconv_arg1
=""
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.
$ac_ext >&5
8083 am_cv_proto_iconv_arg1
="const"
8085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8086 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);"
8089 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8090 echo "$as_me:$LINENO: result: ${ac_t:-
8091 }$am_cv_proto_iconv" >&5
8092 echo "${ECHO_T}${ac_t:-
8093 }$am_cv_proto_iconv" >&6
8095 cat >>confdefs.h
<<_ACEOF
8096 #define ICONV_CONST $am_cv_proto_iconv_arg1
8101 if test "$am_cv_lib_iconv" = yes; then
8102 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8106 # Until we have in-tree GNU iconv:
8111 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8112 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8113 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8116 cat >conftest.
$ac_ext <<_ACEOF
8119 cat confdefs.h
>>conftest.
$ac_ext
8120 cat >>conftest.
$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8131 rm -f conftest.
$ac_objext conftest
$ac_exeext
8132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8133 (eval $ac_link) 2>conftest.er1
8135 grep -v '^ *+' conftest.er1
>conftest.err
8137 cat conftest.err
>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try
='test -z "$ac_c_werror_flag"
8141 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } &&
8147 { ac_try
='test -s conftest$ac_exeext'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 am_cv_val_LC_MESSAGES
=yes
8155 echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.
$ac_ext >&5
8158 am_cv_val_LC_MESSAGES
=no
8160 rm -f conftest.err conftest.
$ac_objext \
8161 conftest
$ac_exeext conftest.
$ac_ext
8163 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8164 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8165 if test $am_cv_val_LC_MESSAGES = yes; then
8167 cat >>confdefs.h
<<\_ACEOF
8168 #define HAVE_LC_MESSAGES 1
8174 # We will need to find libiberty.h and ansidecl.h
8175 saved_CFLAGS
="$CFLAGS"
8176 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8200 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8201 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8202 fprintf_unlocked strstr errno snprintf vasprintf \
8203 malloc realloc calloc free
basename getopt
clock
8205 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8206 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8207 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8208 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.
$ac_ext <<_ACEOF
8214 cat confdefs.h
>>conftest.
$ac_ext
8215 cat >>conftest.
$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 #define $ac_tr_decl 1
8220 #include "ansidecl.h"
8227 char *(*pfn) = (char *(*)) $ac_func ;
8233 rm -f conftest.
$ac_objext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>conftest.er1
8237 grep -v '^ *+' conftest.er1
>conftest.err
8239 cat conftest.err
>&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try
='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try
='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 eval "gcc_cv_have_decl_$ac_func=yes"
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.
$ac_ext >&5
8260 eval "gcc_cv_have_decl_$ac_func=no"
8262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8266 echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8268 #define $ac_tr_decl 1
8272 echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8274 #define $ac_tr_decl 0
8285 for ac_func
in getrlimit setrlimit getrusage
8287 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8288 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8289 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8290 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 cat >conftest.
$ac_ext <<_ACEOF
8296 cat confdefs.h
>>conftest.
$ac_ext
8297 cat >>conftest.
$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8300 #define $ac_tr_decl 1
8302 #include "ansidecl.h"
8304 #ifdef HAVE_SYS_RESOURCE_H
8305 #include <sys/resource.h>
8313 char *(*pfn) = (char *(*)) $ac_func ;
8319 rm -f conftest.
$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>conftest.er1
8323 grep -v '^ *+' conftest.er1
>conftest.err
8325 cat conftest.err
>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try
='test -z "$ac_c_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try
='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 eval "gcc_cv_have_decl_$ac_func=yes"
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.
$ac_ext >&5
8346 eval "gcc_cv_have_decl_$ac_func=no"
8348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8351 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8352 echo "$as_me:$LINENO: result: yes" >&5
8353 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8354 #define $ac_tr_decl 1
8358 echo "$as_me:$LINENO: result: no" >&5
8359 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8360 #define $ac_tr_decl 0
8368 cat >conftest.
$ac_ext <<_ACEOF
8371 cat confdefs.h
>>conftest.
$ac_ext
8372 cat >>conftest.
$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8375 #include "ansidecl.h"
8377 #ifdef HAVE_SYS_RESOURCE_H
8378 #include <sys/resource.h>
8389 rm -f conftest.
$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try
='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try
='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.
$ac_ext >&5
8417 cat >>confdefs.h
<<\_ACEOF
8422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 for ac_func
in ldgetname
8427 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8428 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8429 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8430 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 cat >conftest.
$ac_ext <<_ACEOF
8436 cat confdefs.h
>>conftest.
$ac_ext
8437 cat >>conftest.
$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8440 #define $ac_tr_decl 1
8442 #include "ansidecl.h"
8453 char *(*pfn) = (char *(*)) $ac_func ;
8459 rm -f conftest.
$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461 (eval $ac_compile) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1
>conftest.err
8465 cat conftest.err
>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try
='test -z "$ac_c_werror_flag"
8469 || test ! -s conftest.err'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; } &&
8475 { ac_try
='test -s conftest.$ac_objext'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8481 eval "gcc_cv_have_decl_$ac_func=yes"
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.
$ac_ext >&5
8486 eval "gcc_cv_have_decl_$ac_func=no"
8488 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8491 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8492 echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8494 #define $ac_tr_decl 1
8498 echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8500 #define $ac_tr_decl 0
8509 for ac_func
in times
8511 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8512 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8513 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8514 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8515 echo $ECHO_N "(cached) $ECHO_C" >&6
8517 cat >conftest.
$ac_ext <<_ACEOF
8520 cat confdefs.h
>>conftest.
$ac_ext
8521 cat >>conftest.
$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8524 #define $ac_tr_decl 1
8526 #include "ansidecl.h"
8528 #ifdef HAVE_SYS_TIMES_H
8529 #include <sys/times.h>
8537 char *(*pfn) = (char *(*)) $ac_func ;
8543 rm -f conftest.
$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545 (eval $ac_compile) 2>conftest.er1
8547 grep -v '^ *+' conftest.er1
>conftest.err
8549 cat conftest.err
>&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try
='test -z "$ac_c_werror_flag"
8553 || test ! -s conftest.err'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; } &&
8559 { ac_try
='test -s conftest.$ac_objext'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; }; then
8565 eval "gcc_cv_have_decl_$ac_func=yes"
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.
$ac_ext >&5
8570 eval "gcc_cv_have_decl_$ac_func=no"
8572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8575 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8578 #define $ac_tr_decl 1
8582 echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8584 #define $ac_tr_decl 0
8592 # More time-related stuff.
8593 echo "$as_me:$LINENO: checking for struct tms" >&5
8594 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8595 if test "${ac_cv_struct_tms+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 cat >conftest.
$ac_ext <<_ACEOF
8602 cat confdefs.h
>>conftest.
$ac_ext
8603 cat >>conftest.
$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8606 #include "ansidecl.h"
8608 #ifdef HAVE_SYS_TIMES_H
8609 #include <sys/times.h>
8620 rm -f conftest.
$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8624 grep -v '^ *+' conftest.er1
>conftest.err
8626 cat conftest.err
>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try
='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try
='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_struct_tms
=yes
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.
$ac_ext >&5
8649 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8652 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8653 if test $ac_cv_struct_tms = yes; then
8655 cat >>confdefs.h
<<\_ACEOF
8656 #define HAVE_STRUCT_TMS 1
8661 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8662 # revisit after autoconf 2.50.
8663 echo "$as_me:$LINENO: checking for clock_t" >&5
8664 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8665 if test "${gcc_cv_type_clock_t+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8676 #include "ansidecl.h"
8687 rm -f conftest.
$ac_objext
8688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8689 (eval $ac_compile) 2>conftest.er1
8691 grep -v '^ *+' conftest.er1
>conftest.err
8693 cat conftest.err
>&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
8696 { ac_try
='test -z "$ac_c_werror_flag"
8697 || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try
='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 gcc_cv_type_clock_t
=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 gcc_cv_type_clock_t
=no
8716 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8718 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8719 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8720 if test $gcc_cv_type_clock_t = yes; then
8722 cat >>confdefs.h
<<\_ACEOF
8723 #define HAVE_CLOCK_T 1
8728 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8729 CFLAGS
="$saved_CFLAGS"
8731 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8732 if test "${enable_initfini_array+set}" = set; then
8733 enableval
="$enable_initfini_array"
8737 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8738 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8739 if test "${gcc_cv_initfini_array+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 if test "$cross_compiling" = yes; then
8743 gcc_cv_initfini_array
=no
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8753 int main (void) { return x; }
8754 int foo (void) { x = 0; }
8755 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
8757 rm -f conftest
$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 gcc_cv_initfini_array
=yes
8770 echo "$as_me: program exited with status $ac_status" >&5
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8775 gcc_cv_initfini_array
=no
8777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8780 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
8781 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
8782 enable_initfini_array
=$gcc_cv_initfini_array
8785 if test $enable_initfini_array = yes; then
8787 cat >>confdefs.h
<<\_ACEOF
8788 #define HAVE_INITFINI_ARRAY 1
8793 # mkdir takes a single argument on some systems.
8794 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
8795 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
8796 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.
$ac_ext <<_ACEOF
8802 cat confdefs.h
>>conftest.
$ac_ext
8803 cat >>conftest.
$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 #include <sys/types.h>
8807 #ifdef HAVE_SYS_STAT_H
8808 # include <sys/stat.h>
8810 #ifdef HAVE_UNISTD_H
8811 # include <unistd.h>
8813 #ifdef HAVE_DIRECT_H
8814 # include <direct.h>
8824 rm -f conftest.
$ac_objext
8825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8826 (eval $ac_compile) 2>conftest.er1
8828 grep -v '^ *+' conftest.er1
>conftest.err
8830 cat conftest.err
>&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } &&
8833 { ac_try
='test -z "$ac_c_werror_flag"
8834 || test ! -s conftest.err'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try
='test -s conftest.$ac_objext'
8841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 gcc_cv_mkdir_takes_one_arg
=no
8848 echo "$as_me: failed program was:" >&5
8849 sed 's/^/| /' conftest.
$ac_ext >&5
8851 gcc_cv_mkdir_takes_one_arg
=yes
8853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8855 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
8856 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
8857 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
8859 cat >>confdefs.h
<<\_ACEOF
8860 #define MKDIR_TAKES_ONE_ARG 1
8872 # With Setjmp/Longjmp based exception handling.
8873 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
8874 if test "${enable_sjlj_exceptions+set}" = set; then
8875 enableval
="$enable_sjlj_exceptions"
8876 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
8878 cat >>confdefs.h
<<_ACEOF
8879 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
8884 if test x
$host = x
$target; then
8885 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
8886 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
8887 if test "${ac_cv_lib_unwind_main+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 ac_check_lib_save_LIBS
=$LIBS
8891 LIBS
="-lunwind $LIBS"
8892 cat >conftest.
$ac_ext <<_ACEOF
8895 cat confdefs.h
>>conftest.
$ac_ext
8896 cat >>conftest.
$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8908 rm -f conftest.
$ac_objext conftest
$ac_exeext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910 (eval $ac_link) 2>conftest.er1
8912 grep -v '^ *+' conftest.er1
>conftest.err
8914 cat conftest.err
>&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try
='test -z "$ac_c_werror_flag"
8918 || test ! -s conftest.err'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try
='test -s conftest$ac_exeext'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
8930 ac_cv_lib_unwind_main
=yes
8932 echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.
$ac_ext >&5
8935 ac_cv_lib_unwind_main
=no
8937 rm -f conftest.err conftest.
$ac_objext \
8938 conftest
$ac_exeext conftest.
$ac_ext
8939 LIBS
=$ac_check_lib_save_LIBS
8941 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
8942 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
8943 if test $ac_cv_lib_unwind_main = yes; then
8944 use_libunwind_default
=yes
8946 use_libunwind_default
=no
8950 use_libunwind_default
=no
8952 # Use libunwind based exception handling.
8953 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
8954 if test "${enable_libunwind_exceptions+set}" = set; then
8955 enableval
="$enable_libunwind_exceptions"
8956 use_libunwind_exceptions
=$enableval
8958 use_libunwind_exceptions
=$use_libunwind_default
8960 if test x
"$use_libunwind_exceptions" = xyes
; then
8962 cat >>confdefs.h
<<\_ACEOF
8963 #define USE_LIBUNWIND_EXCEPTIONS 1
8968 # --------------------------------------------------------
8969 # Build, host, and target specific configuration fragments
8970 # --------------------------------------------------------
8972 # Collect build-machine-specific information.
8973 .
${srcdir}/config.build
8975 # Collect host-machine-specific information.
8976 .
${srcdir}/config.
host
8980 # Collect target-machine-specific information.
8981 .
${srcdir}/config.gcc
8983 extra_objs
="${host_extra_objs} ${extra_objs}"
8984 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
8986 # Default the target-machine variables that were not explicitly set.
8987 if test x
"$tm_file" = x
8988 then tm_file
=$cpu_type/$cpu_type.h
; fi
8990 if test x
"$extra_headers" = x
8991 then extra_headers
=; fi
8993 if test x
$md_file = x
8994 then md_file
=$cpu_type/$cpu_type.md
; fi
8996 if test x
$out_file = x
8997 then out_file
=$cpu_type/$cpu_type.c
; fi
8999 if test x
"$tmake_file" = x
9000 then tmake_file
=$cpu_type/t-
$cpu_type
9003 if test x
"$dwarf2" = xyes
9004 then tm_file
="$tm_file tm-dwarf2.h"
9007 # Say what files are being used for the output code and MD file.
9008 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9009 echo "Using \`$srcdir/config/$md_file' as machine description file."
9011 # If any of the xm_file variables contain nonexistent files, warn
9012 # about them and drop them.
9015 for x
in $build_xm_file; do
9016 if test -f $srcdir/config
/$x
9018 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9019 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9025 for x
in $host_xm_file; do
9026 if test -f $srcdir/config
/$x
9028 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9029 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9035 for x
in $xm_file; do
9036 if test -f $srcdir/config
/$x
9038 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9039 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9045 for f
in $tm_file; do
9048 if test $count = ax
; then
9049 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9051 echo "Using the following target machine macro files:"
9052 for f
in $tm_file; do
9053 echo " $srcdir/config/$f"
9057 if test x
$need_64bit_hwint = xyes
; then
9059 cat >>confdefs.h
<<\_ACEOF
9060 #define NEED_64BIT_HOST_WIDE_INT 1
9066 for f
in $host_xm_file; do
9069 if test $count = a
; then
9071 elif test $count = ax
; then
9072 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9074 echo "Using the following host machine macro files:"
9075 for f
in $host_xm_file; do
9076 echo " $srcdir/config/$f"
9079 echo "Using ${out_host_hook_obj} for host machine hooks."
9081 if test "$host_xm_file" != "$build_xm_file"; then
9083 for f
in $build_xm_file; do
9086 if test $count = a
; then
9088 elif test $count = ax
; then
9089 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9091 echo "Using the following build machine macro files:"
9092 for f
in $build_xm_file; do
9093 echo " $srcdir/config/$f"
9102 # Check if a valid thread package
9103 case ${enable_threads} in
9106 target_thread_file
='single'
9110 target_thread_file
='single'
9112 aix | dce | gnat | irix | posix | rtems | \
9113 single | solaris | vxworks | win32
)
9114 target_thread_file
=${enable_threads}
9117 echo "${enable_threads} is an unknown thread package" 1>&2
9122 if test x
${thread_file} = x
; then
9123 # No thread file set by target-specific clauses in config.gcc,
9124 # so use file chosen by default logic above
9125 thread_file
=${target_thread_file}
9128 # Make gthr-default.h if we have a thread file.
9130 if test $thread_file != single
; then
9131 rm -f gthr-default.h
9132 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9133 gthread_flags
=-DHAVE_GTHR_DEFAULT
9141 if test x
$enable___cxa_atexit = xyes || \
9142 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9143 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9144 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9145 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 cat >conftest.
$ac_ext <<_ACEOF
9151 cat confdefs.h
>>conftest.
$ac_ext
9152 cat >>conftest.
$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9154 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9156 #define __cxa_atexit innocuous___cxa_atexit
9158 /* System header to define __stub macros and hopefully few prototypes,
9159 which can conflict with char __cxa_atexit (); below.
9160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9161 <limits.h> exists even on freestanding compilers. */
9164 # include <limits.h>
9166 # include <assert.h>
9171 /* Override any gcc2 internal prototype to avoid an error. */
9176 /* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9178 char __cxa_atexit ();
9179 /* The GNU C library defines this for functions which it implements
9180 to always fail with ENOSYS. Some functions are actually named
9181 something starting with __ and the normal name is an alias. */
9182 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9185 char (*f) () = __cxa_atexit;
9194 return f != __cxa_atexit;
9199 rm -f conftest.
$ac_objext conftest
$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>conftest.er1
9203 grep -v '^ *+' conftest.er1
>conftest.err
9205 cat conftest.err
>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } &&
9208 { ac_try
='test -z "$ac_c_werror_flag"
9209 || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try
='test -s conftest$ac_exeext'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_func___cxa_atexit
=yes
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.
$ac_ext >&5
9226 ac_cv_func___cxa_atexit
=no
9228 rm -f conftest.err conftest.
$ac_objext \
9229 conftest
$ac_exeext conftest.
$ac_ext
9231 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9232 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9233 if test $ac_cv_func___cxa_atexit = yes; then
9235 cat >>confdefs.h
<<\_ACEOF
9236 #define DEFAULT_USE_CXA_ATEXIT 1
9240 echo "__cxa_atexit can't be enabled on this target"
9245 # Look for a file containing extra machine modes.
9246 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9247 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9250 cat >>confdefs.h
<<_ACEOF
9251 #define EXTRA_MODES_FILE "config/$extra_modes"
9256 # auto-host.h is the file containing items generated by autoconf and is
9257 # the first file included by config.h.
9258 # If host=build, it is correct to have bconfig include auto-host.h
9259 # as well. If host!=build, we are in error and need to do more
9260 # work to find out the build config parameters.
9261 if test x
$host = x
$build
9263 build_auto
=auto-host.h
9266 # We create a subdir, then run autoconf in the subdir.
9267 # To prevent recursion we set host and build for the new
9268 # invocation of configure to the build for this invocation
9275 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9276 *) realsrcdir
=..
/${srcdir};;
9278 saved_CFLAGS
="${CFLAGS}"
9279 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9280 ${realsrcdir}/configure \
9281 --enable-languages=${enable_languages-all} \
9282 --target=$target_alias --host=$build_alias --build=$build_alias
9283 CFLAGS
="${saved_CFLAGS}"
9285 # We just finished tests for the build machine, so rename
9286 # the file auto-build.h in the gcc directory.
9287 mv auto-host.h ..
/auto-build.h
9290 build_auto
=auto-build.h
9291 FORBUILD
=..
/${build_subdir}
9295 tm_file
="${tm_file} defaults.h"
9296 tm_p_file
="${tm_p_file} tm-preds.h"
9297 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9298 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9299 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9300 # put this back in temporarily.
9301 xm_file
="ansidecl.h ${xm_file}"
9307 # Get the version trigger filename from the toplevel
9308 if test "${with_gcc_version_trigger+set}" = set; then
9309 gcc_version_trigger
=$with_gcc_version_trigger
9311 gcc_version_trigger
=${srcdir}/version.c
9313 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9314 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9316 # Compile in configure arguments.
9317 if test -f configargs.h
; then
9318 # Being re-configured.
9319 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9320 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9322 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9325 # Double all backslashes and backslash all quotes to turn
9326 # gcc_config_arguments into a C string.
9327 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9328 $gcc_config_arguments
9330 gcc_config_arguments_str
=`cat conftest.out`
9333 cat > configargs.h
<<EOF
9334 /* Generated automatically. */
9335 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9336 static const char thread_model[] = "$thread_file";
9338 static const struct {
9339 const char *name, *value;
9340 } configure_default_options[] = $configure_default_options;
9343 # Internationalization
9345 VERSION
="$gcc_version"
9349 # If we haven't got the data from the intl directory,
9350 # assume NLS is disabled.
9358 if test -f ..
/intl
/config.intl
; then
9359 . ..
/intl
/config.intl
9361 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9362 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9363 if test x
"$USE_NLS" != xyes
; then
9364 echo "$as_me:$LINENO: result: no" >&5
9365 echo "${ECHO_T}no" >&6
9367 echo "$as_me:$LINENO: result: yes" >&5
9368 echo "${ECHO_T}yes" >&6
9370 cat >>confdefs.h
<<\_ACEOF
9371 #define ENABLE_NLS 1
9375 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9376 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9377 # Look for .po and .gmo files in the source directory.
9380 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9381 # If there aren't any .gmo files the shell will give us the
9382 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9384 case "$cat" in *\
**)
9387 # The quadruple backslash is collapsed to a double backslash
9388 # by the backticks, then collapsed again by the double quotes,
9389 # leaving us with one backslash in the sed expression (right
9390 # before the dot that mustn't act as a wildcard).
9391 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9392 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9393 # The user is allowed to set LINGUAS to a list of languages to
9394 # install catalogs for. If it's empty that means "all of them."
9395 if test "x$LINGUAS" = x
; then
9396 CATALOGS
="$CATALOGS $cat"
9397 XLINGUAS
="$XLINGUAS $lang"
9399 case "$LINGUAS" in *$lang*)
9400 CATALOGS
="$CATALOGS $cat"
9401 XLINGUAS
="$XLINGUAS $lang"
9407 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9408 echo "${ECHO_T}$LINGUAS" >&6
9411 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9412 # -liconv on the link line twice.
9413 case "$LIBINTL" in *$LIBICONV*)
9417 # Windows32 Registry support for specifying GCC installation paths.
9418 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9419 if test "${enable_win32_registry+set}" = set; then
9420 enableval
="$enable_win32_registry"
9424 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9425 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9426 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9427 if test "x$enable_win32_registry" != xno
; then
9429 cat >>confdefs.h
<<\_ACEOF
9430 #define ENABLE_WIN32_REGISTRY 1
9433 echo "$as_me:$LINENO: result: yes" >&5
9434 echo "${ECHO_T}yes" >&6
9435 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9436 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9437 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 ac_func_search_save_LIBS
=$LIBS
9441 ac_cv_search_RegOpenKeyExA
=no
9442 cat >conftest.
$ac_ext <<_ACEOF
9445 cat confdefs.h
>>conftest.
$ac_ext
9446 cat >>conftest.
$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char RegOpenKeyExA ();
9464 rm -f conftest.
$ac_objext conftest
$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9468 grep -v '^ *+' conftest.er1
>conftest.err
9470 cat conftest.err
>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try
='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try
='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_search_RegOpenKeyExA
="none required"
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.
$ac_ext >&5
9492 rm -f conftest.err conftest.
$ac_objext \
9493 conftest
$ac_exeext conftest.
$ac_ext
9494 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9495 for ac_lib
in advapi32
; do
9496 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9497 cat >conftest.
$ac_ext <<_ACEOF
9500 cat confdefs.h
>>conftest.
$ac_ext
9501 cat >>conftest.
$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9504 /* Override any gcc2 internal prototype to avoid an error. */
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9510 char RegOpenKeyExA ();
9519 rm -f conftest.
$ac_objext conftest
$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9523 grep -v '^ *+' conftest.er1
>conftest.err
9525 cat conftest.err
>&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try
='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try
='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.
$ac_ext >&5
9548 rm -f conftest.err conftest.
$ac_objext \
9549 conftest
$ac_exeext conftest.
$ac_ext
9552 LIBS
=$ac_func_search_save_LIBS
9554 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9555 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9556 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9557 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9562 echo "$as_me:$LINENO: result: no" >&5
9563 echo "${ECHO_T}no" >&6
9566 # Check if user specified a different registry key.
9567 case "x${enable_win32_registry}" in
9570 gcc_cv_win32_registry_key
="$VERSION"
9573 # no registry lookup.
9574 gcc_cv_win32_registry_key
=''
9577 # user-specified key.
9578 gcc_cv_win32_registry_key
="$enable_win32_registry"
9582 if test "x$enable_win32_registry" != xno
; then
9583 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9584 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9586 cat >>confdefs.h
<<_ACEOF
9587 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9590 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9591 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9596 # Get an absolute path to the GCC top-level source directory
9597 holddir
=`${PWDCMD-pwd}`
9599 topdir
=`${PWDCMD-pwd}`
9602 # Conditionalize the makefile for this host machine.
9604 for f
in ${host_xmake_file}
9606 if test -f ${srcdir}/config
/$f
9608 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9612 # Conditionalize the makefile for this target machine.
9614 for f
in ${tmake_file}
9616 if test -f ${srcdir}/config
/$f
9618 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9621 tmake_file
="${tmake_file_}"
9623 symbolic_link
='ln -s'
9625 # If the host doesn't support symlinks, modify CC in
9626 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9627 # Otherwise, we can use "CC=$(CC)".
9629 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9631 cc_set_by_configure
="\$(CC)"
9632 quoted_cc_set_by_configure
="\$(CC)"
9633 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9634 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9637 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9639 symbolic_link
="cp -p"
9643 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9644 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9645 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9646 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9650 out_object_file
=`basename $out_file .c`.o
9654 for f
in $tm_file; do
9657 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9658 tm_include_list
="${tm_include_list} $f"
9661 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9662 tm_include_list
="${tm_include_list} config/$f"
9669 for f
in $tm_p_file; do
9672 tm_p_file_list
="${tm_p_file_list} $f"
9673 tm_p_include_list
="${tm_p_include_list} $f"
9676 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9677 tm_p_include_list
="${tm_p_include_list} config/$f"
9683 for f
in $xm_file; do
9686 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9687 xm_include_list
="${xm_include_list} $f"
9690 xm_file_list
="${xm_file_list} $f"
9691 xm_include_list
="${xm_include_list} $f"
9694 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9695 xm_include_list
="${xm_include_list} config/$f"
9701 host_xm_include_list
=
9702 for f
in $host_xm_file; do
9705 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9706 host_xm_include_list
="${host_xm_include_list} $f"
9709 host_xm_file_list
="${host_xm_file_list} $f"
9710 host_xm_include_list
="${host_xm_include_list} $f"
9713 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9714 host_xm_include_list
="${host_xm_include_list} config/$f"
9720 for f
in $build_xm_file; do
9723 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9724 build_xm_include_list
="${build_xm_include_list} $f"
9726 auto-build.h | auto-host.h
)
9727 build_xm_file_list
="${build_xm_file_list} $f"
9728 build_xm_include_list
="${build_xm_include_list} $f"
9731 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9732 build_xm_include_list
="${build_xm_include_list} config/$f"
9737 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9738 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9741 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9742 if test x
$host != x
$target
9744 CROSS
="-DCROSS_COMPILE"
9746 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9747 case "$host","$target" in
9748 # Darwin crosses can use the host system's libraries and headers,
9749 # because of the fat library support. Of course, it must be the
9750 # same version of Darwin on both sides. Allow the user to
9751 # just say --target=foo-darwin without a version number to mean
9752 # "the version on this system".
9753 *-*-darwin*,*-*-darwin*)
9754 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
9755 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
9756 if test $hostos = $targetos -o $targetos = darwin
; then
9758 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9763 i?
86-*-*,x86_64-
*-* \
9764 | powerpc
*-*-*,powerpc64
*-*-*)
9765 CROSS
="$CROSS -DNATIVE_CROSS" ;;
9767 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
9768 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
9769 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9772 # If this is a cross-compiler that does not
9773 # have its own set of headers then define
9776 # If this is using newlib, without having the headers available now,
9777 # then define inhibit_libc in LIBGCC2_CFLAGS.
9778 # This prevents libgcc2 from containing any code which requires libc
9781 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
9782 test x
$with_newlib = xyes
; } &&
9783 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
9784 inhibit_libc
=-Dinhibit_libc
9788 # When building gcc with a cross-compiler, we need to adjust things so
9789 # that the generator programs are still built with the native compiler.
9790 # Also, we cannot run fixincludes or fix-header.
9792 # These are the normal (build=host) settings:
9794 BUILD_PREFIX_1
=ignore-
9795 CC_FOR_BUILD
='$(CC)'
9796 BUILD_CFLAGS
='$(ALL_CFLAGS)'
9798 STMP_FIXINC
=stmp-fixinc
9800 # Possibly disable fixproto, on a per-target basis.
9801 case ${use_fixproto} in
9806 STMP_FIXPROTO
=stmp-fixproto
9811 # And these apply if build != host, or we are generating coverage data
9812 if test x
$build != x
$host ||
test "x$coverage_flags" != x
9815 BUILD_PREFIX_1
=build-
9816 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
9818 if test "x$TARGET_SYSTEM_ROOT" = x
; then
9824 # Expand extra_headers to include complete path.
9825 # This substitutes for lots of t-* files.
9827 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
9828 for file in ${extra_headers} ; do
9829 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
9832 # Define collect2 in Makefile.
9833 case $host_can_use_collect2 in
9835 *) collect2
='collect2$(exeext)' ;;
9839 # Add a definition of USE_COLLECT2 if system wants one.
9840 case $use_collect2 in
9841 no
) use_collect2
= ;;
9844 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
9845 xm_defines
="${xm_defines} USE_COLLECT2"
9846 case $host_can_use_collect2 in
9848 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
9849 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
9850 { (exit 1); exit 1; }; }
9856 # ---------------------------
9857 # Assembler & linker features
9858 # ---------------------------
9860 # Identify the assembler which will work hand-in-glove with the newly
9861 # built GCC, so that we can examine its features. This is the assembler
9862 # which will be driven by the driver program.
9864 # If build != host, and we aren't building gas in-tree, we identify a
9865 # build->target assembler and hope that it will have the same features
9866 # as the host->target assembler we'll be using.
9867 echo "$as_me:$LINENO: checking what assembler to use" >&5
9868 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
9871 gcc_cv_gas_major_version
=
9872 gcc_cv_gas_minor_version
=
9873 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
9874 if test -x "$DEFAULT_ASSEMBLER"; then
9875 gcc_cv_as
="$DEFAULT_ASSEMBLER"
9876 elif test -x as
$host_exeext; then
9877 # Build using assembler in the current directory.
9878 gcc_cv_as
=.
/as
$host_exeext
9879 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
9880 && test -f ..
/gas
/Makefile \
9881 && test x
$build = x
$host; then
9882 # Single tree build which includes gas. We want to prefer it
9883 # over whatever linker top-level may have detected, since
9884 # we'll use what we're building after installation anyway.
9886 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
9887 for f
in $gcc_cv_as_bfd_srcdir/configure \
9888 $gcc_cv_as_gas_srcdir/configure \
9889 $gcc_cv_as_gas_srcdir/configure.
in \
9890 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
9891 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
9892 if test x
$gcc_cv_gas_version != x
; then
9896 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
9897 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
9898 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
9899 case $gcc_cv_gas_patch_version in
9900 "") gcc_cv_gas_patch_version
="0" ;;
9902 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
9903 + $gcc_cv_gas_minor_version \) \* 1000 \
9904 + $gcc_cv_gas_patch_version`
9906 rm -f as
$host_exeext
9907 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
9908 in_tree_gas_is_elf
=no
9909 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
9910 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
9911 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
9913 in_tree_gas_is_elf
=yes
9915 elif test -x "$AS_FOR_TARGET"; then
9916 gcc_cv_as
="$AS_FOR_TARGET"
9917 elif test -x "$AS" && test x
$host = x
$target; then
9921 if test "x$gcc_cv_as" = x
; then
9922 # Search the same directories that the installed compiler will
9923 # search. Else we may find the wrong assembler and lose. If we
9924 # do not find a suitable assembler binary, then try the user's
9927 # Also note we have to check MD_EXEC_PREFIX before checking the
9928 # user's path. Unfortunately, there is no good way to get at the
9929 # value of MD_EXEC_PREFIX here. So we do a brute force search
9930 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
9931 # to be fixed as part of the make/configure rewrite too.
9933 if test "x$exec_prefix" = xNONE
; then
9934 if test "x$prefix" = xNONE
; then
9935 test_prefix
=/usr
/local
9940 test_prefix
=$exec_prefix
9943 # If the loop below does not find an assembler, then use whatever
9944 # one we can find in the users's path.
9946 if test "x$program_prefix" != xNONE
; then
9947 gcc_cv_as
=${program_prefix}as
$host_exeext
9949 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
9952 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
9953 $test_prefix/libexec/gcc/$target_noncanonical \
9954 /usr/lib/gcc/$target_noncanonical/$gcc_version \
9955 /usr/lib/gcc/$target_noncanonical \
9956 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
9957 $test_prefix/$target_noncanonical/bin"
9959 if test x
$host = x
$target; then
9960 test_dirs
="$test_dirs \
9965 /bsd43/usr/lib/cmplrs/cc \
9966 /usr/cross64/usr/bin \
9967 /usr/lib/cmplrs/cc \
9968 /sysv/usr/lib/cmplrs/cc \
9969 /svr4/usr/lib/cmplrs/cc \
9973 for dir
in $test_dirs; do
9974 if test -x $dir/as
$host_exeext; then
9975 gcc_cv_as
=$dir/as
$host_exeext
9980 case $in_tree_gas in
9982 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
9983 echo "${ECHO_T}\"newly built gas\"" >&6
9986 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
9987 echo "${ECHO_T}$gcc_cv_as" >&6
9991 # Identify the linker which will work hand-in-glove with the newly
9992 # built GCC, so that we can examine its features. This is the linker
9993 # which will be driven by the driver program.
9995 # If build != host, and we aren't building gas in-tree, we identify a
9996 # build->target linker and hope that it will have the same features
9997 # as the host->target linker we'll be using.
9998 echo "$as_me:$LINENO: checking what linker to use" >&5
9999 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10002 gcc_cv_gld_major_version
=
10003 gcc_cv_gld_minor_version
=
10004 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10005 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10006 if test -x "$DEFAULT_LINKER"; then
10007 gcc_cv_ld
="$DEFAULT_LINKER"
10008 elif test -x collect-ld
$host_exeext; then
10009 # Build using linker in the current directory.
10010 gcc_cv_ld
=.
/collect-ld
$host_exeext
10011 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10012 && test -f ..
/ld
/Makefile \
10013 && test x
$build = x
$host; then
10014 # Single tree build which includes ld. We want to prefer it
10015 # over whatever linker top-level may have detected, since
10016 # we'll use what we're building after installation anyway.
10018 in_tree_ld_is_elf
=no
10019 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10020 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10021 in_tree_ld_is_elf
=yes
10023 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
10025 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10026 if test x
$gcc_cv_gld_version != x
; then
10030 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10031 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10032 rm -f collect-ld
$host_exeext
10033 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10035 elif test -x "$LD_FOR_TARGET"; then
10036 gcc_cv_ld
="$LD_FOR_TARGET"
10037 elif test -x "$LD" && test x
$host = x
$target; then
10041 if test "x$gcc_cv_ld" = x
; then
10042 # Search the same directories that the installed compiler will
10043 # search. Else we may find the wrong linker and lose. If we
10044 # do not find a suitable linker binary, then try the user's
10047 # Also note we have to check MD_EXEC_PREFIX before checking the
10048 # user's path. Unfortunately, there is no good way to get at the
10049 # value of MD_EXEC_PREFIX here. So we do a brute force search
10050 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10051 # to be fixed as part of the make/configure rewrite too.
10053 if test "x$exec_prefix" = xNONE
; then
10054 if test "x$prefix" = xNONE
; then
10055 test_prefix
=/usr
/local
10057 test_prefix
=$prefix
10060 test_prefix
=$exec_prefix
10063 # If the loop below does not find an linker, then use whatever
10064 # one we can find in the users's path.
10066 if test "x$program_prefix" != xNONE
; then
10067 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10069 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10072 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10073 $test_prefix/libexec/gcc/$target_noncanonical \
10074 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10075 /usr/lib/gcc/$target_noncanonical \
10076 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10077 $test_prefix/$target_noncanonical/bin"
10079 if test x
$host = x
$target; then
10080 test_dirs
="$test_dirs \
10085 /bsd43/usr/lib/cmplrs/cc \
10086 /usr/cross64/usr/bin \
10087 /usr/lib/cmplrs/cc \
10088 /sysv/usr/lib/cmplrs/cc \
10089 /svr4/usr/lib/cmplrs/cc \
10093 for dir
in $test_dirs; do
10094 if test -x $dir/ld
$host_exeext; then
10095 gcc_cv_ld
=$dir/ld
$host_exeext
10100 case $in_tree_ld in
10102 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10103 echo "${ECHO_T}\"newly built ld\"" >&6
10106 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10107 echo "${ECHO_T}$gcc_cv_ld" >&6
10111 # Figure out what nm we will be using.
10112 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10113 echo "$as_me:$LINENO: checking what nm to use" >&5
10114 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10116 if test -x nm
$host_exeext; then
10117 gcc_cv_nm
=.
/nm
$host_exeext
10118 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10119 && test -f ..
/binutils
/Makefile
; then
10120 # Single tree build which includes binutils.
10122 gcc_cv_nm
=.
/nm
$host_exeext
10123 rm -f nm
$host_exeext
10124 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10125 elif test "x$program_prefix" != xNONE
; then
10126 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10128 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10130 case $in_tree_nm in
10131 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10132 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10133 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10134 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10137 # Figure out what objdump we will be using.
10138 echo "$as_me:$LINENO: checking what objdump to use" >&5
10139 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10141 if test -x objdump
$host_exeext; then
10142 gcc_cv_objdump
=.
/objdump
$host_exeext
10143 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10144 && test -f ..
/binutils
/Makefile
; then
10145 # Single tree build which includes binutils.
10146 in_tree_objdump
=yes
10147 gcc_cv_objdump
=.
/objdump
$host_exeext
10148 rm -f objdump
$host_exeext
10149 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10150 objdump
$host_exeext 2>/dev
/null
10151 elif test "x$program_prefix" != xNONE
; then
10152 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10154 gcc_cv_objdump
=`echo objdump | \
10155 sed "${program_transform_name}"`$host_exeext
10157 case $in_tree_objdump in
10158 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10159 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10160 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10161 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10164 # Figure out what assembler alignment features are present.
10165 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10166 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10167 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 gcc_cv_as_balign_and_p2align
=no
10171 if test $in_tree_gas = yes; then
10172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10173 then gcc_cv_as_balign_and_p2align
=yes
10175 elif test x
$gcc_cv_as != x
; then
10177 .p2align 2' > conftest.s
10178 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }
10185 gcc_cv_as_balign_and_p2align
=yes
10187 echo "configure: failed program was" >&5
10190 rm -f conftest.o conftest.s
10193 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10194 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10195 if test $gcc_cv_as_balign_and_p2align = yes; then
10197 cat >>confdefs.h
<<\_ACEOF
10198 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10203 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10204 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10205 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 gcc_cv_as_max_skip_p2align
=no
10209 if test $in_tree_gas = yes; then
10210 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10211 then gcc_cv_as_max_skip_p2align
=yes
10213 elif test x
$gcc_cv_as != x
; then
10214 echo '.p2align 4,,7' > conftest.s
10215 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }
10222 gcc_cv_as_max_skip_p2align
=yes
10224 echo "configure: failed program was" >&5
10227 rm -f conftest.o conftest.s
10230 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10231 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10232 if test $gcc_cv_as_max_skip_p2align = yes; then
10234 cat >>confdefs.h
<<\_ACEOF
10235 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10240 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10241 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10242 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 gcc_cv_as_subsection_m1
=no
10246 if test $in_tree_gas = yes; then
10247 if test $in_tree_gas_is_elf = yes \
10248 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10249 then gcc_cv_as_subsection_m1
=yes
10251 elif test x
$gcc_cv_as != x
; then
10252 echo 'conftest_label1: .word 0
10254 conftest_label2: .word 0
10255 .previous' > conftest.s
10256 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }
10263 if test x
$gcc_cv_nm != x
; then
10264 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10265 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10266 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10268 else gcc_cv_as_subsection_m1
=yes
10270 rm -f conftest.nm1 conftest.nm2
10273 echo "configure: failed program was" >&5
10276 rm -f conftest.o conftest.s
10279 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10280 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10281 if test $gcc_cv_as_subsection_m1 = yes; then
10283 cat >>confdefs.h
<<\_ACEOF
10284 #define HAVE_GAS_SUBSECTION_ORDERING 1
10289 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10290 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10291 if test "${gcc_cv_as_weak+set}" = set; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 if test $in_tree_gas = yes; then
10296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10297 then gcc_cv_as_weak
=yes
10299 elif test x
$gcc_cv_as != x
; then
10300 echo ' .weak foobar' > conftest.s
10301 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303 (eval $ac_try) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); }; }
10310 echo "configure: failed program was" >&5
10313 rm -f conftest.o conftest.s
10316 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10317 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10318 if test $gcc_cv_as_weak = yes; then
10320 cat >>confdefs.h
<<\_ACEOF
10321 #define HAVE_GAS_WEAK 1
10326 # .hidden needs to be supported in both the assembler and the linker,
10327 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10328 # This is irritatingly difficult to feature test for; we have to check the
10329 # date string after the version number. If we've got an in-tree
10330 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10332 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10333 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10334 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10335 if test "${gcc_cv_as_hidden+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 gcc_cv_as_hidden
=no
10339 if test $in_tree_gas = yes; then
10340 if test $in_tree_gas_is_elf = yes \
10341 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10342 then gcc_cv_as_hidden
=yes
10344 elif test x
$gcc_cv_as != x
; then
10345 echo ' .hidden foobar
10346 foobar:' > conftest.s
10347 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }
10354 gcc_cv_as_hidden
=yes
10356 echo "configure: failed program was" >&5
10359 rm -f conftest.o conftest.s
10362 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10363 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10366 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10367 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10368 if test "${gcc_cv_ld_hidden+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 if test $in_tree_ld = yes ; then
10372 gcc_cv_ld_hidden
=no
10373 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 \
10374 && test $in_tree_ld_is_elf = yes; then
10375 gcc_cv_ld_hidden
=yes
10378 gcc_cv_ld_hidden
=yes
10379 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10380 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10381 ld_vers
=`echo $ld_ver | sed -n \
10382 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10383 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10384 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10385 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10386 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10387 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10388 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'`
10389 if test 0"$ld_date" -lt 20020404; then
10390 if test -n "$ld_date"; then
10391 # If there was date string, but was earlier than 2002-04-04, fail
10392 gcc_cv_ld_hidden
=no
10393 elif test -z "$ld_vers"; then
10394 # If there was no date string nor ld version number, something is wrong
10395 gcc_cv_ld_hidden
=no
10397 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10398 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10399 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10400 test -z "$ld_vers_patch" && ld_vers_patch
=0
10401 if test "$ld_vers_major" -lt 2; then
10402 gcc_cv_ld_hidden
=no
10403 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10404 gcc_cv_ld_hidden
="no"
10405 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10406 gcc_cv_ld_hidden
=no
10411 case "${target}" in
10412 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10413 gcc_cv_ld_hidden
=yes
10416 gcc_cv_ld_hidden
=no
10422 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10423 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10424 libgcc_visibility
=no
10426 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10427 libgcc_visibility
=yes
10429 cat >>confdefs.h
<<\_ACEOF
10430 #define HAVE_GAS_HIDDEN 1
10435 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10436 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10437 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10438 if test "${gcc_cv_as_leb128+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 gcc_cv_as_leb128
=no
10442 if test $in_tree_gas = yes; then
10443 if test $in_tree_gas_is_elf = yes \
10444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10445 then gcc_cv_as_leb128
=yes
10447 elif test x
$gcc_cv_as != x
; then
10454 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }
10461 # GAS versions before 2.11 do not support uleb128,
10462 # despite appearing to.
10463 # ??? There exists an elf-specific test that will crash
10464 # the assembler. Perhaps it's better to figure out whether
10465 # arbitrary sections are supported and try the test.
10466 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10467 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10468 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10469 as_major
=`echo $as_ver | sed 's/\..*//'`
10470 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10471 if test $as_major -eq 2 && test $as_minor -lt 11
10473 else gcc_cv_as_leb128
=yes
10477 echo "configure: failed program was" >&5
10480 rm -f conftest.o conftest.s
10483 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10484 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10485 if test $gcc_cv_as_leb128 = yes; then
10487 cat >>confdefs.h
<<\_ACEOF
10488 #define HAVE_AS_LEB128 1
10493 # GAS versions up to and including 2.11.0 may mis-optimize
10495 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10496 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10497 if test "${gcc_cv_as_eh_frame+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 gcc_cv_as_eh_frame
=no
10501 if test $in_tree_gas = yes; then
10502 if test $in_tree_gas_is_elf = yes \
10503 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10504 then gcc_cv_as_eh_frame
=yes
10506 elif test x
$gcc_cv_as != x
; then
10513 .section .eh_frame,"aw",@progbits
10515 .4byte .LECIE1-.LSCIE1
10529 .4byte .LEFDE1-.LASFDE1
10531 .4byte .LASFDE1-__FRAME_BEGIN__
10538 .LEFDE1:' > conftest.s
10539 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; }
10546 cat > conftest.lit
<<EOF
10547 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10548 0010 01000000 12000000 18000000 00000000 ................
10549 0020 08000000 04080000 0044 .........D
10551 cat > conftest.big
<<EOF
10552 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10553 0010 00000001 00000012 00000018 00000000 ................
10554 0020 00000008 04000000 0844 .........D
10556 # If the assembler didn't choke, and we can objdump,
10557 # and we got the correct data, then succeed.
10558 if test x
$gcc_cv_objdump != x \
10559 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10560 |
tail -3 > conftest.got \
10561 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10562 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10564 gcc_cv_as_eh_frame
=yes
10565 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; }; then
10571 gcc_cv_as_eh_frame
=buggy
10573 # Uh oh, what do we do now?
10574 gcc_cv_as_eh_frame
=no
10577 echo "configure: failed program was" >&5
10580 rm -f conftest.o conftest.s
10583 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10584 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10587 if test $gcc_cv_as_eh_frame = buggy
; then
10589 cat >>confdefs.h
<<\_ACEOF
10590 #define USE_AS_TRADITIONAL_FORMAT 1
10595 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10596 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10597 if test "${gcc_cv_as_shf_merge+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 gcc_cv_as_shf_merge
=no
10601 if test $in_tree_gas = yes; then
10602 if test $in_tree_gas_is_elf = yes \
10603 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10604 then gcc_cv_as_shf_merge
=yes
10606 elif test x
$gcc_cv_as != x
; then
10607 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10608 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }
10615 gcc_cv_as_shf_merge
=yes
10617 echo "configure: failed program was" >&5
10620 rm -f conftest.o conftest.s
10623 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10624 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10627 cat >>confdefs.h
<<_ACEOF
10628 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10632 # Thread-local storage - the check is heavily parametrized.
10640 .section ".tdata","awT",@progbits
10643 ldq $27,__tls_get_addr($29) !literal!1
10644 lda $16,foo($29) !tlsgd!1
10645 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10646 ldq $27,__tls_get_addr($29) !literal!2
10647 lda $16,foo($29) !tlsldm!2
10648 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10649 ldq $1,foo($29) !gotdtprel
10650 ldah $2,foo($29) !dtprelhi
10651 lda $3,foo($2) !dtprello
10652 lda $4,foo($29) !dtprel
10653 ldq $1,foo($29) !gottprel
10654 ldah $2,foo($29) !tprelhi
10655 lda $3,foo($2) !tprello
10656 lda $4,foo($29) !tprel'
10659 tls_as_opt
=--fatal-warnings
10663 .section ".tdata","awT",@progbits
10667 leal foo@TLSGD(,%ebx,1), %eax
10668 leal foo@TLSLDM(%ebx), %eax
10669 leal foo@DTPOFF(%eax), %edx
10670 movl foo@GOTTPOFF(%ebx), %eax
10671 subl foo@GOTTPOFF(%ebx), %eax
10672 addl foo@GOTNTPOFF(%ebx), %eax
10673 movl foo@INDNTPOFF, %eax
10674 movl $foo@TPOFF, %eax
10675 subl $foo@TPOFF, %eax
10676 leal foo@NTPOFF(%ecx), %eax'
10679 tls_as_opt
=--fatal-warnings
10683 .section ".tdata","awT",@progbits
10687 leaq foo@TLSGD(%rip), %rdi
10688 leaq foo@TLSLD(%rip), %rdi
10689 leaq foo@DTPOFF(%rax), %rdx
10690 movq foo@GOTTPOFF(%rip), %rax
10691 movq $foo@TPOFF, %rax'
10694 tls_as_opt
=--fatal-warnings
10698 .section ".tdata","awT",@progbits
10701 addl r16 = @ltoff(@dtpmod(foo#)), gp
10702 addl r17 = @ltoff(@dtprel(foo#)), gp
10703 addl r18 = @ltoff(@tprel(foo#)), gp
10704 addl r19 = @dtprel(foo#), gp
10705 adds r21 = @dtprel(foo#), r13
10706 movl r23 = @dtprel(foo#)
10707 addl r20 = @tprel(foo#), gp
10708 adds r22 = @tprel(foo#), r13
10709 movl r24 = @tprel(foo#)'
10712 tls_as_opt
=--fatal-warnings
10716 .section ".tdata","awT",@progbits
10724 addi 3,31,ld0@got@tlsgd
10726 addi 3,31,x1@got@tlsld
10729 addis 9,3,x2@dtprel@ha
10730 addi 9,9,x2@dtprel@l
10731 lwz 9,x3@got@tprel(31)
10734 addis 9,2,x2@tprel@ha
10735 addi 9,9,x2@tprel@l'
10738 tls_as_opt
="-a32 --fatal-warnings"
10742 .section ".tdata","awT",@progbits
10750 addi 3,2,ld0@got@tlsgd
10756 addi 3,2,x1@got@tlsld
10762 addis 9,3,x2@dtprel@ha
10763 addi 9,9,x2@dtprel@l
10766 ld 9,x3@got@dtprel(2)
10772 tls_as_opt
="-a64 --fatal-warnings"
10776 .section ".tdata","awT",@progbits
10783 .long foo@GOTNTPOFF
10784 .long foo@INDNTPOFF
10785 l %r1,foo@GOTNTPOFF(%r12)
10786 l %r1,0(%r1):tls_load:foo
10787 bas %r14,0(%r1,%r13):tls_gdcall:foo
10788 bas %r14,0(%r1,%r13):tls_ldcall:foo'
10791 tls_as_opt
="-m31 --fatal-warnings"
10795 .section ".tdata","awT",@progbits
10802 .quad foo@GOTNTPOFF
10803 lg %r1,foo@GOTNTPOFF(%r12)
10804 larl %r1,foo@INDNTPOFF
10805 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
10806 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
10809 tls_as_opt
="-m64 -Aesame --fatal-warnings"
10811 sh-
*-* | sh
[34]-*-*)
10813 .section ".tdata","awT",@progbits
10823 tls_as_opt
=--fatal-warnings
10827 sparc
*-sun-solaris2.
*)
10834 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
10836 .section ".tdata",#alloc,#write,#tls
10839 sethi %tgd_hi22(foo), %o0
10840 add %o0, %tgd_lo10(foo), %o1
10841 add %l7, %o1, %o0, %tgd_add(foo)
10842 call __tls_get_addr, %tgd_call(foo)
10843 sethi %tldm_hi22(foo), %l1
10844 add %l1, %tldm_lo10(foo), %l2
10845 add %l7, %l2, %o0, %tldm_add(foo)
10846 call __tls_get_addr, %tldm_call(foo)
10847 sethi %tldo_hix22(foo), %l3
10848 xor %l3, %tldo_lox10(foo), %l4
10849 add %o0, %l4, %l5, %tldo_add(foo)
10850 sethi %tie_hi22(foo), %o3
10851 add %o3, %tie_lo10(foo), %o3
10852 ld [%l7 + %o3], %o2, %tie_ld(foo)
10853 add %g7, %o2, %o4, %tie_add(foo)
10854 sethi %tle_hix22(foo), %l1
10855 xor %l1, %tle_lox10(foo), %o5
10856 ld [%g7 + %o5], %o1'
10861 .section ".tdata","awT",@progbits
10864 sethi %tgd_hi22(foo), %o0
10865 add %o0, %tgd_lo10(foo), %o1
10866 add %l7, %o1, %o0, %tgd_add(foo)
10867 call __tls_get_addr, %tgd_call(foo)
10868 sethi %tldm_hi22(foo), %l1
10869 add %l1, %tldm_lo10(foo), %l2
10870 add %l7, %l2, %o0, %tldm_add(foo)
10871 call __tls_get_addr, %tldm_call(foo)
10872 sethi %tldo_hix22(foo), %l3
10873 xor %l3, %tldo_lox10(foo), %l4
10874 add %o0, %l4, %l5, %tldo_add(foo)
10875 sethi %tie_hi22(foo), %o3
10876 add %o3, %tie_lo10(foo), %o3
10877 ld [%l7 + %o3], %o2, %tie_ld(foo)
10878 add %g7, %o2, %o4, %tie_add(foo)
10879 sethi %tle_hix22(foo), %l1
10880 xor %l1, %tle_lox10(foo), %o5
10881 ld [%g7 + %o5], %o1'
10884 tls_as_opt
="-32 --fatal-warnings"
10888 if test -z "$tls_first_major"; then
10889 : # If we don't have a check, assume no support.
10891 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
10892 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
10893 if test "${gcc_cv_as_tls+set}" = set; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 if test $in_tree_gas = yes; then
10898 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
10899 then gcc_cv_as_tls
=yes
10901 elif test x
$gcc_cv_as != x
; then
10902 echo "$conftest_s" > conftest.s
10903 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
10904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905 (eval $ac_try) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; }
10912 echo "configure: failed program was" >&5
10915 rm -f conftest.o conftest.s
10918 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
10919 echo "${ECHO_T}$gcc_cv_as_tls" >&6
10920 if test $gcc_cv_as_tls = yes; then
10922 cat >>confdefs.h
<<\_ACEOF
10923 #define HAVE_AS_TLS 1
10929 # Target-specific assembler checks.
10932 # All TARGET_ABI_OSF targets.
10933 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
10934 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
10935 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
10936 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 gcc_cv_as_alpha_explicit_relocs
=no
10940 if test $in_tree_gas = yes; then
10941 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10942 then gcc_cv_as_alpha_explicit_relocs
=yes
10944 elif test x
$gcc_cv_as != x
; then
10945 echo ' .set nomacro
10947 extbl $3, $2, $3 !lituse_bytoff!1
10948 ldq $2, a($29) !literal!1
10949 ldq $4, b($29) !literal!2
10950 ldq_u $3, 0($2) !lituse_base!1
10951 ldq $27, f($29) !literal!5
10952 jsr $26, ($27), f !lituse_jsr!5
10953 ldah $29, 0($26) !gpdisp!3
10954 lda $0, c($29) !gprel
10955 ldah $1, d($29) !gprelhigh
10956 lda $1, d($1) !gprellow
10957 lda $29, 0($29) !gpdisp!3' > conftest.s
10958 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }
10965 gcc_cv_as_alpha_explicit_relocs
=yes
10967 echo "configure: failed program was" >&5
10970 rm -f conftest.o conftest.s
10973 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
10974 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
10975 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
10977 cat >>confdefs.h
<<\_ACEOF
10978 #define HAVE_AS_EXPLICIT_RELOCS 1
10985 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
10986 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
10987 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 gcc_cv_as_cris_no_mul_bug
=no
10991 if test $in_tree_gas = yes; then
10992 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
10993 then gcc_cv_as_cris_no_mul_bug
=yes
10995 elif test x
$gcc_cv_as != x
; then
10996 echo '.text' > conftest.s
10997 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }
11004 gcc_cv_as_cris_no_mul_bug
=yes
11006 echo "configure: failed program was" >&5
11009 rm -f conftest.o conftest.s
11012 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11013 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11014 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11016 cat >>confdefs.h
<<\_ACEOF
11017 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11024 echo "$as_me:$LINENO: checking assembler for .register" >&5
11025 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11026 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 gcc_cv_as_sparc_register_op
=no
11030 if test x
$gcc_cv_as != x
; then
11031 echo '.register %g2, #scratch' > conftest.s
11032 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }
11039 gcc_cv_as_sparc_register_op
=yes
11041 echo "configure: failed program was" >&5
11044 rm -f conftest.o conftest.s
11047 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11048 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11049 if test $gcc_cv_as_sparc_register_op = yes; then
11051 cat >>confdefs.h
<<\_ACEOF
11052 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11057 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11058 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11059 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11062 gcc_cv_as_sparc_relax
=no
11063 if test x
$gcc_cv_as != x
; then
11064 echo '.text' > conftest.s
11065 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }
11072 gcc_cv_as_sparc_relax
=yes
11074 echo "configure: failed program was" >&5
11077 rm -f conftest.o conftest.s
11080 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11081 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11082 if test $gcc_cv_as_sparc_relax = yes; then
11084 cat >>confdefs.h
<<\_ACEOF
11085 #define HAVE_AS_RELAX_OPTION 1
11090 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11091 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11092 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 gcc_cv_as_sparc_ua_pcrel
=no
11096 if test x
$gcc_cv_as != x
; then
11103 .uaword %r_disp32(foo)' > conftest.s
11104 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }
11111 if test x
$gcc_cv_ld != x \
11112 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11113 gcc_cv_as_sparc_ua_pcrel
=yes
11117 echo "configure: failed program was" >&5
11120 rm -f conftest.o conftest.s
11123 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11124 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11125 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11127 cat >>confdefs.h
<<\_ACEOF
11128 #define HAVE_AS_SPARC_UA_PCREL 1
11132 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11133 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11134 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11138 if test x
$gcc_cv_as != x
; then
11142 .uaword %r_disp32(foo)
11143 .byte 0x32, 0x33, 0x34
11147 .skip 4' > conftest.s
11148 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }
11155 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11156 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11157 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11158 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11159 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11160 |
grep 'DISP32' > /dev
/null
2>&1; then
11163 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11168 echo "configure: failed program was" >&5
11171 rm -f conftest.o conftest.s
11174 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11175 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11176 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11178 cat >>confdefs.h
<<\_ACEOF
11179 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11184 fi # unaligned pcrel relocs
11186 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11187 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11188 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 gcc_cv_as_sparc_offsetable_lo10
=no
11192 if test x
$gcc_cv_as != x
; then
11194 or %g1, %lo(ab) + 12, %g1
11195 or %g1, %lo(ab + 12), %g1' > conftest.s
11196 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }
11203 if test x
$gcc_cv_objdump != x \
11204 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11205 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11206 gcc_cv_as_offsetable_lo10
=yes
11209 echo "configure: failed program was" >&5
11212 rm -f conftest.o conftest.s
11215 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11216 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11217 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11219 cat >>confdefs.h
<<\_ACEOF
11220 #define HAVE_AS_OFFSETABLE_LO10 1
11226 i
[34567]86-*-* | x86_64-
*-*)
11228 cygwin
* | pe | mingw32
*)
11229 # Used for DWARF 2 in PE
11230 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11231 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11232 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 gcc_cv_as_ix86_pe_secrel32
=no
11236 if test $in_tree_gas = yes; then
11237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11238 then gcc_cv_as_ix86_pe_secrel32
=yes
11240 elif test x
$gcc_cv_as != x
; then
11244 .secrel32 foo' > conftest.s
11245 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }
11252 if test x
$gcc_cv_ld != x \
11253 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
11254 gcc_cv_as_ix86_pe_secrel32
=yes
11258 echo "configure: failed program was" >&5
11261 rm -f conftest.o conftest.s
11264 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11265 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11266 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11268 cat >>confdefs.h
<<\_ACEOF
11269 #define HAVE_GAS_PE_SECREL32_RELOC 1
11276 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11277 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11278 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 gcc_cv_as_ix86_filds_fists
=no
11282 if test $in_tree_gas = yes; then
11283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11284 then gcc_cv_as_ix86_filds_fists
=yes
11286 elif test x
$gcc_cv_as != x
; then
11287 echo 'filds mem; fists mem' > conftest.s
11288 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }
11295 gcc_cv_as_ix86_filds_fists
=yes
11297 echo "configure: failed program was" >&5
11300 rm -f conftest.o conftest.s
11303 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11304 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11305 if test $gcc_cv_as_ix86_filds_fists = yes; then
11307 cat >>confdefs.h
<<\_ACEOF
11308 #define HAVE_GAS_FILDS_FISTS 1
11313 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11314 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11315 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11318 gcc_cv_as_ix86_cmov_sun_syntax
=no
11319 if test x
$gcc_cv_as != x
; then
11320 echo 'cmovl.l %edx, %eax' > conftest.s
11321 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }
11328 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11330 echo "configure: failed program was" >&5
11333 rm -f conftest.o conftest.s
11336 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11337 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11338 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11340 cat >>confdefs.h
<<\_ACEOF
11341 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11346 # This one is used unconditionally by i386.[ch]; it is to be defined
11347 # to 1 if the feature is present, 0 otherwise.
11348 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11349 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11350 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 gcc_cv_as_ix86_gotoff_in_data
=no
11354 if test $in_tree_gas = yes; then
11355 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11356 then gcc_cv_as_ix86_gotoff_in_data
=yes
11358 elif test x
$gcc_cv_as != x
; then
11363 .long .L0@GOTOFF' > conftest.s
11364 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }
11371 gcc_cv_as_ix86_gotoff_in_data
=yes
11373 echo "configure: failed program was" >&5
11376 rm -f conftest.o conftest.s
11379 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11380 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11383 cat >>confdefs.h
<<_ACEOF
11384 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11390 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11391 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11392 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
11395 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11396 if test $in_tree_gas = yes; then
11397 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11398 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11400 elif test x
$gcc_cv_as != x
; then
11402 addl r15 = @ltoffx(x#), gp
11404 ld8.mov r16 = [r15], x#' > conftest.s
11405 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }
11412 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11414 echo "configure: failed program was" >&5
11417 rm -f conftest.o conftest.s
11420 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11421 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11422 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11424 cat >>confdefs.h
<<\_ACEOF
11425 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11434 *-*-aix*) conftest_s
=' .csect .text[PR]
11436 *-*-darwin*) conftest_s
=' .text
11438 *) conftest_s
=' .text
11442 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11443 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11444 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11445 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 gcc_cv_as_powerpc_mfcrf
=no
11448 if test $in_tree_gas = yes; then
11449 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11450 then gcc_cv_as_powerpc_mfcrf
=yes
11452 elif test x
$gcc_cv_as != x
; then
11453 echo "$conftest_s" > conftest.s
11454 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }
11461 gcc_cv_as_powerpc_mfcrf
=yes
11463 echo "configure: failed program was" >&5
11466 rm -f conftest.o conftest.s
11469 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11470 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11471 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11473 cat >>confdefs.h
<<\_ACEOF
11474 #define HAVE_AS_MFCRF 1
11481 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11482 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11483 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 gcc_cv_as_mips_explicit_relocs
=no
11487 if test $in_tree_gas = yes; then
11488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11489 then gcc_cv_as_mips_explicit_relocs
=yes
11491 elif test x
$gcc_cv_as != x
; then
11492 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11493 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }
11500 gcc_cv_as_mips_explicit_relocs
=yes
11502 echo "configure: failed program was" >&5
11505 rm -f conftest.o conftest.s
11508 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11509 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11510 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11511 if test x
$target_cpu_default = x
11512 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11513 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11519 # ??? Not all targets support dwarf2 debug_line, even within a version
11520 # of gas. Moreover, we need to emit a valid instruction to trigger any
11521 # info to the output file. So, as supported targets are added to gas 2.11,
11522 # add some instruction here to (also) show we expect this might work.
11523 # ??? Once 2.11 is released, probably need to add first known working
11524 # version to the per-target configury.
11526 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11527 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11528 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11531 ia64
*-*-* | s390
*-*-*)
11538 if test x
"$insn" != x
; then
11540 .file 1 \"conftest.s\"
11543 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11544 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11545 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 gcc_cv_as_dwarf2_debug_line
=no
11549 if test $in_tree_gas = yes; then
11550 if test $in_tree_gas_is_elf = yes \
11551 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11552 then gcc_cv_as_dwarf2_debug_line
=yes
11554 elif test x
$gcc_cv_as != x
; then
11555 echo "$conftest_s" > conftest.s
11556 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }
11563 # ??? This fails with non-gnu grep. Maybe use objdump?
11564 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11565 gcc_cv_as_dwarf2_debug_line
=yes
11568 echo "configure: failed program was" >&5
11571 rm -f conftest.o conftest.s
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11575 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11578 # The .debug_line file table must be in the exact order that
11579 # we specified the files, since these indices are also used
11580 # by DW_AT_decl_file. Approximate this test by testing if
11581 # the assembler bitches if the same index is assigned twice.
11582 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11583 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11584 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 gcc_cv_as_dwarf2_file_buggy
=no
11588 if test x
$gcc_cv_as != x
; then
11589 echo ' .file 1 "foo.s"
11590 .file 1 "bar.s"' > conftest.s
11591 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }
11598 gcc_cv_as_dwarf2_file_buggy
=yes
11600 echo "configure: failed program was" >&5
11603 rm -f conftest.o conftest.s
11606 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11607 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11610 if test $gcc_cv_as_dwarf2_debug_line = yes \
11611 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11613 cat >>confdefs.h
<<\_ACEOF
11614 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11619 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11620 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11621 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 gcc_cv_as_gdwarf2_flag
=no
11625 if test $in_tree_gas = yes; then
11626 if test $in_tree_gas_is_elf = yes \
11627 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11628 then gcc_cv_as_gdwarf2_flag
=yes
11630 elif test x
$gcc_cv_as != x
; then
11631 echo "$insn" > conftest.s
11632 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }
11639 gcc_cv_as_gdwarf2_flag
=yes
11641 echo "configure: failed program was" >&5
11644 rm -f conftest.o conftest.s
11647 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11648 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11649 if test $gcc_cv_as_gdwarf2_flag = yes; then
11651 cat >>confdefs.h
<<\_ACEOF
11652 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11657 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11658 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11659 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11660 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 gcc_cv_as_gstabs_flag
=no
11663 if test $in_tree_gas = yes; then
11664 if test $in_tree_gas_is_elf = yes \
11665 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11666 then gcc_cv_as_gstabs_flag
=yes
11668 elif test x
$gcc_cv_as != x
; then
11669 echo "$insn" > conftest.s
11670 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }
11677 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11678 # and warns about it, but still exits successfully. So check for
11680 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682 (eval $ac_try) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }
11687 else gcc_cv_as_gstabs_flag
=yes
11690 echo "configure: failed program was" >&5
11693 rm -f conftest.o conftest.s
11696 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11697 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11698 if test $gcc_cv_as_gstabs_flag = yes; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11707 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11708 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11709 gcc_cv_ld_ro_rw_mix
=unknown
11710 if test $in_tree_ld = yes ; then
11711 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 \
11712 && test $in_tree_ld_is_elf = yes; then
11713 gcc_cv_ld_ro_rw_mix
=read-write
11715 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11716 echo '.section myfoosect, "a"' > conftest1.s
11717 echo '.section myfoosect, "aw"' > conftest2.s
11718 echo '.byte 1' >> conftest2.s
11719 echo '.section myfoosect, "a"' > conftest3.s
11720 echo '.byte 0' >> conftest3.s
11721 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11722 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11723 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11724 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11725 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11726 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11727 | sed -e '/myfoosect/!d' -e N`
11728 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11729 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11730 gcc_cv_ld_ro_rw_mix
=read-only
11732 gcc_cv_ld_ro_rw_mix
=read-write
11736 rm -f conftest.
* conftest
[123].
*
11738 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
11740 cat >>confdefs.h
<<\_ACEOF
11741 #define HAVE_LD_RO_RW_SECTION_MIXING 1
11745 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
11746 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
11748 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
11749 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
11750 gcc_cv_ld_eh_frame_hdr
=no
11751 if test $in_tree_ld = yes ; then
11752 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 \
11753 && test $in_tree_ld_is_elf = yes; then
11754 gcc_cv_ld_eh_frame_hdr
=yes
11756 elif test x
$gcc_cv_ld != x
; then
11757 # Check if linker supports --eh-frame-hdr option
11758 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
11759 gcc_cv_ld_eh_frame_hdr
=yes
11762 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
11764 cat >>confdefs.h
<<\_ACEOF
11765 #define HAVE_LD_EH_FRAME_HDR 1
11769 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
11770 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
11772 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
11773 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
11775 if test $in_tree_ld = yes ; then
11776 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 \
11777 && test $in_tree_ld_is_elf = yes; then
11780 elif test x
$gcc_cv_ld != x
; then
11781 # Check if linker supports -pie option
11782 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
11786 if test x
"$gcc_cv_ld_pie" = xyes
; then
11788 cat >>confdefs.h
<<\_ACEOF
11789 #define HAVE_LD_PIE 1
11793 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
11794 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
11800 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
11801 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
11802 if test "${gcc_cv_ld_as_needed+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 gcc_cv_ld_as_needed
=no
11806 if test $in_tree_ld = yes ; then
11807 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 \
11808 && test $in_tree_ld_is_elf = yes; then
11809 gcc_cv_ld_as_needed
=yes
11811 elif test x
$gcc_cv_ld != x
; then
11812 # Check if linker supports --as-needed and --no-as-needed options
11813 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
11814 gcc_cv_ld_as_needed
=yes
11819 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
11820 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
11821 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
11823 cat >>confdefs.h
<<\_ACEOF
11824 #define HAVE_LD_AS_NEEDED 1
11829 if test x
$with_sysroot = x
&& test x
$host = x
$target \
11830 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
11832 cat >>confdefs.h
<<_ACEOF
11833 #define PREFIX_INCLUDE_DIR "$prefix/include"
11838 # Find out what GC implementation we want, or may, use.
11840 # Check whether --with-gc or --without-gc was given.
11841 if test "${with_gc+set}" = set; then
11848 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
11849 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
11850 { (exit 1); exit 1; }; }
11857 echo "Using $GGC for garbage collection."
11859 # Use the system's zlib library.
11861 zlibinc
="-I\$(srcdir)/../zlib"
11863 # Check whether --with-system-zlib or --without-system-zlib was given.
11864 if test "${with_system_zlib+set}" = set; then
11865 withval
="$with_system_zlib"
11874 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11875 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11876 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11877 if test "${enable_maintainer_mode+set}" = set; then
11878 enableval
="$enable_maintainer_mode"
11879 maintainer_mode
=$enableval
11884 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
11885 echo "${ECHO_T}$maintainer_mode" >&6
11887 if test "$maintainer_mode" = "yes"; then
11893 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
11894 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
11896 # Check whether --with-libbanshee or --without-libbanshee was given.
11897 if test "${with_libbanshee+set}" = set; then
11898 withval
="$with_libbanshee"
11899 libbanshee
="$with_libbanshee"
11904 if test x
"$libbanshee" = xyes
; then
11905 BANSHEELIB
="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
11906 BANSHEEINC
="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
11907 ANDER
="tree-alias-ander.o"
11909 cat >>confdefs.h
<<\_ACEOF
11910 #define HAVE_BANSHEE 1
11918 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
11919 echo "${ECHO_T}$with_libbanshee" >&6
11929 # Make empty files to contain the specs and options for each language.
11930 # Then add #include lines to for a compiler that has specs and/or options.
11935 for subdir
in .
$subdirs
11937 if test -f $srcdir/$subdir/lang.opt
; then
11938 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
11940 if test -f $srcdir/$subdir/lang-specs.h
; then
11941 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
11943 if test -f $srcdir/$subdir/$subdir-tree.def
; then
11944 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
11948 # These (without "all_") are set in each config-lang.in.
11949 # `language' must be a single word so is spelled singularly.
11951 all_boot_languages
=
11954 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
11955 # List of language makefile fragments.
11956 all_lang_makefrags
=
11957 # List of language subdirectory makefiles. Deprecated.
11958 all_lang_makefiles
=
11959 # Files for gengtype
11960 all_gtfiles
="$target_gtfiles"
11961 # Files for gengtype with language
11962 all_gtfiles_files_langs
=
11963 all_gtfiles_files_files
=
11965 # Add the language fragments.
11966 # Languages are added via two mechanisms. Some information must be
11967 # recorded in makefile variables, these are defined in config-lang.in.
11968 # We accumulate them and plug them into the main Makefile.
11969 # The other mechanism is a set of hooks for each of the main targets
11970 # like `clean', `install', etc.
11972 language_hooks
="Make-hooks"
11982 .
${srcdir}/$s/config-lang.
in
11983 if test "x$language" = x
11985 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
11988 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
11989 if test -f ${srcdir}/$s/Makefile.
in
11990 then all_lang_makefiles
="$s/Makefile"
11992 all_languages
="$all_languages $language"
11993 if test "x$boot_language" = xyes
11995 all_boot_languages
="$all_boot_languages $language"
11997 all_compilers
="$all_compilers $compilers"
11998 all_stagestuff
="$all_stagestuff $stagestuff"
11999 all_outputs
="$all_outputs $outputs"
12000 all_gtfiles
="$all_gtfiles $gtfiles"
12003 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12004 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12008 # Pick up gtfiles for c
12011 .
${srcdir}/c-config-lang.
in
12012 all_gtfiles
="$all_gtfiles $gtfiles"
12015 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12016 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12020 for language
in $all_languages
12022 check_languages
="$check_languages check-$language"
12025 # We link each language in with a set of hooks, reached indirectly via
12030 target_list
="all.build all.cross start.encap rest.encap tags \
12031 install-normal install-common install-man \
12032 uninstall info man srcextra srcman srcinfo \
12033 mostlyclean clean distclean maintainer-clean \
12034 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12035 for t
in $target_list
12038 for lang
in $all_languages
12042 echo "lang.$t: $x" >> Make-hooks
12051 echo "dir ." > .gdbinit
12052 echo "dir ${srcdir}" >> .gdbinit
12053 if test x
$gdb_needs_out_file_path = xyes
12055 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12057 if test "x$subdirs" != x
; then
12060 echo "dir ${srcdir}/$s" >> .gdbinit
12063 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12065 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12066 # absolute path for gcc_tooldir based on inserting the number of up-directory
12067 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12068 # $(libsubdir)/@(unlibsubdir) based path.
12069 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12070 # make and thus we'd get different behavior depending on where we built the
12072 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12073 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12075 # An explanation of the sed strings:
12076 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12077 # -e 's|/$||' match a trailing forward slash and eliminates it
12078 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12079 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12081 # (*) Note this pattern overwrites the first character of the string
12082 # with a forward slash if one is not already present. This is not a
12083 # problem because the exact names of the sub-directories concerned is
12084 # unimportant, just the number of them matters.
12086 # The practical upshot of these patterns is like this:
12088 # prefix exec_prefix result
12089 # ------ ----------- ------
12090 # /foo /foo/bar ../
12091 # /foo/ /foo/bar ../
12092 # /foo /foo/bar/ ../
12093 # /foo/ /foo/bar/ ../
12094 # /foo /foo/bar/ugg ../../
12097 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12102 # Find a directory in which to install a shared libgcc.
12104 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12105 if test "${enable_version_specific_runtime_libs+set}" = set; then
12106 enableval
="$enable_version_specific_runtime_libs"
12111 # Check whether --with-slibdir or --without-slibdir was given.
12112 if test "${with_slibdir+set}" = set; then
12113 withval
="$with_slibdir"
12114 slibdir
="$with_slibdir"
12116 if test "${enable_version_specific_runtime_libs+set}" = set; then
12117 slibdir
='$(libsubdir)'
12118 elif test "$host" != "$target"; then
12119 slibdir
='$(build_tooldir)/lib'
12121 slibdir
='$(libdir)'
12126 objdir
=`${PWDCMD-pwd}`
12129 # Substitute configuration variables
12198 # If it doesn't already exist, create document directory
12199 echo "checking for the document directory." 1>&2
12200 if test -d doc
; then
12207 if test x
${build} = x
${host} ; then
12208 if test x
${host} = x
${target} ; then
12209 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12211 echo "Links are now set up to build a cross-compiler" 1>&2
12212 echo " from ${host} to ${target}." 1>&2
12215 if test x
${host} = x
${target} ; then
12216 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12217 echo " for ${target}." 1>&2
12219 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12220 echo " from ${host} to ${target}." 1>&2
12227 # Configure the subdirectories
12228 # AC_CONFIG_SUBDIRS($subdirs)
12230 # Create the Makefile
12231 # and configure language subdirectories
12232 ac_config_files
="$ac_config_files $all_outputs"
12235 ac_config_commands
="$ac_config_commands default"
12237 cat >confcache
<<\_ACEOF
12238 # This file is a shell script that caches the results of configure
12239 # tests run on this system so they can be shared between configure
12240 # scripts and configure runs, see configure's option --config-cache.
12241 # It is not useful on other systems. If it contains results you don't
12242 # want to keep, you may remove or edit it.
12244 # config.status only pays attention to the cache file if you give it
12245 # the --recheck option to rerun configure.
12247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12249 # following values.
12253 # The following way of writing the cache mishandles newlines in values,
12254 # but we know of no workaround that is simple, portable, and efficient.
12255 # So, don't put newlines in cache variables' values.
12256 # Ultrix sh set writes to stderr and can't be redirected directly,
12257 # and sets the high bit in the cache file unless we assign to the vars.
12260 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12262 # `set' does not quote correctly, so add quotes (double-quote
12263 # substitution turns \\\\ into \\, and sed turns \\ into \).
12266 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12269 # `set' quotes correctly as required by POSIX, so do not add quotes.
12271 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12278 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12280 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12282 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12283 if test -w $cache_file; then
12284 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12285 cat confcache
>$cache_file
12287 echo "not updating unwritable cache $cache_file"
12292 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12293 # Let make expand exec_prefix.
12294 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12298 # trailing colons and then remove the whole line if VPATH becomes empty
12299 # (actually we leave an empty line to preserve line numbers).
12300 if test "x$srcdir" = x.
; then
12301 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12302 s/:*\$(srcdir):*/:/;
12303 s/:*\${srcdir}:*/:/;
12305 s/^\([^=]*=[ ]*\):*/\1/;
12311 DEFS
=-DHAVE_CONFIG_H
12315 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12316 # 1. Remove the extension, and $U if already installed.
12317 ac_i
=`echo "$ac_i" |
12318 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12320 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12321 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12323 LIBOBJS
=$ac_libobjs
12325 LTLIBOBJS
=$ac_ltlibobjs
12329 : ${CONFIG_STATUS=./config.status}
12330 ac_clean_files_save
=$ac_clean_files
12331 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12332 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12333 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12334 cat >$CONFIG_STATUS <<_ACEOF
12336 # Generated by $as_me.
12337 # Run this file to recreate the current configuration.
12338 # Compiler output produced by configure, useful for debugging
12339 # configure, is in config.log if it exists.
12342 ac_cs_recheck=false
12344 SHELL=\${CONFIG_SHELL-$SHELL}
12347 cat >>$CONFIG_STATUS <<\_ACEOF
12348 ## --------------------- ##
12349 ## M4sh Initialization. ##
12350 ## --------------------- ##
12352 # Be Bourne compatible
12353 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12356 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12357 # is contrary to our usage. Disable this feature.
12358 alias -g '${1+"$@"}'='"$@"'
12359 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12362 DUALCASE
=1; export DUALCASE
# for MKS sh
12364 # Support unset when possible.
12365 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12372 # Work around bugs in pre-3.0 UWIN ksh.
12373 $as_unset ENV MAIL MAILPATH
12380 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12381 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12382 LC_TELEPHONE LC_TIME
12384 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12385 eval $as_var=C
; export $as_var
12391 # Required to use basename.
12392 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12398 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12399 as_basename
=basename
12405 # Name of the executable.
12406 as_me
=`$as_basename "$0" ||
12407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12408 X"$0" : 'X\(//\)$' \| \
12409 X"$0" : 'X\(/\)$' \| \
12410 . : '\(.\)' 2>/dev/null ||
12412 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12413 /^X\/\(\/\/\)$/{ s//\1/; q; }
12414 /^X\/\(\/\).*/{ s//\1/; q; }
12418 # PATH needs CR, and LINENO needs CR and PATH.
12419 # Avoid depending upon Character Ranges.
12420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12423 as_cr_digits
='0123456789'
12424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12426 # The user is always right.
12427 if test "${PATH_SEPARATOR+set}" != set; then
12428 echo "#! /bin/sh" >conf$$.sh
12429 echo "exit 0" >>conf$$.sh
12431 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12440 as_lineno_1
=$LINENO
12441 as_lineno_2
=$LINENO
12442 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12443 test "x$as_lineno_1" != "x$as_lineno_2" &&
12444 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12445 # Find who we are. Look in the path if we contain no path at all
12448 *[\\/]* ) as_myself
=$0 ;;
12449 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12450 for as_dir
in $PATH
12453 test -z "$as_dir" && as_dir
=.
12454 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12459 # We did not find ourselves, most probably we were run as `sh COMMAND'
12460 # in which case we are not to be found in the path.
12461 if test "x$as_myself" = x
; then
12464 if test ! -f "$as_myself"; then
12465 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12466 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12467 { (exit 1); exit 1; }; }
12469 case $CONFIG_SHELL in
12471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12472 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12475 test -z "$as_dir" && as_dir
=.
12476 for as_base
in sh bash ksh sh5
; do
12479 if ("$as_dir/$as_base" -c '
12480 as_lineno_1=$LINENO
12481 as_lineno_2=$LINENO
12482 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12483 test "x$as_lineno_1" != "x$as_lineno_2" &&
12484 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12485 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12486 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12487 CONFIG_SHELL
=$as_dir/$as_base
12488 export CONFIG_SHELL
12489 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12497 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12498 # uniformly replaced by the line number. The first 'sed' inserts a
12499 # line-number line before each line; the second 'sed' does the real
12500 # work. The second script uses 'N' to pair each line-number line
12501 # with the numbered line, and appends trailing '-' during
12502 # substitution so that $LINENO is not a special case at line end.
12503 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12504 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12505 sed '=' <$as_myself |
12510 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12513 s,^['$as_cr_digits']*\n,,
12514 ' >$as_me.lineno
&&
12515 chmod +x
$as_me.lineno ||
12516 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12517 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12518 { (exit 1); exit 1; }; }
12520 # Don't try to exec as it changes $[0], causing all sort of problems
12521 # (the dirname of $[0] is not the place where we might find the
12522 # original and so on. Autoconf is especially sensible to this).
12524 # Exit status is that of the last command.
12529 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12530 *c
*,-n*) ECHO_N
= ECHO_C
='
12532 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12533 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12536 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12542 rm -f conf$$ conf$$.exe conf$$.
file
12544 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12545 # We could just check for DJGPP; but this test a) works b) is more generic
12546 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12547 if test -f conf$$.exe
; then
12548 # Don't use ln at all; we don't have any links
12553 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12558 rm -f conf$$ conf$$.exe conf$$.
file
12560 if mkdir
-p .
2>/dev
/null
; then
12563 test -d .
/-p && rmdir .
/-p
12567 as_executable_p
="test -f"
12569 # Sed expression to map a string onto a valid CPP name.
12570 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12572 # Sed expression to map a string onto a valid variable name.
12573 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12577 # We need space, tab and new line, in precisely that order.
12587 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12588 # report actual input values of CONFIG_FILES etc. instead of their
12589 # values after options handling. Logging --version etc. is OK.
12593 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12594 ## Running $as_me. ##
12599 This file was extended by $as_me, which was
12600 generated by GNU Autoconf 2.59. Invocation command line was
12602 CONFIG_FILES = $CONFIG_FILES
12603 CONFIG_HEADERS = $CONFIG_HEADERS
12604 CONFIG_LINKS = $CONFIG_LINKS
12605 CONFIG_COMMANDS = $CONFIG_COMMANDS
12609 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12613 # Files that config.status was made for.
12614 if test -n "$ac_config_files"; then
12615 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12618 if test -n "$ac_config_headers"; then
12619 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12622 if test -n "$ac_config_links"; then
12623 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12626 if test -n "$ac_config_commands"; then
12627 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12630 cat >>$CONFIG_STATUS <<\_ACEOF
12633 \`$as_me' instantiates files from templates according to the
12634 current configuration.
12636 Usage: $0 [OPTIONS] [FILE]...
12638 -h, --help print this help, then exit
12639 -V, --version print version number, then exit
12640 -q, --quiet do not print progress messages
12641 -d, --debug don't remove temporary files
12642 --recheck update $as_me by reconfiguring in the same conditions
12643 --file=FILE[:TEMPLATE]
12644 instantiate the configuration file FILE
12645 --header=FILE[:TEMPLATE]
12646 instantiate the configuration header FILE
12648 Configuration files:
12651 Configuration headers:
12654 Configuration commands:
12657 Report bugs to <bug-autoconf@gnu.org>."
12660 cat >>$CONFIG_STATUS <<_ACEOF
12663 configured by $0, generated by GNU Autoconf 2.59,
12664 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12666 Copyright (C) 2003 Free Software Foundation, Inc.
12667 This config.status script is free software; the Free Software Foundation
12668 gives unlimited permission to copy, distribute and modify it."
12672 cat >>$CONFIG_STATUS <<\_ACEOF
12673 # If no file are specified by the user, then we need to provide default
12674 # value. By we need to know if files were specified by the user.
12680 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12681 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12689 *) # This is not an option, so the user has probably given explicit
12692 ac_need_defaults
=false
;;
12696 # Handling of the options.
12698 cat >>$CONFIG_STATUS <<\_ACEOF
12699 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12701 --version |
--vers* |
-V )
12702 echo "$ac_cs_version"; exit 0 ;;
12704 # Conflict between --help and --header
12705 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12706 Try \`$0 --help' for more information." >&5
12707 echo "$as_me: error: ambiguous option: $1
12708 Try \`$0 --help' for more information." >&2;}
12709 { (exit 1); exit 1; }; };;
12710 --help |
--hel |
-h )
12711 echo "$ac_cs_usage"; exit 0 ;;
12712 --debug |
--d* |
-d )
12714 --file |
--fil |
--fi |
--f )
12716 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12717 ac_need_defaults
=false
;;
12718 --header |
--heade |
--head |
--hea )
12720 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12721 ac_need_defaults
=false
;;
12722 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12723 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12726 # This is an error.
12727 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12728 Try \`$0 --help' for more information." >&5
12729 echo "$as_me: error: unrecognized option: $1
12730 Try \`$0 --help' for more information." >&2;}
12731 { (exit 1); exit 1; }; } ;;
12733 *) ac_config_targets
="$ac_config_targets $1" ;;
12739 ac_configure_extra_args
=
12741 if $ac_cs_silent; then
12743 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12747 cat >>$CONFIG_STATUS <<_ACEOF
12748 if \$ac_cs_recheck; then
12749 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12750 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12755 cat >>$CONFIG_STATUS <<_ACEOF
12757 # INIT-COMMANDS section.
12761 symbolic_link='$symbolic_link'
12768 cat >>$CONFIG_STATUS <<\_ACEOF
12769 for ac_config_target
in $ac_config_targets
12771 case "$ac_config_target" in
12772 # Handling of arguments.
12773 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
12774 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
12775 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
12776 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12777 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12778 { (exit 1); exit 1; }; };;
12782 # If the user did not use the arguments to specify the items to instantiate,
12783 # then the envvar interface is used. Set only those that are not.
12784 # We use the long form for the default assignment because of an extremely
12785 # bizarre bug on SunOS 4.1.3.
12786 if $ac_need_defaults; then
12787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12792 # Have a temporary directory for convenience. Make it in the build tree
12793 # simply because there is no reason to put it here, and in addition,
12794 # creating and moving files from /tmp can sometimes cause problems.
12795 # Create a temporary directory, and hook for its removal unless debugging.
12798 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12799 trap '{ (exit 1); exit 1; }' 1 2 13 15
12802 # Create a (secure) tmp directory for tmp files.
12805 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12806 test -n "$tmp" && test -d "$tmp"
12809 tmp
=.
/confstat$$
-$RANDOM
12810 (umask 077 && mkdir
$tmp)
12813 echo "$me: cannot create a temporary directory in ." >&2
12814 { (exit 1); exit 1; }
12819 cat >>$CONFIG_STATUS <<_ACEOF
12822 # CONFIG_FILES section.
12825 # No need to generate the scripts if there are no CONFIG_FILES.
12826 # This happens for instance when ./config.status config.h
12827 if test -n "\$CONFIG_FILES"; then
12828 # Protect against being on the right side of a sed subst in config.status.
12829 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12830 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12831 s,@SHELL@,$SHELL,;t t
12832 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12833 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12834 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12835 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12836 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12837 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12838 s,@exec_prefix@,$exec_prefix,;t t
12839 s,@prefix@,$prefix,;t t
12840 s,@program_transform_name@,$program_transform_name,;t t
12841 s,@bindir@,$bindir,;t t
12842 s,@sbindir@,$sbindir,;t t
12843 s,@libexecdir@,$libexecdir,;t t
12844 s,@datadir@,$datadir,;t t
12845 s,@sysconfdir@,$sysconfdir,;t t
12846 s,@sharedstatedir@,$sharedstatedir,;t t
12847 s,@localstatedir@,$localstatedir,;t t
12848 s,@libdir@,$libdir,;t t
12849 s,@includedir@,$includedir,;t t
12850 s,@oldincludedir@,$oldincludedir,;t t
12851 s,@infodir@,$infodir,;t t
12852 s,@mandir@,$mandir,;t t
12853 s,@build_alias@,$build_alias,;t t
12854 s,@host_alias@,$host_alias,;t t
12855 s,@target_alias@,$target_alias,;t t
12856 s,@DEFS@,$DEFS,;t t
12857 s,@ECHO_C@,$ECHO_C,;t t
12858 s,@ECHO_N@,$ECHO_N,;t t
12859 s,@ECHO_T@,$ECHO_T,;t t
12860 s,@LIBS@,$LIBS,;t t
12861 s,@build@,$build,;t t
12862 s,@build_cpu@,$build_cpu,;t t
12863 s,@build_vendor@,$build_vendor,;t t
12864 s,@build_os@,$build_os,;t t
12865 s,@host@,$host,;t t
12866 s,@host_cpu@,$host_cpu,;t t
12867 s,@host_vendor@,$host_vendor,;t t
12868 s,@host_os@,$host_os,;t t
12869 s,@target@,$target,;t t
12870 s,@target_cpu@,$target_cpu,;t t
12871 s,@target_vendor@,$target_vendor,;t t
12872 s,@target_os@,$target_os,;t t
12873 s,@build_subdir@,$build_subdir,;t t
12874 s,@host_subdir@,$host_subdir,;t t
12875 s,@target_subdir@,$target_subdir,;t t
12876 s,@GENINSRC@,$GENINSRC,;t t
12878 s,@CFLAGS@,$CFLAGS,;t t
12879 s,@LDFLAGS@,$LDFLAGS,;t t
12880 s,@CPPFLAGS@,$CPPFLAGS,;t t
12881 s,@ac_ct_CC@,$ac_ct_CC,;t t
12882 s,@EXEEXT@,$EXEEXT,;t t
12883 s,@OBJEXT@,$OBJEXT,;t t
12884 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
12885 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
12887 s,@strict1_warn@,$strict1_warn,;t t
12888 s,@warn_cflags@,$warn_cflags,;t t
12889 s,@WERROR@,$WERROR,;t t
12890 s,@nocommon_flag@,$nocommon_flag,;t t
12891 s,@TREEBROWSER@,$TREEBROWSER,;t t
12892 s,@EGREP@,$EGREP,;t t
12893 s,@valgrind_path@,$valgrind_path,;t t
12894 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
12895 s,@valgrind_command@,$valgrind_command,;t t
12896 s,@coverage_flags@,$coverage_flags,;t t
12897 s,@enable_multilib@,$enable_multilib,;t t
12898 s,@enable_shared@,$enable_shared,;t t
12899 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
12900 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
12901 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
12902 s,@onestep@,$onestep,;t t
12903 s,@SET_MAKE@,$SET_MAKE,;t t
12905 s,@LN_S@,$LN_S,;t t
12907 s,@RANLIB@,$RANLIB,;t t
12908 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12909 s,@ranlib_flags@,$ranlib_flags,;t t
12910 s,@INSTALL@,$INSTALL,;t t
12911 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12912 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12913 s,@make_compare_target@,$make_compare_target,;t t
12914 s,@have_mktemp_command@,$have_mktemp_command,;t t
12915 s,@MAKEINFO@,$MAKEINFO,;t t
12916 s,@BUILD_INFO@,$BUILD_INFO,;t t
12917 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
12918 s,@FLEX@,$FLEX,;t t
12919 s,@BISON@,$BISON,;t t
12920 s,@stage1_cflags@,$stage1_cflags,;t t
12921 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
12922 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
12923 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
12924 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
12925 s,@LIBICONV@,$LIBICONV,;t t
12926 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
12927 s,@manext@,$manext,;t t
12928 s,@objext@,$objext,;t t
12929 s,@gthread_flags@,$gthread_flags,;t t
12930 s,@extra_modes_file@,$extra_modes_file,;t t
12931 s,@FORBUILD@,$FORBUILD,;t t
12932 s,@PACKAGE@,$PACKAGE,;t t
12933 s,@VERSION@,$VERSION,;t t
12934 s,@USE_NLS@,$USE_NLS,;t t
12935 s,@LIBINTL@,$LIBINTL,;t t
12936 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12937 s,@INCINTL@,$INCINTL,;t t
12938 s,@XGETTEXT@,$XGETTEXT,;t t
12939 s,@GMSGFMT@,$GMSGFMT,;t t
12940 s,@POSUB@,$POSUB,;t t
12941 s,@CATALOGS@,$CATALOGS,;t t
12942 s,@CROSS@,$CROSS,;t t
12944 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
12945 s,@inhibit_libc@,$inhibit_libc,;t t
12946 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
12947 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
12948 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12949 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12950 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
12951 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
12952 s,@collect2@,$collect2,;t t
12953 s,@libgcc_visibility@,$libgcc_visibility,;t t
12955 s,@zlibdir@,$zlibdir,;t t
12956 s,@zlibinc@,$zlibinc,;t t
12957 s,@MAINT@,$MAINT,;t t
12958 s,@ANDER@,$ANDER,;t t
12959 s,@BANSHEEINC@,$BANSHEEINC,;t t
12960 s,@BANSHEELIB@,$BANSHEELIB,;t t
12961 s,@gcc_tooldir@,$gcc_tooldir,;t t
12962 s,@dollar@,$dollar,;t t
12963 s,@slibdir@,$slibdir,;t t
12964 s,@objdir@,$objdir,;t t
12965 s,@subdirs@,$subdirs,;t t
12966 s,@srcdir@,$srcdir,;t t
12967 s,@all_boot_languages@,$all_boot_languages,;t t
12968 s,@all_compilers@,$all_compilers,;t t
12969 s,@all_gtfiles@,$all_gtfiles,;t t
12970 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
12971 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
12972 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
12973 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
12974 s,@all_languages@,$all_languages,;t t
12975 s,@all_stagestuff@,$all_stagestuff,;t t
12976 s,@build_exeext@,$build_exeext,;t t
12977 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
12978 s,@build_xm_file_list@,$build_xm_file_list,;t t
12979 s,@build_xm_include_list@,$build_xm_include_list,;t t
12980 s,@build_xm_defines@,$build_xm_defines,;t t
12981 s,@check_languages@,$check_languages,;t t
12982 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
12983 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
12984 s,@cpp_install_dir@,$cpp_install_dir,;t t
12985 s,@xmake_file@,$xmake_file,;t t
12986 s,@tmake_file@,$tmake_file,;t t
12987 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
12988 s,@extra_headers_list@,$extra_headers_list,;t t
12989 s,@extra_objs@,$extra_objs,;t t
12990 s,@extra_parts@,$extra_parts,;t t
12991 s,@extra_passes@,$extra_passes,;t t
12992 s,@extra_programs@,$extra_programs,;t t
12993 s,@float_h_file@,$float_h_file,;t t
12994 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
12995 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
12996 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
12997 s,@gcc_version@,$gcc_version,;t t
12998 s,@gcc_version_full@,$gcc_version_full,;t t
12999 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13000 s,@host_exeext@,$host_exeext,;t t
13001 s,@host_xm_file_list@,$host_xm_file_list,;t t
13002 s,@host_xm_include_list@,$host_xm_include_list,;t t
13003 s,@host_xm_defines@,$host_xm_defines,;t t
13004 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13005 s,@install@,$install,;t t
13006 s,@lang_opt_files@,$lang_opt_files,;t t
13007 s,@lang_specs_files@,$lang_specs_files,;t t
13008 s,@lang_tree_files@,$lang_tree_files,;t t
13009 s,@local_prefix@,$local_prefix,;t t
13010 s,@md_file@,$md_file,;t t
13011 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13012 s,@out_file@,$out_file,;t t
13013 s,@out_object_file@,$out_object_file,;t t
13014 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13015 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13016 s,@symbolic_link@,$symbolic_link,;t t
13017 s,@thread_file@,$thread_file,;t t
13018 s,@tm_file_list@,$tm_file_list,;t t
13019 s,@tm_include_list@,$tm_include_list,;t t
13020 s,@tm_defines@,$tm_defines,;t t
13021 s,@tm_p_file_list@,$tm_p_file_list,;t t
13022 s,@tm_p_include_list@,$tm_p_include_list,;t t
13023 s,@xm_file_list@,$xm_file_list,;t t
13024 s,@xm_include_list@,$xm_include_list,;t t
13025 s,@xm_defines@,$xm_defines,;t t
13026 s,@target_noncanonical@,$target_noncanonical,;t t
13027 s,@c_target_objs@,$c_target_objs,;t t
13028 s,@cxx_target_objs@,$cxx_target_objs,;t t
13029 s,@target_cpu_default@,$target_cpu_default,;t t
13030 s,@GMPLIBS@,$GMPLIBS,;t t
13031 s,@GMPINC@,$GMPINC,;t t
13032 s,@LIBOBJS@,$LIBOBJS,;t t
13033 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13034 /@language_hooks@/r $language_hooks
13035 s,@language_hooks@,,;t t
13040 cat >>$CONFIG_STATUS <<\_ACEOF
13041 # Split the substitutions into bite-sized pieces for seds with
13042 # small command number limits, like on Digital OSF/1 and HP-UX.
13043 ac_max_sed_lines
=48
13044 ac_sed_frag
=1 # Number of current file.
13045 ac_beg
=1 # First line for current file.
13046 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13049 while $ac_more_lines; do
13050 if test $ac_beg -gt 1; then
13051 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13053 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13055 if test ! -s $tmp/subs.frag
; then
13056 ac_more_lines
=false
13058 # The purpose of the label and of the branching condition is to
13059 # speed up the sed processing (if there are no `@' at all, there
13060 # is no need to browse any of the substitutions).
13061 # These are the two extra sed commands mentioned above.
13063 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13064 if test -z "$ac_sed_cmds"; then
13065 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13067 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13069 ac_sed_frag
=`expr $ac_sed_frag + 1`
13071 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13074 if test -z "$ac_sed_cmds"; then
13077 fi # test -n "$CONFIG_FILES"
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13084 - |
*:- |
*:-:* ) # input from stdin
13086 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13087 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13088 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13089 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13090 * ) ac_file_in
=$ac_file.
in ;;
13093 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13094 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13096 X"$ac_file" : 'X\(//\)[^/]' \| \
13097 X"$ac_file" : 'X\(//\)$' \| \
13098 X"$ac_file" : 'X\(/\)' \| \
13099 . : '\(.\)' 2>/dev/null ||
13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13103 /^X\(\/\/\)$/{ s//\1/; q; }
13104 /^X\(\/\).*/{ s//\1/; q; }
13106 { if $as_mkdir_p; then
13111 while test ! -d "$as_dir"; do
13112 as_dirs
="$as_dir $as_dirs"
13113 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13115 X"$as_dir" : 'X\(//\)[^/]' \| \
13116 X"$as_dir" : 'X\(//\)$' \| \
13117 X"$as_dir" : 'X\(/\)' \| \
13118 . : '\(.\)' 2>/dev/null ||
13120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13122 /^X\(\/\/\)$/{ s//\1/; q; }
13123 /^X\(\/\).*/{ s//\1/; q; }
13126 test ! -n "$as_dirs" || mkdir
$as_dirs
13127 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13129 { (exit 1); exit 1; }; }; }
13133 if test "$ac_dir" != .
; then
13134 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13135 # A "../" for each directory in $ac_dir_suffix.
13136 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13138 ac_dir_suffix
= ac_top_builddir
=
13142 .
) # No --srcdir option. We are building in place.
13144 if test -z "$ac_top_builddir"; then
13147 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13149 [\\/]* | ?
:[\\/]* ) # Absolute path.
13150 ac_srcdir
=$srcdir$ac_dir_suffix;
13151 ac_top_srcdir
=$srcdir ;;
13152 *) # Relative path.
13153 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13154 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13157 # Do not use `cd foo && pwd` to compute absolute paths, because
13158 # the directories may not exist.
13160 .
) ac_abs_builddir
="$ac_dir";;
13163 .
) ac_abs_builddir
=`pwd`;;
13164 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13165 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13168 case $ac_abs_builddir in
13169 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13171 case ${ac_top_builddir}.
in
13172 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13173 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13174 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13177 case $ac_abs_builddir in
13178 .
) ac_abs_srcdir
=$ac_srcdir;;
13181 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13182 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13183 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13186 case $ac_abs_builddir in
13187 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13189 case $ac_top_srcdir in
13190 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13191 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13192 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13198 if test x
"$ac_file" != x-
; then
13199 { echo "$as_me:$LINENO: creating $ac_file" >&5
13200 echo "$as_me: creating $ac_file" >&6;}
13203 # Let's still pretend it is `configure' which instantiates (i.e., don't
13204 # use $as_me), people would be surprised to read:
13205 # /* config.h. Generated by config.status. */
13206 if test x
"$ac_file" = x-
; then
13209 configure_input
="$ac_file. "
13211 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13212 sed 's,.*/,,'` by configure."
13214 # First look for the input files in the build tree, otherwise in the
13216 ac_file_inputs
=`IFS=:
13217 for f in $ac_file_in; do
13219 -) echo $tmp/stdin ;;
13221 # Absolute (can't be DOS-style, as IFS=:)
13222 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13223 echo "$as_me: error: cannot find input file: $f" >&2;}
13224 { (exit 1); exit 1; }; }
13227 if test -f "$f"; then
13230 elif test -f "$srcdir/$f"; then
13235 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13236 echo "$as_me: error: cannot find input file: $f" >&2;}
13237 { (exit 1); exit 1; }; }
13240 done` ||
{ (exit 1); exit 1; }
13242 cat >>$CONFIG_STATUS <<_ACEOF
13246 cat >>$CONFIG_STATUS <<\_ACEOF
13248 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13249 s
,@configure_input@
,$configure_input,;t t
13250 s
,@srcdir@
,$ac_srcdir,;t t
13251 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13252 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13253 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13254 s
,@builddir@
,$ac_builddir,;t t
13255 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13256 s
,@top_builddir@
,$ac_top_builddir,;t t
13257 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13258 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13260 if test x"$ac_file" != x-; then
13261 mv $tmp/out $ac_file
13269 cat >>$CONFIG_STATUS <<\_ACEOF
13272 # CONFIG_HEADER section.
13275 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13276 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13278 # ac_d sets the value in "#define NAME VALUE" lines.
13279 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13280 ac_dB
='[ ].*$,\1#\2'
13283 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13284 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13285 ac_uB
='$,\1#\2define\3'
13289 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13290 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13292 - |
*:- |
*:-:* ) # input from stdin
13294 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13295 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13296 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13297 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13298 * ) ac_file_in
=$ac_file.
in ;;
13301 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13302 echo "$as_me: creating $ac_file" >&6;}
13304 # First look for the input files in the build tree, otherwise in the
13306 ac_file_inputs
=`IFS=:
13307 for f in $ac_file_in; do
13309 -) echo $tmp/stdin ;;
13311 # Absolute (can't be DOS-style, as IFS=:)
13312 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13313 echo "$as_me: error: cannot find input file: $f" >&2;}
13314 { (exit 1); exit 1; }; }
13315 # Do quote $f, to prevent DOS paths from being IFS'd.
13318 if test -f "$f"; then
13321 elif test -f "$srcdir/$f"; then
13326 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13327 echo "$as_me: error: cannot find input file: $f" >&2;}
13328 { (exit 1); exit 1; }; }
13331 done` ||
{ (exit 1); exit 1; }
13332 # Remove the trailing spaces.
13333 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13337 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13338 # `conftest.undefs', that substitutes the proper values into
13339 # config.h.in to produce config.h. The first handles `#define'
13340 # templates, and the second `#undef' templates.
13341 # And first: Protect against being on the right side of a sed subst in
13342 # config.status. Protect against being in an unquoted here document
13343 # in config.status.
13344 rm -f conftest.defines conftest.undefs
13345 # Using a here document instead of a string reduces the quoting nightmare.
13346 # Putting comments in sed scripts is not portable.
13348 # `end' is used to avoid that the second main sed command (meant for
13349 # 0-ary CPP macros) applies to n-ary macro definitions.
13350 # See the Autoconf documentation for `clear'.
13351 cat >confdef2sed.
sed <<\_ACEOF
13356 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13358 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13361 # If some macros were called several times there might be several times
13362 # the same #defines, which is useless. Nevertheless, we may not want to
13363 # sort them, since we want the *last* AC-DEFINE to be honored.
13364 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13365 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13366 rm -f confdef2sed.sed
13368 # This sed command replaces #undef with comments. This is necessary, for
13369 # example, in the case of _POSIX_SOURCE, which is predefined and required
13370 # on some systems where configure will not decide to define it.
13371 cat >>conftest.undefs <<\_ACEOF
13372 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13375 # Break up conftest.defines because some shells have a limit on the size
13376 # of here documents, and old seds have small limits too (100 cmds).
13377 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13378 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13379 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13380 echo ' :' >>$CONFIG_STATUS
13381 rm -f conftest.tail
13382 while grep . conftest.defines >/dev/null
13384 # Write a limited-size here document to $tmp/defines.sed.
13385 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13386 # Speed up: don't consider the non `#define' lines.
13387 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13388 # Work around the forget-to-reset-the-flag bug.
13389 echo 't clr' >>$CONFIG_STATUS
13390 echo ': clr' >>$CONFIG_STATUS
13391 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13393 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13395 mv $tmp/out $tmp/in
13397 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13398 rm -f conftest.defines
13399 mv conftest.
tail conftest.defines
13401 rm -f conftest.defines
13402 echo ' fi # grep' >>$CONFIG_STATUS
13403 echo >>$CONFIG_STATUS
13405 # Break up conftest.undefs because some shells have a limit on the size
13406 # of here documents, and old seds have small limits too (100 cmds).
13407 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13408 rm -f conftest.
tail
13409 while grep . conftest.undefs
>/dev
/null
13411 # Write a limited-size here document to $tmp/undefs.sed.
13412 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13413 # Speed up: don't consider the non
`#undef'
13414 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13415 # Work around the forget-to-reset-the-flag bug.
13416 echo 't clr' >>$CONFIG_STATUS
13417 echo ': clr' >>$CONFIG_STATUS
13418 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13420 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13422 mv $tmp/out $tmp/in
13424 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13425 rm -f conftest.undefs
13426 mv conftest.tail conftest.undefs
13428 rm -f conftest.undefs
13430 cat >>$CONFIG_STATUS <<\_ACEOF
13431 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13432 # use $as_me), people would be surprised to read:
13433 # /* config.h. Generated by config.status. */
13434 if test x
"$ac_file" = x-
; then
13435 echo "/* Generated by configure. */" >$tmp/config.h
13437 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13439 cat $tmp/in >>$tmp/config.h
13441 if test x
"$ac_file" != x-
; then
13442 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13443 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13444 echo "$as_me: $ac_file is unchanged" >&6;}
13446 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13447 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13448 X"$ac_file" : 'X\(//\)[^/]' \| \
13449 X"$ac_file" : 'X\(//\)$' \| \
13450 X"$ac_file" : 'X\(/\)' \| \
13451 . : '\(.\)' 2>/dev/null ||
13453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13455 /^X\(\/\/\)$/{ s//\1/; q; }
13456 /^X\(\/\).*/{ s//\1/; q; }
13458 { if $as_mkdir_p; then
13463 while test ! -d "$as_dir"; do
13464 as_dirs
="$as_dir $as_dirs"
13465 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13467 X"$as_dir" : 'X\(//\)[^/]' \| \
13468 X"$as_dir" : 'X\(//\)$' \| \
13469 X"$as_dir" : 'X\(/\)' \| \
13470 . : '\(.\)' 2>/dev/null ||
13472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13474 /^X\(\/\/\)$/{ s//\1/; q; }
13475 /^X\(\/\).*/{ s//\1/; q; }
13478 test ! -n "$as_dirs" || mkdir
$as_dirs
13479 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13480 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13481 { (exit 1); exit 1; }; }; }
13484 mv $tmp/config.h
$ac_file
13488 rm -f $tmp/config.h
13492 cat >>$CONFIG_STATUS <<\_ACEOF
13495 # CONFIG_COMMANDS section.
13497 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13498 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13499 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13500 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13501 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13502 X"$ac_dest" : 'X\(//\)[^/]' \| \
13503 X"$ac_dest" : 'X\(//\)$' \| \
13504 X"$ac_dest" : 'X\(/\)' \| \
13505 . : '\(.\)' 2>/dev/null ||
13507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13508 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13509 /^X\(\/\/\)$/{ s//\1/; q; }
13510 /^X\(\/\).*/{ s//\1/; q; }
13512 { if $as_mkdir_p; then
13517 while test ! -d "$as_dir"; do
13518 as_dirs
="$as_dir $as_dirs"
13519 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13521 X"$as_dir" : 'X\(//\)[^/]' \| \
13522 X"$as_dir" : 'X\(//\)$' \| \
13523 X"$as_dir" : 'X\(/\)' \| \
13524 . : '\(.\)' 2>/dev/null ||
13526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13528 /^X\(\/\/\)$/{ s//\1/; q; }
13529 /^X\(\/\).*/{ s//\1/; q; }
13532 test ! -n "$as_dirs" || mkdir
$as_dirs
13533 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13535 { (exit 1); exit 1; }; }; }
13539 if test "$ac_dir" != .
; then
13540 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13541 # A "../" for each directory in $ac_dir_suffix.
13542 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13544 ac_dir_suffix
= ac_top_builddir
=
13548 .
) # No --srcdir option. We are building in place.
13550 if test -z "$ac_top_builddir"; then
13553 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13555 [\\/]* | ?
:[\\/]* ) # Absolute path.
13556 ac_srcdir
=$srcdir$ac_dir_suffix;
13557 ac_top_srcdir
=$srcdir ;;
13558 *) # Relative path.
13559 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13560 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13563 # Do not use `cd foo && pwd` to compute absolute paths, because
13564 # the directories may not exist.
13566 .
) ac_abs_builddir
="$ac_dir";;
13569 .
) ac_abs_builddir
=`pwd`;;
13570 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13571 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13574 case $ac_abs_builddir in
13575 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13577 case ${ac_top_builddir}.
in
13578 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13579 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13580 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13583 case $ac_abs_builddir in
13584 .
) ac_abs_srcdir
=$ac_srcdir;;
13587 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13588 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13589 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13592 case $ac_abs_builddir in
13593 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13595 case $ac_top_srcdir in
13596 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13597 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13598 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13603 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13604 echo "$as_me: executing $ac_dest commands" >&6;}
13607 case ${CONFIG_HEADERS} in
13608 *auto-host.h
:config.
in*)
13611 # Make sure all the subdirs exist.
13614 test -d $d || mkdir
$d
13616 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13617 # bootstrapping and the installation procedure can still use
13618 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13619 # FLAGS_TO_PASS has been modified to solve the problem there.
13620 # This is virtually a duplicate of what happens in configure.lang; we do
13621 # an extra check to make sure this only happens if ln -s can be used.
13622 if test "$symbolic_link" = "ln -s"; then
13623 for d
in ${subdirs} fixinc
; do
13624 STARTDIR
=`${PWDCMD-pwd}`
13626 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13629 $symbolic_link ..
/$t $t 2>/dev
/null
13639 cat >>$CONFIG_STATUS <<\_ACEOF
13641 { (exit 0); exit 0; }
13643 chmod +x
$CONFIG_STATUS
13644 ac_clean_files
=$ac_clean_files_save
13647 # configure is writing to config.log, and then calls config.status.
13648 # config.status does its own redirection, appending to config.log.
13649 # Unfortunately, on DOS this fails, as config.log is still kept open
13650 # by configure, so config.status won't be able to write to it; its
13651 # output is simply discarded. So we exec the FD to /dev/null,
13652 # effectively closing config.log, so it can be properly (re)opened and
13653 # appended to by config.status. When coming back to configure, we
13654 # need to make the FD available again.
13655 if test "$no_create" != yes; then
13657 ac_config_status_args
=
13658 test "$silent" = yes &&
13659 ac_config_status_args
="$ac_config_status_args --quiet"
13661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13664 # would make configure fail if this is the last instruction.
13665 $ac_cs_success ||
{ (exit 1); exit 1; }