2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 # Support unset when possible.
25 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
224 as_executable_p
="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix
=/usr
/local
254 ac_config_libobj_dir
=.
259 SHELL
=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file
="tree.c"
274 # Factoring default headers for most tests.
275 ac_includes_default
="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os build_canonical host_canonical target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP GNATBIND ac_ct_GNATBIND ADAC strict1_warn warn_cflags WERROR nocommon_flag valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR SET_MAKE AWK LN LN_S RANLIB ac_ct_RANLIB INSTALL INSTALL_PROGRAM INSTALL_DATA have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES make_compare_target FLEX BISON stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV manext objext extra_modes_file FORBUILD PACKAGE VERSION ALLOCA GLIBC21 USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT INTLLIBS INTLDEPS INTLOBJS POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX CROSS ALL SYSTEM_HEADER_DIR inhibit_libc BUILD_PREFIX BUILD_PREFIX_1 BUILD_CC BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO libgcc_visibility gthread_flags GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_file build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir dep_host_xmake_file dep_tmake_file extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_extra_gcc_objs host_xm_file_list host_xm_file host_xm_defines out_host_hook_obj install lang_options_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_file tm_defines tm_p_file_list tm_p_file xm_file xm_defines c_target_objs cxx_target_objs target_cpu_default LIBOBJS LTLIBOBJS'
312 ac_subst_files
='target_overrides host_overrides language_fragments language_hooks'
314 # Initialize some variables set by options.
316 ac_init_version
=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name
=s
,x
,x
,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir
='${exec_prefix}/bin'
340 sbindir
='${exec_prefix}/sbin'
341 libexecdir
='${exec_prefix}/libexec'
342 datadir
='${prefix}/share'
343 sysconfdir
='${prefix}/etc'
344 sharedstatedir
='${prefix}/com'
345 localstatedir
='${prefix}/var'
346 libdir
='${exec_prefix}/lib'
347 includedir
='${prefix}/include'
348 oldincludedir
='/usr/include'
349 infodir
='${prefix}/info'
350 mandir
='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
370 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
373 -build |
--build |
--buil |
--bui |
--bu)
374 ac_prev
=build_alias
;;
375 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
376 build_alias
=$ac_optarg ;;
378 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
379 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
380 ac_prev
=cache_file
;;
381 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
382 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
383 cache_file
=$ac_optarg ;;
386 cache_file
=config.cache
;;
388 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
390 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
392 datadir
=$ac_optarg ;;
394 -disable-* |
--disable-*)
395 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* |
--enable-*)
404 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
417 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
418 |
--exec |
--exe |
--ex)
419 ac_prev
=exec_prefix
;;
420 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
421 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
422 |
--exec=* |
--exe=* |
--ex=*)
423 exec_prefix
=$ac_optarg ;;
425 -gas |
--gas |
--ga |
--g)
426 # Obsolete; use --with-gas.
429 -help |
--help |
--hel |
--he |
-h)
431 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
432 ac_init_help
=recursive
;;
433 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
434 ac_init_help
=short
;;
436 -host |
--host |
--hos |
--ho)
437 ac_prev
=host_alias
;;
438 -host=* |
--host=* |
--hos=* |
--ho=*)
439 host_alias
=$ac_optarg ;;
441 -includedir |
--includedir |
--includedi |
--included |
--include \
442 |
--includ |
--inclu |
--incl |
--inc)
443 ac_prev
=includedir
;;
444 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
445 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
446 includedir
=$ac_optarg ;;
448 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
450 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
451 infodir
=$ac_optarg ;;
453 -libdir |
--libdir |
--libdi |
--libd)
455 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
458 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
459 |
--libexe |
--libex |
--libe)
460 ac_prev
=libexecdir
;;
461 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
462 |
--libexe=* |
--libex=* |
--libe=*)
463 libexecdir
=$ac_optarg ;;
465 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
466 |
--localstate |
--localstat |
--localsta |
--localst \
467 |
--locals |
--local |
--loca |
--loc |
--lo)
468 ac_prev
=localstatedir
;;
469 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
470 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
471 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
472 localstatedir
=$ac_optarg ;;
474 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
476 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
480 # Obsolete; use --without-fp.
483 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
484 |
--no-cr |
--no-c |
-n)
487 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
488 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
491 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
492 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
493 |
--oldin |
--oldi |
--old |
--ol |
--o)
494 ac_prev
=oldincludedir
;;
495 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
496 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
497 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
498 oldincludedir
=$ac_optarg ;;
500 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
502 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
505 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
506 |
--program-pre |
--program-pr |
--program-p)
507 ac_prev
=program_prefix
;;
508 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
509 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
510 program_prefix
=$ac_optarg ;;
512 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
513 |
--program-suf |
--program-su |
--program-s)
514 ac_prev
=program_suffix
;;
515 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
516 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
517 program_suffix
=$ac_optarg ;;
519 -program-transform-name |
--program-transform-name \
520 |
--program-transform-nam |
--program-transform-na \
521 |
--program-transform-n |
--program-transform- \
522 |
--program-transform |
--program-transfor \
523 |
--program-transfo |
--program-transf \
524 |
--program-trans |
--program-tran \
525 |
--progr-tra |
--program-tr |
--program-t)
526 ac_prev
=program_transform_name
;;
527 -program-transform-name=* |
--program-transform-name=* \
528 |
--program-transform-nam=* |
--program-transform-na=* \
529 |
--program-transform-n=* |
--program-transform-=* \
530 |
--program-transform=* |
--program-transfor=* \
531 |
--program-transfo=* |
--program-transf=* \
532 |
--program-trans=* |
--program-tran=* \
533 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
534 program_transform_name
=$ac_optarg ;;
536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
537 |
-silent |
--silent |
--silen |
--sile |
--sil)
540 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
542 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
544 sbindir
=$ac_optarg ;;
546 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
547 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
548 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
550 ac_prev
=sharedstatedir
;;
551 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
552 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
553 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
555 sharedstatedir
=$ac_optarg ;;
557 -site |
--site |
--sit)
559 -site=* |
--site=* |
--sit=*)
562 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
564 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
567 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
568 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
569 ac_prev
=sysconfdir
;;
570 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
571 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
572 sysconfdir
=$ac_optarg ;;
574 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
575 ac_prev
=target_alias
;;
576 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
577 target_alias
=$ac_optarg ;;
579 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
582 -version |
--version |
--versio |
--versi |
--vers |
-V)
586 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package
=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* |
--without-*)
599 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package
=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
612 |
--x-incl |
--x-inc |
--x-in |
--x-i)
613 ac_prev
=x_includes
;;
614 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
615 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
616 x_includes
=$ac_optarg ;;
618 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
619 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
620 ac_prev
=x_libraries
;;
621 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
622 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
623 x_libraries
=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var
in exec_prefix prefix
660 eval ac_val
=$
`echo $ac_var`
662 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val
=$
`echo $ac_var`
674 [\\/$
]* | ?
:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x
; then
689 if test "x$build_alias" = x
; then
690 cross_compiling
=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
701 test "$silent" = yes && exec 6>/dev
/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted
=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir
=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted
=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set
=${build_alias+set}
741 ac_env_build_alias_value
=$build_alias
742 ac_cv_env_build_alias_set
=${build_alias+set}
743 ac_cv_env_build_alias_value
=$build_alias
744 ac_env_host_alias_set
=${host_alias+set}
745 ac_env_host_alias_value
=$host_alias
746 ac_cv_env_host_alias_set
=${host_alias+set}
747 ac_cv_env_host_alias_value
=$host_alias
748 ac_env_target_alias_set
=${target_alias+set}
749 ac_env_target_alias_value
=$target_alias
750 ac_cv_env_target_alias_set
=${target_alias+set}
751 ac_cv_env_target_alias_value
=$target_alias
752 ac_env_CC_set
=${CC+set}
754 ac_cv_env_CC_set
=${CC+set}
755 ac_cv_env_CC_value
=$CC
756 ac_env_CFLAGS_set
=${CFLAGS+set}
757 ac_env_CFLAGS_value
=$CFLAGS
758 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value
=$CFLAGS
760 ac_env_LDFLAGS_set
=${LDFLAGS+set}
761 ac_env_LDFLAGS_value
=$LDFLAGS
762 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value
=$LDFLAGS
764 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value
=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_env_CPP_set
=${CPP+set}
769 ac_env_CPP_value
=$CPP
770 ac_cv_env_CPP_set
=${CPP+set}
771 ac_cv_env_CPP_value
=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
839 --build=BUILD configure
for building on BUILD
[guessed
]
840 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
841 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
851 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
852 --enable-werror enable -Werror in bootstrap stage2 and later
853 --enable-checking=LIST
854 enable expensive run-time checks. With LIST
,
855 enable only specific categories of checks.
856 Categories are
: misc
,tree
,rtl
,rtlflag
,gc
,gcac
;
857 default is misc
,tree
,gc
,rtlflag
858 --enable-coverage=LEVEL
859 enable compiler
\'s code coverage collection.
860 Use to measure compiler performance and
locate
861 unused parts of the compiler. With LEVEL
, specify
862 optimization. Values are opt
, noopt
,
864 --enable-multilib enable library support
for multiple ABIs
865 --enable-__cxa_atexit enable __cxa_atexit
for C
++
866 --enable-c-mbchar enable multibyte characters
for C and C
++
867 --enable-threads enable thread usage
for target GCC
868 --enable-threads=LIB use LIB thread package
for target GCC
869 --enable-objc-gc enable the use of Boehm
's garbage collector with
870 the GNU Objective-C runtime
871 --disable-shared don't provide a shared libgcc
872 --enable-initfini-array use .init_array
/.fini_array sections
873 --enable-sjlj-exceptions
874 arrange to use setjmp
/longjmp exception handling
875 --enable-libunwind-exceptions force use libunwind
for exceptions
876 --enable-nls use Native Language Support
(default
)
877 --disable-nls do not use Native Language Support
878 --disable-win32-registry
879 disable lookup of installation paths
in the
880 Registry on Windows hosts
881 --enable-win32-registry enable registry lookup
(default
)
882 --enable-win32-registry=KEY
883 use KEY instead of GCC version as the last portion
885 --enable-maintainer-mode
886 enable make rules and dependencies not useful
887 (and sometimes confusing
) to the casual installer
888 --enable-version-specific-runtime-libs
889 specify that runtime libraries should be
890 installed
in a compiler-specific directory
893 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
894 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
895 --with-local-prefix=DIR specifies directory to put
local include
896 --with-gxx-include-dir=DIR
897 specifies directory to put g
++ header files
898 --with-cpp-install-dir=DIR
899 install the user visible C preprocessor
in DIR
900 (relative to PREFIX
) as well as PREFIX
/bin
901 --with-gnu-ld arrange to work with GNU ld.
902 --with-ld arrange to use the specified ld
(full pathname
)
903 --with-gnu-as arrange to work with GNU as
904 --with-as arrange to use the specified as
(full pathname
)
905 --with-stabs arrange to use stabs instead of
host debug format
906 --with-elf arrange to use ELF instead of
host debug format
907 --with-dwarf2 force the default debug format to be DWARF
2
908 --with-sysroot=DIR Search
for usr
/lib
, usr
/include
, et al
, within DIR.
909 --with-libiconv-prefix=DIR search
for libiconv
in DIR
/include and DIR
/lib
910 --with-included-gettext use the GNU
gettext library included here
911 --with-gc={simple
,page
} choose the garbage collection mechanism to use
913 --with-system-zlib use installed libz
914 --with-slibdir=DIR shared libraries
in DIR LIBDIR
916 Some influential environment variables
:
917 CC C compiler
command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
920 nonstandard directory
<lib dir
>
921 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
922 headers
in a nonstandard directory
<include dir
>
925 Use these variables to override the choices made by
`configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
943 ac_dir_suffix= ac_top_builddir=
947 .) # No --srcdir option. We are building in place.
949 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57. Invocation command line was
1015 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1016 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1017 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1018 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1019 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1021 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1022 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1024 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1025 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1026 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1027 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1028 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1029 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1030 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close
' the trap.
1110 trap 'exit_status
=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var
in $ac_subst_vars
1146 eval ac_val
=$
`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var
in $ac_subst_files
1160 eval ac_val
=$
`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h
; then
1173 sed "/^$/d" confdefs.h |
sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core core.
* *.core
&&
1181 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's
/^
/|
/' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1278 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1303 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1310 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1331 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1334 # Determine the host, build, and target systems
1336 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1337 if test -f $ac_dir/install-sh; then
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 elif test -f $ac_dir/install.sh; then
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 elif test -f $ac_dir/shtool; then
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 if test -z "$ac_aux_dir"; then
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1354 { (exit 1); exit 1; }; }
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360 # Make sure we can run config.sub.
1361 $ac_config_sub sun4 >/dev/null 2>&1 ||
1362 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1363 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1364 { (exit 1); exit 1; }; }
1366 echo "$as_me:$LINENO: checking build system type" >&5
1367 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1368 if test "${ac_cv_build+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 ac_cv_build_alias=$build_alias
1372 test -z "$ac_cv_build_alias" &&
1373 ac_cv_build_alias=`$ac_config_guess`
1374 test -z "$ac_cv_build_alias" &&
1375 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1376 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1377 { (exit 1); exit 1; }; }
1378 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1379 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1380 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1381 { (exit 1); exit 1; }; }
1384 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1385 echo "${ECHO_T}$ac_cv_build" >&6
1387 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1388 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1389 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1392 echo "$as_me:$LINENO: checking host system type" >&5
1393 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1394 if test "${ac_cv_host+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 ac_cv_host_alias=$host_alias
1398 test -z "$ac_cv_host_alias" &&
1399 ac_cv_host_alias=$ac_cv_build_alias
1400 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1401 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1402 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1403 { (exit 1); exit 1; }; }
1406 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1407 echo "${ECHO_T}$ac_cv_host" >&6
1409 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1410 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1411 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1414 echo "$as_me:$LINENO: checking target system type" >&5
1415 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1416 if test "${ac_cv_target+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 ac_cv_target_alias=$target_alias
1420 test "x$ac_cv_target_alias" = "x" &&
1421 ac_cv_target_alias=$ac_cv_host_alias
1422 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1423 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1424 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1425 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1429 echo "${ECHO_T}$ac_cv_target" >&6
1430 target=$ac_cv_target
1431 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1432 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1433 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1436 # The aliases save the names the user supplied, while $host etc.
1437 # will get canonicalized.
1438 test -n "$target_alias" &&
1439 test "$program_prefix$program_suffix$program_transform_name" = \
1441 program_prefix=${target_alias}-
1443 # Define variables host_canonical and build_canonical
1444 build_canonical=${build}
1445 host_canonical=${host}
1450 if test "${host}" != "${target}" ; then
1451 target_subdir=${target_alias}/
1455 # Set program_transform_name
1456 test "$program_prefix" != NONE &&
1457 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1458 # Use a double $ so make ignores it.
1459 test "$program_suffix" != NONE &&
1460 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1461 # Double any \ or $. echo might interpret backslashes.
1462 # By default was `s,x,x', remove it
if useless.
1463 cat <<\_ACEOF
>conftest.
sed
1464 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1466 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1470 # Check for bogus environment variables.
1471 # Test if LIBRARY_PATH contains the notation for the current directory
1472 # since this would lead to problems installing/building glibc.
1473 # LIBRARY_PATH contains the current directory if one of the following
1475 # - one of the terminals (":" and ";") is the first or last sign
1476 # - two terminals occur directly after each other
1477 # - the path contains an element with a dot in it
1478 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1479 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1480 case ${LIBRARY_PATH} in
1481 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1482 library_path_setting
="contains current directory"
1485 library_path_setting
="ok"
1488 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1489 echo "${ECHO_T}$library_path_setting" >&6
1490 if test "$library_path_setting" != "ok"; then
1491 { { echo "$as_me:$LINENO: error:
1492 *** LIBRARY_PATH shouldn't contain the current directory when
1493 *** building gcc. Please change the environment variable
1494 *** and run configure again." >&5
1495 echo "$as_me: error:
1496 *** LIBRARY_PATH shouldn't contain the current directory when
1497 *** building gcc. Please change the environment variable
1498 *** and run configure again." >&2;}
1499 { (exit 1); exit 1; }; }
1502 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1503 # since this would lead to problems installing/building glibc.
1504 # GCC_EXEC_PREFIX contains the current directory if one of the following
1506 # - one of the terminals (":" and ";") is the first or last sign
1507 # - two terminals occur directly after each other
1508 # - the path contains an element with a dot in it
1509 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1510 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1511 case ${GCC_EXEC_PREFIX} in
1512 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1513 gcc_exec_prefix_setting
="contains current directory"
1516 gcc_exec_prefix_setting
="ok"
1519 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1520 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1521 if test "$gcc_exec_prefix_setting" != "ok"; then
1522 { { echo "$as_me:$LINENO: error:
1523 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1524 *** building gcc. Please change the environment variable
1525 *** and run configure again." >&5
1526 echo "$as_me: error:
1527 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1528 *** building gcc. Please change the environment variable
1529 *** and run configure again." >&2;}
1530 { (exit 1); exit 1; }; }
1537 # Specify the local prefix
1540 # Check whether --with-local-prefix or --without-local-prefix was given.
1541 if test "${with_local_prefix+set}" = set; then
1542 withval
="$with_local_prefix"
1543 case "${withval}" in
1544 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1545 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1546 { (exit 1); exit 1; }; } ;;
1548 *) local_prefix
=$with_local_prefix ;;
1552 # Default local prefix if it is empty
1553 if test x
$local_prefix = x
; then
1554 local_prefix
=/usr
/local
1557 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1558 # passed in by the toplevel make and thus we'd get different behavior
1559 # depending on where we built the sources.
1560 gcc_gxx_include_dir
=
1561 # Specify the g++ header file directory
1563 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1564 if test "${with_gxx_include_dir+set}" = set; then
1565 withval
="$with_gxx_include_dir"
1566 case "${withval}" in
1567 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1568 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1569 { (exit 1); exit 1; }; } ;;
1571 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1575 if test x
${gcc_gxx_include_dir} = x
; then
1576 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1577 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1579 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1580 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1585 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1586 if test "${with_cpp_install_dir+set}" = set; then
1587 withval
="$with_cpp_install_dir"
1588 if test x
$withval = xyes
; then
1589 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1590 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1591 { (exit 1); exit 1; }; }
1592 elif test x
$withval != xno
; then
1593 cpp_install_dir
=$withval
1597 # -------------------
1598 # Find default linker
1599 # -------------------
1603 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1604 if test "${with_gnu_ld+set}" = set; then
1605 withval
="$with_gnu_ld"
1606 gnu_ld_flag
="$with_gnu_ld"
1611 # With pre-defined ld
1613 # Check whether --with-ld or --without-ld was given.
1614 if test "${with_ld+set}" = set; then
1616 DEFAULT_LINKER
="$with_ld"
1618 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1619 if test ! -x "$DEFAULT_LINKER"; then
1620 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1621 echo "$as_me: WARNING: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1622 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1626 cat >>confdefs.h
<<_ACEOF
1627 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1632 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1633 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1634 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1635 if test x
"$gnu_ld_flag" = x
"no"; then
1636 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1637 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1639 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1640 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1643 echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1647 # ----------------------
1648 # Find default assembler
1649 # ----------------------
1653 # Check whether --with-gnu-as or --without-gnu-as was given.
1654 if test "${with_gnu_as+set}" = set; then
1655 withval
="$with_gnu_as"
1656 gas_flag
="$with_gnu_as"
1662 # Check whether --with-as or --without-as was given.
1663 if test "${with_as+set}" = set; then
1665 DEFAULT_ASSEMBLER
="$with_as"
1667 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1668 if test ! -x "$DEFAULT_ASSEMBLER"; then
1669 { echo "$as_me:$LINENO: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1670 echo "$as_me: WARNING: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1671 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1675 cat >>confdefs.h
<<_ACEOF
1676 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1681 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1682 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1683 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1684 if test x
"$gas_flag" = x
"no"; then
1685 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1686 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1688 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1689 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1692 echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1700 # Find the native compiler
1702 ac_cpp
='$CPP $CPPFLAGS'
1703 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1704 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1705 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1706 if test -n "$ac_tool_prefix"; then
1707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1708 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 if test -n "$CC"; then
1715 ac_cv_prog_CC
="$CC" # Let the user override the test.
1717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1721 test -z "$as_dir" && as_dir
=.
1722 for ac_exec_ext
in '' $ac_executable_extensions; do
1723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734 if test -n "$CC"; then
1735 echo "$as_me:$LINENO: result: $CC" >&5
1736 echo "${ECHO_T}$CC" >&6
1738 echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1743 if test -z "$ac_cv_prog_CC"; then
1745 # Extract the first word of "gcc", so it can be a program name with args.
1746 set dummy gcc
; ac_word
=$2
1747 echo "$as_me:$LINENO: checking for $ac_word" >&5
1748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1750 echo $ECHO_N "(cached) $ECHO_C" >&6
1752 if test -n "$ac_ct_CC"; then
1753 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1759 test -z "$as_dir" && as_dir
=.
1760 for ac_exec_ext
in '' $ac_executable_extensions; do
1761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762 ac_cv_prog_ac_ct_CC
="gcc"
1763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1772 if test -n "$ac_ct_CC"; then
1773 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1774 echo "${ECHO_T}$ac_ct_CC" >&6
1776 echo "$as_me:$LINENO: result: no" >&5
1777 echo "${ECHO_T}no" >&6
1785 if test -z "$CC"; then
1786 if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1788 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC
="$CC" # Let the user override the test.
1797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1801 test -z "$as_dir" && as_dir
=.
1802 for ac_exec_ext
in '' $ac_executable_extensions; do
1803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 if test -n "$CC"; then
1815 echo "$as_me:$LINENO: result: $CC" >&5
1816 echo "${ECHO_T}$CC" >&6
1818 echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1823 if test -z "$ac_cv_prog_CC"; then
1825 # Extract the first word of "cc", so it can be a program name with args.
1826 set dummy cc
; ac_word
=$2
1827 echo "$as_me:$LINENO: checking for $ac_word" >&5
1828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 if test -n "$ac_ct_CC"; then
1833 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir
=.
1840 for ac_exec_ext
in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 ac_cv_prog_ac_ct_CC
="cc"
1843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1852 if test -n "$ac_ct_CC"; then
1853 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1854 echo "${ECHO_T}$ac_ct_CC" >&6
1856 echo "$as_me:$LINENO: result: no" >&5
1857 echo "${ECHO_T}no" >&6
1866 if test -z "$CC"; then
1867 # Extract the first word of "cc", so it can be a program name with args.
1868 set dummy cc
; ac_word
=$2
1869 echo "$as_me:$LINENO: checking for $ac_word" >&5
1870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1871 if test "${ac_cv_prog_CC+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1874 if test -n "$CC"; then
1875 ac_cv_prog_CC
="$CC" # Let the user override the test.
1878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir
=.
1883 for ac_exec_ext
in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1886 ac_prog_rejected
=yes
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 if test $ac_prog_rejected = yes; then
1897 # We found a bogon in the path, so make sure we never use it.
1898 set dummy
$ac_cv_prog_CC
1900 if test $# != 0; then
1901 # We chose a different compiler from the bogus one.
1902 # However, it has the same basename, so the bogon will be chosen
1903 # first if we set CC to just the basename; use the full file name.
1905 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1911 if test -n "$CC"; then
1912 echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6
1915 echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1920 if test -z "$CC"; then
1921 if test -n "$ac_tool_prefix"; then
1924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC
="$CC" # Let the user override the test.
1934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1938 test -z "$as_dir" && as_dir
=.
1939 for ac_exec_ext
in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 if test -n "$CC"; then
1952 echo "$as_me:$LINENO: result: $CC" >&5
1953 echo "${ECHO_T}$CC" >&6
1955 echo "$as_me:$LINENO: result: no" >&5
1956 echo "${ECHO_T}no" >&6
1959 test -n "$CC" && break
1962 if test -z "$CC"; then
1966 # Extract the first word of "$ac_prog", so it can be a program name with args.
1967 set dummy
$ac_prog; ac_word
=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 if test -n "$ac_ct_CC"; then
1974 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1980 test -z "$as_dir" && as_dir
=.
1981 for ac_exec_ext
in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_CC
="$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1993 if test -n "$ac_ct_CC"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1995 echo "${ECHO_T}$ac_ct_CC" >&6
1997 echo "$as_me:$LINENO: result: no" >&5
1998 echo "${ECHO_T}no" >&6
2001 test -n "$ac_ct_CC" && break
2010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: no acceptable C compiler found in \$PATH
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2016 # Provide some information about the compiler.
2017 echo "$as_me:$LINENO:" \
2018 "checking for C compiler version" >&5
2019 ac_compiler
=`set X $ac_compile; echo $2`
2020 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2021 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }
2025 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2026 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2031 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }
2036 cat >conftest.
$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2040 cat confdefs.h
>>conftest.
$ac_ext
2041 cat >>conftest.
$ac_ext <<_ACEOF
2042 /* end confdefs.h. */
2052 ac_clean_files_save
=$ac_clean_files
2053 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2054 # Try to create an executable without -o first, disregard a.out.
2055 # It will help us diagnose broken compilers, and finding out an intuition
2057 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2058 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2059 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2060 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2061 (eval $ac_link_default) 2>&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; then
2065 # Find the output, starting from the most likely. This scheme is
2066 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2069 # Be careful to initialize this variable, since it used to be cached.
2070 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2072 # b.out is created by i960 compilers.
2073 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2075 test -f "$ac_file" ||
continue
2077 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2080 # This is the source file.
2083 # We found the default executable, but exeext='' is most
2087 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2088 # FIXME: I believe we export ac_cv_exeext for Libtool,
2089 # but it would be cool to find out if it's true. Does anybody
2090 # maintain Libtool? --akim.
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.
$ac_ext >&5
2101 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: C compiler cannot create executables
2104 See \`config.log' for more details." >&2;}
2105 { (exit 77); exit 77; }; }
2108 ac_exeext
=$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_file" >&5
2110 echo "${ECHO_T}$ac_file" >&6
2112 # Check the compiler produces executables we can run. If not, either
2113 # the compiler is broken, or we cross compile.
2114 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2115 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2116 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2117 # If not cross compiling, check that we can run a simple program.
2118 if test "$cross_compiling" != yes; then
2119 if { ac_try
='./$ac_file'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2127 if test "$cross_compiling" = maybe
; then
2130 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2131 If you meant to cross compile, use \`--host'.
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot run C compiled programs.
2134 If you meant to cross compile, use \`--host'.
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2140 echo "$as_me:$LINENO: result: yes" >&5
2141 echo "${ECHO_T}yes" >&6
2143 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2144 ac_clean_files
=$ac_clean_files_save
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2148 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2149 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2150 echo "${ECHO_T}$cross_compiling" >&6
2152 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2153 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2155 (eval $ac_link) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2160 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2161 # work properly (i.e., refer to `conftest.exe'), while it won't with
2163 for ac_file
in conftest.exe conftest conftest.
*; do
2164 test -f "$ac_file" ||
continue
2166 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2167 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2175 See \`config.log' for more details." >&5
2176 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&2;}
2178 { (exit 1); exit 1; }; }
2181 rm -f conftest
$ac_cv_exeext
2182 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2183 echo "${ECHO_T}$ac_cv_exeext" >&6
2185 rm -f conftest.
$ac_ext
2186 EXEEXT
=$ac_cv_exeext
2188 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2189 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2190 if test "${ac_cv_objext+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.
$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2197 cat confdefs.h
>>conftest.
$ac_ext
2198 cat >>conftest.
$ac_ext <<_ACEOF
2199 /* end confdefs.h. */
2209 rm -f conftest.o conftest.obj
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; then
2215 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2218 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2223 echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.
$ac_ext >&5
2226 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2233 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2235 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236 echo "${ECHO_T}$ac_cv_objext" >&6
2237 OBJEXT
=$ac_cv_objext
2239 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 cat >conftest.
$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2248 cat confdefs.h
>>conftest.
$ac_ext
2249 cat >>conftest.
$ac_ext <<_ACEOF
2250 /* end confdefs.h. */
2263 rm -f conftest.
$ac_objext
2264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try
='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.
$ac_ext >&5
2282 rm -f conftest.
$ac_objext conftest.
$ac_ext
2283 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2286 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2287 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2288 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2289 ac_test_CFLAGS
=${CFLAGS+set}
2290 ac_save_CFLAGS
=$CFLAGS
2292 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2293 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2294 if test "${ac_cv_prog_cc_g+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.
$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2301 cat confdefs.h
>>conftest.
$ac_ext
2302 cat >>conftest.
$ac_ext <<_ACEOF
2303 /* end confdefs.h. */
2313 rm -f conftest.
$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try
='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.
$ac_ext >&5
2332 rm -f conftest.
$ac_objext conftest.
$ac_ext
2334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2335 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2336 if test "$ac_test_CFLAGS" = set; then
2337 CFLAGS
=$ac_save_CFLAGS
2338 elif test $ac_cv_prog_cc_g = yes; then
2339 if test "$GCC" = yes; then
2345 if test "$GCC" = yes; then
2351 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2352 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2353 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 ac_cv_prog_cc_stdc
=no
2358 cat >conftest.
$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2362 cat confdefs.h
>>conftest.
$ac_ext
2363 cat >>conftest.
$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2367 #include <sys/types.h>
2368 #include <sys/stat.h>
2369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370 struct buf { int x; };
2371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372 static char *e (p, i)
2378 static char *f (char * (*g) (char **, int), char **p, ...)
2383 s = g (p, va_arg (v,int));
2387 int test (int i, double x);
2388 struct s1 {int (*f) (int a);};
2389 struct s2 {int (*f) (double a);};
2390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2401 # Don't try gcc -ansi; that turns off useful extensions and
2402 # breaks some systems' header files.
2403 # AIX -qlanglvl=ansi
2404 # Ultrix and OSF/1 -std1
2405 # HP-UX 10.20 and later -Ae
2406 # HP-UX older versions -Aa -D_HPUX_SOURCE
2407 # SVR4 -Xc -D__EXTENSIONS__
2408 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2410 CC
="$ac_save_CC $ac_arg"
2411 rm -f conftest.
$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413 (eval $ac_compile) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try
='test -s conftest.$ac_objext'
2418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; }; then
2423 ac_cv_prog_cc_stdc
=$ac_arg
2426 echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.
$ac_ext >&5
2430 rm -f conftest.
$ac_objext
2432 rm -f conftest.
$ac_ext conftest.
$ac_objext
2437 case "x$ac_cv_prog_cc_stdc" in
2439 echo "$as_me:$LINENO: result: none needed" >&5
2440 echo "${ECHO_T}none needed" >&6 ;;
2442 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2443 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2444 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2447 # Some people use a C++ compiler to compile C. Since we use `exit',
2448 # in C++ we need to declare it. In case someone uses the same compiler
2449 # for both compiling C and C++ we need to have the C++ compiler decide
2450 # the declaration of exit, since it's the most demanding environment.
2451 cat >conftest.
$ac_ext <<_ACEOF
2456 rm -f conftest.
$ac_objext
2457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458 (eval $ac_compile) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try
='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2468 for ac_declaration
in \
2470 '#include <stdlib.h>' \
2471 'extern "C" void std::exit (int) throw (); using std::exit;' \
2472 'extern "C" void std::exit (int); using std::exit;' \
2473 'extern "C" void exit (int) throw ();' \
2474 'extern "C" void exit (int);' \
2477 cat >conftest.
$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2481 cat confdefs.h
>>conftest.
$ac_ext
2482 cat >>conftest.
$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2494 rm -f conftest.
$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try
='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.
$ac_ext >&5
2513 rm -f conftest.
$ac_objext conftest.
$ac_ext
2514 cat >conftest.
$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2518 cat confdefs.h
>>conftest.
$ac_ext
2519 cat >>conftest.
$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.
$ac_objext
2531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532 (eval $ac_compile) 2>&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try
='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.
$ac_ext >&5
2548 rm -f conftest.
$ac_objext conftest.
$ac_ext
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.
$ac_ext >&5
2562 rm -f conftest.
$ac_objext conftest.
$ac_ext
2564 ac_cpp
='$CPP $CPPFLAGS'
2565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2569 if test "x$CC" != xcc
; then
2570 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2571 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2573 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2574 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2576 set dummy
$CC; ac_cc
=`echo $2 |
2577 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2578 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 cat >conftest.
$ac_ext <<_ACEOF
2582 #line $LINENO "configure"
2585 cat confdefs.h
>>conftest.
$ac_ext
2586 cat >>conftest.
$ac_ext <<_ACEOF
2587 /* end confdefs.h. */
2597 # Make sure it works both with $CC and with simple cc.
2598 # We do the test twice because some compilers refuse to overwrite an
2599 # existing .o file with -o, though they will create one.
2600 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2601 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } &&
2606 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); };
2612 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2613 if test "x$CC" != xcc
; then
2614 # Test first that cc exists at all.
2615 if { ac_try
='cc -c conftest.$ac_ext >&5'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2622 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); };
2636 # cc exists but doesn't like -o.
2637 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2642 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2647 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2648 echo "$as_me:$LINENO: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2651 echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2654 cat >>confdefs.h
<<\_ACEOF
2655 #define NO_MINUS_C_MINUS_O 1
2660 # autoconf is lame and doesn't give us any substitution variable for this.
2661 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2662 NO_MINUS_C_MINUS_O
=yes
2664 OUTPUT_OPTION
='-o $@'
2669 # -------------------------
2670 # Check C compiler features
2671 # -------------------------
2674 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-long-long" >&5
2675 echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-long-long... $ECHO_C" >&6
2676 if test "${ac_cv_prog_cc_no_long_long+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 save_CFLAGS
="$CFLAGS"
2680 CFLAGS
="-Wno-long-long"
2681 cat >conftest.
$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2685 cat confdefs.h
>>conftest.
$ac_ext
2686 cat >>conftest.
$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.
$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try
='test -s conftest.$ac_objext'
2704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; }; then
2709 ac_cv_prog_cc_no_long_long
=yes
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.
$ac_ext >&5
2714 ac_cv_prog_cc_no_long_long
=no
2716 rm -f conftest.
$ac_objext conftest.
$ac_ext
2717 CFLAGS
="$save_CFLAGS"
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_no_long_long" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_no_long_long" >&6
2723 ac_cpp
='$CPP $CPPFLAGS'
2724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2727 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2728 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2729 # On Suns, sometimes $CPP names a directory.
2730 if test -n "$CPP" && test -d "$CPP"; then
2733 if test -z "$CPP"; then
2734 if test "${ac_cv_prog_CPP+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 # Double quotes because CPP needs to be expanded
2738 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2741 for ac_c_preproc_warn_flag
in '' yes
2743 # Use a header file that comes with gcc, so configuring glibc
2744 # with a fresh cross-compiler works.
2745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746 # <limits.h> exists even on freestanding compilers.
2747 # On the NeXT, cc -E runs the code through the compiler's parser,
2748 # not just through cpp. "Syntax error" is here to catch this case.
2749 cat >conftest.
$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2753 cat confdefs.h
>>conftest.
$ac_ext
2754 cat >>conftest.
$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2757 # include <limits.h>
2759 # include <assert.h>
2763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2766 grep -v '^ *+' conftest.er1
>conftest.err
2768 cat conftest.err
>&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } >/dev
/null
; then
2771 if test -s conftest.err
; then
2772 ac_cpp_err
=$ac_c_preproc_warn_flag
2779 if test -z "$ac_cpp_err"; then
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.
$ac_ext >&5
2785 # Broken: fails on valid input.
2788 rm -f conftest.err conftest.
$ac_ext
2790 # OK, works on sane cases. Now check whether non-existent headers
2791 # can be detected and how.
2792 cat >conftest.
$ac_ext <<_ACEOF
2793 #line $LINENO "configure"
2796 cat confdefs.h
>>conftest.
$ac_ext
2797 cat >>conftest.
$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799 #include <ac_nonexistent.h>
2801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2802 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2804 grep -v '^ *+' conftest.er1
>conftest.err
2806 cat conftest.err
>&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } >/dev
/null
; then
2809 if test -s conftest.err
; then
2810 ac_cpp_err
=$ac_c_preproc_warn_flag
2817 if test -z "$ac_cpp_err"; then
2818 # Broken: success on invalid input.
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.
$ac_ext >&5
2824 # Passes both tests.
2828 rm -f conftest.err conftest.
$ac_ext
2831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2832 rm -f conftest.err conftest.
$ac_ext
2833 if $ac_preproc_ok; then
2845 echo "$as_me:$LINENO: result: $CPP" >&5
2846 echo "${ECHO_T}$CPP" >&6
2848 for ac_c_preproc_warn_flag
in '' yes
2850 # Use a header file that comes with gcc, so configuring glibc
2851 # with a fresh cross-compiler works.
2852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2853 # <limits.h> exists even on freestanding compilers.
2854 # On the NeXT, cc -E runs the code through the compiler's parser,
2855 # not just through cpp. "Syntax error" is here to catch this case.
2856 cat >conftest.
$ac_ext <<_ACEOF
2857 #line $LINENO "configure"
2860 cat confdefs.h
>>conftest.
$ac_ext
2861 cat >>conftest.
$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2864 # include <limits.h>
2866 # include <assert.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1
>conftest.err
2875 cat conftest.err
>&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev
/null
; then
2878 if test -s conftest.err
; then
2879 ac_cpp_err
=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.
$ac_ext >&5
2892 # Broken: fails on valid input.
2895 rm -f conftest.err conftest.
$ac_ext
2897 # OK, works on sane cases. Now check whether non-existent headers
2898 # can be detected and how.
2899 cat >conftest.
$ac_ext <<_ACEOF
2900 #line $LINENO "configure"
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #include <ac_nonexistent.h>
2908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2909 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2911 grep -v '^ *+' conftest.er1
>conftest.err
2913 cat conftest.err
>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } >/dev
/null
; then
2916 if test -s conftest.err
; then
2917 ac_cpp_err
=$ac_c_preproc_warn_flag
2924 if test -z "$ac_cpp_err"; then
2925 # Broken: success on invalid input.
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.
$ac_ext >&5
2931 # Passes both tests.
2935 rm -f conftest.err conftest.
$ac_ext
2938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2939 rm -f conftest.err conftest.
$ac_ext
2940 if $ac_preproc_ok; then
2943 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2951 ac_cpp
='$CPP $CPPFLAGS'
2952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2956 echo "$as_me:$LINENO: checking for inline" >&5
2957 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2958 if test "${ac_cv_c_inline+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 for ac_kw
in inline __inline__ __inline
; do
2963 cat >conftest.
$ac_ext <<_ACEOF
2964 #line $LINENO "configure"
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2972 static $ac_kw foo_t static_foo () {return 0; }
2973 $ac_kw foo_t foo () {return 0; }
2977 rm -f conftest.
$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
2983 { ac_try
='test -s conftest.$ac_objext'
2984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; }; then
2989 ac_cv_c_inline
=$ac_kw; break
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.
$ac_ext >&5
2995 rm -f conftest.
$ac_objext conftest.
$ac_ext
2999 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3000 echo "${ECHO_T}$ac_cv_c_inline" >&6
3001 case $ac_cv_c_inline in
3004 cat >>confdefs.h
<<\_ACEOF
3008 *) cat >>confdefs.h
<<_ACEOF
3009 #define inline $ac_cv_c_inline
3014 echo "$as_me:$LINENO: checking for volatile" >&5
3015 echo $ECHO_N "checking for volatile... $ECHO_C" >&6
3016 if test "${gcc_cv_c_volatile+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 cat >conftest.
$ac_ext <<_ACEOF
3020 #line $LINENO "configure"
3023 cat confdefs.h
>>conftest.
$ac_ext
3024 cat >>conftest.
$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3035 rm -f conftest.
$ac_objext
3036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try
='test -s conftest.$ac_objext'
3042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3047 gcc_cv_c_volatile
=yes
3049 echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.
$ac_ext >&5
3052 gcc_cv_c_volatile
=no
3054 rm -f conftest.
$ac_objext conftest.
$ac_ext
3056 echo "$as_me:$LINENO: result: $gcc_cv_c_volatile" >&5
3057 echo "${ECHO_T}$gcc_cv_c_volatile" >&6
3058 if test $gcc_cv_c_volatile = yes ; then
3060 cat >>confdefs.h
<<\_ACEOF
3061 #define HAVE_VOLATILE 1
3067 echo "$as_me:$LINENO: checking for long double" >&5
3068 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3069 if test "${gcc_cv_c_long_double+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 if test "$GCC" = yes; then
3073 gcc_cv_c_long_double
=yes
3075 cat >conftest.
$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3086 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3087 long double foo = 0.0;
3088 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3089 switch (0) case 0: case (sizeof(long double) >= sizeof(double)):;
3094 rm -f conftest.
$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try
='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 gcc_cv_c_long_double
=yes
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.
$ac_ext >&5
3111 gcc_cv_c_long_double
=no
3113 rm -f conftest.
$ac_objext conftest.
$ac_ext
3116 echo "$as_me:$LINENO: result: $gcc_cv_c_long_double" >&5
3117 echo "${ECHO_T}$gcc_cv_c_long_double" >&6
3118 if test $gcc_cv_c_long_double = yes; then
3120 cat >>confdefs.h
<<\_ACEOF
3121 #define HAVE_LONG_DOUBLE 1
3126 echo "$as_me:$LINENO: checking for long long int" >&5
3127 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3128 if test "${ac_cv_c_long_long+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3131 cat >conftest.
$ac_ext <<_ACEOF
3132 #line $LINENO "configure"
3135 cat confdefs.h
>>conftest.
$ac_ext
3136 cat >>conftest.
$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.
$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>&5
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } &&
3153 { ac_try
='test -s conftest.$ac_objext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_c_long_long
=yes
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.
$ac_ext >&5
3164 ac_cv_c_long_long
=no
3166 rm -f conftest.
$ac_objext conftest.
$ac_ext
3168 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3169 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3170 if test $ac_cv_c_long_long = yes; then
3172 cat >>confdefs.h
<<\_ACEOF
3173 #define HAVE_LONG_LONG 1
3177 echo "$as_me:$LINENO: checking for __int64" >&5
3178 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3179 if test "${ac_cv_c___int64+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.
$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3186 cat confdefs.h
>>conftest.
$ac_ext
3187 cat >>conftest.
$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3198 rm -f conftest.
$ac_objext
3199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3200 (eval $ac_compile) 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } &&
3204 { ac_try
='test -s conftest.$ac_objext'
3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.
$ac_ext >&5
3217 rm -f conftest.
$ac_objext conftest.
$ac_ext
3219 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3220 echo "${ECHO_T}$ac_cv_c___int64" >&6
3221 if test $ac_cv_c___int64 = yes; then
3223 cat >>confdefs.h
<<\_ACEOF
3224 #define HAVE___INT64 1
3229 echo "$as_me:$LINENO: checking for built-in _Bool" >&5
3230 echo $ECHO_N "checking for built-in _Bool... $ECHO_C" >&6
3231 if test "${gcc_cv_c__bool+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 cat >conftest.
$ac_ext <<_ACEOF
3235 #line $LINENO "configure"
3238 cat confdefs.h
>>conftest.
$ac_ext
3239 cat >>conftest.
$ac_ext <<_ACEOF
3240 /* end confdefs.h. */
3250 rm -f conftest.
$ac_objext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252 (eval $ac_compile) 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } &&
3256 { ac_try
='test -s conftest.$ac_objext'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3264 echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.
$ac_ext >&5
3269 rm -f conftest.
$ac_objext conftest.
$ac_ext
3272 echo "$as_me:$LINENO: result: $gcc_cv_c__bool" >&5
3273 echo "${ECHO_T}$gcc_cv_c__bool" >&6
3274 if test $gcc_cv_c__bool = yes; then
3276 cat >>confdefs.h
<<\_ACEOF
3277 #define HAVE__BOOL 1
3283 # sizeof(char) is 1 by definition.
3284 echo "$as_me:$LINENO: checking size of short" >&5
3285 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3286 if test "${ac_cv_sizeof_short+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3290 cat >conftest.
$ac_ext <<_ACEOF
3291 #line $LINENO "configure"
3294 cat confdefs.h
>>conftest.
$ac_ext
3295 cat >>conftest.
$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include "confdefs.h"
3298 #include <sys/types.h>
3304 switch (0) case 0: case (sizeof (short) == $ac_size):;
3309 rm -f conftest.
$ac_objext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3311 (eval $ac_compile) 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
3315 { ac_try
='test -s conftest.$ac_objext'
3316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
3321 ac_cv_sizeof_short
=$ac_size
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.
$ac_ext >&5
3327 rm -f conftest.
$ac_objext conftest.
$ac_ext
3328 if test x
$ac_cv_sizeof_short != x
; then break; fi
3333 if test x
$ac_cv_sizeof_short = x
; then
3334 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3335 echo "$as_me: error: cannot determine a size for short" >&2;}
3336 { (exit 1); exit 1; }; }
3338 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3339 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3341 cat >>confdefs.h
<<_ACEOF
3342 #define SIZEOF_SHORT $ac_cv_sizeof_short
3346 echo "$as_me:$LINENO: checking size of int" >&5
3347 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3348 if test "${ac_cv_sizeof_int+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3352 cat >conftest.
$ac_ext <<_ACEOF
3353 #line $LINENO "configure"
3356 cat confdefs.h
>>conftest.
$ac_ext
3357 cat >>conftest.
$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include "confdefs.h"
3360 #include <sys/types.h>
3366 switch (0) case 0: case (sizeof (int) == $ac_size):;
3371 rm -f conftest.
$ac_objext
3372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373 (eval $ac_compile) 2>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try
='test -s conftest.$ac_objext'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_sizeof_int
=$ac_size
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.
$ac_ext >&5
3389 rm -f conftest.
$ac_objext conftest.
$ac_ext
3390 if test x
$ac_cv_sizeof_int != x
; then break; fi
3395 if test x
$ac_cv_sizeof_int = x
; then
3396 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3397 echo "$as_me: error: cannot determine a size for int" >&2;}
3398 { (exit 1); exit 1; }; }
3400 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3401 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3403 cat >>confdefs.h
<<_ACEOF
3404 #define SIZEOF_INT $ac_cv_sizeof_int
3408 echo "$as_me:$LINENO: checking size of long" >&5
3409 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3410 if test "${ac_cv_sizeof_long+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3414 cat >conftest.
$ac_ext <<_ACEOF
3415 #line $LINENO "configure"
3418 cat confdefs.h
>>conftest.
$ac_ext
3419 cat >>conftest.
$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421 #include "confdefs.h"
3422 #include <sys/types.h>
3428 switch (0) case 0: case (sizeof (long) == $ac_size):;
3433 rm -f conftest.
$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } &&
3439 { ac_try
='test -s conftest.$ac_objext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 ac_cv_sizeof_long
=$ac_size
3447 echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.
$ac_ext >&5
3451 rm -f conftest.
$ac_objext conftest.
$ac_ext
3452 if test x
$ac_cv_sizeof_long != x
; then break; fi
3457 if test x
$ac_cv_sizeof_long = x
; then
3458 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3459 echo "$as_me: error: cannot determine a size for long" >&2;}
3460 { (exit 1); exit 1; }; }
3462 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3463 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3465 cat >>confdefs.h
<<_ACEOF
3466 #define SIZEOF_LONG $ac_cv_sizeof_long
3470 if test $ac_cv_c_long_long = yes; then
3471 echo "$as_me:$LINENO: checking size of long long" >&5
3472 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3473 if test "${ac_cv_sizeof_long_long+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3477 cat >conftest.
$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3481 cat confdefs.h
>>conftest.
$ac_ext
3482 cat >>conftest.
$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3491 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3496 rm -f conftest.
$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } &&
3502 { ac_try
='test -s conftest.$ac_objext'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 ac_cv_sizeof_long_long
=$ac_size
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.
$ac_ext >&5
3514 rm -f conftest.
$ac_objext conftest.
$ac_ext
3515 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3520 if test x
$ac_cv_sizeof_long_long = x
; then
3521 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3522 echo "$as_me: error: cannot determine a size for long long" >&2;}
3523 { (exit 1); exit 1; }; }
3525 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3526 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3528 cat >>confdefs.h
<<_ACEOF
3529 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3534 if test $ac_cv_c___int64 = yes; then
3535 echo "$as_me:$LINENO: checking size of __int64" >&5
3536 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3537 if test "${ac_cv_sizeof___int64+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3541 cat >conftest.
$ac_ext <<_ACEOF
3542 #line $LINENO "configure"
3545 cat confdefs.h
>>conftest.
$ac_ext
3546 cat >>conftest.
$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3555 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try
='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_sizeof___int64
=$ac_size
3574 echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.
$ac_ext >&5
3578 rm -f conftest.
$ac_objext conftest.
$ac_ext
3579 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3584 if test x
$ac_cv_sizeof___int64 = x
; then
3585 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3586 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3587 { (exit 1); exit 1; }; }
3589 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3590 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3592 cat >>confdefs.h
<<_ACEOF
3593 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3600 echo "$as_me:$LINENO: checking for egrep" >&5
3601 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3602 if test "${ac_cv_prog_egrep+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3606 then ac_cv_prog_egrep
='grep -E'
3607 else ac_cv_prog_egrep
='egrep'
3610 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3611 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3612 EGREP
=$ac_cv_prog_egrep
3615 echo "$as_me:$LINENO: checking execution character set" >&5
3616 echo $ECHO_N "checking execution character set... $ECHO_C" >&6
3617 if test "${ac_cv_c_charset+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 cat >conftest.
$ac_ext <<_ACEOF
3621 #line $LINENO "configure"
3624 cat confdefs.h
>>conftest.
$ac_ext
3625 cat >>conftest.
$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3627 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
3628 && 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
3632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3633 $EGREP "ASCII" >/dev
/null
2>&1; then
3634 ac_cv_c_charset
=ASCII
3638 if test x
${ac_cv_c_charset+set} != xset
; then
3639 cat >conftest.
$ac_ext <<_ACEOF
3640 #line $LINENO "configure"
3643 cat confdefs.h
>>conftest.
$ac_ext
3644 cat >>conftest.
$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
3647 && 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
3651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3652 $EGREP "EBCDIC" >/dev
/null
2>&1; then
3653 ac_cv_c_charset
=EBCDIC
3658 if test x
${ac_cv_c_charset+set} != xset
; then
3659 ac_cv_c_charset
=unknown
3662 echo "$as_me:$LINENO: result: $ac_cv_c_charset" >&5
3663 echo "${ECHO_T}$ac_cv_c_charset" >&6
3664 if test $ac_cv_c_charset = unknown
; then
3665 { { echo "$as_me:$LINENO: error: *** Cannot determine host character set." >&5
3666 echo "$as_me: error: *** Cannot determine host character set." >&2;}
3667 { (exit 1); exit 1; }; }
3668 elif test $ac_cv_c_charset = EBCDIC
; then
3670 cat >>confdefs.h
<<\_ACEOF
3671 #define HOST_EBCDIC 1
3680 # See if GNAT has been installed
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
3685 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
3686 echo "$as_me:$LINENO: checking for $ac_word" >&5
3687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688 if test "${ac_cv_prog_GNATBIND+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 if test -n "$GNATBIND"; then
3692 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710 GNATBIND
=$ac_cv_prog_GNATBIND
3711 if test -n "$GNATBIND"; then
3712 echo "$as_me:$LINENO: result: $GNATBIND" >&5
3713 echo "${ECHO_T}$GNATBIND" >&6
3715 echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6
3720 if test -z "$ac_cv_prog_GNATBIND"; then
3721 ac_ct_GNATBIND
=$GNATBIND
3722 # Extract the first word of "gnatbind", so it can be a program name with args.
3723 set dummy gnatbind
; ac_word
=$2
3724 echo "$as_me:$LINENO: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$ac_ct_GNATBIND"; then
3730 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
3732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir
=.
3737 for ac_exec_ext
in '' $ac_executable_extensions; do
3738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
3740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 test -z "$ac_cv_prog_ac_ct_GNATBIND" && ac_cv_prog_ac_ct_GNATBIND
="no"
3749 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
3750 if test -n "$ac_ct_GNATBIND"; then
3751 echo "$as_me:$LINENO: result: $ac_ct_GNATBIND" >&5
3752 echo "${ECHO_T}$ac_ct_GNATBIND" >&6
3754 echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3758 GNATBIND
=$ac_ct_GNATBIND
3760 GNATBIND
="$ac_cv_prog_GNATBIND"
3763 echo "$as_me:$LINENO: checking for compiler driver that understands Ada" >&5
3764 echo $ECHO_N "checking for compiler driver that understands Ada... $ECHO_C" >&6
3765 if test "${gcc_cv_prog_adac+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 cat >conftest.adb
<<EOF
3769 procedure conftest is begin null; end conftest;
3772 # Have to do ac_tool_prefix and user overrides by hand.
3773 for cand
in ${ADAC+"$ADAC"} ${CC+"$CC"} \
3774 ${ac_tool_prefix}gcc gcc \
3775 ${ac_tool_prefix}cc cc \
3776 ${ac_tool_prefix}gnatgcc gnatgcc \
3777 ${ac_tool_prefix}gnatcc gnatcc \
3778 ${ac_tool_prefix}adagcc adagcc \
3779 ${ac_tool_prefix}adacc adacc
; do
3780 # There is a bug in all released versions of GCC which causes the
3781 # driver to exit successfully when the appropriate language module
3782 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
3783 # Therefore we must check for the error message as well as an
3784 # unsuccessful exit.
3785 errors
=`($cand -c conftest.adb) 2>&1 || echo failure`
3786 if test x
"$errors" = x
; then
3787 gcc_cv_prog_adac
=$cand
3793 echo "$as_me:$LINENO: result: $gcc_cv_prog_adac" >&5
3794 echo "${ECHO_T}$gcc_cv_prog_adac" >&6
3795 ADAC
=$gcc_cv_prog_adac
3798 if test x
$GNATBIND != xno
&& test x
$ADAC != xno
; then
3805 if test x
$have_gnat != xno
; then
3806 echo "$as_me:$LINENO: checking whether ${ADAC} accepts -Wno-long-long" >&5
3807 echo $ECHO_N "checking whether ${ADAC} accepts -Wno-long-long... $ECHO_C" >&6
3808 if test "${ac_cv_prog_adac_no_long_long+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 cat >conftest.adb
<<EOF
3812 procedure conftest is begin null; end conftest;
3814 if $ADAC -Wno-long-long -c conftest.adb
1>&5 2>&5 ; then
3815 ac_cv_prog_adac_no_long_long
=yes
3817 ac_cv_prog_adac_no_long_long
=no
3821 echo "$as_me:$LINENO: result: $ac_cv_prog_adac_no_long_long" >&5
3822 echo "${ECHO_T}$ac_cv_prog_adac_no_long_long" >&6
3824 ac_cv_prog_adac_no_long_long
=yes
3827 # ---------------------
3828 # Warnings and checking
3829 # ---------------------
3832 if test $ac_cv_prog_cc_no_long_long = yes && \
3833 test $ac_cv_prog_adac_no_long_long = yes ; then
3834 strict1_warn
="-pedantic -Wno-long-long"
3838 # If the native compiler is GCC, we can enable warnings even in stage1.
3839 # That's useful for people building cross-compilers, or just running a
3842 if test "x$GCC" = "xyes"; then
3843 warn_cflags
='$(GCC_WARN_CFLAGS)'
3847 # Enable -Werror in bootstrap stage2 and later.
3848 # Change the default to "no" on release branches.
3849 # Check whether --enable-werror or --disable-werror was given.
3850 if test "${enable_werror+set}" = set; then
3851 enableval
="$enable_werror"
3856 if test x
$enable_werror = xyes
; then
3861 # Enable expensive internal checks
3862 # Check whether --enable-checking or --disable-checking was given.
3863 if test "${enable_checking+set}" = set; then
3864 enableval
="$enable_checking"
3868 ac_rtlflag_checking
=
3870 ac_gc_always_collect
=
3871 case "${enableval}" in
3872 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3873 ac_rtlflag_checking
=1 ;;
3875 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3876 set fnord
$enableval; shift
3881 misc
) ac_checking
=1 ;;
3882 tree
) ac_tree_checking
=1 ;;
3883 rtlflag
) ac_rtlflag_checking
=1 ;;
3884 rtl
) ac_rtl_checking
=1 ;;
3885 gc
) ac_gc_checking
=1 ;;
3886 gcac
) ac_gc_always_collect
=1 ;;
3887 valgrind
) ac_checking_valgrind
=1 ;;
3888 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3889 echo "$as_me: error: unknown check category $check" >&2;}
3890 { (exit 1); exit 1; }; } ;;
3897 # Enable some checks by default for development versions of GCC
3898 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3901 if test x
$ac_checking != x
; then
3903 cat >>confdefs.h
<<\_ACEOF
3904 #define ENABLE_CHECKING 1
3907 nocommon_flag
=-fno-common
3910 if test x
$ac_tree_checking != x
; then
3912 cat >>confdefs.h
<<\_ACEOF
3913 #define ENABLE_TREE_CHECKING 1
3917 if test x
$ac_rtl_checking != x
; then
3919 cat >>confdefs.h
<<\_ACEOF
3920 #define ENABLE_RTL_CHECKING 1
3924 if test x
$ac_rtlflag_checking != x
; then
3926 cat >>confdefs.h
<<\_ACEOF
3927 #define ENABLE_RTL_FLAG_CHECKING 1
3931 if test x
$ac_gc_checking != x
; then
3933 cat >>confdefs.h
<<\_ACEOF
3934 #define ENABLE_GC_CHECKING 1
3938 if test x
$ac_gc_always_collect != x
; then
3940 cat >>confdefs.h
<<\_ACEOF
3941 #define ENABLE_GC_ALWAYS_COLLECT 1
3945 valgrind_path_defines
=
3947 if test x
$ac_checking_valgrind != x
; then
3948 # It is certainly possible that there's valgrind but no valgrind.h.
3949 # GCC relies on making annotations so we must have both.
3950 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
3951 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
3952 cat >conftest.
$ac_ext <<_ACEOF
3953 #line $LINENO "configure"
3956 cat confdefs.h
>>conftest.
$ac_ext
3957 cat >>conftest.
$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <memcheck.h>
3960 #ifndef VALGRIND_DISCARD
3961 #error VALGRIND_DISCARD not defined
3964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3965 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1
>conftest.err
3969 cat conftest.err
>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } >/dev
/null
; then
3972 if test -s conftest.err
; then
3973 ac_cpp_err
=$ac_c_preproc_warn_flag
3980 if test -z "$ac_cpp_err"; then
3981 gcc_cv_header_memcheck_h
=yes
3983 echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.
$ac_ext >&5
3986 gcc_cv_header_memcheck_h
=no
3988 rm -f conftest.err conftest.
$ac_ext
3989 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
3990 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
3991 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3992 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3993 if test "${ac_cv_header_stdc+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 cat >conftest.
$ac_ext <<_ACEOF
3997 #line $LINENO "configure"
4000 cat confdefs.h
>>conftest.
$ac_ext
4001 cat >>conftest.
$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4016 rm -f conftest.
$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>&5
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); } &&
4022 { ac_try
='test -s conftest.$ac_objext'
4023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 ac_cv_header_stdc
=yes
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.
$ac_ext >&5
4033 ac_cv_header_stdc
=no
4035 rm -f conftest.
$ac_objext conftest.
$ac_ext
4037 if test $ac_cv_header_stdc = yes; then
4038 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4039 cat >conftest.
$ac_ext <<_ACEOF
4040 #line $LINENO "configure"
4043 cat confdefs.h
>>conftest.
$ac_ext
4044 cat >>conftest.
$ac_ext <<_ACEOF
4045 /* end confdefs.h. */
4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4050 $EGREP "memchr" >/dev
/null
2>&1; then
4053 ac_cv_header_stdc
=no
4059 if test $ac_cv_header_stdc = yes; then
4060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4061 cat >conftest.
$ac_ext <<_ACEOF
4062 #line $LINENO "configure"
4065 cat confdefs.h
>>conftest.
$ac_ext
4066 cat >>conftest.
$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 $EGREP "free" >/dev
/null
2>&1; then
4075 ac_cv_header_stdc
=no
4081 if test $ac_cv_header_stdc = yes; then
4082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4083 if test "$cross_compiling" = yes; then
4086 cat >conftest.
$ac_ext <<_ACEOF
4087 #line $LINENO "configure"
4090 cat confdefs.h
>>conftest.
$ac_ext
4091 cat >>conftest.
$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4094 #if ((' ' & 0x0FF) == 0x020)
4095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4098 # define ISLOWER(c) \
4099 (('a' <= (c) && (c) <= 'i') \
4100 || ('j' <= (c) && (c) <= 'r') \
4101 || ('s' <= (c) && (c) <= 'z'))
4102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4110 for (i = 0; i < 256; i++)
4111 if (XOR (islower (i), ISLOWER (i))
4112 || toupper (i) != TOUPPER (i))
4117 rm -f conftest
$ac_exeext
4118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4119 (eval $ac_link) 2>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4130 echo "$as_me: program exited with status $ac_status" >&5
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.
$ac_ext >&5
4135 ac_cv_header_stdc
=no
4137 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4143 if test $ac_cv_header_stdc = yes; then
4145 cat >>confdefs.h
<<\_ACEOF
4146 #define STDC_HEADERS 1
4151 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4161 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4162 inttypes.h stdint.h unistd.h
4164 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4165 echo "$as_me:$LINENO: checking for $ac_header" >&5
4166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4168 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 cat >conftest.
$ac_ext <<_ACEOF
4171 #line $LINENO "configure"
4174 cat confdefs.h
>>conftest.
$ac_ext
4175 cat >>conftest.
$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 $ac_includes_default
4179 #include <$ac_header>
4181 rm -f conftest.
$ac_objext
4182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try
='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 eval "$as_ac_Header=yes"
4195 echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.
$ac_ext >&5
4198 eval "$as_ac_Header=no"
4200 rm -f conftest.
$ac_objext conftest.
$ac_ext
4202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4205 cat >>confdefs.h
<<_ACEOF
4206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4214 if test "${ac_cv_header_valgrind_h+set}" = set; then
4215 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4216 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4217 if test "${ac_cv_header_valgrind_h+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4221 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4223 # Is the header compilable?
4224 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4225 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4226 cat >conftest.
$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4230 cat confdefs.h
>>conftest.
$ac_ext
4231 cat >>conftest.
$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233 $ac_includes_default
4234 #include <valgrind.h>
4236 rm -f conftest.
$ac_objext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4238 (eval $ac_compile) 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } &&
4242 { ac_try
='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_header_compiler
=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.
$ac_ext >&5
4253 ac_header_compiler
=no
4255 rm -f conftest.
$ac_objext conftest.
$ac_ext
4256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4257 echo "${ECHO_T}$ac_header_compiler" >&6
4259 # Is the header present?
4260 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4261 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4262 cat >conftest.
$ac_ext <<_ACEOF
4263 #line $LINENO "configure"
4266 cat confdefs.h
>>conftest.
$ac_ext
4267 cat >>conftest.
$ac_ext <<_ACEOF
4268 /* end confdefs.h. */
4269 #include <valgrind.h>
4271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4272 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4274 grep -v '^ *+' conftest.er1
>conftest.err
4276 cat conftest.err
>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } >/dev
/null
; then
4279 if test -s conftest.err
; then
4280 ac_cpp_err
=$ac_c_preproc_warn_flag
4287 if test -z "$ac_cpp_err"; then
4288 ac_header_preproc
=yes
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4293 ac_header_preproc
=no
4295 rm -f conftest.err conftest.
$ac_ext
4296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4297 echo "${ECHO_T}$ac_header_preproc" >&6
4299 # So? What about this header?
4300 case $ac_header_compiler:$ac_header_preproc in
4302 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4303 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4304 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4305 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4308 ## ------------------------------------ ##
4309 ## Report this to bug-autoconf@gnu.org. ##
4310 ## ------------------------------------ ##
4313 sed "s/^/$as_me: WARNING: /" >&2
4316 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4317 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4318 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4319 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4320 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4321 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4324 ## ------------------------------------ ##
4325 ## Report this to bug-autoconf@gnu.org. ##
4326 ## ------------------------------------ ##
4329 sed "s/^/$as_me: WARNING: /" >&2
4332 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4333 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4334 if test "${ac_cv_header_valgrind_h+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 ac_cv_header_valgrind_h
=$ac_header_preproc
4339 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4340 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4343 if test $ac_cv_header_valgrind_h = yes; then
4350 # Extract the first word of "valgrind", so it can be a program name with args.
4351 set dummy valgrind
; ac_word
=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_path_valgrind_path+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 case "$valgrind_path" in
4359 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4362 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4363 for ac_dir
in $PATH; do
4364 test -z "$ac_dir" && ac_dir
=.
4365 if test -f $ac_dir/$ac_word; then
4366 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4367 ac_cv_path_valgrind_path
="$ac_dir/$ac_word"
4376 valgrind_path
="$ac_cv_path_valgrind_path"
4377 if test -n "$valgrind_path"; then
4378 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4379 echo "${ECHO_T}$valgrind_path" >&6
4381 echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4385 if test "x$valgrind_path" = "x" ||
(test $have_valgrind_h = no
&& test $gcc_cv_header_memcheck_h = no
); then
4386 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind.h/memcheck.h" >&5
4387 echo "$as_me: error: *** Can't find both valgrind and valgrind.h/memcheck.h" >&2;}
4388 { (exit 1); exit 1; }; }
4390 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4391 valgrind_command
="$valgrind_path -q"
4393 cat >>confdefs.h
<<\_ACEOF
4394 #define ENABLE_VALGRIND_CHECKING 1
4397 if test $gcc_cv_header_memcheck_h = yes; then
4399 cat >>confdefs.h
<<\_ACEOF
4400 #define HAVE_MEMCHECK_H 1
4408 # Enable code coverage collection
4409 # Check whether --enable-coverage or --disable-coverage was given.
4410 if test "${enable_coverage+set}" = set; then
4411 enableval
="$enable_coverage"
4412 case "${enableval}" in
4414 coverage_flags
="-fprofile-arcs -ftest-coverage -O0 -DSELF_COVERAGE=1"
4417 coverage_flags
="-fprofile-arcs -ftest-coverage -O2 -DSELF_COVERAGE=2"
4420 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4421 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4422 { (exit 1); exit 1; }; }
4430 # -------------------------------
4431 # Miscenalleous configure options
4432 # -------------------------------
4436 # Check whether --with-stabs or --without-stabs was given.
4437 if test "${with_stabs+set}" = set; then
4438 withval
="$with_stabs"
4446 # Check whether --with-elf or --without-elf was given.
4447 if test "${with_elf+set}" = set; then
4454 # Determine whether or not multilibs are enabled.
4455 # Check whether --enable-multilib or --disable-multilib was given.
4456 if test "${enable_multilib+set}" = set; then
4457 enableval
="$enable_multilib"
4464 # Enable __cxa_atexit for C++.
4465 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4466 if test "${enable___cxa_atexit+set}" = set; then
4467 enableval
="$enable___cxa_atexit"
4470 if test x
$enable___cxa_atexit = xyes
; then
4472 cat >>confdefs.h
<<\_ACEOF
4473 #define DEFAULT_USE_CXA_ATEXIT 1
4478 # Enable Multibyte Characters for C/C++
4479 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
4480 if test "${enable_c_mbchar+set}" = set; then
4481 enableval
="$enable_c_mbchar"
4482 if test x
$enable_c_mbchar != xno
; then
4484 cat >>confdefs.h
<<\_ACEOF
4485 #define MULTIBYTE_CHARS 1
4492 # Pass with no value to take the default
4493 # Pass with a value to specify a thread package
4494 # Check whether --enable-threads or --disable-threads was given.
4495 if test "${enable_threads+set}" = set; then
4496 enableval
="$enable_threads"
4502 enable_threads_flag
=$enable_threads
4503 # Check if a valid thread package
4504 case x
${enable_threads_flag} in
4507 target_thread_file
='single'
4511 target_thread_file
=''
4513 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
4514 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix | xgnat
)
4515 target_thread_file
=$enable_threads_flag
4518 echo "$enable_threads is an unknown thread package" 1>&2
4523 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4524 if test "${enable_objc_gc+set}" = set; then
4525 enableval
="$enable_objc_gc"
4526 if test x
$enable_objc_gc = xno
; then
4536 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4537 if test "${with_dwarf2+set}" = set; then
4538 withval
="$with_dwarf2"
4539 dwarf2
="$with_dwarf2"
4544 # Check whether --enable-shared or --disable-shared was given.
4545 if test "${enable_shared+set}" = set; then
4546 enableval
="$enable_shared"
4548 case $enable_shared in
4552 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4553 for pkg
in $enableval; do
4554 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4568 # Check whether --with-sysroot or --without-sysroot was given.
4569 if test "${with_sysroot+set}" = set; then
4570 withval
="$with_sysroot"
4572 case ${with_sysroot} in
4573 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
4574 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4577 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4578 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4580 if test "x$exec_prefix" = xNONE
; then
4581 if test "x$prefix" = xNONE
; then
4582 test_prefix
=/usr
/local
4587 test_prefix
=$exec_prefix
4589 case ${TARGET_SYSTEM_ROOT} in
4590 "${test_prefix}"|
"${test_prefix}/"*|\
4591 '${exec_prefix}'|
'${exec_prefix}/'*)
4592 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4593 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4600 TARGET_SYSTEM_ROOT_DEFINE
=
4601 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4608 # -------------------------
4609 # Checks for other programs
4610 # -------------------------
4612 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4613 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4614 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
4615 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 cat >conftest.
make <<\_ACEOF
4620 @
echo 'ac_maketemp="$(MAKE)"'
4622 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4623 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4624 if test -n "$ac_maketemp"; then
4625 eval ac_cv_prog_make_
${ac_make}_set
=yes
4627 eval ac_cv_prog_make_
${ac_make}_set
=no
4631 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4632 echo "$as_me:$LINENO: result: yes" >&5
4633 echo "${ECHO_T}yes" >&6
4636 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638 SET_MAKE
="MAKE=${MAKE-make}"
4642 # Find some useful tools
4643 for ac_prog
in gawk mawk nawk
awk
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646 set dummy
$ac_prog; ac_word
=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_AWK+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 if test -n "$AWK"; then
4653 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir
=.
4660 for ac_exec_ext
in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_AWK
="$ac_prog"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 if test -n "$AWK"; then
4673 echo "$as_me:$LINENO: result: $AWK" >&5
4674 echo "${ECHO_T}$AWK" >&6
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4680 test -n "$AWK" && break
4683 echo "$as_me:$LINENO: checking whether ln works" >&5
4684 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4685 if test "${gcc_cv_prog_LN+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4688 rm -f conftestdata_t
4689 echo >conftestdata_f
4690 if ln conftestdata_f conftestdata_t
2>/dev
/null
4694 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4696 gcc_cv_prog_LN
="ln -s"
4701 rm -f conftestdata_f conftestdata_t
4704 LN
="$gcc_cv_prog_LN"
4705 if test "$gcc_cv_prog_LN" = "ln"; then
4706 echo "$as_me:$LINENO: result: yes" >&5
4707 echo "${ECHO_T}yes" >&6
4709 if test "$gcc_cv_prog_LN" = "ln -s"; then
4710 echo "$as_me:$LINENO: result: no, using ln -s" >&5
4711 echo "${ECHO_T}no, using ln -s" >&6
4713 echo "$as_me:$LINENO: result: no, and neither does ln -s, so using cp" >&5
4714 echo "${ECHO_T}no, and neither does ln -s, so using cp" >&6
4718 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4719 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4720 if test "${gcc_cv_prog_LN_S+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 rm -f conftestdata_t
4724 echo >conftestdata_f
4725 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4727 gcc_cv_prog_LN_S
="ln -s"
4729 if ln conftestdata_f conftestdata_t
2>/dev
/null
4736 rm -f conftestdata_f conftestdata_t
4739 LN_S
="$gcc_cv_prog_LN_S"
4740 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4741 echo "$as_me:$LINENO: result: yes" >&5
4742 echo "${ECHO_T}yes" >&6
4744 if test "$gcc_cv_prog_LN_S" = "ln"; then
4745 echo "$as_me:$LINENO: result: no, using ln" >&5
4746 echo "${ECHO_T}no, using ln" >&6
4748 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4749 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4755 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_RANLIB+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$RANLIB"; then
4762 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir
=.
4769 for ac_exec_ext
in '' $ac_executable_extensions; do
4770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 RANLIB
=$ac_cv_prog_RANLIB
4781 if test -n "$RANLIB"; then
4782 echo "$as_me:$LINENO: result: $RANLIB" >&5
4783 echo "${ECHO_T}$RANLIB" >&6
4785 echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6
4790 if test -z "$ac_cv_prog_RANLIB"; then
4791 ac_ct_RANLIB
=$RANLIB
4792 # Extract the first word of "ranlib", so it can be a program name with args.
4793 set dummy ranlib
; ac_word
=$2
4794 echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4796 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 if test -n "$ac_ct_RANLIB"; then
4800 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir
=.
4807 for ac_exec_ext
in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4819 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4820 if test -n "$ac_ct_RANLIB"; then
4821 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4822 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4824 echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6
4828 RANLIB
=$ac_ct_RANLIB
4830 RANLIB
="$ac_cv_prog_RANLIB"
4833 # Find a good install program. We prefer a C program (faster),
4834 # so one script is as good as another. But avoid the broken or
4835 # incompatible versions:
4836 # SysV /etc/install, /usr/sbin/install
4837 # SunOS /usr/etc/install
4838 # IRIX /sbin/install
4840 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4841 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4842 # ./install, which can be erroneously created by make from ./install.sh.
4843 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
4844 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
4845 if test -z "$INSTALL"; then
4846 if test "${ac_cv_path_install+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
4850 for ac_dir
in $PATH; do
4851 # Account for people who put trailing slashes in PATH elements.
4853 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4855 # OSF1 and SCO ODT 3.0 have their own names for install.
4856 for ac_prog
in ginstall scoinst
install; do
4857 if test -f $ac_dir/$ac_prog; then
4858 if test $ac_prog = install &&
4859 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4860 # AIX install. It has an incompatible calling convention.
4861 # OSF/1 installbsd also uses dspmsg, but is usable.
4864 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4875 if test "${ac_cv_path_install+set}" = set; then
4876 INSTALL
="$ac_cv_path_install"
4878 # As a last resort, use the slow shell script. We don't cache a
4879 # path for INSTALL within a source directory, because that will
4880 # break other packages using the cache if that directory is
4881 # removed, or if the path is relative.
4882 INSTALL
="$ac_install_sh"
4885 echo "$as_me:$LINENO: result: $INSTALL" >&5
4886 echo "${ECHO_T}$INSTALL" >&6
4888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4889 # It thinks the first close brace ends the variable substitution.
4890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4892 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4895 # See if we have the mktemp command.
4896 # Extract the first word of "mktemp", so it can be a program name with args.
4897 set dummy mktemp
; ac_word
=$2
4898 echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 if test -n "$have_mktemp_command"; then
4904 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
4906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir
=.
4911 for ac_exec_ext
in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4913 ac_cv_prog_have_mktemp_command
="yes"
4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
4923 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
4924 if test -n "$have_mktemp_command"; then
4925 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
4926 echo "${ECHO_T}$have_mktemp_command" >&6
4928 echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4933 # Do we have a single-tree copy of texinfo?
4934 if test -f $srcdir/..
/texinfo
/Makefile.
in; then
4935 MAKEINFO
='$(objdir)/../texinfo/makeinfo/makeinfo'
4936 gcc_cv_prog_makeinfo_modern
=yes
4937 echo "$as_me:$LINENO: result: Using makeinfo from the unified source tree." >&5
4938 echo "${ECHO_T}Using makeinfo from the unified source tree." >&6
4940 # See if makeinfo has been installed and is modern enough
4941 # that we can use it.
4942 # Extract the first word of "makeinfo", so it can be a program name with args.
4943 set dummy makeinfo
; ac_word
=$2
4944 echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 if test -n "$MAKEINFO"; then
4950 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
4952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4956 test -z "$as_dir" && as_dir
=.
4957 for ac_exec_ext
in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_MAKEINFO
="makeinfo"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 MAKEINFO
=$ac_cv_prog_MAKEINFO
4969 if test -n "$MAKEINFO"; then
4970 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4971 echo "${ECHO_T}$MAKEINFO" >&6
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4977 if test -n "$MAKEINFO"; then
4978 # Found it, now check the version.
4979 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
4980 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
4981 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 ac_prog_version
=`$MAKEINFO --version 2>&1 |
4985 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4986 echo "configure:4986: version of makeinfo is $ac_prog_version" >&5
4987 case $ac_prog_version in
4988 '') gcc_cv_prog_makeinfo_modern
=no
;;
4990 gcc_cv_prog_makeinfo_modern
=yes;;
4991 *) gcc_cv_prog_makeinfo_modern
=no
;;
4995 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
4996 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
4998 gcc_cv_prog_makeinfo_modern
=no
5003 if test $gcc_cv_prog_makeinfo_modern = no
; then
5004 { echo "$as_me:$LINENO: WARNING:
5005 *** Makeinfo is missing or too old.
5006 *** Info documentation will not be built." >&5
5007 echo "$as_me: WARNING:
5008 *** Makeinfo is missing or too old.
5009 *** Info documentation will not be built." >&2;}
5015 # Is pod2man recent enough to regenerate manpages?
5016 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5017 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5018 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 GENERATED_MANPAGES
=generated-manpages
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5028 # 'make compare' can be significantly faster, if cmp itself can
5029 # skip bytes instead of using tail. The test being performed is
5030 # "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2"
5031 # but we need to sink errors and handle broken shells.
5032 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5033 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5036 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5037 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5038 make_compare_target
=slowcompare
5040 make_compare_target
=gnucompare
5043 make_compare_target
=slowcompare
5047 echo "$as_me:$LINENO: result: $make_compare_target" >&5
5048 echo "${ECHO_T}$make_compare_target" >&6
5051 if test -f $srcdir/..
/flex
/skel.c
; then
5052 FLEX
='$(objdir)/../flex/flex'
5054 # Extract the first word of "flex", so it can be a program name with args.
5055 set dummy flex
; ac_word
=$2
5056 echo "$as_me:$LINENO: checking for $ac_word" >&5
5057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5058 if test "${ac_cv_prog_FLEX+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 if test -n "$FLEX"; then
5062 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir
=.
5069 for ac_exec_ext
in '' $ac_executable_extensions; do
5070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5071 ac_cv_prog_FLEX
="flex"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex"
5081 FLEX
=$ac_cv_prog_FLEX
5082 if test -n "$FLEX"; then
5083 echo "$as_me:$LINENO: result: $FLEX" >&5
5084 echo "${ECHO_T}$FLEX" >&6
5086 echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5093 # The -L switch is so bison can find its skeleton file.
5094 if test -f $srcdir/..
/bison
/bison.simple
; then
5095 BISON
='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
5097 # Extract the first word of "bison", so it can be a program name with args.
5098 set dummy bison
; ac_word
=$2
5099 echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5101 if test "${ac_cv_prog_BISON+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 if test -n "$BISON"; then
5105 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114 ac_cv_prog_BISON
="bison"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison"
5124 BISON
=$ac_cv_prog_BISON
5125 if test -n "$BISON"; then
5126 echo "$as_me:$LINENO: result: $BISON" >&5
5127 echo "${ECHO_T}$BISON" >&6
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5135 # --------------------
5136 # Checks for C headers
5137 # --------------------
5139 echo "$as_me:$LINENO: checking for GNU C library" >&5
5140 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5141 if test "${gcc_cv_glibc+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 cat >conftest.
$ac_ext <<_ACEOF
5145 #line $LINENO "configure"
5148 cat confdefs.h
>>conftest.
$ac_ext
5149 cat >>conftest.
$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <features.h>
5156 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5157 #error Not a GNU C library system
5163 rm -f conftest.
$ac_objext
5164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5165 (eval $ac_compile) 2>&5
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } &&
5169 { ac_try
='test -s conftest.$ac_objext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.
$ac_ext >&5
5182 rm -f conftest.
$ac_objext conftest.
$ac_ext
5185 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5186 echo "${ECHO_T}$gcc_cv_glibc" >&6
5187 if test $gcc_cv_glibc = yes; then
5189 cat >>confdefs.h
<<\_ACEOF
5190 #define _GNU_SOURCE 1
5195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5197 if test "${ac_cv_header_stdc+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5204 cat confdefs.h
>>conftest.
$ac_ext
5205 cat >>conftest.
$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5220 rm -f conftest.
$ac_objext
5221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5222 (eval $ac_compile) 2>&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try
='test -s conftest.$ac_objext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 ac_cv_header_stdc
=yes
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.
$ac_ext >&5
5237 ac_cv_header_stdc
=no
5239 rm -f conftest.
$ac_objext conftest.
$ac_ext
5241 if test $ac_cv_header_stdc = yes; then
5242 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5243 cat >conftest.
$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5247 cat confdefs.h
>>conftest.
$ac_ext
5248 cat >>conftest.
$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "memchr" >/dev
/null
2>&1; then
5257 ac_cv_header_stdc
=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5265 cat >conftest.
$ac_ext <<_ACEOF
5266 #line $LINENO "configure"
5269 cat confdefs.h
>>conftest.
$ac_ext
5270 cat >>conftest.
$ac_ext <<_ACEOF
5271 /* end confdefs.h. */
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "free" >/dev
/null
2>&1; then
5279 ac_cv_header_stdc
=no
5285 if test $ac_cv_header_stdc = yes; then
5286 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5287 if test "$cross_compiling" = yes; then
5290 cat >conftest.
$ac_ext <<_ACEOF
5291 #line $LINENO "configure"
5294 cat confdefs.h
>>conftest.
$ac_ext
5295 cat >>conftest.
$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5298 #if ((' ' & 0x0FF) == 0x020)
5299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5302 # define ISLOWER(c) \
5303 (('a' <= (c) && (c) <= 'i') \
5304 || ('j' <= (c) && (c) <= 'r') \
5305 || ('s' <= (c) && (c) <= 'z'))
5306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 for (i = 0; i < 256; i++)
5315 if (XOR (islower (i), ISLOWER (i))
5316 || toupper (i) != TOUPPER (i))
5321 rm -f conftest
$ac_exeext
5322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5323 (eval $ac_link) 2>&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5334 echo "$as_me: program exited with status $ac_status" >&5
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5339 ac_cv_header_stdc
=no
5341 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5345 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5346 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5347 if test $ac_cv_header_stdc = yes; then
5349 cat >>confdefs.h
<<\_ACEOF
5350 #define STDC_HEADERS 1
5355 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5356 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5357 if test "${ac_cv_header_time+set}" = set; then
5358 echo $ECHO_N "(cached) $ECHO_C" >&6
5360 cat >conftest.
$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h
>>conftest.
$ac_ext
5365 cat >>conftest.
$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <sys/types.h>
5368 #include <sys/time.h>
5374 if ((struct tm *) 0)
5380 rm -f conftest.
$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382 (eval $ac_compile) 2>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try
='test -s conftest.$ac_objext'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; }; then
5392 ac_cv_header_time
=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.
$ac_ext >&5
5397 ac_cv_header_time
=no
5399 rm -f conftest.
$ac_objext conftest.
$ac_ext
5401 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5402 echo "${ECHO_T}$ac_cv_header_time" >&6
5403 if test $ac_cv_header_time = yes; then
5405 cat >>confdefs.h
<<\_ACEOF
5406 #define TIME_WITH_SYS_TIME 1
5411 echo "$as_me:$LINENO: checking for working stdbool.h" >&5
5412 echo $ECHO_N "checking for working stdbool.h... $ECHO_C" >&6
5413 if test "${ac_cv_header_stdbool_h+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 cat >conftest.
$ac_ext <<_ACEOF
5417 #line $LINENO "configure"
5420 cat confdefs.h
>>conftest.
$ac_ext
5421 cat >>conftest.
$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <stdbool.h>
5432 rm -f conftest.
$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434 (eval $ac_compile) 2>&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } &&
5438 { ac_try
='test -s conftest.$ac_objext'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; }; then
5444 ac_cv_header_stdbool_h
=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.
$ac_ext >&5
5449 ac_cv_header_stdbool_h
=no
5451 rm -f conftest.
$ac_objext conftest.
$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
5454 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
5455 if test $ac_cv_header_stdbool_h = yes; then
5457 cat >>confdefs.h
<<\_ACEOF
5458 #define HAVE_STDBOOL_H 1
5463 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5464 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5465 if test "${gcc_cv_header_string+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 cat >conftest.
$ac_ext <<_ACEOF
5469 #line $LINENO "configure"
5472 cat confdefs.h
>>conftest.
$ac_ext
5473 cat >>conftest.
$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5476 #include <strings.h>
5485 rm -f conftest.
$ac_objext
5486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5487 (eval $ac_compile) 2>&5
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } &&
5491 { ac_try
='test -s conftest.$ac_objext'
5492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); }; }; then
5497 gcc_cv_header_string
=yes
5499 echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.
$ac_ext >&5
5502 gcc_cv_header_string
=no
5504 rm -f conftest.
$ac_objext conftest.
$ac_ext
5506 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5507 echo "${ECHO_T}$gcc_cv_header_string" >&6
5508 if test $gcc_cv_header_string = yes; then
5510 cat >>confdefs.h
<<\_ACEOF
5511 #define STRING_WITH_STRINGS 1
5516 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5517 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5518 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 cat >conftest.
$ac_ext <<_ACEOF
5522 #line $LINENO "configure"
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <sys/types.h>
5529 #include <sys/wait.h>
5531 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5534 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5542 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5547 rm -f conftest.
$ac_objext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } &&
5553 { ac_try
='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_header_sys_wait_h
=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.
$ac_ext >&5
5564 ac_cv_header_sys_wait_h
=no
5566 rm -f conftest.
$ac_objext conftest.
$ac_ext
5568 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5569 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5570 if test $ac_cv_header_sys_wait_h = yes; then
5572 cat >>confdefs.h
<<\_ACEOF
5573 #define HAVE_SYS_WAIT_H 1
5597 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5598 fcntl.h unistd.h sys
/file.h sys
/time.h \
5599 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5600 direct.h malloc.h langinfo.h ldfcn.h wchar.h
5602 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo "$as_me:$LINENO: checking for $ac_header" >&5
5605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 # Is the header compilable?
5613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5615 cat >conftest.
$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 $ac_includes_default
5623 #include <$ac_header>
5625 rm -f conftest.
$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try
='test -s conftest.$ac_objext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_header_compiler
=yes
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.
$ac_ext >&5
5642 ac_header_compiler
=no
5644 rm -f conftest.
$ac_objext conftest.
$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6
5648 # Is the header present?
5649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5651 cat >conftest.
$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5655 cat confdefs.h
>>conftest.
$ac_ext
5656 cat >>conftest.
$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <$ac_header>
5660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev
/null
; then
5668 if test -s conftest.err
; then
5669 ac_cpp_err
=$ac_c_preproc_warn_flag
5676 if test -z "$ac_cpp_err"; then
5677 ac_header_preproc
=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.
$ac_ext >&5
5682 ac_header_preproc
=no
5684 rm -f conftest.err conftest.
$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5686 echo "${ECHO_T}$ac_header_preproc" >&6
5688 # So? What about this header?
5689 case $ac_header_compiler:$ac_header_preproc in
5691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5697 ## ------------------------------------ ##
5698 ## Report this to bug-autoconf@gnu.org. ##
5699 ## ------------------------------------ ##
5702 sed "s/^/$as_me: WARNING: /" >&2
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5713 ## ------------------------------------ ##
5714 ## Report this to bug-autoconf@gnu.org. ##
5715 ## ------------------------------------ ##
5718 sed "s/^/$as_me: WARNING: /" >&2
5721 echo "$as_me:$LINENO: checking for $ac_header" >&5
5722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 eval "$as_ac_Header=$ac_header_preproc"
5728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5733 cat >>confdefs.h
<<_ACEOF
5734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5742 # Check for thread headers.
5743 if test "${ac_cv_header_thread_h+set}" = set; then
5744 echo "$as_me:$LINENO: checking for thread.h" >&5
5745 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5746 if test "${ac_cv_header_thread_h+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5750 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5752 # Is the header compilable?
5753 echo "$as_me:$LINENO: checking thread.h usability" >&5
5754 echo $ECHO_N "checking thread.h usability... $ECHO_C" >&6
5755 cat >conftest.
$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5759 cat confdefs.h
>>conftest.
$ac_ext
5760 cat >>conftest.
$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 $ac_includes_default
5765 rm -f conftest.
$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); } &&
5771 { ac_try
='test -s conftest.$ac_objext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_header_compiler
=yes
5779 echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.
$ac_ext >&5
5782 ac_header_compiler
=no
5784 rm -f conftest.
$ac_objext conftest.
$ac_ext
5785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5786 echo "${ECHO_T}$ac_header_compiler" >&6
5788 # Is the header present?
5789 echo "$as_me:$LINENO: checking thread.h presence" >&5
5790 echo $ECHO_N "checking thread.h presence... $ECHO_C" >&6
5791 cat >conftest.
$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5795 cat confdefs.h
>>conftest.
$ac_ext
5796 cat >>conftest.
$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5801 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } >/dev
/null
; then
5808 if test -s conftest.err
; then
5809 ac_cpp_err
=$ac_c_preproc_warn_flag
5816 if test -z "$ac_cpp_err"; then
5817 ac_header_preproc
=yes
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.
$ac_ext >&5
5822 ac_header_preproc
=no
5824 rm -f conftest.err conftest.
$ac_ext
5825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5826 echo "${ECHO_T}$ac_header_preproc" >&6
5828 # So? What about this header?
5829 case $ac_header_compiler:$ac_header_preproc in
5831 { echo "$as_me:$LINENO: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5832 echo "$as_me: WARNING: thread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5833 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5834 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5837 ## ------------------------------------ ##
5838 ## Report this to bug-autoconf@gnu.org. ##
5839 ## ------------------------------------ ##
5842 sed "s/^/$as_me: WARNING: /" >&2
5845 { echo "$as_me:$LINENO: WARNING: thread.h: present but cannot be compiled" >&5
5846 echo "$as_me: WARNING: thread.h: present but cannot be compiled" >&2;}
5847 { echo "$as_me:$LINENO: WARNING: thread.h: check for missing prerequisite headers?" >&5
5848 echo "$as_me: WARNING: thread.h: check for missing prerequisite headers?" >&2;}
5849 { echo "$as_me:$LINENO: WARNING: thread.h: proceeding with the preprocessor's result" >&5
5850 echo "$as_me: WARNING: thread.h: proceeding with the preprocessor's result" >&2;}
5853 ## ------------------------------------ ##
5854 ## Report this to bug-autoconf@gnu.org. ##
5855 ## ------------------------------------ ##
5858 sed "s/^/$as_me: WARNING: /" >&2
5861 echo "$as_me:$LINENO: checking for thread.h" >&5
5862 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
5863 if test "${ac_cv_header_thread_h+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_header_thread_h
=$ac_header_preproc
5868 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
5869 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
5872 if test $ac_cv_header_thread_h = yes; then
5879 if test "${ac_cv_header_pthread_h+set}" = set; then
5880 echo "$as_me:$LINENO: checking for pthread.h" >&5
5881 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5882 if test "${ac_cv_header_pthread_h+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5886 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5888 # Is the header compilable?
5889 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5890 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5891 cat >conftest.
$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <pthread.h>
5901 rm -f conftest.
$ac_objext
5902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5903 (eval $ac_compile) 2>&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try
='test -s conftest.$ac_objext'
5908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; }; then
5913 ac_header_compiler
=yes
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.
$ac_ext >&5
5918 ac_header_compiler
=no
5920 rm -f conftest.
$ac_objext conftest.
$ac_ext
5921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5922 echo "${ECHO_T}$ac_header_compiler" >&6
5924 # Is the header present?
5925 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5926 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5927 cat >conftest.
$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5931 cat confdefs.h
>>conftest.
$ac_ext
5932 cat >>conftest.
$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <pthread.h>
5936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5937 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5939 grep -v '^ *+' conftest.er1
>conftest.err
5941 cat conftest.err
>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } >/dev
/null
; then
5944 if test -s conftest.err
; then
5945 ac_cpp_err
=$ac_c_preproc_warn_flag
5952 if test -z "$ac_cpp_err"; then
5953 ac_header_preproc
=yes
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_header_preproc
=no
5960 rm -f conftest.err conftest.
$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5962 echo "${ECHO_T}$ac_header_preproc" >&6
5964 # So? What about this header?
5965 case $ac_header_compiler:$ac_header_preproc in
5967 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5968 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5969 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5970 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5973 ## ------------------------------------ ##
5974 ## Report this to bug-autoconf@gnu.org. ##
5975 ## ------------------------------------ ##
5978 sed "s/^/$as_me: WARNING: /" >&2
5981 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5982 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
5984 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5986 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5989 ## ------------------------------------ ##
5990 ## Report this to bug-autoconf@gnu.org. ##
5991 ## ------------------------------------ ##
5994 sed "s/^/$as_me: WARNING: /" >&2
5997 echo "$as_me:$LINENO: checking for pthread.h" >&5
5998 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5999 if test "${ac_cv_header_pthread_h+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6002 ac_cv_header_pthread_h
=$ac_header_preproc
6004 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6005 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6008 if test $ac_cv_header_pthread_h = yes; then
6016 # These tests can't be done till we know if we have limits.h.
6017 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6018 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6019 if test "${gcc_cv_decl_char_bit+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 cat >conftest.
$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6026 cat confdefs.h
>>conftest.
$ac_ext
6027 cat >>conftest.
$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #ifdef HAVE_LIMITS_H
6036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6037 $EGREP "found" >/dev
/null
2>&1; then
6038 gcc_cv_decl_char_bit
=yes
6040 gcc_cv_decl_char_bit
=no
6046 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6047 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6048 if test $gcc_cv_decl_char_bit = no
; then
6049 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6050 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6051 if test "${gcc_cv_c_nbby+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 while test $i -lt 65; do
6057 cat >conftest.
$ac_ext <<_ACEOF
6058 #line $LINENO "configure"
6061 cat confdefs.h
>>conftest.
$ac_ext
6062 cat >>conftest.
$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6069 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6070 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6076 rm -f conftest.
$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try
='test -s conftest.$ac_objext'
6083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
6088 gcc_cv_c_nbby
=$i; break
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.
$ac_ext >&5
6094 rm -f conftest.
$ac_objext conftest.
$ac_ext
6097 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6100 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6101 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6102 if test $gcc_cv_c_nbby = failed
; then
6103 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6104 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6105 { (exit 1); exit 1; }; }
6108 cat >>confdefs.h
<<_ACEOF
6109 #define CHAR_BIT $gcc_cv_c_nbby
6114 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6115 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6116 if test "${ac_cv_c_bigendian+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_cv_c_bigendian
=unknown
6120 # See if sys/param.h defines the BYTE_ORDER macro.
6121 cat >conftest.
$ac_ext <<_ACEOF
6122 #line $LINENO "configure"
6125 cat confdefs.h
>>conftest.
$ac_ext
6126 cat >>conftest.
$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 #include <sys/param.h>
6134 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6141 rm -f conftest.
$ac_objext
6142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6143 (eval $ac_compile) 2>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try
='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 # It does; now see whether it defined to BIG_ENDIAN or not.
6154 cat >conftest.
$ac_ext <<_ACEOF
6155 #line $LINENO "configure"
6158 cat confdefs.h
>>conftest.
$ac_ext
6159 cat >>conftest.
$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <sys/types.h>
6162 #include <sys/param.h>
6167 #if BYTE_ORDER != BIG_ENDIAN
6174 rm -f conftest.
$ac_objext
6175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6176 (eval $ac_compile) 2>&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try
='test -s conftest.$ac_objext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_c_bigendian
=yes
6188 echo "$as_me: failed program was:" >&5
6189 sed 's/^/| /' conftest.
$ac_ext >&5
6191 ac_cv_c_bigendian
=no
6193 rm -f conftest.
$ac_objext conftest.
$ac_ext
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.
$ac_ext >&5
6199 rm -f conftest.
$ac_objext conftest.
$ac_ext
6200 if test $ac_cv_c_bigendian = unknown
; then
6201 if test "$cross_compiling" = yes; then
6202 echo $ac_n "cross-compiling... " 2>&6
6204 cat >conftest.
$ac_ext <<_ACEOF
6205 #line $LINENO "configure"
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6212 /* Are we little or big endian? From Harbison&Steele. */
6216 char c[sizeof (long)];
6219 exit (u.c[sizeof (long) - 1] == 1);
6222 rm -f conftest
$ac_exeext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; }; then
6233 ac_cv_c_bigendian
=no
6235 echo "$as_me: program exited with status $ac_status" >&5
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.
$ac_ext >&5
6240 ac_cv_c_bigendian
=yes
6242 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6247 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6248 if test $ac_cv_c_bigendian = unknown
; then
6249 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6250 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6252 cat >conftest.c
<<EOF
6253 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6254 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6255 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6256 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6257 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6258 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6259 int main() { _ascii (); _ebcdic (); return 0; }
6261 if test -f conftest.c
; then
6262 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
6263 if test `grep -l BIGenDianSyS conftest.o` ; then
6264 echo $ac_n ' big endian probe OK, ' 1>&6
6265 ac_cv_c_bigendian
=yes
6267 if test `grep -l LiTTleEnDian conftest.o` ; then
6268 echo $ac_n ' little endian probe OK, ' 1>&6
6269 if test $ac_cv_c_bigendian = yes ; then
6270 ac_cv_c_bigendian
=unknown
;
6272 ac_cv_c_bigendian
=no
6275 echo $ac_n 'guessing bigendian ... ' >&6
6278 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6279 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6281 if test $ac_cv_c_bigendian = yes; then
6283 cat >>confdefs.h
<<\_ACEOF
6284 #define WORDS_BIGENDIAN 1
6288 cat >>confdefs.h
<<\_ACEOF
6289 #define HOST_WORDS_BIG_ENDIAN 1
6297 cat >>confdefs.h
<<_ACEOF
6298 #define BYTEORDER $BYTEORDER
6301 if test $ac_cv_c_bigendian = unknown
; then
6302 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
6303 echo "$as_me: error: unknown endianess - sorry" >&2;}
6304 { (exit please pre-set ac_cv_c_bigendian
); exit please pre-set ac_cv_c_bigendian
; }; }
6312 # Stage specific cflags for build.
6316 if test x
$GCC = xyes
6318 stage1_cflags
="-Wa,-J"
6324 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6325 # sources; use -no-cpp-precomp to get to GNU cpp.
6326 # Apple's GCC has bugs in designated initializer handling, so disable
6328 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6333 # These libraries may be used by collect2.
6334 # We may need a special search path to get them linked.
6335 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6336 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6337 if test "${gcc_cv_collect2_libs+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 for libs
in '' -lld -lmld \
6342 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6343 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6346 cat >conftest.
$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6350 cat confdefs.h
>>conftest.
$ac_ext
6351 cat >>conftest.
$ac_ext <<_ACEOF
6352 /* end confdefs.h. */
6354 /* Override any gcc2 internal prototype to avoid an error. */
6358 /* We use char because int might match the return type of a gcc2
6359 builtin and then its argument prototype would still apply. */
6369 rm -f conftest.
$ac_objext conftest
$ac_exeext
6370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>&5
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } &&
6375 { ac_try
='test -s conftest$ac_exeext'
6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); }; }; then
6381 gcc_cv_collect2_libs
="$libs"; break
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.
$ac_ext >&5
6387 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6390 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6392 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6393 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6394 case $gcc_cv_collect2_libs in
6396 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6400 # When building Ada code on Alpha, we need exc_resume which is usually in
6401 # -lexc. So test for it.
6404 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6405 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6406 if test "${ac_cv_search_exc_resume+set}" = set; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 ac_func_search_save_LIBS
=$LIBS
6410 ac_cv_search_exc_resume
=no
6411 cat >conftest.
$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6415 cat confdefs.h
>>conftest.
$ac_ext
6416 cat >>conftest.
$ac_ext <<_ACEOF
6417 /* end confdefs.h. */
6419 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6434 rm -f conftest.
$ac_objext conftest
$ac_exeext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try
='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_cv_search_exc_resume
="none required"
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.
$ac_ext >&5
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6453 if test "$ac_cv_search_exc_resume" = no
; then
6454 for ac_lib
in exc
; do
6455 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6456 cat >conftest.
$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6464 /* Override any gcc2 internal prototype to avoid an error. */
6468 /* We use char because int might match the return type of a gcc2
6469 builtin and then its argument prototype would still apply. */
6479 rm -f conftest.
$ac_objext conftest
$ac_exeext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6481 (eval $ac_link) 2>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -s conftest$ac_exeext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_search_exc_resume
="-l$ac_lib"
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.
$ac_ext >&5
6498 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6501 LIBS
=$ac_func_search_save_LIBS
6503 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6504 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6505 if test "$ac_cv_search_exc_resume" != no
; then
6506 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6514 # Some systems put ldexp and frexp in libm instead of libc; assume
6515 # they're both in the same place. jcf-dump needs them.
6518 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6519 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6520 if test "${ac_cv_search_ldexp+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 ac_func_search_save_LIBS
=$LIBS
6524 ac_cv_search_ldexp
=no
6525 cat >conftest.
$ac_ext <<_ACEOF
6526 #line $LINENO "configure"
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6533 /* Override any gcc2 internal prototype to avoid an error. */
6537 /* We use char because int might match the return type of a gcc2
6538 builtin and then its argument prototype would still apply. */
6548 rm -f conftest.
$ac_objext conftest
$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } &&
6554 { ac_try
='test -s conftest$ac_exeext'
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 ac_cv_search_ldexp
="none required"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6566 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6567 if test "$ac_cv_search_ldexp" = no
; then
6569 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6570 cat >conftest.
$ac_ext <<_ACEOF
6571 #line $LINENO "configure"
6574 cat confdefs.h
>>conftest.
$ac_ext
6575 cat >>conftest.
$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6593 rm -f conftest.
$ac_objext conftest
$ac_exeext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595 (eval $ac_link) 2>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try
='test -s conftest$ac_exeext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_search_ldexp
="-l$ac_lib"
6608 echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.
$ac_ext >&5
6612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6615 LIBS
=$ac_func_search_save_LIBS
6617 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6618 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6619 if test "$ac_cv_search_ldexp" != no
; then
6620 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6628 # See if the stage1 system preprocessor understands the ANSI C
6629 # preprocessor stringification operator. (Used by symcat.h.)
6630 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
6631 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
6632 if test "${ac_cv_c_stringize+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 cat >conftest.
$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6639 cat confdefs.h
>>conftest.
$ac_ext
6640 cat >>conftest.
$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6644 char *s = x(teststring);
6646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6647 $EGREP "#teststring" >/dev
/null
2>&1; then
6648 ac_cv_c_stringize
=no
6650 ac_cv_c_stringize
=yes
6655 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
6656 echo "${ECHO_T}$ac_cv_c_stringize" >&6
6657 if test $ac_cv_c_stringize = yes; then
6659 cat >>confdefs.h
<<\_ACEOF
6660 #define HAVE_STRINGIZE 1
6666 # Use <inttypes.h> only if it exists,
6667 # doesn't clash with <sys/types.h>, and declares intmax_t.
6668 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6669 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6670 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 cat >conftest.
$ac_ext <<_ACEOF
6674 #line $LINENO "configure"
6677 cat confdefs.h
>>conftest.
$ac_ext
6678 cat >>conftest.
$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <inttypes.h>
6690 rm -f conftest.
$ac_objext
6691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6692 (eval $ac_compile) 2>&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try
='test -s conftest.$ac_objext'
6697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); }; }; then
6702 gcc_cv_header_inttypes_h
=yes
6704 echo "$as_me: failed program was:" >&5
6705 sed 's/^/| /' conftest.
$ac_ext >&5
6707 gcc_cv_header_inttypes_h
=no
6709 rm -f conftest.
$ac_objext conftest.
$ac_ext
6712 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6713 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6714 if test $gcc_cv_header_inttypes_h = yes; then
6716 cat >>confdefs.h
<<\_ACEOF
6717 #define HAVE_INTTYPES_H 1
6746 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6747 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6748 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \
6749 scandir alphasort gettimeofday mbstowcs wcswidth
6751 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6752 echo "$as_me:$LINENO: checking for $ac_func" >&5
6753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6754 if eval "test \"\${$as_ac_var+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 cat >conftest.
$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6761 cat confdefs.h
>>conftest.
$ac_ext
6762 cat >>conftest.
$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764 /* System header to define __stub macros and hopefully few prototypes,
6765 which can conflict with char $ac_func (); below.
6766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6767 <limits.h> exists even on freestanding compilers. */
6769 # include <limits.h>
6771 # include <assert.h>
6773 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6787 char (*f) () = $ac_func;
6796 return f != $ac_func;
6801 rm -f conftest.
$ac_objext conftest
$ac_exeext
6802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6803 (eval $ac_link) 2>&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); } &&
6807 { ac_try
='test -s conftest$ac_exeext'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 eval "$as_ac_var=yes"
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.
$ac_ext >&5
6818 eval "$as_ac_var=no"
6820 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6824 if test `eval echo '${'$as_ac_var'}'` = yes; then
6825 cat >>confdefs.h
<<_ACEOF
6826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6833 if test x
$ac_cv_func_mbstowcs = xyes
; then
6834 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6835 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6836 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 if test "$cross_compiling" = yes; then
6840 gcc_cv_func_mbstowcs_works
=yes
6842 cat >conftest.
$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6846 cat confdefs.h
>>conftest.
$ac_ext
6847 cat >>conftest.
$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6856 rm -f conftest
$ac_exeext
6857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6858 (eval $ac_link) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; }; then
6867 gcc_cv_func_mbstowcs_works
=yes
6869 echo "$as_me: program exited with status $ac_status" >&5
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.
$ac_ext >&5
6874 gcc_cv_func_mbstowcs_works
=no
6876 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6879 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
6880 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
6881 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
6883 cat >>confdefs.h
<<\_ACEOF
6884 #define HAVE_WORKING_MBSTOWCS 1
6890 echo "$as_me:$LINENO: checking for ssize_t" >&5
6891 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6892 if test "${ac_cv_type_ssize_t+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 cat >conftest.
$ac_ext <<_ACEOF
6896 #line $LINENO "configure"
6899 cat confdefs.h
>>conftest.
$ac_ext
6900 cat >>conftest.
$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 $ac_includes_default
6908 if (sizeof (ssize_t))
6914 rm -f conftest.
$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try
='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_type_ssize_t
=yes
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.
$ac_ext >&5
6931 ac_cv_type_ssize_t
=no
6933 rm -f conftest.
$ac_objext conftest.
$ac_ext
6935 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
6936 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6937 if test $ac_cv_type_ssize_t = yes; then
6941 cat >>confdefs.h
<<_ACEOF
6948 # Try to determine the array type of the second argument of getgroups
6949 # for the target system (int or gid_t).
6950 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6951 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6952 if test "${ac_cv_type_uid_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.
$ac_ext <<_ACEOF
6956 #line $LINENO "configure"
6959 cat confdefs.h
>>conftest.
$ac_ext
6960 cat >>conftest.
$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <sys/types.h>
6965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6966 $EGREP "uid_t" >/dev
/null
2>&1; then
6967 ac_cv_type_uid_t
=yes
6974 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6975 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6976 if test $ac_cv_type_uid_t = no
; then
6978 cat >>confdefs.h
<<\_ACEOF
6983 cat >>confdefs.h
<<\_ACEOF
6989 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6990 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6991 if test "${ac_cv_type_getgroups+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 if test "$cross_compiling" = yes; then
6995 ac_cv_type_getgroups
=cross
6997 cat >conftest.
$ac_ext <<_ACEOF
6998 #line $LINENO "configure"
7001 cat confdefs.h
>>conftest.
$ac_ext
7002 cat >>conftest.
$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7004 /* Thanks to Mike Rendell for this test. */
7005 #include <sys/types.h>
7008 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7015 union { gid_t gval; long lval; } val;
7018 for (i = 0; i < NGID; i++)
7019 gidset[i] = val.gval;
7020 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7022 /* Exit non-zero if getgroups seems to require an array of ints. This
7023 happens when gid_t is short but getgroups modifies an array of ints. */
7024 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7027 rm -f conftest
$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_type_getgroups
=gid_t
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.
$ac_ext >&5
7045 ac_cv_type_getgroups
=int
7047 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7049 if test $ac_cv_type_getgroups = cross
; then
7050 cat >conftest.
$ac_ext <<_ACEOF
7051 #line $LINENO "configure"
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7062 ac_cv_type_getgroups
=gid_t
7064 ac_cv_type_getgroups
=int
7070 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7071 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7073 cat >>confdefs.h
<<_ACEOF
7074 #define GETGROUPS_T $ac_cv_type_getgroups
7078 if test "${target}" = "${build}"; then
7079 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7082 # This condition may need some tweaking. It should include all
7083 # targets where the array type of the second argument of getgroups
7084 # is int and the type of gid_t is not equivalent to int.
7085 *-*-sunos* |
*-*-ultrix*)
7086 TARGET_GETGROUPS_T
=int
7089 TARGET_GETGROUPS_T
=gid_t
7095 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7096 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7097 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 if test "$cross_compiling" = yes; then
7101 gcc_cv_func_printf_ptr
=no
7103 cat >conftest.
$ac_ext <<_ACEOF
7104 #line $LINENO "configure"
7107 cat confdefs.h
>>conftest.
$ac_ext
7108 cat >>conftest.
$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7115 char *p = buf, *q = NULL;
7116 sprintf(buf, "%p", p);
7117 sscanf(buf, "%p", &q);
7121 rm -f conftest
$ac_exeext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 gcc_cv_func_printf_ptr
=yes
7134 echo "$as_me: program exited with status $ac_status" >&5
7135 echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.
$ac_ext >&5
7139 gcc_cv_func_printf_ptr
=no
7141 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7143 rm -f core core.
* *.core
7145 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7146 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7147 if test $gcc_cv_func_printf_ptr = yes ; then
7149 cat >>confdefs.h
<<\_ACEOF
7150 #define HAVE_PRINTF_PTR 1
7158 { { echo "$as_me:$LINENO: error:
7159 *** UWIN may not be used as a host platform because
7160 *** linking with posix.dll is not allowed by the GNU GPL" >&5
7161 echo "$as_me: error:
7162 *** UWIN may not be used as a host platform because
7163 *** linking with posix.dll is not allowed by the GNU GPL" >&2;}
7164 { (exit 1); exit 1; }; }
7167 # Under VMS, vfork works very different than on Unix. The standard test
7168 # won't work, and it isn't easily adaptable. It makes more sense to
7170 ac_cv_func_vfork_works
=yes
7173 echo "$as_me:$LINENO: checking for pid_t" >&5
7174 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7175 if test "${ac_cv_type_pid_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.
$ac_ext <<_ACEOF
7179 #line $LINENO "configure"
7182 cat confdefs.h
>>conftest.
$ac_ext
7183 cat >>conftest.
$ac_ext <<_ACEOF
7184 /* end confdefs.h. */
7185 $ac_includes_default
7197 rm -f conftest.
$ac_objext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199 (eval $ac_compile) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try
='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_type_pid_t
=yes
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.
$ac_ext >&5
7216 rm -f conftest.
$ac_objext conftest.
$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7219 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7220 if test $ac_cv_type_pid_t = yes; then
7224 cat >>confdefs.h
<<_ACEOF
7232 for ac_header
in unistd.h vfork.h
7234 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236 echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244 # Is the header compilable?
7245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7247 cat >conftest.
$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7251 cat confdefs.h
>>conftest.
$ac_ext
7252 cat >>conftest.
$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 #include <$ac_header>
7257 rm -f conftest.
$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try
='test -s conftest.$ac_objext'
7264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 ac_header_compiler
=yes
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.
$ac_ext >&5
7274 ac_header_compiler
=no
7276 rm -f conftest.
$ac_objext conftest.
$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7283 cat >conftest.
$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7287 cat confdefs.h
>>conftest.
$ac_ext
7288 cat >>conftest.
$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #include <$ac_header>
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7295 grep -v '^ *+' conftest.er1
>conftest.err
7297 cat conftest.err
>&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } >/dev
/null
; then
7300 if test -s conftest.err
; then
7301 ac_cpp_err
=$ac_c_preproc_warn_flag
7308 if test -z "$ac_cpp_err"; then
7309 ac_header_preproc
=yes
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7314 ac_header_preproc
=no
7316 rm -f conftest.err conftest.
$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7320 # So? What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7329 ## ------------------------------------ ##
7330 ## Report this to bug-autoconf@gnu.org. ##
7331 ## ------------------------------------ ##
7334 sed "s/^/$as_me: WARNING: /" >&2
7337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7345 ## ------------------------------------ ##
7346 ## Report this to bug-autoconf@gnu.org. ##
7347 ## ------------------------------------ ##
7350 sed "s/^/$as_me: WARNING: /" >&2
7353 echo "$as_me:$LINENO: checking for $ac_header" >&5
7354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 eval "$as_ac_Header=$ac_header_preproc"
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7365 cat >>confdefs.h
<<_ACEOF
7366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7375 for ac_func
in fork vfork
7377 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7378 echo "$as_me:$LINENO: checking for $ac_func" >&5
7379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7380 if eval "test \"\${$as_ac_var+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 cat >conftest.
$ac_ext <<_ACEOF
7384 #line $LINENO "configure"
7387 cat confdefs.h
>>conftest.
$ac_ext
7388 cat >>conftest.
$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 /* System header to define __stub macros and hopefully few prototypes,
7391 which can conflict with char $ac_func (); below.
7392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7393 <limits.h> exists even on freestanding compilers. */
7395 # include <limits.h>
7397 # include <assert.h>
7399 /* Override any gcc2 internal prototype to avoid an error. */
7404 /* We use char because int might match the return type of a gcc2
7405 builtin and then its argument prototype would still apply. */
7407 /* The GNU C library defines this for functions which it implements
7408 to always fail with ENOSYS. Some functions are actually named
7409 something starting with __ and the normal name is an alias. */
7410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7413 char (*f) () = $ac_func;
7422 return f != $ac_func;
7427 rm -f conftest.
$ac_objext conftest
$ac_exeext
7428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7429 (eval $ac_link) 2>&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try
='test -s conftest$ac_exeext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7439 eval "$as_ac_var=yes"
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.
$ac_ext >&5
7444 eval "$as_ac_var=no"
7446 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7450 if test `eval echo '${'$as_ac_var'}'` = yes; then
7451 cat >>confdefs.h
<<_ACEOF
7452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7458 if test "x$ac_cv_func_fork" = xyes
; then
7459 echo "$as_me:$LINENO: checking for working fork" >&5
7460 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7461 if test "${ac_cv_func_fork_works+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 if test "$cross_compiling" = yes; then
7465 ac_cv_func_fork_works
=cross
7467 cat >conftest.
$ac_ext <<_ACEOF
7468 /* By Ruediger Kuhlmann. */
7469 #include <sys/types.h>
7471 # include <unistd.h>
7473 /* Some systems only have a dummy stub for fork() */
7481 rm -f conftest
$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>&5
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 ac_cv_func_fork_works
=yes
7494 echo "$as_me: program exited with status $ac_status" >&5
7495 echo "$as_me: failed program was:" >&5
7496 sed 's/^/| /' conftest.
$ac_ext >&5
7499 ac_cv_func_fork_works
=no
7501 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7504 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7505 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7508 ac_cv_func_fork_works
=$ac_cv_func_fork
7510 if test "x$ac_cv_func_fork_works" = xcross
; then
7512 *-*-amigaos* |
*-*-msdosdjgpp*)
7513 # Override, as these systems have only a dummy fork() stub
7514 ac_cv_func_fork_works
=no
7517 ac_cv_func_fork_works
=yes
7520 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7521 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7523 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7524 if test "x$ac_cv_func_vfork" = xyes
; then
7525 echo "$as_me:$LINENO: checking for working vfork" >&5
7526 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7527 if test "${ac_cv_func_vfork_works+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 if test "$cross_compiling" = yes; then
7531 ac_cv_func_vfork_works
=cross
7533 cat >conftest.
$ac_ext <<_ACEOF
7534 #line $LINENO "configure"
7537 cat confdefs.h
>>conftest.
$ac_ext
7538 cat >>conftest.
$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 /* Thanks to Paul Eggert for this test. */
7543 #include <sys/types.h>
7544 #include <sys/stat.h>
7545 #include <sys/wait.h>
7547 # include <unistd.h>
7552 /* On some sparc systems, changes by the child to local and incoming
7553 argument registers are propagated back to the parent. The compiler
7554 is told about this with #include <vfork.h>, but some compilers
7555 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7556 static variable whose address is put into a register that is
7557 clobbered by the vfork. */
7560 sparc_address_test (int arg)
7562 sparc_address_test (arg) int arg;
7583 pid_t parent = getpid ();
7586 sparc_address_test (0);
7591 /* Here is another test for sparc vfork register problems. This
7592 test uses lots of local variables, at least as many local
7593 variables as main has allocated so far including compiler
7594 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7595 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7596 reuse the register of parent for one of the local variables,
7597 since it will think that parent can't possibly be used any more
7598 in this routine. Assigning to the local variable will thus
7599 munge parent in the parent process. */
7601 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7602 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7603 /* Convince the compiler that p..p7 are live; otherwise, it might
7604 use the same hardware register for all 8 local variables. */
7605 if (p != p1 || p != p2 || p != p3 || p != p4
7606 || p != p5 || p != p6 || p != p7)
7609 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7610 from child file descriptors. If the child closes a descriptor
7611 before it execs or exits, this munges the parent's descriptor
7612 as well. Test for this by closing stdout in the child. */
7613 _exit(close(fileno(stdout)) != 0);
7618 while (wait(&status) != child)
7621 /* Was there some problem with vforking? */
7624 /* Did the child fail? (This shouldn't happen.) */
7627 /* Did the vfork/compiler bug occur? */
7628 || parent != getpid()
7630 /* Did the file descriptor bug occur? */
7631 || fstat(fileno(stdout), &st) != 0
7636 rm -f conftest
$ac_exeext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7638 (eval $ac_link) 2>&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 ac_cv_func_vfork_works
=yes
7649 echo "$as_me: program exited with status $ac_status" >&5
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7654 ac_cv_func_vfork_works
=no
7656 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7659 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7660 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
7663 if test "x$ac_cv_func_fork_works" = xcross
; then
7664 ac_cv_func_vfork_works
=ac_cv_func_vfork
7665 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7666 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7669 if test "x$ac_cv_func_vfork_works" = xyes
; then
7671 cat >>confdefs.h
<<\_ACEOF
7672 #define HAVE_WORKING_VFORK 1
7677 cat >>confdefs.h
<<\_ACEOF
7682 if test "x$ac_cv_func_fork_works" = xyes
; then
7684 cat >>confdefs.h
<<\_ACEOF
7685 #define HAVE_WORKING_FORK 1
7691 for ac_func
in getpagesize
7693 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7694 echo "$as_me:$LINENO: checking for $ac_func" >&5
7695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7696 if eval "test \"\${$as_ac_var+set}\" = set"; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 cat >conftest.
$ac_ext <<_ACEOF
7700 #line $LINENO "configure"
7703 cat confdefs.h
>>conftest.
$ac_ext
7704 cat >>conftest.
$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7706 /* System header to define __stub macros and hopefully few prototypes,
7707 which can conflict with char $ac_func (); below.
7708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7709 <limits.h> exists even on freestanding compilers. */
7711 # include <limits.h>
7713 # include <assert.h>
7715 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7723 /* The GNU C library defines this for functions which it implements
7724 to always fail with ENOSYS. Some functions are actually named
7725 something starting with __ and the normal name is an alias. */
7726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7729 char (*f) () = $ac_func;
7738 return f != $ac_func;
7743 rm -f conftest.
$ac_objext conftest
$ac_exeext
7744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7745 (eval $ac_link) 2>&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
7749 { ac_try
='test -s conftest$ac_exeext'
7750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754 (exit $ac_status); }; }; then
7755 eval "$as_ac_var=yes"
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.
$ac_ext >&5
7760 eval "$as_ac_var=no"
7762 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7766 if test `eval echo '${'$as_ac_var'}'` = yes; then
7767 cat >>confdefs.h
<<_ACEOF
7768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7774 # The test program for the next two tests is the same except for one
7776 cat >ct-mmap.inc
<<'EOF'
7777 #include <sys/types.h>
7778 #include <sys/mman.h>
7784 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)
7785 # define MAP_ANONYMOUS MAP_ANON
7788 /* This mess was copied from the GNU getpagesize.h. */
7789 #ifndef HAVE_GETPAGESIZE
7790 # ifdef HAVE_UNISTD_H
7791 # include <unistd.h>
7794 /* Assume that all systems that can run configure have sys/param.h. */
7795 # ifndef HAVE_SYS_PARAM_H
7796 # define HAVE_SYS_PARAM_H 1
7799 # ifdef _SC_PAGESIZE
7800 # define getpagesize() sysconf(_SC_PAGESIZE)
7801 # else /* no _SC_PAGESIZE */
7802 # ifdef HAVE_SYS_PARAM_H
7803 # include <sys/param.h>
7804 # ifdef EXEC_PAGESIZE
7805 # define getpagesize() EXEC_PAGESIZE
7806 # else /* no EXEC_PAGESIZE */
7808 # define getpagesize() NBPG * CLSIZE
7811 # endif /* no CLSIZE */
7812 # else /* no NBPG */
7814 # define getpagesize() NBPC
7815 # else /* no NBPC */
7817 # define getpagesize() PAGESIZE
7818 # endif /* PAGESIZE */
7819 # endif /* no NBPC */
7820 # endif /* no NBPG */
7821 # endif /* no EXEC_PAGESIZE */
7822 # else /* no HAVE_SYS_PARAM_H */
7823 # define getpagesize() 8192 /* punt totally */
7824 # endif /* no HAVE_SYS_PARAM_H */
7825 # endif /* no _SC_PAGESIZE */
7827 #endif /* no HAVE_GETPAGESIZE */
7830 # define MAP_FAILED -1
7834 #define perror_exit(str, val) \
7835 do { perror(str); exit(val); } while (0)
7837 /* Some versions of cygwin mmap require that munmap is called with the
7838 same parameters as mmap. GCC expects that this is not the case.
7839 Test for various forms of this problem. Warning - icky signal games. */
7841 static sigset_t unblock_sigsegv;
7851 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
7852 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
7854 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,
7855 MAP_PRIVATE, devzero, 0);
7863 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);
7867 /* Basic functionality test. */
7871 char *x = anonmap (pg);
7872 if (x == (char *) MAP_FAILED)
7873 perror_exit("test 0 mmap", 2);
7877 if (munmap(x, pg) < 0)
7878 perror_exit("test 0 munmap", 3);
7881 /* 1. If we map a 2-page region and unmap its second page, the first page
7886 char *x = anonmap (pg * 2);
7887 if (x == (char *)MAP_FAILED)
7888 perror_exit ("test 1 mmap", 4);
7890 signal (SIGSEGV, sigsegv);
7892 perror_exit ("test 1 fault", 5);
7897 if (munmap (x + pg, pg) < 0)
7898 perror_exit ("test 1 munmap 1", 6);
7901 if (setjmp (r) == 0)
7904 perror_exit ("test 1 no fault", 7);
7906 if (munmap (x, pg) < 0)
7907 perror_exit ("test 1 munmap 2", 8);
7910 /* 2. If we map a 2-page region and unmap its first page, the second
7911 page must remain. */
7915 char *x = anonmap (pg * 2);
7916 if (x == (char *)MAP_FAILED)
7917 perror_exit ("test 2 mmap", 9);
7919 signal (SIGSEGV, sigsegv);
7921 perror_exit ("test 2 fault", 10);
7926 if (munmap (x, pg) < 0)
7927 perror_exit ("test 2 munmap 1", 11);
7931 if (setjmp (r) == 0)
7934 perror_exit ("test 2 no fault", 12);
7937 if (munmap (x+pg, pg) < 0)
7938 perror_exit ("test 2 munmap 2", 13);
7941 /* 3. If we map two adjacent 1-page regions and unmap them both with
7942 one munmap, both must go away.
7944 Getting two adjacent 1-page regions with two mmap calls is slightly
7945 tricky. All OS's tested skip over already-allocated blocks; therefore
7946 we have been careful to unmap all allocated regions in previous tests.
7947 HP/UX allocates pages backward in memory. No OS has yet been observed
7948 to be so perverse as to leave unmapped space between consecutive calls
7957 if (x == (char *)MAP_FAILED)
7958 perror_exit ("test 3 mmap 1", 14);
7960 if (y == (char *)MAP_FAILED)
7961 perror_exit ("test 3 mmap 2", 15);
7966 z = y, y = x, x = z;
7969 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",
7970 (unsigned long)x, (unsigned long)y);
7975 signal (SIGSEGV, sigsegv);
7977 perror_exit ("test 3 fault", 17);
7982 if (munmap (x, pg*2) < 0)
7983 perror_exit ("test 3 munmap", 18);
7985 if (setjmp (r) == 0)
7988 perror_exit ("test 3 no fault 1", 19);
7991 signal (SIGSEGV, sigsegv);
7992 if (setjmp (r) == 0)
7995 perror_exit ("test 3 no fault 2", 20);
8002 sigemptyset (&unblock_sigsegv);
8003 sigaddset (&unblock_sigsegv, SIGSEGV);
8004 pg = getpagesize ();
8005 #ifndef USE_MAP_ANON
8006 devzero = open ("/dev/zero", O_RDWR);
8008 perror_exit ("open /dev/zero", 1);
8020 echo "$as_me:$LINENO: checking for working mmap from /dev/zero" >&5
8021 echo $ECHO_N "checking for working mmap from /dev/zero... $ECHO_C" >&6
8022 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 if test "$cross_compiling" = yes; then
8026 # When cross-building, assume that this works, unless we know it
8027 # doesn't. Of course, we have no way of knowing if there even is a /dev/zero
8028 # on the host, let alone whether mmap will work on it.
8030 cygwin
* | win32 | pe | mingw
* ) ac_cv_func_mmap_dev_zero
=buggy
;;
8031 darwin
* ) ac_cv_func_mmap_dev_zero
=no
;;
8032 * ) ac_cv_func_mmap_dev_zero
=yes ;;
8035 cat >conftest.
$ac_ext <<_ACEOF
8036 #line $LINENO "configure"
8039 cat confdefs.h
>>conftest.
$ac_ext
8040 cat >>conftest.
$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include "ct-mmap.inc"
8044 rm -f conftest
$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 ac_cv_func_mmap_dev_zero
=yes
8057 echo "$as_me: program exited with status $ac_status" >&5
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.
$ac_ext >&5
8063 then ac_cv_func_mmap_dev_zero
=no
8064 else ac_cv_func_mmap_dev_zero
=buggy
8067 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8071 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
8072 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
8073 if test $ac_cv_func_mmap_dev_zero = yes; then
8075 cat >>confdefs.h
<<\_ACEOF
8076 #define HAVE_MMAP_DEV_ZERO 1
8081 echo "$as_me:$LINENO: checking for working mmap with MAP_ANON(YMOUS)" >&5
8082 echo $ECHO_N "checking for working mmap with MAP_ANON(YMOUS)... $ECHO_C" >&6
8083 if test "${ac_cv_func_mmap_anon+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 if test "$cross_compiling" = yes; then
8087 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works
8088 # just because it's there. Some SCO Un*xen define it but don't implement it.
8090 darwin
* ) ac_cv_func_mmap_anon
=yes ;;
8091 * ) ac_cv_func_mmap_anon
=no
;;
8094 cat >conftest.
$ac_ext <<_ACEOF
8095 #line $LINENO "configure"
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #define USE_MAP_ANON
8102 #include "ct-mmap.inc"
8104 rm -f conftest
$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && { ac_try
='./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
8115 ac_cv_func_mmap_anon
=yes
8117 echo "$as_me: program exited with status $ac_status" >&5
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.
$ac_ext >&5
8123 then ac_cv_func_mmap_anon
=no
8124 else ac_cv_func_mmap_anon
=buggy
8127 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8131 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
8132 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
8133 if test $ac_cv_func_mmap_anon = yes; then
8135 cat >>confdefs.h
<<\_ACEOF
8136 #define HAVE_MMAP_ANON 1
8142 echo "$as_me:$LINENO: checking for working mmap of a file" >&5
8143 echo $ECHO_N "checking for working mmap of a file... $ECHO_C" >&6
8144 if test "${ac_cv_func_mmap_file+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 # Create a file one thousand bytes long.
8148 for i
in 1 2 3 4 5 6 7 8 9 0
8149 do for j
in 1 2 3 4 5 6 7 8 9 0
8152 done > conftestdata$$
8154 if test "$cross_compiling" = yes; then
8156 darwin
* ) ac_cv_func_mmap_file
=yes ;;
8157 * ) ac_cv_func_mmap_file
=no
;;
8160 cat >conftest.
$ac_ext <<_ACEOF
8161 #line $LINENO "configure"
8164 cat confdefs.h
>>conftest.
$ac_ext
8165 cat >>conftest.
$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8168 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by
8169 Richard Henderson and Alexandre Oliva.
8170 Check whether read-only mmap of a plain file works. */
8171 #include <sys/types.h>
8172 #include <sys/stat.h>
8174 #include <sys/mman.h>
8182 fd = open("conftestdata$$", O_RDONLY);
8186 if (fstat (fd, &st))
8189 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
8190 if (x == (char *) -1)
8193 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')
8196 if (munmap(x, st.st_size) < 0)
8202 rm -f conftest
$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204 (eval $ac_link) 2>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 ac_cv_func_mmap_file
=yes
8215 echo "$as_me: program exited with status $ac_status" >&5
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.
$ac_ext >&5
8220 ac_cv_func_mmap_file
=no
8222 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8225 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
8226 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
8227 if test $ac_cv_func_mmap_file = yes; then
8229 cat >>confdefs.h
<<\_ACEOF
8230 #define HAVE_MMAP_FILE 1
8238 am_cv_lib_iconv_ldpath
=
8240 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8241 if test "${with_libiconv_prefix+set}" = set; then
8242 withval
="$with_libiconv_prefix"
8244 for dir
in `echo "$withval" | tr : ' '`; do
8245 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8246 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
8251 echo "$as_me:$LINENO: checking for iconv" >&5
8252 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8253 if test "${am_cv_func_iconv+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 am_cv_func_iconv
="no, consider installing GNU libiconv"
8259 cat >conftest.
$ac_ext <<_ACEOF
8260 #line $LINENO "configure"
8263 cat confdefs.h
>>conftest.
$ac_ext
8264 cat >>conftest.
$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8271 iconv_t cd = iconv_open("","");
8272 iconv(cd,NULL,NULL,NULL,NULL);
8278 rm -f conftest.
$ac_objext conftest
$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try
='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 am_cv_func_iconv
=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.
$ac_ext >&5
8296 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8297 if test "$am_cv_func_iconv" != yes; then
8298 am_save_LIBS
="$LIBS"
8299 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
8300 cat >conftest.
$ac_ext <<_ACEOF
8301 #line $LINENO "configure"
8304 cat confdefs.h
>>conftest.
$ac_ext
8305 cat >>conftest.
$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8312 iconv_t cd = iconv_open("","");
8313 iconv(cd,NULL,NULL,NULL,NULL);
8319 rm -f conftest.
$ac_objext conftest
$ac_exeext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8321 (eval $ac_link) 2>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } &&
8325 { ac_try
='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8332 am_cv_func_iconv
=yes
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.
$ac_ext >&5
8338 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8339 LIBS
="$am_save_LIBS"
8343 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8344 echo "${ECHO_T}$am_cv_func_iconv" >&6
8345 if test "$am_cv_func_iconv" = yes; then
8347 cat >>confdefs.h
<<\_ACEOF
8348 #define HAVE_ICONV 1
8351 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8352 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8353 if test "${am_cv_proto_iconv+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 cat >conftest.
$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8361 cat confdefs.h
>>conftest.
$ac_ext
8362 cat >>conftest.
$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8371 #if defined(__STDC__) || defined(__cplusplus)
8372 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8385 rm -f conftest.
$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } &&
8391 { ac_try
='test -s conftest.$ac_objext'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; }; then
8397 am_cv_proto_iconv_arg1
=""
8399 echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.
$ac_ext >&5
8402 am_cv_proto_iconv_arg1
="const"
8404 rm -f conftest.
$ac_objext conftest.
$ac_ext
8405 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);"
8408 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8409 echo "$as_me:$LINENO: result: ${ac_t:-
8410 }$am_cv_proto_iconv" >&5
8411 echo "${ECHO_T}${ac_t:-
8412 }$am_cv_proto_iconv" >&6
8414 cat >>confdefs.h
<<_ACEOF
8415 #define ICONV_CONST $am_cv_proto_iconv_arg1
8420 if test "$am_cv_lib_iconv" = yes; then
8421 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8426 # We will need to find libiberty.h and ansidecl.h
8427 saved_CFLAGS
="$CFLAGS"
8428 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8429 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8430 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8431 fprintf_unlocked strstr errno vasprintf \
8432 malloc realloc calloc free
basename getopt
clock
8434 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8435 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8436 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8437 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 cat >conftest.
$ac_ext <<_ACEOF
8441 #line $LINENO "configure"
8444 cat confdefs.h
>>conftest.
$ac_ext
8445 cat >>conftest.
$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 #define $ac_tr_decl 1
8450 #include "ansidecl.h"
8457 char *(*pfn) = (char *(*)) $ac_func ;
8463 rm -f conftest.
$ac_objext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8465 (eval $ac_compile) 2>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } &&
8469 { ac_try
='test -s conftest.$ac_objext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 eval "gcc_cv_have_decl_$ac_func=yes"
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.
$ac_ext >&5
8480 eval "gcc_cv_have_decl_$ac_func=no"
8482 rm -f conftest.
$ac_objext conftest.
$ac_ext
8485 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8486 echo "$as_me:$LINENO: result: yes" >&5
8487 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8488 #define $ac_tr_decl 1
8492 echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8494 #define $ac_tr_decl 0
8500 if test x
= y
; then
8502 cat >>confdefs.h
<<\_ACEOF
8503 #define HAVE_DECL_GETENV 1
8506 cat >>confdefs.h
<<\_ACEOF
8507 #define HAVE_DECL_ATOL 1
8510 cat >>confdefs.h
<<\_ACEOF
8511 #define HAVE_DECL_SBRK 1
8514 cat >>confdefs.h
<<\_ACEOF
8515 #define HAVE_DECL_ABORT 1
8518 cat >>confdefs.h
<<\_ACEOF
8519 #define HAVE_DECL_ATOF 1
8522 cat >>confdefs.h
<<\_ACEOF
8523 #define HAVE_DECL_GETCWD 1
8526 cat >>confdefs.h
<<\_ACEOF
8527 #define HAVE_DECL_GETWD 1
8531 cat >>confdefs.h
<<\_ACEOF
8532 #define HAVE_DECL_STRSIGNAL 1
8535 cat >>confdefs.h
<<\_ACEOF
8536 #define HAVE_DECL_PUTC_UNLOCKED 1
8539 cat >>confdefs.h
<<\_ACEOF
8540 #define HAVE_DECL_FPUTS_UNLOCKED 1
8543 cat >>confdefs.h
<<\_ACEOF
8544 #define HAVE_DECL_FWRITE_UNLOCKED 1
8548 cat >>confdefs.h
<<\_ACEOF
8549 #define HAVE_DECL_FPRINTF_UNLOCKED 1
8552 cat >>confdefs.h
<<\_ACEOF
8553 #define HAVE_DECL_STRSTR 1
8556 cat >>confdefs.h
<<\_ACEOF
8557 #define HAVE_DECL_ERRNO 1
8560 cat >>confdefs.h
<<\_ACEOF
8561 #define HAVE_DECL_VASPRINTF 1
8565 cat >>confdefs.h
<<\_ACEOF
8566 #define HAVE_DECL_MALLOC 1
8569 cat >>confdefs.h
<<\_ACEOF
8570 #define HAVE_DECL_REALLOC 1
8573 cat >>confdefs.h
<<\_ACEOF
8574 #define HAVE_DECL_CALLOC 1
8577 cat >>confdefs.h
<<\_ACEOF
8578 #define HAVE_DECL_FREE 1
8581 cat >>confdefs.h
<<\_ACEOF
8582 #define HAVE_DECL_BASENAME 1
8585 cat >>confdefs.h
<<\_ACEOF
8586 #define HAVE_DECL_GETOPT 1
8589 cat >>confdefs.h
<<\_ACEOF
8590 #define HAVE_DECL_CLOCK 1
8595 for ac_func
in getrlimit setrlimit getrusage
8597 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8598 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8599 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8600 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cat >conftest.
$ac_ext <<_ACEOF
8604 #line $LINENO "configure"
8607 cat confdefs.h
>>conftest.
$ac_ext
8608 cat >>conftest.
$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8611 #define $ac_tr_decl 1
8613 #include "ansidecl.h"
8615 #ifdef HAVE_SYS_RESOURCE_H
8616 #include <sys/resource.h>
8624 char *(*pfn) = (char *(*)) $ac_func ;
8630 rm -f conftest.
$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } &&
8636 { ac_try
='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 eval "gcc_cv_have_decl_$ac_func=yes"
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.
$ac_ext >&5
8647 eval "gcc_cv_have_decl_$ac_func=no"
8649 rm -f conftest.
$ac_objext conftest.
$ac_ext
8652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8653 echo "$as_me:$LINENO: result: yes" >&5
8654 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8655 #define $ac_tr_decl 1
8659 echo "$as_me:$LINENO: result: no" >&5
8660 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8661 #define $ac_tr_decl 0
8667 if test x
= y
; then
8669 cat >>confdefs.h
<<\_ACEOF
8670 #define HAVE_DECL_GETRLIMIT 1
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define HAVE_DECL_SETRLIMIT 1
8677 cat >>confdefs.h
<<\_ACEOF
8678 #define HAVE_DECL_GETRUSAGE 1
8683 cat >conftest.
$ac_ext <<_ACEOF
8684 #line $LINENO "configure"
8687 cat confdefs.h
>>conftest.
$ac_ext
8688 cat >>conftest.
$ac_ext <<_ACEOF
8689 /* end confdefs.h. */
8691 #include "ansidecl.h"
8693 #ifdef HAVE_SYS_RESOURCE_H
8694 #include <sys/resource.h>
8705 rm -f conftest.
$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
8711 { ac_try
='test -s conftest.$ac_objext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8723 cat >>confdefs.h
<<\_ACEOF
8728 rm -f conftest.
$ac_objext conftest.
$ac_ext
8730 for ac_func
in ldgetname
8732 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8733 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8734 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8735 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8742 cat confdefs.h
>>conftest.
$ac_ext
8743 cat >>conftest.
$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8746 #define $ac_tr_decl 1
8748 #include "ansidecl.h"
8759 char *(*pfn) = (char *(*)) $ac_func ;
8765 rm -f conftest.
$ac_objext
8766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } &&
8771 { ac_try
='test -s conftest.$ac_objext'
8772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 eval "gcc_cv_have_decl_$ac_func=yes"
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.
$ac_ext >&5
8782 eval "gcc_cv_have_decl_$ac_func=no"
8784 rm -f conftest.
$ac_objext conftest.
$ac_ext
8787 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8788 echo "$as_me:$LINENO: result: yes" >&5
8789 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8790 #define $ac_tr_decl 1
8794 echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8796 #define $ac_tr_decl 0
8802 if test x
= y
; then
8804 cat >>confdefs.h
<<\_ACEOF
8805 #define HAVE_DECL_LDGETNAME 1
8810 for ac_func
in times
8812 ac_tr_decl
=HAVE_DECL_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8813 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8814 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8815 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.
$ac_ext <<_ACEOF
8819 #line $LINENO "configure"
8822 cat confdefs.h
>>conftest.
$ac_ext
8823 cat >>conftest.
$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8826 #define $ac_tr_decl 1
8828 #include "ansidecl.h"
8830 #ifdef HAVE_SYS_TIMES_H
8831 #include <sys/times.h>
8839 char *(*pfn) = (char *(*)) $ac_func ;
8845 rm -f conftest.
$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } &&
8851 { ac_try
='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 eval "gcc_cv_have_decl_$ac_func=yes"
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.
$ac_ext >&5
8862 eval "gcc_cv_have_decl_$ac_func=no"
8864 rm -f conftest.
$ac_objext conftest.
$ac_ext
8867 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8868 echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8870 #define $ac_tr_decl 1
8874 echo "$as_me:$LINENO: result: no" >&5
8875 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8876 #define $ac_tr_decl 0
8882 if test x
= y
; then
8884 cat >>confdefs.h
<<\_ACEOF
8885 #define HAVE_DECL_TIMES 1
8890 # More time-related stuff.
8891 echo "$as_me:$LINENO: checking for struct tms" >&5
8892 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8893 if test "${ac_cv_struct_tms+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 cat >conftest.
$ac_ext <<_ACEOF
8898 #line $LINENO "configure"
8901 cat confdefs.h
>>conftest.
$ac_ext
8902 cat >>conftest.
$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8905 #include "ansidecl.h"
8907 #ifdef HAVE_SYS_TIMES_H
8908 #include <sys/times.h>
8919 rm -f conftest.
$ac_objext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921 (eval $ac_compile) 2>&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } &&
8925 { ac_try
='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_struct_tms
=yes
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.
$ac_ext >&5
8938 rm -f conftest.
$ac_objext conftest.
$ac_ext
8940 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8941 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8942 if test $ac_cv_struct_tms = yes; then
8944 cat >>confdefs.h
<<\_ACEOF
8945 #define HAVE_STRUCT_TMS 1
8950 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8951 # revisit after autoconf 2.50.
8952 echo "$as_me:$LINENO: checking for clock_t" >&5
8953 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8954 if test "${gcc_cv_type_clock_t+set}" = set; then
8955 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 cat >conftest.
$ac_ext <<_ACEOF
8959 #line $LINENO "configure"
8962 cat confdefs.h
>>conftest.
$ac_ext
8963 cat >>conftest.
$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 #include "ansidecl.h"
8977 rm -f conftest.
$ac_objext
8978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8979 (eval $ac_compile) 2>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try
='test -s conftest.$ac_objext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 gcc_cv_type_clock_t
=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.
$ac_ext >&5
8994 gcc_cv_type_clock_t
=no
8996 rm -f conftest.
$ac_objext conftest.
$ac_ext
8998 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8999 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
9000 if test $gcc_cv_type_clock_t = yes; then
9002 cat >>confdefs.h
<<\_ACEOF
9003 #define HAVE_CLOCK_T 1
9008 echo "$as_me:$LINENO: checking for uchar" >&5
9009 echo $ECHO_N "checking for uchar... $ECHO_C" >&6
9010 if test "${gcc_cv_type_uchar+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.
$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9017 cat confdefs.h
>>conftest.
$ac_ext
9018 cat >>conftest.
$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 #include "ansidecl.h"
9027 if ((uchar *)0) return 0;
9028 if (sizeof(uchar)) return 0;
9033 rm -f conftest.
$ac_objext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9035 (eval $ac_compile) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } &&
9039 { ac_try
='test -s conftest.$ac_objext'
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; }; then
9045 ac_cv_type_uchar
=yes
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.
$ac_ext >&5
9052 rm -f conftest.
$ac_objext conftest.
$ac_ext
9054 echo "$as_me:$LINENO: result: $gcc_cv_type_uchar" >&5
9055 echo "${ECHO_T}$gcc_cv_type_uchar" >&6
9056 if test $ac_cv_type_uchar = yes; then
9058 cat >>confdefs.h
<<\_ACEOF
9059 #define HAVE_UCHAR 1
9064 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9065 CFLAGS
="$saved_CFLAGS"
9067 # Check whether --enable-initfini-array or --disable-initfini-array was given.
9068 if test "${enable_initfini_array+set}" = set; then
9069 enableval
="$enable_initfini_array"
9073 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
9074 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
9075 if test "${gcc_cv_initfini_array+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 if test "$cross_compiling" = yes; then
9079 gcc_cv_initfini_array
=no
9081 cat >conftest.
$ac_ext <<_ACEOF
9082 #line $LINENO "configure"
9085 cat confdefs.h
>>conftest.
$ac_ext
9086 cat >>conftest.
$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9090 int main (void) { return x; }
9091 int foo (void) { x = 0; }
9092 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9094 rm -f conftest
$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 gcc_cv_initfini_array
=yes
9107 echo "$as_me: program exited with status $ac_status" >&5
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.
$ac_ext >&5
9112 gcc_cv_initfini_array
=no
9114 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9117 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9118 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9119 enable_initfini_array
=$gcc_cv_initfini_array
9122 if test $enable_initfini_array = yes; then
9124 cat >>confdefs.h
<<\_ACEOF
9125 #define HAVE_INITFINI_ARRAY 1
9130 # mkdir takes a single argument on some systems.
9131 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9132 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9133 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 cat >conftest.
$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9140 cat confdefs.h
>>conftest.
$ac_ext
9141 cat >>conftest.
$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9144 #include <sys/types.h>
9145 #ifdef HAVE_SYS_STAT_H
9146 # include <sys/stat.h>
9148 #ifdef HAVE_UNISTD_H
9149 # include <unistd.h>
9151 #ifdef HAVE_DIRECT_H
9152 # include <direct.h>
9162 rm -f conftest.
$ac_objext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try
='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 gcc_cv_mkdir_takes_one_arg
=no
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.
$ac_ext >&5
9179 gcc_cv_mkdir_takes_one_arg
=yes
9181 rm -f conftest.
$ac_objext conftest.
$ac_ext
9183 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9184 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9185 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9187 cat >>confdefs.h
<<\_ACEOF
9188 #define MKDIR_TAKES_ONE_ARG 1
9200 # With Setjmp/Longjmp based exception handling.
9201 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9202 if test "${enable_sjlj_exceptions+set}" = set; then
9203 enableval
="$enable_sjlj_exceptions"
9204 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
9206 cat >>confdefs.h
<<_ACEOF
9207 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9212 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9213 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9214 if test "${ac_cv_lib_unwind_main+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 ac_check_lib_save_LIBS
=$LIBS
9218 LIBS
="-lunwind $LIBS"
9219 cat >conftest.
$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9223 cat confdefs.h
>>conftest.
$ac_ext
9224 cat >>conftest.
$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9236 rm -f conftest.
$ac_objext conftest
$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try
='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_unwind_main
=yes
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.
$ac_ext >&5
9253 ac_cv_lib_unwind_main
=no
9255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9256 LIBS
=$ac_check_lib_save_LIBS
9258 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9259 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9260 if test $ac_cv_lib_unwind_main = yes; then
9261 use_libunwind_default
=yes
9263 use_libunwind_default
=no
9266 # Use libunwind based exception handling.
9267 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9268 if test "${enable_libunwind_exceptions+set}" = set; then
9269 enableval
="$enable_libunwind_exceptions"
9270 use_libunwind_exceptions
=$enableval
9272 use_libunwind_exceptions
=$use_libunwind_default
9274 if test x
"$use_libunwind_exceptions" = xyes
; then
9276 cat >>confdefs.h
<<\_ACEOF
9277 #define USE_LIBUNWIND_EXCEPTIONS 1
9282 # --------------------------------------------------------
9283 # Build, host, and target specific configuration fragments
9284 # --------------------------------------------------------
9289 build_install_headers_dir
=install-headers-tar
9294 host_truncate_target
=
9297 # Decode the host machine, then the target machine.
9298 # For the host machine, we save the xm_file variable as host_xm_file;
9299 # then we decode the target machine and forget everything else
9300 # that came from the host machine.
9301 for machine
in $build $host $target; do
9302 .
${srcdir}/config.gcc
9305 extra_objs
="${host_extra_objs} ${extra_objs}"
9307 # Default the target-machine variables that were not explicitly set.
9308 if test x
"$tm_file" = x
9309 then tm_file
=$cpu_type/$cpu_type.h
; fi
9311 if test x
"$extra_headers" = x
9312 then extra_headers
=; fi
9314 if test x
$md_file = x
9315 then md_file
=$cpu_type/$cpu_type.md
; fi
9317 if test x
$out_file = x
9318 then out_file
=$cpu_type/$cpu_type.c
; fi
9320 if test x
"$tmake_file" = x
9321 then tmake_file
=$cpu_type/t-
$cpu_type
9324 if test x
"$dwarf2" = xyes
9325 then tm_file
="$tm_file tm-dwarf2.h"
9328 # Say what files are being used for the output code and MD file.
9329 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9330 echo "Using \`$srcdir/config/$md_file' as machine description file."
9332 # If any of the xm_file variables contain nonexistent files, warn
9333 # about them and drop them.
9336 for x
in $build_xm_file; do
9337 if test -f $srcdir/config
/$x
9339 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9340 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9346 for x
in $host_xm_file; do
9347 if test -f $srcdir/config
/$x
9349 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9350 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9356 for x
in $xm_file; do
9357 if test -f $srcdir/config
/$x
9359 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9360 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9366 for f
in $tm_file; do
9369 if test $count = ax
; then
9370 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9372 echo "Using the following target machine macro files:"
9373 for f
in $tm_file; do
9374 echo " $srcdir/config/$f"
9378 if test x
$need_64bit_hwint = xyes
; then
9380 cat >>confdefs.h
<<\_ACEOF
9381 #define NEED_64BIT_HOST_WIDE_INT 1
9387 for f
in $host_xm_file; do
9390 if test $count = a
; then
9392 elif test $count = ax
; then
9393 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9395 echo "Using the following host machine macro files:"
9396 for f
in $host_xm_file; do
9397 echo " $srcdir/config/$f"
9400 echo "Using ${out_host_hook_obj} for host machine hooks."
9402 if test "$host_xm_file" != "$build_xm_file"; then
9404 for f
in $build_xm_file; do
9407 if test $count = a
; then
9409 elif test $count = ax
; then
9410 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9412 echo "Using the following build machine macro files:"
9413 for f
in $build_xm_file; do
9414 echo " $srcdir/config/$f"
9419 if test x
$thread_file = x
; then
9420 if test x
$target_thread_file != x
; then
9421 thread_file
=$target_thread_file
9423 thread_file
='single'
9427 # Look for a file containing extra machine modes.
9428 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9429 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9432 cat >>confdefs.h
<<_ACEOF
9433 #define EXTRA_MODES_FILE "$extra_modes"
9437 cat >>confdefs.h
<<\_ACEOF
9438 #define EXTRA_CC_MODES 1
9443 # auto-host.h is the file containing items generated by autoconf and is
9444 # the first file included by config.h.
9445 # If host=build, it is correct to have bconfig include auto-host.h
9446 # as well. If host!=build, we are in error and need to do more
9447 # work to find out the build config parameters.
9448 if test x
$host = x
$build
9450 build_auto
=auto-host.h
9453 # We create a subdir, then run autoconf in the subdir.
9454 # To prevent recursion we set host and build for the new
9455 # invocation of configure to the build for this invocation
9462 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9463 *) realsrcdir
=..
/${srcdir};;
9465 saved_CFLAGS
="${CFLAGS}"
9466 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9467 ${realsrcdir}/configure \
9468 --target=$target_alias --host=$build_alias --build=$build_alias
9469 CFLAGS
="${saved_CFLAGS}"
9471 # We just finished tests for the build machine, so rename
9472 # the file auto-build.h in the gcc directory.
9473 mv auto-host.h ..
/auto-build.h
9476 build_auto
=auto-build.h
9477 FORBUILD
=..
/build-
$build_alias
9481 tm_file
="${tm_file} defaults.h"
9482 tm_p_file
="${tm_p_file} tm-preds.h"
9483 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9484 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9485 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9486 # put this back in temporarily.
9487 xm_file
="ansidecl.h ${xm_file}"
9493 # Truncate the target if necessary
9494 if test x
$host_truncate_target != x
; then
9495 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
9498 # Get the version trigger filename from the toplevel
9499 if test "${with_gcc_version_trigger+set}" = set; then
9500 gcc_version_trigger
=$with_gcc_version_trigger
9502 gcc_version_trigger
=${srcdir}/version.c
9504 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9505 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9507 # Compile in configure arguments.
9508 if test -f configargs.h
; then
9509 # Being re-configured.
9510 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9511 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9513 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9515 cat > configargs.h
<<EOF
9516 /* Generated automatically. */
9517 static const char configuration_arguments[] = "$gcc_config_arguments";
9518 static const char thread_model[] = "$thread_file";
9521 # Internationalization
9523 VERSION
="$gcc_version"
9527 # Enable NLS support by default
9528 # Check whether --enable-nls or --disable-nls was given.
9529 if test "${enable_nls+set}" = set; then
9530 enableval
="$enable_nls"
9536 # if cross compiling, disable NLS support.
9537 # It's not worth the trouble, at least for now.
9539 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
9540 { echo "$as_me:$LINENO: WARNING: Disabling NLS support for canadian cross compiler." >&5
9541 echo "$as_me: WARNING: Disabling NLS support for canadian cross compiler." >&2;}
9546 echo "$as_me:$LINENO: checking for library containing strerror" >&5
9547 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
9548 if test "${ac_cv_search_strerror+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 ac_func_search_save_LIBS
=$LIBS
9552 ac_cv_search_strerror
=no
9553 cat >conftest.
$ac_ext <<_ACEOF
9554 #line $LINENO "configure"
9557 cat confdefs.h
>>conftest.
$ac_ext
9558 cat >>conftest.
$ac_ext <<_ACEOF
9559 /* end confdefs.h. */
9561 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9576 rm -f conftest.
$ac_objext conftest
$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try
='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_search_strerror
="none required"
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9594 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9595 if test "$ac_cv_search_strerror" = no
; then
9596 for ac_lib
in cposix
; do
9597 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9598 cat >conftest.
$ac_ext <<_ACEOF
9599 #line $LINENO "configure"
9602 cat confdefs.h
>>conftest.
$ac_ext
9603 cat >>conftest.
$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9606 /* Override any gcc2 internal prototype to avoid an error. */
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9621 rm -f conftest.
$ac_objext conftest
$ac_exeext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9623 (eval $ac_link) 2>&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } &&
9627 { ac_try
='test -s conftest$ac_exeext'
9628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_search_strerror
="-l$ac_lib"
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.
$ac_ext >&5
9640 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9643 LIBS
=$ac_func_search_save_LIBS
9645 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
9646 echo "${ECHO_T}$ac_cv_search_strerror" >&6
9647 if test "$ac_cv_search_strerror" != no
; then
9648 test "$ac_cv_search_strerror" = "none required" || LIBS
="$ac_cv_search_strerror $LIBS"
9654 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9655 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9656 if test "${ac_cv_c_const+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 cat >conftest.
$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9663 cat confdefs.h
>>conftest.
$ac_ext
9664 cat >>conftest.
$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9670 /* FIXME: Include the comments suggested by Paul. */
9672 /* Ultrix mips cc rejects this. */
9673 typedef int charset[2];
9675 /* SunOS 4.1.1 cc rejects this. */
9676 char const *const *ccp;
9678 /* NEC SVR4.0.2 mips cc rejects this. */
9679 struct point {int x, y;};
9680 static struct point const zero = {0,0};
9681 /* AIX XL C 1.02.0.0 rejects this.
9682 It does not let you subtract one const X* pointer from another in
9683 an arm of an if-expression whose if-part is not a constant
9685 const char *g = "string";
9686 ccp = &g + (g ? g-g : 0);
9687 /* HPUX 7.0 cc rejects these. */
9690 ccp = (char const *const *) p;
9691 { /* SCO 3.2v4 cc rejects this. */
9693 char const *s = 0 ? (char *) 0 : (char const *) 0;
9697 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9699 const int *foo = &x[0];
9702 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9703 typedef const int *iptr;
9707 { /* AIX XL C 1.02.0.0 rejects this saying
9708 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9709 struct s { int j; const int *ap[3]; };
9710 struct s *b; b->j = 5;
9712 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9721 rm -f conftest.
$ac_objext
9722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9723 (eval $ac_compile) 2>&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try
='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.
$ac_ext >&5
9740 rm -f conftest.
$ac_objext conftest.
$ac_ext
9742 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9743 echo "${ECHO_T}$ac_cv_c_const" >&6
9744 if test $ac_cv_c_const = no
; then
9746 cat >>confdefs.h
<<\_ACEOF
9752 echo "$as_me:$LINENO: checking for off_t" >&5
9753 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
9754 if test "${ac_cv_type_off_t+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.
$ac_ext <<_ACEOF
9758 #line $LINENO "configure"
9761 cat confdefs.h
>>conftest.
$ac_ext
9762 cat >>conftest.
$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 $ac_includes_default
9776 rm -f conftest.
$ac_objext
9777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9778 (eval $ac_compile) 2>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -s conftest.$ac_objext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_type_off_t
=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9795 rm -f conftest.
$ac_objext conftest.
$ac_ext
9797 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9798 echo "${ECHO_T}$ac_cv_type_off_t" >&6
9799 if test $ac_cv_type_off_t = yes; then
9803 cat >>confdefs.h
<<_ACEOF
9809 echo "$as_me:$LINENO: checking for size_t" >&5
9810 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9811 if test "${ac_cv_type_size_t+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9815 #line $LINENO "configure"
9818 cat confdefs.h
>>conftest.
$ac_ext
9819 cat >>conftest.
$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9821 $ac_includes_default
9827 if (sizeof (size_t))
9833 rm -f conftest.
$ac_objext
9834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try
='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_type_size_t
=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.
$ac_ext >&5
9850 ac_cv_type_size_t
=no
9852 rm -f conftest.
$ac_objext conftest.
$ac_ext
9854 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9855 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9856 if test $ac_cv_type_size_t = yes; then
9860 cat >>confdefs.h
<<_ACEOF
9861 #define size_t unsigned
9866 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9867 # for constant arguments. Useless!
9868 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9869 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9870 if test "${ac_cv_working_alloca_h+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 cat >conftest.
$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9877 cat confdefs.h
>>conftest.
$ac_ext
9878 cat >>conftest.
$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9884 char *p = (char *) alloca (2 * sizeof (int));
9889 rm -f conftest.
$ac_objext conftest
$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try
='test -s conftest$ac_exeext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_working_alloca_h
=yes
9903 echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.
$ac_ext >&5
9906 ac_cv_working_alloca_h
=no
9908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9910 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9911 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9912 if test $ac_cv_working_alloca_h = yes; then
9914 cat >>confdefs.h
<<\_ACEOF
9915 #define HAVE_ALLOCA_H 1
9920 echo "$as_me:$LINENO: checking for alloca" >&5
9921 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9922 if test "${ac_cv_func_alloca_works+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 cat >conftest.
$ac_ext <<_ACEOF
9926 #line $LINENO "configure"
9929 cat confdefs.h
>>conftest.
$ac_ext
9930 cat >>conftest.
$ac_ext <<_ACEOF
9931 /* end confdefs.h. */
9933 # define alloca __builtin_alloca
9936 # include <malloc.h>
9937 # define alloca _alloca
9940 # include <alloca.h>
9945 # ifndef alloca /* predefined by HP cc +Olibcalls */
9956 char *p = (char *) alloca (1);
9961 rm -f conftest.
$ac_objext conftest
$ac_exeext
9962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try
='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_func_alloca_works
=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.
$ac_ext >&5
9978 ac_cv_func_alloca_works
=no
9980 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9982 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9983 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9985 if test $ac_cv_func_alloca_works = yes; then
9987 cat >>confdefs.h
<<\_ACEOF
9988 #define HAVE_ALLOCA 1
9992 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9993 # that cause trouble. Some versions do not even contain alloca or
9994 # contain a buggy version. If you still want to use their alloca,
9995 # use ar to extract alloca.o from them instead of compiling alloca.c.
9997 ALLOCA
=alloca.
$ac_objext
9999 cat >>confdefs.h
<<\_ACEOF
10004 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10005 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10006 if test "${ac_cv_os_cray+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 cat >conftest.
$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10013 cat confdefs.h
>>conftest.
$ac_ext
10014 cat >>conftest.
$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #if defined(CRAY) && ! defined(CRAY2)
10023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10024 $EGREP "webecray" >/dev
/null
2>&1; then
10032 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10033 echo "${ECHO_T}$ac_cv_os_cray" >&6
10034 if test $ac_cv_os_cray = yes; then
10035 for ac_func
in _getb67 GETB67 getb67
; do
10036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10037 echo "$as_me:$LINENO: checking for $ac_func" >&5
10038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10039 if eval "test \"\${$as_ac_var+set}\" = set"; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 cat >conftest.
$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10046 cat confdefs.h
>>conftest.
$ac_ext
10047 cat >>conftest.
$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10054 # include <limits.h>
10056 # include <assert.h>
10058 /* Override any gcc2 internal prototype to avoid an error. */
10063 /* We use char because int might match the return type of a gcc2
10064 builtin and then its argument prototype would still apply. */
10066 /* The GNU C library defines this for functions which it implements
10067 to always fail with ENOSYS. Some functions are actually named
10068 something starting with __ and the normal name is an alias. */
10069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10072 char (*f) () = $ac_func;
10081 return f != $ac_func;
10086 rm -f conftest.
$ac_objext conftest
$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try
='test -s conftest$ac_exeext'
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 eval "$as_ac_var=yes"
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.
$ac_ext >&5
10103 eval "$as_ac_var=no"
10105 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10109 if test `eval echo '${'$as_ac_var'}'` = yes; then
10111 cat >>confdefs.h
<<_ACEOF
10112 #define CRAY_STACKSEG_END $ac_func
10121 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10122 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10123 if test "${ac_cv_c_stack_direction+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 if test "$cross_compiling" = yes; then
10127 ac_cv_c_stack_direction
=0
10129 cat >conftest.
$ac_ext <<_ACEOF
10130 #line $LINENO "configure"
10133 cat confdefs.h
>>conftest.
$ac_ext
10134 cat >>conftest.
$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10137 find_stack_direction ()
10139 static char *addr = 0;
10144 return find_stack_direction ();
10147 return (&dummy > addr) ? 1 : -1;
10153 exit (find_stack_direction () < 0);
10156 rm -f conftest
$ac_exeext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10158 (eval $ac_link) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_cv_c_stack_direction
=1
10169 echo "$as_me: program exited with status $ac_status" >&5
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.
$ac_ext >&5
10173 ( exit $ac_status )
10174 ac_cv_c_stack_direction
=-1
10176 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10179 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10180 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10182 cat >>confdefs.h
<<_ACEOF
10183 #define STACK_DIRECTION $ac_cv_c_stack_direction
10190 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10191 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
10192 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.
$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10199 cat confdefs.h
>>conftest.
$ac_ext
10200 cat >>conftest.
$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 #include <features.h>
10204 #ifdef __GNU_LIBRARY__
10205 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10212 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then
10213 ac_cv_gnu_library_2_1
=yes
10215 ac_cv_gnu_library_2_1
=no
10222 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10223 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
10225 GLIBC21
="$ac_cv_gnu_library_2_1"
10239 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10240 stdlib.h string.h unistd.h sys
/param.h
10242 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10250 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10252 # Is the header compilable?
10253 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10254 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10255 cat >conftest.
$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10259 cat confdefs.h
>>conftest.
$ac_ext
10260 cat >>conftest.
$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 $ac_includes_default
10263 #include <$ac_header>
10265 rm -f conftest.
$ac_objext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10267 (eval $ac_compile) 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try
='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_header_compiler
=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.
$ac_ext >&5
10282 ac_header_compiler
=no
10284 rm -f conftest.
$ac_objext conftest.
$ac_ext
10285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286 echo "${ECHO_T}$ac_header_compiler" >&6
10288 # Is the header present?
10289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291 cat >conftest.
$ac_ext <<_ACEOF
10292 #line $LINENO "configure"
10295 cat confdefs.h
>>conftest.
$ac_ext
10296 cat >>conftest.
$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <$ac_header>
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1
>conftest.err
10305 cat conftest.err
>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev
/null
; then
10308 if test -s conftest.err
; then
10309 ac_cpp_err
=$ac_c_preproc_warn_flag
10316 if test -z "$ac_cpp_err"; then
10317 ac_header_preproc
=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.
$ac_ext >&5
10322 ac_header_preproc
=no
10324 rm -f conftest.err conftest.
$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326 echo "${ECHO_T}$ac_header_preproc" >&6
10328 # So? What about this header?
10329 case $ac_header_compiler:$ac_header_preproc in
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10337 ## ------------------------------------ ##
10338 ## Report this to bug-autoconf@gnu.org. ##
10339 ## ------------------------------------ ##
10342 sed "s/^/$as_me: WARNING: /" >&2
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353 ## ------------------------------------ ##
10354 ## Report this to bug-autoconf@gnu.org. ##
10355 ## ------------------------------------ ##
10358 sed "s/^/$as_me: WARNING: /" >&2
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 eval "$as_ac_Header=$ac_header_preproc"
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h
<<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10402 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
10403 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
10404 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
10406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10407 echo "$as_me:$LINENO: checking for $ac_func" >&5
10408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10409 if eval "test \"\${$as_ac_var+set}\" = set"; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 cat >conftest.
$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10416 cat confdefs.h
>>conftest.
$ac_ext
10417 cat >>conftest.
$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 /* System header to define __stub macros and hopefully few prototypes,
10420 which can conflict with char $ac_func (); below.
10421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10422 <limits.h> exists even on freestanding compilers. */
10424 # include <limits.h>
10426 # include <assert.h>
10428 /* Override any gcc2 internal prototype to avoid an error. */
10433 /* We use char because int might match the return type of a gcc2
10434 builtin and then its argument prototype would still apply. */
10436 /* The GNU C library defines this for functions which it implements
10437 to always fail with ENOSYS. Some functions are actually named
10438 something starting with __ and the normal name is an alias. */
10439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10442 char (*f) () = $ac_func;
10451 return f != $ac_func;
10456 rm -f conftest.
$ac_objext conftest
$ac_exeext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10458 (eval $ac_link) 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); } &&
10462 { ac_try
='test -s conftest$ac_exeext'
10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464 (eval $ac_try) 2>&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); }; }; then
10468 eval "$as_ac_var=yes"
10470 echo "$as_me: failed program was:" >&5
10471 sed 's/^/| /' conftest.
$ac_ext >&5
10473 eval "$as_ac_var=no"
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10479 if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h
<<_ACEOF
10481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10490 am_cv_lib_iconv_ldpath
=
10492 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10493 if test "${with_libiconv_prefix+set}" = set; then
10494 withval
="$with_libiconv_prefix"
10496 for dir
in `echo "$withval" | tr : ' '`; do
10497 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
10498 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
10503 echo "$as_me:$LINENO: checking for iconv" >&5
10504 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10505 if test "${am_cv_func_iconv+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 am_cv_func_iconv
="no, consider installing GNU libiconv"
10511 cat >conftest.
$ac_ext <<_ACEOF
10512 #line $LINENO "configure"
10515 cat confdefs.h
>>conftest.
$ac_ext
10516 cat >>conftest.
$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10518 #include <stdlib.h>
10523 iconv_t cd = iconv_open("","");
10524 iconv(cd,NULL,NULL,NULL,NULL);
10530 rm -f conftest.
$ac_objext conftest
$ac_exeext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532 (eval $ac_link) 2>&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try
='test -s conftest$ac_exeext'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 am_cv_func_iconv
=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.
$ac_ext >&5
10548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10549 if test "$am_cv_func_iconv" != yes; then
10550 am_save_LIBS
="$LIBS"
10551 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
10552 cat >conftest.
$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10556 cat confdefs.h
>>conftest.
$ac_ext
10557 cat >>conftest.
$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 #include <stdlib.h>
10564 iconv_t cd = iconv_open("","");
10565 iconv(cd,NULL,NULL,NULL,NULL);
10571 rm -f conftest.
$ac_objext conftest
$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573 (eval $ac_link) 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try
='test -s conftest$ac_exeext'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 am_cv_lib_iconv
=yes
10584 am_cv_func_iconv
=yes
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.
$ac_ext >&5
10590 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10591 LIBS
="$am_save_LIBS"
10595 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10596 echo "${ECHO_T}$am_cv_func_iconv" >&6
10597 if test "$am_cv_func_iconv" = yes; then
10599 cat >>confdefs.h
<<\_ACEOF
10600 #define HAVE_ICONV 1
10603 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10604 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10605 if test "${am_cv_proto_iconv+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 cat >conftest.
$ac_ext <<_ACEOF
10610 #line $LINENO "configure"
10613 cat confdefs.h
>>conftest.
$ac_ext
10614 cat >>conftest.
$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10617 #include <stdlib.h>
10623 #if defined(__STDC__) || defined(__cplusplus)
10624 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10637 rm -f conftest.
$ac_objext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10639 (eval $ac_compile) 2>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try
='test -s conftest.$ac_objext'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; }; then
10649 am_cv_proto_iconv_arg1
=""
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.
$ac_ext >&5
10654 am_cv_proto_iconv_arg1
="const"
10656 rm -f conftest.
$ac_objext conftest.
$ac_ext
10657 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);"
10660 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10661 echo "$as_me:$LINENO: result: ${ac_t:-
10662 }$am_cv_proto_iconv" >&5
10663 echo "${ECHO_T}${ac_t:-
10664 }$am_cv_proto_iconv" >&6
10666 cat >>confdefs.h
<<_ACEOF
10667 #define ICONV_CONST $am_cv_proto_iconv_arg1
10672 if test "$am_cv_lib_iconv" = yes; then
10673 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
10678 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10679 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
10680 if test "${am_cv_langinfo_codeset+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.
$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10687 cat confdefs.h
>>conftest.
$ac_ext
10688 cat >>conftest.
$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <langinfo.h>
10694 char* cs = nl_langinfo(CODESET);
10699 rm -f conftest.
$ac_objext conftest
$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try
='test -s conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 am_cv_langinfo_codeset
=yes
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.
$ac_ext >&5
10716 am_cv_langinfo_codeset
=no
10718 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10721 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10722 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
10723 if test $am_cv_langinfo_codeset = yes; then
10725 cat >>confdefs.h
<<\_ACEOF
10726 #define HAVE_LANGINFO_CODESET 1
10731 if test $ac_cv_header_locale_h = yes; then
10732 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10733 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10734 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10737 cat >conftest.
$ac_ext <<_ACEOF
10738 #line $LINENO "configure"
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <locale.h>
10753 rm -f conftest.
$ac_objext conftest
$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try
='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 am_cv_val_LC_MESSAGES
=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.
$ac_ext >&5
10770 am_cv_val_LC_MESSAGES
=no
10772 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10774 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10775 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10776 if test $am_cv_val_LC_MESSAGES = yes; then
10778 cat >>confdefs.h
<<\_ACEOF
10779 #define HAVE_LC_MESSAGES 1
10784 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10786 # Check whether --enable-nls or --disable-nls was given.
10787 if test "${enable_nls+set}" = set; then
10788 enableval
="$enable_nls"
10793 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10794 echo "${ECHO_T}$USE_NLS" >&6
10797 BUILD_INCLUDED_LIBINTL
=no
10798 USE_INCLUDED_LIBINTL
=no
10802 if test "$USE_NLS" = "yes"; then
10804 cat >>confdefs.h
<<\_ACEOF
10805 #define ENABLE_NLS 1
10808 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10809 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
10811 # Check whether --with-included-gettext or --without-included-gettext was given.
10812 if test "${with_included_gettext+set}" = set; then
10813 withval
="$with_included_gettext"
10814 nls_cv_force_use_gnu_gettext
=$withval
10816 nls_cv_force_use_gnu_gettext
=no
10818 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10819 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
10821 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10822 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10828 if test "${ac_cv_header_libintl_h+set}" = set; then
10829 echo "$as_me:$LINENO: checking for libintl.h" >&5
10830 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10831 if test "${ac_cv_header_libintl_h+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10835 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10837 # Is the header compilable?
10838 echo "$as_me:$LINENO: checking libintl.h usability" >&5
10839 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
10840 cat >conftest.
$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10844 cat confdefs.h
>>conftest.
$ac_ext
10845 cat >>conftest.
$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 #include <libintl.h>
10850 rm -f conftest.
$ac_objext
10851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } &&
10856 { ac_try
='test -s conftest.$ac_objext'
10857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10858 (eval $ac_try) 2>&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
10862 ac_header_compiler
=yes
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.
$ac_ext >&5
10867 ac_header_compiler
=no
10869 rm -f conftest.
$ac_objext conftest.
$ac_ext
10870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10871 echo "${ECHO_T}$ac_header_compiler" >&6
10873 # Is the header present?
10874 echo "$as_me:$LINENO: checking libintl.h presence" >&5
10875 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10880 cat confdefs.h
>>conftest.
$ac_ext
10881 cat >>conftest.
$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <libintl.h>
10885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10886 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10888 grep -v '^ *+' conftest.er1
>conftest.err
10890 cat conftest.err
>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } >/dev
/null
; then
10893 if test -s conftest.err
; then
10894 ac_cpp_err
=$ac_c_preproc_warn_flag
10901 if test -z "$ac_cpp_err"; then
10902 ac_header_preproc
=yes
10904 echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.
$ac_ext >&5
10907 ac_header_preproc
=no
10909 rm -f conftest.err conftest.
$ac_ext
10910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10911 echo "${ECHO_T}$ac_header_preproc" >&6
10913 # So? What about this header?
10914 case $ac_header_compiler:$ac_header_preproc in
10916 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10917 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10919 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10922 ## ------------------------------------ ##
10923 ## Report this to bug-autoconf@gnu.org. ##
10924 ## ------------------------------------ ##
10927 sed "s/^/$as_me: WARNING: /" >&2
10930 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10931 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10933 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10935 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10938 ## ------------------------------------ ##
10939 ## Report this to bug-autoconf@gnu.org. ##
10940 ## ------------------------------------ ##
10943 sed "s/^/$as_me: WARNING: /" >&2
10946 echo "$as_me:$LINENO: checking for libintl.h" >&5
10947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
10948 if test "${ac_cv_header_libintl_h+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 ac_cv_header_libintl_h
=$ac_header_preproc
10953 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10954 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
10957 if test $ac_cv_header_libintl_h = yes; then
10959 cat >>confdefs.h
<<\_ACEOF
10960 #define HAVE_LIBINTL_H 1
10963 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10964 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
10965 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 cat >conftest.
$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10972 cat confdefs.h
>>conftest.
$ac_ext
10973 cat >>conftest.
$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <libintl.h>
10976 extern int _nl_msg_cat_cntr;
10980 bindtextdomain ("", "");
10981 return (int) gettext ("") + _nl_msg_cat_cntr
10986 rm -f conftest.
$ac_objext conftest
$ac_exeext
10987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10988 (eval $ac_link) 2>&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try
='test -s conftest$ac_exeext'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 gt_cv_func_gnugettext1_libc
=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.
$ac_ext >&5
11003 gt_cv_func_gnugettext1_libc
=no
11005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11007 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11008 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
11010 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11011 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11012 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
11013 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 gt_save_LIBS
="$LIBS"
11017 LIBS
="$LIBS -lintl $LIBICONV"
11018 cat >conftest.
$ac_ext <<_ACEOF
11019 #line $LINENO "configure"
11022 cat confdefs.h
>>conftest.
$ac_ext
11023 cat >>conftest.
$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <libintl.h>
11026 extern int _nl_msg_cat_cntr;
11030 bindtextdomain ("", "");
11031 return (int) gettext ("") + _nl_msg_cat_cntr
11036 rm -f conftest.
$ac_objext conftest
$ac_exeext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11038 (eval $ac_link) 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try
='test -s conftest$ac_exeext'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; }; then
11048 gt_cv_func_gnugettext1_libintl
=yes
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.
$ac_ext >&5
11053 gt_cv_func_gnugettext1_libintl
=no
11055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11056 LIBS
="$gt_save_LIBS"
11058 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11059 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
11062 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11063 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11064 && test "$PACKAGE" != gettext; }; then
11066 cat >>confdefs.h
<<\_ACEOF
11067 #define HAVE_GETTEXT 1
11071 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11072 INTLLIBS
="-lintl $LIBICONV"
11075 gt_save_LIBS
="$LIBS"
11076 LIBS
="$LIBS $INTLLIBS"
11078 for ac_func
in dcgettext
11080 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 echo "$as_me:$LINENO: checking for $ac_func" >&5
11082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11083 if eval "test \"\${$as_ac_var+set}\" = set"; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 cat >conftest.
$ac_ext <<_ACEOF
11087 #line $LINENO "configure"
11090 cat confdefs.h
>>conftest.
$ac_ext
11091 cat >>conftest.
$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11098 # include <limits.h>
11100 # include <assert.h>
11102 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11110 /* The GNU C library defines this for functions which it implements
11111 to always fail with ENOSYS. Some functions are actually named
11112 something starting with __ and the normal name is an alias. */
11113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11116 char (*f) () = $ac_func;
11125 return f != $ac_func;
11130 rm -f conftest.
$ac_objext conftest
$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try
='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 eval "$as_ac_var=yes"
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.
$ac_ext >&5
11147 eval "$as_ac_var=no"
11149 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11153 if test `eval echo '${'$as_ac_var'}'` = yes; then
11154 cat >>confdefs.h
<<_ACEOF
11155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11161 LIBS
="$gt_save_LIBS"
11163 # Extract the first word of "msgfmt", so it can be a program name with args.
11164 set dummy msgfmt
; ac_word
=$2
11165 echo "$as_me:$LINENO: checking for $ac_word" >&5
11166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11167 if test "${ac_cv_path_MSGFMT+set}" = set; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
11175 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11176 for ac_dir
in $PATH; do
11177 test -z "$ac_dir" && ac_dir
=.
11178 if test -f $ac_dir/$ac_word; then
11179 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
11180 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
11186 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
11190 MSGFMT
="$ac_cv_path_MSGFMT"
11191 if test "$MSGFMT" != ":"; then
11192 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11193 echo "${ECHO_T}$MSGFMT" >&6
11195 echo "$as_me:$LINENO: result: no" >&5
11196 echo "${ECHO_T}no" >&6
11199 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11200 set dummy gmsgfmt
; ac_word
=$2
11201 echo "$as_me:$LINENO: checking for $ac_word" >&5
11202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11203 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
11211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11212 for as_dir
in $PATH
11215 test -z "$as_dir" && as_dir
=.
11216 for ac_exec_ext
in '' $ac_executable_extensions; do
11217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11218 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
11219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
11229 GMSGFMT
=$ac_cv_path_GMSGFMT
11231 if test -n "$GMSGFMT"; then
11232 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11233 echo "${ECHO_T}$GMSGFMT" >&6
11235 echo "$as_me:$LINENO: result: no" >&5
11236 echo "${ECHO_T}no" >&6
11240 # Extract the first word of "xgettext", so it can be a program name with args.
11241 set dummy xgettext
; ac_word
=$2
11242 echo "$as_me:$LINENO: checking for $ac_word" >&5
11243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11244 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 case "$XGETTEXT" in
11249 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
11252 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11253 for ac_dir
in $PATH; do
11254 test -z "$ac_dir" && ac_dir
=.
11255 if test -f $ac_dir/$ac_word; then
11256 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
11257 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
11263 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
11267 XGETTEXT
="$ac_cv_path_XGETTEXT"
11268 if test "$XGETTEXT" != ":"; then
11269 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11270 echo "${ECHO_T}$XGETTEXT" >&6
11272 echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6
11284 if test "$CATOBJEXT" = "NONE"; then
11285 nls_cv_use_gnu_gettext
=yes
11289 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11290 INTLOBJS
="\$(GETTOBJS)"
11291 # Extract the first word of "msgfmt", so it can be a program name with args.
11292 set dummy msgfmt
; ac_word
=$2
11293 echo "$as_me:$LINENO: checking for $ac_word" >&5
11294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11295 if test "${ac_cv_path_MSGFMT+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
11303 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11304 for ac_dir
in $PATH; do
11305 test -z "$ac_dir" && ac_dir
=.
11306 if test -f $ac_dir/$ac_word; then
11307 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
11308 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
11314 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
11318 MSGFMT
="$ac_cv_path_MSGFMT"
11319 if test "$MSGFMT" != ":"; then
11320 echo "$as_me:$LINENO: result: $MSGFMT" >&5
11321 echo "${ECHO_T}$MSGFMT" >&6
11323 echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6
11327 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11328 set dummy gmsgfmt
; ac_word
=$2
11329 echo "$as_me:$LINENO: checking for $ac_word" >&5
11330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11331 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
11339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11340 for as_dir
in $PATH
11343 test -z "$as_dir" && as_dir
=.
11344 for ac_exec_ext
in '' $ac_executable_extensions; do
11345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11346 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
11347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11353 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
11357 GMSGFMT
=$ac_cv_path_GMSGFMT
11359 if test -n "$GMSGFMT"; then
11360 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11361 echo "${ECHO_T}$GMSGFMT" >&6
11363 echo "$as_me:$LINENO: result: no" >&5
11364 echo "${ECHO_T}no" >&6
11367 # Extract the first word of "xgettext", so it can be a program name with args.
11368 set dummy xgettext
; ac_word
=$2
11369 echo "$as_me:$LINENO: checking for $ac_word" >&5
11370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11371 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 case "$XGETTEXT" in
11376 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
11379 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
11380 for ac_dir
in $PATH; do
11381 test -z "$ac_dir" && ac_dir
=.
11382 if test -f $ac_dir/$ac_word; then
11383 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
11384 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
11390 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
11394 XGETTEXT
="$ac_cv_path_XGETTEXT"
11395 if test "$XGETTEXT" != ":"; then
11396 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11397 echo "${ECHO_T}$XGETTEXT" >&6
11399 echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6
11404 BUILD_INCLUDED_LIBINTL
=yes
11405 USE_INCLUDED_LIBINTL
=yes
11407 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
11408 INTLDEPS
="\$(top_builddir)/intl/libintl.a"
11409 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11412 if test "$GMSGFMT" != ":"; then
11413 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
11416 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
11417 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
11422 if test "$XGETTEXT" != ":"; then
11423 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
11426 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11427 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11434 ac_config_commands
="$ac_config_commands default-1"
11438 if test "$PACKAGE" = gettext; then
11439 BUILD_INCLUDED_LIBINTL
=yes
11442 for ac_prog
in bison
11444 # Extract the first word of "$ac_prog", so it can be a program name with args.
11445 set dummy
$ac_prog; ac_word
=$2
11446 echo "$as_me:$LINENO: checking for $ac_word" >&5
11447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11448 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 if test -n "$INTLBISON"; then
11452 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
11454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11455 for as_dir
in $PATH
11458 test -z "$as_dir" && as_dir
=.
11459 for ac_exec_ext
in '' $ac_executable_extensions; do
11460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_prog_INTLBISON
="$ac_prog"
11462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 INTLBISON
=$ac_cv_prog_INTLBISON
11471 if test -n "$INTLBISON"; then
11472 echo "$as_me:$LINENO: result: $INTLBISON" >&5
11473 echo "${ECHO_T}$INTLBISON" >&6
11475 echo "$as_me:$LINENO: result: no" >&5
11476 echo "${ECHO_T}no" >&6
11479 test -n "$INTLBISON" && break
11482 if test -z "$INTLBISON"; then
11485 echo "$as_me:$LINENO: checking version of bison" >&5
11486 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11487 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11488 case $ac_prog_version in
11489 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
11490 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
11491 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
11492 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
11494 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11495 echo "${ECHO_T}$ac_prog_version" >&6
11497 if test $ac_verc_fail = yes; then
11510 if test $USE_INCLUDED_LIBINTL = yes; then
11512 cat >>confdefs.h
<<\_ACEOF
11513 #define USE_INCLUDED_LIBINTL 1
11518 nls_cv_header_intl
=
11519 nls_cv_header_libgt
=
11531 if test "x$CATOBJEXT" != x
; then
11532 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11533 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11534 # Look for .po and .gmo files in the source directory.
11537 for cat in $srcdir/po
/*$CATOBJEXT $srcdir/po
/*.po
; do
11538 # If there aren't any .gmo files the shell will give us the
11539 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11541 case "$cat" in *\
**)
11544 # The quadruple backslash is collapsed to a double backslash
11545 # by the backticks, then collapsed again by the double quotes,
11546 # leaving us with one backslash in the sed expression (right
11547 # before the dot that mustn't act as a wildcard). The dot to
11548 # be escaped in the second expression is hiding inside CATOBJEXT.
11549 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!$CATOBJEXT!"`
11550 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\$CATOBJEXT!!"`
11551 # The user is allowed to set LINGUAS to a list of languages to
11552 # install catalogs for. If it's empty that means "all of them."
11553 if test "x$LINGUAS" = x
; then
11554 CATALOGS
="$CATALOGS $cat"
11555 XLINGUAS
="$XLINGUAS $lang"
11557 case "$LINGUAS" in *$lang*)
11558 CATALOGS
="$CATALOGS $cat"
11559 XLINGUAS
="$XLINGUAS $lang"
11564 LINGUAS
="$XLINGUAS"
11565 echo "$as_me:$LINENO: result: $LINGUAS" >&5
11566 echo "${ECHO_T}$LINGUAS" >&6
11570 if test -n "$ac_aux_dir"; then
11571 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
11573 if test -z "$MKINSTALLDIRS"; then
11574 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
11578 INTL_LIBTOOL_SUFFIX_PREFIX
=
11582 # Windows32 Registry support for specifying GCC installation paths.
11583 # Check whether --enable-win32-registry or --disable-win32-registry was given.
11584 if test "${enable_win32_registry+set}" = set; then
11585 enableval
="$enable_win32_registry"
11589 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11590 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
11591 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
11592 if test "x$enable_win32_registry" != xno
; then
11594 cat >>confdefs.h
<<\_ACEOF
11595 #define ENABLE_WIN32_REGISTRY 1
11598 echo "$as_me:$LINENO: result: yes" >&5
11599 echo "${ECHO_T}yes" >&6
11600 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
11601 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
11602 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11605 ac_func_search_save_LIBS
=$LIBS
11606 ac_cv_search_RegOpenKeyExA
=no
11607 cat >conftest.
$ac_ext <<_ACEOF
11608 #line $LINENO "configure"
11611 cat confdefs.h
>>conftest.
$ac_ext
11612 cat >>conftest.
$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11615 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */
11621 char RegOpenKeyExA ();
11630 rm -f conftest.
$ac_objext conftest
$ac_exeext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11632 (eval $ac_link) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try
='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_search_RegOpenKeyExA
="none required"
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.
$ac_ext >&5
11648 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11649 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
11650 for ac_lib
in advapi32
; do
11651 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11652 cat >conftest.
$ac_ext <<_ACEOF
11653 #line $LINENO "configure"
11656 cat confdefs.h
>>conftest.
$ac_ext
11657 cat >>conftest.
$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11660 /* Override any gcc2 internal prototype to avoid an error. */
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char RegOpenKeyExA ();
11675 rm -f conftest.
$ac_objext conftest
$ac_exeext
11676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try
='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.
$ac_ext >&5
11694 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11697 LIBS
=$ac_func_search_save_LIBS
11699 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
11700 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
11701 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
11702 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
11707 echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6
11711 # Check if user specified a different registry key.
11712 case "x${enable_win32_registry}" in
11715 gcc_cv_win32_registry_key
="$VERSION"
11718 # no registry lookup.
11719 gcc_cv_win32_registry_key
=''
11722 # user-specified key.
11723 gcc_cv_win32_registry_key
="$enable_win32_registry"
11727 if test "x$enable_win32_registry" != xno
; then
11728 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
11729 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
11731 cat >>confdefs.h
<<_ACEOF
11732 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
11735 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
11736 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
11741 # Get an absolute path to the GCC top-level source directory
11742 holddir
=`${PWDCMD-pwd}`
11744 topdir
=`${PWDCMD-pwd}`
11747 # Conditionalize the makefile for this host machine.
11748 # Make-host contains the concatenation of all host makefile fragments
11749 # [there can be more than one]. This file is built by configure.frag.
11750 host_overrides
=Make-host
11751 dep_host_xmake_file
=
11752 for f
in ..
${host_xmake_file}
11754 if test -f ${srcdir}/config
/$f
11756 dep_host_xmake_file
="${dep_host_xmake_file} ${srcdir}/config/$f"
11760 # Conditionalize the makefile for this target machine.
11761 # Make-target contains the concatenation of all host makefile fragments
11762 # [there can be more than one]. This file is built by configure.frag.
11763 target_overrides
=Make-target
11765 for f
in ..
${tmake_file}
11767 if test -f ${srcdir}/config
/$f
11769 dep_tmake_file
="${dep_tmake_file} ${srcdir}/config/$f"
11773 symbolic_link
='ln -s'
11775 # If the host doesn't support symlinks, modify CC in
11776 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
11777 # Otherwise, we can use "CC=$(CC)".
11779 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
11781 cc_set_by_configure
="\$(CC)"
11782 quoted_cc_set_by_configure
="\$(CC)"
11783 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
11784 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
11787 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
11789 symbolic_link
="cp -p"
11793 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
11794 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
11795 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
11796 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
11800 out_object_file
=`basename $out_file .c`.o
11803 for f
in $tm_file; do
11806 tm_file_list
="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11808 tm_file_list
="${tm_file_list} \$(srcdir)/$f" ;;
11809 *) tm_file_list
="${tm_file_list} \$(srcdir)/config/$f" ;;
11814 for f
in $tm_p_file; do
11817 tm_p_file_list
="${tm_p_file_list} $f" ;;
11818 *) tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f" ;;
11823 for f
in $host_xm_file; do
11826 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11828 host_xm_file_list
="${host_xm_file_list} $f" ;;
11830 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
11831 *) host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f" ;;
11835 build_xm_file_list
=
11836 for f
in $build_xm_file; do
11839 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;;
11840 auto-build.h | auto-host.h
)
11841 build_xm_file_list
="${build_xm_file_list} $f" ;;
11843 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/$f" ;;
11844 *) build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f" ;;
11848 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
11849 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11852 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11853 if test x
$host != x
$target
11855 CROSS
="-DCROSS_COMPILE"
11857 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
11858 case "$host","$target" in
11859 i?
86-*-*,x86_64-
*-* \
11860 | powerpc
*-*-*,powerpc64
*-*-*)
11861 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11863 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11864 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
11865 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
11868 # If this is a cross-compiler that does not
11869 # have its own set of headers then define
11872 # If this is using newlib, then define inhibit_libc in LIBGCC2_CFLAGS.
11873 # This prevents libgcc2 from containing any code which requires libc
11876 if { test x
$host != x
$target && test "x$with_headers" = x
&&
11877 test "x$with_sysroot" = x
; } ||
test x
$with_newlib = xyes
; then
11878 inhibit_libc
=-Dinhibit_libc
11882 # When building gcc with a cross-compiler, we need to adjust things so
11883 # that the generator programs are still built with the native compiler.
11884 # Also, we cannot run fixincludes or fix-header.
11886 # These are the normal (build=host) settings:
11888 BUILD_PREFIX_1
=ignore-
11890 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11892 STMP_FIXINC
=stmp-fixinc
11893 STMP_FIXPROTO
=stmp-fixproto
11895 # And these apply if build != host.
11896 if test x
$build != x
$host
11898 BUILD_PREFIX
=build-
11899 BUILD_PREFIX_1
=build-
11900 BUILD_CC
='$(CC_FOR_BUILD)'
11901 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)'
11903 if test "x$TARGET_SYSTEM_ROOT" = x
; then
11909 # Expand extra_headers to include complete path.
11910 # This substitutes for lots of t-* files.
11911 extra_headers_list
=
11912 if test "x$extra_headers" = x
11915 # Prepend ${srcdir}/config/${cpu_type}/ to every entry in extra_headers.
11916 for file in $extra_headers;
11918 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11922 # Add a definition of USE_COLLECT2 if system wants one.
11923 case $use_collect2 in
11924 no
) use_collect2
= ;;
11927 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11928 xm_defines
="${xm_defines} USE_COLLECT2"
11932 # Identify the assembler which will work hand-in-glove with the newly
11933 # built GCC, so that we can examine its features. This is the assembler
11934 # which will be driven by the driver program.
11936 # If build != host, and we aren't building gas in-tree, we identify a
11937 # build->target assembler and hope that it will have the same features
11938 # as the host->target assembler we'll be using.
11939 echo "$as_me:$LINENO: checking what assembler to use" >&5
11940 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
11943 gcc_cv_gas_major_version
=
11944 gcc_cv_gas_minor_version
=
11945 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
11946 if test -x "$DEFAULT_ASSEMBLER"; then
11947 gcc_cv_as
="$DEFAULT_ASSEMBLER"
11948 elif test -x "$AS"; then
11950 elif test -x as
$host_exeext; then
11951 # Build using assembler in the current directory.
11952 gcc_cv_as
=.
/as
$host_exeext
11953 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
11954 && test -f ..
/gas
/Makefile
; then
11955 # Single tree build which includes gas.
11957 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
11958 for f
in $gcc_cv_as_bfd_srcdir/configure \
11959 $gcc_cv_as_gas_srcdir/configure \
11960 $gcc_cv_as_gas_srcdir/configure.
in \
11961 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
11962 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
11963 if test x
$gcc_cv_gas_version != x
; then
11967 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
11968 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
11969 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
11971 rm -f as
$host_exeext
11972 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
11975 if test "x$gcc_cv_as" = x
; then
11976 # Search the same directories that the installed compiler will
11977 # search. Else we may find the wrong assembler and lose. If we
11978 # do not find a suitable assembler binary, then try the user's
11981 # Also note we have to check MD_EXEC_PREFIX before checking the
11982 # user's path. Unfortunately, there is no good way to get at the
11983 # value of MD_EXEC_PREFIX here. So we do a brute force search
11984 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
11985 # to be fixed as part of the make/configure rewrite too.
11987 if test "x$exec_prefix" = xNONE
; then
11988 if test "x$prefix" = xNONE
; then
11989 test_prefix
=/usr
/local
11991 test_prefix
=$prefix
11994 test_prefix
=$exec_prefix
11997 # If the loop below does not find an assembler, then use whatever
11998 # one we can find in the users's path.
12000 if test "x$program_prefix" != xNONE
; then
12001 gcc_cv_as
=${program_prefix}as
$host_exeext
12003 gcc_cv_as
=`echo as | sed ${program_transform_name}`$host_exeext
12006 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
12007 $test_prefix/lib/gcc-lib/$target_alias \
12008 /usr/lib/gcc/$target_alias/$gcc_version \
12009 /usr/lib/gcc/$target_alias \
12010 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
12011 $test_prefix/$target_alias/bin"
12013 if test x
$host = x
$target; then
12014 test_dirs
="$test_dirs \
12019 /bsd43/usr/lib/cmplrs/cc \
12020 /usr/cross64/usr/bin \
12021 /usr/lib/cmplrs/cc \
12022 /sysv/usr/lib/cmplrs/cc \
12023 /svr4/usr/lib/cmplrs/cc \
12027 for dir
in $test_dirs; do
12028 if test -x $dir/as
$host_exeext; then
12029 gcc_cv_as
=$dir/as
$host_exeext
12034 case $in_tree_gas in
12036 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12037 echo "${ECHO_T}\"newly built gas\"" >&6
12040 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12041 echo "${ECHO_T}$gcc_cv_as" >&6
12045 # Identify the linker which will work hand-in-glove with the newly
12046 # built GCC, so that we can examine its features. This is the linker
12047 # which will be driven by the driver program.
12049 # If build != host, and we aren't building gas in-tree, we identify a
12050 # build->target linker and hope that it will have the same features
12051 # as the host->target linker we'll be using.
12052 echo "$as_me:$LINENO: checking what linker to use" >&5
12053 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12056 gcc_cv_gld_major_version
=
12057 gcc_cv_gld_minor_version
=
12058 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12059 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12060 if test -x "$DEFAULT_LINKER"; then
12061 gcc_cv_ld
="$DEFAULT_LINKER"
12062 elif test -x "$LD"; then
12064 elif test -x collect-ld
$host_exeext; then
12065 # Build using linker in the current directory.
12066 gcc_cv_ld
=.
/collect-ld
$host_exeext
12067 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12068 && test -f ..
/ld
/Makefile
; then
12069 # Single tree build which includes ld.
12071 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
12073 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
12074 if test x
$gcc_cv_gld_version != x
; then
12078 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12079 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12080 rm -f collect-ld
$host_exeext
12081 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
12085 if test "x$gcc_cv_ld" = x
; then
12086 # Search the same directories that the installed compiler will
12087 # search. Else we may find the wrong linker and lose. If we
12088 # do not find a suitable linker binary, then try the user's
12091 # Also note we have to check MD_EXEC_PREFIX before checking the
12092 # user's path. Unfortunately, there is no good way to get at the
12093 # value of MD_EXEC_PREFIX here. So we do a brute force search
12094 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12095 # to be fixed as part of the make/configure rewrite too.
12097 if test "x$exec_prefix" = xNONE
; then
12098 if test "x$prefix" = xNONE
; then
12099 test_prefix
=/usr
/local
12101 test_prefix
=$prefix
12104 test_prefix
=$exec_prefix
12107 # If the loop below does not find an linker, then use whatever
12108 # one we can find in the users's path.
12110 if test "x$program_prefix" != xNONE
; then
12111 gcc_cv_ld
=${program_prefix}ld
$host_exeext
12113 gcc_cv_ld
=`echo ld | sed ${program_transform_name}`$host_exeext
12116 test_dirs
="$test_prefix/lib/gcc-lib/$target_alias/$gcc_version \
12117 $test_prefix/lib/gcc-lib/$target_alias \
12118 /usr/lib/gcc/$target_alias/$gcc_version \
12119 /usr/lib/gcc/$target_alias \
12120 $test_prefix/$target_alias/bin/$target_alias/$gcc_version \
12121 $test_prefix/$target_alias/bin"
12123 if test x
$host = x
$target; then
12124 test_dirs
="$test_dirs \
12129 /bsd43/usr/lib/cmplrs/cc \
12130 /usr/cross64/usr/bin \
12131 /usr/lib/cmplrs/cc \
12132 /sysv/usr/lib/cmplrs/cc \
12133 /svr4/usr/lib/cmplrs/cc \
12137 for dir
in $test_dirs; do
12138 if test -x $dir/ld
$host_exeext; then
12139 gcc_cv_ld
=$dir/ld
$host_exeext
12144 case $in_tree_ld in
12146 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
12147 echo "${ECHO_T}\"newly built ld\"" >&6
12150 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
12151 echo "${ECHO_T}$gcc_cv_ld" >&6
12155 # Figure out what nm we will be using.
12156 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
12157 echo "$as_me:$LINENO: checking what nm to use" >&5
12158 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
12160 if test -x nm
$host_exeext; then
12161 gcc_cv_nm
=.
/nm
$host_exeext
12162 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12163 && test -f ..
/binutils
/Makefile
; then
12164 # Single tree build which includes binutils.
12166 gcc_cv_nm
=.
/nm
$host_exeext
12167 rm -f nm
$host_exeext
12168 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
12169 elif test "x$program_prefix" != xNONE
; then
12170 gcc_cv_nm
=${program_prefix}nm
$host_exeext
12172 gcc_cv_nm
=`echo nm | sed ${program_transform_name}`$host_exeext
12174 case $in_tree_nm in
12175 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
12176 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
12177 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
12178 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
12181 # Figure out what objdump we will be using.
12182 echo "$as_me:$LINENO: checking what objdump to use" >&5
12183 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
12185 if test -x objdump
$host_exeext; then
12186 gcc_cv_objdump
=.
/objdump
$host_exeext
12187 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
12188 && test -f ..
/binutils
/Makefile
; then
12189 # Single tree build which includes binutils.
12190 in_tree_objdump
=yes
12191 gcc_cv_objdump
=.
/objdump
$host_exeext
12192 rm -f objdump
$host_exeext
12193 $symbolic_link ..
/binutils
/objdump
$host_exeext \
12194 objdump
$host_exeext 2>/dev
/null
12195 elif test "x$program_prefix" != xNONE
; then
12196 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
12198 gcc_cv_objdump
=`echo objdump | \
12199 sed ${program_transform_name}`$host_exeext
12201 case $in_tree_objdump in
12202 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
12203 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
12204 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
12205 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
12208 # Figure out what assembler alignment features are present.
12209 echo "$as_me:$LINENO: checking assembler alignment features" >&5
12210 echo $ECHO_N "checking assembler alignment features... $ECHO_C" >&6
12211 gcc_cv_as_alignment_features
=none
12212 if test $in_tree_gas = yes; then
12213 # Gas version 2.6 and later support for .balign and .p2align.
12214 if test $gcc_cv_gas_major_version -eq 2 \
12215 && test $gcc_cv_gas_minor_version -ge 6 \
12216 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12219 gcc_cv_as_alignment_features
=".balign and .p2align"
12220 cat >>confdefs.h
<<\_ACEOF
12221 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12228 # Gas version 2.8 and later support specifying the maximum
12229 # bytes to skip when using .p2align.
12230 if test $gcc_cv_gas_major_version -eq 2 \
12231 && test $gcc_cv_gas_minor_version -ge 8 \
12232 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12235 gcc_cv_as_alignment_features
=".p2align including maximum skip"
12236 cat >>confdefs.h
<<\_ACEOF
12237 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12244 elif test x
$gcc_cv_as != x
; then
12245 # Check if we have .balign and .p2align
12246 echo ".balign 4" > conftest.s
12247 echo ".p2align 2" >> conftest.s
12248 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12249 gcc_cv_as_alignment_features
=".balign and .p2align"
12250 cat >>confdefs.h
<<\_ACEOF
12251 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
12255 rm -f conftest.s conftest.o
12256 # Check if specifying the maximum bytes to skip when
12257 # using .p2align is supported.
12258 echo ".p2align 4,,7" > conftest.s
12259 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12260 gcc_cv_as_alignment_features
=".p2align including maximum skip"
12261 cat >>confdefs.h
<<\_ACEOF
12262 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
12266 rm -f conftest.s conftest.o
12268 echo "$as_me:$LINENO: result: $gcc_cv_as_alignment_features" >&5
12269 echo "${ECHO_T}$gcc_cv_as_alignment_features" >&6
12271 echo "$as_me:$LINENO: checking assembler subsection support" >&5
12272 echo $ECHO_N "checking assembler subsection support... $ECHO_C" >&6
12273 gcc_cv_as_subsections
=no
12274 if test $in_tree_gas = yes ; then
12275 if test $gcc_cv_gas_major_version -eq 2 \
12276 && test $gcc_cv_gas_minor_version -ge 9 \
12277 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12280 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
12281 gcc_cv_as_subsections
="working .subsection -1"
12287 elif test x
$gcc_cv_as != x
; then
12288 # Check if we have .subsection
12289 echo ".subsection 1" > conftest.s
12290 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12291 gcc_cv_as_subsections
=".subsection"
12292 if test x
$gcc_cv_nm != x
; then
12293 cat > conftest.s
<<EOF
12294 conftest_label1: .word 0
12296 conftest_label2: .word 0
12299 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12300 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
12301 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
12302 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1; then
12305 gcc_cv_as_subsections
="working .subsection -1"
12310 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12312 if test x
"$gcc_cv_as_subsections" = x
"working .subsection -1"; then
12314 cat >>confdefs.h
<<\_ACEOF
12315 #define HAVE_GAS_SUBSECTION_ORDERING 1
12319 echo "$as_me:$LINENO: result: $gcc_cv_as_subsections" >&5
12320 echo "${ECHO_T}$gcc_cv_as_subsections" >&6
12322 echo "$as_me:$LINENO: checking assembler weak support" >&5
12323 echo $ECHO_N "checking assembler weak support... $ECHO_C" >&6
12325 if test $in_tree_gas = yes ; then
12326 if test $gcc_cv_gas_major_version -eq 2 \
12327 && test $gcc_cv_gas_minor_version -ge 2 \
12328 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12331 gcc_cv_as_weak
="yes"
12336 elif test x
$gcc_cv_as != x
; then
12337 # Check if we have .weak
12338 echo " .weak foobar" > conftest.s
12339 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12340 gcc_cv_as_weak
="yes"
12342 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12344 if test x
"$gcc_cv_as_weak" = xyes
; then
12346 cat >>confdefs.h
<<\_ACEOF
12347 #define HAVE_GAS_WEAK 1
12351 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
12352 echo "${ECHO_T}$gcc_cv_as_weak" >&6
12354 echo "$as_me:$LINENO: checking assembler hidden support" >&5
12355 echo $ECHO_N "checking assembler hidden support... $ECHO_C" >&6
12356 gcc_cv_as_hidden
=no
12357 if test $in_tree_gas = yes ; then
12358 if test $gcc_cv_gas_major_version -eq 2 \
12359 && (test $gcc_cv_gas_minor_version -gt 12 \
12360 ||
(test $gcc_cv_gas_minor_version -eq 12 \
12361 && test $gcc_cv_gas_patch_version -ge 1 )) \
12362 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12365 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
12366 gcc_cv_as_hidden
="yes"
12372 elif test x
$gcc_cv_as != x
; then
12373 # Check if we have .hidden
12374 echo " .hidden foobar" > conftest.s
12375 echo "foobar:" >> conftest.s
12376 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12377 gcc_cv_as_hidden
="yes"
12379 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12381 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
12382 # This is irritatingly difficult to feature test for. Look for
12383 # the date string after the version number.
12384 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | head -1`
12385 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
12386 ld_vers
=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\([ ].*\|\)$,\1,p'`
12387 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'`
12388 if test 0"$ld_date" -lt 20020404; then
12389 if test -n "$ld_date"; then
12390 # If there was date string, but was earlier than 2002-04-04, fail
12391 gcc_cv_as_hidden
="no"
12392 elif test -z "$ld_vers"; then
12393 # If there was no date string nor ld version number, something is wrong
12394 gcc_cv_as_hidden
="no"
12396 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
12397 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
12398 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
12399 test -z "$ld_vers_patch" && ld_vers_patch
=0
12400 if test "$ld_vers_major" -lt 2; then
12401 gcc_cv_as_hidden
="no"
12402 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
12403 gcc_cv_as_hidden
="no"
12404 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 \
12405 -a "$ld_vers_patch" -eq 0; then
12406 gcc_cv_as_hidden
="no"
12412 if test x
"$gcc_cv_as_hidden" = xyes
; then
12414 cat >>confdefs.h
<<\_ACEOF
12415 #define HAVE_GAS_HIDDEN 1
12419 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
12420 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
12421 libgcc_visibility
=$gcc_cv_as_hidden
12424 if test x
"$gnu_ld_flag" = x
"no"; then
12425 # Even if using gas with .hidden support, the resulting object files
12426 # cannot be linked with the IRIX 6 O32 linker. With the N32 and
12427 # N64 linkers, the problem is that the linker refuses to accept
12428 # -call_shared (passed by default to the linker) and -r (used to
12429 # link the object file generated without .hidden directives with
12430 # one that hides symbols), so we also lose.
12431 libgcc_visibility
=no
12437 echo "$as_me:$LINENO: checking assembler leb128 support" >&5
12438 echo $ECHO_N "checking assembler leb128 support... $ECHO_C" >&6
12439 gcc_cv_as_leb128
=no
12440 if test $in_tree_gas = yes ; then
12441 if test $gcc_cv_gas_major_version -eq 2 \
12442 && test $gcc_cv_gas_minor_version -ge 11 \
12443 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12446 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
12447 gcc_cv_as_leb128
="yes"
12453 elif test x
$gcc_cv_as != x
; then
12454 # Check if we have .[us]leb128, and support symbol arithmetic with it.
12455 cat > conftest.s
<<EOF
12463 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12464 gcc_cv_as_leb128
="yes"
12466 # GAS versions before 2.11 do not support uleb128,
12467 # despite appearing to.
12468 # ??? There exists an elf-specific test that will crash
12469 # the assembler. Perhaps it's better to figure out whether
12470 # arbitrary sections are supported and try the test.
12471 as_ver
=`$gcc_cv_as --version 2>/dev/null | head -1`
12472 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
12473 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
12474 as_major
=`echo $as_ver | sed 's/\..*//'`
12475 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
12476 if test $as_major -eq 2 -a $as_minor -lt 11; then
12477 gcc_cv_as_leb128
="no"
12481 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
12483 if test x
"$gcc_cv_as_leb128" = xyes
; then
12485 cat >>confdefs.h
<<\_ACEOF
12486 #define HAVE_AS_LEB128 1
12490 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
12491 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
12493 echo "$as_me:$LINENO: checking assembler eh_frame optimization" >&5
12494 echo $ECHO_N "checking assembler eh_frame optimization... $ECHO_C" >&6
12495 gcc_cv_as_eh_frame
=no
12496 if test $in_tree_gas = yes ; then
12497 if test $gcc_cv_gas_major_version -eq 2 \
12498 && test $gcc_cv_gas_minor_version -ge 12 \
12499 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12502 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
12503 gcc_cv_as_eh_frame
="yes"
12509 elif test x
$gcc_cv_as != x
; then
12510 # Check if this is GAS.
12511 as_ver
=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
12512 rm -f a.out
2> /dev
/null
12513 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
12514 # Versions up to and including 2.11.0 may mis-optimize
12515 # .eh_frame data. Try something.
12516 cat > conftest.s
<<EOF
12523 .section .eh_frame,"aw",@progbits
12525 .4byte .LECIE1-.LSCIE1
12539 .4byte .LEFDE1-.LASFDE1
12541 .4byte .LASFDE1-__FRAME_BEGIN__
12550 cat > conftest.lit
<<EOF
12551 0000 10000000 00000000 017a0001 781a0004 .........z..x...
12552 0010 01000000 12000000 18000000 00000000 ................
12553 0020 08000000 04080000 0044 .........D
12555 cat > conftest.big
<<EOF
12556 0000 00000010 00000000 017a0001 781a0004 .........z..x...
12557 0010 00000001 00000012 00000018 00000000 ................
12558 0020 00000008 04000000 0844 .........D
12560 # If the assembler didn't choke, and we can objdump,
12561 # and we got the correct data, then succeed.
12562 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
12563 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
12564 |
tail -3 > conftest.got \
12565 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
12566 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
12568 gcc_cv_as_eh_frame
="yes"
12570 gcc_cv_as_eh_frame
="bad"
12571 if $gcc_cv_as -o conftest.o
--traditional-format /dev
/null
; then
12573 cat >>confdefs.h
<<\_ACEOF
12574 #define USE_AS_TRADITIONAL_FORMAT 1
12582 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
12583 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
12585 echo "$as_me:$LINENO: checking assembler section merging support" >&5
12586 echo $ECHO_N "checking assembler section merging support... $ECHO_C" >&6
12587 gcc_cv_as_shf_merge
=no
12588 if test $in_tree_gas = yes ; then
12589 if test $gcc_cv_gas_major_version -eq 2 \
12590 && test $gcc_cv_gas_minor_version -ge 12 \
12591 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12594 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null
; then
12595 gcc_cv_as_shf_merge
=yes
12601 elif test x
$gcc_cv_as != x
; then
12602 # Check if we support SHF_MERGE sections
12603 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
12604 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1; then
12605 gcc_cv_as_shf_merge
=yes
12607 rm -f conftest.s conftest.o
12609 if test x
"$gcc_cv_as_shf_merge" = xyes
; then
12611 cat >>confdefs.h
<<\_ACEOF
12612 #define HAVE_GAS_SHF_MERGE 1
12616 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
12617 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
12619 echo "$as_me:$LINENO: checking assembler thread-local storage support" >&5
12620 echo $ECHO_N "checking assembler thread-local storage support... $ECHO_C" >&6
12628 .section ".tdata","awT",@progbits
12631 ldq $27,__tls_get_addr($29) !literal!1
12632 lda $16,foo($29) !tlsgd!1
12633 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
12634 ldq $27,__tls_get_addr($29) !literal!2
12635 lda $16,foo($29) !tlsldm!2
12636 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
12637 ldq $1,foo($29) !gotdtprel
12638 ldah $2,foo($29) !dtprelhi
12639 lda $3,foo($2) !dtprello
12640 lda $4,foo($29) !dtprel
12641 ldq $1,foo($29) !gottprel
12642 ldah $2,foo($29) !tprelhi
12643 lda $3,foo($2) !tprello
12644 lda $4,foo($29) !tprel'
12650 .section ".tdata","awT",@progbits
12654 leal foo@TLSGD(,%ebx,1), %eax
12655 leal foo@TLSLDM(%ebx), %eax
12656 leal foo@DTPOFF(%eax), %edx
12657 movl foo@GOTTPOFF(%ebx), %eax
12658 subl foo@GOTTPOFF(%ebx), %eax
12659 addl foo@GOTNTPOFF(%ebx), %eax
12660 movl foo@INDNTPOFF, %eax
12661 movl $foo@TPOFF, %eax
12662 subl $foo@TPOFF, %eax
12663 leal foo@NTPOFF(%ecx), %eax'
12669 .section ".tdata","awT",@progbits
12673 leaq foo@TLSGD(%rip), %rdi
12674 leaq foo@TLSLD(%rip), %rdi
12675 leaq foo@DTPOFF(%rax), %rdx
12676 movq foo@GOTTPOFF(%rip), %rax
12677 movq $foo@TPOFF, %rax'
12683 .section ".tdata","awT",@progbits
12686 addl r16 = @ltoff(@dtpmod(foo#)), gp
12687 addl r17 = @ltoff(@dtprel(foo#)), gp
12688 addl r18 = @ltoff(@tprel(foo#)), gp
12689 addl r19 = @dtprel(foo#), gp
12690 adds r21 = @dtprel(foo#), r13
12691 movl r23 = @dtprel(foo#)
12692 addl r20 = @tprel(foo#), gp
12693 adds r22 = @tprel(foo#), r13
12694 movl r24 = @tprel(foo#)'
12700 .section ".tdata","awT",@progbits
12707 .long foo@GOTNTPOFF
12708 .long foo@INDNTPOFF
12709 l %r1,foo@GOTNTPOFF(%r12)
12710 l %r1,0(%r1):tls_load:foo
12711 bas %r14,0(%r1,%r13):tls_gdcall:foo
12712 bas %r14,0(%r1,%r13):tls_ldcall:foo'
12718 .section ".tdata","awT",@progbits
12725 .quad foo@GOTNTPOFF
12726 lg %r1,foo@GOTNTPOFF(%r12)
12727 larl %r1,foo@INDNTPOFF
12728 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
12729 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
12734 if test -z "$tls_first_major"; then
12736 elif test $in_tree_gas = yes ; then
12737 if test $gcc_cv_gas_major_version -eq $tls_first_major \
12738 && test $gcc_cv_gas_minor_version -ge $tls_first_minor \
12739 ||
test $gcc_cv_gas_major_version -gt $tls_first_major ; then
12747 elif test x
$gcc_cv_as != x
; then
12748 echo "$conftest_s" > conftest.s
12749 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s
> /dev
/null
2>&1
12753 rm -f conftest.s conftest.o
12755 if test "$gcc_cv_as_tls" = yes; then
12757 cat >>confdefs.h
<<\_ACEOF
12758 #define HAVE_AS_TLS 1
12762 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
12763 echo "${ECHO_T}$gcc_cv_as_tls" >&6
12766 # All TARGET_ABI_OSF targets.
12767 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
12768 echo "$as_me:$LINENO: checking assembler supports explicit relocations" >&5
12769 echo $ECHO_N "checking assembler supports explicit relocations... $ECHO_C" >&6
12770 if test "${gcc_cv_as_explicit_relocs+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 gcc_cv_as_explicit_relocs
=unknown
12775 if test $in_tree_gas = yes ; then
12776 if test $gcc_cv_gas_major_version -eq 2 \
12777 && test $gcc_cv_gas_minor_version -ge 12 \
12778 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12781 gcc_cv_as_explicit_relocs
=yes
12786 elif test x
$gcc_cv_as != x
; then
12787 cat > conftest.s
<< 'EOF'
12790 extbl
$3, $2, $3 !lituse_bytoff
!1
12791 ldq
$2, a
($29) !literal
!1
12792 ldq
$4, b
($29) !literal
!2
12793 ldq_u
$3, 0($2) !lituse_base
!1
12794 ldq
$27, f
($29) !literal
!5
12795 jsr
$26, ($27), f
!lituse_jsr
!5
12796 ldah
$29, 0($26) !gpdisp
!3
12797 lda
$0, c
($29) !gprel
12798 ldah
$1, d
($29) !gprelhigh
12799 lda
$1, d
($1) !gprellow
12800 lda
$29, 0($29) !gpdisp
!3
12802 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12803 gcc_cv_as_explicit_relocs
=yes
12805 gcc_cv_as_explicit_relocs
=no
12807 rm -f conftest.s conftest.o
12811 echo "$as_me:$LINENO: result: $gcc_cv_as_explicit_relocs" >&5
12812 echo "${ECHO_T}$gcc_cv_as_explicit_relocs" >&6
12813 if test "x$gcc_cv_as_explicit_relocs" = xyes
; then
12815 cat >>confdefs.h
<<\_ACEOF
12816 #define HAVE_AS_EXPLICIT_RELOCS 1
12822 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12823 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12824 if test "${gcc_cv_as_register_pseudo_op+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 gcc_cv_as_register_pseudo_op
=unknown
12829 if test x
$gcc_cv_as != x
; then
12830 # Check if we have .register
12831 echo ".register %g2, #scratch" > conftest.s
12832 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
12833 gcc_cv_as_register_pseudo_op
=yes
12835 gcc_cv_as_register_pseudo_op
=no
12837 rm -f conftest.s conftest.o
12841 echo "$as_me:$LINENO: result: $gcc_cv_as_register_pseudo_op" >&5
12842 echo "${ECHO_T}$gcc_cv_as_register_pseudo_op" >&6
12843 if test "x$gcc_cv_as_register_pseudo_op" = xyes
; then
12845 cat >>confdefs.h
<<\_ACEOF
12846 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12851 echo "$as_me:$LINENO: checking assembler supports -relax" >&5
12852 echo $ECHO_N "checking assembler supports -relax... $ECHO_C" >&6
12853 if test "${gcc_cv_as_relax_opt+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 gcc_cv_as_relax_opt
=unknown
12858 if test x
$gcc_cv_as != x
; then
12859 # Check if gas supports -relax
12860 echo ".text" > conftest.s
12861 if $gcc_cv_as -relax -o conftest.o conftest.s
> /dev
/null
2>&1; then
12862 gcc_cv_as_relax_opt
=yes
12864 gcc_cv_as_relax_opt
=no
12866 rm -f conftest.s conftest.o
12870 echo "$as_me:$LINENO: result: $gcc_cv_as_relax_opt" >&5
12871 echo "${ECHO_T}$gcc_cv_as_relax_opt" >&6
12872 if test "x$gcc_cv_as_relax_opt" = xyes
; then
12874 cat >>confdefs.h
<<\_ACEOF
12875 #define HAVE_AS_RELAX_OPTION 1
12880 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12881 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12882 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 gcc_cv_as_sparc_ua_pcrel
=unknown
12887 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
12888 gcc_cv_as_sparc_ua_pcrel
=no
12889 echo ".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo)" > conftest.s
12890 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
12891 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
12892 gcc_cv_as_sparc_ua_pcrel
=yes
12894 rm -f conftest.s conftest.o conftest
12898 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
12899 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
12900 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
12902 cat >>confdefs.h
<<\_ACEOF
12903 #define HAVE_AS_SPARC_UA_PCREL 1
12908 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5
12909 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs against hidden symbols... $ECHO_C" >&6
12910 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12914 if test "x$gcc_cv_as_sparc_ua_pcrel" = xyes
; then
12915 gcc_cv_as_sparc_ua_pcrel_hidden
=unknown
12916 if test x
$gcc_cv_objdump != x
; then
12917 gcc_cv_as_sparc_ua_pcrel_hidden
=no
12918 echo ".data; .align 4; .byte 0x31; .uaword %r_disp32(foo)" > conftest.s
12919 echo ".byte 0x32, 0x33, 0x34; .global foo; .hidden foo" >> conftest.s
12920 echo "foo: .skip 4" >> conftest.s
12921 if $gcc_cv_as -K PIC
-o conftest.o conftest.s
> /dev
/null
2>&1 \
12922 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
12923 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
12924 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
12925 if $gcc_cv_objdump -R conftest
2> /dev
/null \
12926 |
grep 'DISP32' > /dev
/null
2>&1; then
12929 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
12933 rm -f conftest.s conftest.o conftest
12935 gcc_cv_as_sparc_ua_pcrel_hidden
="$gcc_cv_as_sparc_ua_pcrel"
12939 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
12940 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
12941 if test "x$gcc_cv_as_sparc_ua_pcrel_hidden" = xyes
; then
12943 cat >>confdefs.h
<<\_ACEOF
12944 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
12949 echo "$as_me:$LINENO: checking for assembler offsetable %lo() support" >&5
12950 echo $ECHO_N "checking for assembler offsetable %lo() support... $ECHO_C" >&6
12951 if test "${gcc_cv_as_offsetable_lo10+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 gcc_cv_as_offsetable_lo10
=unknown
12956 if test "x$gcc_cv_as" != x
; then
12957 # Check if assembler has offsetable %lo()
12958 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
12959 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
12960 if $gcc_cv_as -xarch=v9
-o conftest.o conftest.s \
12961 > /dev
/null
2>&1 &&
12962 $gcc_cv_as -xarch=v9
-o conftest1.o conftest1.s \
12963 > /dev
/null
2>&1; then
12964 if cmp conftest.o conftest1.o
> /dev
/null
2>&1; then
12965 gcc_cv_as_offsetable_lo10
=no
12967 gcc_cv_as_offsetable_lo10
=yes
12970 gcc_cv_as_offsetable_lo10
=no
12972 rm -f conftest.s conftest.o conftest1.s conftest1.o
12976 echo "$as_me:$LINENO: result: $gcc_cv_as_offsetable_lo10" >&5
12977 echo "${ECHO_T}$gcc_cv_as_offsetable_lo10" >&6
12978 if test "x$gcc_cv_as_offsetable_lo10" = xyes
; then
12980 cat >>confdefs.h
<<\_ACEOF
12981 #define HAVE_AS_OFFSETABLE_LO10 1
12988 i
[34567]86-*-* | x86_64-
*-*)
12989 echo "$as_me:$LINENO: checking assembler instructions" >&5
12990 echo $ECHO_N "checking assembler instructions... $ECHO_C" >&6
12991 gcc_cv_as_instructions
=
12992 if test $in_tree_gas = yes ; then
12993 if test $gcc_cv_gas_major_version -eq 2 \
12994 && test $gcc_cv_gas_minor_version -ge 9 \
12995 ||
test $gcc_cv_gas_major_version -gt 2 ; then
12998 gcc_cv_as_instructions
="filds fists"
13003 elif test x
$gcc_cv_as != x
; then
13004 set "filds fists" "filds mem; fists mem"
13005 while test $# -gt 0
13007 echo "$2" > conftest.s
13008 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
13009 gcc_cv_as_instructions
=${gcc_cv_as_instructions}$1" "
13013 rm -f conftest.s conftest.o
13015 if test x
"$gcc_cv_as_instructions" != x
; then
13016 cat >>confdefs.h
<<_ACEOF
13017 #define HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr 'a-z ' 'A-Z_'` 1
13021 echo "$as_me:$LINENO: result: $gcc_cv_as_instructions" >&5
13022 echo "${ECHO_T}$gcc_cv_as_instructions" >&6
13024 echo "$as_me:$LINENO: checking assembler GOTOFF in data directives" >&5
13025 echo $ECHO_N "checking assembler GOTOFF in data directives... $ECHO_C" >&6
13026 gcc_cv_as_gotoff_in_data
=no
13027 if test $in_tree_gas = yes ; then
13028 if test $gcc_cv_gas_major_version -eq 2 \
13029 && test $gcc_cv_gas_minor_version -ge 11 \
13030 ||
test $gcc_cv_gas_major_version -gt 2 ; then
13033 gcc_cv_as_gotoff_in_data
=yes
13038 elif test x
$gcc_cv_as != x
; then
13039 cat > conftest.s
<<EOF
13046 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
13047 gcc_cv_as_gotoff_in_data
=yes
13051 cat >>confdefs.h
<<_ACEOF
13052 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_gotoff_in_data = yes; then echo 1; else echo 0; fi`
13055 echo "$as_me:$LINENO: result: $gcc_cv_as_gotoff_in_data" >&5
13056 echo "${ECHO_T}$gcc_cv_as_gotoff_in_data" >&6
13060 echo "$as_me:$LINENO: checking assembler supports ltoffx and ldxmov" >&5
13061 echo $ECHO_N "checking assembler supports ltoffx and ldxmov... $ECHO_C" >&6
13062 if test "${gcc_cv_as_ltoffx_ldxmov_relocs+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 gcc_cv_as_ltoffx_ldxmov_relocs
=unknown
13067 if test $in_tree_gas = yes ; then
13068 if test $gcc_cv_gas_major_version -eq 2 \
13069 && test $gcc_cv_gas_minor_version -ge 14 \
13070 ||
test $gcc_cv_gas_major_version -gt 2 ; then
13073 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
13078 elif test x
$gcc_cv_as != x
; then
13079 cat > conftest.s
<< 'EOF'
13081 addl r15
= @ltoffx
(x
#), gp
13083 ld8.mov r16
= [r15
], x
#
13085 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
13086 gcc_cv_as_ltoffx_ldxmov_relocs
=yes
13088 gcc_cv_as_ltoffx_ldxmov_relocs
=no
13090 rm -f conftest.s conftest.o
13094 echo "$as_me:$LINENO: result: $gcc_cv_as_ltoffx_ldxmov_relocs" >&5
13095 echo "${ECHO_T}$gcc_cv_as_ltoffx_ldxmov_relocs" >&6
13096 if test "x$gcc_cv_as_ltoffx_ldxmov_relocs" = xyes
; then
13098 cat >>confdefs.h
<<\_ACEOF
13099 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
13106 echo "$as_me:$LINENO: checking assembler dwarf2 debug_line support" >&5
13107 echo $ECHO_N "checking assembler dwarf2 debug_line support... $ECHO_C" >&6
13108 gcc_cv_as_dwarf2_debug_line
=no
13109 # ??? Not all targets support dwarf2 debug_line, even within a version
13110 # of gas. Moreover, we need to emit a valid instruction to trigger any
13111 # info to the output file. So, as supported targets are added to gas 2.11,
13112 # add some instruction here to (also) show we expect this might work.
13113 # ??? Once 2.11 is released, probably need to add first known working
13114 # version to the per-target configury.
13116 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
13117 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-*)
13124 if test $in_tree_gas = yes ; then
13125 if test $gcc_cv_gas_major_version -eq 2 \
13126 && test $gcc_cv_gas_minor_version -ge 11 \
13127 ||
test $gcc_cv_gas_major_version -gt 2 ; then
13130 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13131 && test x
"$insn" != x
; then
13132 gcc_cv_as_dwarf2_debug_line
="yes"
13138 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
13139 echo ' .file 1 "conftest.s"' > conftest.s
13140 echo ' .loc 1 3 0' >> conftest.s
13141 echo " $insn" >> conftest.s
13142 # ??? This fails with non-gnu grep.
13143 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
13144 && grep debug_line conftest.o
> /dev
/null
2>&1 ; then
13145 # The .debug_line file table must be in the exact order that
13146 # we specified the files, since these indices are also used
13147 # by DW_AT_decl_file. Approximate this test by testing if
13148 # the assembler bitches if the same index is assigned twice.
13149 echo ' .file 1 "foo.s"' > conftest.s
13150 echo ' .file 1 "bar.s"' >> conftest.s
13151 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1
13153 gcc_cv_as_dwarf2_debug_line
="no"
13155 gcc_cv_as_dwarf2_debug_line
="yes"
13158 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
13160 if test x
"$gcc_cv_as_dwarf2_debug_line" = xyes
; then
13162 cat >>confdefs.h
<<\_ACEOF
13163 #define HAVE_AS_DWARF2_DEBUG_LINE 1
13167 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
13168 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
13170 echo "$as_me:$LINENO: checking assembler --gdwarf2 support" >&5
13171 echo $ECHO_N "checking assembler --gdwarf2 support... $ECHO_C" >&6
13172 gcc_cv_as_gdwarf2_flag
=no
13173 if test $in_tree_gas = yes ; then
13174 if test $gcc_cv_gas_major_version -eq 2 \
13175 && test $gcc_cv_gas_minor_version -ge 11 \
13176 ||
test $gcc_cv_gas_major_version -gt 2 ; then
13179 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13180 && test x
"$insn" != x
; then
13181 gcc_cv_as_gdwarf2_flag
="yes"
13187 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
13188 echo '' > conftest.s
13189 # ??? This fails with non-gnu grep.
13190 if $gcc_cv_as --gdwarf2 -o conftest.o conftest.s
> /dev
/null
2>&1
13192 gcc_cv_as_gdwarf2_flag
="yes"
13194 rm -f conftest.s conftest.o
13196 if test x
"$gcc_cv_as_gdwarf2_flag" = xyes
; then
13198 cat >>confdefs.h
<<\_ACEOF
13199 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
13203 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
13204 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
13206 echo "$as_me:$LINENO: checking assembler --gstabs support" >&5
13207 echo $ECHO_N "checking assembler --gstabs support... $ECHO_C" >&6
13208 gcc_cv_as_gstabs_flag
=no
13209 if test $in_tree_gas = yes ; then
13210 if test $gcc_cv_gas_major_version -eq 2 \
13211 && test $gcc_cv_gas_minor_version -ge 11 \
13212 ||
test $gcc_cv_gas_major_version -gt 2 ; then
13215 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13216 && test x
"$insn" != x
; then
13217 gcc_cv_as_gstabs_flag
="yes"
13223 elif test x
$gcc_cv_as != x
-a x
"$insn" != x
; then
13224 echo '' > conftest.s
13225 # ??? This fails with non-gnu grep.
13226 if $gcc_cv_as --gstabs -o conftest.o conftest.s
> /dev
/null
2>&1 ; then
13227 gcc_cv_as_gstabs_flag
="yes"
13229 rm -f conftest.s conftest.o
13231 if test x
"$gcc_cv_as_gstabs_flag" = xyes
; then
13233 cat >>confdefs.h
<<\_ACEOF
13234 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
13238 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
13239 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
13241 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
13242 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
13243 gcc_cv_ld_ro_rw_mix
=unknown
13244 if test $in_tree_ld = yes ; then
13245 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 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
13246 gcc_cv_ld_ro_rw_mix
=read-write
13248 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
13249 echo '.section "myfoosect", "a"' > conftest1.s
13250 echo '.section "myfoosect", "aw"' > conftest2.s
13251 echo '.byte 1' >> conftest2.s
13252 echo '.section "myfoosect", "a"' > conftest3.s
13253 echo '.byte 0' >> conftest3.s
13254 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
13255 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
13256 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
13257 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
13258 conftest2.o conftest3.o
; then
13259 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
13260 | grep -A1 myfoosect`
13261 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
13262 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
13263 gcc_cv_ld_ro_rw_mix
=read-only
13265 gcc_cv_ld_ro_rw_mix
=read-write
13269 rm -f conftest.
* conftest
[123].
*
13271 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
13273 cat >>confdefs.h
<<\_ACEOF
13274 #define HAVE_LD_RO_RW_SECTION_MIXING 1
13278 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
13279 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
13281 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
13282 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
13283 gcc_cv_ld_eh_frame_hdr
=no
13284 if test $in_tree_ld = yes ; then
13285 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 && grep 'EMUL = elf' ..
/ld
/Makefile
> /dev
/null
; then
13286 gcc_cv_ld_eh_frame_hdr
=yes
13288 elif test x
$gcc_cv_ld != x
; then
13289 # Check if linker supports --eh-frame-hdr option
13290 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
13291 gcc_cv_ld_eh_frame_hdr
=yes
13294 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
13296 cat >>confdefs.h
<<\_ACEOF
13297 #define HAVE_LD_EH_FRAME_HDR 1
13301 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
13302 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
13304 # Miscellaneous target-specific checks.
13307 echo "$as_me:$LINENO: checking whether libgloss uses STARTUP directives consistently" >&5
13308 echo $ECHO_N "checking whether libgloss uses STARTUP directives consistently... $ECHO_C" >&6
13309 gcc_cv_mips_libgloss_startup
=no
13310 gcc_cv_libgloss_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss
13311 if test "x$exec_prefix" = xNONE
; then
13312 if test "x$prefix" = xNONE
; then
13313 test_prefix
=/usr
/local
13315 test_prefix
=$prefix
13318 test_prefix
=$exec_prefix
13320 for f
in $gcc_cv_libgloss_srcdir/mips
/idt.ld
$test_prefix/$target_alias/lib
/idt.ld
13322 if grep '^STARTUP' $f > /dev
/null
2>&1; then
13323 gcc_cv_mips_libgloss_startup
=yes
13327 if test x
"$gcc_cv_mips_libgloss_startup" = xyes
; then
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1
13334 echo "$as_me:$LINENO: result: $gcc_cv_mips_libgloss_startup" >&5
13335 echo "${ECHO_T}$gcc_cv_mips_libgloss_startup" >&6
13337 echo "$as_me:$LINENO: checking whether the assembler has explicit relocation support" >&5
13338 echo $ECHO_N "checking whether the assembler has explicit relocation support... $ECHO_C" >&6
13339 if test x
$gcc_cv_mips_explicit_relocs = x
; then
13340 gcc_cv_mips_explicit_relocs
=no
13341 if test x
$gcc_cv_as != x
; then
13342 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
13343 if $gcc_cv_as conftest.s
-o conftest.o
> /dev
/null
2>&1; then
13344 gcc_cv_mips_explicit_relocs
=yes
13346 rm -f conftest.s conftest.o
13349 if test $gcc_cv_mips_explicit_relocs = yes; then
13350 test x
$target_cpu_default != x || target_cpu_default
=0
13351 target_cpu_default
="(${target_cpu_default}|MASK_EXPLICIT_RELOCS)"
13353 echo "$as_me:$LINENO: result: $gcc_cv_mips_explicit_relocs" >&5
13354 echo "${ECHO_T}$gcc_cv_mips_explicit_relocs" >&6
13358 if test x
$with_sysroot = x
&& test x
$host = x
$target \
13359 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
13360 cat >>confdefs.h
<<_ACEOF
13361 #define PREFIX_INCLUDE_DIR "$prefix/include"
13366 # Figure out what language subdirectories are present.
13367 # Look if the user specified --enable-languages="..."; if not, use
13368 # the environment variable $LANGUAGES if defined. $LANGUAGES might
13369 # go away some day.
13370 # NB: embedded tabs in this IF block -- do not untabify
13371 if test x
"${enable_languages+set}" != xset
; then
13372 if test x
"${LANGUAGES+set}" = xset
; then
13373 enable_languages
="${LANGUAGES}"
13374 { echo "$as_me:$LINENO: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&5
13375 echo "$as_me: WARNING: setting LANGUAGES is deprecated, use --enable-languages instead" >&2;}
13378 enable_languages
=all
13381 if test x
"${enable_languages}" = x \
13382 ||
test x
"${enable_languages}" = xyes
;
13384 { { echo "$as_me:$LINENO: error: --enable-languages needs at least one language argument" >&5
13385 echo "$as_me: error: --enable-languages needs at least one language argument" >&2;}
13386 { (exit 1); exit 1; }; }
13389 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
13391 # First scan to see if an enabled language requires some other language.
13392 # We assume that a given config-lang.in will list all the language
13393 # front ends it requires, even if some are required indirectly.
13394 for lang
in ${srcdir}/*/config-lang.
in ..
13399 # The odd quoting in the next line works around
13400 # an apparent bug in bash 1.12 on linux.
13401 ${srcdir}/[*]/config-lang.
in)
13404 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
13405 this_lang_requires
=`sed -n -e 's,^lang_requires=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^lang_requires=\([^ ]*\).*$,\1,p' $lang`
13406 for other
in $this_lang_requires
13408 case ,${enable_languages}, in
13414 enable_languages
="$enable_languages,$other"
13422 expected_languages
=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'`
13425 for lang
in ${srcdir}/*/config-lang.
in ..
13429 # The odd quoting in the next line works around
13430 # an apparent bug in bash 1.12 on linux.
13431 ${srcdir}/[*]/config-lang.
in) ;;
13433 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
13434 this_lang_libs
=`sed -n -e 's,^target_libs=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^target_libs=\([^ ]*\).*$,\1,p' $lang`
13435 build_by_default
=`sed -n -e 's,^build_by_default=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^build_by_default=\([^ ]*\).*$,\1,p' $lang`
13436 if test "x$lang_alias" = x
13438 echo "$lang doesn't set \$language." 1>&2
13441 case ${build_by_default},${enable_languages}, in
13442 *,$lang_alias,*) add_this_lang
=yes ;;
13443 no
,*) add_this_lang
=no
;;
13444 *,all
,*) add_this_lang
=yes ;;
13445 *) add_this_lang
=no
;;
13447 found_languages
="${found_languages} ${lang_alias}"
13448 if test x
"${add_this_lang}" = xyes
; then
13450 ${srcdir}/ada
/config-lang.
in)
13451 if test x
$have_gnat = xyes
; then
13452 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
13456 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
13465 for expected_language
in ${expected_languages} ..
13467 if test "${expected_language}" != ..
; then
13468 missing_language
="${expected_language}"
13469 if test "${expected_language}" = "c" \
13470 ||
test "${expected_language}" = "all"; then
13473 for found_language
in ${found_languages} ..
13475 if test "${found_language}" != ..
; then
13476 if test "${expected_language}" = "${found_language}"; then
13481 if test "x${missing_language}" != x
; then
13482 missing_languages
="${missing_languages} ${missing_language}"
13487 if test "x$missing_languages" != x
; then
13488 { { echo "$as_me:$LINENO: error:
13489 The following requested languages were not found:${missing_languages}
13490 The following languages were available: c${found_languages}" >&5
13491 echo "$as_me: error:
13492 The following requested languages were not found:${missing_languages}
13493 The following languages were available: c${found_languages}" >&2;}
13494 { (exit 1); exit 1; }; }
13497 # Make gthr-default.h if we have a thread file.
13499 if test $thread_file != single
; then
13500 rm -f gthr-default.h
13501 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
13502 gthread_flags
=-DHAVE_GTHR_DEFAULT
13506 # Find out what GC implementation we want, or may, use.
13508 # Check whether --with-gc or --without-gc was given.
13509 if test "${with_gc+set}" = set; then
13516 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
13517 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
13518 { (exit 1); exit 1; }; }
13525 echo "Using $GGC for garbage collection."
13527 # Use the system's zlib library.
13529 zlibinc
="-I\$(srcdir)/../zlib"
13531 # Check whether --with-system-zlib or --without-system-zlib was given.
13532 if test "${with_system_zlib+set}" = set; then
13533 withval
="$with_system_zlib"
13542 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
13543 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
13544 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
13545 if test "${enable_maintainer_mode+set}" = set; then
13546 enableval
="$enable_maintainer_mode"
13547 maintainer_mode
=$enableval
13552 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
13553 echo "${ECHO_T}$maintainer_mode" >&6
13555 if test "$maintainer_mode" = "yes"; then
13561 # Make empty files to contain the specs and options for each language.
13562 # Then add #include lines to for a compiler that has specs and/or options.
13565 lang_options_files
=
13567 for subdir
in .
$subdirs
13569 if test -f $srcdir/$subdir/lang-specs.h
; then
13570 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
13572 if test -f $srcdir/$subdir/lang-options.h
; then
13573 lang_options_files
="$lang_options_files $srcdir/$subdir/lang-options.h"
13575 if test -f $srcdir/$subdir/$subdir-tree.def
; then
13576 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
13580 # These (without "all_") are set in each config-lang.in.
13581 # `language' must be a single word so is spelled singularly.
13583 all_boot_languages
=
13586 all_outputs
='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders'
13587 # List of language makefile fragments.
13588 all_lang_makefiles
=
13589 # Files for gengtype
13590 all_gtfiles
="$target_gtfiles"
13591 # Files for gengtype with language
13592 all_gtfiles_files_langs
=
13593 all_gtfiles_files_files
=
13595 # Add the language fragments.
13596 # Languages are added via two mechanisms. Some information must be
13597 # recorded in makefile variables, these are defined in config-lang.in.
13598 # We accumulate them and plug them into the main Makefile.
13599 # The other mechanism is a set of hooks for each of the main targets
13600 # like `clean', `install', etc.
13602 language_fragments
="Make-lang"
13603 language_hooks
="Make-hooks"
13605 for s
in ..
$subdirs
13615 .
${srcdir}/$s/config-lang.
in
13616 if test "x$language" = x
13618 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
13621 all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
13622 if test -f ${srcdir}/$s/Makefile.
in
13623 then all_lang_makefiles
="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
13625 all_languages
="$all_languages $language"
13626 if test "x$boot_language" = xyes
13628 all_boot_languages
="$all_boot_languages $language"
13630 all_compilers
="$all_compilers $compilers"
13631 all_stagestuff
="$all_stagestuff $stagestuff"
13632 all_outputs
="$all_outputs $outputs"
13633 all_gtfiles
="$all_gtfiles $gtfiles"
13634 for f
in ..
$gtfiles
13638 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
13639 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
13645 # Pick up gtfiles for c
13648 .
${srcdir}/c-config-lang.
in
13649 all_gtfiles
="$all_gtfiles $gtfiles"
13650 for f
in ..
$gtfiles
13654 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
13655 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
13660 for language
in ..
$all_languages
13662 if test $language != ".."
13664 check_languages
="$check_languages check-$language"
13668 # Since we can't use `::' targets, we link each language in
13669 # with a set of hooks, reached indirectly via lang.${target}.
13673 target_list
="all.build all.cross start.encap rest.encap tags \
13674 info dvi generated-manpages \
13675 install-normal install-common install-info install-man \
13677 mostlyclean clean distclean extraclean maintainer-clean \
13678 stage1 stage2 stage3 stage4"
13679 for t
in $target_list
13682 for lang
in ..
$all_languages
13684 if test $lang != ".."; then
13688 echo "lang.$t: $x" >> Make-hooks
13693 echo "dir ." > .gdbinit
13694 echo "dir ${srcdir}" >> .gdbinit
13695 if test x
$gdb_needs_out_file_path = xyes
13697 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
13699 if test "x$subdirs" != x
; then
13702 echo "dir ${srcdir}/$s" >> .gdbinit
13705 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
13707 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
13708 # absolute path for gcc_tooldir based on inserting the number of up-directory
13709 # movements required to get from $(exec_prefix) to $(prefix) into the basic
13710 # $(libsubdir)/@(unlibsubdir) based path.
13711 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
13712 # make and thus we'd get different behavior depending on where we built the
13714 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
13715 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
13717 # An explanation of the sed strings:
13718 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
13719 # -e 's|/$||' match a trailing forward slash and eliminates it
13720 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
13721 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
13723 # (*) Note this pattern overwrites the first character of the string
13724 # with a forward slash if one is not already present. This is not a
13725 # problem because the exact names of the sub-directories concerned is
13726 # unimportant, just the number of them matters.
13728 # The practical upshot of these patterns is like this:
13730 # prefix exec_prefix result
13731 # ------ ----------- ------
13732 # /foo /foo/bar ../
13733 # /foo/ /foo/bar ../
13734 # /foo /foo/bar/ ../
13735 # /foo/ /foo/bar/ ../
13736 # /foo /foo/bar/ugg ../../
13739 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
13744 # Find a directory in which to install a shared libgcc.
13746 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
13747 if test "${enable_version_specific_runtime_libs+set}" = set; then
13748 enableval
="$enable_version_specific_runtime_libs"
13753 # Check whether --with-slibdir or --without-slibdir was given.
13754 if test "${with_slibdir+set}" = set; then
13755 withval
="$with_slibdir"
13756 slibdir
="$with_slibdir"
13758 if test "${enable_version_specific_runtime_libs+set}" = set; then
13759 slibdir
='$(libsubdir)'
13760 elif test "$host" != "$target"; then
13761 slibdir
='$(build_tooldir)/lib'
13763 slibdir
='$(libdir)'
13768 objdir
=`${PWDCMD-pwd}`
13771 # Process the language and host/target makefile fragments.
13772 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag
$srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
13774 # Substitute configuration variables
13844 # Echo that links are built
13845 if test x
$host = x
$target
13853 if test x
$host != x
$build
13855 str3
=" on a $build system"
13858 if test "x$str2" != x ||
test "x$str3" != x
13863 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
13865 if test "x$str2" != x ||
test "x$str3" != x
13867 echo " ${str2}${str3}." 1>&2
13870 # Truncate the target if necessary
13871 if test x
$host_truncate_target != x
; then
13872 target
=`echo $target | sed -e 's/\(..............\).*/\1/'`
13875 # Configure the subdirectories
13876 # AC_CONFIG_SUBDIRS($subdirs)
13878 # Create the Makefile
13879 # and configure language subdirectories
13880 ac_config_files
="$ac_config_files $all_outputs"
13881 ac_config_commands
="$ac_config_commands default"
13882 cat >confcache
<<\_ACEOF
13883 # This file is a shell script that caches the results of configure
13884 # tests run on this system so they can be shared between configure
13885 # scripts and configure runs, see configure's option --config-cache.
13886 # It is not useful on other systems. If it contains results you don't
13887 # want to keep, you may remove or edit it.
13889 # config.status only pays attention to the cache file if you give it
13890 # the --recheck option to rerun configure.
13892 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13893 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13894 # following values.
13898 # The following way of writing the cache mishandles newlines in values,
13899 # but we know of no workaround that is simple, portable, and efficient.
13900 # So, don't put newlines in cache variables' values.
13901 # Ultrix sh set writes to stderr and can't be redirected directly,
13902 # and sets the high bit in the cache file unless we assign to the vars.
13905 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13907 # `set' does not quote correctly, so add quotes (double-quote
13908 # substitution turns \\\\ into \\, and sed turns \\ into \).
13911 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13914 # `set' quotes correctly as required by POSIX, so do not add quotes.
13916 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13925 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13927 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
13928 if test -w $cache_file; then
13929 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13930 cat confcache
>$cache_file
13932 echo "not updating unwritable cache $cache_file"
13937 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13938 # Let make expand exec_prefix.
13939 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13941 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13942 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13943 # trailing colons and then remove the whole line if VPATH becomes empty
13944 # (actually we leave an empty line to preserve line numbers).
13945 if test "x$srcdir" = x.
; then
13946 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13947 s/:*\$(srcdir):*/:/;
13948 s/:*\${srcdir}:*/:/;
13950 s/^\([^=]*=[ ]*\):*/\1/;
13956 DEFS
=-DHAVE_CONFIG_H
13960 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13961 # 1. Remove the extension, and $U if already installed.
13962 ac_i
=`echo "$ac_i" |
13963 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13965 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
13966 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
13968 LIBOBJS
=$ac_libobjs
13970 LTLIBOBJS
=$ac_ltlibobjs
13974 : ${CONFIG_STATUS=./config.status}
13975 ac_clean_files_save
=$ac_clean_files
13976 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13977 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13978 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13979 cat >$CONFIG_STATUS <<_ACEOF
13981 # Generated by $as_me.
13982 # Run this file to recreate the current configuration.
13983 # Compiler output produced by configure, useful for debugging
13984 # configure, is in config.log if it exists.
13987 ac_cs_recheck=false
13989 SHELL=\${CONFIG_SHELL-$SHELL}
13992 cat >>$CONFIG_STATUS <<\_ACEOF
13993 ## --------------------- ##
13994 ## M4sh Initialization. ##
13995 ## --------------------- ##
13997 # Be Bourne compatible
13998 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14001 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14002 # is contrary to our usage. Disable this feature.
14003 alias -g '${1+"$@"}'='"$@"'
14004 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
14008 # Support unset when possible.
14009 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
14016 # Work around bugs in pre-3.0 UWIN ksh.
14017 $as_unset ENV MAIL MAILPATH
14024 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14025 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14026 LC_TELEPHONE LC_TIME
14028 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14029 eval $as_var=C
; export $as_var
14035 # Required to use basename.
14036 if expr a
: '\(a\)' >/dev
/null
2>&1; then
14042 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
14043 as_basename
=basename
14049 # Name of the executable.
14050 as_me
=`$as_basename "$0" ||
14051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14052 X"$0" : 'X\(//\)$' \| \
14053 X"$0" : 'X\(/\)$' \| \
14054 . : '\(.\)' 2>/dev/null ||
14056 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14057 /^X\/\(\/\/\)$/{ s//\1/; q; }
14058 /^X\/\(\/\).*/{ s//\1/; q; }
14062 # PATH needs CR, and LINENO needs CR and PATH.
14063 # Avoid depending upon Character Ranges.
14064 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14065 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14066 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14067 as_cr_digits
='0123456789'
14068 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14070 # The user is always right.
14071 if test "${PATH_SEPARATOR+set}" != set; then
14072 echo "#! /bin/sh" >conf$$.sh
14073 echo "exit 0" >>conf$$.sh
14075 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14084 as_lineno_1
=$LINENO
14085 as_lineno_2
=$LINENO
14086 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
14087 test "x$as_lineno_1" != "x$as_lineno_2" &&
14088 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
14089 # Find who we are. Look in the path if we contain no path at all
14092 *[\\/]* ) as_myself
=$0 ;;
14093 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14094 for as_dir
in $PATH
14097 test -z "$as_dir" && as_dir
=.
14098 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14103 # We did not find ourselves, most probably we were run as `sh COMMAND'
14104 # in which case we are not to be found in the path.
14105 if test "x$as_myself" = x
; then
14108 if test ! -f "$as_myself"; then
14109 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14111 { (exit 1); exit 1; }; }
14113 case $CONFIG_SHELL in
14115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14116 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
14119 test -z "$as_dir" && as_dir
=.
14120 for as_base
in sh bash ksh sh5
; do
14123 if ("$as_dir/$as_base" -c '
14124 as_lineno_1=$LINENO
14125 as_lineno_2=$LINENO
14126 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14127 test "x$as_lineno_1" != "x$as_lineno_2" &&
14128 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
14129 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
14130 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
14131 CONFIG_SHELL
=$as_dir/$as_base
14132 export CONFIG_SHELL
14133 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14141 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14142 # uniformly replaced by the line number. The first 'sed' inserts a
14143 # line-number line before each line; the second 'sed' does the real
14144 # work. The second script uses 'N' to pair each line-number line
14145 # with the numbered line, and appends trailing '-' during
14146 # substitution so that $LINENO is not a special case at line end.
14147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14148 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14149 sed '=' <$as_myself |
14154 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14157 s,^['$as_cr_digits']*\n,,
14158 ' >$as_me.lineno
&&
14159 chmod +x
$as_me.lineno ||
14160 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14162 { (exit 1); exit 1; }; }
14164 # Don't try to exec as it changes $[0], causing all sort of problems
14165 # (the dirname of $[0] is not the place where we might find the
14166 # original and so on. Autoconf is especially sensible to this).
14168 # Exit status is that of the last command.
14173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14174 *c
*,-n*) ECHO_N
= ECHO_C
='
14176 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
14177 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
14180 if expr a
: '\(a\)' >/dev
/null
2>&1; then
14186 rm -f conf$$ conf$$.exe conf$$.
file
14188 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14189 # We could just check for DJGPP; but this test a) works b) is more generic
14190 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14191 if test -f conf$$.exe
; then
14192 # Don't use ln at all; we don't have any links
14197 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14202 rm -f conf$$ conf$$.exe conf$$.
file
14204 if mkdir
-p .
2>/dev
/null
; then
14210 as_executable_p
="test -f"
14212 # Sed expression to map a string onto a valid CPP name.
14213 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14215 # Sed expression to map a string onto a valid variable name.
14216 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14220 # We need space, tab and new line, in precisely that order.
14230 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14231 # report actual input values of CONFIG_FILES etc. instead of their
14232 # values after options handling. Logging --version etc. is OK.
14236 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14237 ## Running $as_me. ##
14242 This file was extended by $as_me, which was
14243 generated by GNU Autoconf 2.57. Invocation command line was
14245 CONFIG_FILES = $CONFIG_FILES
14246 CONFIG_HEADERS = $CONFIG_HEADERS
14247 CONFIG_LINKS = $CONFIG_LINKS
14248 CONFIG_COMMANDS = $CONFIG_COMMANDS
14252 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14256 # Files that config.status was made for.
14257 if test -n "$ac_config_files"; then
14258 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14261 if test -n "$ac_config_headers"; then
14262 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14265 if test -n "$ac_config_links"; then
14266 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14269 if test -n "$ac_config_commands"; then
14270 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14273 cat >>$CONFIG_STATUS <<\_ACEOF
14276 \`$as_me' instantiates files from templates according to the
14277 current configuration.
14279 Usage: $0 [OPTIONS] [FILE]...
14281 -h, --help print this help, then exit
14282 -V, --version print version number, then exit
14283 -q, --quiet do not print progress messages
14284 -d, --debug don't remove temporary files
14285 --recheck update $as_me by reconfiguring in the same conditions
14286 --file=FILE[:TEMPLATE]
14287 instantiate the configuration file FILE
14288 --header=FILE[:TEMPLATE]
14289 instantiate the configuration header FILE
14291 Configuration files:
14294 Configuration headers:
14297 Configuration commands:
14300 Report bugs to <bug-autoconf@gnu.org>."
14303 cat >>$CONFIG_STATUS <<_ACEOF
14306 configured by $0, generated by GNU Autoconf 2.57,
14307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14309 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14310 Free Software Foundation, Inc.
14311 This config.status script is free software; the Free Software Foundation
14312 gives unlimited permission to copy, distribute and modify it."
14316 cat >>$CONFIG_STATUS <<\_ACEOF
14317 # If no file are specified by the user, then we need to provide default
14318 # value. By we need to know if files were specified by the user.
14324 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
14325 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
14333 *) # This is not an option, so the user has probably given explicit
14336 ac_need_defaults
=false
;;
14340 # Handling of the options.
14342 cat >>$CONFIG_STATUS <<\_ACEOF
14343 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14345 --version |
--vers* |
-V )
14346 echo "$ac_cs_version"; exit 0 ;;
14348 # Conflict between --help and --header
14349 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14350 Try \`$0 --help' for more information." >&5
14351 echo "$as_me: error: ambiguous option: $1
14352 Try \`$0 --help' for more information." >&2;}
14353 { (exit 1); exit 1; }; };;
14354 --help |
--hel |
-h )
14355 echo "$ac_cs_usage"; exit 0 ;;
14356 --debug |
--d* |
-d )
14358 --file |
--fil |
--fi |
--f )
14360 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14361 ac_need_defaults
=false
;;
14362 --header |
--heade |
--head |
--hea )
14364 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14365 ac_need_defaults
=false
;;
14366 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14367 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14370 # This is an error.
14371 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14372 Try \`$0 --help' for more information." >&5
14373 echo "$as_me: error: unrecognized option: $1
14374 Try \`$0 --help' for more information." >&2;}
14375 { (exit 1); exit 1; }; } ;;
14377 *) ac_config_targets
="$ac_config_targets $1" ;;
14383 ac_configure_extra_args
=
14385 if $ac_cs_silent; then
14387 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14391 cat >>$CONFIG_STATUS <<_ACEOF
14392 if \$ac_cs_recheck; then
14393 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14394 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14399 cat >>$CONFIG_STATUS <<_ACEOF
14401 # INIT-COMMANDS section.
14406 symbolic_link='$symbolic_link'
14413 cat >>$CONFIG_STATUS <<\_ACEOF
14414 for ac_config_target
in $ac_config_targets
14416 case "$ac_config_target" in
14417 # Handling of arguments.
14418 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
14419 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14420 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
14421 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
14422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14424 { (exit 1); exit 1; }; };;
14428 # If the user did not use the arguments to specify the items to instantiate,
14429 # then the envvar interface is used. Set only those that are not.
14430 # We use the long form for the default assignment because of an extremely
14431 # bizarre bug on SunOS 4.1.3.
14432 if $ac_need_defaults; then
14433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14438 # Have a temporary directory for convenience. Make it in the build tree
14439 # simply because there is no reason to put it here, and in addition,
14440 # creating and moving files from /tmp can sometimes cause problems.
14441 # Create a temporary directory, and hook for its removal unless debugging.
14444 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14445 trap '{ (exit 1); exit 1; }' 1 2 13 15
14448 # Create a (secure) tmp directory for tmp files.
14451 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14452 test -n "$tmp" && test -d "$tmp"
14455 tmp
=.
/confstat$$
-$RANDOM
14456 (umask 077 && mkdir
$tmp)
14459 echo "$me: cannot create a temporary directory in ." >&2
14460 { (exit 1); exit 1; }
14465 cat >>$CONFIG_STATUS <<_ACEOF
14468 # CONFIG_FILES section.
14471 # No need to generate the scripts if there are no CONFIG_FILES.
14472 # This happens for instance when ./config.status config.h
14473 if test -n "\$CONFIG_FILES"; then
14474 # Protect against being on the right side of a sed subst in config.status.
14475 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14476 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14477 s,@SHELL@,$SHELL,;t t
14478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14484 s,@exec_prefix@,$exec_prefix,;t t
14485 s,@prefix@,$prefix,;t t
14486 s,@program_transform_name@,$program_transform_name,;t t
14487 s,@bindir@,$bindir,;t t
14488 s,@sbindir@,$sbindir,;t t
14489 s,@libexecdir@,$libexecdir,;t t
14490 s,@datadir@,$datadir,;t t
14491 s,@sysconfdir@,$sysconfdir,;t t
14492 s,@sharedstatedir@,$sharedstatedir,;t t
14493 s,@localstatedir@,$localstatedir,;t t
14494 s,@libdir@,$libdir,;t t
14495 s,@includedir@,$includedir,;t t
14496 s,@oldincludedir@,$oldincludedir,;t t
14497 s,@infodir@,$infodir,;t t
14498 s,@mandir@,$mandir,;t t
14499 s,@build_alias@,$build_alias,;t t
14500 s,@host_alias@,$host_alias,;t t
14501 s,@target_alias@,$target_alias,;t t
14502 s,@DEFS@,$DEFS,;t t
14503 s,@ECHO_C@,$ECHO_C,;t t
14504 s,@ECHO_N@,$ECHO_N,;t t
14505 s,@ECHO_T@,$ECHO_T,;t t
14506 s,@LIBS@,$LIBS,;t t
14507 s,@build@,$build,;t t
14508 s,@build_cpu@,$build_cpu,;t t
14509 s,@build_vendor@,$build_vendor,;t t
14510 s,@build_os@,$build_os,;t t
14511 s,@host@,$host,;t t
14512 s,@host_cpu@,$host_cpu,;t t
14513 s,@host_vendor@,$host_vendor,;t t
14514 s,@host_os@,$host_os,;t t
14515 s,@target@,$target,;t t
14516 s,@target_cpu@,$target_cpu,;t t
14517 s,@target_vendor@,$target_vendor,;t t
14518 s,@target_os@,$target_os,;t t
14519 s,@build_canonical@,$build_canonical,;t t
14520 s,@host_canonical@,$host_canonical,;t t
14521 s,@target_subdir@,$target_subdir,;t t
14523 s,@CFLAGS@,$CFLAGS,;t t
14524 s,@LDFLAGS@,$LDFLAGS,;t t
14525 s,@CPPFLAGS@,$CPPFLAGS,;t t
14526 s,@ac_ct_CC@,$ac_ct_CC,;t t
14527 s,@EXEEXT@,$EXEEXT,;t t
14528 s,@OBJEXT@,$OBJEXT,;t t
14529 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
14530 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
14532 s,@EGREP@,$EGREP,;t t
14533 s,@GNATBIND@,$GNATBIND,;t t
14534 s,@ac_ct_GNATBIND@,$ac_ct_GNATBIND,;t t
14535 s,@ADAC@,$ADAC,;t t
14536 s,@strict1_warn@,$strict1_warn,;t t
14537 s,@warn_cflags@,$warn_cflags,;t t
14538 s,@WERROR@,$WERROR,;t t
14539 s,@nocommon_flag@,$nocommon_flag,;t t
14540 s,@valgrind_path@,$valgrind_path,;t t
14541 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
14542 s,@valgrind_command@,$valgrind_command,;t t
14543 s,@coverage_flags@,$coverage_flags,;t t
14544 s,@enable_multilib@,$enable_multilib,;t t
14545 s,@enable_shared@,$enable_shared,;t t
14546 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
14547 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
14548 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
14549 s,@SET_MAKE@,$SET_MAKE,;t t
14552 s,@LN_S@,$LN_S,;t t
14553 s,@RANLIB@,$RANLIB,;t t
14554 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14555 s,@INSTALL@,$INSTALL,;t t
14556 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14557 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14558 s,@have_mktemp_command@,$have_mktemp_command,;t t
14559 s,@MAKEINFO@,$MAKEINFO,;t t
14560 s,@BUILD_INFO@,$BUILD_INFO,;t t
14561 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
14562 s,@make_compare_target@,$make_compare_target,;t t
14563 s,@FLEX@,$FLEX,;t t
14564 s,@BISON@,$BISON,;t t
14565 s,@stage1_cflags@,$stage1_cflags,;t t
14566 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
14567 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
14568 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
14569 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
14570 s,@LIBICONV@,$LIBICONV,;t t
14571 s,@manext@,$manext,;t t
14572 s,@objext@,$objext,;t t
14573 s,@extra_modes_file@,$extra_modes_file,;t t
14574 s,@FORBUILD@,$FORBUILD,;t t
14575 s,@PACKAGE@,$PACKAGE,;t t
14576 s,@VERSION@,$VERSION,;t t
14577 s,@ALLOCA@,$ALLOCA,;t t
14578 s,@GLIBC21@,$GLIBC21,;t t
14579 s,@USE_NLS@,$USE_NLS,;t t
14580 s,@MSGFMT@,$MSGFMT,;t t
14581 s,@GMSGFMT@,$GMSGFMT,;t t
14582 s,@XGETTEXT@,$XGETTEXT,;t t
14583 s,@INTLBISON@,$INTLBISON,;t t
14584 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14585 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14586 s,@CATALOGS@,$CATALOGS,;t t
14587 s,@CATOBJEXT@,$CATOBJEXT,;t t
14588 s,@INTLLIBS@,$INTLLIBS,;t t
14589 s,@INTLDEPS@,$INTLDEPS,;t t
14590 s,@INTLOBJS@,$INTLOBJS,;t t
14591 s,@POSUB@,$POSUB,;t t
14592 s,@DATADIRNAME@,$DATADIRNAME,;t t
14593 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14594 s,@GENCAT@,$GENCAT,;t t
14595 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14596 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14597 s,@CROSS@,$CROSS,;t t
14599 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
14600 s,@inhibit_libc@,$inhibit_libc,;t t
14601 s,@BUILD_PREFIX@,$BUILD_PREFIX,;t t
14602 s,@BUILD_PREFIX_1@,$BUILD_PREFIX_1,;t t
14603 s,@BUILD_CC@,$BUILD_CC,;t t
14604 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
14605 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
14606 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
14607 s,@libgcc_visibility@,$libgcc_visibility,;t t
14608 s,@gthread_flags@,$gthread_flags,;t t
14610 s,@zlibdir@,$zlibdir,;t t
14611 s,@zlibinc@,$zlibinc,;t t
14612 s,@MAINT@,$MAINT,;t t
14613 s,@gcc_tooldir@,$gcc_tooldir,;t t
14614 s,@dollar@,$dollar,;t t
14615 s,@slibdir@,$slibdir,;t t
14616 s,@objdir@,$objdir,;t t
14617 s,@subdirs@,$subdirs,;t t
14618 s,@srcdir@,$srcdir,;t t
14619 s,@all_boot_languages@,$all_boot_languages,;t t
14620 s,@all_compilers@,$all_compilers,;t t
14621 s,@all_gtfiles@,$all_gtfiles,;t t
14622 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
14623 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
14624 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
14625 s,@all_languages@,$all_languages,;t t
14626 s,@all_stagestuff@,$all_stagestuff,;t t
14627 s,@build_exeext@,$build_exeext,;t t
14628 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
14629 s,@build_xm_file_list@,$build_xm_file_list,;t t
14630 s,@build_xm_file@,$build_xm_file,;t t
14631 s,@build_xm_defines@,$build_xm_defines,;t t
14632 s,@check_languages@,$check_languages,;t t
14633 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
14634 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
14635 s,@cpp_install_dir@,$cpp_install_dir,;t t
14636 s,@dep_host_xmake_file@,$dep_host_xmake_file,;t t
14637 s,@dep_tmake_file@,$dep_tmake_file,;t t
14638 s,@extra_headers_list@,$extra_headers_list,;t t
14639 s,@extra_objs@,$extra_objs,;t t
14640 s,@extra_parts@,$extra_parts,;t t
14641 s,@extra_passes@,$extra_passes,;t t
14642 s,@extra_programs@,$extra_programs,;t t
14643 s,@float_h_file@,$float_h_file,;t t
14644 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
14645 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
14646 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
14647 s,@gcc_version@,$gcc_version,;t t
14648 s,@gcc_version_full@,$gcc_version_full,;t t
14649 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
14650 s,@host_exeext@,$host_exeext,;t t
14651 s,@host_extra_gcc_objs@,$host_extra_gcc_objs,;t t
14652 s,@host_xm_file_list@,$host_xm_file_list,;t t
14653 s,@host_xm_file@,$host_xm_file,;t t
14654 s,@host_xm_defines@,$host_xm_defines,;t t
14655 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
14656 s,@install@,$install,;t t
14657 s,@lang_options_files@,$lang_options_files,;t t
14658 s,@lang_specs_files@,$lang_specs_files,;t t
14659 s,@lang_tree_files@,$lang_tree_files,;t t
14660 s,@local_prefix@,$local_prefix,;t t
14661 s,@md_file@,$md_file,;t t
14662 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
14663 s,@out_file@,$out_file,;t t
14664 s,@out_object_file@,$out_object_file,;t t
14665 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
14666 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
14667 s,@symbolic_link@,$symbolic_link,;t t
14668 s,@thread_file@,$thread_file,;t t
14669 s,@tm_file_list@,$tm_file_list,;t t
14670 s,@tm_file@,$tm_file,;t t
14671 s,@tm_defines@,$tm_defines,;t t
14672 s,@tm_p_file_list@,$tm_p_file_list,;t t
14673 s,@tm_p_file@,$tm_p_file,;t t
14674 s,@xm_file@,$xm_file,;t t
14675 s,@xm_defines@,$xm_defines,;t t
14676 s,@c_target_objs@,$c_target_objs,;t t
14677 s,@cxx_target_objs@,$cxx_target_objs,;t t
14678 s,@target_cpu_default@,$target_cpu_default,;t t
14679 s,@LIBOBJS@,$LIBOBJS,;t t
14680 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14681 /@target_overrides@/r $target_overrides
14682 s,@target_overrides@,,;t t
14683 /@host_overrides@/r $host_overrides
14684 s,@host_overrides@,,;t t
14685 /@language_fragments@/r $language_fragments
14686 s,@language_fragments@,,;t t
14687 /@language_hooks@/r $language_hooks
14688 s,@language_hooks@,,;t t
14693 cat >>$CONFIG_STATUS <<\_ACEOF
14694 # Split the substitutions into bite-sized pieces for seds with
14695 # small command number limits, like on Digital OSF/1 and HP-UX.
14696 ac_max_sed_lines
=48
14697 ac_sed_frag
=1 # Number of current file.
14698 ac_beg
=1 # First line for current file.
14699 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14702 while $ac_more_lines; do
14703 if test $ac_beg -gt 1; then
14704 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14706 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14708 if test ! -s $tmp/subs.frag
; then
14709 ac_more_lines
=false
14711 # The purpose of the label and of the branching condition is to
14712 # speed up the sed processing (if there are no `@' at all, there
14713 # is no need to browse any of the substitutions).
14714 # These are the two extra sed commands mentioned above.
14716 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
14717 if test -z "$ac_sed_cmds"; then
14718 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
14720 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14722 ac_sed_frag
=`expr $ac_sed_frag + 1`
14724 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14727 if test -z "$ac_sed_cmds"; then
14730 fi # test -n "$CONFIG_FILES"
14733 cat >>$CONFIG_STATUS <<\_ACEOF
14734 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14735 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14737 - |
*:- |
*:-:* ) # input from stdin
14739 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14740 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14741 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14742 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14743 * ) ac_file_in
=$ac_file.
in ;;
14746 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14747 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$ac_file" : 'X\(//\)[^/]' \| \
14750 X"$ac_file" : 'X\(//\)$' \| \
14751 X"$ac_file" : 'X\(/\)' \| \
14752 . : '\(.\)' 2>/dev/null ||
14754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14756 /^X\(\/\/\)$/{ s//\1/; q; }
14757 /^X\(\/\).*/{ s//\1/; q; }
14759 { if $as_mkdir_p; then
14764 while test ! -d "$as_dir"; do
14765 as_dirs
="$as_dir $as_dirs"
14766 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$as_dir" : 'X\(//\)[^/]' \| \
14769 X"$as_dir" : 'X\(//\)$' \| \
14770 X"$as_dir" : 'X\(/\)' \| \
14771 . : '\(.\)' 2>/dev/null ||
14773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14775 /^X\(\/\/\)$/{ s//\1/; q; }
14776 /^X\(\/\).*/{ s//\1/; q; }
14779 test ! -n "$as_dirs" || mkdir
$as_dirs
14780 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14782 { (exit 1); exit 1; }; }; }
14786 if test "$ac_dir" != .
; then
14787 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14788 # A "../" for each directory in $ac_dir_suffix.
14789 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14791 ac_dir_suffix
= ac_top_builddir
=
14795 .
) # No --srcdir option. We are building in place.
14797 if test -z "$ac_top_builddir"; then
14800 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14802 [\\/]* | ?
:[\\/]* ) # Absolute path.
14803 ac_srcdir
=$srcdir$ac_dir_suffix;
14804 ac_top_srcdir
=$srcdir ;;
14805 *) # Relative path.
14806 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14807 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14809 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14811 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
14812 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14813 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14814 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14818 if test x
"$ac_file" != x-
; then
14819 { echo "$as_me:$LINENO: creating $ac_file" >&5
14820 echo "$as_me: creating $ac_file" >&6;}
14823 # Let's still pretend it is `configure' which instantiates (i.e., don't
14824 # use $as_me), people would be surprised to read:
14825 # /* config.h. Generated by config.status. */
14826 if test x
"$ac_file" = x-
; then
14829 configure_input
="$ac_file. "
14831 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14832 sed 's,.*/,,'` by configure."
14834 # First look for the input files in the build tree, otherwise in the
14836 ac_file_inputs
=`IFS=:
14837 for f in $ac_file_in; do
14839 -) echo $tmp/stdin ;;
14841 # Absolute (can't be DOS-style, as IFS=:)
14842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14843 echo "$as_me: error: cannot find input file: $f" >&2;}
14844 { (exit 1); exit 1; }; }
14847 if test -f "$f"; then
14850 elif test -f "$srcdir/$f"; then
14855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14856 echo "$as_me: error: cannot find input file: $f" >&2;}
14857 { (exit 1); exit 1; }; }
14860 done` ||
{ (exit 1); exit 1; }
14862 cat >>$CONFIG_STATUS <<_ACEOF
14866 cat >>$CONFIG_STATUS <<\_ACEOF
14868 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14869 s
,@configure_input@
,$configure_input,;t t
14870 s
,@srcdir@
,$ac_srcdir,;t t
14871 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14872 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14873 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14874 s
,@builddir@
,$ac_builddir,;t t
14875 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14876 s
,@top_builddir@
,$ac_top_builddir,;t t
14877 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14878 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14880 if test x"$ac_file" != x-; then
14881 mv $tmp/out $ac_file
14889 cat >>$CONFIG_STATUS <<\_ACEOF
14892 # CONFIG_HEADER section.
14895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14898 # ac_d sets the value in "#define NAME VALUE" lines.
14899 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14900 ac_dB
='[ ].*$,\1#\2'
14903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14904 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14905 ac_uB
='$,\1#\2define\3'
14909 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14912 - |
*:- |
*:-:* ) # input from stdin
14914 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14915 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14916 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14917 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14918 * ) ac_file_in
=$ac_file.
in ;;
14921 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14922 echo "$as_me: creating $ac_file" >&6;}
14924 # First look for the input files in the build tree, otherwise in the
14926 ac_file_inputs
=`IFS=:
14927 for f in $ac_file_in; do
14929 -) echo $tmp/stdin ;;
14931 # Absolute (can't be DOS-style, as IFS=:)
14932 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14933 echo "$as_me: error: cannot find input file: $f" >&2;}
14934 { (exit 1); exit 1; }; }
14937 if test -f "$f"; then
14940 elif test -f "$srcdir/$f"; then
14945 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14946 echo "$as_me: error: cannot find input file: $f" >&2;}
14947 { (exit 1); exit 1; }; }
14950 done` ||
{ (exit 1); exit 1; }
14951 # Remove the trailing spaces.
14952 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14956 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14957 # `conftest.undefs', that substitutes the proper values into
14958 # config.h.in to produce config.h. The first handles `#define'
14959 # templates, and the second `#undef' templates.
14960 # And first: Protect against being on the right side of a sed subst in
14961 # config.status. Protect against being in an unquoted here document
14962 # in config.status.
14963 rm -f conftest.defines conftest.undefs
14964 # Using a here document instead of a string reduces the quoting nightmare.
14965 # Putting comments in sed scripts is not portable.
14967 # `end' is used to avoid that the second main sed command (meant for
14968 # 0-ary CPP macros) applies to n-ary macro definitions.
14969 # See the Autoconf documentation for `clear'.
14970 cat >confdef2sed.
sed <<\_ACEOF
14975 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14977 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14980 # If some macros were called several times there might be several times
14981 # the same #defines, which is useless. Nevertheless, we may not want to
14982 # sort them, since we want the *last* AC-DEFINE to be honored.
14983 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14984 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14985 rm -f confdef2sed.sed
14987 # This sed command replaces #undef with comments. This is necessary, for
14988 # example, in the case of _POSIX_SOURCE, which is predefined and required
14989 # on some systems where configure will not decide to define it.
14990 cat >>conftest.undefs <<\_ACEOF
14991 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14994 # Break up conftest.defines because some shells have a limit on the size
14995 # of here documents, and old seds have small limits too (100 cmds).
14996 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14997 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14998 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14999 echo ' :' >>$CONFIG_STATUS
15000 rm -f conftest.tail
15001 while grep . conftest.defines >/dev/null
15003 # Write a limited-size here document to $tmp/defines.sed.
15004 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15005 # Speed up: don't consider the non `#define' lines.
15006 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15007 # Work around the forget-to-reset-the-flag bug.
15008 echo 't clr' >>$CONFIG_STATUS
15009 echo ': clr' >>$CONFIG_STATUS
15010 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
15012 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15014 mv $tmp/out $tmp/in
15016 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
15017 rm -f conftest.defines
15018 mv conftest.
tail conftest.defines
15020 rm -f conftest.defines
15021 echo ' fi # grep' >>$CONFIG_STATUS
15022 echo >>$CONFIG_STATUS
15024 # Break up conftest.undefs because some shells have a limit on the size
15025 # of here documents, and old seds have small limits too (100 cmds).
15026 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15027 rm -f conftest.
tail
15028 while grep . conftest.undefs
>/dev
/null
15030 # Write a limited-size here document to $tmp/undefs.sed.
15031 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15032 # Speed up: don't consider the non
`#undef'
15033 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15034 # Work around the forget-to-reset-the-flag bug.
15035 echo 't clr' >>$CONFIG_STATUS
15036 echo ': clr' >>$CONFIG_STATUS
15037 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15039 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15041 mv $tmp/out $tmp/in
15043 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15044 rm -f conftest.undefs
15045 mv conftest.tail conftest.undefs
15047 rm -f conftest.undefs
15049 cat >>$CONFIG_STATUS <<\_ACEOF
15050 # Let's still pretend it is `configure
' which instantiates (i.e., don't
15051 # use $as_me), people would be surprised to read:
15052 # /* config.h. Generated by config.status. */
15053 if test x
"$ac_file" = x-
; then
15054 echo "/* Generated by configure. */" >$tmp/config.h
15056 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15058 cat $tmp/in >>$tmp/config.h
15060 if test x
"$ac_file" != x-
; then
15061 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
15062 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15063 echo "$as_me: $ac_file is unchanged" >&6;}
15065 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15067 X"$ac_file" : 'X\(//\)[^/]' \| \
15068 X"$ac_file" : 'X\(//\)$' \| \
15069 X"$ac_file" : 'X\(/\)' \| \
15070 . : '\(.\)' 2>/dev/null ||
15072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15074 /^X\(\/\/\)$/{ s//\1/; q; }
15075 /^X\(\/\).*/{ s//\1/; q; }
15077 { if $as_mkdir_p; then
15082 while test ! -d "$as_dir"; do
15083 as_dirs
="$as_dir $as_dirs"
15084 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15086 X"$as_dir" : 'X\(//\)[^/]' \| \
15087 X"$as_dir" : 'X\(//\)$' \| \
15088 X"$as_dir" : 'X\(/\)' \| \
15089 . : '\(.\)' 2>/dev/null ||
15091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15092 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15093 /^X\(\/\/\)$/{ s//\1/; q; }
15094 /^X\(\/\).*/{ s//\1/; q; }
15097 test ! -n "$as_dirs" || mkdir
$as_dirs
15098 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15099 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15100 { (exit 1); exit 1; }; }; }
15103 mv $tmp/config.h
$ac_file
15107 rm -f $tmp/config.h
15111 cat >>$CONFIG_STATUS <<\_ACEOF
15114 # CONFIG_COMMANDS section.
15116 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
15117 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
15118 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15119 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
15120 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15121 X"$ac_dest" : 'X\(//\)[^/]' \| \
15122 X"$ac_dest" : 'X\(//\)$' \| \
15123 X"$ac_dest" : 'X\(/\)' \| \
15124 . : '\(.\)' 2>/dev/null ||
15126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15128 /^X\(\/\/\)$/{ s//\1/; q; }
15129 /^X\(\/\).*/{ s//\1/; q; }
15133 if test "$ac_dir" != .
; then
15134 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15135 # A "../" for each directory in $ac_dir_suffix.
15136 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15138 ac_dir_suffix
= ac_top_builddir
=
15142 .
) # No --srcdir option. We are building in place.
15144 if test -z "$ac_top_builddir"; then
15147 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15149 [\\/]* | ?
:[\\/]* ) # Absolute path.
15150 ac_srcdir
=$srcdir$ac_dir_suffix;
15151 ac_top_srcdir
=$srcdir ;;
15152 *) # Relative path.
15153 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15154 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15156 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15158 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
15159 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15160 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15161 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15164 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15165 echo "$as_me: executing $ac_dest commands" >&6;}
15167 default-1
) for ac_file
in $CONFIG_FILES; do
15168 # Support "outfile[:infile[:infile...]]"
15170 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15172 # PO directories have a Makefile.in generated from Makefile.in.in.
15173 case "$ac_file" in */Makefile.
in)
15174 # Adjust a relative srcdir.
15175 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15176 ac_dir_suffix
="/`echo "$ac_dir"|sed 's%^\./%%'`"
15177 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15178 # In autoconf-2.13 it is called $ac_given_srcdir.
15179 # In autoconf-2.50 it is called $srcdir.
15180 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15181 case "$ac_given_srcdir" in
15182 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15183 /*) top_srcdir
="$ac_given_srcdir" ;;
15184 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15186 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15187 rm -f "$ac_dir/POTFILES"
15188 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15189 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
15190 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15191 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15197 case x
$CONFIG_HEADERS in
15198 xauto-host.h
:config.
in)
15201 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
15202 # bootstrapping and the installation procedure can still use
15203 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
15204 # FLAGS_TO_PASS has been modified to solve the problem there.
15205 # This is virtually a duplicate of what happens in configure.lang; we do
15206 # an extra check to make sure this only happens if ln -s can be used.
15207 if test "$symbolic_link" = "ln -s"; then
15208 for d
in ..
${subdirs} fixinc
; do
15209 if test $d != ..
; then
15210 STARTDIR
=`${PWDCMD-pwd}`
15212 for t
in stage1 stage2 stage3 stage4 include
15215 $symbolic_link ..
/$t $t 2>/dev
/null
15221 # Avoid having to add intl to our include paths.
15222 if test -f intl
/libintl.h
; then
15223 echo creating libintl.h
15224 echo '#include "intl/libintl.h"' >libintl.h
15231 cat >>$CONFIG_STATUS <<\_ACEOF
15233 { (exit 0); exit 0; }
15235 chmod +x
$CONFIG_STATUS
15236 ac_clean_files
=$ac_clean_files_save
15239 # configure is writing to config.log, and then calls config.status.
15240 # config.status does its own redirection, appending to config.log.
15241 # Unfortunately, on DOS this fails, as config.log is still kept open
15242 # by configure, so config.status won't be able to write to it; its
15243 # output is simply discarded. So we exec the FD to /dev/null,
15244 # effectively closing config.log, so it can be properly (re)opened and
15245 # appended to by config.status. When coming back to configure, we
15246 # need to make the FD available again.
15247 if test "$no_create" != yes; then
15249 ac_config_status_args
=
15250 test "$silent" = yes &&
15251 ac_config_status_args
="$ac_config_status_args --quiet"
15253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15256 # would make configure fail if this is the last instruction.
15257 $ac_cs_success ||
{ (exit 1); exit 1; }