2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags TREEBROWSER enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO 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-coverage=LEVEL
873 enable compiler
\'s code coverage collection.
874 Use to measure compiler performance and
locate
875 unused parts of the compiler. With LEVEL
, specify
876 optimization. Values are opt
, noopt
,
878 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
879 --enable-tree-browser enable the tree browsing routines
for debugging
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
3262 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3263 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3264 if test "${gcc_cv_c__bool+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 cat >conftest.
$ac_ext <<_ACEOF
3270 cat confdefs.h
>>conftest.
$ac_ext
3271 cat >>conftest.
$ac_ext <<_ACEOF
3272 /* end confdefs.h. */
3282 rm -f conftest.
$ac_objext
3283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>conftest.er1
3286 grep -v '^ *+' conftest.er1
>conftest.err
3288 cat conftest.err
>&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } &&
3291 { ac_try
='test -z "$ac_c_werror_flag"
3292 || test ! -s conftest.err'
3293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try
='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.
$ac_ext >&5
3311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3314 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3315 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3316 if test $gcc_cv_c__bool = yes; then
3318 cat >>confdefs.h
<<\_ACEOF
3319 #define HAVE__BOOL 1
3325 # sizeof(char) is 1 by definition.
3326 echo "$as_me:$LINENO: checking size of void *" >&5
3327 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3328 if test "${ac_cv_sizeof_void_p+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3332 cat >conftest.
$ac_ext <<_ACEOF
3335 cat confdefs.h
>>conftest.
$ac_ext
3336 cat >>conftest.
$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3345 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3350 rm -f conftest.
$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1
>conftest.err
3356 cat conftest.err
>&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try
='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try
='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_sizeof_void_p
=$ac_size
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.
$ac_ext >&5
3378 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3379 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3384 if test x
$ac_cv_sizeof_void_p = x
; then
3385 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3386 echo "$as_me: error: cannot determine a size for void *" >&2;}
3387 { (exit 1); exit 1; }; }
3389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3390 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3392 cat >>confdefs.h
<<_ACEOF
3393 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3397 echo "$as_me:$LINENO: checking size of short" >&5
3398 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3399 if test "${ac_cv_sizeof_short+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3403 cat >conftest.
$ac_ext <<_ACEOF
3406 cat confdefs.h
>>conftest.
$ac_ext
3407 cat >>conftest.
$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3409 #include "confdefs.h"
3410 #include <sys/types.h>
3416 switch (0) case 0: case (sizeof (short) == $ac_size):;
3421 rm -f conftest.
$ac_objext
3422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423 (eval $ac_compile) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1
>conftest.err
3427 cat conftest.err
>&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
3430 { ac_try
='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try
='test -s conftest.$ac_objext'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_sizeof_short
=$ac_size
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3449 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3450 if test x
$ac_cv_sizeof_short != x
; then break; fi
3455 if test x
$ac_cv_sizeof_short = x
; then
3456 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3457 echo "$as_me: error: cannot determine a size for short" >&2;}
3458 { (exit 1); exit 1; }; }
3460 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3461 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3463 cat >>confdefs.h
<<_ACEOF
3464 #define SIZEOF_SHORT $ac_cv_sizeof_short
3468 echo "$as_me:$LINENO: checking size of int" >&5
3469 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3470 if test "${ac_cv_sizeof_int+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3474 cat >conftest.
$ac_ext <<_ACEOF
3477 cat confdefs.h
>>conftest.
$ac_ext
3478 cat >>conftest.
$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include "confdefs.h"
3481 #include <sys/types.h>
3487 switch (0) case 0: case (sizeof (int) == $ac_size):;
3492 rm -f conftest.
$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3496 grep -v '^ *+' conftest.er1
>conftest.err
3498 cat conftest.err
>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try
='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try
='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_sizeof_int
=$ac_size
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3521 if test x
$ac_cv_sizeof_int != x
; then break; fi
3526 if test x
$ac_cv_sizeof_int = x
; then
3527 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3528 echo "$as_me: error: cannot determine a size for int" >&2;}
3529 { (exit 1); exit 1; }; }
3531 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3532 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3534 cat >>confdefs.h
<<_ACEOF
3535 #define SIZEOF_INT $ac_cv_sizeof_int
3539 echo "$as_me:$LINENO: checking size of long" >&5
3540 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3541 if test "${ac_cv_sizeof_long+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3545 cat >conftest.
$ac_ext <<_ACEOF
3548 cat confdefs.h
>>conftest.
$ac_ext
3549 cat >>conftest.
$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3558 switch (0) case 0: case (sizeof (long) == $ac_size):;
3563 rm -f conftest.
$ac_objext
3564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3565 (eval $ac_compile) 2>conftest.er1
3567 grep -v '^ *+' conftest.er1
>conftest.err
3569 cat conftest.err
>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } &&
3572 { ac_try
='test -z "$ac_c_werror_flag"
3573 || test ! -s conftest.err'
3574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; } &&
3579 { ac_try
='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 ac_cv_sizeof_long
=$ac_size
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.
$ac_ext >&5
3591 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3592 if test x
$ac_cv_sizeof_long != x
; then break; fi
3597 if test x
$ac_cv_sizeof_long = x
; then
3598 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3599 echo "$as_me: error: cannot determine a size for long" >&2;}
3600 { (exit 1); exit 1; }; }
3602 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3603 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3605 cat >>confdefs.h
<<_ACEOF
3606 #define SIZEOF_LONG $ac_cv_sizeof_long
3610 if test $ac_cv_c_long_long = yes; then
3611 echo "$as_me:$LINENO: checking size of long long" >&5
3612 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3613 if test "${ac_cv_sizeof_long_long+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3617 cat >conftest.
$ac_ext <<_ACEOF
3620 cat confdefs.h
>>conftest.
$ac_ext
3621 cat >>conftest.
$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3630 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3635 rm -f conftest.
$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>conftest.er1
3639 grep -v '^ *+' conftest.er1
>conftest.err
3641 cat conftest.err
>&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } &&
3644 { ac_try
='test -z "$ac_c_werror_flag"
3645 || test ! -s conftest.err'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; } &&
3651 { ac_try
='test -s conftest.$ac_objext'
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3657 ac_cv_sizeof_long_long
=$ac_size
3659 echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.
$ac_ext >&5
3663 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3664 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3669 if test x
$ac_cv_sizeof_long_long = x
; then
3670 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3671 echo "$as_me: error: cannot determine a size for long long" >&2;}
3672 { (exit 1); exit 1; }; }
3674 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3675 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3677 cat >>confdefs.h
<<_ACEOF
3678 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3683 if test $ac_cv_c___int64 = yes; then
3684 echo "$as_me:$LINENO: checking size of __int64" >&5
3685 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3686 if test "${ac_cv_sizeof___int64+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3690 cat >conftest.
$ac_ext <<_ACEOF
3693 cat confdefs.h
>>conftest.
$ac_ext
3694 cat >>conftest.
$ac_ext <<_ACEOF
3695 /* end confdefs.h. */
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3703 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3708 rm -f conftest.
$ac_objext
3709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>conftest.er1
3712 grep -v '^ *+' conftest.er1
>conftest.err
3714 cat conftest.err
>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try
='test -z "$ac_c_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try
='test -s conftest.$ac_objext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_sizeof___int64
=$ac_size
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3737 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3742 if test x
$ac_cv_sizeof___int64 = x
; then
3743 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3744 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3745 { (exit 1); exit 1; }; }
3747 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3748 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3750 cat >>confdefs.h
<<_ACEOF
3751 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3757 # ---------------------
3758 # Warnings and checking
3759 # ---------------------
3761 # Check $CC warning features (if it's GCC).
3762 # We want to use -pedantic, but we don't want warnings about
3765 # So, we only use -pedantic if we can disable those warnings.
3767 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3768 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3769 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 save_CFLAGS
="$CFLAGS"
3773 CFLAGS
="-Wno-long-long"
3774 cat >conftest.
$ac_ext <<_ACEOF
3777 cat confdefs.h
>>conftest.
$ac_ext
3778 cat >>conftest.
$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3782 rm -f conftest.
$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784 (eval $ac_compile) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } &&
3791 { ac_try
='test -z "$ac_c_werror_flag"
3792 || test ! -s conftest.err'
3793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); }; } &&
3798 { ac_try
='test -s conftest.$ac_objext'
3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }; }; then
3804 ac_cv_prog_cc_w_no_long_long
=yes
3806 echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.
$ac_ext >&5
3809 ac_cv_prog_cc_w_no_long_long
=no
3811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3812 CFLAGS
="$save_CFLAGS"
3815 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3816 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3818 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3819 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3820 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 save_CFLAGS
="$CFLAGS"
3824 CFLAGS
="-Wno-variadic-macros"
3825 cat >conftest.
$ac_ext <<_ACEOF
3828 cat confdefs.h
>>conftest.
$ac_ext
3829 cat >>conftest.
$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3833 rm -f conftest.
$ac_objext
3834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3835 (eval $ac_compile) 2>conftest.er1
3837 grep -v '^ *+' conftest.er1
>conftest.err
3839 cat conftest.err
>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try
='test -z "$ac_c_werror_flag"
3843 || test ! -s conftest.err'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try
='test -s conftest.$ac_objext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 ac_cv_prog_cc_w_no_variadic_macros
=yes
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.
$ac_ext >&5
3860 ac_cv_prog_cc_w_no_variadic_macros
=no
3862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3863 CFLAGS
="$save_CFLAGS"
3866 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3867 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3870 if test $ac_cv_prog_cc_w_no_long_long = yes \
3871 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3872 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
3876 # Add -Wold-style-definition if it's accepted
3877 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3878 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3879 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 save_CFLAGS
="$CFLAGS"
3883 CFLAGS
="-Wold-style-definition"
3884 cat >conftest.
$ac_ext <<_ACEOF
3887 cat confdefs.h
>>conftest.
$ac_ext
3888 cat >>conftest.
$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3892 rm -f conftest.
$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3896 grep -v '^ *+' conftest.er1
>conftest.err
3898 cat conftest.err
>&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try
='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try
='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 ac_cv_prog_cc_w_old_style_definition
=yes
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.
$ac_ext >&5
3919 ac_cv_prog_cc_w_old_style_definition
=no
3921 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3922 CFLAGS
="$save_CFLAGS"
3925 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3926 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3927 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3928 strict1_warn
="${strict1_warn} -Wold-style-definition"
3931 # Enable -Werror, period.
3932 # Check whether --enable-werror_always or --disable-werror_always was given.
3933 if test "${enable_werror_always+set}" = set; then
3934 enableval
="$enable_werror_always"
3937 enable_werror_always
=no
3939 if test x
${enable_werror_always} = xyes
; then
3940 strict1_warn
="${strict1_warn} -Werror"
3944 # If the native compiler is GCC, we can enable warnings even in stage1.
3945 # That's useful for people building cross-compilers, or just running a
3948 if test "x$GCC" = "xyes"; then
3949 warn_cflags
='$(GCC_WARN_CFLAGS)'
3953 # Enable -Werror in bootstrap stage2 and later.
3954 # Change the default to "no" on release branches.
3955 # Check whether --enable-werror or --disable-werror was given.
3956 if test "${enable_werror+set}" = set; then
3957 enableval
="$enable_werror"
3962 if test x
$enable_werror = xyes
; then
3967 # Enable expensive internal checks
3968 # Check whether --enable-checking or --disable-checking was given.
3969 if test "${enable_checking+set}" = set; then
3970 enableval
="$enable_checking"
3974 ac_rtlflag_checking
=
3976 ac_gc_always_collect
=
3978 case "${enableval}" in
3979 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3980 ac_rtlflag_checking
=1 ;;
3982 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3983 set fnord
$enableval; shift
3988 misc
) ac_checking
=1 ;;
3989 tree
) ac_tree_checking
=1 ;;
3990 rtlflag
) ac_rtlflag_checking
=1 ;;
3991 rtl
) ac_rtl_checking
=1 ;;
3992 gc
) ac_gc_checking
=1 ;;
3993 gcac
) ac_gc_always_collect
=1 ;;
3994 fold) ac_fold_checking
=1 ;;
3995 valgrind
) ac_checking_valgrind
=1 ;;
3996 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3997 echo "$as_me: error: unknown check category $check" >&2;}
3998 { (exit 1); exit 1; }; } ;;
4005 # Enable some checks by default for development versions of GCC
4006 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
4009 if test x
$ac_checking != x
; then
4011 cat >>confdefs.h
<<\_ACEOF
4012 #define ENABLE_CHECKING 1
4015 nocommon_flag
=-fno-common
4018 if test x
$ac_tree_checking != x
; then
4020 cat >>confdefs.h
<<\_ACEOF
4021 #define ENABLE_TREE_CHECKING 1
4025 if test x
$ac_rtl_checking != x
; then
4027 cat >>confdefs.h
<<\_ACEOF
4028 #define ENABLE_RTL_CHECKING 1
4032 if test x
$ac_rtlflag_checking != x
; then
4034 cat >>confdefs.h
<<\_ACEOF
4035 #define ENABLE_RTL_FLAG_CHECKING 1
4039 if test x
$ac_gc_checking != x
; then
4041 cat >>confdefs.h
<<\_ACEOF
4042 #define ENABLE_GC_CHECKING 1
4046 if test x
$ac_gc_always_collect != x
; then
4048 cat >>confdefs.h
<<\_ACEOF
4049 #define ENABLE_GC_ALWAYS_COLLECT 1
4053 if test x
$ac_fold_checking != x
; then
4055 cat >>confdefs.h
<<\_ACEOF
4056 #define ENABLE_FOLD_CHECKING 1
4060 valgrind_path_defines
=
4064 echo "$as_me:$LINENO: checking for egrep" >&5
4065 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4066 if test "${ac_cv_prog_egrep+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4070 then ac_cv_prog_egrep
='grep -E'
4071 else ac_cv_prog_egrep
='egrep'
4074 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4075 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4076 EGREP
=$ac_cv_prog_egrep
4079 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4080 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4081 if test "${ac_cv_header_stdc+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 cat >conftest.
$ac_ext <<_ACEOF
4087 cat confdefs.h
>>conftest.
$ac_ext
4088 cat >>conftest.
$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4103 rm -f conftest.
$ac_objext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4105 (eval $ac_compile) 2>conftest.er1
4107 grep -v '^ *+' conftest.er1
>conftest.err
4109 cat conftest.err
>&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try
='test -z "$ac_c_werror_flag"
4113 || test ! -s conftest.err'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; } &&
4119 { ac_try
='test -s conftest.$ac_objext'
4120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); }; }; then
4125 ac_cv_header_stdc
=yes
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.
$ac_ext >&5
4130 ac_cv_header_stdc
=no
4132 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat >conftest.
$ac_ext <<_ACEOF
4139 cat confdefs.h
>>conftest.
$ac_ext
4140 cat >>conftest.
$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "memchr" >/dev
/null
2>&1; then
4149 ac_cv_header_stdc
=no
4155 if test $ac_cv_header_stdc = yes; then
4156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4157 cat >conftest.
$ac_ext <<_ACEOF
4160 cat confdefs.h
>>conftest.
$ac_ext
4161 cat >>conftest.
$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4167 $EGREP "free" >/dev
/null
2>&1; then
4170 ac_cv_header_stdc
=no
4176 if test $ac_cv_header_stdc = yes; then
4177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4178 if test "$cross_compiling" = yes; then
4181 cat >conftest.
$ac_ext <<_ACEOF
4184 cat confdefs.h
>>conftest.
$ac_ext
4185 cat >>conftest.
$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 #if ((' ' & 0x0FF) == 0x020)
4189 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4190 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4192 # define ISLOWER(c) \
4193 (('a' <= (c) && (c) <= 'i') \
4194 || ('j' <= (c) && (c) <= 'r') \
4195 || ('s' <= (c) && (c) <= 'z'))
4196 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 for (i = 0; i < 256; i++)
4205 if (XOR (islower (i), ISLOWER (i))
4206 || toupper (i) != TOUPPER (i))
4211 rm -f conftest
$ac_exeext
4212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4213 (eval $ac_link) 2>&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4224 echo "$as_me: program exited with status $ac_status" >&5
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.
$ac_ext >&5
4229 ac_cv_header_stdc
=no
4231 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4235 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4236 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4237 if test $ac_cv_header_stdc = yes; then
4239 cat >>confdefs.h
<<\_ACEOF
4240 #define STDC_HEADERS 1
4245 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4255 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4256 inttypes.h stdint.h unistd.h
4258 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4259 echo "$as_me:$LINENO: checking for $ac_header" >&5
4260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 cat >conftest.
$ac_ext <<_ACEOF
4267 cat confdefs.h
>>conftest.
$ac_ext
4268 cat >>conftest.
$ac_ext <<_ACEOF
4269 /* end confdefs.h. */
4270 $ac_includes_default
4272 #include <$ac_header>
4274 rm -f conftest.
$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276 (eval $ac_compile) 2>conftest.er1
4278 grep -v '^ *+' conftest.er1
>conftest.err
4280 cat conftest.err
>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try
='test -z "$ac_c_werror_flag"
4284 || test ! -s conftest.err'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; } &&
4290 { ac_try
='test -s conftest.$ac_objext'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
4296 eval "$as_ac_Header=yes"
4298 echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.
$ac_ext >&5
4301 eval "$as_ac_Header=no"
4303 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4308 cat >>confdefs.h
<<_ACEOF
4309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 if test "${ac_cv_header_valgrind_h+set}" = set; then
4318 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4319 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4320 if test "${ac_cv_header_valgrind_h+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4324 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4326 # Is the header compilable?
4327 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4328 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 $ac_includes_default
4336 #include <valgrind.h>
4338 rm -f conftest.
$ac_objext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4340 (eval $ac_compile) 2>conftest.er1
4342 grep -v '^ *+' conftest.er1
>conftest.err
4344 cat conftest.err
>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } &&
4347 { ac_try
='test -z "$ac_c_werror_flag"
4348 || test ! -s conftest.err'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; } &&
4354 { ac_try
='test -s conftest.$ac_objext'
4355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_header_compiler
=yes
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.
$ac_ext >&5
4365 ac_header_compiler
=no
4367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4369 echo "${ECHO_T}$ac_header_compiler" >&6
4371 # Is the header present?
4372 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4373 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4374 cat >conftest.
$ac_ext <<_ACEOF
4377 cat confdefs.h
>>conftest.
$ac_ext
4378 cat >>conftest.
$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4380 #include <valgrind.h>
4382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4383 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4385 grep -v '^ *+' conftest.er1
>conftest.err
4387 cat conftest.err
>&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } >/dev
/null
; then
4390 if test -s conftest.err
; then
4391 ac_cpp_err
=$ac_c_preproc_warn_flag
4392 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4399 if test -z "$ac_cpp_err"; then
4400 ac_header_preproc
=yes
4402 echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.
$ac_ext >&5
4405 ac_header_preproc
=no
4407 rm -f conftest.err conftest.
$ac_ext
4408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4409 echo "${ECHO_T}$ac_header_preproc" >&6
4411 # So? What about this header?
4412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4414 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4415 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4416 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4417 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4418 ac_header_preproc
=yes
4421 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4422 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4423 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4424 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4425 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4426 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4427 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4428 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4429 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4430 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4431 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4432 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4435 ## ------------------------------------------ ##
4436 ## Report this to the AC_PACKAGE_NAME lists. ##
4437 ## ------------------------------------------ ##
4440 sed "s/^/$as_me: WARNING: /" >&2
4443 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4444 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4445 if test "${ac_cv_header_valgrind_h+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_header_valgrind_h
=$ac_header_preproc
4450 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4451 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4454 if test $ac_cv_header_valgrind_h = yes; then
4462 if test x
$ac_checking_valgrind != x
; then
4463 # It is certainly possible that there's valgrind but no valgrind.h.
4464 # GCC relies on making annotations so we must have both.
4465 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4466 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4470 cat confdefs.h
>>conftest.
$ac_ext
4471 cat >>conftest.
$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 #include <valgrind/memcheck.h>
4474 #ifndef VALGRIND_DISCARD
4475 #error VALGRIND_DISCARD not defined
4478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4479 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4481 grep -v '^ *+' conftest.er1
>conftest.err
4483 cat conftest.err
>&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } >/dev
/null
; then
4486 if test -s conftest.err
; then
4487 ac_cpp_err
=$ac_c_preproc_warn_flag
4488 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4495 if test -z "$ac_cpp_err"; then
4496 gcc_cv_header_valgrind_memcheck_h
=yes
4498 echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.
$ac_ext >&5
4501 gcc_cv_header_valgrind_memcheck_h
=no
4503 rm -f conftest.err conftest.
$ac_ext
4504 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4505 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4506 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4507 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4508 cat >conftest.
$ac_ext <<_ACEOF
4511 cat confdefs.h
>>conftest.
$ac_ext
4512 cat >>conftest.
$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <memcheck.h>
4515 #ifndef VALGRIND_DISCARD
4516 #error VALGRIND_DISCARD not defined
4519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4520 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1
>conftest.err
4524 cat conftest.err
>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } >/dev
/null
; then
4527 if test -s conftest.err
; then
4528 ac_cpp_err
=$ac_c_preproc_warn_flag
4529 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4536 if test -z "$ac_cpp_err"; then
4537 gcc_cv_header_memcheck_h
=yes
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 gcc_cv_header_memcheck_h
=no
4544 rm -f conftest.err conftest.
$ac_ext
4545 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4546 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4548 # Prepare PATH_SEPARATOR.
4549 # The user is always right.
4550 if test "${PATH_SEPARATOR+set}" != set; then
4551 echo "#! /bin/sh" >conf$$.sh
4552 echo "exit 0" >>conf$$.sh
4554 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4562 # Find out how to test for executable files. Don't use a zero-byte file,
4563 # as systems may use methods other than mode bits to determine executability.
4564 cat >conf$$.
file <<_ASEOF
4568 chmod +x conf$$.
file
4569 if test -x conf$$.
file >/dev
/null
2>&1; then
4570 ac_executable_p
="test -x"
4572 ac_executable_p
="test -f"
4576 # Extract the first word of "valgrind", so it can be a program name with args.
4577 set dummy valgrind
; ac_word
=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_valgrind_path+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 case "$valgrind_path" in
4585 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4588 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4589 for ac_dir
in $PATH; do
4591 test -z "$ac_dir" && ac_dir
=.
4592 for ac_exec_ext
in '' $ac_executable_extensions; do
4593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4594 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4595 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4605 valgrind_path
="$ac_cv_path_valgrind_path"
4606 if test -n "$valgrind_path"; then
4607 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4608 echo "${ECHO_T}$valgrind_path" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 if test "x$valgrind_path" = "x" \
4615 ||
(test $have_valgrind_h = no \
4616 && test $gcc_cv_header_memcheck_h = no \
4617 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4618 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4619 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4620 { (exit 1); exit 1; }; }
4622 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4623 valgrind_command
="$valgrind_path -q"
4625 cat >>confdefs.h
<<\_ACEOF
4626 #define ENABLE_VALGRIND_CHECKING 1
4629 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4631 cat >>confdefs.h
<<\_ACEOF
4632 #define HAVE_VALGRIND_MEMCHECK_H 1
4636 if test $gcc_cv_header_memcheck_h = yes; then
4638 cat >>confdefs.h
<<\_ACEOF
4639 #define HAVE_MEMCHECK_H 1
4647 # Enable code coverage collection
4648 # Check whether --enable-coverage or --disable-coverage was given.
4649 if test "${enable_coverage+set}" = set; then
4650 enableval
="$enable_coverage"
4651 case "${enableval}" in
4653 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4656 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4659 # a.k.a. --disable-coverage
4663 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4664 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4665 { (exit 1); exit 1; }; }
4673 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4674 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4675 enableval
="$enable_gather_detailed_mem_stats"
4678 enable_gather_detailed_mem_stats
=no
4680 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4682 cat >>confdefs.h
<<\_ACEOF
4683 #define GATHER_STATISTICS 1
4688 # Check whether --enable-tree-browser or --disable-tree-browser was given.
4689 if test "${enable_tree_browser+set}" = set; then
4690 enableval
="$enable_tree_browser"
4693 enable_tree_browser
=no
4695 if test x
$enable_tree_browser = xyes
; then
4696 TREEBROWSER
=tree-browser.o
4700 # -------------------------------
4701 # Miscenalleous configure options
4702 # -------------------------------
4706 # Check whether --with-stabs or --without-stabs was given.
4707 if test "${with_stabs+set}" = set; then
4708 withval
="$with_stabs"
4714 # Determine whether or not multilibs are enabled.
4715 # Check whether --enable-multilib or --disable-multilib was given.
4716 if test "${enable_multilib+set}" = set; then
4717 enableval
="$enable_multilib"
4724 # Enable __cxa_atexit for C++.
4725 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4726 if test "${enable___cxa_atexit+set}" = set; then
4727 enableval
="$enable___cxa_atexit"
4732 # Pass with no value to take the default
4733 # Pass with a value to specify a thread package
4734 # Check whether --enable-threads or --disable-threads was given.
4735 if test "${enable_threads+set}" = set; then
4736 enableval
="$enable_threads"
4742 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4743 if test "${enable_objc_gc+set}" = set; then
4744 enableval
="$enable_objc_gc"
4745 if test x
$enable_objc_gc = xno
; then
4755 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4756 if test "${with_dwarf2+set}" = set; then
4757 withval
="$with_dwarf2"
4758 dwarf2
="$with_dwarf2"
4763 # Check whether --enable-shared or --disable-shared was given.
4764 if test "${enable_shared+set}" = set; then
4765 enableval
="$enable_shared"
4767 case $enable_shared in
4771 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4772 for pkg
in $enableval; do
4773 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4787 # Check whether --with-sysroot or --without-sysroot was given.
4788 if test "${with_sysroot+set}" = set; then
4789 withval
="$with_sysroot"
4791 case ${with_sysroot} in
4792 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4793 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4796 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4797 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4799 if test "x$exec_prefix" = xNONE
; then
4800 if test "x$prefix" = xNONE
; then
4801 test_prefix
=/usr
/local
4806 test_prefix
=$exec_prefix
4808 case ${TARGET_SYSTEM_ROOT} in
4809 "${test_prefix}"|
"${test_prefix}/"*|\
4810 '${exec_prefix}'|
'${exec_prefix}/'*)
4811 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4812 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4819 TARGET_SYSTEM_ROOT_DEFINE
=
4820 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4827 # Build with intermodule optimisations
4828 # Check whether --enable-intermodule or --disable-intermodule was given.
4829 if test "${enable_intermodule+set}" = set; then
4830 enableval
="$enable_intermodule"
4831 case ${enable_intermodule} in
4832 yes) onestep
="-onestep";;
4840 # Sanity check enable_languages in case someone does not run the toplevel
4841 # configure # script.
4842 # Check whether --enable-languages or --disable-languages was given.
4843 if test "${enable_languages+set}" = set; then
4844 enableval
="$enable_languages"
4845 case ,${enable_languages}, in
4847 # go safe -- we cannot be much sure without the toplevel
4849 # analysis of which target libs are present and usable
4853 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4854 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4855 { (exit 1); exit 1; }; }
4860 enable_languages
=c
,${enable_languages}
4868 for lang
in ${srcdir}/*/config-lang.
in
4871 # The odd quoting in the next line works around
4872 # an apparent bug in bash 1.12 on linux.
4873 ${srcdir}/[*]/config-lang.
in) ;;
4875 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4876 if test "x$lang_alias" = x
4878 echo "$lang doesn't set \$language." 1>&2
4881 case ",$enable_languages," in
4883 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4890 # -------------------------
4891 # Checks for other programs
4892 # -------------------------
4894 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4895 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4896 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 cat >conftest.
make <<\_ACEOF
4902 @
echo 'ac_maketemp="$(MAKE)"'
4904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4905 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4906 if test -n "$ac_maketemp"; then
4907 eval ac_cv_prog_make_
${ac_make}_set
=yes
4909 eval ac_cv_prog_make_
${ac_make}_set
=no
4913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4914 echo "$as_me:$LINENO: result: yes" >&5
4915 echo "${ECHO_T}yes" >&6
4918 echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4920 SET_MAKE
="MAKE=${MAKE-make}"
4924 # Find some useful tools
4925 for ac_prog
in gawk mawk nawk
awk
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928 set dummy
$ac_prog; ac_word
=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_AWK+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 if test -n "$AWK"; then
4935 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir
=.
4942 for ac_exec_ext
in '' $ac_executable_extensions; do
4943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944 ac_cv_prog_AWK
="$ac_prog"
4945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 if test -n "$AWK"; then
4955 echo "$as_me:$LINENO: result: $AWK" >&5
4956 echo "${ECHO_T}$AWK" >&6
4958 echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4962 test -n "$AWK" && break
4965 # We need awk to run opts.sh (to create options.c and options.h).
4966 # Bail out if it's missing.
4968 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4969 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4973 echo "$as_me:$LINENO: checking whether ln works" >&5
4974 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4975 if test "${gcc_cv_prog_LN+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 rm -f conftestdata_t
4979 echo >conftestdata_f
4980 if ln conftestdata_f conftestdata_t
2>/dev
/null
4984 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4986 gcc_cv_prog_LN
="ln -s"
4991 rm -f conftestdata_f conftestdata_t
4994 LN
="$gcc_cv_prog_LN"
4995 if test "$gcc_cv_prog_LN" = "ln"; then
4996 echo "$as_me:$LINENO: result: yes" >&5
4997 echo "${ECHO_T}yes" >&6
4999 if test "$gcc_cv_prog_LN" = "ln -s"; then
5000 echo "$as_me:$LINENO: result: no, using ln -s" >&5
5001 echo "${ECHO_T}no, using ln -s" >&6
5003 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
5004 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
5008 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5009 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5010 if test "${gcc_cv_prog_LN_S+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 rm -f conftestdata_t
5014 echo >conftestdata_f
5015 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
5017 gcc_cv_prog_LN_S
="ln -s"
5019 if ln conftestdata_f conftestdata_t
2>/dev
/null
5026 rm -f conftestdata_f conftestdata_t
5029 LN_S
="$gcc_cv_prog_LN_S"
5030 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
5031 echo "$as_me:$LINENO: result: yes" >&5
5032 echo "${ECHO_T}yes" >&6
5034 if test "$gcc_cv_prog_LN_S" = "ln"; then
5035 echo "$as_me:$LINENO: result: no, using ln" >&5
5036 echo "${ECHO_T}no, using ln" >&6
5038 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
5039 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
5043 if test -n "$ac_tool_prefix"; then
5044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5045 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5046 echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5048 if test "${ac_cv_prog_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 if test -n "$RANLIB"; then
5052 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5058 test -z "$as_dir" && as_dir
=.
5059 for ac_exec_ext
in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 RANLIB
=$ac_cv_prog_RANLIB
5071 if test -n "$RANLIB"; then
5072 echo "$as_me:$LINENO: result: $RANLIB" >&5
5073 echo "${ECHO_T}$RANLIB" >&6
5075 echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5080 if test -z "$ac_cv_prog_RANLIB"; then
5081 ac_ct_RANLIB
=$RANLIB
5082 # Extract the first word of "ranlib", so it can be a program name with args.
5083 set dummy ranlib
; ac_word
=$2
5084 echo "$as_me:$LINENO: checking for $ac_word" >&5
5085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 if test -n "$ac_ct_RANLIB"; then
5090 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir
=.
5097 for ac_exec_ext
in '' $ac_executable_extensions; do
5098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5109 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5110 if test -n "$ac_ct_RANLIB"; then
5111 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5112 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5114 echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6
5118 RANLIB
=$ac_ct_RANLIB
5120 RANLIB
="$ac_cv_prog_RANLIB"
5123 # Find a good install program. We prefer a C program (faster),
5124 # so one script is as good as another. But avoid the broken or
5125 # incompatible versions:
5126 # SysV /etc/install, /usr/sbin/install
5127 # SunOS /usr/etc/install
5128 # IRIX /sbin/install
5130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5132 # ./install, which can be erroneously created by make from ./install.sh.
5133 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5134 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5135 if test -z "$INSTALL"; then
5136 if test "${ac_cv_path_install+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5139 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
5140 for ac_dir
in $PATH; do
5141 # Account for people who put trailing slashes in PATH elements.
5143 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5145 # OSF1 and SCO ODT 3.0 have their own names for install.
5146 for ac_prog
in ginstall scoinst
install; do
5147 if test -f $ac_dir/$ac_prog; then
5148 if test $ac_prog = install &&
5149 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5150 # AIX install. It has an incompatible calling convention.
5151 # OSF/1 installbsd also uses dspmsg, but is usable.
5154 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5165 if test "${ac_cv_path_install+set}" = set; then
5166 INSTALL
="$ac_cv_path_install"
5168 # As a last resort, use the slow shell script. We don't cache a
5169 # path for INSTALL within a source directory, because that will
5170 # break other packages using the cache if that directory is
5171 # removed, or if the path is relative.
5172 INSTALL
="$ac_install_sh"
5175 echo "$as_me:$LINENO: result: $INSTALL" >&5
5176 echo "${ECHO_T}$INSTALL" >&6
5178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5179 # It thinks the first close brace ends the variable substitution.
5180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5182 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5185 # See if cmp has --ignore-initial.
5186 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5187 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5188 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 gcc_cv_prog_cmp_skip
=slowcompare
5194 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5195 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5198 gcc_cv_prog_cmp_skip
=gnucompare
5201 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5202 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5203 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5206 gcc_cv_prog_cmp_skip
=fastcompare
5213 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5214 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5215 make_compare_target
=$gcc_cv_prog_cmp_skip
5219 # See if we have the mktemp command.
5220 # Extract the first word of "mktemp", so it can be a program name with args.
5221 set dummy mktemp
; ac_word
=$2
5222 echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 if test -n "$have_mktemp_command"; then
5228 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir
=.
5235 for ac_exec_ext
in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_prog_have_mktemp_command
="yes"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5247 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5248 if test -n "$have_mktemp_command"; then
5249 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5250 echo "${ECHO_T}$have_mktemp_command" >&6
5252 echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5257 # Do we have a single-tree copy of texinfo?
5258 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
5259 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
5260 gcc_cv_prog_makeinfo_modern
=yes
5261 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
5262 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
5264 # See if makeinfo has been installed and is modern enough
5265 # that we can use it.
5266 # Extract the first word of "makeinfo", so it can be a program name with args.
5267 set dummy makeinfo
; ac_word
=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$MAKEINFO"; then
5274 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir
=.
5281 for ac_exec_ext
in '' $ac_executable_extensions; do
5282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283 ac_cv_prog_MAKEINFO
="makeinfo"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 MAKEINFO
=$ac_cv_prog_MAKEINFO
5293 if test -n "$MAKEINFO"; then
5294 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5295 echo "${ECHO_T}$MAKEINFO" >&6
5297 echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5301 if test -n "$MAKEINFO"; then
5302 # Found it, now check the version.
5303 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5304 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5305 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5308 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5309 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5310 echo "configure:5310: version of makeinfo is $ac_prog_version" >&5
5311 case $ac_prog_version in
5312 '') gcc_cv_prog_makeinfo_modern
=no
;;
5314 gcc_cv_prog_makeinfo_modern
=yes;;
5315 *) gcc_cv_prog_makeinfo_modern
=no
;;
5319 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5320 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5322 gcc_cv_prog_makeinfo_modern
=no
5327 if test $gcc_cv_prog_makeinfo_modern = no
; then
5328 { echo "$as_me:$LINENO: WARNING:
5329 *** Makeinfo is missing or too old.
5330 *** Info documentation will not be built." >&5
5331 echo "$as_me: WARNING:
5332 *** Makeinfo is missing or too old.
5333 *** Info documentation will not be built." >&2;}
5339 # Is pod2man recent enough to regenerate manpages?
5340 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5341 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5342 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5343 echo "$as_me:$LINENO: result: yes" >&5
5344 echo "${ECHO_T}yes" >&6
5345 GENERATED_MANPAGES
=generated-manpages
5347 echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6
5353 if test x
${build} = x
${host} && test -f $srcdir/..
/flex
/skel.c
; then
5354 FLEX
='$(objdir)/../flex/flex'
5356 # Extract the first word of "flex", so it can be a program name with args.
5357 set dummy flex
; ac_word
=$2
5358 echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5360 if test "${ac_cv_prog_FLEX+set}" = set; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 if test -n "$FLEX"; then
5364 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir
=.
5371 for ac_exec_ext
in '' $ac_executable_extensions; do
5372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5373 ac_cv_prog_FLEX
="flex"
5374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5383 FLEX
=$ac_cv_prog_FLEX
5384 if test -n "$FLEX"; then
5385 echo "$as_me:$LINENO: result: $FLEX" >&5
5386 echo "${ECHO_T}$FLEX" >&6
5388 echo "$as_me:$LINENO: result: no" >&5
5389 echo "${ECHO_T}no" >&6
5395 # The -L switch is so bison can find its skeleton file.
5396 if test x
${build} = x
${host} && test -f $srcdir/..
/bison
/bison.simple
; then
5397 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5399 # Extract the first word of "bison", so it can be a program name with args.
5400 set dummy bison
; ac_word
=$2
5401 echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5403 if test "${ac_cv_prog_BISON+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 if test -n "$BISON"; then
5407 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir
=.
5414 for ac_exec_ext
in '' $ac_executable_extensions; do
5415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416 ac_cv_prog_BISON
="bison"
5417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5426 BISON
=$ac_cv_prog_BISON
5427 if test -n "$BISON"; then
5428 echo "$as_me:$LINENO: result: $BISON" >&5
5429 echo "${ECHO_T}$BISON" >&6
5431 echo "$as_me:$LINENO: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5437 # --------------------
5438 # Checks for C headers
5439 # --------------------
5441 echo "$as_me:$LINENO: checking for GNU C library" >&5
5442 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5443 if test "${gcc_cv_glibc+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 cat >conftest.
$ac_ext <<_ACEOF
5449 cat confdefs.h
>>conftest.
$ac_ext
5450 cat >>conftest.
$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <features.h>
5457 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5458 #error Not a GNU C library system
5464 rm -f conftest.
$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5468 grep -v '^ *+' conftest.er1
>conftest.err
5470 cat conftest.err
>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try
='test -z "$ac_c_werror_flag"
5474 || test ! -s conftest.err'
5475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }; } &&
5480 { ac_try
='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5496 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5497 echo "${ECHO_T}$gcc_cv_glibc" >&6
5498 if test $gcc_cv_glibc = yes; then
5500 cat >>confdefs.h
<<\_ACEOF
5501 #define _GNU_SOURCE 1
5506 # Need to reject headers which give warnings, so that the -Werror bootstrap
5507 # works later. *sigh* This needs to come before all header checks.
5509 ac_c_preproc_warn_flag
=yes
5511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5513 if test "${ac_cv_header_stdc+set}" = set; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 cat >conftest.
$ac_ext <<_ACEOF
5519 cat confdefs.h
>>conftest.
$ac_ext
5520 cat >>conftest.
$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5535 rm -f conftest.
$ac_objext
5536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537 (eval $ac_compile) 2>conftest.er1
5539 grep -v '^ *+' conftest.er1
>conftest.err
5541 cat conftest.err
>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try
='test -z "$ac_c_werror_flag"
5545 || test ! -s conftest.err'
5546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try
='test -s conftest.$ac_objext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_header_stdc
=yes
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.
$ac_ext >&5
5562 ac_cv_header_stdc
=no
5564 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5566 if test $ac_cv_header_stdc = yes; then
5567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5568 cat >conftest.
$ac_ext <<_ACEOF
5571 cat confdefs.h
>>conftest.
$ac_ext
5572 cat >>conftest.
$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5578 $EGREP "memchr" >/dev
/null
2>&1; then
5581 ac_cv_header_stdc
=no
5587 if test $ac_cv_header_stdc = yes; then
5588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5589 cat >conftest.
$ac_ext <<_ACEOF
5592 cat confdefs.h
>>conftest.
$ac_ext
5593 cat >>conftest.
$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "free" >/dev
/null
2>&1; then
5602 ac_cv_header_stdc
=no
5608 if test $ac_cv_header_stdc = yes; then
5609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5610 if test "$cross_compiling" = yes; then
5613 cat >conftest.
$ac_ext <<_ACEOF
5616 cat confdefs.h
>>conftest.
$ac_ext
5617 cat >>conftest.
$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5620 #if ((' ' & 0x0FF) == 0x020)
5621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5624 # define ISLOWER(c) \
5625 (('a' <= (c) && (c) <= 'i') \
5626 || ('j' <= (c) && (c) <= 'r') \
5627 || ('s' <= (c) && (c) <= 'z'))
5628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5636 for (i = 0; i < 256; i++)
5637 if (XOR (islower (i), ISLOWER (i))
5638 || toupper (i) != TOUPPER (i))
5643 rm -f conftest
$ac_exeext
5644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645 (eval $ac_link) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5656 echo "$as_me: program exited with status $ac_status" >&5
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.
$ac_ext >&5
5661 ac_cv_header_stdc
=no
5663 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5668 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5669 if test $ac_cv_header_stdc = yes; then
5671 cat >>confdefs.h
<<\_ACEOF
5672 #define STDC_HEADERS 1
5677 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5679 if test "${ac_cv_header_time+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 cat >conftest.
$ac_ext <<_ACEOF
5685 cat confdefs.h
>>conftest.
$ac_ext
5686 cat >>conftest.
$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <sys/time.h>
5695 if ((struct tm *) 0)
5701 rm -f conftest.
$ac_objext
5702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1
>conftest.err
5707 cat conftest.err
>&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try
='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try
='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5723 ac_cv_header_time
=yes
5725 echo "$as_me: failed program was:" >&5
5726 sed 's/^/| /' conftest.
$ac_ext >&5
5728 ac_cv_header_time
=no
5730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5733 echo "${ECHO_T}$ac_cv_header_time" >&6
5734 if test $ac_cv_header_time = yes; then
5736 cat >>confdefs.h
<<\_ACEOF
5737 #define TIME_WITH_SYS_TIME 1
5742 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5743 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5744 if test "${ac_cv_header_stdbool_h+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #include <stdbool.h>
5762 rm -f conftest.
$ac_objext
5763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764 (eval $ac_compile) 2>conftest.er1
5766 grep -v '^ *+' conftest.er1
>conftest.err
5768 cat conftest.err
>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try
='test -z "$ac_c_werror_flag"
5772 || test ! -s conftest.err'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; } &&
5778 { ac_try
='test -s conftest.$ac_objext'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_header_stdbool_h
=yes
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.
$ac_ext >&5
5789 ac_cv_header_stdbool_h
=no
5791 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5794 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5795 if test $ac_cv_header_stdbool_h = yes; then
5797 cat >>confdefs.h
<<\_ACEOF
5798 #define HAVE_STDBOOL_H 1
5803 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5804 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5805 if test "${gcc_cv_header_string+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5815 #include <strings.h>
5824 rm -f conftest.
$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826 (eval $ac_compile) 2>conftest.er1
5828 grep -v '^ *+' conftest.er1
>conftest.err
5830 cat conftest.err
>&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try
='test -z "$ac_c_werror_flag"
5834 || test ! -s conftest.err'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try
='test -s conftest.$ac_objext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 gcc_cv_header_string
=yes
5848 echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.
$ac_ext >&5
5851 gcc_cv_header_string
=no
5853 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5856 echo "${ECHO_T}$gcc_cv_header_string" >&6
5857 if test $gcc_cv_header_string = yes; then
5859 cat >>confdefs.h
<<\_ACEOF
5860 #define STRING_WITH_STRINGS 1
5865 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5866 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5867 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 cat >conftest.
$ac_ext <<_ACEOF
5873 cat confdefs.h
>>conftest.
$ac_ext
5874 cat >>conftest.
$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 #include <sys/types.h>
5877 #include <sys/wait.h>
5879 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5882 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5890 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5895 rm -f conftest.
$ac_objext
5896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897 (eval $ac_compile) 2>conftest.er1
5899 grep -v '^ *+' conftest.er1
>conftest.err
5901 cat conftest.err
>&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } &&
5904 { ac_try
='test -z "$ac_c_werror_flag"
5905 || test ! -s conftest.err'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; } &&
5911 { ac_try
='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 ac_cv_header_sys_wait_h
=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 ac_cv_header_sys_wait_h
=no
5924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5926 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5927 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5928 if test $ac_cv_header_sys_wait_h = yes; then
5930 cat >>confdefs.h
<<\_ACEOF
5931 #define HAVE_SYS_WAIT_H 1
5957 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5958 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5959 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5960 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5962 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963 echo "$as_me:$LINENO: checking for $ac_header" >&5
5964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 cat >conftest.
$ac_ext <<_ACEOF
5971 cat confdefs.h
>>conftest.
$ac_ext
5972 cat >>conftest.
$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <$ac_header>
5976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev
/null
; then
5984 if test -s conftest.err
; then
5985 ac_cpp_err
=$ac_c_preproc_warn_flag
5986 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5993 if test -z "$ac_cpp_err"; then
5994 eval "$as_ac_Header=yes"
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.
$ac_ext >&5
5999 eval "$as_ac_Header=no"
6001 rm -f conftest.err conftest.
$ac_ext
6003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6006 cat >>confdefs.h
<<_ACEOF
6007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6014 # Check for thread headers.
6015 echo "$as_me:$LINENO: checking for thread.h" >&5
6016 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6017 if test "${ac_cv_header_thread_h+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 cat >conftest.
$ac_ext <<_ACEOF
6023 cat confdefs.h
>>conftest.
$ac_ext
6024 cat >>conftest.
$ac_ext <<_ACEOF
6025 /* end confdefs.h. */
6028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6031 grep -v '^ *+' conftest.er1
>conftest.err
6033 cat conftest.err
>&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev
/null
; then
6036 if test -s conftest.err
; then
6037 ac_cpp_err
=$ac_c_preproc_warn_flag
6038 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6045 if test -z "$ac_cpp_err"; then
6046 ac_cv_header_thread_h
=yes
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.
$ac_ext >&5
6051 ac_cv_header_thread_h
=no
6053 rm -f conftest.err conftest.
$ac_ext
6055 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6056 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6057 if test $ac_cv_header_thread_h = yes; then
6063 echo "$as_me:$LINENO: checking for pthread.h" >&5
6064 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6065 if test "${ac_cv_header_pthread_h+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6068 cat >conftest.
$ac_ext <<_ACEOF
6071 cat confdefs.h
>>conftest.
$ac_ext
6072 cat >>conftest.
$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <pthread.h>
6076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6079 grep -v '^ *+' conftest.er1
>conftest.err
6081 cat conftest.err
>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } >/dev
/null
; then
6084 if test -s conftest.err
; then
6085 ac_cpp_err
=$ac_c_preproc_warn_flag
6086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6093 if test -z "$ac_cpp_err"; then
6094 ac_cv_header_pthread_h
=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.
$ac_ext >&5
6099 ac_cv_header_pthread_h
=no
6101 rm -f conftest.err conftest.
$ac_ext
6103 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6105 if test $ac_cv_header_pthread_h = yes; then
6112 # These tests can't be done till we know if we have limits.h.
6113 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6114 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6115 if test "${gcc_cv_decl_char_bit+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cat >conftest.
$ac_ext <<_ACEOF
6121 cat confdefs.h
>>conftest.
$ac_ext
6122 cat >>conftest.
$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #ifdef HAVE_LIMITS_H
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "found" >/dev
/null
2>&1; then
6133 gcc_cv_decl_char_bit
=yes
6135 gcc_cv_decl_char_bit
=no
6141 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6142 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6143 if test $gcc_cv_decl_char_bit = no
; then
6144 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6145 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6146 if test "${gcc_cv_c_nbby+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 while test $i -lt 65; do
6152 cat >conftest.
$ac_ext <<_ACEOF
6155 cat confdefs.h
>>conftest.
$ac_ext
6156 cat >>conftest.
$ac_ext <<_ACEOF
6157 /* end confdefs.h. */
6163 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6164 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6170 rm -f conftest.
$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>conftest.er1
6174 grep -v '^ *+' conftest.er1
>conftest.err
6176 cat conftest.err
>&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); } &&
6179 { ac_try
='test -z "$ac_c_werror_flag"
6180 || test ! -s conftest.err'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try
='test -s conftest.$ac_objext'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; }; then
6192 gcc_cv_c_nbby
=$i; break
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.
$ac_ext >&5
6198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6201 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6204 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6205 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6206 if test $gcc_cv_c_nbby = failed
; then
6207 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6208 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6209 { (exit 1); exit 1; }; }
6212 cat >>confdefs.h
<<_ACEOF
6213 #define CHAR_BIT $gcc_cv_c_nbby
6218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6220 if test "${ac_cv_c_bigendian+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 ac_cv_c_bigendian
=unknown
6224 # See if sys/param.h defines the BYTE_ORDER macro.
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #include <sys/types.h>
6232 #include <sys/param.h>
6237 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6244 rm -f conftest.
$ac_objext
6245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246 (eval $ac_compile) 2>conftest.er1
6248 grep -v '^ *+' conftest.er1
>conftest.err
6250 cat conftest.err
>&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } &&
6253 { ac_try
='test -z "$ac_c_werror_flag"
6254 || test ! -s conftest.err'
6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; } &&
6260 { ac_try
='test -s conftest.$ac_objext'
6261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; }; then
6266 # It does; now see whether it defined to BIG_ENDIAN or not.
6267 cat >conftest.
$ac_ext <<_ACEOF
6270 cat confdefs.h
>>conftest.
$ac_ext
6271 cat >>conftest.
$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 #include <sys/types.h>
6274 #include <sys/param.h>
6279 #if BYTE_ORDER != BIG_ENDIAN
6286 rm -f conftest.
$ac_objext
6287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>conftest.er1
6290 grep -v '^ *+' conftest.er1
>conftest.err
6292 cat conftest.err
>&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); } &&
6295 { ac_try
='test -z "$ac_c_werror_flag"
6296 || test ! -s conftest.err'
6297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); }; } &&
6302 { ac_try
='test -s conftest.$ac_objext'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_c_bigendian
=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.
$ac_ext >&5
6313 ac_cv_c_bigendian
=no
6315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.
$ac_ext >&5
6321 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6322 if test $ac_cv_c_bigendian = unknown
; then
6323 if test "$cross_compiling" = yes; then
6324 echo $ac_n "cross-compiling... " 2>&6
6326 cat >conftest.
$ac_ext <<_ACEOF
6329 cat confdefs.h
>>conftest.
$ac_ext
6330 cat >>conftest.
$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6333 /* Are we little or big endian? From Harbison&Steele. */
6337 char c[sizeof (long)];
6340 exit (u.c[sizeof (long) - 1] == 1);
6343 rm -f conftest
$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_c_bigendian
=no
6356 echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.
$ac_ext >&5
6361 ac_cv_c_bigendian
=yes
6363 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6367 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6368 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6369 if test $ac_cv_c_bigendian = unknown
; then
6370 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6371 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6373 cat >conftest.c
<<EOF
6374 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6375 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6376 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6377 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6378 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6379 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6380 int main() { _ascii (); _ebcdic (); return 0; }
6382 if test -f conftest.c
; then
6383 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6384 if test `grep -l BIGenDianSyS conftest.o` ; then
6385 echo $ac_n ' big endian probe OK, ' 1>&6
6386 ac_cv_c_bigendian
=yes
6388 if test `grep -l LiTTleEnDian conftest.o` ; then
6389 echo $ac_n ' little endian probe OK, ' 1>&6
6390 if test $ac_cv_c_bigendian = yes ; then
6391 ac_cv_c_bigendian
=unknown
;
6393 ac_cv_c_bigendian
=no
6396 echo $ac_n 'guessing bigendian ... ' >&6
6399 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6400 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6402 if test $ac_cv_c_bigendian = yes; then
6404 cat >>confdefs.h
<<\_ACEOF
6405 #define WORDS_BIGENDIAN 1
6409 cat >>confdefs.h
<<\_ACEOF
6410 #define HOST_WORDS_BIG_ENDIAN 1
6418 cat >>confdefs.h
<<_ACEOF
6419 #define BYTEORDER $BYTEORDER
6422 if test $ac_cv_c_bigendian = unknown
; then
6423 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6424 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6425 { (exit 1); exit 1; }; }
6433 # Stage specific cflags for build.
6437 if test x
$GCC = xyes
6439 stage1_cflags
="-Wa,-J"
6445 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6446 # sources; use -no-cpp-precomp to get to GNU cpp.
6447 # Apple's GCC has bugs in designated initializer handling, so disable
6449 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6454 # These libraries may be used by collect2.
6455 # We may need a special search path to get them linked.
6456 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6457 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6458 if test "${gcc_cv_collect2_libs+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 for libs
in '' -lld -lmld \
6463 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6464 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6467 cat >conftest.
$ac_ext <<_ACEOF
6470 cat confdefs.h
>>conftest.
$ac_ext
6471 cat >>conftest.
$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6489 rm -f conftest.
$ac_objext conftest
$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>conftest.er1
6493 grep -v '^ *+' conftest.er1
>conftest.err
6495 cat conftest.err
>&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try
='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try
='test -s conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 gcc_cv_collect2_libs
="$libs"; break
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.
$ac_ext >&5
6517 rm -f conftest.err conftest.
$ac_objext \
6518 conftest
$ac_exeext conftest.
$ac_ext
6521 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6523 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6524 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6525 case $gcc_cv_collect2_libs in
6527 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6531 # When building Ada code on Alpha, we need exc_resume which is usually in
6532 # -lexc. So test for it.
6535 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6536 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6537 if test "${ac_cv_search_exc_resume+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_func_search_save_LIBS
=$LIBS
6541 ac_cv_search_exc_resume
=no
6542 cat >conftest.
$ac_ext <<_ACEOF
6545 cat confdefs.h
>>conftest.
$ac_ext
6546 cat >>conftest.
$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6553 /* We use char because int might match the return type of a gcc2
6554 builtin and then its argument prototype would still apply. */
6564 rm -f conftest.
$ac_objext conftest
$ac_exeext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6566 (eval $ac_link) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1
>conftest.err
6570 cat conftest.err
>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try
='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try
='test -s conftest$ac_exeext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_search_exc_resume
="none required"
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.
$ac_ext >&5
6592 rm -f conftest.err conftest.
$ac_objext \
6593 conftest
$ac_exeext conftest.
$ac_ext
6594 if test "$ac_cv_search_exc_resume" = no
; then
6595 for ac_lib
in exc
; do
6596 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6597 cat >conftest.
$ac_ext <<_ACEOF
6600 cat confdefs.h
>>conftest.
$ac_ext
6601 cat >>conftest.
$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6604 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6619 rm -f conftest.
$ac_objext conftest
$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621 (eval $ac_link) 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } &&
6628 { ac_try
='test -z "$ac_c_werror_flag"
6629 || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try
='test -s conftest$ac_exeext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6641 ac_cv_search_exc_resume
="-l$ac_lib"
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.
$ac_ext >&5
6648 rm -f conftest.err conftest.
$ac_objext \
6649 conftest
$ac_exeext conftest.
$ac_ext
6652 LIBS
=$ac_func_search_save_LIBS
6654 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6655 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6656 if test "$ac_cv_search_exc_resume" != no
; then
6657 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6665 # Some systems put ldexp and frexp in libm instead of libc; assume
6666 # they're both in the same place. jcf-dump needs them.
6669 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6670 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6671 if test "${ac_cv_search_ldexp+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 ac_func_search_save_LIBS
=$LIBS
6675 ac_cv_search_ldexp
=no
6676 cat >conftest.
$ac_ext <<_ACEOF
6679 cat confdefs.h
>>conftest.
$ac_ext
6680 cat >>conftest.
$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6683 /* Override any gcc2 internal prototype to avoid an error. */
6687 /* We use char because int might match the return type of a gcc2
6688 builtin and then its argument prototype would still apply. */
6698 rm -f conftest.
$ac_objext conftest
$ac_exeext
6699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6700 (eval $ac_link) 2>conftest.er1
6702 grep -v '^ *+' conftest.er1
>conftest.err
6704 cat conftest.err
>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } &&
6707 { ac_try
='test -z "$ac_c_werror_flag"
6708 || test ! -s conftest.err'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; } &&
6714 { ac_try
='test -s conftest$ac_exeext'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; }; then
6720 ac_cv_search_ldexp
="none required"
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.
$ac_ext >&5
6726 rm -f conftest.err conftest.
$ac_objext \
6727 conftest
$ac_exeext conftest.
$ac_ext
6728 if test "$ac_cv_search_ldexp" = no
; then
6730 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6731 cat >conftest.
$ac_ext <<_ACEOF
6734 cat confdefs.h
>>conftest.
$ac_ext
6735 cat >>conftest.
$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6738 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6753 rm -f conftest.
$ac_objext conftest
$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755 (eval $ac_link) 2>conftest.er1
6757 grep -v '^ *+' conftest.er1
>conftest.err
6759 cat conftest.err
>&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try
='test -z "$ac_c_werror_flag"
6763 || test ! -s conftest.err'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; } &&
6769 { ac_try
='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_search_ldexp
="-l$ac_lib"
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6782 rm -f conftest.err conftest.
$ac_objext \
6783 conftest
$ac_exeext conftest.
$ac_ext
6786 LIBS
=$ac_func_search_save_LIBS
6788 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6789 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6790 if test "$ac_cv_search_ldexp" != no
; then
6791 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6799 # Use <inttypes.h> only if it exists,
6800 # doesn't clash with <sys/types.h>, and declares intmax_t.
6801 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6802 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6803 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 cat >conftest.
$ac_ext <<_ACEOF
6809 cat confdefs.h
>>conftest.
$ac_ext
6810 cat >>conftest.
$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6813 #include <inttypes.h>
6822 rm -f conftest.
$ac_objext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824 (eval $ac_compile) 2>conftest.er1
6826 grep -v '^ *+' conftest.er1
>conftest.err
6828 cat conftest.err
>&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try
='test -z "$ac_c_werror_flag"
6832 || test ! -s conftest.err'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try
='test -s conftest.$ac_objext'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; }; then
6844 gcc_cv_header_inttypes_h
=yes
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.
$ac_ext >&5
6849 gcc_cv_header_inttypes_h
=no
6851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6854 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6855 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6856 if test $gcc_cv_header_inttypes_h = yes; then
6858 cat >>confdefs.h
<<\_ACEOF
6859 #define HAVE_INTTYPES_H 1
6890 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6891 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6892 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6893 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6896 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6897 echo "$as_me:$LINENO: checking for $ac_func" >&5
6898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6899 if eval "test \"\${$as_ac_var+set}\" = set"; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.
$ac_ext <<_ACEOF
6905 cat confdefs.h
>>conftest.
$ac_ext
6906 cat >>conftest.
$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6910 #define $ac_func innocuous_$ac_func
6912 /* System header to define __stub macros and hopefully few prototypes,
6913 which can conflict with char $ac_func (); below.
6914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915 <limits.h> exists even on freestanding compilers. */
6918 # include <limits.h>
6920 # include <assert.h>
6925 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6933 /* The GNU C library defines this for functions which it implements
6934 to always fail with ENOSYS. Some functions are actually named
6935 something starting with __ and the normal name is an alias. */
6936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 char (*f) () = $ac_func;
6948 return f != $ac_func;
6953 rm -f conftest.
$ac_objext conftest
$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>conftest.er1
6957 grep -v '^ *+' conftest.er1
>conftest.err
6959 cat conftest.err
>&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try
='test -z "$ac_c_werror_flag"
6963 || test ! -s conftest.err'
6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); }; } &&
6969 { ac_try
='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 eval "$as_ac_var=yes"
6977 echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.
$ac_ext >&5
6980 eval "$as_ac_var=no"
6982 rm -f conftest.err conftest.
$ac_objext \
6983 conftest
$ac_exeext conftest.
$ac_ext
6985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6987 if test `eval echo '${'$as_ac_var'}'` = yes; then
6988 cat >>confdefs.h
<<_ACEOF
6989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6996 if test x
$ac_cv_func_mbstowcs = xyes
; then
6997 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6998 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6999 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7002 if test "$cross_compiling" = yes; then
7003 gcc_cv_func_mbstowcs_works
=yes
7005 cat >conftest.
$ac_ext <<_ACEOF
7008 cat confdefs.h
>>conftest.
$ac_ext
7009 cat >>conftest.
$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7018 rm -f conftest
$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); }; }; then
7029 gcc_cv_func_mbstowcs_works
=yes
7031 echo "$as_me: program exited with status $ac_status" >&5
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.
$ac_ext >&5
7036 gcc_cv_func_mbstowcs_works
=no
7038 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7041 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7042 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7043 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
7045 cat >>confdefs.h
<<\_ACEOF
7046 #define HAVE_WORKING_MBSTOWCS 1
7052 echo "$as_me:$LINENO: checking for ssize_t" >&5
7053 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7054 if test "${ac_cv_type_ssize_t+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 cat >conftest.
$ac_ext <<_ACEOF
7060 cat confdefs.h
>>conftest.
$ac_ext
7061 cat >>conftest.
$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7069 if (sizeof (ssize_t))
7075 rm -f conftest.
$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077 (eval $ac_compile) 2>conftest.er1
7079 grep -v '^ *+' conftest.er1
>conftest.err
7081 cat conftest.err
>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try
='test -z "$ac_c_werror_flag"
7085 || test ! -s conftest.err'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; } &&
7091 { ac_try
='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 ac_cv_type_ssize_t
=yes
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7102 ac_cv_type_ssize_t
=no
7104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7106 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7108 if test $ac_cv_type_ssize_t = yes; then
7112 cat >>confdefs.h
<<_ACEOF
7119 # Try to determine the array type of the second argument of getgroups
7120 # for the target system (int or gid_t).
7121 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7122 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7123 if test "${ac_cv_type_uid_t+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 cat >conftest.
$ac_ext <<_ACEOF
7129 cat confdefs.h
>>conftest.
$ac_ext
7130 cat >>conftest.
$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7136 $EGREP "uid_t" >/dev
/null
2>&1; then
7137 ac_cv_type_uid_t
=yes
7144 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7145 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7146 if test $ac_cv_type_uid_t = no
; then
7148 cat >>confdefs.h
<<\_ACEOF
7153 cat >>confdefs.h
<<\_ACEOF
7159 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7160 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7161 if test "${ac_cv_type_getgroups+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 if test "$cross_compiling" = yes; then
7165 ac_cv_type_getgroups
=cross
7167 cat >conftest.
$ac_ext <<_ACEOF
7170 cat confdefs.h
>>conftest.
$ac_ext
7171 cat >>conftest.
$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 /* Thanks to Mike Rendell for this test. */
7174 #include <sys/types.h>
7177 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7184 union { gid_t gval; long lval; } val;
7187 for (i = 0; i < NGID; i++)
7188 gidset[i] = val.gval;
7189 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7191 /* Exit non-zero if getgroups seems to require an array of ints. This
7192 happens when gid_t is short but getgroups modifies an array of ints. */
7193 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7196 rm -f conftest
$ac_exeext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_type_getgroups
=gid_t
7209 echo "$as_me: program exited with status $ac_status" >&5
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.
$ac_ext >&5
7214 ac_cv_type_getgroups
=int
7216 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7218 if test $ac_cv_type_getgroups = cross
; then
7219 cat >conftest.
$ac_ext <<_ACEOF
7222 cat confdefs.h
>>conftest.
$ac_ext
7223 cat >>conftest.
$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7230 ac_cv_type_getgroups
=gid_t
7232 ac_cv_type_getgroups
=int
7238 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7239 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7241 cat >>confdefs.h
<<_ACEOF
7242 #define GETGROUPS_T $ac_cv_type_getgroups
7246 if test "${target}" = "${build}"; then
7247 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7250 # This condition may need some tweaking. It should include all
7251 # targets where the array type of the second argument of getgroups
7252 # is int and the type of gid_t is not equivalent to int.
7253 *-*-sunos* |
*-*-ultrix*)
7254 TARGET_GETGROUPS_T
=int
7257 TARGET_GETGROUPS_T
=gid_t
7263 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7264 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7265 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 if test "$cross_compiling" = yes; then
7269 gcc_cv_func_printf_ptr
=no
7271 cat >conftest.
$ac_ext <<_ACEOF
7274 cat confdefs.h
>>conftest.
$ac_ext
7275 cat >>conftest.
$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7282 char *p = buf, *q = NULL;
7283 sprintf(buf, "%p", p);
7284 sscanf(buf, "%p", &q);
7288 rm -f conftest
$ac_exeext
7289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7290 (eval $ac_link) 2>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 gcc_cv_func_printf_ptr
=yes
7301 echo "$as_me: program exited with status $ac_status" >&5
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.
$ac_ext >&5
7306 gcc_cv_func_printf_ptr
=no
7308 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7310 rm -f core core.
* *.core
7312 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7313 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7314 if test $gcc_cv_func_printf_ptr = yes ; then
7316 cat >>confdefs.h
<<\_ACEOF
7317 #define HAVE_PRINTF_PTR 1
7322 if test $ac_cv_header_sys_mman_h != yes \
7323 ||
test $ac_cv_func_mmap != yes; then
7324 gcc_cv_func_mmap_file
=no
7325 gcc_cv_func_mmap_dev_zero
=no
7326 gcc_cv_func_mmap_anon
=no
7328 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7329 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7330 if test "${gcc_cv_func_mmap_file+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 # Add a system to this blacklist if
7334 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7335 # memory area containing the same data that you'd get if you applied
7336 # read() to the same fd. The only system known to have a problem here
7337 # is VMS, where text files have record structure.
7340 gcc_cv_func_mmap_file
=no
;;
7342 gcc_cv_func_mmap_file
=yes;;
7345 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7346 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7347 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7348 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7349 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 # Add a system to this blacklist if it has mmap() but /dev/zero
7353 # does not exist, or if mmapping /dev/zero does not give anonymous
7354 # zeroed pages with both the following properties:
7355 # 1. If you map N consecutive pages in with one call, and then
7356 # unmap any subset of those pages, the pages that were not
7357 # explicitly unmapped remain accessible.
7358 # 2. If you map two adjacent blocks of memory and then unmap them
7359 # both at once, they must both go away.
7360 # Systems known to be in this category are Windows (all variants),
7363 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7364 gcc_cv_func_mmap_dev_zero
=no
;;
7366 gcc_cv_func_mmap_dev_zero
=yes;;
7369 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7370 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7372 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7373 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7374 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7375 if test "${gcc_cv_decl_map_anon+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <sys/types.h>
7385 #include <sys/mman.h>
7388 #ifndef MAP_ANONYMOUS
7389 #define MAP_ANONYMOUS MAP_ANON
7395 int n = MAP_ANONYMOUS;
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 gcc_cv_decl_map_anon
=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.
$ac_ext >&5
7427 gcc_cv_decl_map_anon
=no
7429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7432 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7434 if test $gcc_cv_decl_map_anon = no
; then
7435 gcc_cv_func_mmap_anon
=no
7437 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7438 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7439 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7443 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7444 # doesn't give anonymous zeroed pages with the same properties listed
7445 # above for use of /dev/zero.
7446 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7448 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7449 gcc_cv_func_mmap_anon
=no
;;
7451 gcc_cv_func_mmap_anon
=yes;;
7454 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7455 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7459 if test $gcc_cv_func_mmap_file = yes; then
7461 cat >>confdefs.h
<<\_ACEOF
7462 #define HAVE_MMAP_FILE 1
7466 if test $gcc_cv_func_mmap_dev_zero = yes; then
7468 cat >>confdefs.h
<<\_ACEOF
7469 #define HAVE_MMAP_DEV_ZERO 1
7473 if test $gcc_cv_func_mmap_anon = yes; then
7475 cat >>confdefs.h
<<\_ACEOF
7476 #define HAVE_MMAP_ANON 1
7484 # Under VMS, vfork works very differently than on Unix. The standard test
7485 # won't work, and it isn't easily adaptable. It makes more sense to
7487 ac_cv_func_vfork_works
=yes
7490 echo "$as_me:$LINENO: checking for pid_t" >&5
7491 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7492 if test "${ac_cv_type_pid_t+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 cat >conftest.
$ac_ext <<_ACEOF
7498 cat confdefs.h
>>conftest.
$ac_ext
7499 cat >>conftest.
$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7513 rm -f conftest.
$ac_objext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7515 (eval $ac_compile) 2>conftest.er1
7517 grep -v '^ *+' conftest.er1
>conftest.err
7519 cat conftest.err
>&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try
='test -z "$ac_c_werror_flag"
7523 || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try
='test -s conftest.$ac_objext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 ac_cv_type_pid_t
=yes
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.
$ac_ext >&5
7542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7544 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7545 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7546 if test $ac_cv_type_pid_t = yes; then
7550 cat >>confdefs.h
<<_ACEOF
7558 for ac_header
in unistd.h vfork.h
7560 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 echo "$as_me:$LINENO: checking for $ac_header" >&5
7562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 cat >conftest.
$ac_ext <<_ACEOF
7569 cat confdefs.h
>>conftest.
$ac_ext
7570 cat >>conftest.
$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <$ac_header>
7574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7577 grep -v '^ *+' conftest.er1
>conftest.err
7579 cat conftest.err
>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } >/dev
/null
; then
7582 if test -s conftest.err
; then
7583 ac_cpp_err
=$ac_c_preproc_warn_flag
7584 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7591 if test -z "$ac_cpp_err"; then
7592 eval "$as_ac_Header=yes"
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.
$ac_ext >&5
7597 eval "$as_ac_Header=no"
7599 rm -f conftest.err conftest.
$ac_ext
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7604 cat >>confdefs.h
<<_ACEOF
7605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613 for ac_func
in fork vfork
7615 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7616 echo "$as_me:$LINENO: checking for $ac_func" >&5
7617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7618 if eval "test \"\${$as_ac_var+set}\" = set"; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 cat >conftest.
$ac_ext <<_ACEOF
7624 cat confdefs.h
>>conftest.
$ac_ext
7625 cat >>conftest.
$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7629 #define $ac_func innocuous_$ac_func
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func (); below.
7633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7634 <limits.h> exists even on freestanding compilers. */
7637 # include <limits.h>
7639 # include <assert.h>
7644 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7652 /* The GNU C library defines this for functions which it implements
7653 to always fail with ENOSYS. Some functions are actually named
7654 something starting with __ and the normal name is an alias. */
7655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7658 char (*f) () = $ac_func;
7667 return f != $ac_func;
7672 rm -f conftest.
$ac_objext conftest
$ac_exeext
7673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>conftest.er1
7676 grep -v '^ *+' conftest.er1
>conftest.err
7678 cat conftest.err
>&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); } &&
7681 { ac_try
='test -z "$ac_c_werror_flag"
7682 || test ! -s conftest.err'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; } &&
7688 { ac_try
='test -s conftest$ac_exeext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7694 eval "$as_ac_var=yes"
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.
$ac_ext >&5
7699 eval "$as_ac_var=no"
7701 rm -f conftest.err conftest.
$ac_objext \
7702 conftest
$ac_exeext conftest.
$ac_ext
7704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7706 if test `eval echo '${'$as_ac_var'}'` = yes; then
7707 cat >>confdefs.h
<<_ACEOF
7708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7714 if test "x$ac_cv_func_fork" = xyes
; then
7715 echo "$as_me:$LINENO: checking for working fork" >&5
7716 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7717 if test "${ac_cv_func_fork_works+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 if test "$cross_compiling" = yes; then
7721 ac_cv_func_fork_works
=cross
7723 cat >conftest.
$ac_ext <<_ACEOF
7724 /* By Ruediger Kuhlmann. */
7725 #include <sys/types.h>
7727 # include <unistd.h>
7729 /* Some systems only have a dummy stub for fork() */
7737 rm -f conftest
$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); }; }; then
7748 ac_cv_func_fork_works
=yes
7750 echo "$as_me: program exited with status $ac_status" >&5
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7755 ac_cv_func_fork_works
=no
7757 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7760 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7761 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7764 ac_cv_func_fork_works
=$ac_cv_func_fork
7766 if test "x$ac_cv_func_fork_works" = xcross
; then
7768 *-*-amigaos* |
*-*-msdosdjgpp*)
7769 # Override, as these systems have only a dummy fork() stub
7770 ac_cv_func_fork_works
=no
7773 ac_cv_func_fork_works
=yes
7776 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7777 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7779 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7780 if test "x$ac_cv_func_vfork" = xyes
; then
7781 echo "$as_me:$LINENO: checking for working vfork" >&5
7782 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7783 if test "${ac_cv_func_vfork_works+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 if test "$cross_compiling" = yes; then
7787 ac_cv_func_vfork_works
=cross
7789 cat >conftest.
$ac_ext <<_ACEOF
7792 cat confdefs.h
>>conftest.
$ac_ext
7793 cat >>conftest.
$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 /* Thanks to Paul Eggert for this test. */
7798 #include <sys/types.h>
7799 #include <sys/stat.h>
7800 #include <sys/wait.h>
7802 # include <unistd.h>
7807 /* On some sparc systems, changes by the child to local and incoming
7808 argument registers are propagated back to the parent. The compiler
7809 is told about this with #include <vfork.h>, but some compilers
7810 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7811 static variable whose address is put into a register that is
7812 clobbered by the vfork. */
7815 sparc_address_test (int arg)
7817 sparc_address_test (arg) int arg;
7838 pid_t parent = getpid ();
7841 sparc_address_test (0);
7846 /* Here is another test for sparc vfork register problems. This
7847 test uses lots of local variables, at least as many local
7848 variables as main has allocated so far including compiler
7849 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7850 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7851 reuse the register of parent for one of the local variables,
7852 since it will think that parent can't possibly be used any more
7853 in this routine. Assigning to the local variable will thus
7854 munge parent in the parent process. */
7856 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7857 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7858 /* Convince the compiler that p..p7 are live; otherwise, it might
7859 use the same hardware register for all 8 local variables. */
7860 if (p != p1 || p != p2 || p != p3 || p != p4
7861 || p != p5 || p != p6 || p != p7)
7864 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7865 from child file descriptors. If the child closes a descriptor
7866 before it execs or exits, this munges the parent's descriptor
7867 as well. Test for this by closing stdout in the child. */
7868 _exit(close(fileno(stdout)) != 0);
7873 while (wait(&status) != child)
7876 /* Was there some problem with vforking? */
7879 /* Did the child fail? (This shouldn't happen.) */
7882 /* Did the vfork/compiler bug occur? */
7883 || parent != getpid()
7885 /* Did the file descriptor bug occur? */
7886 || fstat(fileno(stdout), &st) != 0
7891 rm -f conftest
$ac_exeext
7892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7893 (eval $ac_link) 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_func_vfork_works
=yes
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.
$ac_ext >&5
7909 ac_cv_func_vfork_works
=no
7911 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7914 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7915 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7918 if test "x$ac_cv_func_fork_works" = xcross
; then
7919 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7920 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7921 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7924 if test "x$ac_cv_func_vfork_works" = xyes
; then
7926 cat >>confdefs.h
<<\_ACEOF
7927 #define HAVE_WORKING_VFORK 1
7932 cat >>confdefs.h
<<\_ACEOF
7937 if test "x$ac_cv_func_fork_works" = xyes
; then
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define HAVE_WORKING_FORK 1
7948 am_cv_lib_iconv_ldpath
=
7950 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7951 if test "${with_libiconv_prefix+set}" = set; then
7952 withval
="$with_libiconv_prefix"
7954 for dir
in `echo "$withval" | tr : ' '`; do
7955 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
7956 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
7962 for ac_header
in iconv.h
7964 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.
$ac_ext <<_ACEOF
7973 cat confdefs.h
>>conftest.
$ac_ext
7974 cat >>conftest.
$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #include <$ac_header>
7978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7979 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7981 grep -v '^ *+' conftest.er1
>conftest.err
7983 cat conftest.err
>&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } >/dev
/null
; then
7986 if test -s conftest.err
; then
7987 ac_cpp_err
=$ac_c_preproc_warn_flag
7988 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7995 if test -z "$ac_cpp_err"; then
7996 eval "$as_ac_Header=yes"
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.
$ac_ext >&5
8001 eval "$as_ac_Header=no"
8003 rm -f conftest.err conftest.
$ac_ext
8005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8016 echo "$as_me:$LINENO: checking for iconv" >&5
8017 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8018 if test "${am_cv_func_iconv+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 am_cv_func_iconv
="no, consider installing GNU libiconv"
8024 cat >conftest.
$ac_ext <<_ACEOF
8027 cat confdefs.h
>>conftest.
$ac_ext
8028 cat >>conftest.
$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8035 iconv_t cd = iconv_open("","");
8036 iconv(cd,NULL,NULL,NULL,NULL);
8042 rm -f conftest.
$ac_objext conftest
$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>conftest.er1
8046 grep -v '^ *+' conftest.er1
>conftest.err
8048 cat conftest.err
>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try
='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try
='test -s conftest$ac_exeext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 am_cv_func_iconv
=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.
$ac_ext >&5
8070 rm -f conftest.err conftest.
$ac_objext \
8071 conftest
$ac_exeext conftest.
$ac_ext
8072 if test "$am_cv_func_iconv" != yes; then
8073 am_save_LIBS
="$LIBS"
8074 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8086 iconv_t cd = iconv_open("","");
8087 iconv(cd,NULL,NULL,NULL,NULL);
8093 rm -f conftest.
$ac_objext conftest
$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>conftest.er1
8097 grep -v '^ *+' conftest.er1
>conftest.err
8099 cat conftest.err
>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try
='test -z "$ac_c_werror_flag"
8103 || test ! -s conftest.err'
8104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); }; } &&
8109 { ac_try
='test -s conftest$ac_exeext'
8110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8116 am_cv_func_iconv
=yes
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.
$ac_ext >&5
8122 rm -f conftest.err conftest.
$ac_objext \
8123 conftest
$ac_exeext conftest.
$ac_ext
8124 LIBS
="$am_save_LIBS"
8128 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8129 echo "${ECHO_T}$am_cv_func_iconv" >&6
8130 if test "$am_cv_func_iconv" = yes; then
8132 cat >>confdefs.h
<<\_ACEOF
8133 #define HAVE_ICONV 1
8136 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8137 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8138 if test "${am_cv_proto_iconv+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 cat >conftest.
$ac_ext <<_ACEOF
8145 cat confdefs.h
>>conftest.
$ac_ext
8146 cat >>conftest.
$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8155 #if defined(__STDC__) || defined(__cplusplus)
8156 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8169 rm -f conftest.
$ac_objext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>conftest.er1
8173 grep -v '^ *+' conftest.er1
>conftest.err
8175 cat conftest.err
>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try
='test -z "$ac_c_werror_flag"
8179 || test ! -s conftest.err'
8180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); }; } &&
8185 { ac_try
='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8191 am_cv_proto_iconv_arg1
=""
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.
$ac_ext >&5
8196 am_cv_proto_iconv_arg1
="const"
8198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8199 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);"
8202 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8203 echo "$as_me:$LINENO: result: ${ac_t:-
8204 }$am_cv_proto_iconv" >&5
8205 echo "${ECHO_T}${ac_t:-
8206 }$am_cv_proto_iconv" >&6
8208 cat >>confdefs.h
<<_ACEOF
8209 #define ICONV_CONST $am_cv_proto_iconv_arg1
8214 if test "$am_cv_lib_iconv" = yes; then
8215 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8219 # Until we have in-tree GNU iconv:
8224 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8225 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8226 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 cat >conftest.
$ac_ext <<_ACEOF
8232 cat confdefs.h
>>conftest.
$ac_ext
8233 cat >>conftest.
$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8244 rm -f conftest.
$ac_objext conftest
$ac_exeext
8245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8246 (eval $ac_link) 2>conftest.er1
8248 grep -v '^ *+' conftest.er1
>conftest.err
8250 cat conftest.err
>&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try
='test -z "$ac_c_werror_flag"
8254 || test ! -s conftest.err'
8255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); }; } &&
8260 { ac_try
='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 am_cv_val_LC_MESSAGES
=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.
$ac_ext >&5
8271 am_cv_val_LC_MESSAGES
=no
8273 rm -f conftest.err conftest.
$ac_objext \
8274 conftest
$ac_exeext conftest.
$ac_ext
8276 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8277 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8278 if test $am_cv_val_LC_MESSAGES = yes; then
8280 cat >>confdefs.h
<<\_ACEOF
8281 #define HAVE_LC_MESSAGES 1
8287 # We will need to find libiberty.h and ansidecl.h
8288 saved_CFLAGS
="$CFLAGS"
8289 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8290 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8291 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8292 fprintf_unlocked strstr errno snprintf vasprintf \
8293 malloc realloc calloc free
basename getopt
clock
8295 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8296 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8297 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8298 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 cat >conftest.
$ac_ext <<_ACEOF
8304 cat confdefs.h
>>conftest.
$ac_ext
8305 cat >>conftest.
$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8308 #define $ac_tr_decl 1
8310 #include "ansidecl.h"
8317 char *(*pfn) = (char *(*)) $ac_func ;
8323 rm -f conftest.
$ac_objext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8325 (eval $ac_compile) 2>conftest.er1
8327 grep -v '^ *+' conftest.er1
>conftest.err
8329 cat conftest.err
>&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try
='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try
='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "gcc_cv_have_decl_$ac_func=yes"
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.
$ac_ext >&5
8350 eval "gcc_cv_have_decl_$ac_func=no"
8352 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8355 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8356 echo "$as_me:$LINENO: result: yes" >&5
8357 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8358 #define $ac_tr_decl 1
8362 echo "$as_me:$LINENO: result: no" >&5
8363 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8364 #define $ac_tr_decl 0
8370 if test x
= y
; then
8372 cat >>confdefs.h
<<\_ACEOF
8373 #define HAVE_DECL_GETENV 1
8376 cat >>confdefs.h
<<\_ACEOF
8377 #define HAVE_DECL_ATOL 1
8380 cat >>confdefs.h
<<\_ACEOF
8381 #define HAVE_DECL_SBRK 1
8384 cat >>confdefs.h
<<\_ACEOF
8385 #define HAVE_DECL_ABORT 1
8388 cat >>confdefs.h
<<\_ACEOF
8389 #define HAVE_DECL_ATOF 1
8392 cat >>confdefs.h
<<\_ACEOF
8393 #define HAVE_DECL_GETCWD 1
8396 cat >>confdefs.h
<<\_ACEOF
8397 #define HAVE_DECL_GETWD 1
8401 cat >>confdefs.h
<<\_ACEOF
8402 #define HAVE_DECL_STRSIGNAL 1
8405 cat >>confdefs.h
<<\_ACEOF
8406 #define HAVE_DECL_PUTC_UNLOCKED 1
8409 cat >>confdefs.h
<<\_ACEOF
8410 #define HAVE_DECL_FPUTS_UNLOCKED 1
8413 cat >>confdefs.h
<<\_ACEOF
8414 #define HAVE_DECL_FWRITE_UNLOCKED 1
8418 cat >>confdefs.h
<<\_ACEOF
8419 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8422 cat >>confdefs.h
<<\_ACEOF
8423 #define HAVE_DECL_STRSTR 1
8426 cat >>confdefs.h
<<\_ACEOF
8427 #define HAVE_DECL_ERRNO 1
8430 cat >>confdefs.h
<<\_ACEOF
8431 #define HAVE_DECL_SNPRINTF 1
8434 cat >>confdefs.h
<<\_ACEOF
8435 #define HAVE_DECL_VASPRINTF 1
8439 cat >>confdefs.h
<<\_ACEOF
8440 #define HAVE_DECL_MALLOC 1
8443 cat >>confdefs.h
<<\_ACEOF
8444 #define HAVE_DECL_REALLOC 1
8447 cat >>confdefs.h
<<\_ACEOF
8448 #define HAVE_DECL_CALLOC 1
8451 cat >>confdefs.h
<<\_ACEOF
8452 #define HAVE_DECL_FREE 1
8455 cat >>confdefs.h
<<\_ACEOF
8456 #define HAVE_DECL_BASENAME 1
8459 cat >>confdefs.h
<<\_ACEOF
8460 #define HAVE_DECL_GETOPT 1
8463 cat >>confdefs.h
<<\_ACEOF
8464 #define HAVE_DECL_CLOCK 1
8469 for ac_func
in getrlimit setrlimit getrusage
8471 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8472 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8473 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8474 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 cat >conftest.
$ac_ext <<_ACEOF
8480 cat confdefs.h
>>conftest.
$ac_ext
8481 cat >>conftest.
$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8484 #define $ac_tr_decl 1
8486 #include "ansidecl.h"
8488 #ifdef HAVE_SYS_RESOURCE_H
8489 #include <sys/resource.h>
8497 char *(*pfn) = (char *(*)) $ac_func ;
8503 rm -f conftest.
$ac_objext
8504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8505 (eval $ac_compile) 2>conftest.er1
8507 grep -v '^ *+' conftest.er1
>conftest.err
8509 cat conftest.err
>&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } &&
8512 { ac_try
='test -z "$ac_c_werror_flag"
8513 || test ! -s conftest.err'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; } &&
8519 { ac_try
='test -s conftest.$ac_objext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 eval "gcc_cv_have_decl_$ac_func=yes"
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.
$ac_ext >&5
8530 eval "gcc_cv_have_decl_$ac_func=no"
8532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8535 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8536 echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8538 #define $ac_tr_decl 1
8542 echo "$as_me:$LINENO: result: no" >&5
8543 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8544 #define $ac_tr_decl 0
8550 if test x
= y
; then
8552 cat >>confdefs.h
<<\_ACEOF
8553 #define HAVE_DECL_GETRLIMIT 1
8556 cat >>confdefs.h
<<\_ACEOF
8557 #define HAVE_DECL_SETRLIMIT 1
8560 cat >>confdefs.h
<<\_ACEOF
8561 #define HAVE_DECL_GETRUSAGE 1
8566 cat >conftest.
$ac_ext <<_ACEOF
8569 cat confdefs.h
>>conftest.
$ac_ext
8570 cat >>conftest.
$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8573 #include "ansidecl.h"
8575 #ifdef HAVE_SYS_RESOURCE_H
8576 #include <sys/resource.h>
8587 rm -f conftest.
$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589 (eval $ac_compile) 2>conftest.er1
8591 grep -v '^ *+' conftest.er1
>conftest.err
8593 cat conftest.err
>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); } &&
8596 { ac_try
='test -z "$ac_c_werror_flag"
8597 || test ! -s conftest.err'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; } &&
8603 { ac_try
='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.
$ac_ext >&5
8615 cat >>confdefs.h
<<\_ACEOF
8620 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8622 for ac_func
in ldgetname
8624 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8625 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8626 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8627 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8630 cat >conftest.
$ac_ext <<_ACEOF
8633 cat confdefs.h
>>conftest.
$ac_ext
8634 cat >>conftest.
$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8637 #define $ac_tr_decl 1
8639 #include "ansidecl.h"
8650 char *(*pfn) = (char *(*)) $ac_func ;
8656 rm -f conftest.
$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8660 grep -v '^ *+' conftest.er1
>conftest.err
8662 cat conftest.err
>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try
='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try
='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 eval "gcc_cv_have_decl_$ac_func=yes"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.
$ac_ext >&5
8683 eval "gcc_cv_have_decl_$ac_func=no"
8685 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8688 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8689 echo "$as_me:$LINENO: result: yes" >&5
8690 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8691 #define $ac_tr_decl 1
8695 echo "$as_me:$LINENO: result: no" >&5
8696 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8697 #define $ac_tr_decl 0
8703 if test x
= y
; then
8705 cat >>confdefs.h
<<\_ACEOF
8706 #define HAVE_DECL_LDGETNAME 1
8711 for ac_func
in times
8713 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8714 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8715 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8716 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 cat >conftest.
$ac_ext <<_ACEOF
8722 cat confdefs.h
>>conftest.
$ac_ext
8723 cat >>conftest.
$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8726 #define $ac_tr_decl 1
8728 #include "ansidecl.h"
8730 #ifdef HAVE_SYS_TIMES_H
8731 #include <sys/times.h>
8739 char *(*pfn) = (char *(*)) $ac_func ;
8745 rm -f conftest.
$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8749 grep -v '^ *+' conftest.er1
>conftest.err
8751 cat conftest.err
>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try
='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try
='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 eval "gcc_cv_have_decl_$ac_func=yes"
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.
$ac_ext >&5
8772 eval "gcc_cv_have_decl_$ac_func=no"
8774 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8777 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8778 echo "$as_me:$LINENO: result: yes" >&5
8779 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8780 #define $ac_tr_decl 1
8784 echo "$as_me:$LINENO: result: no" >&5
8785 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8786 #define $ac_tr_decl 0
8792 if test x
= y
; then
8794 cat >>confdefs.h
<<\_ACEOF
8795 #define HAVE_DECL_TIMES 1
8800 # More time-related stuff.
8801 echo "$as_me:$LINENO: checking for struct tms" >&5
8802 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8803 if test "${ac_cv_struct_tms+set}" = set; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8807 cat >conftest.
$ac_ext <<_ACEOF
8810 cat confdefs.h
>>conftest.
$ac_ext
8811 cat >>conftest.
$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8814 #include "ansidecl.h"
8816 #ifdef HAVE_SYS_TIMES_H
8817 #include <sys/times.h>
8828 rm -f conftest.
$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8832 grep -v '^ *+' conftest.er1
>conftest.err
8834 cat conftest.err
>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try
='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try
='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_struct_tms
=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8857 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8860 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8861 if test $ac_cv_struct_tms = yes; then
8863 cat >>confdefs.h
<<\_ACEOF
8864 #define HAVE_STRUCT_TMS 1
8869 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8870 # revisit after autoconf 2.50.
8871 echo "$as_me:$LINENO: checking for clock_t" >&5
8872 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8873 if test "${gcc_cv_type_clock_t+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.
$ac_ext <<_ACEOF
8880 cat confdefs.h
>>conftest.
$ac_ext
8881 cat >>conftest.
$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 #include "ansidecl.h"
8895 rm -f conftest.
$ac_objext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>conftest.er1
8899 grep -v '^ *+' conftest.er1
>conftest.err
8901 cat conftest.err
>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try
='test -z "$ac_c_werror_flag"
8905 || test ! -s conftest.err'
8906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); }; } &&
8911 { ac_try
='test -s conftest.$ac_objext'
8912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 gcc_cv_type_clock_t
=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 gcc_cv_type_clock_t
=no
8924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8926 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8927 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8928 if test $gcc_cv_type_clock_t = yes; then
8930 cat >>confdefs.h
<<\_ACEOF
8931 #define HAVE_CLOCK_T 1
8936 echo "$as_me:$LINENO: checking for uchar" >&5
8937 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
8938 if test "${gcc_cv_type_uchar+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 #include "ansidecl.h"
8954 if ((uchar *)0) return 0;
8955 if (sizeof(uchar)) return 0;
8960 rm -f conftest.
$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8964 grep -v '^ *+' conftest.er1
>conftest.err
8966 cat conftest.err
>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try
='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try
='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_cv_type_uchar
=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.
$ac_ext >&5
8989 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8991 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
8992 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
8993 if test $ac_cv_type_uchar = yes; then
8995 cat >>confdefs.h
<<\_ACEOF
8996 #define HAVE_UCHAR 1
9001 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9002 CFLAGS
="$saved_CFLAGS"
9004 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9005 if test "${enable_initfini_array+set}" = set; then
9006 enableval
="$enable_initfini_array"
9010 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9011 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9012 if test "${gcc_cv_initfini_array+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 if test "$cross_compiling" = yes; then
9016 gcc_cv_initfini_array
=no
9018 cat >conftest.
$ac_ext <<_ACEOF
9021 cat confdefs.h
>>conftest.
$ac_ext
9022 cat >>conftest.
$ac_ext <<_ACEOF
9023 /* end confdefs.h. */
9026 int main (void) { return x; }
9027 int foo (void) { x = 0; }
9028 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9030 rm -f conftest
$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032 (eval $ac_link) 2>&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 gcc_cv_initfini_array
=yes
9043 echo "$as_me: program exited with status $ac_status" >&5
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.
$ac_ext >&5
9048 gcc_cv_initfini_array
=no
9050 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9053 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9054 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9055 enable_initfini_array
=$gcc_cv_initfini_array
9058 if test $enable_initfini_array = yes; then
9060 cat >>confdefs.h
<<\_ACEOF
9061 #define HAVE_INITFINI_ARRAY 1
9066 # mkdir takes a single argument on some systems.
9067 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9068 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9069 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9079 #include <sys/types.h>
9080 #ifdef HAVE_SYS_STAT_H
9081 # include <sys/stat.h>
9083 #ifdef HAVE_UNISTD_H
9084 # include <unistd.h>
9086 #ifdef HAVE_DIRECT_H
9087 # include <direct.h>
9097 rm -f conftest.
$ac_objext
9098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9099 (eval $ac_compile) 2>conftest.er1
9101 grep -v '^ *+' conftest.er1
>conftest.err
9103 cat conftest.err
>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); } &&
9106 { ac_try
='test -z "$ac_c_werror_flag"
9107 || test ! -s conftest.err'
9108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); }; } &&
9113 { ac_try
='test -s conftest.$ac_objext'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; }; then
9119 gcc_cv_mkdir_takes_one_arg
=no
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.
$ac_ext >&5
9124 gcc_cv_mkdir_takes_one_arg
=yes
9126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9128 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9129 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9130 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9132 cat >>confdefs.h
<<\_ACEOF
9133 #define MKDIR_TAKES_ONE_ARG 1
9145 # With Setjmp/Longjmp based exception handling.
9146 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9147 if test "${enable_sjlj_exceptions+set}" = set; then
9148 enableval
="$enable_sjlj_exceptions"
9149 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
9151 cat >>confdefs.h
<<_ACEOF
9152 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9157 if test x
$host = x
$target; then
9158 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9159 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9160 if test "${ac_cv_lib_unwind_main+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 ac_check_lib_save_LIBS
=$LIBS
9164 LIBS
="-lunwind $LIBS"
9165 cat >conftest.
$ac_ext <<_ACEOF
9168 cat confdefs.h
>>conftest.
$ac_ext
9169 cat >>conftest.
$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9181 rm -f conftest.
$ac_objext conftest
$ac_exeext
9182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9183 (eval $ac_link) 2>conftest.er1
9185 grep -v '^ *+' conftest.er1
>conftest.err
9187 cat conftest.err
>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try
='test -z "$ac_c_werror_flag"
9191 || test ! -s conftest.err'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; } &&
9197 { ac_try
='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_lib_unwind_main
=yes
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.
$ac_ext >&5
9208 ac_cv_lib_unwind_main
=no
9210 rm -f conftest.err conftest.
$ac_objext \
9211 conftest
$ac_exeext conftest.
$ac_ext
9212 LIBS
=$ac_check_lib_save_LIBS
9214 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9215 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9216 if test $ac_cv_lib_unwind_main = yes; then
9217 use_libunwind_default
=yes
9219 use_libunwind_default
=no
9223 use_libunwind_default
=no
9225 # Use libunwind based exception handling.
9226 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9227 if test "${enable_libunwind_exceptions+set}" = set; then
9228 enableval
="$enable_libunwind_exceptions"
9229 use_libunwind_exceptions
=$enableval
9231 use_libunwind_exceptions
=$use_libunwind_default
9233 if test x
"$use_libunwind_exceptions" = xyes
; then
9235 cat >>confdefs.h
<<\_ACEOF
9236 #define USE_LIBUNWIND_EXCEPTIONS 1
9241 # --------------------------------------------------------
9242 # Build, host, and target specific configuration fragments
9243 # --------------------------------------------------------
9245 # Collect build-machine-specific information.
9246 .
${srcdir}/config.build
9248 # Collect host-machine-specific information.
9249 .
${srcdir}/config.
host
9253 # Collect target-machine-specific information.
9254 .
${srcdir}/config.gcc
9256 extra_objs
="${host_extra_objs} ${extra_objs}"
9257 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
9259 # Default the target-machine variables that were not explicitly set.
9260 if test x
"$tm_file" = x
9261 then tm_file
=$cpu_type/$cpu_type.h
; fi
9263 if test x
"$extra_headers" = x
9264 then extra_headers
=; fi
9266 if test x
$md_file = x
9267 then md_file
=$cpu_type/$cpu_type.md
; fi
9269 if test x
$out_file = x
9270 then out_file
=$cpu_type/$cpu_type.c
; fi
9272 if test x
"$tmake_file" = x
9273 then tmake_file
=$cpu_type/t-
$cpu_type
9276 if test x
"$dwarf2" = xyes
9277 then tm_file
="$tm_file tm-dwarf2.h"
9280 # Say what files are being used for the output code and MD file.
9281 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9282 echo "Using \`$srcdir/config/$md_file' as machine description file."
9284 # If any of the xm_file variables contain nonexistent files, warn
9285 # about them and drop them.
9288 for x
in $build_xm_file; do
9289 if test -f $srcdir/config
/$x
9291 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9292 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9298 for x
in $host_xm_file; do
9299 if test -f $srcdir/config
/$x
9301 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9302 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9308 for x
in $xm_file; do
9309 if test -f $srcdir/config
/$x
9311 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9312 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9318 for f
in $tm_file; do
9321 if test $count = ax
; then
9322 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9324 echo "Using the following target machine macro files:"
9325 for f
in $tm_file; do
9326 echo " $srcdir/config/$f"
9330 if test x
$need_64bit_hwint = xyes
; then
9332 cat >>confdefs.h
<<\_ACEOF
9333 #define NEED_64BIT_HOST_WIDE_INT 1
9339 for f
in $host_xm_file; do
9342 if test $count = a
; then
9344 elif test $count = ax
; then
9345 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9347 echo "Using the following host machine macro files:"
9348 for f
in $host_xm_file; do
9349 echo " $srcdir/config/$f"
9352 echo "Using ${out_host_hook_obj} for host machine hooks."
9354 if test "$host_xm_file" != "$build_xm_file"; then
9356 for f
in $build_xm_file; do
9359 if test $count = a
; then
9361 elif test $count = ax
; then
9362 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9364 echo "Using the following build machine macro files:"
9365 for f
in $build_xm_file; do
9366 echo " $srcdir/config/$f"
9375 # Check if a valid thread package
9376 case ${enable_threads} in
9379 target_thread_file
='single'
9383 target_thread_file
='single'
9385 aix | dce | gnat | irix | posix | rtems | \
9386 single | solaris | vxworks | win32
)
9387 target_thread_file
=${enable_threads}
9390 echo "${enable_threads} is an unknown thread package" 1>&2
9395 if test x
${thread_file} = x
; then
9396 # No thread file set by target-specific clauses in config.gcc,
9397 # so use file chosen by default logic above
9398 thread_file
=${target_thread_file}
9401 # Make gthr-default.h if we have a thread file.
9403 if test $thread_file != single
; then
9404 rm -f gthr-default.h
9405 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9406 gthread_flags
=-DHAVE_GTHR_DEFAULT
9414 if test x
$enable___cxa_atexit = xyes || \
9415 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9416 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9417 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9418 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9429 #define __cxa_atexit innocuous___cxa_atexit
9431 /* System header to define __stub macros and hopefully few prototypes,
9432 which can conflict with char __cxa_atexit (); below.
9433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9434 <limits.h> exists even on freestanding compilers. */
9437 # include <limits.h>
9439 # include <assert.h>
9444 /* Override any gcc2 internal prototype to avoid an error. */
9449 /* We use char because int might match the return type of a gcc2
9450 builtin and then its argument prototype would still apply. */
9451 char __cxa_atexit ();
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9458 char (*f) () = __cxa_atexit;
9467 return f != __cxa_atexit;
9472 rm -f conftest.
$ac_objext conftest
$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>conftest.er1
9476 grep -v '^ *+' conftest.er1
>conftest.err
9478 cat conftest.err
>&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try
='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try
='test -s conftest$ac_exeext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_cv_func___cxa_atexit
=yes
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.
$ac_ext >&5
9499 ac_cv_func___cxa_atexit
=no
9501 rm -f conftest.err conftest.
$ac_objext \
9502 conftest
$ac_exeext conftest.
$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9505 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9506 if test $ac_cv_func___cxa_atexit = yes; then
9508 cat >>confdefs.h
<<\_ACEOF
9509 #define DEFAULT_USE_CXA_ATEXIT 1
9513 echo "__cxa_atexit can't be enabled on this target"
9518 # Look for a file containing extra machine modes.
9519 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9520 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9523 cat >>confdefs.h
<<_ACEOF
9524 #define EXTRA_MODES_FILE "config/$extra_modes"
9529 # auto-host.h is the file containing items generated by autoconf and is
9530 # the first file included by config.h.
9531 # If host=build, it is correct to have bconfig include auto-host.h
9532 # as well. If host!=build, we are in error and need to do more
9533 # work to find out the build config parameters.
9534 if test x
$host = x
$build
9536 build_auto
=auto-host.h
9539 # We create a subdir, then run autoconf in the subdir.
9540 # To prevent recursion we set host and build for the new
9541 # invocation of configure to the build for this invocation
9548 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9549 *) realsrcdir
=..
/${srcdir};;
9551 saved_CFLAGS
="${CFLAGS}"
9552 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9553 ${realsrcdir}/configure \
9554 --enable-languages=${enable_languages-all} \
9555 --target=$target_alias --host=$build_alias --build=$build_alias
9556 CFLAGS
="${saved_CFLAGS}"
9558 # We just finished tests for the build machine, so rename
9559 # the file auto-build.h in the gcc directory.
9560 mv auto-host.h ..
/auto-build.h
9563 build_auto
=auto-build.h
9564 FORBUILD
=..
/${build_subdir}
9568 tm_file
="${tm_file} defaults.h"
9569 tm_p_file
="${tm_p_file} tm-preds.h"
9570 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9571 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9572 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9573 # put this back in temporarily.
9574 xm_file
="ansidecl.h ${xm_file}"
9580 # Get the version trigger filename from the toplevel
9581 if test "${with_gcc_version_trigger+set}" = set; then
9582 gcc_version_trigger
=$with_gcc_version_trigger
9584 gcc_version_trigger
=${srcdir}/version.c
9586 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9587 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9589 # Compile in configure arguments.
9590 if test -f configargs.h
; then
9591 # Being re-configured.
9592 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9593 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9595 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9598 # Double all backslashes and backslash all quotes to turn
9599 # gcc_config_arguments into a C string.
9600 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9601 $gcc_config_arguments
9603 gcc_config_arguments_str
=`cat conftest.out`
9606 cat > configargs.h
<<EOF
9607 /* Generated automatically. */
9608 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9609 static const char thread_model[] = "$thread_file";
9611 static const struct {
9612 const char *name, *value;
9613 } configure_default_options[] = $configure_default_options;
9616 # Internationalization
9618 VERSION
="$gcc_version"
9622 # If we haven't got the data from the intl directory,
9623 # assume NLS is disabled.
9631 if test -f ..
/intl
/config.intl
; then
9632 . ..
/intl
/config.intl
9634 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9635 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9636 if test x
"$USE_NLS" != xyes
; then
9637 echo "$as_me:$LINENO: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9640 echo "$as_me:$LINENO: result: yes" >&5
9641 echo "${ECHO_T}yes" >&6
9643 cat >>confdefs.h
<<\_ACEOF
9644 #define ENABLE_NLS 1
9648 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9649 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9650 # Look for .po and .gmo files in the source directory.
9653 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9654 # If there aren't any .gmo files the shell will give us the
9655 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9657 case "$cat" in *\
**)
9660 # The quadruple backslash is collapsed to a double backslash
9661 # by the backticks, then collapsed again by the double quotes,
9662 # leaving us with one backslash in the sed expression (right
9663 # before the dot that mustn't act as a wildcard).
9664 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9665 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9666 # The user is allowed to set LINGUAS to a list of languages to
9667 # install catalogs for. If it's empty that means "all of them."
9668 if test "x$LINGUAS" = x
; then
9669 CATALOGS
="$CATALOGS $cat"
9670 XLINGUAS
="$XLINGUAS $lang"
9672 case "$LINGUAS" in *$lang*)
9673 CATALOGS
="$CATALOGS $cat"
9674 XLINGUAS
="$XLINGUAS $lang"
9680 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9681 echo "${ECHO_T}$LINGUAS" >&6
9684 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9685 # -liconv on the link line twice.
9686 case "$LIBINTL" in *$LIBICONV*)
9690 # Windows32 Registry support for specifying GCC installation paths.
9691 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9692 if test "${enable_win32_registry+set}" = set; then
9693 enableval
="$enable_win32_registry"
9697 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9698 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9699 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9700 if test "x$enable_win32_registry" != xno
; then
9702 cat >>confdefs.h
<<\_ACEOF
9703 #define ENABLE_WIN32_REGISTRY 1
9706 echo "$as_me:$LINENO: result: yes" >&5
9707 echo "${ECHO_T}yes" >&6
9708 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9709 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9710 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_func_search_save_LIBS
=$LIBS
9714 ac_cv_search_RegOpenKeyExA
=no
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any gcc2 internal prototype to avoid an error. */
9726 /* We use char because int might match the return type of a gcc2
9727 builtin and then its argument prototype would still apply. */
9728 char RegOpenKeyExA ();
9737 rm -f conftest.
$ac_objext conftest
$ac_exeext
9738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739 (eval $ac_link) 2>conftest.er1
9741 grep -v '^ *+' conftest.er1
>conftest.err
9743 cat conftest.err
>&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try
='test -z "$ac_c_werror_flag"
9747 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try
='test -s conftest$ac_exeext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_cv_search_RegOpenKeyExA
="none required"
9761 echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.
$ac_ext >&5
9765 rm -f conftest.err conftest.
$ac_objext \
9766 conftest
$ac_exeext conftest.
$ac_ext
9767 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9768 for ac_lib
in advapi32
; do
9769 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9770 cat >conftest.
$ac_ext <<_ACEOF
9773 cat confdefs.h
>>conftest.
$ac_ext
9774 cat >>conftest.
$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9783 char RegOpenKeyExA ();
9792 rm -f conftest.
$ac_objext conftest
$ac_exeext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try
='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try
='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.
$ac_ext >&5
9821 rm -f conftest.err conftest.
$ac_objext \
9822 conftest
$ac_exeext conftest.
$ac_ext
9825 LIBS
=$ac_func_search_save_LIBS
9827 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9828 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9829 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9830 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9835 echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6
9839 # Check if user specified a different registry key.
9840 case "x${enable_win32_registry}" in
9843 gcc_cv_win32_registry_key
="$VERSION"
9846 # no registry lookup.
9847 gcc_cv_win32_registry_key
=''
9850 # user-specified key.
9851 gcc_cv_win32_registry_key
="$enable_win32_registry"
9855 if test "x$enable_win32_registry" != xno
; then
9856 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9857 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9859 cat >>confdefs.h
<<_ACEOF
9860 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9863 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9864 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9869 # Get an absolute path to the GCC top-level source directory
9870 holddir
=`${PWDCMD-pwd}`
9872 topdir
=`${PWDCMD-pwd}`
9875 # Conditionalize the makefile for this host machine.
9877 for f
in ${host_xmake_file}
9879 if test -f ${srcdir}/config
/$f
9881 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9885 # Conditionalize the makefile for this target machine.
9887 for f
in ${tmake_file}
9889 if test -f ${srcdir}/config
/$f
9891 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9894 tmake_file
="${tmake_file_}"
9896 symbolic_link
='ln -s'
9898 # If the host doesn't support symlinks, modify CC in
9899 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9900 # Otherwise, we can use "CC=$(CC)".
9902 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9904 cc_set_by_configure
="\$(CC)"
9905 quoted_cc_set_by_configure
="\$(CC)"
9906 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9907 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9910 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9912 symbolic_link
="cp -p"
9916 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9917 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9918 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9919 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9923 out_object_file
=`basename $out_file .c`.o
9927 for f
in $tm_file; do
9930 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9931 tm_include_list
="${tm_include_list} $f"
9934 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9935 tm_include_list
="${tm_include_list} config/$f"
9942 for f
in $tm_p_file; do
9945 tm_p_file_list
="${tm_p_file_list} $f"
9946 tm_p_include_list
="${tm_p_include_list} $f"
9949 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9950 tm_p_include_list
="${tm_p_include_list} config/$f"
9956 for f
in $xm_file; do
9959 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9960 xm_include_list
="${xm_include_list} $f"
9963 xm_file_list
="${xm_file_list} $f"
9964 xm_include_list
="${xm_include_list} $f"
9967 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9968 xm_include_list
="${xm_include_list} config/$f"
9974 host_xm_include_list
=
9975 for f
in $host_xm_file; do
9978 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9979 host_xm_include_list
="${host_xm_include_list} $f"
9982 host_xm_file_list
="${host_xm_file_list} $f"
9983 host_xm_include_list
="${host_xm_include_list} $f"
9986 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9987 host_xm_include_list
="${host_xm_include_list} config/$f"
9993 for f
in $build_xm_file; do
9996 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9997 build_xm_include_list
="${build_xm_include_list} $f"
9999 auto-build.h | auto-host.h
)
10000 build_xm_file_list
="${build_xm_file_list} $f"
10001 build_xm_include_list
="${build_xm_include_list} $f"
10004 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10005 build_xm_include_list
="${build_xm_include_list} config/$f"
10010 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
10011 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10014 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10015 if test x
$host != x
$target
10017 CROSS
="-DCROSS_COMPILE"
10019 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
10020 case "$host","$target" in
10021 # Darwin crosses can use the host system's libraries and headers,
10022 # because of the fat library support. Of course, it must be the
10023 # same version of Darwin on both sides. Allow the user to
10024 # just say --target=foo-darwin without a version number to mean
10025 # "the version on this system".
10026 *-*-darwin*,*-*-darwin*)
10027 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10028 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10029 if test $hostos = $targetos -o $targetos = darwin
; then
10031 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10036 i?
86-*-*,x86_64-
*-* \
10037 | powerpc
*-*-*,powerpc64
*-*-*)
10038 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10040 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10041 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10042 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
10045 # If this is a cross-compiler that does not
10046 # have its own set of headers then define
10049 # If this is using newlib, without having the headers available now,
10050 # then define inhibit_libc in LIBGCC2_CFLAGS.
10051 # This prevents libgcc2 from containing any code which requires libc
10054 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10055 test x
$with_newlib = xyes
; } &&
10056 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10057 inhibit_libc
=-Dinhibit_libc
10061 # When building gcc with a cross-compiler, we need to adjust things so
10062 # that the generator programs are still built with the native compiler.
10063 # Also, we cannot run fixincludes or fix-header.
10065 # These are the normal (build=host) settings:
10067 BUILD_PREFIX_1
=ignore-
10068 CC_FOR_BUILD
='$(CC)'
10069 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10071 STMP_FIXINC
=stmp-fixinc
10073 # Possibly disable fixproto, on a per-target basis.
10074 case ${use_fixproto} in
10079 STMP_FIXPROTO
=stmp-fixproto
10084 # And these apply if build != host, or we are generating coverage data
10085 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10087 BUILD_PREFIX
=build-
10088 BUILD_PREFIX_1
=build-
10089 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10091 if test "x$TARGET_SYSTEM_ROOT" = x
; then
10097 # Expand extra_headers to include complete path.
10098 # This substitutes for lots of t-* files.
10099 extra_headers_list
=
10100 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10101 for file in ${extra_headers} ; do
10102 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10105 # Define collect2 in Makefile.
10106 case $host_can_use_collect2 in
10108 *) collect2
='collect2$(exeext)' ;;
10112 # Add a definition of USE_COLLECT2 if system wants one.
10113 case $use_collect2 in
10114 no
) use_collect2
= ;;
10117 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
10118 xm_defines
="${xm_defines} USE_COLLECT2"
10119 case $host_can_use_collect2 in
10121 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10122 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10123 { (exit 1); exit 1; }; }
10129 # ---------------------------
10130 # Assembler & linker features
10131 # ---------------------------
10133 # Identify the assembler which will work hand-in-glove with the newly
10134 # built GCC, so that we can examine its features. This is the assembler
10135 # which will be driven by the driver program.
10137 # If build != host, and we aren't building gas in-tree, we identify a
10138 # build->target assembler and hope that it will have the same features
10139 # as the host->target assembler we'll be using.
10140 echo "$as_me:$LINENO: checking what assembler to use" >&5
10141 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10144 gcc_cv_gas_major_version
=
10145 gcc_cv_gas_minor_version
=
10146 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10147 if test -x "$DEFAULT_ASSEMBLER"; then
10148 gcc_cv_as
="$DEFAULT_ASSEMBLER"
10149 elif test -x "$AS"; then
10151 elif test -x as
$host_exeext; then
10152 # Build using assembler in the current directory.
10153 gcc_cv_as
=.
/as
$host_exeext
10154 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
10155 && test -f ..
/gas
/Makefile
; then
10156 # Single tree build which includes gas.
10158 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10159 for f
in $gcc_cv_as_bfd_srcdir/configure \
10160 $gcc_cv_as_gas_srcdir/configure \
10161 $gcc_cv_as_gas_srcdir/configure.
in \
10162 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
10163 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10164 if test x
$gcc_cv_gas_version != x
; then
10168 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10169 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10170 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10171 case $gcc_cv_gas_patch_version in
10172 "") gcc_cv_gas_patch_version
="0" ;;
10174 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10175 + $gcc_cv_gas_minor_version \) \* 1000 \
10176 + $gcc_cv_gas_patch_version`
10178 rm -f as
$host_exeext
10179 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
10180 in_tree_gas_is_elf
=no
10181 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
10182 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
10183 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
10185 in_tree_gas_is_elf
=yes
10189 if test "x$gcc_cv_as" = x
; then
10190 # Search the same directories that the installed compiler will
10191 # search. Else we may find the wrong assembler and lose. If we
10192 # do not find a suitable assembler binary, then try the user's
10195 # Also note we have to check MD_EXEC_PREFIX before checking the
10196 # user's path. Unfortunately, there is no good way to get at the
10197 # value of MD_EXEC_PREFIX here. So we do a brute force search
10198 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10199 # to be fixed as part of the make/configure rewrite too.
10201 if test "x$exec_prefix" = xNONE
; then
10202 if test "x$prefix" = xNONE
; then
10203 test_prefix
=/usr
/local
10205 test_prefix
=$prefix
10208 test_prefix
=$exec_prefix
10211 # If the loop below does not find an assembler, then use whatever
10212 # one we can find in the users's path.
10214 if test "x$program_prefix" != xNONE
; then
10215 gcc_cv_as
=${program_prefix}as
$host_exeext
10217 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
10220 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10221 $test_prefix/libexec/gcc/$target_noncanonical \
10222 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10223 /usr/lib/gcc/$target_noncanonical \
10224 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10225 $test_prefix/$target_noncanonical/bin"
10227 if test x
$host = x
$target; then
10228 test_dirs
="$test_dirs \
10233 /bsd43/usr/lib/cmplrs/cc \
10234 /usr/cross64/usr/bin \
10235 /usr/lib/cmplrs/cc \
10236 /sysv/usr/lib/cmplrs/cc \
10237 /svr4/usr/lib/cmplrs/cc \
10241 for dir
in $test_dirs; do
10242 if test -x $dir/as
$host_exeext; then
10243 gcc_cv_as
=$dir/as
$host_exeext
10248 case $in_tree_gas in
10250 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10251 echo "${ECHO_T}\"newly built gas\"" >&6
10254 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10255 echo "${ECHO_T}$gcc_cv_as" >&6
10259 # Identify the linker which will work hand-in-glove with the newly
10260 # built GCC, so that we can examine its features. This is the linker
10261 # which will be driven by the driver program.
10263 # If build != host, and we aren't building gas in-tree, we identify a
10264 # build->target linker and hope that it will have the same features
10265 # as the host->target linker we'll be using.
10266 echo "$as_me:$LINENO: checking what linker to use" >&5
10267 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10270 gcc_cv_gld_major_version
=
10271 gcc_cv_gld_minor_version
=
10272 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10273 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10274 if test -x "$DEFAULT_LINKER"; then
10275 gcc_cv_ld
="$DEFAULT_LINKER"
10276 elif test -x "$LD_FOR_TARGET"; then
10277 gcc_cv_ld
="$LD_FOR_TARGET"
10278 elif test -x "$LD" && test x
$host = x
$target; then
10280 elif test -x collect-ld
$host_exeext; then
10281 # Build using linker in the current directory.
10282 gcc_cv_ld
=.
/collect-ld
$host_exeext
10283 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10284 && test -f ..
/ld
/Makefile
; then
10285 # Single tree build which includes ld.
10287 in_tree_ld_is_elf
=no
10288 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10289 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10290 in_tree_ld_is_elf
=yes
10292 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
10294 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10295 if test x
$gcc_cv_gld_version != x
; then
10299 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10300 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10301 rm -f collect-ld
$host_exeext
10302 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10306 if test "x$gcc_cv_ld" = x
; then
10307 # Search the same directories that the installed compiler will
10308 # search. Else we may find the wrong linker and lose. If we
10309 # do not find a suitable linker binary, then try the user's
10312 # Also note we have to check MD_EXEC_PREFIX before checking the
10313 # user's path. Unfortunately, there is no good way to get at the
10314 # value of MD_EXEC_PREFIX here. So we do a brute force search
10315 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10316 # to be fixed as part of the make/configure rewrite too.
10318 if test "x$exec_prefix" = xNONE
; then
10319 if test "x$prefix" = xNONE
; then
10320 test_prefix
=/usr
/local
10322 test_prefix
=$prefix
10325 test_prefix
=$exec_prefix
10328 # If the loop below does not find an linker, then use whatever
10329 # one we can find in the users's path.
10331 if test "x$program_prefix" != xNONE
; then
10332 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10334 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10337 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10338 $test_prefix/libexec/gcc/$target_noncanonical \
10339 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10340 /usr/lib/gcc/$target_noncanonical \
10341 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10342 $test_prefix/$target_noncanonical/bin"
10344 if test x
$host = x
$target; then
10345 test_dirs
="$test_dirs \
10350 /bsd43/usr/lib/cmplrs/cc \
10351 /usr/cross64/usr/bin \
10352 /usr/lib/cmplrs/cc \
10353 /sysv/usr/lib/cmplrs/cc \
10354 /svr4/usr/lib/cmplrs/cc \
10358 for dir
in $test_dirs; do
10359 if test -x $dir/ld
$host_exeext; then
10360 gcc_cv_ld
=$dir/ld
$host_exeext
10365 case $in_tree_ld in
10367 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10368 echo "${ECHO_T}\"newly built ld\"" >&6
10371 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10372 echo "${ECHO_T}$gcc_cv_ld" >&6
10376 # Figure out what nm we will be using.
10377 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10378 echo "$as_me:$LINENO: checking what nm to use" >&5
10379 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10381 if test -x nm
$host_exeext; then
10382 gcc_cv_nm
=.
/nm
$host_exeext
10383 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10384 && test -f ..
/binutils
/Makefile
; then
10385 # Single tree build which includes binutils.
10387 gcc_cv_nm
=.
/nm
$host_exeext
10388 rm -f nm
$host_exeext
10389 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10390 elif test "x$program_prefix" != xNONE
; then
10391 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10393 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10395 case $in_tree_nm in
10396 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10397 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10398 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10399 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10402 # Figure out what objdump we will be using.
10403 echo "$as_me:$LINENO: checking what objdump to use" >&5
10404 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10406 if test -x objdump
$host_exeext; then
10407 gcc_cv_objdump
=.
/objdump
$host_exeext
10408 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10409 && test -f ..
/binutils
/Makefile
; then
10410 # Single tree build which includes binutils.
10411 in_tree_objdump
=yes
10412 gcc_cv_objdump
=.
/objdump
$host_exeext
10413 rm -f objdump
$host_exeext
10414 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10415 objdump
$host_exeext 2>/dev
/null
10416 elif test "x$program_prefix" != xNONE
; then
10417 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10419 gcc_cv_objdump
=`echo objdump | \
10420 sed "${program_transform_name}"`$host_exeext
10422 case $in_tree_objdump in
10423 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10424 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10425 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10426 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10429 # Figure out what assembler alignment features are present.
10430 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10431 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10432 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10433 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 gcc_cv_as_balign_and_p2align
=no
10436 if test $in_tree_gas = yes; then
10437 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10438 then gcc_cv_as_balign_and_p2align
=yes
10440 elif test x
$gcc_cv_as != x
; then
10442 .p2align 2' > conftest.s
10443 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }
10450 gcc_cv_as_balign_and_p2align
=yes
10452 echo "configure: failed program was" >&5
10455 rm -f conftest.o conftest.s
10458 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10459 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10460 if test $gcc_cv_as_balign_and_p2align = yes; then
10462 cat >>confdefs.h
<<\_ACEOF
10463 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10468 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10469 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10470 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 gcc_cv_as_max_skip_p2align
=no
10474 if test $in_tree_gas = yes; then
10475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10476 then gcc_cv_as_max_skip_p2align
=yes
10478 elif test x
$gcc_cv_as != x
; then
10479 echo '.p2align 4,,7' > conftest.s
10480 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }
10487 gcc_cv_as_max_skip_p2align
=yes
10489 echo "configure: failed program was" >&5
10492 rm -f conftest.o conftest.s
10495 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10496 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10497 if test $gcc_cv_as_max_skip_p2align = yes; then
10499 cat >>confdefs.h
<<\_ACEOF
10500 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10505 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10506 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10507 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10510 gcc_cv_as_subsection_m1
=no
10511 if test $in_tree_gas = yes; then
10512 if test $in_tree_gas_is_elf = yes \
10513 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10514 then gcc_cv_as_subsection_m1
=yes
10516 elif test x
$gcc_cv_as != x
; then
10517 echo 'conftest_label1: .word 0
10519 conftest_label2: .word 0
10520 .previous' > conftest.s
10521 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }
10528 if test x
$gcc_cv_nm != x
; then
10529 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10530 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10531 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10533 else gcc_cv_as_subsection_m1
=yes
10535 rm -f conftest.nm1 conftest.nm2
10538 echo "configure: failed program was" >&5
10541 rm -f conftest.o conftest.s
10544 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10545 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10546 if test $gcc_cv_as_subsection_m1 = yes; then
10548 cat >>confdefs.h
<<\_ACEOF
10549 #define HAVE_GAS_SUBSECTION_ORDERING 1
10554 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10555 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10556 if test "${gcc_cv_as_weak+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 if test $in_tree_gas = yes; then
10561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10562 then gcc_cv_as_weak
=yes
10564 elif test x
$gcc_cv_as != x
; then
10565 echo ' .weak foobar' > conftest.s
10566 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }
10575 echo "configure: failed program was" >&5
10578 rm -f conftest.o conftest.s
10581 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10582 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10583 if test $gcc_cv_as_weak = yes; then
10585 cat >>confdefs.h
<<\_ACEOF
10586 #define HAVE_GAS_WEAK 1
10591 # .hidden needs to be supported in both the assembler and the linker,
10592 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10593 # This is irritatingly difficult to feature test for; we have to check the
10594 # date string after the version number. If we've got an in-tree
10595 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10597 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10598 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10599 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10600 if test "${gcc_cv_as_hidden+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10603 gcc_cv_as_hidden
=no
10604 if test $in_tree_gas = yes; then
10605 if test $in_tree_gas_is_elf = yes \
10606 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10607 then gcc_cv_as_hidden
=yes
10609 elif test x
$gcc_cv_as != x
; then
10610 echo ' .hidden foobar
10611 foobar:' > conftest.s
10612 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }
10619 gcc_cv_as_hidden
=yes
10621 echo "configure: failed program was" >&5
10624 rm -f conftest.o conftest.s
10627 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10628 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10631 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10632 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10633 if test "${gcc_cv_ld_hidden+set}" = set; then
10634 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 if test $in_tree_ld = yes ; then
10637 gcc_cv_ld_hidden
=no
10638 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 \
10639 && test $in_tree_ld_is_elf = yes; then
10640 gcc_cv_ld_hidden
=yes
10643 gcc_cv_ld_hidden
=yes
10644 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10645 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10646 ld_vers
=`echo $ld_ver | sed -n \
10647 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10648 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10649 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10650 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10651 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10652 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10653 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'`
10654 if test 0"$ld_date" -lt 20020404; then
10655 if test -n "$ld_date"; then
10656 # If there was date string, but was earlier than 2002-04-04, fail
10657 gcc_cv_ld_hidden
=no
10658 elif test -z "$ld_vers"; then
10659 # If there was no date string nor ld version number, something is wrong
10660 gcc_cv_ld_hidden
=no
10662 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10663 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10664 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10665 test -z "$ld_vers_patch" && ld_vers_patch
=0
10666 if test "$ld_vers_major" -lt 2; then
10667 gcc_cv_ld_hidden
=no
10668 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10669 gcc_cv_ld_hidden
="no"
10670 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10671 gcc_cv_ld_hidden
=no
10676 case "${target}" in
10677 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10678 gcc_cv_ld_hidden
=yes
10681 gcc_cv_ld_hidden
=no
10687 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10688 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10689 libgcc_visibility
=no
10691 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10692 libgcc_visibility
=yes
10694 cat >>confdefs.h
<<\_ACEOF
10695 #define HAVE_GAS_HIDDEN 1
10700 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10701 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10702 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10703 if test "${gcc_cv_as_leb128+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10706 gcc_cv_as_leb128
=no
10707 if test $in_tree_gas = yes; then
10708 if test $in_tree_gas_is_elf = yes \
10709 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10710 then gcc_cv_as_leb128
=yes
10712 elif test x
$gcc_cv_as != x
; then
10719 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }
10726 # GAS versions before 2.11 do not support uleb128,
10727 # despite appearing to.
10728 # ??? There exists an elf-specific test that will crash
10729 # the assembler. Perhaps it's better to figure out whether
10730 # arbitrary sections are supported and try the test.
10731 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10732 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10733 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10734 as_major
=`echo $as_ver | sed 's/\..*//'`
10735 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10736 if test $as_major -eq 2 && test $as_minor -lt 11
10738 else gcc_cv_as_leb128
=yes
10742 echo "configure: failed program was" >&5
10745 rm -f conftest.o conftest.s
10748 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10749 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10750 if test $gcc_cv_as_leb128 = yes; then
10752 cat >>confdefs.h
<<\_ACEOF
10753 #define HAVE_AS_LEB128 1
10758 # GAS versions up to and including 2.11.0 may mis-optimize
10760 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10761 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10762 if test "${gcc_cv_as_eh_frame+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 gcc_cv_as_eh_frame
=no
10766 if test $in_tree_gas = yes; then
10767 if test $in_tree_gas_is_elf = yes \
10768 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10769 then gcc_cv_as_eh_frame
=yes
10771 elif test x
$gcc_cv_as != x
; then
10778 .section .eh_frame,"aw",@progbits
10780 .4byte .LECIE1-.LSCIE1
10794 .4byte .LEFDE1-.LASFDE1
10796 .4byte .LASFDE1-__FRAME_BEGIN__
10803 .LEFDE1:' > conftest.s
10804 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }
10811 cat > conftest.lit
<<EOF
10812 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10813 0010 01000000 12000000 18000000 00000000 ................
10814 0020 08000000 04080000 0044 .........D
10816 cat > conftest.big
<<EOF
10817 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10818 0010 00000001 00000012 00000018 00000000 ................
10819 0020 00000008 04000000 0844 .........D
10821 # If the assembler didn't choke, and we can objdump,
10822 # and we got the correct data, then succeed.
10823 if test x
$gcc_cv_objdump != x \
10824 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10825 |
tail -3 > conftest.got \
10826 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10827 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10829 gcc_cv_as_eh_frame
=yes
10830 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 gcc_cv_as_eh_frame
=buggy
10838 # Uh oh, what do we do now?
10839 gcc_cv_as_eh_frame
=no
10842 echo "configure: failed program was" >&5
10845 rm -f conftest.o conftest.s
10848 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10849 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10852 if test $gcc_cv_as_eh_frame = buggy
; then
10854 cat >>confdefs.h
<<\_ACEOF
10855 #define USE_AS_TRADITIONAL_FORMAT 1
10860 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10861 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10862 if test "${gcc_cv_as_shf_merge+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 gcc_cv_as_shf_merge
=no
10866 if test $in_tree_gas = yes; then
10867 if test $in_tree_gas_is_elf = yes \
10868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10869 then gcc_cv_as_shf_merge
=yes
10871 elif test x
$gcc_cv_as != x
; then
10872 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10873 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }
10880 gcc_cv_as_shf_merge
=yes
10882 echo "configure: failed program was" >&5
10885 rm -f conftest.o conftest.s
10888 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10889 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10892 cat >>confdefs.h
<<_ACEOF
10893 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10897 # Thread-local storage - the check is heavily parametrized.
10905 .section ".tdata","awT",@progbits
10908 ldq $27,__tls_get_addr($29) !literal!1
10909 lda $16,foo($29) !tlsgd!1
10910 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10911 ldq $27,__tls_get_addr($29) !literal!2
10912 lda $16,foo($29) !tlsldm!2
10913 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10914 ldq $1,foo($29) !gotdtprel
10915 ldah $2,foo($29) !dtprelhi
10916 lda $3,foo($2) !dtprello
10917 lda $4,foo($29) !dtprel
10918 ldq $1,foo($29) !gottprel
10919 ldah $2,foo($29) !tprelhi
10920 lda $3,foo($2) !tprello
10921 lda $4,foo($29) !tprel'
10924 tls_as_opt
=--fatal-warnings
10928 .section ".tdata","awT",@progbits
10932 leal foo@TLSGD(,%ebx,1), %eax
10933 leal foo@TLSLDM(%ebx), %eax
10934 leal foo@DTPOFF(%eax), %edx
10935 movl foo@GOTTPOFF(%ebx), %eax
10936 subl foo@GOTTPOFF(%ebx), %eax
10937 addl foo@GOTNTPOFF(%ebx), %eax
10938 movl foo@INDNTPOFF, %eax
10939 movl $foo@TPOFF, %eax
10940 subl $foo@TPOFF, %eax
10941 leal foo@NTPOFF(%ecx), %eax'
10944 tls_as_opt
=--fatal-warnings
10948 .section ".tdata","awT",@progbits
10952 leaq foo@TLSGD(%rip), %rdi
10953 leaq foo@TLSLD(%rip), %rdi
10954 leaq foo@DTPOFF(%rax), %rdx
10955 movq foo@GOTTPOFF(%rip), %rax
10956 movq $foo@TPOFF, %rax'
10959 tls_as_opt
=--fatal-warnings
10963 .section ".tdata","awT",@progbits
10966 addl r16 = @ltoff(@dtpmod(foo#)), gp
10967 addl r17 = @ltoff(@dtprel(foo#)), gp
10968 addl r18 = @ltoff(@tprel(foo#)), gp
10969 addl r19 = @dtprel(foo#), gp
10970 adds r21 = @dtprel(foo#), r13
10971 movl r23 = @dtprel(foo#)
10972 addl r20 = @tprel(foo#), gp
10973 adds r22 = @tprel(foo#), r13
10974 movl r24 = @tprel(foo#)'
10977 tls_as_opt
=--fatal-warnings
10981 .section ".tdata","awT",@progbits
10989 addi 3,31,ld0@got@tlsgd
10991 addi 3,31,x1@got@tlsld
10994 addis 9,3,x2@dtprel@ha
10995 addi 9,9,x2@dtprel@l
10996 lwz 9,x3@got@tprel(31)
10999 addis 9,2,x2@tprel@ha
11000 addi 9,9,x2@tprel@l'
11003 tls_as_opt
="-a32 --fatal-warnings"
11007 .section ".tdata","awT",@progbits
11015 addi 3,2,ld0@got@tlsgd
11021 addi 3,2,x1@got@tlsld
11027 addis 9,3,x2@dtprel@ha
11028 addi 9,9,x2@dtprel@l
11031 ld 9,x3@got@dtprel(2)
11037 tls_as_opt
="-a64 --fatal-warnings"
11041 .section ".tdata","awT",@progbits
11048 .long foo@GOTNTPOFF
11049 .long foo@INDNTPOFF
11050 l %r1,foo@GOTNTPOFF(%r12)
11051 l %r1,0(%r1):tls_load:foo
11052 bas %r14,0(%r1,%r13):tls_gdcall:foo
11053 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11056 tls_as_opt
="-m31 --fatal-warnings"
11060 .section ".tdata","awT",@progbits
11067 .quad foo@GOTNTPOFF
11068 lg %r1,foo@GOTNTPOFF(%r12)
11069 larl %r1,foo@INDNTPOFF
11070 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11071 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11074 tls_as_opt
="-m64 -Aesame --fatal-warnings"
11076 sh-
*-* | sh
[34]-*-*)
11078 .section ".tdata","awT",@progbits
11088 tls_as_opt
=--fatal-warnings
11092 sparc
*-sun-solaris2.
*)
11099 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
11101 .section ".tdata",#alloc,#write,#tls
11104 sethi %tgd_hi22(foo), %o0
11105 add %o0, %tgd_lo10(foo), %o1
11106 add %l7, %o1, %o0, %tgd_add(foo)
11107 call __tls_get_addr, %tgd_call(foo)
11108 sethi %tldm_hi22(foo), %l1
11109 add %l1, %tldm_lo10(foo), %l2
11110 add %l7, %l2, %o0, %tldm_add(foo)
11111 call __tls_get_addr, %tldm_call(foo)
11112 sethi %tldo_hix22(foo), %l3
11113 xor %l3, %tldo_lox10(foo), %l4
11114 add %o0, %l4, %l5, %tldo_add(foo)
11115 sethi %tie_hi22(foo), %o3
11116 add %o3, %tie_lo10(foo), %o3
11117 ld [%l7 + %o3], %o2, %tie_ld(foo)
11118 add %g7, %o2, %o4, %tie_add(foo)
11119 sethi %tle_hix22(foo), %l1
11120 xor %l1, %tle_lox10(foo), %o5
11121 ld [%g7 + %o5], %o1'
11126 .section ".tdata","awT",@progbits
11129 sethi %tgd_hi22(foo), %o0
11130 add %o0, %tgd_lo10(foo), %o1
11131 add %l7, %o1, %o0, %tgd_add(foo)
11132 call __tls_get_addr, %tgd_call(foo)
11133 sethi %tldm_hi22(foo), %l1
11134 add %l1, %tldm_lo10(foo), %l2
11135 add %l7, %l2, %o0, %tldm_add(foo)
11136 call __tls_get_addr, %tldm_call(foo)
11137 sethi %tldo_hix22(foo), %l3
11138 xor %l3, %tldo_lox10(foo), %l4
11139 add %o0, %l4, %l5, %tldo_add(foo)
11140 sethi %tie_hi22(foo), %o3
11141 add %o3, %tie_lo10(foo), %o3
11142 ld [%l7 + %o3], %o2, %tie_ld(foo)
11143 add %g7, %o2, %o4, %tie_add(foo)
11144 sethi %tle_hix22(foo), %l1
11145 xor %l1, %tle_lox10(foo), %o5
11146 ld [%g7 + %o5], %o1'
11149 tls_as_opt
="-32 --fatal-warnings"
11153 if test -z "$tls_first_major"; then
11154 : # If we don't have a check, assume no support.
11156 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11157 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11158 if test "${gcc_cv_as_tls+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 if test $in_tree_gas = yes; then
11163 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11164 then gcc_cv_as_tls
=yes
11166 elif test x
$gcc_cv_as != x
; then
11167 echo "$conftest_s" > conftest.s
11168 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }
11177 echo "configure: failed program was" >&5
11180 rm -f conftest.o conftest.s
11183 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11184 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11185 if test $gcc_cv_as_tls = yes; then
11187 cat >>confdefs.h
<<\_ACEOF
11188 #define HAVE_AS_TLS 1
11194 # Target-specific assembler checks.
11197 # All TARGET_ABI_OSF targets.
11198 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
11199 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11200 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11201 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 gcc_cv_as_alpha_explicit_relocs
=no
11205 if test $in_tree_gas = yes; then
11206 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11207 then gcc_cv_as_alpha_explicit_relocs
=yes
11209 elif test x
$gcc_cv_as != x
; then
11210 echo ' .set nomacro
11212 extbl $3, $2, $3 !lituse_bytoff!1
11213 ldq $2, a($29) !literal!1
11214 ldq $4, b($29) !literal!2
11215 ldq_u $3, 0($2) !lituse_base!1
11216 ldq $27, f($29) !literal!5
11217 jsr $26, ($27), f !lituse_jsr!5
11218 ldah $29, 0($26) !gpdisp!3
11219 lda $0, c($29) !gprel
11220 ldah $1, d($29) !gprelhigh
11221 lda $1, d($1) !gprellow
11222 lda $29, 0($29) !gpdisp!3' > conftest.s
11223 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }
11230 gcc_cv_as_alpha_explicit_relocs
=yes
11232 echo "configure: failed program was" >&5
11235 rm -f conftest.o conftest.s
11238 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11239 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11240 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11242 cat >>confdefs.h
<<\_ACEOF
11243 #define HAVE_AS_EXPLICIT_RELOCS 1
11250 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11251 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11252 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 gcc_cv_as_cris_no_mul_bug
=no
11256 if test $in_tree_gas = yes; then
11257 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11258 then gcc_cv_as_cris_no_mul_bug
=yes
11260 elif test x
$gcc_cv_as != x
; then
11261 echo '.text' > conftest.s
11262 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }
11269 gcc_cv_as_cris_no_mul_bug
=yes
11271 echo "configure: failed program was" >&5
11274 rm -f conftest.o conftest.s
11277 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11278 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11279 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11281 cat >>confdefs.h
<<\_ACEOF
11282 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11289 echo "$as_me:$LINENO: checking assembler for .register" >&5
11290 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11291 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 gcc_cv_as_sparc_register_op
=no
11295 if test x
$gcc_cv_as != x
; then
11296 echo '.register %g2, #scratch' > conftest.s
11297 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }
11304 gcc_cv_as_sparc_register_op
=yes
11306 echo "configure: failed program was" >&5
11309 rm -f conftest.o conftest.s
11312 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11313 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11314 if test $gcc_cv_as_sparc_register_op = yes; then
11316 cat >>confdefs.h
<<\_ACEOF
11317 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11322 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11323 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11324 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 gcc_cv_as_sparc_relax
=no
11328 if test x
$gcc_cv_as != x
; then
11329 echo '.text' > conftest.s
11330 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332 (eval $ac_try) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); }; }
11337 gcc_cv_as_sparc_relax
=yes
11339 echo "configure: failed program was" >&5
11342 rm -f conftest.o conftest.s
11345 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11346 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11347 if test $gcc_cv_as_sparc_relax = yes; then
11349 cat >>confdefs.h
<<\_ACEOF
11350 #define HAVE_AS_RELAX_OPTION 1
11355 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11356 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11357 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 gcc_cv_as_sparc_ua_pcrel
=no
11361 if test x
$gcc_cv_as != x
; then
11368 .uaword %r_disp32(foo)' > conftest.s
11369 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }
11376 if test x
$gcc_cv_ld != x \
11377 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11378 gcc_cv_as_sparc_ua_pcrel
=yes
11382 echo "configure: failed program was" >&5
11385 rm -f conftest.o conftest.s
11388 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11389 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11390 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11392 cat >>confdefs.h
<<\_ACEOF
11393 #define HAVE_AS_SPARC_UA_PCREL 1
11397 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11398 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11399 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11403 if test x
$gcc_cv_as != x
; then
11407 .uaword %r_disp32(foo)
11408 .byte 0x32, 0x33, 0x34
11412 .skip 4' > conftest.s
11413 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }
11420 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11421 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11422 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11423 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11424 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11425 |
grep 'DISP32' > /dev
/null
2>&1; then
11428 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11433 echo "configure: failed program was" >&5
11436 rm -f conftest.o conftest.s
11439 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11440 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11441 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11443 cat >>confdefs.h
<<\_ACEOF
11444 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11449 fi # unaligned pcrel relocs
11451 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11452 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11453 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 gcc_cv_as_sparc_offsetable_lo10
=no
11457 if test x
$gcc_cv_as != x
; then
11459 or %g1, %lo(ab) + 12, %g1
11460 or %g1, %lo(ab + 12), %g1' > conftest.s
11461 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }
11468 if test x
$gcc_cv_objdump != x \
11469 && %gcc_cv_objdump
-s -j .text conftest.o
2> /dev
/null \
11470 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11471 gcc_cv_as_offsetable_lo10
=yes
11474 echo "configure: failed program was" >&5
11477 rm -f conftest.o conftest.s
11480 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11481 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11482 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11484 cat >>confdefs.h
<<\_ACEOF
11485 #define HAVE_AS_OFFSETABLE_LO10 1
11491 i
[34567]86-*-* | x86_64-
*-*)
11493 cygwin
* | pe | mingw32
*)
11494 # Used for DWARF 2 in PE
11495 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11496 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11497 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 gcc_cv_as_ix86_pe_secrel32
=no
11501 if test $in_tree_gas = yes; then
11502 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11503 then gcc_cv_as_ix86_pe_secrel32
=yes
11505 elif test x
$gcc_cv_as != x
; then
11509 .secrel32 foo' > conftest.s
11510 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }
11517 if test x
$gcc_cv_ld != x \
11518 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
11519 gcc_cv_as_ix86_pe_secrel32
=yes
11523 echo "configure: failed program was" >&5
11526 rm -f conftest.o conftest.s
11529 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11530 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11531 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11533 cat >>confdefs.h
<<\_ACEOF
11534 #define HAVE_GAS_PE_SECREL32_RELOC 1
11541 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11542 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11543 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 gcc_cv_as_ix86_filds_fists
=no
11547 if test $in_tree_gas = yes; then
11548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11549 then gcc_cv_as_ix86_filds_fists
=yes
11551 elif test x
$gcc_cv_as != x
; then
11552 echo 'filds mem; fists mem' > conftest.s
11553 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }
11560 gcc_cv_as_ix86_filds_fists
=yes
11562 echo "configure: failed program was" >&5
11565 rm -f conftest.o conftest.s
11568 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11569 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11570 if test $gcc_cv_as_ix86_filds_fists = yes; then
11572 cat >>confdefs.h
<<\_ACEOF
11573 #define HAVE_GAS_FILDS_FISTS 1
11578 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11579 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11580 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11581 echo $ECHO_N "(cached) $ECHO_C" >&6
11583 gcc_cv_as_ix86_cmov_sun_syntax
=no
11584 if test x
$gcc_cv_as != x
; then
11585 echo 'cmovl.l %edx, %eax' > conftest.s
11586 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }
11593 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11595 echo "configure: failed program was" >&5
11598 rm -f conftest.o conftest.s
11601 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11602 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11603 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11605 cat >>confdefs.h
<<\_ACEOF
11606 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11611 # This one is used unconditionally by i386.[ch]; it is to be defined
11612 # to 1 if the feature is present, 0 otherwise.
11613 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11614 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11615 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 gcc_cv_as_ix86_gotoff_in_data
=no
11619 if test $in_tree_gas = yes; then
11620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11621 then gcc_cv_as_ix86_gotoff_in_data
=yes
11623 elif test x
$gcc_cv_as != x
; then
11628 .long .L0@GOTOFF' > conftest.s
11629 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }
11636 gcc_cv_as_ix86_gotoff_in_data
=yes
11638 echo "configure: failed program was" >&5
11641 rm -f conftest.o conftest.s
11644 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11645 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11648 cat >>confdefs.h
<<_ACEOF
11649 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11655 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11656 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11657 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11661 if test $in_tree_gas = yes; then
11662 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11663 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11665 elif test x
$gcc_cv_as != x
; then
11667 addl r15 = @ltoffx(x#), gp
11669 ld8.mov r16 = [r15], x#' > conftest.s
11670 if { ac_try
='$gcc_cv_as -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 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11679 echo "configure: failed program was" >&5
11682 rm -f conftest.o conftest.s
11685 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11686 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11687 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11689 cat >>confdefs.h
<<\_ACEOF
11690 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11699 *-*-aix*) conftest_s
=' .csect .text[PR]
11701 *-*-darwin*) conftest_s
=' .text
11703 *) conftest_s
=' .text
11707 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11708 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11709 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 gcc_cv_as_powerpc_mfcrf
=no
11713 if test $in_tree_gas = yes; then
11714 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11715 then gcc_cv_as_powerpc_mfcrf
=yes
11717 elif test x
$gcc_cv_as != x
; then
11718 echo "$conftest_s" > conftest.s
11719 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }
11726 gcc_cv_as_powerpc_mfcrf
=yes
11728 echo "configure: failed program was" >&5
11731 rm -f conftest.o conftest.s
11734 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11735 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11736 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11738 cat >>confdefs.h
<<\_ACEOF
11739 #define HAVE_AS_MFCRF 1
11746 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11747 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11748 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 gcc_cv_as_mips_explicit_relocs
=no
11752 if test $in_tree_gas = yes; then
11753 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11754 then gcc_cv_as_mips_explicit_relocs
=yes
11756 elif test x
$gcc_cv_as != x
; then
11757 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11758 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }
11765 gcc_cv_as_mips_explicit_relocs
=yes
11767 echo "configure: failed program was" >&5
11770 rm -f conftest.o conftest.s
11773 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11774 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11775 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11776 if test x
$target_cpu_default = x
11777 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11778 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11784 # ??? Not all targets support dwarf2 debug_line, even within a version
11785 # of gas. Moreover, we need to emit a valid instruction to trigger any
11786 # info to the output file. So, as supported targets are added to gas 2.11,
11787 # add some instruction here to (also) show we expect this might work.
11788 # ??? Once 2.11 is released, probably need to add first known working
11789 # version to the per-target configury.
11791 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11792 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11793 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11796 ia64
*-*-* | s390
*-*-*)
11803 if test x
"$insn" != x
; then
11805 .file 1 \"conftest.s\"
11808 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11809 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11810 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 gcc_cv_as_dwarf2_debug_line
=no
11814 if test $in_tree_gas = yes; then
11815 if test $in_tree_gas_is_elf = yes \
11816 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11817 then gcc_cv_as_dwarf2_debug_line
=yes
11819 elif test x
$gcc_cv_as != x
; then
11820 echo "$conftest_s" > conftest.s
11821 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }
11828 # ??? This fails with non-gnu grep. Maybe use objdump?
11829 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11830 gcc_cv_as_dwarf2_debug_line
=yes
11833 echo "configure: failed program was" >&5
11836 rm -f conftest.o conftest.s
11839 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11840 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11843 # The .debug_line file table must be in the exact order that
11844 # we specified the files, since these indices are also used
11845 # by DW_AT_decl_file. Approximate this test by testing if
11846 # the assembler bitches if the same index is assigned twice.
11847 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11848 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11849 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 gcc_cv_as_dwarf2_file_buggy
=no
11853 if test x
$gcc_cv_as != x
; then
11854 echo ' .file 1 "foo.s"
11855 .file 1 "bar.s"' > conftest.s
11856 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }
11863 gcc_cv_as_dwarf2_file_buggy
=yes
11865 echo "configure: failed program was" >&5
11868 rm -f conftest.o conftest.s
11871 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11872 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11875 if test $gcc_cv_as_dwarf2_debug_line = yes \
11876 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11878 cat >>confdefs.h
<<\_ACEOF
11879 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11884 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11885 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11886 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 gcc_cv_as_gdwarf2_flag
=no
11890 if test $in_tree_gas = yes; then
11891 if test $in_tree_gas_is_elf = yes \
11892 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11893 then gcc_cv_as_gdwarf2_flag
=yes
11895 elif test x
$gcc_cv_as != x
; then
11896 echo "$insn" > conftest.s
11897 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; }
11904 gcc_cv_as_gdwarf2_flag
=yes
11906 echo "configure: failed program was" >&5
11909 rm -f conftest.o conftest.s
11912 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11913 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11914 if test $gcc_cv_as_gdwarf2_flag = yes; then
11916 cat >>confdefs.h
<<\_ACEOF
11917 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11922 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11923 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11924 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 gcc_cv_as_gstabs_flag
=no
11928 if test $in_tree_gas = yes; then
11929 if test $in_tree_gas_is_elf = yes \
11930 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11931 then gcc_cv_as_gstabs_flag
=yes
11933 elif test x
$gcc_cv_as != x
; then
11934 echo "$insn" > conftest.s
11935 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }
11942 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11943 # and warns about it, but still exits successfully. So check for
11945 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; }
11952 else gcc_cv_as_gstabs_flag
=yes
11955 echo "configure: failed program was" >&5
11958 rm -f conftest.o conftest.s
11961 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11962 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11963 if test $gcc_cv_as_gstabs_flag = yes; then
11965 cat >>confdefs.h
<<\_ACEOF
11966 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11972 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11973 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11974 gcc_cv_ld_ro_rw_mix
=unknown
11975 if test $in_tree_ld = yes ; then
11976 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 \
11977 && test $in_tree_ld_is_elf = yes; then
11978 gcc_cv_ld_ro_rw_mix
=read-write
11980 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11981 echo '.section myfoosect, "a"' > conftest1.s
11982 echo '.section myfoosect, "aw"' > conftest2.s
11983 echo '.byte 1' >> conftest2.s
11984 echo '.section myfoosect, "a"' > conftest3.s
11985 echo '.byte 0' >> conftest3.s
11986 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
11987 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
11988 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
11989 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
11990 conftest2.o conftest3.o
> /dev
/null
2>&1; then
11991 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
11992 | sed -e '/myfoosect/!d' -e N`
11993 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
11994 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
11995 gcc_cv_ld_ro_rw_mix
=read-only
11997 gcc_cv_ld_ro_rw_mix
=read-write
12001 rm -f conftest.
* conftest
[123].
*
12003 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
12005 cat >>confdefs.h
<<\_ACEOF
12006 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12010 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12011 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12013 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12014 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12015 gcc_cv_ld_eh_frame_hdr
=no
12016 if test $in_tree_ld = yes ; then
12017 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 \
12018 && test $in_tree_ld_is_elf = yes; then
12019 gcc_cv_ld_eh_frame_hdr
=yes
12021 elif test x
$gcc_cv_ld != x
; then
12022 # Check if linker supports --eh-frame-hdr option
12023 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
12024 gcc_cv_ld_eh_frame_hdr
=yes
12027 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
12029 cat >>confdefs.h
<<\_ACEOF
12030 #define HAVE_LD_EH_FRAME_HDR 1
12034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12035 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12037 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12038 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12040 if test $in_tree_ld = yes ; then
12041 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 \
12042 && test $in_tree_ld_is_elf = yes; then
12045 elif test x
$gcc_cv_ld != x
; then
12046 # Check if linker supports -pie option
12047 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
12051 if test x
"$gcc_cv_ld_pie" = xyes
; then
12053 cat >>confdefs.h
<<\_ACEOF
12054 #define HAVE_LD_PIE 1
12058 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12059 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12065 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12066 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12067 if test "${gcc_cv_ld_as_needed+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 gcc_cv_ld_as_needed
=no
12071 if test $in_tree_ld = yes ; then
12072 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 \
12073 && test $in_tree_ld_is_elf = yes; then
12074 gcc_cv_ld_as_needed
=yes
12076 elif test x
$gcc_cv_ld != x
; then
12077 # Check if linker supports --as-needed and --no-as-needed options
12078 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
12079 gcc_cv_ld_as_needed
=yes
12084 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12085 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12086 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
12088 cat >>confdefs.h
<<\_ACEOF
12089 #define HAVE_LD_AS_NEEDED 1
12094 if test x
$with_sysroot = x
&& test x
$host = x
$target \
12095 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12097 cat >>confdefs.h
<<_ACEOF
12098 #define PREFIX_INCLUDE_DIR "$prefix/include"
12103 # Find out what GC implementation we want, or may, use.
12105 # Check whether --with-gc or --without-gc was given.
12106 if test "${with_gc+set}" = set; then
12113 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12114 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12115 { (exit 1); exit 1; }; }
12122 echo "Using $GGC for garbage collection."
12124 # Use the system's zlib library.
12126 zlibinc
="-I\$(srcdir)/../zlib"
12128 # Check whether --with-system-zlib or --without-system-zlib was given.
12129 if test "${with_system_zlib+set}" = set; then
12130 withval
="$with_system_zlib"
12139 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12140 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12141 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12142 if test "${enable_maintainer_mode+set}" = set; then
12143 enableval
="$enable_maintainer_mode"
12144 maintainer_mode
=$enableval
12149 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12150 echo "${ECHO_T}$maintainer_mode" >&6
12152 if test "$maintainer_mode" = "yes"; then
12158 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12159 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12161 # Check whether --with-libbanshee or --without-libbanshee was given.
12162 if test "${with_libbanshee+set}" = set; then
12163 withval
="$with_libbanshee"
12164 libbanshee
="$with_libbanshee"
12169 if test x
"$libbanshee" = xyes
; then
12170 BANSHEELIB
="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12171 BANSHEEINC
="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12172 ANDER
="tree-alias-ander.o"
12174 cat >>confdefs.h
<<\_ACEOF
12175 #define HAVE_BANSHEE 1
12183 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12184 echo "${ECHO_T}$with_libbanshee" >&6
12194 # Make empty files to contain the specs and options for each language.
12195 # Then add #include lines to for a compiler that has specs and/or options.
12200 for subdir
in .
$subdirs
12202 if test -f $srcdir/$subdir/lang.opt
; then
12203 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
12205 if test -f $srcdir/$subdir/lang-specs.h
; then
12206 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12208 if test -f $srcdir/$subdir/$subdir-tree.def
; then
12209 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12213 # These (without "all_") are set in each config-lang.in.
12214 # `language' must be a single word so is spelled singularly.
12216 all_boot_languages
=
12219 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12220 # List of language makefile fragments.
12221 all_lang_makefrags
=
12222 # List of language subdirectory makefiles. Deprecated.
12223 all_lang_makefiles
=
12224 # Files for gengtype
12225 all_gtfiles
="$target_gtfiles"
12226 # Files for gengtype with language
12227 all_gtfiles_files_langs
=
12228 all_gtfiles_files_files
=
12230 # Add the language fragments.
12231 # Languages are added via two mechanisms. Some information must be
12232 # recorded in makefile variables, these are defined in config-lang.in.
12233 # We accumulate them and plug them into the main Makefile.
12234 # The other mechanism is a set of hooks for each of the main targets
12235 # like `clean', `install', etc.
12237 language_hooks
="Make-hooks"
12247 .
${srcdir}/$s/config-lang.
in
12248 if test "x$language" = x
12250 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12253 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12254 if test -f ${srcdir}/$s/Makefile.
in
12255 then all_lang_makefiles
="$s/Makefile"
12257 all_languages
="$all_languages $language"
12258 if test "x$boot_language" = xyes
12260 all_boot_languages
="$all_boot_languages $language"
12262 all_compilers
="$all_compilers $compilers"
12263 all_stagestuff
="$all_stagestuff $stagestuff"
12264 all_outputs
="$all_outputs $outputs"
12265 all_gtfiles
="$all_gtfiles $gtfiles"
12268 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12269 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12273 # Pick up gtfiles for c
12276 .
${srcdir}/c-config-lang.
in
12277 all_gtfiles
="$all_gtfiles $gtfiles"
12280 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12281 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12285 for language
in $all_languages
12287 check_languages
="$check_languages check-$language"
12290 # We link each language in with a set of hooks, reached indirectly via
12295 target_list
="all.build all.cross start.encap rest.encap tags \
12296 install-normal install-common install-man \
12297 uninstall info man srcextra srcman srcinfo \
12298 mostlyclean clean distclean maintainer-clean \
12299 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12300 for t
in $target_list
12303 for lang
in $all_languages
12307 echo "lang.$t: $x" >> Make-hooks
12316 echo "dir ." > .gdbinit
12317 echo "dir ${srcdir}" >> .gdbinit
12318 if test x
$gdb_needs_out_file_path = xyes
12320 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12322 if test "x$subdirs" != x
; then
12325 echo "dir ${srcdir}/$s" >> .gdbinit
12328 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12330 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12331 # absolute path for gcc_tooldir based on inserting the number of up-directory
12332 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12333 # $(libsubdir)/@(unlibsubdir) based path.
12334 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12335 # make and thus we'd get different behavior depending on where we built the
12337 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12338 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12340 # An explanation of the sed strings:
12341 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12342 # -e 's|/$||' match a trailing forward slash and eliminates it
12343 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12344 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12346 # (*) Note this pattern overwrites the first character of the string
12347 # with a forward slash if one is not already present. This is not a
12348 # problem because the exact names of the sub-directories concerned is
12349 # unimportant, just the number of them matters.
12351 # The practical upshot of these patterns is like this:
12353 # prefix exec_prefix result
12354 # ------ ----------- ------
12355 # /foo /foo/bar ../
12356 # /foo/ /foo/bar ../
12357 # /foo /foo/bar/ ../
12358 # /foo/ /foo/bar/ ../
12359 # /foo /foo/bar/ugg ../../
12362 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12367 # Find a directory in which to install a shared libgcc.
12369 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12370 if test "${enable_version_specific_runtime_libs+set}" = set; then
12371 enableval
="$enable_version_specific_runtime_libs"
12376 # Check whether --with-slibdir or --without-slibdir was given.
12377 if test "${with_slibdir+set}" = set; then
12378 withval
="$with_slibdir"
12379 slibdir
="$with_slibdir"
12381 if test "${enable_version_specific_runtime_libs+set}" = set; then
12382 slibdir
='$(libsubdir)'
12383 elif test "$host" != "$target"; then
12384 slibdir
='$(build_tooldir)/lib'
12386 slibdir
='$(libdir)'
12391 objdir
=`${PWDCMD-pwd}`
12394 # Substitute configuration variables
12463 # If it doesn't already exist, create document directory
12464 echo "checking for the document directory." 1>&2
12465 if test -d doc
; then
12472 if test x
${build} = x
${host} ; then
12473 if test x
${host} = x
${target} ; then
12474 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12476 echo "Links are now set up to build a cross-compiler" 1>&2
12477 echo " from ${host} to ${target}." 1>&2
12480 if test x
${host} = x
${target} ; then
12481 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12482 echo " for ${target}." 1>&2
12484 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12485 echo " from ${host} to ${target}." 1>&2
12492 # Configure the subdirectories
12493 # AC_CONFIG_SUBDIRS($subdirs)
12495 # Create the Makefile
12496 # and configure language subdirectories
12497 ac_config_files
="$ac_config_files $all_outputs"
12500 ac_config_commands
="$ac_config_commands default"
12502 cat >confcache
<<\_ACEOF
12503 # This file is a shell script that caches the results of configure
12504 # tests run on this system so they can be shared between configure
12505 # scripts and configure runs, see configure's option --config-cache.
12506 # It is not useful on other systems. If it contains results you don't
12507 # want to keep, you may remove or edit it.
12509 # config.status only pays attention to the cache file if you give it
12510 # the --recheck option to rerun configure.
12512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12514 # following values.
12518 # The following way of writing the cache mishandles newlines in values,
12519 # but we know of no workaround that is simple, portable, and efficient.
12520 # So, don't put newlines in cache variables' values.
12521 # Ultrix sh set writes to stderr and can't be redirected directly,
12522 # and sets the high bit in the cache file unless we assign to the vars.
12525 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12527 # `set' does not quote correctly, so add quotes (double-quote
12528 # substitution turns \\\\ into \\, and sed turns \\ into \).
12531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12534 # `set' quotes correctly as required by POSIX, so do not add quotes.
12536 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12545 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12547 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12548 if test -w $cache_file; then
12549 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12550 cat confcache
>$cache_file
12552 echo "not updating unwritable cache $cache_file"
12557 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12558 # Let make expand exec_prefix.
12559 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12563 # trailing colons and then remove the whole line if VPATH becomes empty
12564 # (actually we leave an empty line to preserve line numbers).
12565 if test "x$srcdir" = x.
; then
12566 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12567 s/:*\$(srcdir):*/:/;
12568 s/:*\${srcdir}:*/:/;
12570 s/^\([^=]*=[ ]*\):*/\1/;
12576 DEFS
=-DHAVE_CONFIG_H
12580 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12581 # 1. Remove the extension, and $U if already installed.
12582 ac_i
=`echo "$ac_i" |
12583 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12585 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12586 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12588 LIBOBJS
=$ac_libobjs
12590 LTLIBOBJS
=$ac_ltlibobjs
12594 : ${CONFIG_STATUS=./config.status}
12595 ac_clean_files_save
=$ac_clean_files
12596 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12599 cat >$CONFIG_STATUS <<_ACEOF
12601 # Generated by $as_me.
12602 # Run this file to recreate the current configuration.
12603 # Compiler output produced by configure, useful for debugging
12604 # configure, is in config.log if it exists.
12607 ac_cs_recheck=false
12609 SHELL=\${CONFIG_SHELL-$SHELL}
12612 cat >>$CONFIG_STATUS <<\_ACEOF
12613 ## --------------------- ##
12614 ## M4sh Initialization. ##
12615 ## --------------------- ##
12617 # Be Bourne compatible
12618 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12621 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12622 # is contrary to our usage. Disable this feature.
12623 alias -g '${1+"$@"}'='"$@"'
12624 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12627 DUALCASE
=1; export DUALCASE
# for MKS sh
12629 # Support unset when possible.
12630 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12637 # Work around bugs in pre-3.0 UWIN ksh.
12638 $as_unset ENV MAIL MAILPATH
12645 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12646 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12647 LC_TELEPHONE LC_TIME
12649 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12650 eval $as_var=C
; export $as_var
12656 # Required to use basename.
12657 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12663 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12664 as_basename
=basename
12670 # Name of the executable.
12671 as_me
=`$as_basename "$0" ||
12672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12673 X"$0" : 'X\(//\)$' \| \
12674 X"$0" : 'X\(/\)$' \| \
12675 . : '\(.\)' 2>/dev/null ||
12677 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12678 /^X\/\(\/\/\)$/{ s//\1/; q; }
12679 /^X\/\(\/\).*/{ s//\1/; q; }
12683 # PATH needs CR, and LINENO needs CR and PATH.
12684 # Avoid depending upon Character Ranges.
12685 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12686 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12687 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12688 as_cr_digits
='0123456789'
12689 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12691 # The user is always right.
12692 if test "${PATH_SEPARATOR+set}" != set; then
12693 echo "#! /bin/sh" >conf$$.sh
12694 echo "exit 0" >>conf$$.sh
12696 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12705 as_lineno_1
=$LINENO
12706 as_lineno_2
=$LINENO
12707 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12708 test "x$as_lineno_1" != "x$as_lineno_2" &&
12709 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12710 # Find who we are. Look in the path if we contain no path at all
12713 *[\\/]* ) as_myself
=$0 ;;
12714 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12715 for as_dir
in $PATH
12718 test -z "$as_dir" && as_dir
=.
12719 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12724 # We did not find ourselves, most probably we were run as `sh COMMAND'
12725 # in which case we are not to be found in the path.
12726 if test "x$as_myself" = x
; then
12729 if test ! -f "$as_myself"; then
12730 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12731 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12732 { (exit 1); exit 1; }; }
12734 case $CONFIG_SHELL in
12736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12737 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12740 test -z "$as_dir" && as_dir
=.
12741 for as_base
in sh bash ksh sh5
; do
12744 if ("$as_dir/$as_base" -c '
12745 as_lineno_1=$LINENO
12746 as_lineno_2=$LINENO
12747 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12748 test "x$as_lineno_1" != "x$as_lineno_2" &&
12749 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12750 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12751 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12752 CONFIG_SHELL
=$as_dir/$as_base
12753 export CONFIG_SHELL
12754 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12762 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12763 # uniformly replaced by the line number. The first 'sed' inserts a
12764 # line-number line before each line; the second 'sed' does the real
12765 # work. The second script uses 'N' to pair each line-number line
12766 # with the numbered line, and appends trailing '-' during
12767 # substitution so that $LINENO is not a special case at line end.
12768 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12769 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12770 sed '=' <$as_myself |
12775 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12778 s,^['$as_cr_digits']*\n,,
12779 ' >$as_me.lineno
&&
12780 chmod +x
$as_me.lineno ||
12781 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12782 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12783 { (exit 1); exit 1; }; }
12785 # Don't try to exec as it changes $[0], causing all sort of problems
12786 # (the dirname of $[0] is not the place where we might find the
12787 # original and so on. Autoconf is especially sensible to this).
12789 # Exit status is that of the last command.
12794 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12795 *c
*,-n*) ECHO_N
= ECHO_C
='
12797 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12798 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12801 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12807 rm -f conf$$ conf$$.exe conf$$.
file
12809 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12810 # We could just check for DJGPP; but this test a) works b) is more generic
12811 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12812 if test -f conf$$.exe
; then
12813 # Don't use ln at all; we don't have any links
12818 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12823 rm -f conf$$ conf$$.exe conf$$.
file
12825 if mkdir
-p .
2>/dev
/null
; then
12828 test -d .
/-p && rmdir .
/-p
12832 as_executable_p
="test -f"
12834 # Sed expression to map a string onto a valid CPP name.
12835 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12837 # Sed expression to map a string onto a valid variable name.
12838 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12842 # We need space, tab and new line, in precisely that order.
12852 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12853 # report actual input values of CONFIG_FILES etc. instead of their
12854 # values after options handling. Logging --version etc. is OK.
12858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12859 ## Running $as_me. ##
12864 This file was extended by $as_me, which was
12865 generated by GNU Autoconf 2.59. Invocation command line was
12867 CONFIG_FILES = $CONFIG_FILES
12868 CONFIG_HEADERS = $CONFIG_HEADERS
12869 CONFIG_LINKS = $CONFIG_LINKS
12870 CONFIG_COMMANDS = $CONFIG_COMMANDS
12874 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12878 # Files that config.status was made for.
12879 if test -n "$ac_config_files"; then
12880 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12883 if test -n "$ac_config_headers"; then
12884 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12887 if test -n "$ac_config_links"; then
12888 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12891 if test -n "$ac_config_commands"; then
12892 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12895 cat >>$CONFIG_STATUS <<\_ACEOF
12898 \`$as_me' instantiates files from templates according to the
12899 current configuration.
12901 Usage: $0 [OPTIONS] [FILE]...
12903 -h, --help print this help, then exit
12904 -V, --version print version number, then exit
12905 -q, --quiet do not print progress messages
12906 -d, --debug don't remove temporary files
12907 --recheck update $as_me by reconfiguring in the same conditions
12908 --file=FILE[:TEMPLATE]
12909 instantiate the configuration file FILE
12910 --header=FILE[:TEMPLATE]
12911 instantiate the configuration header FILE
12913 Configuration files:
12916 Configuration headers:
12919 Configuration commands:
12922 Report bugs to <bug-autoconf@gnu.org>."
12925 cat >>$CONFIG_STATUS <<_ACEOF
12928 configured by $0, generated by GNU Autoconf 2.59,
12929 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12931 Copyright (C) 2003 Free Software Foundation, Inc.
12932 This config.status script is free software; the Free Software Foundation
12933 gives unlimited permission to copy, distribute and modify it."
12937 cat >>$CONFIG_STATUS <<\_ACEOF
12938 # If no file are specified by the user, then we need to provide default
12939 # value. By we need to know if files were specified by the user.
12945 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
12946 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
12954 *) # This is not an option, so the user has probably given explicit
12957 ac_need_defaults
=false
;;
12961 # Handling of the options.
12963 cat >>$CONFIG_STATUS <<\_ACEOF
12964 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12966 --version |
--vers* |
-V )
12967 echo "$ac_cs_version"; exit 0 ;;
12969 # Conflict between --help and --header
12970 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12971 Try \`$0 --help' for more information." >&5
12972 echo "$as_me: error: ambiguous option: $1
12973 Try \`$0 --help' for more information." >&2;}
12974 { (exit 1); exit 1; }; };;
12975 --help |
--hel |
-h )
12976 echo "$ac_cs_usage"; exit 0 ;;
12977 --debug |
--d* |
-d )
12979 --file |
--fil |
--fi |
--f )
12981 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
12982 ac_need_defaults
=false
;;
12983 --header |
--heade |
--head |
--hea )
12985 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
12986 ac_need_defaults
=false
;;
12987 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12988 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12991 # This is an error.
12992 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12993 Try \`$0 --help' for more information." >&5
12994 echo "$as_me: error: unrecognized option: $1
12995 Try \`$0 --help' for more information." >&2;}
12996 { (exit 1); exit 1; }; } ;;
12998 *) ac_config_targets
="$ac_config_targets $1" ;;
13004 ac_configure_extra_args
=
13006 if $ac_cs_silent; then
13008 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13012 cat >>$CONFIG_STATUS <<_ACEOF
13013 if \$ac_cs_recheck; then
13014 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13015 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13020 cat >>$CONFIG_STATUS <<_ACEOF
13022 # INIT-COMMANDS section.
13026 symbolic_link='$symbolic_link'
13033 cat >>$CONFIG_STATUS <<\_ACEOF
13034 for ac_config_target
in $ac_config_targets
13036 case "$ac_config_target" in
13037 # Handling of arguments.
13038 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
13039 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13040 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
13041 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13042 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13043 { (exit 1); exit 1; }; };;
13047 # If the user did not use the arguments to specify the items to instantiate,
13048 # then the envvar interface is used. Set only those that are not.
13049 # We use the long form for the default assignment because of an extremely
13050 # bizarre bug on SunOS 4.1.3.
13051 if $ac_need_defaults; then
13052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13057 # Have a temporary directory for convenience. Make it in the build tree
13058 # simply because there is no reason to put it here, and in addition,
13059 # creating and moving files from /tmp can sometimes cause problems.
13060 # Create a temporary directory, and hook for its removal unless debugging.
13063 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13064 trap '{ (exit 1); exit 1; }' 1 2 13 15
13067 # Create a (secure) tmp directory for tmp files.
13070 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13071 test -n "$tmp" && test -d "$tmp"
13074 tmp
=.
/confstat$$
-$RANDOM
13075 (umask 077 && mkdir
$tmp)
13078 echo "$me: cannot create a temporary directory in ." >&2
13079 { (exit 1); exit 1; }
13084 cat >>$CONFIG_STATUS <<_ACEOF
13087 # CONFIG_FILES section.
13090 # No need to generate the scripts if there are no CONFIG_FILES.
13091 # This happens for instance when ./config.status config.h
13092 if test -n "\$CONFIG_FILES"; then
13093 # Protect against being on the right side of a sed subst in config.status.
13094 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13095 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13096 s,@SHELL@,$SHELL,;t t
13097 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13098 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13099 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13100 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13101 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13102 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13103 s,@exec_prefix@,$exec_prefix,;t t
13104 s,@prefix@,$prefix,;t t
13105 s,@program_transform_name@,$program_transform_name,;t t
13106 s,@bindir@,$bindir,;t t
13107 s,@sbindir@,$sbindir,;t t
13108 s,@libexecdir@,$libexecdir,;t t
13109 s,@datadir@,$datadir,;t t
13110 s,@sysconfdir@,$sysconfdir,;t t
13111 s,@sharedstatedir@,$sharedstatedir,;t t
13112 s,@localstatedir@,$localstatedir,;t t
13113 s,@libdir@,$libdir,;t t
13114 s,@includedir@,$includedir,;t t
13115 s,@oldincludedir@,$oldincludedir,;t t
13116 s,@infodir@,$infodir,;t t
13117 s,@mandir@,$mandir,;t t
13118 s,@build_alias@,$build_alias,;t t
13119 s,@host_alias@,$host_alias,;t t
13120 s,@target_alias@,$target_alias,;t t
13121 s,@DEFS@,$DEFS,;t t
13122 s,@ECHO_C@,$ECHO_C,;t t
13123 s,@ECHO_N@,$ECHO_N,;t t
13124 s,@ECHO_T@,$ECHO_T,;t t
13125 s,@LIBS@,$LIBS,;t t
13126 s,@build@,$build,;t t
13127 s,@build_cpu@,$build_cpu,;t t
13128 s,@build_vendor@,$build_vendor,;t t
13129 s,@build_os@,$build_os,;t t
13130 s,@host@,$host,;t t
13131 s,@host_cpu@,$host_cpu,;t t
13132 s,@host_vendor@,$host_vendor,;t t
13133 s,@host_os@,$host_os,;t t
13134 s,@target@,$target,;t t
13135 s,@target_cpu@,$target_cpu,;t t
13136 s,@target_vendor@,$target_vendor,;t t
13137 s,@target_os@,$target_os,;t t
13138 s,@build_subdir@,$build_subdir,;t t
13139 s,@host_subdir@,$host_subdir,;t t
13140 s,@target_subdir@,$target_subdir,;t t
13141 s,@GENINSRC@,$GENINSRC,;t t
13143 s,@CFLAGS@,$CFLAGS,;t t
13144 s,@LDFLAGS@,$LDFLAGS,;t t
13145 s,@CPPFLAGS@,$CPPFLAGS,;t t
13146 s,@ac_ct_CC@,$ac_ct_CC,;t t
13147 s,@EXEEXT@,$EXEEXT,;t t
13148 s,@OBJEXT@,$OBJEXT,;t t
13149 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13150 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13152 s,@strict1_warn@,$strict1_warn,;t t
13153 s,@warn_cflags@,$warn_cflags,;t t
13154 s,@WERROR@,$WERROR,;t t
13155 s,@nocommon_flag@,$nocommon_flag,;t t
13156 s,@EGREP@,$EGREP,;t t
13157 s,@valgrind_path@,$valgrind_path,;t t
13158 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13159 s,@valgrind_command@,$valgrind_command,;t t
13160 s,@coverage_flags@,$coverage_flags,;t t
13161 s,@TREEBROWSER@,$TREEBROWSER,;t t
13162 s,@enable_multilib@,$enable_multilib,;t t
13163 s,@enable_shared@,$enable_shared,;t t
13164 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13165 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13166 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13167 s,@onestep@,$onestep,;t t
13168 s,@SET_MAKE@,$SET_MAKE,;t t
13171 s,@LN_S@,$LN_S,;t t
13172 s,@RANLIB@,$RANLIB,;t t
13173 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13174 s,@INSTALL@,$INSTALL,;t t
13175 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13176 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13177 s,@make_compare_target@,$make_compare_target,;t t
13178 s,@have_mktemp_command@,$have_mktemp_command,;t t
13179 s,@MAKEINFO@,$MAKEINFO,;t t
13180 s,@BUILD_INFO@,$BUILD_INFO,;t t
13181 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13182 s,@FLEX@,$FLEX,;t t
13183 s,@BISON@,$BISON,;t t
13184 s,@stage1_cflags@,$stage1_cflags,;t t
13185 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13186 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13187 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13188 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13189 s,@LIBICONV@,$LIBICONV,;t t
13190 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13191 s,@manext@,$manext,;t t
13192 s,@objext@,$objext,;t t
13193 s,@gthread_flags@,$gthread_flags,;t t
13194 s,@extra_modes_file@,$extra_modes_file,;t t
13195 s,@FORBUILD@,$FORBUILD,;t t
13196 s,@PACKAGE@,$PACKAGE,;t t
13197 s,@VERSION@,$VERSION,;t t
13198 s,@USE_NLS@,$USE_NLS,;t t
13199 s,@LIBINTL@,$LIBINTL,;t t
13200 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13201 s,@INCINTL@,$INCINTL,;t t
13202 s,@XGETTEXT@,$XGETTEXT,;t t
13203 s,@GMSGFMT@,$GMSGFMT,;t t
13204 s,@POSUB@,$POSUB,;t t
13205 s,@CATALOGS@,$CATALOGS,;t t
13206 s,@CROSS@,$CROSS,;t t
13208 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13209 s,@inhibit_libc@,$inhibit_libc,;t t
13210 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
13211 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
13212 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13213 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13214 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13215 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13216 s,@collect2@,$collect2,;t t
13217 s,@libgcc_visibility@,$libgcc_visibility,;t t
13219 s,@zlibdir@,$zlibdir,;t t
13220 s,@zlibinc@,$zlibinc,;t t
13221 s,@MAINT@,$MAINT,;t t
13222 s,@ANDER@,$ANDER,;t t
13223 s,@BANSHEEINC@,$BANSHEEINC,;t t
13224 s,@BANSHEELIB@,$BANSHEELIB,;t t
13225 s,@gcc_tooldir@,$gcc_tooldir,;t t
13226 s,@dollar@,$dollar,;t t
13227 s,@slibdir@,$slibdir,;t t
13228 s,@objdir@,$objdir,;t t
13229 s,@subdirs@,$subdirs,;t t
13230 s,@srcdir@,$srcdir,;t t
13231 s,@all_boot_languages@,$all_boot_languages,;t t
13232 s,@all_compilers@,$all_compilers,;t t
13233 s,@all_gtfiles@,$all_gtfiles,;t t
13234 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13235 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13236 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13237 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13238 s,@all_languages@,$all_languages,;t t
13239 s,@all_stagestuff@,$all_stagestuff,;t t
13240 s,@build_exeext@,$build_exeext,;t t
13241 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13242 s,@build_xm_file_list@,$build_xm_file_list,;t t
13243 s,@build_xm_include_list@,$build_xm_include_list,;t t
13244 s,@build_xm_defines@,$build_xm_defines,;t t
13245 s,@check_languages@,$check_languages,;t t
13246 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13247 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13248 s,@cpp_install_dir@,$cpp_install_dir,;t t
13249 s,@xmake_file@,$xmake_file,;t t
13250 s,@tmake_file@,$tmake_file,;t t
13251 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13252 s,@extra_headers_list@,$extra_headers_list,;t t
13253 s,@extra_objs@,$extra_objs,;t t
13254 s,@extra_parts@,$extra_parts,;t t
13255 s,@extra_passes@,$extra_passes,;t t
13256 s,@extra_programs@,$extra_programs,;t t
13257 s,@float_h_file@,$float_h_file,;t t
13258 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13259 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13260 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13261 s,@gcc_version@,$gcc_version,;t t
13262 s,@gcc_version_full@,$gcc_version_full,;t t
13263 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13264 s,@host_exeext@,$host_exeext,;t t
13265 s,@host_xm_file_list@,$host_xm_file_list,;t t
13266 s,@host_xm_include_list@,$host_xm_include_list,;t t
13267 s,@host_xm_defines@,$host_xm_defines,;t t
13268 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13269 s,@install@,$install,;t t
13270 s,@lang_opt_files@,$lang_opt_files,;t t
13271 s,@lang_specs_files@,$lang_specs_files,;t t
13272 s,@lang_tree_files@,$lang_tree_files,;t t
13273 s,@local_prefix@,$local_prefix,;t t
13274 s,@md_file@,$md_file,;t t
13275 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13276 s,@out_file@,$out_file,;t t
13277 s,@out_object_file@,$out_object_file,;t t
13278 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13279 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13280 s,@symbolic_link@,$symbolic_link,;t t
13281 s,@thread_file@,$thread_file,;t t
13282 s,@tm_file_list@,$tm_file_list,;t t
13283 s,@tm_include_list@,$tm_include_list,;t t
13284 s,@tm_defines@,$tm_defines,;t t
13285 s,@tm_p_file_list@,$tm_p_file_list,;t t
13286 s,@tm_p_include_list@,$tm_p_include_list,;t t
13287 s,@xm_file_list@,$xm_file_list,;t t
13288 s,@xm_include_list@,$xm_include_list,;t t
13289 s,@xm_defines@,$xm_defines,;t t
13290 s,@target_noncanonical@,$target_noncanonical,;t t
13291 s,@c_target_objs@,$c_target_objs,;t t
13292 s,@cxx_target_objs@,$cxx_target_objs,;t t
13293 s,@target_cpu_default@,$target_cpu_default,;t t
13294 s,@GMPLIBS@,$GMPLIBS,;t t
13295 s,@GMPINC@,$GMPINC,;t t
13296 s,@LIBOBJS@,$LIBOBJS,;t t
13297 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13298 /@language_hooks@/r $language_hooks
13299 s,@language_hooks@,,;t t
13304 cat >>$CONFIG_STATUS <<\_ACEOF
13305 # Split the substitutions into bite-sized pieces for seds with
13306 # small command number limits, like on Digital OSF/1 and HP-UX.
13307 ac_max_sed_lines
=48
13308 ac_sed_frag
=1 # Number of current file.
13309 ac_beg
=1 # First line for current file.
13310 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13313 while $ac_more_lines; do
13314 if test $ac_beg -gt 1; then
13315 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13317 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13319 if test ! -s $tmp/subs.frag
; then
13320 ac_more_lines
=false
13322 # The purpose of the label and of the branching condition is to
13323 # speed up the sed processing (if there are no `@' at all, there
13324 # is no need to browse any of the substitutions).
13325 # These are the two extra sed commands mentioned above.
13327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13328 if test -z "$ac_sed_cmds"; then
13329 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13331 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13333 ac_sed_frag
=`expr $ac_sed_frag + 1`
13335 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13338 if test -z "$ac_sed_cmds"; then
13341 fi # test -n "$CONFIG_FILES"
13344 cat >>$CONFIG_STATUS <<\_ACEOF
13345 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13346 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13348 - |
*:- |
*:-:* ) # input from stdin
13350 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13351 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13352 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13353 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13354 * ) ac_file_in
=$ac_file.
in ;;
13357 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13358 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13359 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13360 X"$ac_file" : 'X\(//\)[^/]' \| \
13361 X"$ac_file" : 'X\(//\)$' \| \
13362 X"$ac_file" : 'X\(/\)' \| \
13363 . : '\(.\)' 2>/dev/null ||
13365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13367 /^X\(\/\/\)$/{ s//\1/; q; }
13368 /^X\(\/\).*/{ s//\1/; q; }
13370 { if $as_mkdir_p; then
13375 while test ! -d "$as_dir"; do
13376 as_dirs
="$as_dir $as_dirs"
13377 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13379 X"$as_dir" : 'X\(//\)[^/]' \| \
13380 X"$as_dir" : 'X\(//\)$' \| \
13381 X"$as_dir" : 'X\(/\)' \| \
13382 . : '\(.\)' 2>/dev/null ||
13384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13386 /^X\(\/\/\)$/{ s//\1/; q; }
13387 /^X\(\/\).*/{ s//\1/; q; }
13390 test ! -n "$as_dirs" || mkdir
$as_dirs
13391 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13392 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13393 { (exit 1); exit 1; }; }; }
13397 if test "$ac_dir" != .
; then
13398 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13399 # A "../" for each directory in $ac_dir_suffix.
13400 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13402 ac_dir_suffix
= ac_top_builddir
=
13406 .
) # No --srcdir option. We are building in place.
13408 if test -z "$ac_top_builddir"; then
13411 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13413 [\\/]* | ?
:[\\/]* ) # Absolute path.
13414 ac_srcdir
=$srcdir$ac_dir_suffix;
13415 ac_top_srcdir
=$srcdir ;;
13416 *) # Relative path.
13417 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13418 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13421 # Do not use `cd foo && pwd` to compute absolute paths, because
13422 # the directories may not exist.
13424 .
) ac_abs_builddir
="$ac_dir";;
13427 .
) ac_abs_builddir
=`pwd`;;
13428 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13429 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13432 case $ac_abs_builddir in
13433 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13435 case ${ac_top_builddir}.
in
13436 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13437 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13438 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13441 case $ac_abs_builddir in
13442 .
) ac_abs_srcdir
=$ac_srcdir;;
13445 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13446 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13447 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13450 case $ac_abs_builddir in
13451 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13453 case $ac_top_srcdir in
13454 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13455 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13456 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13462 if test x
"$ac_file" != x-
; then
13463 { echo "$as_me:$LINENO: creating $ac_file" >&5
13464 echo "$as_me: creating $ac_file" >&6;}
13467 # Let's still pretend it is `configure' which instantiates (i.e., don't
13468 # use $as_me), people would be surprised to read:
13469 # /* config.h. Generated by config.status. */
13470 if test x
"$ac_file" = x-
; then
13473 configure_input
="$ac_file. "
13475 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13476 sed 's,.*/,,'` by configure."
13478 # First look for the input files in the build tree, otherwise in the
13480 ac_file_inputs
=`IFS=:
13481 for f in $ac_file_in; do
13483 -) echo $tmp/stdin ;;
13485 # Absolute (can't be DOS-style, as IFS=:)
13486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13487 echo "$as_me: error: cannot find input file: $f" >&2;}
13488 { (exit 1); exit 1; }; }
13491 if test -f "$f"; then
13494 elif test -f "$srcdir/$f"; then
13499 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13500 echo "$as_me: error: cannot find input file: $f" >&2;}
13501 { (exit 1); exit 1; }; }
13504 done` ||
{ (exit 1); exit 1; }
13506 cat >>$CONFIG_STATUS <<_ACEOF
13510 cat >>$CONFIG_STATUS <<\_ACEOF
13512 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13513 s
,@configure_input@
,$configure_input,;t t
13514 s
,@srcdir@
,$ac_srcdir,;t t
13515 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13516 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13517 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13518 s
,@builddir@
,$ac_builddir,;t t
13519 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13520 s
,@top_builddir@
,$ac_top_builddir,;t t
13521 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13522 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13524 if test x"$ac_file" != x-; then
13525 mv $tmp/out $ac_file
13533 cat >>$CONFIG_STATUS <<\_ACEOF
13536 # CONFIG_HEADER section.
13539 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13540 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13542 # ac_d sets the value in "#define NAME VALUE" lines.
13543 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13544 ac_dB
='[ ].*$,\1#\2'
13547 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13548 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13549 ac_uB
='$,\1#\2define\3'
13553 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13554 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13556 - |
*:- |
*:-:* ) # input from stdin
13558 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13559 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13560 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13561 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13562 * ) ac_file_in
=$ac_file.
in ;;
13565 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13566 echo "$as_me: creating $ac_file" >&6;}
13568 # First look for the input files in the build tree, otherwise in the
13570 ac_file_inputs
=`IFS=:
13571 for f in $ac_file_in; do
13573 -) echo $tmp/stdin ;;
13575 # Absolute (can't be DOS-style, as IFS=:)
13576 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13577 echo "$as_me: error: cannot find input file: $f" >&2;}
13578 { (exit 1); exit 1; }; }
13579 # Do quote $f, to prevent DOS paths from being IFS'd.
13582 if test -f "$f"; then
13585 elif test -f "$srcdir/$f"; then
13590 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13591 echo "$as_me: error: cannot find input file: $f" >&2;}
13592 { (exit 1); exit 1; }; }
13595 done` ||
{ (exit 1); exit 1; }
13596 # Remove the trailing spaces.
13597 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13601 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13602 # `conftest.undefs', that substitutes the proper values into
13603 # config.h.in to produce config.h. The first handles `#define'
13604 # templates, and the second `#undef' templates.
13605 # And first: Protect against being on the right side of a sed subst in
13606 # config.status. Protect against being in an unquoted here document
13607 # in config.status.
13608 rm -f conftest.defines conftest.undefs
13609 # Using a here document instead of a string reduces the quoting nightmare.
13610 # Putting comments in sed scripts is not portable.
13612 # `end' is used to avoid that the second main sed command (meant for
13613 # 0-ary CPP macros) applies to n-ary macro definitions.
13614 # See the Autoconf documentation for `clear'.
13615 cat >confdef2sed.
sed <<\_ACEOF
13620 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13622 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13625 # If some macros were called several times there might be several times
13626 # the same #defines, which is useless. Nevertheless, we may not want to
13627 # sort them, since we want the *last* AC-DEFINE to be honored.
13628 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13629 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13630 rm -f confdef2sed.sed
13632 # This sed command replaces #undef with comments. This is necessary, for
13633 # example, in the case of _POSIX_SOURCE, which is predefined and required
13634 # on some systems where configure will not decide to define it.
13635 cat >>conftest.undefs <<\_ACEOF
13636 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13639 # Break up conftest.defines because some shells have a limit on the size
13640 # of here documents, and old seds have small limits too (100 cmds).
13641 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13642 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13643 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13644 echo ' :' >>$CONFIG_STATUS
13645 rm -f conftest.tail
13646 while grep . conftest.defines >/dev/null
13648 # Write a limited-size here document to $tmp/defines.sed.
13649 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13650 # Speed up: don't consider the non `#define' lines.
13651 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13652 # Work around the forget-to-reset-the-flag bug.
13653 echo 't clr' >>$CONFIG_STATUS
13654 echo ': clr' >>$CONFIG_STATUS
13655 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13657 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13659 mv $tmp/out $tmp/in
13661 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13662 rm -f conftest.defines
13663 mv conftest.
tail conftest.defines
13665 rm -f conftest.defines
13666 echo ' fi # grep' >>$CONFIG_STATUS
13667 echo >>$CONFIG_STATUS
13669 # Break up conftest.undefs because some shells have a limit on the size
13670 # of here documents, and old seds have small limits too (100 cmds).
13671 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13672 rm -f conftest.
tail
13673 while grep . conftest.undefs
>/dev
/null
13675 # Write a limited-size here document to $tmp/undefs.sed.
13676 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13677 # Speed up: don't consider the non
`#undef'
13678 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13679 # Work around the forget-to-reset-the-flag bug.
13680 echo 't clr' >>$CONFIG_STATUS
13681 echo ': clr' >>$CONFIG_STATUS
13682 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13684 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13686 mv $tmp/out $tmp/in
13688 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13689 rm -f conftest.undefs
13690 mv conftest.tail conftest.undefs
13692 rm -f conftest.undefs
13694 cat >>$CONFIG_STATUS <<\_ACEOF
13695 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13696 # use $as_me), people would be surprised to read:
13697 # /* config.h. Generated by config.status. */
13698 if test x
"$ac_file" = x-
; then
13699 echo "/* Generated by configure. */" >$tmp/config.h
13701 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13703 cat $tmp/in >>$tmp/config.h
13705 if test x
"$ac_file" != x-
; then
13706 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13707 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13708 echo "$as_me: $ac_file is unchanged" >&6;}
13710 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13712 X"$ac_file" : 'X\(//\)[^/]' \| \
13713 X"$ac_file" : 'X\(//\)$' \| \
13714 X"$ac_file" : 'X\(/\)' \| \
13715 . : '\(.\)' 2>/dev/null ||
13717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13719 /^X\(\/\/\)$/{ s//\1/; q; }
13720 /^X\(\/\).*/{ s//\1/; q; }
13722 { if $as_mkdir_p; then
13727 while test ! -d "$as_dir"; do
13728 as_dirs
="$as_dir $as_dirs"
13729 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13731 X"$as_dir" : 'X\(//\)[^/]' \| \
13732 X"$as_dir" : 'X\(//\)$' \| \
13733 X"$as_dir" : 'X\(/\)' \| \
13734 . : '\(.\)' 2>/dev/null ||
13736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13737 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13738 /^X\(\/\/\)$/{ s//\1/; q; }
13739 /^X\(\/\).*/{ s//\1/; q; }
13742 test ! -n "$as_dirs" || mkdir
$as_dirs
13743 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13744 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13745 { (exit 1); exit 1; }; }; }
13748 mv $tmp/config.h
$ac_file
13752 rm -f $tmp/config.h
13756 cat >>$CONFIG_STATUS <<\_ACEOF
13759 # CONFIG_COMMANDS section.
13761 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13762 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13763 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13764 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13765 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13766 X"$ac_dest" : 'X\(//\)[^/]' \| \
13767 X"$ac_dest" : 'X\(//\)$' \| \
13768 X"$ac_dest" : 'X\(/\)' \| \
13769 . : '\(.\)' 2>/dev/null ||
13771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13773 /^X\(\/\/\)$/{ s//\1/; q; }
13774 /^X\(\/\).*/{ s//\1/; q; }
13776 { if $as_mkdir_p; then
13781 while test ! -d "$as_dir"; do
13782 as_dirs
="$as_dir $as_dirs"
13783 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13784 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13785 X"$as_dir" : 'X\(//\)[^/]' \| \
13786 X"$as_dir" : 'X\(//\)$' \| \
13787 X"$as_dir" : 'X\(/\)' \| \
13788 . : '\(.\)' 2>/dev/null ||
13790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13791 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13792 /^X\(\/\/\)$/{ s//\1/; q; }
13793 /^X\(\/\).*/{ s//\1/; q; }
13796 test ! -n "$as_dirs" || mkdir
$as_dirs
13797 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13798 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13799 { (exit 1); exit 1; }; }; }
13803 if test "$ac_dir" != .
; then
13804 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13805 # A "../" for each directory in $ac_dir_suffix.
13806 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13808 ac_dir_suffix
= ac_top_builddir
=
13812 .
) # No --srcdir option. We are building in place.
13814 if test -z "$ac_top_builddir"; then
13817 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13819 [\\/]* | ?
:[\\/]* ) # Absolute path.
13820 ac_srcdir
=$srcdir$ac_dir_suffix;
13821 ac_top_srcdir
=$srcdir ;;
13822 *) # Relative path.
13823 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13824 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13827 # Do not use `cd foo && pwd` to compute absolute paths, because
13828 # the directories may not exist.
13830 .
) ac_abs_builddir
="$ac_dir";;
13833 .
) ac_abs_builddir
=`pwd`;;
13834 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13835 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13838 case $ac_abs_builddir in
13839 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13841 case ${ac_top_builddir}.
in
13842 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13843 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13844 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13847 case $ac_abs_builddir in
13848 .
) ac_abs_srcdir
=$ac_srcdir;;
13851 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13852 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13853 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13856 case $ac_abs_builddir in
13857 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13859 case $ac_top_srcdir in
13860 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13861 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13862 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13867 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13868 echo "$as_me: executing $ac_dest commands" >&6;}
13871 case ${CONFIG_HEADERS} in
13872 *auto-host.h
:config.
in*)
13875 # Make sure all the subdirs exist.
13878 test -d $d || mkdir
$d
13880 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13881 # bootstrapping and the installation procedure can still use
13882 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13883 # FLAGS_TO_PASS has been modified to solve the problem there.
13884 # This is virtually a duplicate of what happens in configure.lang; we do
13885 # an extra check to make sure this only happens if ln -s can be used.
13886 if test "$symbolic_link" = "ln -s"; then
13887 for d
in ${subdirs} fixinc
; do
13888 STARTDIR
=`${PWDCMD-pwd}`
13890 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13893 $symbolic_link ..
/$t $t 2>/dev
/null
13903 cat >>$CONFIG_STATUS <<\_ACEOF
13905 { (exit 0); exit 0; }
13907 chmod +x
$CONFIG_STATUS
13908 ac_clean_files
=$ac_clean_files_save
13911 # configure is writing to config.log, and then calls config.status.
13912 # config.status does its own redirection, appending to config.log.
13913 # Unfortunately, on DOS this fails, as config.log is still kept open
13914 # by configure, so config.status won't be able to write to it; its
13915 # output is simply discarded. So we exec the FD to /dev/null,
13916 # effectively closing config.log, so it can be properly (re)opened and
13917 # appended to by config.status. When coming back to configure, we
13918 # need to make the FD available again.
13919 if test "$no_create" != yes; then
13921 ac_config_status_args
=
13922 test "$silent" = yes &&
13923 ac_config_status_args
="$ac_config_status_args --quiet"
13925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13928 # would make configure fail if this is the last instruction.
13929 $ac_cs_success ||
{ (exit 1); exit 1; }