2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER EGREP valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file FORBUILD PACKAGE VERSION USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 libgcc_visibility GGC zlibdir zlibinc MAINT ANDER BANSHEEINC BANSHEELIB gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir gcc_version gcc_version_full gcc_version_trigger host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure symbolic_link thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files
='language_hooks'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
773 ac_env_GMPLIBS_set
=${GMPLIBS+set}
774 ac_env_GMPLIBS_value
=$GMPLIBS
775 ac_cv_env_GMPLIBS_set
=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value
=$GMPLIBS
777 ac_env_GMPINC_set
=${GMPINC+set}
778 ac_env_GMPINC_value
=$GMPINC
779 ac_cv_env_GMPINC_set
=${GMPINC+set}
780 ac_cv_env_GMPINC_value
=$GMPINC
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --program-prefix=PREFIX prepend PREFIX to installed program names
844 --program-suffix=SUFFIX append SUFFIX to installed program names
845 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
848 --build=BUILD configure
for building on BUILD
[guessed
]
849 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
854 if test -n "$ac_init_help"; then
859 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
860 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
861 --enable-generated-files-in-srcdir
862 put copies of generated files
in source dir
863 intended
for creating
source tarballs
for users
864 without texinfo bison or flex.
865 --enable-werror-always enable -Werror always
866 --enable-werror enable -Werror in bootstrap stage2 and later
867 --enable-checking=LIST
868 enable expensive run-time checks. With LIST
,
869 enable only specific categories of checks.
870 Categories are
: fold,gc
,gcac
,misc
,rtlflag
,rtl
,
871 tree
,valgrind
; default is gc
,misc
,rtlflag
,tree
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-threads enable thread usage for target GCC
883 --enable-threads=LIB use LIB thread package for target GCC
884 --enable-objc-gc enable the use of Boehm's garbage collector with
885 the GNU Objective-C runtime
886 --disable-shared don
't provide a shared libgcc
887 --enable-intermodule build the compiler in one step
888 --enable-languages=LIST specify which front-ends to build
889 --enable-initfini-array use .init_array/.fini_array sections
890 --enable-sjlj-exceptions
891 arrange to use setjmp/longjmp exception handling
892 --enable-libunwind-exceptions force use libunwind for exceptions
893 --disable-win32-registry
894 disable lookup of installation paths in the
895 Registry on Windows hosts
896 --enable-win32-registry enable registry lookup (default)
897 --enable-win32-registry=KEY
898 use KEY instead of GCC version as the last portion
900 --enable-maintainer-mode
901 enable make rules and dependencies not useful
902 (and sometimes confusing) to the casual installer
903 --enable-version-specific-runtime-libs
904 specify that runtime libraries should be
905 installed in a compiler-specific directory
908 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
909 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
910 --with-local-prefix=DIR specifies directory to put local include
911 --with-gxx-include-dir=DIR
912 specifies directory to put g++ header files
913 --with-cpp-install-dir=DIR
914 install the user visible C preprocessor in DIR
915 (relative to PREFIX) as well as PREFIX/bin
916 --with-gnu-ld arrange to work with GNU ld.
917 --with-ld arrange to use the specified ld (full pathname)
918 --with-demangler-in-ld try to use demangler in GNU ld.
919 --with-gnu-as arrange to work with GNU as
920 --with-as arrange to use the specified as (full pathname)
921 --with-stabs arrange to use stabs instead of host debug format
922 --with-dwarf2 force the default debug format to be DWARF 2
923 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
924 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
925 --with-gc={page,zone} choose the garbage collection mechanism to use
927 --with-system-zlib use installed libz
928 --with-libbanshee enable libbanshee
929 --with-slibdir=DIR shared libraries in DIR LIBDIR
931 Some influential environment variables:
932 CC C compiler command
933 CFLAGS C compiler flags
934 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
935 nonstandard directory <lib dir>
936 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
937 headers in a nonstandard directory <include dir>
939 GMPLIBS How to link GMP
940 GMPINC How to find GMP include files
942 Use these variables to override the choices made by `configure' or to
help
943 it to
find libraries and programs with nonstandard names
/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
952 test -d $ac_dir ||
continue
955 if test "$ac_dir" != .
; then
956 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix
= ac_top_builddir
=
964 .
) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
971 [\\/]* | ?
:[\\/]* ) # Absolute path.
972 ac_srcdir
=$srcdir$ac_dir_suffix;
973 ac_top_srcdir
=$srcdir ;;
975 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .
) ac_abs_builddir
="$ac_dir";;
985 .
) ac_abs_builddir
=`pwd`;;
986 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
987 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
993 case ${ac_top_builddir}.
in
994 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
995 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
996 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
999 case $ac_abs_builddir in
1000 .
) ac_abs_srcdir
=$ac_srcdir;;
1003 .
) ac_abs_srcdir
=$ac_abs_builddir;;
1004 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
1005 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
1013 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu
; then
1022 $SHELL $ac_srcdir/configure.gnu
--help=recursive
1023 elif test -f $ac_srcdir/configure
; then
1025 $SHELL $ac_srcdir/configure
--help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.
in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright
(C
) 2003 Free Software Foundation
, Inc.
1042 This configure
script is free software
; the Free Software Foundation
1043 gives unlimited permission to copy
, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir
=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next
=false
1118 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1119 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1120 |
-silent |
--silent |
--silen |
--sile |
--sil)
1122 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true
; then
1130 ac_must_keep_next
=false
# Got value, back to normal.
1133 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1134 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1135 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1136 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next
=true
;;
1144 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1152 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h; then
1222 sed "/^$/d" confdefs.h | sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 for ac_signal
in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest
* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h
<<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h
<<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h
<<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h
<<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h
<<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE
; then
1274 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file
in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
1296 *) . .
/$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted
=false
1308 for ac_var
in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1311 eval ac_new_set
=\
$ac_env_${ac_var}_set
1312 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val
="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted
=: ;;
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted
=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted
=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg
=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp
='$CPP $CPPFLAGS'
1358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1381 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
1384 # Determine the host, build, and target systems
1386 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1387 if test -f $ac_dir/install-sh
; then
1389 ac_install_sh
="$ac_aux_dir/install-sh -c"
1391 elif test -f $ac_dir/install.sh
; then
1393 ac_install_sh
="$ac_aux_dir/install.sh -c"
1395 elif test -f $ac_dir/shtool
; then
1397 ac_install_sh
="$ac_aux_dir/shtool install -c"
1401 if test -z "$ac_aux_dir"; then
1402 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1403 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1404 { (exit 1); exit 1; }; }
1406 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1407 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1408 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410 # Make sure we can run config.sub.
1411 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1412 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1413 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1414 { (exit 1); exit 1; }; }
1416 echo "$as_me:$LINENO: checking build system type" >&5
1417 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1418 if test "${ac_cv_build+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_build_alias
=$build_alias
1422 test -z "$ac_cv_build_alias" &&
1423 ac_cv_build_alias
=`$ac_config_guess`
1424 test -z "$ac_cv_build_alias" &&
1425 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1426 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1427 { (exit 1); exit 1; }; }
1428 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1429 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1430 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1431 { (exit 1); exit 1; }; }
1434 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1435 echo "${ECHO_T}$ac_cv_build" >&6
1437 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1438 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1439 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1442 echo "$as_me:$LINENO: checking host system type" >&5
1443 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1444 if test "${ac_cv_host+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 ac_cv_host_alias
=$host_alias
1448 test -z "$ac_cv_host_alias" &&
1449 ac_cv_host_alias
=$ac_cv_build_alias
1450 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1457 echo "${ECHO_T}$ac_cv_host" >&6
1459 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464 echo "$as_me:$LINENO: checking target system type" >&5
1465 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1466 if test "${ac_cv_target+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_target_alias
=$target_alias
1470 test "x$ac_cv_target_alias" = "x" &&
1471 ac_cv_target_alias
=$ac_cv_host_alias
1472 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1478 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1479 echo "${ECHO_T}$ac_cv_target" >&6
1480 target
=$ac_cv_target
1481 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486 # The aliases save the names the user supplied, while $host etc.
1487 # will get canonicalized.
1488 test -n "$target_alias" &&
1489 test "$program_prefix$program_suffix$program_transform_name" = \
1491 program_prefix
=${target_alias}-
1493 # Determine the noncanonical target name, for directory use.
1494 case ${build_alias} in
1495 "") build_noncanonical
=${build} ;;
1496 *) build_noncanonical
=${build_alias} ;;
1499 case ${host_alias} in
1500 "") host_noncanonical
=${build_noncanonical} ;;
1501 *) host_noncanonical
=${host_alias} ;;
1504 case ${target_alias} in
1505 "") target_noncanonical
=${host_noncanonical} ;;
1506 *) target_noncanonical
=${target_alias} ;;
1512 # Determine the target- and build-specific subdirectories
1513 # Prefix 'build-' so this never conflicts with target_subdir.
1514 build_subdir
="build-${build_noncanonical}"
1515 # Not really a subdirectory, but here for completeness.
1518 target_subdir
=${target_noncanonical}
1521 # Set program_transform_name
1522 test "$program_prefix" != NONE
&&
1523 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1524 # Use a double $ so make ignores it.
1525 test "$program_suffix" != NONE
&&
1526 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1527 # Double any \ or $. echo might interpret backslashes.
1528 # By default was `s,x,x', remove it if useless.
1529 cat <<\_ACEOF
>conftest.
sed
1530 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1532 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1536 # Check for bogus environment variables.
1537 # Test if LIBRARY_PATH contains the notation for the current directory
1538 # since this would lead to problems installing/building glibc.
1539 # LIBRARY_PATH contains the current directory if one of the following
1541 # - one of the terminals (":" and ";") is the first or last sign
1542 # - two terminals occur directly after each other
1543 # - the path contains an element with a dot in it
1544 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1545 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1546 case ${LIBRARY_PATH} in
1547 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1548 library_path_setting
="contains current directory"
1551 library_path_setting
="ok"
1554 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1555 echo "${ECHO_T}$library_path_setting" >&6
1556 if test "$library_path_setting" != "ok"; then
1557 { { echo "$as_me:$LINENO: error:
1558 *** LIBRARY_PATH shouldn't contain the current directory when
1559 *** building gcc. Please change the environment variable
1560 *** and run configure again." >&5
1561 echo "$as_me: error:
1562 *** LIBRARY_PATH shouldn't contain the current directory when
1563 *** building gcc. Please change the environment variable
1564 *** and run configure again." >&2;}
1565 { (exit 1); exit 1; }; }
1568 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1569 # since this would lead to problems installing/building glibc.
1570 # GCC_EXEC_PREFIX contains the current directory if one of the following
1572 # - one of the terminals (":" and ";") is the first or last sign
1573 # - two terminals occur directly after each other
1574 # - the path contains an element with a dot in it
1575 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1576 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1577 case ${GCC_EXEC_PREFIX} in
1578 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1579 gcc_exec_prefix_setting
="contains current directory"
1582 gcc_exec_prefix_setting
="ok"
1585 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1586 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1587 if test "$gcc_exec_prefix_setting" != "ok"; then
1588 { { echo "$as_me:$LINENO: error:
1589 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1590 *** building gcc. Please change the environment variable
1591 *** and run configure again." >&5
1592 echo "$as_me: error:
1593 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1594 *** building gcc. Please change the environment variable
1595 *** and run configure again." >&2;}
1596 { (exit 1); exit 1; }; }
1603 # Specify the local prefix
1606 # Check whether --with-local-prefix or --without-local-prefix was given.
1607 if test "${with_local_prefix+set}" = set; then
1608 withval
="$with_local_prefix"
1609 case "${withval}" in
1610 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1611 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1612 { (exit 1); exit 1; }; } ;;
1614 *) local_prefix
=$with_local_prefix ;;
1618 # Default local prefix if it is empty
1619 if test x
$local_prefix = x
; then
1620 local_prefix
=/usr
/local
1623 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1624 # passed in by the toplevel make and thus we'd get different behavior
1625 # depending on where we built the sources.
1626 gcc_gxx_include_dir
=
1627 # Specify the g++ header file directory
1629 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1630 if test "${with_gxx_include_dir+set}" = set; then
1631 withval
="$with_gxx_include_dir"
1632 case "${withval}" in
1633 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1634 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1635 { (exit 1); exit 1; }; } ;;
1637 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1641 if test x
${gcc_gxx_include_dir} = x
; then
1642 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1643 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1645 topsrcdir
=${srcdir}/.. .
${srcdir}/..
/config.
if
1646 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1651 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1652 if test "${with_cpp_install_dir+set}" = set; then
1653 withval
="$with_cpp_install_dir"
1654 if test x
$withval = xyes
; then
1655 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1656 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1657 { (exit 1); exit 1; }; }
1658 elif test x
$withval != xno
; then
1659 cpp_install_dir
=$withval
1663 # We would like to our source tree to be readonly. However when releases or
1664 # pre-releases are generated, the flex/bison generated files as well as the
1665 # various formats of manuals need to be included along with the rest of the
1666 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1669 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1670 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1671 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1672 if test "${enable_generated_files_in_srcdir+set}" = set; then
1673 enableval
="$enable_generated_files_in_srcdir"
1674 generated_files_in_srcdir
=$enableval
1676 generated_files_in_srcdir
=no
1679 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1680 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1682 if test "$generated_files_in_srcdir" = "yes"; then
1689 # -------------------
1690 # Find default linker
1691 # -------------------
1695 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1696 if test "${with_gnu_ld+set}" = set; then
1697 withval
="$with_gnu_ld"
1698 gnu_ld_flag
="$with_gnu_ld"
1703 # With pre-defined ld
1705 # Check whether --with-ld or --without-ld was given.
1706 if test "${with_ld+set}" = set; then
1708 DEFAULT_LINKER
="$with_ld"
1710 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1711 if test ! -x "$DEFAULT_LINKER"; then
1712 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1713 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1714 { (exit 1); exit 1; }; }
1715 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1719 cat >>confdefs.h
<<_ACEOF
1720 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1725 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1726 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1727 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1728 if test x
"$gnu_ld_flag" = x
"no"; then
1729 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1730 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1732 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1733 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 # With demangler in GNU ld
1742 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1743 if test "${with_demangler_in_ld+set}" = set; then
1744 withval
="$with_demangler_in_ld"
1745 demangler_in_ld
="$with_demangler_in_ld"
1750 # ----------------------
1751 # Find default assembler
1752 # ----------------------
1756 # Check whether --with-gnu-as or --without-gnu-as was given.
1757 if test "${with_gnu_as+set}" = set; then
1758 withval
="$with_gnu_as"
1759 gas_flag
="$with_gnu_as"
1765 # Check whether --with-as or --without-as was given.
1766 if test "${with_as+set}" = set; then
1768 DEFAULT_ASSEMBLER
="$with_as"
1770 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1771 if test ! -x "$DEFAULT_ASSEMBLER"; then
1772 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1773 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1774 { (exit 1); exit 1; }; }
1775 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1779 cat >>confdefs.h
<<_ACEOF
1780 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1785 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1786 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1787 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1788 if test x
"$gas_flag" = x
"no"; then
1789 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1790 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1792 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1793 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1804 # If a non-executable a.out is present (e.g. created by GNU as above even if
1805 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1806 # file, even when creating an executable, so an execution test fails.
1807 # Remove possible default executable files to avoid this.
1809 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1810 # Autoconf includes it.
1811 rm -f a.out a.exe b.out
1813 # Find the native compiler
1815 ac_cpp
='$CPP $CPPFLAGS'
1816 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1819 if test -n "$ac_tool_prefix"; then
1820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1821 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1822 echo "$as_me:$LINENO: checking for $ac_word" >&5
1823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1824 if test "${ac_cv_prog_CC+set}" = set; then
1825 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 if test -n "$CC"; then
1828 ac_cv_prog_CC
="$CC" # Let the user override the test.
1830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1834 test -z "$as_dir" && as_dir
=.
1835 for ac_exec_ext
in '' $ac_executable_extensions; do
1836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1837 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847 if test -n "$CC"; then
1848 echo "$as_me:$LINENO: result: $CC" >&5
1849 echo "${ECHO_T}$CC" >&6
1851 echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1856 if test -z "$ac_cv_prog_CC"; then
1858 # Extract the first word of "gcc", so it can be a program name with args.
1859 set dummy gcc
; ac_word
=$2
1860 echo "$as_me:$LINENO: checking for $ac_word" >&5
1861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 if test -n "$ac_ct_CC"; then
1866 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1872 test -z "$as_dir" && as_dir
=.
1873 for ac_exec_ext
in '' $ac_executable_extensions; do
1874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875 ac_cv_prog_ac_ct_CC
="gcc"
1876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1885 if test -n "$ac_ct_CC"; then
1886 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1887 echo "${ECHO_T}$ac_ct_CC" >&6
1889 echo "$as_me:$LINENO: result: no" >&5
1890 echo "${ECHO_T}no" >&6
1898 if test -z "$CC"; then
1899 if test -n "$ac_tool_prefix"; then
1900 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1901 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$CC"; then
1908 ac_cv_prog_CC
="$CC" # Let the user override the test.
1910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir
=.
1915 for ac_exec_ext
in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927 if test -n "$CC"; then
1928 echo "$as_me:$LINENO: result: $CC" >&5
1929 echo "${ECHO_T}$CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1936 if test -z "$ac_cv_prog_CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939 set dummy cc
; ac_word
=$2
1940 echo "$as_me:$LINENO: checking for $ac_word" >&5
1941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 if test -n "$ac_ct_CC"; then
1946 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir
=.
1953 for ac_exec_ext
in '' $ac_executable_extensions; do
1954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955 ac_cv_prog_ac_ct_CC
="cc"
1956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1965 if test -n "$ac_ct_CC"; then
1966 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1967 echo "${ECHO_T}$ac_ct_CC" >&6
1969 echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6
1979 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc
; ac_word
=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$CC"; then
1988 ac_cv_prog_CC
="$CC" # Let the user override the test.
1991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1995 test -z "$as_dir" && as_dir
=.
1996 for ac_exec_ext
in '' $ac_executable_extensions; do
1997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999 ac_prog_rejected
=yes
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009 if test $ac_prog_rejected = yes; then
2010 # We found a bogon in the path, so make sure we never use it.
2011 set dummy
$ac_cv_prog_CC
2013 if test $# != 0; then
2014 # We chose a different compiler from the bogus one.
2015 # However, it has the same basename, so the bogon will be chosen
2016 # first if we set CC to just the basename; use the full file name.
2018 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2024 if test -n "$CC"; then
2025 echo "$as_me:$LINENO: result: $CC" >&5
2026 echo "${ECHO_T}$CC" >&6
2028 echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2033 if test -z "$CC"; then
2034 if test -n "$ac_tool_prefix"; then
2037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2038 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_CC+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
2044 if test -n "$CC"; then
2045 ac_cv_prog_CC
="$CC" # Let the user override the test.
2047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir
=.
2052 for ac_exec_ext
in '' $ac_executable_extensions; do
2053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6
2068 echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2072 test -n "$CC" && break
2075 if test -z "$CC"; then
2079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2080 set dummy
$ac_prog; ac_word
=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$ac_ct_CC"; then
2087 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir
=.
2094 for ac_exec_ext
in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_ac_ct_CC
="$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$ac_ct_CC" && break
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127 { (exit 1); exit 1; }; }
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO:" \
2131 "checking for C compiler version" >&5
2132 ac_compiler
=`set X $ac_compile; echo $2`
2133 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2134 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2139 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2144 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2149 cat >conftest.
$ac_ext <<_ACEOF
2152 cat confdefs.h
>>conftest.
$ac_ext
2153 cat >>conftest.
$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 ac_clean_files_save
=$ac_clean_files
2165 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2166 # Try to create an executable without -o first, disregard a.out.
2167 # It will help us diagnose broken compilers, and finding out an intuition
2169 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2170 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2171 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2173 (eval $ac_link_default) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 # Find the output, starting from the most likely. This scheme is
2178 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2181 # Be careful to initialize this variable, since it used to be cached.
2182 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2184 # b.out is created by i960 compilers.
2185 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2187 test -f "$ac_file" ||
continue
2189 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2192 # This is the source file.
2195 # We found the default executable, but exeext='' is most
2199 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 # FIXME: I believe we export ac_cv_exeext for Libtool,
2201 # but it would be cool to find out if it's true. Does anybody
2202 # maintain Libtool? --akim.
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.
$ac_ext >&5
2213 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2214 See \`config.log' for more details." >&5
2215 echo "$as_me: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&2;}
2217 { (exit 77); exit 77; }; }
2220 ac_exeext
=$ac_cv_exeext
2221 echo "$as_me:$LINENO: result: $ac_file" >&5
2222 echo "${ECHO_T}$ac_file" >&6
2224 # Check the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try
='./$ac_file'
2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }; }; then
2239 if test "$cross_compiling" = maybe
; then
2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&2;}
2248 { (exit 1); exit 1; }; }
2252 echo "$as_me:$LINENO: result: yes" >&5
2253 echo "${ECHO_T}yes" >&6
2255 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2256 ac_clean_files
=$ac_clean_files_save
2257 # Check the compiler produces executables we can run. If not, either
2258 # the compiler is broken, or we cross compile.
2259 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2260 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2261 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2262 echo "${ECHO_T}$cross_compiling" >&6
2264 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2265 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2267 (eval $ac_link) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file
in conftest.exe conftest conftest.
*; do
2276 test -f "$ac_file" ||
continue
2278 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2279 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&5
2288 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2293 rm -f conftest
$ac_cv_exeext
2294 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2295 echo "${ECHO_T}$ac_cv_exeext" >&6
2297 rm -f conftest.
$ac_ext
2298 EXEEXT
=$ac_cv_exeext
2300 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2301 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2302 if test "${ac_cv_objext+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 cat >conftest.
$ac_ext <<_ACEOF
2308 cat confdefs.h
>>conftest.
$ac_ext
2309 cat >>conftest.
$ac_ext <<_ACEOF
2310 /* end confdefs.h. */
2320 rm -f conftest.o conftest.obj
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322 (eval $ac_compile) 2>&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; then
2326 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2328 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2329 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.
$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2346 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6
2348 OBJEXT
=$ac_cv_objext
2350 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.
$ac_ext <<_ACEOF
2358 cat confdefs.h
>>conftest.
$ac_ext
2359 cat >>conftest.
$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.
$ac_objext
2374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375 (eval $ac_compile) 2>conftest.er1
2377 grep -v '^ *+' conftest.er1
>conftest.err
2379 cat conftest.err
>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try
='test -z "$ac_c_werror_flag"
2383 || test ! -s conftest.err'
2384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); }; } &&
2389 { ac_try
='test -s conftest.$ac_objext'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; }; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.
$ac_ext >&5
2402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2403 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2406 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2407 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2408 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2409 ac_test_CFLAGS
=${CFLAGS+set}
2410 ac_save_CFLAGS
=$CFLAGS
2412 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2413 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_g+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 cat >conftest.
$ac_ext <<_ACEOF
2420 cat confdefs.h
>>conftest.
$ac_ext
2421 cat >>conftest.
$ac_ext <<_ACEOF
2422 /* end confdefs.h. */
2432 rm -f conftest.
$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434 (eval $ac_compile) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1
>conftest.err
2438 cat conftest.err
>&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } &&
2441 { ac_try
='test -z "$ac_c_werror_flag"
2442 || test ! -s conftest.err'
2443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }; } &&
2448 { ac_try
='test -s conftest.$ac_objext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.
$ac_ext >&5
2461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2463 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2464 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2465 if test "$ac_test_CFLAGS" = set; then
2466 CFLAGS
=$ac_save_CFLAGS
2467 elif test $ac_cv_prog_cc_g = yes; then
2468 if test "$GCC" = yes; then
2474 if test "$GCC" = yes; then
2480 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2481 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2482 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 ac_cv_prog_cc_stdc
=no
2487 cat >conftest.
$ac_ext <<_ACEOF
2490 cat confdefs.h
>>conftest.
$ac_ext
2491 cat >>conftest.
$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2495 #include <sys/types.h>
2496 #include <sys/stat.h>
2497 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2498 struct buf { int x; };
2499 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2500 static char *e (p, i)
2506 static char *f (char * (*g) (char **, int), char **p, ...)
2511 s = g (p, va_arg (v,int));
2516 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2517 function prototypes and stuff, but not '\xHH' hex character constants.
2518 These don't provoke an error unfortunately, instead are silently treated
2519 as 'x'. The following induces an error, until -std1 is added to get
2520 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2521 array size at least. It's necessary to write '\x00'==0 to get something
2522 that's true only with -std1. */
2523 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2525 int test (int i, double x);
2526 struct s1 {int (*f) (int a);};
2527 struct s2 {int (*f) (double a);};
2528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2539 # Don't try gcc -ansi; that turns off useful extensions and
2540 # breaks some systems' header files.
2541 # AIX -qlanglvl=ansi
2542 # Ultrix and OSF/1 -std1
2543 # HP-UX 10.20 and later -Ae
2544 # HP-UX older versions -Aa -D_HPUX_SOURCE
2545 # SVR4 -Xc -D__EXTENSIONS__
2546 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2548 CC
="$ac_save_CC $ac_arg"
2549 rm -f conftest.
$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551 (eval $ac_compile) 2>conftest.er1
2553 grep -v '^ *+' conftest.er1
>conftest.err
2555 cat conftest.err
>&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try
='test -z "$ac_c_werror_flag"
2559 || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try
='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc
=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.
$ac_ext >&5
2578 rm -f conftest.err conftest.
$ac_objext
2580 rm -f conftest.
$ac_ext conftest.
$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.
$ac_ext <<_ACEOF
2604 rm -f conftest.
$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1
>conftest.err
2610 cat conftest.err
>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try
='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try
='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 for ac_declaration
in \
2628 'extern "C" void std::exit (int) throw (); using std::exit;' \
2629 'extern "C" void std::exit (int); using std::exit;' \
2630 'extern "C" void exit (int) throw ();' \
2631 'extern "C" void exit (int);' \
2634 cat >conftest.
$ac_ext <<_ACEOF
2637 cat confdefs.h
>>conftest.
$ac_ext
2638 cat >>conftest.
$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2650 rm -f conftest.
$ac_objext
2651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2652 (eval $ac_compile) 2>conftest.er1
2654 grep -v '^ *+' conftest.er1
>conftest.err
2656 cat conftest.err
>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try
='test -z "$ac_c_werror_flag"
2660 || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try
='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.
$ac_ext >&5
2679 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2680 cat >conftest.
$ac_ext <<_ACEOF
2683 cat confdefs.h
>>conftest.
$ac_ext
2684 cat >>conftest.
$ac_ext <<_ACEOF
2685 /* end confdefs.h. */
2695 rm -f conftest.
$ac_objext
2696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697 (eval $ac_compile) 2>conftest.er1
2699 grep -v '^ *+' conftest.er1
>conftest.err
2701 cat conftest.err
>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try
='test -z "$ac_c_werror_flag"
2705 || test ! -s conftest.err'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; } &&
2711 { ac_try
='test -s conftest.$ac_objext'
2712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; }; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.
$ac_ext >&5
2723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2726 if test -n "$ac_declaration"; then
2727 echo '#ifdef __cplusplus' >>confdefs.h
2728 echo $ac_declaration >>confdefs.h
2729 echo '#endif' >>confdefs.h
2733 echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.
$ac_ext >&5
2737 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2739 ac_cpp
='$CPP $CPPFLAGS'
2740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2744 if test "x$CC" != xcc
; then
2745 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2746 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2748 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2749 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2751 set dummy
$CC; ac_cc
=`echo $2 |
2752 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2753 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 cat >conftest.
$ac_ext <<_ACEOF
2759 cat confdefs.h
>>conftest.
$ac_ext
2760 cat >>conftest.
$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2771 # Make sure it works both with $CC and with simple cc.
2772 # We do the test twice because some compilers refuse to overwrite an
2773 # existing .o file with -o, though they will create one.
2774 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2775 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
2780 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); };
2786 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2787 if test "x$CC" != xcc
; then
2788 # Test first that cc exists at all.
2789 if { ac_try
='cc -c conftest.$ac_ext >&5'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); } &&
2801 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); };
2810 # cc exists but doesn't like -o.
2811 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2816 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2822 echo "$as_me:$LINENO: result: yes" >&5
2823 echo "${ECHO_T}yes" >&6
2825 echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6
2828 cat >>confdefs.h
<<\_ACEOF
2829 #define NO_MINUS_C_MINUS_O 1
2834 # autoconf is lame and doesn't give us any substitution variable for this.
2835 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2836 NO_MINUS_C_MINUS_O
=yes
2838 OUTPUT_OPTION
='-o $@'
2843 # -------------------------
2844 # Check C compiler features
2845 # -------------------------
2848 ac_cpp
='$CPP $CPPFLAGS'
2849 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2852 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2854 # On Suns, sometimes $CPP names a directory.
2855 if test -n "$CPP" && test -d "$CPP"; then
2858 if test -z "$CPP"; then
2859 if test "${ac_cv_prog_CPP+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 # Double quotes because CPP needs to be expanded
2863 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2866 for ac_c_preproc_warn_flag
in '' yes
2868 # Use a header file that comes with gcc, so configuring glibc
2869 # with a fresh cross-compiler works.
2870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2871 # <limits.h> exists even on freestanding compilers.
2872 # On the NeXT, cc -E runs the code through the compiler's parser,
2873 # not just through cpp. "Syntax error" is here to catch this case.
2874 cat >conftest.
$ac_ext <<_ACEOF
2877 cat confdefs.h
>>conftest.
$ac_ext
2878 cat >>conftest.
$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2881 # include <limits.h>
2883 # include <assert.h>
2887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2888 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1
>conftest.err
2892 cat conftest.err
>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } >/dev
/null
; then
2895 if test -s conftest.err
; then
2896 ac_cpp_err
=$ac_c_preproc_warn_flag
2897 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2904 if test -z "$ac_cpp_err"; then
2907 echo "$as_me: failed program was:" >&5
2908 sed 's/^/| /' conftest.
$ac_ext >&5
2910 # Broken: fails on valid input.
2913 rm -f conftest.err conftest.
$ac_ext
2915 # OK, works on sane cases. Now check whether non-existent headers
2916 # can be detected and how.
2917 cat >conftest.
$ac_ext <<_ACEOF
2920 cat confdefs.h
>>conftest.
$ac_ext
2921 cat >>conftest.
$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 #include <ac_nonexistent.h>
2925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2926 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1
>conftest.err
2930 cat conftest.err
>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } >/dev
/null
; then
2933 if test -s conftest.err
; then
2934 ac_cpp_err
=$ac_c_preproc_warn_flag
2935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2942 if test -z "$ac_cpp_err"; then
2943 # Broken: success on invalid input.
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.
$ac_ext >&5
2949 # Passes both tests.
2953 rm -f conftest.err conftest.
$ac_ext
2956 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2957 rm -f conftest.err conftest.
$ac_ext
2958 if $ac_preproc_ok; then
2970 echo "$as_me:$LINENO: result: $CPP" >&5
2971 echo "${ECHO_T}$CPP" >&6
2973 for ac_c_preproc_warn_flag
in '' yes
2975 # Use a header file that comes with gcc, so configuring glibc
2976 # with a fresh cross-compiler works.
2977 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2978 # <limits.h> exists even on freestanding compilers.
2979 # On the NeXT, cc -E runs the code through the compiler's parser,
2980 # not just through cpp. "Syntax error" is here to catch this case.
2981 cat >conftest.
$ac_ext <<_ACEOF
2984 cat confdefs.h
>>conftest.
$ac_ext
2985 cat >>conftest.
$ac_ext <<_ACEOF
2986 /* end confdefs.h. */
2988 # include <limits.h>
2990 # include <assert.h>
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1
>conftest.err
2999 cat conftest.err
>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev
/null
; then
3002 if test -s conftest.err
; then
3003 ac_cpp_err
=$ac_c_preproc_warn_flag
3004 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3011 if test -z "$ac_cpp_err"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.
$ac_ext >&5
3017 # Broken: fails on valid input.
3020 rm -f conftest.err conftest.
$ac_ext
3022 # OK, works on sane cases. Now check whether non-existent headers
3023 # can be detected and how.
3024 cat >conftest.
$ac_ext <<_ACEOF
3027 cat confdefs.h
>>conftest.
$ac_ext
3028 cat >>conftest.
$ac_ext <<_ACEOF
3029 /* end confdefs.h. */
3030 #include <ac_nonexistent.h>
3032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3035 grep -v '^ *+' conftest.er1
>conftest.err
3037 cat conftest.err
>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } >/dev
/null
; then
3040 if test -s conftest.err
; then
3041 ac_cpp_err
=$ac_c_preproc_warn_flag
3042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3049 if test -z "$ac_cpp_err"; then
3050 # Broken: success on invalid input.
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.
$ac_ext >&5
3056 # Passes both tests.
3060 rm -f conftest.err conftest.
$ac_ext
3063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3064 rm -f conftest.err conftest.
$ac_ext
3065 if $ac_preproc_ok; then
3068 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3069 See \`config.log' for more details." >&5
3070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3076 ac_cpp
='$CPP $CPPFLAGS'
3077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3082 echo "$as_me:$LINENO: checking for inline" >&5
3083 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3084 if test "${ac_cv_c_inline+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 for ac_kw
in inline __inline__ __inline
; do
3089 cat >conftest.
$ac_ext <<_ACEOF
3092 cat confdefs.h
>>conftest.
$ac_ext
3093 cat >>conftest.
$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3097 static $ac_kw foo_t static_foo () {return 0; }
3098 $ac_kw foo_t foo () {return 0; }
3102 rm -f conftest.
$ac_objext
3103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3104 (eval $ac_compile) 2>conftest.er1
3106 grep -v '^ *+' conftest.er1
>conftest.err
3108 cat conftest.err
>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try
='test -z "$ac_c_werror_flag"
3112 || test ! -s conftest.err'
3113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try
='test -s conftest.$ac_objext'
3119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3124 ac_cv_c_inline
=$ac_kw; break
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.
$ac_ext >&5
3130 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3134 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3135 echo "${ECHO_T}$ac_cv_c_inline" >&6
3138 case $ac_cv_c_inline in
3141 case $ac_cv_c_inline in
3143 *) ac_val
=$ac_cv_c_inline;;
3145 cat >>confdefs.h
<<_ACEOF
3147 #define inline $ac_val
3154 echo "$as_me:$LINENO: checking for long long int" >&5
3155 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3156 if test "${ac_cv_c_long_long+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.
$ac_ext <<_ACEOF
3162 cat confdefs.h
>>conftest.
$ac_ext
3163 cat >>conftest.
$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3174 rm -f conftest.
$ac_objext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3176 (eval $ac_compile) 2>conftest.er1
3178 grep -v '^ *+' conftest.er1
>conftest.err
3180 cat conftest.err
>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } &&
3183 { ac_try
='test -z "$ac_c_werror_flag"
3184 || test ! -s conftest.err'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; } &&
3190 { ac_try
='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 ac_cv_c_long_long
=yes
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.
$ac_ext >&5
3201 ac_cv_c_long_long
=no
3203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3205 echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
3206 echo "${ECHO_T}$ac_cv_c_long_long" >&6
3207 if test $ac_cv_c_long_long = yes; then
3209 cat >>confdefs.h
<<\_ACEOF
3210 #define HAVE_LONG_LONG 1
3214 echo "$as_me:$LINENO: checking for __int64" >&5
3215 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
3216 if test "${ac_cv_c___int64+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 cat >conftest.
$ac_ext <<_ACEOF
3222 cat confdefs.h
>>conftest.
$ac_ext
3223 cat >>conftest.
$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.
$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236 (eval $ac_compile) 2>conftest.er1
3238 grep -v '^ *+' conftest.er1
>conftest.err
3240 cat conftest.err
>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 { ac_try
='test -z "$ac_c_werror_flag"
3244 || test ! -s conftest.err'
3245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; } &&
3250 { ac_try
='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.
$ac_ext >&5
3263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3265 echo "$as_me:$LINENO: result: $ac_cv_c___int64" >&5
3266 echo "${ECHO_T}$ac_cv_c___int64" >&6
3267 if test $ac_cv_c___int64 = yes; then
3269 cat >>confdefs.h
<<\_ACEOF
3270 #define HAVE___INT64 1
3276 # sizeof(char) is 1 by definition.
3277 echo "$as_me:$LINENO: checking size of void *" >&5
3278 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3279 if test "${ac_cv_sizeof_void_p+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3283 cat >conftest.
$ac_ext <<_ACEOF
3286 cat confdefs.h
>>conftest.
$ac_ext
3287 cat >>conftest.
$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3296 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3301 rm -f conftest.
$ac_objext
3302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303 (eval $ac_compile) 2>conftest.er1
3305 grep -v '^ *+' conftest.er1
>conftest.err
3307 cat conftest.err
>&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); } &&
3310 { ac_try
='test -z "$ac_c_werror_flag"
3311 || test ! -s conftest.err'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try
='test -s conftest.$ac_objext'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
3323 ac_cv_sizeof_void_p
=$ac_size
3325 echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.
$ac_ext >&5
3329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3330 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3335 if test x
$ac_cv_sizeof_void_p = x
; then
3336 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
3337 echo "$as_me: error: cannot determine a size for void *" >&2;}
3338 { (exit 1); exit 1; }; }
3340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3341 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3343 cat >>confdefs.h
<<_ACEOF
3344 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3348 echo "$as_me:$LINENO: checking size of short" >&5
3349 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3350 if test "${ac_cv_sizeof_short+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3354 cat >conftest.
$ac_ext <<_ACEOF
3357 cat confdefs.h
>>conftest.
$ac_ext
3358 cat >>conftest.
$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 switch (0) case 0: case (sizeof (short) == $ac_size):;
3372 rm -f conftest.
$ac_objext
3373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3374 (eval $ac_compile) 2>conftest.er1
3376 grep -v '^ *+' conftest.er1
>conftest.err
3378 cat conftest.err
>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } &&
3381 { ac_try
='test -z "$ac_c_werror_flag"
3382 || test ! -s conftest.err'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; } &&
3388 { ac_try
='test -s conftest.$ac_objext'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_sizeof_short
=$ac_size
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3401 if test x
$ac_cv_sizeof_short != x
; then break; fi
3406 if test x
$ac_cv_sizeof_short = x
; then
3407 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
3408 echo "$as_me: error: cannot determine a size for short" >&2;}
3409 { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3412 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3414 cat >>confdefs.h
<<_ACEOF
3415 #define SIZEOF_SHORT $ac_cv_sizeof_short
3419 echo "$as_me:$LINENO: checking size of int" >&5
3420 echo $ECHO_N "checking size of int... $ECHO_C" >&6
3421 if test "${ac_cv_sizeof_int+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3425 cat >conftest.
$ac_ext <<_ACEOF
3428 cat confdefs.h
>>conftest.
$ac_ext
3429 cat >>conftest.
$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3431 #include "confdefs.h"
3432 #include <sys/types.h>
3438 switch (0) case 0: case (sizeof (int) == $ac_size):;
3443 rm -f conftest.
$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1
>conftest.err
3449 cat conftest.err
>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try
='test -z "$ac_c_werror_flag"
3453 || test ! -s conftest.err'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; } &&
3459 { ac_try
='test -s conftest.$ac_objext'
3460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }; }; then
3465 ac_cv_sizeof_int
=$ac_size
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.
$ac_ext >&5
3471 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3472 if test x
$ac_cv_sizeof_int != x
; then break; fi
3477 if test x
$ac_cv_sizeof_int = x
; then
3478 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
3479 echo "$as_me: error: cannot determine a size for int" >&2;}
3480 { (exit 1); exit 1; }; }
3482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3483 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3485 cat >>confdefs.h
<<_ACEOF
3486 #define SIZEOF_INT $ac_cv_sizeof_int
3490 echo "$as_me:$LINENO: checking size of long" >&5
3491 echo $ECHO_N "checking size of long... $ECHO_C" >&6
3492 if test "${ac_cv_sizeof_long+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3496 cat >conftest.
$ac_ext <<_ACEOF
3499 cat confdefs.h
>>conftest.
$ac_ext
3500 cat >>conftest.
$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include "confdefs.h"
3503 #include <sys/types.h>
3509 switch (0) case 0: case (sizeof (long) == $ac_size):;
3514 rm -f conftest.
$ac_objext
3515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516 (eval $ac_compile) 2>conftest.er1
3518 grep -v '^ *+' conftest.er1
>conftest.err
3520 cat conftest.err
>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try
='test -z "$ac_c_werror_flag"
3524 || test ! -s conftest.err'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; } &&
3530 { ac_try
='test -s conftest.$ac_objext'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; }; then
3536 ac_cv_sizeof_long
=$ac_size
3538 echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.
$ac_ext >&5
3542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3543 if test x
$ac_cv_sizeof_long != x
; then break; fi
3548 if test x
$ac_cv_sizeof_long = x
; then
3549 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
3550 echo "$as_me: error: cannot determine a size for long" >&2;}
3551 { (exit 1); exit 1; }; }
3553 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
3554 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
3556 cat >>confdefs.h
<<_ACEOF
3557 #define SIZEOF_LONG $ac_cv_sizeof_long
3561 if test $ac_cv_c_long_long = yes; then
3562 echo "$as_me:$LINENO: checking size of long long" >&5
3563 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
3564 if test "${ac_cv_sizeof_long_long+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574 #include "confdefs.h"
3575 #include <sys/types.h>
3581 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3586 rm -f conftest.
$ac_objext
3587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>conftest.er1
3590 grep -v '^ *+' conftest.er1
>conftest.err
3592 cat conftest.err
>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); } &&
3595 { ac_try
='test -z "$ac_c_werror_flag"
3596 || test ! -s conftest.err'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; } &&
3602 { ac_try
='test -s conftest.$ac_objext'
3603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); }; }; then
3608 ac_cv_sizeof_long_long
=$ac_size
3610 echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.
$ac_ext >&5
3614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3615 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3620 if test x
$ac_cv_sizeof_long_long = x
; then
3621 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
3622 echo "$as_me: error: cannot determine a size for long long" >&2;}
3623 { (exit 1); exit 1; }; }
3625 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
3626 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
3628 cat >>confdefs.h
<<_ACEOF
3629 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3634 if test $ac_cv_c___int64 = yes; then
3635 echo "$as_me:$LINENO: checking size of __int64" >&5
3636 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
3637 if test "${ac_cv_sizeof___int64+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3641 cat >conftest.
$ac_ext <<_ACEOF
3644 cat confdefs.h
>>conftest.
$ac_ext
3645 cat >>conftest.
$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 #include "confdefs.h"
3648 #include <sys/types.h>
3654 switch (0) case 0: case (sizeof (__int64) == $ac_size):;
3659 rm -f conftest.
$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3663 grep -v '^ *+' conftest.er1
>conftest.err
3665 cat conftest.err
>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try
='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try
='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_sizeof___int64
=$ac_size
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.
$ac_ext >&5
3687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 if test x
$ac_cv_sizeof___int64 != x
; then break; fi
3693 if test x
$ac_cv_sizeof___int64 = x
; then
3694 { { echo "$as_me:$LINENO: error: cannot determine a size for __int64" >&5
3695 echo "$as_me: error: cannot determine a size for __int64" >&2;}
3696 { (exit 1); exit 1; }; }
3698 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
3699 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
3701 cat >>confdefs.h
<<_ACEOF
3702 #define SIZEOF___INT64 $ac_cv_sizeof___int64
3708 # ---------------------
3709 # Warnings and checking
3710 # ---------------------
3712 # Check $CC warning features (if it's GCC).
3713 # We want to use -pedantic, but we don't want warnings about
3716 # So, we only use -pedantic if we can disable those warnings.
3718 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
3719 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
3720 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 save_CFLAGS
="$CFLAGS"
3724 CFLAGS
="-Wno-long-long"
3725 cat >conftest.
$ac_ext <<_ACEOF
3728 cat confdefs.h
>>conftest.
$ac_ext
3729 cat >>conftest.
$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3733 rm -f conftest.
$ac_objext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735 (eval $ac_compile) 2>conftest.er1
3737 grep -v '^ *+' conftest.er1
>conftest.err
3739 cat conftest.err
>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try
='test -z "$ac_c_werror_flag"
3743 || test ! -s conftest.err'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; } &&
3749 { ac_try
='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_prog_cc_w_no_long_long
=yes
3757 echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.
$ac_ext >&5
3760 ac_cv_prog_cc_w_no_long_long
=no
3762 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3763 CFLAGS
="$save_CFLAGS"
3766 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
3767 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
3769 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
3770 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
3771 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 save_CFLAGS
="$CFLAGS"
3775 CFLAGS
="-Wno-variadic-macros"
3776 cat >conftest.
$ac_ext <<_ACEOF
3779 cat confdefs.h
>>conftest.
$ac_ext
3780 cat >>conftest.
$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3784 rm -f conftest.
$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 (eval $ac_compile) 2>conftest.er1
3788 grep -v '^ *+' conftest.er1
>conftest.err
3790 cat conftest.err
>&5
3791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
3793 { ac_try
='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try
='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 ac_cv_prog_cc_w_no_variadic_macros
=yes
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.
$ac_ext >&5
3811 ac_cv_prog_cc_w_no_variadic_macros
=no
3813 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3814 CFLAGS
="$save_CFLAGS"
3817 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
3818 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
3821 if test $ac_cv_prog_cc_w_no_long_long = yes \
3822 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
3823 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
3827 # Add -Wold-style-definition if it's accepted
3828 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
3829 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
3830 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 save_CFLAGS
="$CFLAGS"
3834 CFLAGS
="-Wold-style-definition"
3835 cat >conftest.
$ac_ext <<_ACEOF
3838 cat confdefs.h
>>conftest.
$ac_ext
3839 cat >>conftest.
$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 rm -f conftest.
$ac_objext
3844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845 (eval $ac_compile) 2>conftest.er1
3847 grep -v '^ *+' conftest.er1
>conftest.err
3849 cat conftest.err
>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } &&
3852 { ac_try
='test -z "$ac_c_werror_flag"
3853 || test ! -s conftest.err'
3854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try
='test -s conftest.$ac_objext'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_prog_cc_w_old_style_definition
=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.
$ac_ext >&5
3870 ac_cv_prog_cc_w_old_style_definition
=no
3872 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3873 CFLAGS
="$save_CFLAGS"
3876 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
3877 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
3878 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
3879 strict1_warn
="${strict1_warn} -Wold-style-definition"
3882 # Enable -Werror, period.
3883 # Check whether --enable-werror_always or --disable-werror_always was given.
3884 if test "${enable_werror_always+set}" = set; then
3885 enableval
="$enable_werror_always"
3888 enable_werror_always
=no
3890 if test x
${enable_werror_always} = xyes
; then
3891 strict1_warn
="${strict1_warn} -Werror"
3895 # If the native compiler is GCC, we can enable warnings even in stage1.
3896 # That's useful for people building cross-compilers, or just running a
3899 if test "x$GCC" = "xyes"; then
3900 warn_cflags
='$(GCC_WARN_CFLAGS)'
3904 # Enable -Werror in bootstrap stage2 and later.
3905 # Change the default to "no" on release branches.
3906 # Check whether --enable-werror or --disable-werror was given.
3907 if test "${enable_werror+set}" = set; then
3908 enableval
="$enable_werror"
3913 if test x
$enable_werror = xyes
; then
3918 # Enable expensive internal checks
3919 # Check whether --enable-checking or --disable-checking was given.
3920 if test "${enable_checking+set}" = set; then
3921 enableval
="$enable_checking"
3925 ac_rtlflag_checking
=
3927 ac_gc_always_collect
=
3929 case "${enableval}" in
3930 yes) ac_checking
=1 ; ac_tree_checking
=1 ; ac_gc_checking
=1 ;
3931 ac_rtlflag_checking
=1 ;;
3933 *) IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
3934 set fnord
$enableval; shift
3939 fold) ac_fold_checking
=1 ;;
3940 gc
) ac_gc_checking
=1 ;;
3941 gcac
) ac_gc_always_collect
=1 ;;
3942 misc
) ac_checking
=1 ;;
3943 rtlflag
) ac_rtlflag_checking
=1 ;;
3944 rtl
) ac_rtl_checking
=1 ;;
3945 tree
) ac_tree_checking
=1 ;;
3946 valgrind
) ac_checking_valgrind
=1 ;;
3947 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
3948 echo "$as_me: error: unknown check category $check" >&2;}
3949 { (exit 1); exit 1; }; } ;;
3956 # Enable some checks by default for development versions of GCC
3957 ac_checking
=1; ac_tree_checking
=1; ac_gc_checking
=1; ac_rtlflag_checking
=1;
3960 if test x
$ac_checking != x
; then
3962 cat >>confdefs.h
<<\_ACEOF
3963 #define ENABLE_CHECKING 1
3966 nocommon_flag
=-fno-common
3969 if test x
$ac_tree_checking != x
; then
3971 cat >>confdefs.h
<<\_ACEOF
3972 #define ENABLE_TREE_CHECKING 1
3975 TREEBROWSER
=tree-browser.o
3978 if test x
$ac_rtl_checking != x
; then
3980 cat >>confdefs.h
<<\_ACEOF
3981 #define ENABLE_RTL_CHECKING 1
3985 if test x
$ac_rtlflag_checking != x
; then
3987 cat >>confdefs.h
<<\_ACEOF
3988 #define ENABLE_RTL_FLAG_CHECKING 1
3992 if test x
$ac_gc_checking != x
; then
3994 cat >>confdefs.h
<<\_ACEOF
3995 #define ENABLE_GC_CHECKING 1
3999 if test x
$ac_gc_always_collect != x
; then
4001 cat >>confdefs.h
<<\_ACEOF
4002 #define ENABLE_GC_ALWAYS_COLLECT 1
4006 if test x
$ac_fold_checking != x
; then
4008 cat >>confdefs.h
<<\_ACEOF
4009 #define ENABLE_FOLD_CHECKING 1
4013 valgrind_path_defines
=
4017 echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4019 if test "${ac_cv_prog_egrep+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4023 then ac_cv_prog_egrep
='grep -E'
4024 else ac_cv_prog_egrep
='egrep'
4027 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4028 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4029 EGREP
=$ac_cv_prog_egrep
4032 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4034 if test "${ac_cv_header_stdc+set}" = set; then
4035 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 cat >conftest.
$ac_ext <<_ACEOF
4040 cat confdefs.h
>>conftest.
$ac_ext
4041 cat >>conftest.
$ac_ext <<_ACEOF
4042 /* end confdefs.h. */
4056 rm -f conftest.
$ac_objext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4058 (eval $ac_compile) 2>conftest.er1
4060 grep -v '^ *+' conftest.er1
>conftest.err
4062 cat conftest.err
>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try
='test -z "$ac_c_werror_flag"
4066 || test ! -s conftest.err'
4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; } &&
4072 { ac_try
='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 ac_cv_header_stdc
=yes
4080 echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.
$ac_ext >&5
4083 ac_cv_header_stdc
=no
4085 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4087 if test $ac_cv_header_stdc = yes; then
4088 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4089 cat >conftest.
$ac_ext <<_ACEOF
4092 cat confdefs.h
>>conftest.
$ac_ext
4093 cat >>conftest.
$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4099 $EGREP "memchr" >/dev
/null
2>&1; then
4102 ac_cv_header_stdc
=no
4108 if test $ac_cv_header_stdc = yes; then
4109 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4110 cat >conftest.
$ac_ext <<_ACEOF
4113 cat confdefs.h
>>conftest.
$ac_ext
4114 cat >>conftest.
$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "free" >/dev
/null
2>&1; then
4123 ac_cv_header_stdc
=no
4129 if test $ac_cv_header_stdc = yes; then
4130 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131 if test "$cross_compiling" = yes; then
4134 cat >conftest.
$ac_ext <<_ACEOF
4137 cat confdefs.h
>>conftest.
$ac_ext
4138 cat >>conftest.
$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4141 #if ((' ' & 0x0FF) == 0x020)
4142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4145 # define ISLOWER(c) \
4146 (('a' <= (c) && (c) <= 'i') \
4147 || ('j' <= (c) && (c) <= 'r') \
4148 || ('s' <= (c) && (c) <= 'z'))
4149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4157 for (i = 0; i < 256; i++)
4158 if (XOR (islower (i), ISLOWER (i))
4159 || toupper (i) != TOUPPER (i))
4164 rm -f conftest
$ac_exeext
4165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166 (eval $ac_link) 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.
$ac_ext >&5
4182 ac_cv_header_stdc
=no
4184 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4188 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4189 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4190 if test $ac_cv_header_stdc = yes; then
4192 cat >>confdefs.h
<<\_ACEOF
4193 #define STDC_HEADERS 1
4198 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4208 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4209 inttypes.h stdint.h unistd.h
4211 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4212 echo "$as_me:$LINENO: checking for $ac_header" >&5
4213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4217 cat >conftest.
$ac_ext <<_ACEOF
4220 cat confdefs.h
>>conftest.
$ac_ext
4221 cat >>conftest.
$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 $ac_includes_default
4225 #include <$ac_header>
4227 rm -f conftest.
$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1
>conftest.err
4233 cat conftest.err
>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try
='test -z "$ac_c_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try
='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 eval "$as_ac_Header=yes"
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.
$ac_ext >&5
4254 eval "$as_ac_Header=no"
4256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4261 cat >>confdefs.h
<<_ACEOF
4262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4270 if test "${ac_cv_header_valgrind_h+set}" = set; then
4271 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4272 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4273 if test "${ac_cv_header_valgrind_h+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4276 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4277 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4279 # Is the header compilable?
4280 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
4281 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
4282 cat >conftest.
$ac_ext <<_ACEOF
4285 cat confdefs.h
>>conftest.
$ac_ext
4286 cat >>conftest.
$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4289 #include <valgrind.h>
4291 rm -f conftest.
$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293 (eval $ac_compile) 2>conftest.er1
4295 grep -v '^ *+' conftest.er1
>conftest.err
4297 cat conftest.err
>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } &&
4300 { ac_try
='test -z "$ac_c_werror_flag"
4301 || test ! -s conftest.err'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; } &&
4307 { ac_try
='test -s conftest.$ac_objext'
4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; }; then
4313 ac_header_compiler
=yes
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.
$ac_ext >&5
4318 ac_header_compiler
=no
4320 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4322 echo "${ECHO_T}$ac_header_compiler" >&6
4324 # Is the header present?
4325 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
4326 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 #include <valgrind.h>
4335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4336 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4338 grep -v '^ *+' conftest.er1
>conftest.err
4340 cat conftest.err
>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } >/dev
/null
; then
4343 if test -s conftest.err
; then
4344 ac_cpp_err
=$ac_c_preproc_warn_flag
4345 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4352 if test -z "$ac_cpp_err"; then
4353 ac_header_preproc
=yes
4355 echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.
$ac_ext >&5
4358 ac_header_preproc
=no
4360 rm -f conftest.err conftest.
$ac_ext
4361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4362 echo "${ECHO_T}$ac_header_preproc" >&6
4364 # So? What about this header?
4365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4367 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
4368 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4369 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
4370 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
4371 ac_header_preproc
=yes
4374 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
4375 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
4376 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
4377 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
4378 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
4379 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
4380 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
4381 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
4382 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
4383 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
4384 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
4385 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
4388 ## ------------------------------------------ ##
4389 ## Report this to the AC_PACKAGE_NAME lists. ##
4390 ## ------------------------------------------ ##
4393 sed "s/^/$as_me: WARNING: /" >&2
4396 echo "$as_me:$LINENO: checking for valgrind.h" >&5
4397 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
4398 if test "${ac_cv_header_valgrind_h+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 ac_cv_header_valgrind_h
=$ac_header_preproc
4403 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
4407 if test $ac_cv_header_valgrind_h = yes; then
4415 if test x
$ac_checking_valgrind != x
; then
4416 # It is certainly possible that there's valgrind but no valgrind.h.
4417 # GCC relies on making annotations so we must have both.
4418 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
4419 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
4420 cat >conftest.
$ac_ext <<_ACEOF
4423 cat confdefs.h
>>conftest.
$ac_ext
4424 cat >>conftest.
$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426 #include <valgrind/memcheck.h>
4427 #ifndef VALGRIND_DISCARD
4428 #error VALGRIND_DISCARD not defined
4431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } >/dev
/null
; then
4439 if test -s conftest.err
; then
4440 ac_cpp_err
=$ac_c_preproc_warn_flag
4441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4448 if test -z "$ac_cpp_err"; then
4449 gcc_cv_header_valgrind_memcheck_h
=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.
$ac_ext >&5
4454 gcc_cv_header_valgrind_memcheck_h
=no
4456 rm -f conftest.err conftest.
$ac_ext
4457 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
4458 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
4459 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
4460 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
4461 cat >conftest.
$ac_ext <<_ACEOF
4464 cat confdefs.h
>>conftest.
$ac_ext
4465 cat >>conftest.
$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <memcheck.h>
4468 #ifndef VALGRIND_DISCARD
4469 #error VALGRIND_DISCARD not defined
4472 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4473 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4475 grep -v '^ *+' conftest.er1
>conftest.err
4477 cat conftest.err
>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev
/null
; then
4480 if test -s conftest.err
; then
4481 ac_cpp_err
=$ac_c_preproc_warn_flag
4482 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4489 if test -z "$ac_cpp_err"; then
4490 gcc_cv_header_memcheck_h
=yes
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.
$ac_ext >&5
4495 gcc_cv_header_memcheck_h
=no
4497 rm -f conftest.err conftest.
$ac_ext
4498 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
4499 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
4501 # Prepare PATH_SEPARATOR.
4502 # The user is always right.
4503 if test "${PATH_SEPARATOR+set}" != set; then
4504 echo "#! /bin/sh" >conf$$.sh
4505 echo "exit 0" >>conf$$.sh
4507 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4515 # Find out how to test for executable files. Don't use a zero-byte file,
4516 # as systems may use methods other than mode bits to determine executability.
4517 cat >conf$$.
file <<_ASEOF
4521 chmod +x conf$$.
file
4522 if test -x conf$$.
file >/dev
/null
2>&1; then
4523 ac_executable_p
="test -x"
4525 ac_executable_p
="test -f"
4529 # Extract the first word of "valgrind", so it can be a program name with args.
4530 set dummy valgrind
; ac_word
=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_path_valgrind_path+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 case "$valgrind_path" in
4538 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
4541 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4542 for ac_dir
in $PATH; do
4544 test -z "$ac_dir" && ac_dir
=.
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4547 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
4548 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
4558 valgrind_path
="$ac_cv_path_valgrind_path"
4559 if test -n "$valgrind_path"; then
4560 echo "$as_me:$LINENO: result: $valgrind_path" >&5
4561 echo "${ECHO_T}$valgrind_path" >&6
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4567 if test "x$valgrind_path" = "x" \
4568 ||
(test $have_valgrind_h = no \
4569 && test $gcc_cv_header_memcheck_h = no \
4570 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
4571 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
4572 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
4573 { (exit 1); exit 1; }; }
4575 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
4576 valgrind_command
="$valgrind_path -q"
4578 cat >>confdefs.h
<<\_ACEOF
4579 #define ENABLE_VALGRIND_CHECKING 1
4582 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
4584 cat >>confdefs.h
<<\_ACEOF
4585 #define HAVE_VALGRIND_MEMCHECK_H 1
4589 if test $gcc_cv_header_memcheck_h = yes; then
4591 cat >>confdefs.h
<<\_ACEOF
4592 #define HAVE_MEMCHECK_H 1
4600 # Check whether --enable-mapped-location or --disable-mapped-location was given.
4601 if test "${enable_mapped_location+set}" = set; then
4602 enableval
="$enable_mapped_location"
4605 enable_mapped_location
=no
4608 if test "$enable_mapped_location" = yes ; then
4610 cat >>confdefs.h
<<\_ACEOF
4611 #define USE_MAPPED_LOCATION 1
4616 # Enable code coverage collection
4617 # Check whether --enable-coverage or --disable-coverage was given.
4618 if test "${enable_coverage+set}" = set; then
4619 enableval
="$enable_coverage"
4620 case "${enableval}" in
4622 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
4625 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
4628 # a.k.a. --disable-coverage
4632 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
4633 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
4634 { (exit 1); exit 1; }; }
4642 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
4643 if test "${enable_gather_detailed_mem_stats+set}" = set; then
4644 enableval
="$enable_gather_detailed_mem_stats"
4647 enable_gather_detailed_mem_stats
=no
4649 if test x
$enable_gather_detailed_mem_stats = xyes
; then
4651 cat >>confdefs.h
<<\_ACEOF
4652 #define GATHER_STATISTICS 1
4657 # -------------------------------
4658 # Miscenalleous configure options
4659 # -------------------------------
4663 # Check whether --with-stabs or --without-stabs was given.
4664 if test "${with_stabs+set}" = set; then
4665 withval
="$with_stabs"
4671 # Determine whether or not multilibs are enabled.
4672 # Check whether --enable-multilib or --disable-multilib was given.
4673 if test "${enable_multilib+set}" = set; then
4674 enableval
="$enable_multilib"
4681 # Enable __cxa_atexit for C++.
4682 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
4683 if test "${enable___cxa_atexit+set}" = set; then
4684 enableval
="$enable___cxa_atexit"
4689 # Pass with no value to take the default
4690 # Pass with a value to specify a thread package
4691 # Check whether --enable-threads or --disable-threads was given.
4692 if test "${enable_threads+set}" = set; then
4693 enableval
="$enable_threads"
4699 # Check whether --enable-objc-gc or --disable-objc-gc was given.
4700 if test "${enable_objc_gc+set}" = set; then
4701 enableval
="$enable_objc_gc"
4702 if test x
$enable_objc_gc = xno
; then
4712 # Check whether --with-dwarf2 or --without-dwarf2 was given.
4713 if test "${with_dwarf2+set}" = set; then
4714 withval
="$with_dwarf2"
4715 dwarf2
="$with_dwarf2"
4720 # Check whether --enable-shared or --disable-shared was given.
4721 if test "${enable_shared+set}" = set; then
4722 enableval
="$enable_shared"
4724 case $enable_shared in
4728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
4729 for pkg
in $enableval; do
4730 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
4744 # Check whether --with-sysroot or --without-sysroot was given.
4745 if test "${with_sysroot+set}" = set; then
4746 withval
="$with_sysroot"
4748 case ${with_sysroot} in
4749 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
4750 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
4753 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4754 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
4756 if test "x$exec_prefix" = xNONE
; then
4757 if test "x$prefix" = xNONE
; then
4758 test_prefix
=/usr
/local
4763 test_prefix
=$exec_prefix
4765 case ${TARGET_SYSTEM_ROOT} in
4766 "${test_prefix}"|
"${test_prefix}/"*|\
4767 '${exec_prefix}'|
'${exec_prefix}/'*)
4768 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4769 TARGET_SYSTEM_ROOT_DEFINE
="$t"
4776 TARGET_SYSTEM_ROOT_DEFINE
=
4777 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
4784 # Build with intermodule optimisations
4785 # Check whether --enable-intermodule or --disable-intermodule was given.
4786 if test "${enable_intermodule+set}" = set; then
4787 enableval
="$enable_intermodule"
4788 case ${enable_intermodule} in
4789 yes) onestep
="-onestep";;
4797 # Sanity check enable_languages in case someone does not run the toplevel
4798 # configure # script.
4799 # Check whether --enable-languages or --disable-languages was given.
4800 if test "${enable_languages+set}" = set; then
4801 enableval
="$enable_languages"
4802 case ,${enable_languages}, in
4804 # go safe -- we cannot be much sure without the toplevel
4806 # analysis of which target libs are present and usable
4810 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
4811 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
4812 { (exit 1); exit 1; }; }
4817 enable_languages
=c
,${enable_languages}
4825 for lang
in ${srcdir}/*/config-lang.
in
4828 # The odd quoting in the next line works around
4829 # an apparent bug in bash 1.12 on linux.
4830 ${srcdir}/[*]/config-lang.
in) ;;
4832 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4833 if test "x$lang_alias" = x
4835 echo "$lang doesn't set \$language." 1>&2
4838 case ",$enable_languages," in
4840 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
4847 # -------------------------
4848 # Checks for other programs
4849 # -------------------------
4851 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4852 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4853 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
4854 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 cat >conftest.
make <<\_ACEOF
4859 @
echo 'ac_maketemp="$(MAKE)"'
4861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4862 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4863 if test -n "$ac_maketemp"; then
4864 eval ac_cv_prog_make_
${ac_make}_set
=yes
4866 eval ac_cv_prog_make_
${ac_make}_set
=no
4870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4871 echo "$as_me:$LINENO: result: yes" >&5
4872 echo "${ECHO_T}yes" >&6
4875 echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4877 SET_MAKE
="MAKE=${MAKE-make}"
4881 # Find some useful tools
4882 for ac_prog
in gawk mawk nawk
awk
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy
$ac_prog; ac_word
=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_prog_AWK+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 if test -n "$AWK"; then
4892 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir
=.
4899 for ac_exec_ext
in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_AWK
="$ac_prog"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 if test -n "$AWK"; then
4912 echo "$as_me:$LINENO: result: $AWK" >&5
4913 echo "${ECHO_T}$AWK" >&6
4915 echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4919 test -n "$AWK" && break
4922 # We need awk to create options.c and options.h.
4923 # Bail out if it's missing.
4925 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
4926 echo "$as_me: error: can't build without awk, bailing out" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4930 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4931 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4932 if test "${gcc_cv_prog_LN_S+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 rm -f conftestdata_t
4936 echo >conftestdata_f
4937 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
4939 gcc_cv_prog_LN_S
="ln -s"
4941 if ln conftestdata_f conftestdata_t
2>/dev
/null
4948 rm -f conftestdata_f conftestdata_t
4951 LN_S
="$gcc_cv_prog_LN_S"
4952 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954 echo "${ECHO_T}yes" >&6
4956 if test "$gcc_cv_prog_LN_S" = "ln"; then
4957 echo "$as_me:$LINENO: result: no, using ln" >&5
4958 echo "${ECHO_T}no, using ln" >&6
4960 echo "$as_me:$LINENO: result: no, and neither does ln, so using cp" >&5
4961 echo "${ECHO_T}no, and neither does ln, so using cp" >&6
4965 echo "$as_me:$LINENO: checking whether ln works" >&5
4966 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4967 if test "${acx_cv_prog_LN+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 rm -f conftestdata_t
4971 echo >conftestdata_f
4972 if ln conftestdata_f conftestdata_t
2>/dev
/null
4978 rm -f conftestdata_f conftestdata_t
4981 if test $acx_cv_prog_LN = no
; then
4983 echo "$as_me:$LINENO: result: no, using $LN" >&5
4984 echo "${ECHO_T}no, using $LN" >&6
4986 LN
="$acx_cv_prog_LN"
4987 echo "$as_me:$LINENO: result: yes" >&5
4988 echo "${ECHO_T}yes" >&6
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4993 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4994 echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4996 if test "${ac_cv_prog_RANLIB+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 if test -n "$RANLIB"; then
5000 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir
=.
5007 for ac_exec_ext
in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 RANLIB
=$ac_cv_prog_RANLIB
5019 if test -n "$RANLIB"; then
5020 echo "$as_me:$LINENO: result: $RANLIB" >&5
5021 echo "${ECHO_T}$RANLIB" >&6
5023 echo "$as_me:$LINENO: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5028 if test -z "$ac_cv_prog_RANLIB"; then
5029 ac_ct_RANLIB
=$RANLIB
5030 # Extract the first word of "ranlib", so it can be a program name with args.
5031 set dummy ranlib
; ac_word
=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test -n "$ac_ct_RANLIB"; then
5038 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir
=.
5045 for ac_exec_ext
in '' $ac_executable_extensions; do
5046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
5057 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5058 if test -n "$ac_ct_RANLIB"; then
5059 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5060 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5062 echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6
5066 RANLIB
=$ac_ct_RANLIB
5068 RANLIB
="$ac_cv_prog_RANLIB"
5073 # By default, the Darwin ranlib will not treat common symbols as
5074 # definitions when building the archive table of contents. Other
5075 # ranlibs do that; pass an option to the Darwin ranlib that makes
5076 # it behave similarly.
5084 # Find a good install program. We prefer a C program (faster),
5085 # so one script is as good as another. But avoid the broken or
5086 # incompatible versions:
5087 # SysV /etc/install, /usr/sbin/install
5088 # SunOS /usr/etc/install
5089 # IRIX /sbin/install
5091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5093 # ./install, which can be erroneously created by make from ./install.sh.
5094 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
5095 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5096 if test -z "$INSTALL"; then
5097 if test "${ac_cv_path_install+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
5101 for ac_dir
in $PATH; do
5102 # Account for people who put trailing slashes in PATH elements.
5104 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
5106 # OSF1 and SCO ODT 3.0 have their own names for install.
5107 for ac_prog
in ginstall scoinst
install; do
5108 if test -f $ac_dir/$ac_prog; then
5109 if test $ac_prog = install &&
5110 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
5111 # AIX install. It has an incompatible calling convention.
5112 # OSF/1 installbsd also uses dspmsg, but is usable.
5115 ac_cv_path_install
="$ac_dir/$ac_prog -c"
5126 if test "${ac_cv_path_install+set}" = set; then
5127 INSTALL
="$ac_cv_path_install"
5129 # As a last resort, use the slow shell script. We don't cache a
5130 # path for INSTALL within a source directory, because that will
5131 # break other packages using the cache if that directory is
5132 # removed, or if the path is relative.
5133 INSTALL
="$ac_install_sh"
5136 echo "$as_me:$LINENO: result: $INSTALL" >&5
5137 echo "${ECHO_T}$INSTALL" >&6
5139 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5140 # It thinks the first close brace ends the variable substitution.
5141 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5143 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5146 # See if cmp has --ignore-initial.
5147 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
5148 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
5149 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 gcc_cv_prog_cmp_skip
=slowcompare
5155 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5156 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5159 gcc_cv_prog_cmp_skip
=gnucompare
5162 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
5163 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5164 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5167 gcc_cv_prog_cmp_skip
=fastcompare
5174 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
5175 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
5176 make_compare_target
=$gcc_cv_prog_cmp_skip
5180 # See if we have the mktemp command.
5181 # Extract the first word of "mktemp", so it can be a program name with args.
5182 set dummy mktemp
; ac_word
=$2
5183 echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 if test -n "$have_mktemp_command"; then
5189 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
5191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir
=.
5196 for ac_exec_ext
in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_prog_have_mktemp_command
="yes"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
5208 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
5209 if test -n "$have_mktemp_command"; then
5210 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
5211 echo "${ECHO_T}$have_mktemp_command" >&6
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5218 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
5220 # See if makeinfo has been installed and is modern enough
5221 # that we can use it.
5222 # Extract the first word of "makeinfo", so it can be a program name with args.
5223 set dummy makeinfo
; ac_word
=$2
5224 echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 if test -n "$MAKEINFO"; then
5230 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5236 test -z "$as_dir" && as_dir
=.
5237 for ac_exec_ext
in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_prog_MAKEINFO
="makeinfo"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 MAKEINFO
=$ac_cv_prog_MAKEINFO
5249 if test -n "$MAKEINFO"; then
5250 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5251 echo "${ECHO_T}$MAKEINFO" >&6
5253 echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6
5257 if test -n "$MAKEINFO"; then
5258 # Found it, now check the version.
5259 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
5260 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
5261 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 ac_prog_version
=`$MAKEINFO --version 2>&1 |
5265 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5266 echo "configure:5266: version of makeinfo is $ac_prog_version" >&5
5267 case $ac_prog_version in
5268 '') gcc_cv_prog_makeinfo_modern
=no
;;
5270 gcc_cv_prog_makeinfo_modern
=yes;;
5271 *) gcc_cv_prog_makeinfo_modern
=no
;;
5275 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
5276 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
5278 gcc_cv_prog_makeinfo_modern
=no
5281 if test $gcc_cv_prog_makeinfo_modern = no
; then
5282 MAKEINFO
="$MISSING makeinfo"
5283 { echo "$as_me:$LINENO: WARNING:
5284 *** Makeinfo is missing or too old.
5285 *** Info documentation will not be built." >&5
5286 echo "$as_me: WARNING:
5287 *** Makeinfo is missing or too old.
5288 *** Info documentation will not be built." >&2;}
5295 # Is pod2man recent enough to regenerate manpages?
5296 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
5297 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
5298 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
5299 echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6
5301 GENERATED_MANPAGES
=generated-manpages
5303 echo "$as_me:$LINENO: result: no" >&5
5304 echo "${ECHO_T}no" >&6
5312 # Extract the first word of "$ac_prog", so it can be a program name with args.
5313 set dummy
$ac_prog; ac_word
=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_FLEX+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$FLEX"; then
5320 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
5322 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir
=.
5327 for ac_exec_ext
in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_FLEX
="$ac_prog"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 FLEX
=$ac_cv_prog_FLEX
5339 if test -n "$FLEX"; then
5340 echo "$as_me:$LINENO: result: $FLEX" >&5
5341 echo "${ECHO_T}$FLEX" >&6
5343 echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5347 test -n "$FLEX" && break
5349 test -n "$FLEX" || FLEX
="$MISSING flex"
5353 for ac_prog
in bison
5355 # Extract the first word of "$ac_prog", so it can be a program name with args.
5356 set dummy
$ac_prog; ac_word
=$2
5357 echo "$as_me:$LINENO: checking for $ac_word" >&5
5358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5359 if test "${ac_cv_prog_BISON+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 if test -n "$BISON"; then
5363 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
5365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir
=.
5370 for ac_exec_ext
in '' $ac_executable_extensions; do
5371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_BISON
="$ac_prog"
5373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 BISON
=$ac_cv_prog_BISON
5382 if test -n "$BISON"; then
5383 echo "$as_me:$LINENO: result: $BISON" >&5
5384 echo "${ECHO_T}$BISON" >&6
5386 echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6
5390 test -n "$BISON" && break
5392 test -n "$BISON" || BISON
="$MISSING bison"
5395 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
5396 # check for build == host before using them.
5399 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
5400 && test -d ..
/binutils
; then
5401 NM
='$(objdir)/../binutils/nm-new'
5403 # Extract the first word of "nm", so it can be a program name with args.
5404 set dummy nm
; ac_word
=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_NM+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 if test -n "$NM"; then
5411 ac_cv_prog_NM
="$NM" # Let the user override the test.
5413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir
=.
5418 for ac_exec_ext
in '' $ac_executable_extensions; do
5419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
5431 if test -n "$NM"; then
5432 echo "$as_me:$LINENO: result: $NM" >&5
5433 echo "${ECHO_T}$NM" >&6
5435 echo "$as_me:$LINENO: result: no" >&5
5436 echo "${ECHO_T}no" >&6
5442 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
5443 && test -d ..
/binutils
; then
5444 AR
='$(objdir)/../binutils/ar'
5446 # Extract the first word of "ar", so it can be a program name with args.
5447 set dummy
ar; ac_word
=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_prog_AR+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 if test -n "$AR"; then
5454 ac_cv_prog_AR
="$AR" # Let the user override the test.
5456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir
=.
5461 for ac_exec_ext
in '' $ac_executable_extensions; do
5462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
5474 if test -n "$AR"; then
5475 echo "$as_me:$LINENO: result: $AR" >&5
5476 echo "${ECHO_T}$AR" >&6
5478 echo "$as_me:$LINENO: result: no" >&5
5479 echo "${ECHO_T}no" >&6
5485 # --------------------
5486 # Checks for C headers
5487 # --------------------
5489 echo "$as_me:$LINENO: checking for GNU C library" >&5
5490 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
5491 if test "${gcc_cv_glibc+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 cat >conftest.
$ac_ext <<_ACEOF
5497 cat confdefs.h
>>conftest.
$ac_ext
5498 cat >>conftest.
$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 #include <features.h>
5505 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
5506 #error Not a GNU C library system
5512 rm -f conftest.
$ac_objext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5514 (eval $ac_compile) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1
>conftest.err
5518 cat conftest.err
>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try
='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try
='test -s conftest.$ac_objext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.
$ac_ext >&5
5541 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5544 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
5545 echo "${ECHO_T}$gcc_cv_glibc" >&6
5546 if test $gcc_cv_glibc = yes; then
5548 cat >>confdefs.h
<<\_ACEOF
5549 #define _GNU_SOURCE 1
5554 # Need to reject headers which give warnings, so that the -Werror bootstrap
5555 # works later. *sigh* This needs to come before all header checks.
5557 ac_c_preproc_warn_flag
=yes
5559 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5560 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5561 if test "${ac_cv_header_stdc+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 cat >conftest.
$ac_ext <<_ACEOF
5567 cat confdefs.h
>>conftest.
$ac_ext
5568 cat >>conftest.
$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5583 rm -f conftest.
$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>conftest.er1
5587 grep -v '^ *+' conftest.er1
>conftest.err
5589 cat conftest.err
>&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } &&
5592 { ac_try
='test -z "$ac_c_werror_flag"
5593 || test ! -s conftest.err'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try
='test -s conftest.$ac_objext'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_header_stdc
=yes
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.
$ac_ext >&5
5610 ac_cv_header_stdc
=no
5612 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5614 if test $ac_cv_header_stdc = yes; then
5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5616 cat >conftest.
$ac_ext <<_ACEOF
5619 cat confdefs.h
>>conftest.
$ac_ext
5620 cat >>conftest.
$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "memchr" >/dev
/null
2>&1; then
5629 ac_cv_header_stdc
=no
5635 if test $ac_cv_header_stdc = yes; then
5636 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5637 cat >conftest.
$ac_ext <<_ACEOF
5640 cat confdefs.h
>>conftest.
$ac_ext
5641 cat >>conftest.
$ac_ext <<_ACEOF
5642 /* end confdefs.h. */
5646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5647 $EGREP "free" >/dev
/null
2>&1; then
5650 ac_cv_header_stdc
=no
5656 if test $ac_cv_header_stdc = yes; then
5657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5658 if test "$cross_compiling" = yes; then
5661 cat >conftest.
$ac_ext <<_ACEOF
5664 cat confdefs.h
>>conftest.
$ac_ext
5665 cat >>conftest.
$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5668 #if ((' ' & 0x0FF) == 0x020)
5669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5672 # define ISLOWER(c) \
5673 (('a' <= (c) && (c) <= 'i') \
5674 || ('j' <= (c) && (c) <= 'r') \
5675 || ('s' <= (c) && (c) <= 'z'))
5676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5684 for (i = 0; i < 256; i++)
5685 if (XOR (islower (i), ISLOWER (i))
5686 || toupper (i) != TOUPPER (i))
5691 rm -f conftest
$ac_exeext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5693 (eval $ac_link) 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; }; then
5704 echo "$as_me: program exited with status $ac_status" >&5
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5709 ac_cv_header_stdc
=no
5711 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5716 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5717 if test $ac_cv_header_stdc = yes; then
5719 cat >>confdefs.h
<<\_ACEOF
5720 #define STDC_HEADERS 1
5725 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5726 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5727 if test "${ac_cv_header_time+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 cat >conftest.
$ac_ext <<_ACEOF
5733 cat confdefs.h
>>conftest.
$ac_ext
5734 cat >>conftest.
$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <sys/types.h>
5737 #include <sys/time.h>
5743 if ((struct tm *) 0)
5749 rm -f conftest.
$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>conftest.er1
5753 grep -v '^ *+' conftest.er1
>conftest.err
5755 cat conftest.err
>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try
='test -z "$ac_c_werror_flag"
5759 || test ! -s conftest.err'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; } &&
5765 { ac_try
='test -s conftest.$ac_objext'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; }; then
5771 ac_cv_header_time
=yes
5773 echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.
$ac_ext >&5
5776 ac_cv_header_time
=no
5778 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5780 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5781 echo "${ECHO_T}$ac_cv_header_time" >&6
5782 if test $ac_cv_header_time = yes; then
5784 cat >>confdefs.h
<<\_ACEOF
5785 #define TIME_WITH_SYS_TIME 1
5790 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5791 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
5792 if test "${gcc_cv_header_string+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 cat >conftest.
$ac_ext <<_ACEOF
5798 cat confdefs.h
>>conftest.
$ac_ext
5799 cat >>conftest.
$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5802 #include <strings.h>
5811 rm -f conftest.
$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5815 grep -v '^ *+' conftest.er1
>conftest.err
5817 cat conftest.err
>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try
='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try
='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 gcc_cv_header_string
=yes
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5838 gcc_cv_header_string
=no
5840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5843 echo "${ECHO_T}$gcc_cv_header_string" >&6
5844 if test $gcc_cv_header_string = yes; then
5846 cat >>confdefs.h
<<\_ACEOF
5847 #define STRING_WITH_STRINGS 1
5852 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5853 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5854 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5855 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 #include <sys/wait.h>
5866 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5882 rm -f conftest.
$ac_objext
5883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5884 (eval $ac_compile) 2>conftest.er1
5886 grep -v '^ *+' conftest.er1
>conftest.err
5888 cat conftest.err
>&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try
='test -z "$ac_c_werror_flag"
5892 || test ! -s conftest.err'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try
='test -s conftest.$ac_objext'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; }; then
5904 ac_cv_header_sys_wait_h
=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.
$ac_ext >&5
5909 ac_cv_header_sys_wait_h
=no
5911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5913 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5914 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5915 if test $ac_cv_header_sys_wait_h = yes; then
5917 cat >>confdefs.h
<<\_ACEOF
5918 #define HAVE_SYS_WAIT_H 1
5944 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h \
5945 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
5946 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
5947 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
5949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_header" >&5
5951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >conftest.
$ac_ext <<_ACEOF
5958 cat confdefs.h
>>conftest.
$ac_ext
5959 cat >>conftest.
$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961 #include <$ac_header>
5963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5966 grep -v '^ *+' conftest.er1
>conftest.err
5968 cat conftest.err
>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } >/dev
/null
; then
5971 if test -s conftest.err
; then
5972 ac_cpp_err
=$ac_c_preproc_warn_flag
5973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5980 if test -z "$ac_cpp_err"; then
5981 eval "$as_ac_Header=yes"
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.
$ac_ext >&5
5986 eval "$as_ac_Header=no"
5988 rm -f conftest.err conftest.
$ac_ext
5990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h
<<_ACEOF
5994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001 # Check for thread headers.
6002 echo "$as_me:$LINENO: checking for thread.h" >&5
6003 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
6004 if test "${ac_cv_header_thread_h+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6016 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6018 grep -v '^ *+' conftest.er1
>conftest.err
6020 cat conftest.err
>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } >/dev
/null
; then
6023 if test -s conftest.err
; then
6024 ac_cpp_err
=$ac_c_preproc_warn_flag
6025 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6032 if test -z "$ac_cpp_err"; then
6033 ac_cv_header_thread_h
=yes
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.
$ac_ext >&5
6038 ac_cv_header_thread_h
=no
6040 rm -f conftest.err conftest.
$ac_ext
6042 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
6043 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
6044 if test $ac_cv_header_thread_h = yes; then
6050 echo "$as_me:$LINENO: checking for pthread.h" >&5
6051 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
6052 if test "${ac_cv_header_pthread_h+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 #include <pthread.h>
6063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6066 grep -v '^ *+' conftest.er1
>conftest.err
6068 cat conftest.err
>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } >/dev
/null
; then
6071 if test -s conftest.err
; then
6072 ac_cpp_err
=$ac_c_preproc_warn_flag
6073 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6080 if test -z "$ac_cpp_err"; then
6081 ac_cv_header_pthread_h
=yes
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.
$ac_ext >&5
6086 ac_cv_header_pthread_h
=no
6088 rm -f conftest.err conftest.
$ac_ext
6090 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
6091 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
6092 if test $ac_cv_header_pthread_h = yes; then
6099 # These tests can't be done till we know if we have limits.h.
6100 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
6101 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
6102 if test "${gcc_cv_decl_char_bit+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #ifdef HAVE_LIMITS_H
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "found" >/dev
/null
2>&1; then
6120 gcc_cv_decl_char_bit
=yes
6122 gcc_cv_decl_char_bit
=no
6128 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
6129 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
6130 if test $gcc_cv_decl_char_bit = no
; then
6131 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
6132 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
6133 if test "${gcc_cv_c_nbby+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 while test $i -lt 65; do
6139 cat >conftest.
$ac_ext <<_ACEOF
6142 cat confdefs.h
>>conftest.
$ac_ext
6143 cat >>conftest.
$ac_ext <<_ACEOF
6144 /* end confdefs.h. */
6150 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
6151 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
6157 rm -f conftest.
$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>conftest.er1
6161 grep -v '^ *+' conftest.er1
>conftest.err
6163 cat conftest.err
>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try
='test -z "$ac_c_werror_flag"
6167 || test ! -s conftest.err'
6168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try
='test -s conftest.$ac_objext'
6174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
6179 gcc_cv_c_nbby
=$i; break
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
6191 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
6192 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
6193 if test $gcc_cv_c_nbby = failed
; then
6194 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
6195 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
6196 { (exit 1); exit 1; }; }
6199 cat >>confdefs.h
<<_ACEOF
6200 #define CHAR_BIT $gcc_cv_c_nbby
6205 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6206 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
6207 if test "${ac_cv_c_bigendian+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 ac_cv_c_bigendian
=unknown
6211 # See if sys/param.h defines the BYTE_ORDER macro.
6212 cat >conftest.
$ac_ext <<_ACEOF
6215 cat confdefs.h
>>conftest.
$ac_ext
6216 cat >>conftest.
$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <sys/types.h>
6219 #include <sys/param.h>
6224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6231 rm -f conftest.
$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233 (eval $ac_compile) 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } &&
6240 { ac_try
='test -z "$ac_c_werror_flag"
6241 || test ! -s conftest.err'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; } &&
6247 { ac_try
='test -s conftest.$ac_objext'
6248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
6253 # It does; now see whether it defined to BIG_ENDIAN or not.
6254 cat >conftest.
$ac_ext <<_ACEOF
6257 cat confdefs.h
>>conftest.
$ac_ext
6258 cat >>conftest.
$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6260 #include <sys/types.h>
6261 #include <sys/param.h>
6266 #if BYTE_ORDER != BIG_ENDIAN
6273 rm -f conftest.
$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275 (eval $ac_compile) 2>conftest.er1
6277 grep -v '^ *+' conftest.er1
>conftest.err
6279 cat conftest.err
>&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } &&
6282 { ac_try
='test -z "$ac_c_werror_flag"
6283 || test ! -s conftest.err'
6284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try
='test -s conftest.$ac_objext'
6290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6295 ac_cv_c_bigendian
=yes
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_cv_c_bigendian
=no
6302 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6304 echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.
$ac_ext >&5
6308 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 if test $ac_cv_c_bigendian = unknown
; then
6310 if test "$cross_compiling" = yes; then
6311 echo $ac_n "cross-compiling... " 2>&6
6313 cat >conftest.
$ac_ext <<_ACEOF
6316 cat confdefs.h
>>conftest.
$ac_ext
6317 cat >>conftest.
$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6320 /* Are we little or big endian? From Harbison&Steele. */
6324 char c[sizeof (long)];
6327 exit (u.c[sizeof (long) - 1] == 1);
6330 rm -f conftest
$ac_exeext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332 (eval $ac_link) 2>&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 ac_cv_c_bigendian
=no
6343 echo "$as_me: program exited with status $ac_status" >&5
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.
$ac_ext >&5
6348 ac_cv_c_bigendian
=yes
6350 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6354 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6355 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6356 if test $ac_cv_c_bigendian = unknown
; then
6357 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
6358 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
6360 cat >conftest.c
<<EOF
6361 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6362 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6363 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
6364 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6365 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6366 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
6367 int main() { _ascii (); _ebcdic (); return 0; }
6369 if test -f conftest.c
; then
6370 if ${CC-cc} ${CFLAGS} -c conftest.c
-o conftest.o
&& test -f conftest.o
; then
6371 if test `grep -l BIGenDianSyS conftest.o` ; then
6372 echo $ac_n ' big endian probe OK, ' 1>&6
6373 ac_cv_c_bigendian
=yes
6375 if test `grep -l LiTTleEnDian conftest.o` ; then
6376 echo $ac_n ' little endian probe OK, ' 1>&6
6377 if test $ac_cv_c_bigendian = yes ; then
6378 ac_cv_c_bigendian
=unknown
;
6380 ac_cv_c_bigendian
=no
6383 echo $ac_n 'guessing bigendian ... ' >&6
6386 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6387 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
6389 if test $ac_cv_c_bigendian = yes; then
6391 cat >>confdefs.h
<<\_ACEOF
6392 #define WORDS_BIGENDIAN 1
6396 cat >>confdefs.h
<<\_ACEOF
6397 #define HOST_WORDS_BIG_ENDIAN 1
6405 cat >>confdefs.h
<<_ACEOF
6406 #define BYTEORDER $BYTEORDER
6409 if test $ac_cv_c_bigendian = unknown
; then
6410 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
6411 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
6412 { (exit 1); exit 1; }; }
6420 # Stage specific cflags for build.
6424 if test x
$GCC = xyes
6426 stage1_cflags
="-Wa,-J"
6432 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
6433 # sources; use -no-cpp-precomp to get to GNU cpp.
6434 # Apple's GCC has bugs in designated initializer handling, so disable
6436 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
6441 # These libraries may be used by collect2.
6442 # We may need a special search path to get them linked.
6443 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
6444 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
6445 if test "${gcc_cv_collect2_libs+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 for libs
in '' -lld -lmld \
6450 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
6451 '-L/usr/lib/cmplrs/cc3.11 -lmld'
6454 cat >conftest.
$ac_ext <<_ACEOF
6457 cat confdefs.h
>>conftest.
$ac_ext
6458 cat >>conftest.
$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6461 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6476 rm -f conftest.
$ac_objext conftest
$ac_exeext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478 (eval $ac_link) 2>conftest.er1
6480 grep -v '^ *+' conftest.er1
>conftest.err
6482 cat conftest.err
>&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try
='test -z "$ac_c_werror_flag"
6486 || test ! -s conftest.err'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try
='test -s conftest$ac_exeext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6498 gcc_cv_collect2_libs
="$libs"; break
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.
$ac_ext >&5
6504 rm -f conftest.err conftest.
$ac_objext \
6505 conftest
$ac_exeext conftest.
$ac_ext
6508 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
6510 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
6511 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
6512 case $gcc_cv_collect2_libs in
6514 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
6518 # When building Ada code on Alpha, we need exc_resume which is usually in
6519 # -lexc. So test for it.
6522 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
6523 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
6524 if test "${ac_cv_search_exc_resume+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 ac_func_search_save_LIBS
=$LIBS
6528 ac_cv_search_exc_resume
=no
6529 cat >conftest.
$ac_ext <<_ACEOF
6532 cat confdefs.h
>>conftest.
$ac_ext
6533 cat >>conftest.
$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6536 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6551 rm -f conftest.
$ac_objext conftest
$ac_exeext
6552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6553 (eval $ac_link) 2>conftest.er1
6555 grep -v '^ *+' conftest.er1
>conftest.err
6557 cat conftest.err
>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } &&
6560 { ac_try
='test -z "$ac_c_werror_flag"
6561 || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try
='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_cv_search_exc_resume
="none required"
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.
$ac_ext >&5
6579 rm -f conftest.err conftest.
$ac_objext \
6580 conftest
$ac_exeext conftest.
$ac_ext
6581 if test "$ac_cv_search_exc_resume" = no
; then
6582 for ac_lib
in exc
; do
6583 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6584 cat >conftest.
$ac_ext <<_ACEOF
6587 cat confdefs.h
>>conftest.
$ac_ext
6588 cat >>conftest.
$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6591 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */
6606 rm -f conftest.
$ac_objext conftest
$ac_exeext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6608 (eval $ac_link) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1
>conftest.err
6612 cat conftest.err
>&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try
='test -z "$ac_c_werror_flag"
6616 || test ! -s conftest.err'
6617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; } &&
6622 { ac_try
='test -s conftest$ac_exeext'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; }; then
6628 ac_cv_search_exc_resume
="-l$ac_lib"
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.
$ac_ext >&5
6635 rm -f conftest.err conftest.
$ac_objext \
6636 conftest
$ac_exeext conftest.
$ac_ext
6639 LIBS
=$ac_func_search_save_LIBS
6641 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
6642 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
6643 if test "$ac_cv_search_exc_resume" != no
; then
6644 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
6652 # Some systems put ldexp and frexp in libm instead of libc; assume
6653 # they're both in the same place. jcf-dump needs them.
6656 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
6657 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
6658 if test "${ac_cv_search_ldexp+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 ac_func_search_save_LIBS
=$LIBS
6662 ac_cv_search_ldexp
=no
6663 cat >conftest.
$ac_ext <<_ACEOF
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6674 /* We use char because int might match the return type of a gcc2
6675 builtin and then its argument prototype would still apply. */
6685 rm -f conftest.
$ac_objext conftest
$ac_exeext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687 (eval $ac_link) 2>conftest.er1
6689 grep -v '^ *+' conftest.er1
>conftest.err
6691 cat conftest.err
>&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try
='test -z "$ac_c_werror_flag"
6695 || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try
='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_search_ldexp
="none required"
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.
$ac_ext >&5
6713 rm -f conftest.err conftest.
$ac_objext \
6714 conftest
$ac_exeext conftest.
$ac_ext
6715 if test "$ac_cv_search_ldexp" = no
; then
6717 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6718 cat >conftest.
$ac_ext <<_ACEOF
6721 cat confdefs.h
>>conftest.
$ac_ext
6722 cat >>conftest.
$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6740 rm -f conftest.
$ac_objext conftest
$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>conftest.er1
6744 grep -v '^ *+' conftest.er1
>conftest.err
6746 cat conftest.err
>&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try
='test -z "$ac_c_werror_flag"
6750 || test ! -s conftest.err'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; } &&
6756 { ac_try
='test -s conftest$ac_exeext'
6757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); }; }; then
6762 ac_cv_search_ldexp
="-l$ac_lib"
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.
$ac_ext >&5
6769 rm -f conftest.err conftest.
$ac_objext \
6770 conftest
$ac_exeext conftest.
$ac_ext
6773 LIBS
=$ac_func_search_save_LIBS
6775 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
6776 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
6777 if test "$ac_cv_search_ldexp" != no
; then
6778 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
6786 # Use <inttypes.h> only if it exists,
6787 # doesn't clash with <sys/types.h>, and declares intmax_t.
6788 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6789 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6790 if test "${gcc_cv_header_inttypes_h+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 cat >conftest.
$ac_ext <<_ACEOF
6796 cat confdefs.h
>>conftest.
$ac_ext
6797 cat >>conftest.
$ac_ext <<_ACEOF
6798 /* end confdefs.h. */
6799 #include <sys/types.h>
6800 #include <inttypes.h>
6809 rm -f conftest.
$ac_objext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811 (eval $ac_compile) 2>conftest.er1
6813 grep -v '^ *+' conftest.er1
>conftest.err
6815 cat conftest.err
>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try
='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try
='test -s conftest.$ac_objext'
6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 gcc_cv_header_inttypes_h
=yes
6833 echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.
$ac_ext >&5
6836 gcc_cv_header_inttypes_h
=no
6838 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6841 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
6842 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
6843 if test $gcc_cv_header_inttypes_h = yes; then
6845 cat >>confdefs.h
<<\_ACEOF
6846 #define HAVE_INTTYPES_H 1
6877 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
6878 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \
6879 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo \
6880 scandir alphasort gettimeofday mbstowcs wcswidth mmap mincore \
6883 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6884 echo "$as_me:$LINENO: checking for $ac_func" >&5
6885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6886 if eval "test \"\${$as_ac_var+set}\" = set"; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.
$ac_ext <<_ACEOF
6892 cat confdefs.h
>>conftest.
$ac_ext
6893 cat >>conftest.
$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6897 #define $ac_func innocuous_$ac_func
6899 /* System header to define __stub macros and hopefully few prototypes,
6900 which can conflict with char $ac_func (); below.
6901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902 <limits.h> exists even on freestanding compilers. */
6905 # include <limits.h>
6907 # include <assert.h>
6912 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6920 /* The GNU C library defines this for functions which it implements
6921 to always fail with ENOSYS. Some functions are actually named
6922 something starting with __ and the normal name is an alias. */
6923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6926 char (*f) () = $ac_func;
6935 return f != $ac_func;
6940 rm -f conftest.
$ac_objext conftest
$ac_exeext
6941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6942 (eval $ac_link) 2>conftest.er1
6944 grep -v '^ *+' conftest.er1
>conftest.err
6946 cat conftest.err
>&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } &&
6949 { ac_try
='test -z "$ac_c_werror_flag"
6950 || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try
='test -s conftest$ac_exeext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6962 eval "$as_ac_var=yes"
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.
$ac_ext >&5
6967 eval "$as_ac_var=no"
6969 rm -f conftest.err conftest.
$ac_objext \
6970 conftest
$ac_exeext conftest.
$ac_ext
6972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6974 if test `eval echo '${'$as_ac_var'}'` = yes; then
6975 cat >>confdefs.h
<<_ACEOF
6976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983 if test x
$ac_cv_func_mbstowcs = xyes
; then
6984 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
6985 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
6986 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 if test "$cross_compiling" = yes; then
6990 gcc_cv_func_mbstowcs_works
=yes
6992 cat >conftest.
$ac_ext <<_ACEOF
6995 cat confdefs.h
>>conftest.
$ac_ext
6996 cat >>conftest.
$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
7005 rm -f conftest
$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; }; then
7016 gcc_cv_func_mbstowcs_works
=yes
7018 echo "$as_me: program exited with status $ac_status" >&5
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.
$ac_ext >&5
7023 gcc_cv_func_mbstowcs_works
=no
7025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7028 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
7029 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
7030 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
7032 cat >>confdefs.h
<<\_ACEOF
7033 #define HAVE_WORKING_MBSTOWCS 1
7039 echo "$as_me:$LINENO: checking for ssize_t" >&5
7040 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
7041 if test "${ac_cv_type_ssize_t+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 cat >conftest.
$ac_ext <<_ACEOF
7047 cat confdefs.h
>>conftest.
$ac_ext
7048 cat >>conftest.
$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 $ac_includes_default
7056 if (sizeof (ssize_t))
7062 rm -f conftest.
$ac_objext
7063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064 (eval $ac_compile) 2>conftest.er1
7066 grep -v '^ *+' conftest.er1
>conftest.err
7068 cat conftest.err
>&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } &&
7071 { ac_try
='test -z "$ac_c_werror_flag"
7072 || test ! -s conftest.err'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; } &&
7078 { ac_try
='test -s conftest.$ac_objext'
7079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); }; }; then
7084 ac_cv_type_ssize_t
=yes
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.
$ac_ext >&5
7089 ac_cv_type_ssize_t
=no
7091 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7094 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
7095 if test $ac_cv_type_ssize_t = yes; then
7099 cat >>confdefs.h
<<_ACEOF
7106 # Try to determine the array type of the second argument of getgroups
7107 # for the target system (int or gid_t).
7108 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7109 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
7110 if test "${ac_cv_type_uid_t+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 cat >conftest.
$ac_ext <<_ACEOF
7116 cat confdefs.h
>>conftest.
$ac_ext
7117 cat >>conftest.
$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "uid_t" >/dev
/null
2>&1; then
7124 ac_cv_type_uid_t
=yes
7131 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7132 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
7133 if test $ac_cv_type_uid_t = no
; then
7135 cat >>confdefs.h
<<\_ACEOF
7140 cat >>confdefs.h
<<\_ACEOF
7146 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7147 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
7148 if test "${ac_cv_type_getgroups+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 if test "$cross_compiling" = yes; then
7152 ac_cv_type_getgroups
=cross
7154 cat >conftest.
$ac_ext <<_ACEOF
7157 cat confdefs.h
>>conftest.
$ac_ext
7158 cat >>conftest.
$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 /* Thanks to Mike Rendell for this test. */
7161 #include <sys/types.h>
7164 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7171 union { gid_t gval; long lval; } val;
7174 for (i = 0; i < NGID; i++)
7175 gidset[i] = val.gval;
7176 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7178 /* Exit non-zero if getgroups seems to require an array of ints. This
7179 happens when gid_t is short but getgroups modifies an array of ints. */
7180 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
7183 rm -f conftest
$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; }; then
7194 ac_cv_type_getgroups
=gid_t
7196 echo "$as_me: program exited with status $ac_status" >&5
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.
$ac_ext >&5
7201 ac_cv_type_getgroups
=int
7203 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7205 if test $ac_cv_type_getgroups = cross
; then
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7216 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
7217 ac_cv_type_getgroups
=gid_t
7219 ac_cv_type_getgroups
=int
7225 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7226 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
7228 cat >>confdefs.h
<<_ACEOF
7229 #define GETGROUPS_T $ac_cv_type_getgroups
7233 if test "${target}" = "${build}"; then
7234 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
7237 # This condition may need some tweaking. It should include all
7238 # targets where the array type of the second argument of getgroups
7239 # is int and the type of gid_t is not equivalent to int.
7240 *-*-sunos* |
*-*-ultrix*)
7241 TARGET_GETGROUPS_T
=int
7244 TARGET_GETGROUPS_T
=gid_t
7250 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
7251 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
7252 if test "${gcc_cv_func_printf_ptr+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 if test "$cross_compiling" = yes; then
7256 gcc_cv_func_printf_ptr
=no
7258 cat >conftest.
$ac_ext <<_ACEOF
7261 cat confdefs.h
>>conftest.
$ac_ext
7262 cat >>conftest.
$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7269 char *p = buf, *q = NULL;
7270 sprintf(buf, "%p", p);
7271 sscanf(buf, "%p", &q);
7275 rm -f conftest
$ac_exeext
7276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7277 (eval $ac_link) 2>&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); }; }; then
7286 gcc_cv_func_printf_ptr
=yes
7288 echo "$as_me: program exited with status $ac_status" >&5
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.
$ac_ext >&5
7293 gcc_cv_func_printf_ptr
=no
7295 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7297 rm -f core core.
* *.core
7299 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
7300 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
7301 if test $gcc_cv_func_printf_ptr = yes ; then
7303 cat >>confdefs.h
<<\_ACEOF
7304 #define HAVE_PRINTF_PTR 1
7310 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
7311 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
7312 if test "${ac_cv_header_sys_mman_h+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7315 cat >conftest.
$ac_ext <<_ACEOF
7318 cat confdefs.h
>>conftest.
$ac_ext
7319 cat >>conftest.
$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <sys/mman.h>
7323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7324 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } >/dev
/null
; then
7331 if test -s conftest.err
; then
7332 ac_cpp_err
=$ac_c_preproc_warn_flag
7333 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7340 if test -z "$ac_cpp_err"; then
7341 ac_cv_header_sys_mman_h
=yes
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7346 ac_cv_header_sys_mman_h
=no
7348 rm -f conftest.err conftest.
$ac_ext
7350 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
7351 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
7352 if test $ac_cv_header_sys_mman_h = yes; then
7353 gcc_header_sys_mman_h
=yes
7355 gcc_header_sys_mman_h
=no
7358 echo "$as_me:$LINENO: checking for mmap" >&5
7359 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
7360 if test "${ac_cv_func_mmap+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 cat >conftest.
$ac_ext <<_ACEOF
7366 cat confdefs.h
>>conftest.
$ac_ext
7367 cat >>conftest.
$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
7370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7371 #define mmap innocuous_mmap
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char mmap (); below.
7375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 <limits.h> exists even on freestanding compilers. */
7379 # include <limits.h>
7381 # include <assert.h>
7386 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined (__stub_mmap) || defined (__stub___mmap)
7400 char (*f) () = mmap;
7414 rm -f conftest.
$ac_objext conftest
$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } &&
7423 { ac_try
='test -z "$ac_c_werror_flag"
7424 || test ! -s conftest.err'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; } &&
7430 { ac_try
='test -s conftest$ac_exeext'
7431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }; }; then
7438 echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.
$ac_ext >&5
7443 rm -f conftest.err conftest.
$ac_objext \
7444 conftest
$ac_exeext conftest.
$ac_ext
7446 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
7447 echo "${ECHO_T}$ac_cv_func_mmap" >&6
7448 if test $ac_cv_func_mmap = yes; then
7454 if test "$gcc_header_sys_mman_h" != yes \
7455 ||
test "$gcc_func_mmap" != yes; then
7456 gcc_cv_func_mmap_file
=no
7457 gcc_cv_func_mmap_dev_zero
=no
7458 gcc_cv_func_mmap_anon
=no
7460 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
7461 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
7462 if test "${gcc_cv_func_mmap_file+set}" = set; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 # Add a system to this blacklist if
7466 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
7467 # memory area containing the same data that you'd get if you applied
7468 # read() to the same fd. The only system known to have a problem here
7469 # is VMS, where text files have record structure.
7472 gcc_cv_func_mmap_file
=no
;;
7474 gcc_cv_func_mmap_file
=yes;;
7477 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
7478 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
7479 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
7480 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
7481 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 # Add a system to this blacklist if it has mmap() but /dev/zero
7485 # does not exist, or if mmapping /dev/zero does not give anonymous
7486 # zeroed pages with both the following properties:
7487 # 1. If you map N consecutive pages in with one call, and then
7488 # unmap any subset of those pages, the pages that were not
7489 # explicitly unmapped remain accessible.
7490 # 2. If you map two adjacent blocks of memory and then unmap them
7491 # both at once, they must both go away.
7492 # Systems known to be in this category are Windows (all variants),
7495 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
7496 gcc_cv_func_mmap_dev_zero
=no
;;
7498 gcc_cv_func_mmap_dev_zero
=yes;;
7501 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
7502 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
7504 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
7505 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
7506 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
7507 if test "${gcc_cv_decl_map_anon+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 cat >conftest.
$ac_ext <<_ACEOF
7513 cat confdefs.h
>>conftest.
$ac_ext
7514 cat >>conftest.
$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #include <sys/types.h>
7517 #include <sys/mman.h>
7520 #ifndef MAP_ANONYMOUS
7521 #define MAP_ANONYMOUS MAP_ANON
7527 int n = MAP_ANONYMOUS;
7532 rm -f conftest.
$ac_objext
7533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7534 (eval $ac_compile) 2>conftest.er1
7536 grep -v '^ *+' conftest.er1
>conftest.err
7538 cat conftest.err
>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try
='test -z "$ac_c_werror_flag"
7542 || test ! -s conftest.err'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; } &&
7548 { ac_try
='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 gcc_cv_decl_map_anon
=yes
7556 echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.
$ac_ext >&5
7559 gcc_cv_decl_map_anon
=no
7561 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7563 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
7564 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
7566 if test $gcc_cv_decl_map_anon = no
; then
7567 gcc_cv_func_mmap_anon
=no
7569 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
7570 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
7571 if test "${gcc_cv_func_mmap_anon+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 # Add a system to this blacklist if it has mmap() and MAP_ANON or
7575 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
7576 # doesn't give anonymous zeroed pages with the same properties listed
7577 # above for use of /dev/zero.
7578 # Systems known to be in this category are Windows, VMS, and SCO Unix.
7580 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
7581 gcc_cv_func_mmap_anon
=no
;;
7583 gcc_cv_func_mmap_anon
=yes;;
7586 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
7587 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
7591 if test $gcc_cv_func_mmap_file = yes; then
7593 cat >>confdefs.h
<<\_ACEOF
7594 #define HAVE_MMAP_FILE 1
7598 if test $gcc_cv_func_mmap_dev_zero = yes; then
7600 cat >>confdefs.h
<<\_ACEOF
7601 #define HAVE_MMAP_DEV_ZERO 1
7605 if test $gcc_cv_func_mmap_anon = yes; then
7607 cat >>confdefs.h
<<\_ACEOF
7608 #define HAVE_MMAP_ANON 1
7616 # Under VMS, vfork works very differently than on Unix. The standard test
7617 # won't work, and it isn't easily adaptable. It makes more sense to
7619 ac_cv_func_vfork_works
=yes
7622 echo "$as_me:$LINENO: checking for pid_t" >&5
7623 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7624 if test "${ac_cv_type_pid_t+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.
$ac_ext <<_ACEOF
7630 cat confdefs.h
>>conftest.
$ac_ext
7631 cat >>conftest.
$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 $ac_includes_default
7645 rm -f conftest.
$ac_objext
7646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7647 (eval $ac_compile) 2>conftest.er1
7649 grep -v '^ *+' conftest.er1
>conftest.err
7651 cat conftest.err
>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try
='test -z "$ac_c_werror_flag"
7655 || test ! -s conftest.err'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; } &&
7661 { ac_try
='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_cv_type_pid_t
=yes
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.
$ac_ext >&5
7674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7676 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7677 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
7678 if test $ac_cv_type_pid_t = yes; then
7682 cat >>confdefs.h
<<_ACEOF
7690 for ac_header
in unistd.h vfork.h
7692 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 cat >conftest.
$ac_ext <<_ACEOF
7701 cat confdefs.h
>>conftest.
$ac_ext
7702 cat >>conftest.
$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 #include <$ac_header>
7706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7709 grep -v '^ *+' conftest.er1
>conftest.err
7711 cat conftest.err
>&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } >/dev
/null
; then
7714 if test -s conftest.err
; then
7715 ac_cpp_err
=$ac_c_preproc_warn_flag
7716 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7723 if test -z "$ac_cpp_err"; then
7724 eval "$as_ac_Header=yes"
7726 echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.
$ac_ext >&5
7729 eval "$as_ac_Header=no"
7731 rm -f conftest.err conftest.
$ac_ext
7733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h
<<_ACEOF
7737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7745 for ac_func
in fork vfork
7747 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7748 echo "$as_me:$LINENO: checking for $ac_func" >&5
7749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7750 if eval "test \"\${$as_ac_var+set}\" = set"; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.
$ac_ext <<_ACEOF
7756 cat confdefs.h
>>conftest.
$ac_ext
7757 cat >>conftest.
$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7761 #define $ac_func innocuous_$ac_func
7763 /* System header to define __stub macros and hopefully few prototypes,
7764 which can conflict with char $ac_func (); below.
7765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7766 <limits.h> exists even on freestanding compilers. */
7769 # include <limits.h>
7771 # include <assert.h>
7776 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7784 /* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7790 char (*f) () = $ac_func;
7799 return f != $ac_func;
7804 rm -f conftest.
$ac_objext conftest
$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806 (eval $ac_link) 2>conftest.er1
7808 grep -v '^ *+' conftest.er1
>conftest.err
7810 cat conftest.err
>&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try
='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try
='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 eval "$as_ac_var=yes"
7828 echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.
$ac_ext >&5
7831 eval "$as_ac_var=no"
7833 rm -f conftest.err conftest.
$ac_objext \
7834 conftest
$ac_exeext conftest.
$ac_ext
7836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7838 if test `eval echo '${'$as_ac_var'}'` = yes; then
7839 cat >>confdefs.h
<<_ACEOF
7840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7846 if test "x$ac_cv_func_fork" = xyes
; then
7847 echo "$as_me:$LINENO: checking for working fork" >&5
7848 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
7849 if test "${ac_cv_func_fork_works+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 if test "$cross_compiling" = yes; then
7853 ac_cv_func_fork_works
=cross
7855 cat >conftest.
$ac_ext <<_ACEOF
7856 /* By Ruediger Kuhlmann. */
7857 #include <sys/types.h>
7859 # include <unistd.h>
7861 /* Some systems only have a dummy stub for fork() */
7869 rm -f conftest
$ac_exeext
7870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7871 (eval $ac_link) 2>&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_func_fork_works
=yes
7882 echo "$as_me: program exited with status $ac_status" >&5
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.
$ac_ext >&5
7887 ac_cv_func_fork_works
=no
7889 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7892 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7893 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
7896 ac_cv_func_fork_works
=$ac_cv_func_fork
7898 if test "x$ac_cv_func_fork_works" = xcross
; then
7900 *-*-amigaos* |
*-*-msdosdjgpp*)
7901 # Override, as these systems have only a dummy fork() stub
7902 ac_cv_func_fork_works
=no
7905 ac_cv_func_fork_works
=yes
7908 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7909 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7911 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7912 if test "x$ac_cv_func_vfork" = xyes
; then
7913 echo "$as_me:$LINENO: checking for working vfork" >&5
7914 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
7915 if test "${ac_cv_func_vfork_works+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 if test "$cross_compiling" = yes; then
7919 ac_cv_func_vfork_works
=cross
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 /* Thanks to Paul Eggert for this test. */
7930 #include <sys/types.h>
7931 #include <sys/stat.h>
7932 #include <sys/wait.h>
7934 # include <unistd.h>
7939 /* On some sparc systems, changes by the child to local and incoming
7940 argument registers are propagated back to the parent. The compiler
7941 is told about this with #include <vfork.h>, but some compilers
7942 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7943 static variable whose address is put into a register that is
7944 clobbered by the vfork. */
7947 sparc_address_test (int arg)
7949 sparc_address_test (arg) int arg;
7970 pid_t parent = getpid ();
7973 sparc_address_test (0);
7978 /* Here is another test for sparc vfork register problems. This
7979 test uses lots of local variables, at least as many local
7980 variables as main has allocated so far including compiler
7981 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7982 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7983 reuse the register of parent for one of the local variables,
7984 since it will think that parent can't possibly be used any more
7985 in this routine. Assigning to the local variable will thus
7986 munge parent in the parent process. */
7988 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7989 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7990 /* Convince the compiler that p..p7 are live; otherwise, it might
7991 use the same hardware register for all 8 local variables. */
7992 if (p != p1 || p != p2 || p != p3 || p != p4
7993 || p != p5 || p != p6 || p != p7)
7996 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7997 from child file descriptors. If the child closes a descriptor
7998 before it execs or exits, this munges the parent's descriptor
7999 as well. Test for this by closing stdout in the child. */
8000 _exit(close(fileno(stdout)) != 0);
8005 while (wait(&status) != child)
8008 /* Was there some problem with vforking? */
8011 /* Did the child fail? (This shouldn't happen.) */
8014 /* Did the vfork/compiler bug occur? */
8015 || parent != getpid()
8017 /* Did the file descriptor bug occur? */
8018 || fstat(fileno(stdout), &st) != 0
8023 rm -f conftest
$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_func_vfork_works
=yes
8036 echo "$as_me: program exited with status $ac_status" >&5
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.
$ac_ext >&5
8041 ac_cv_func_vfork_works
=no
8043 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8046 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8047 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8050 if test "x$ac_cv_func_fork_works" = xcross
; then
8051 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8052 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8053 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8056 if test "x$ac_cv_func_vfork_works" = xyes
; then
8058 cat >>confdefs.h
<<\_ACEOF
8059 #define HAVE_WORKING_VFORK 1
8064 cat >>confdefs.h
<<\_ACEOF
8069 if test "x$ac_cv_func_fork_works" = xyes
; then
8071 cat >>confdefs.h
<<\_ACEOF
8072 #define HAVE_WORKING_FORK 1
8080 am_cv_lib_iconv_ldpath
=
8082 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8083 if test "${with_libiconv_prefix+set}" = set; then
8084 withval
="$with_libiconv_prefix"
8086 for dir
in `echo "$withval" | tr : ' '`; do
8087 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
8088 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
8094 for ac_header
in iconv.h
8096 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 echo "$as_me:$LINENO: checking for $ac_header" >&5
8098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8100 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 cat >conftest.
$ac_ext <<_ACEOF
8105 cat confdefs.h
>>conftest.
$ac_ext
8106 cat >>conftest.
$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 #include <$ac_header>
8110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8113 grep -v '^ *+' conftest.er1
>conftest.err
8115 cat conftest.err
>&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev
/null
; then
8118 if test -s conftest.err
; then
8119 ac_cpp_err
=$ac_c_preproc_warn_flag
8120 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8127 if test -z "$ac_cpp_err"; then
8128 eval "$as_ac_Header=yes"
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.
$ac_ext >&5
8133 eval "$as_ac_Header=no"
8135 rm -f conftest.err conftest.
$ac_ext
8137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h
<<_ACEOF
8141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8148 echo "$as_me:$LINENO: checking for iconv" >&5
8149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8150 if test "${am_cv_func_iconv+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 am_cv_func_iconv
="no, consider installing GNU libiconv"
8156 cat >conftest.
$ac_ext <<_ACEOF
8159 cat confdefs.h
>>conftest.
$ac_ext
8160 cat >>conftest.
$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8167 iconv_t cd = iconv_open("","");
8168 iconv(cd,NULL,NULL,NULL,NULL);
8174 rm -f conftest.
$ac_objext conftest
$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>conftest.er1
8178 grep -v '^ *+' conftest.er1
>conftest.err
8180 cat conftest.err
>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try
='test -z "$ac_c_werror_flag"
8184 || test ! -s conftest.err'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try
='test -s conftest$ac_exeext'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8196 am_cv_func_iconv
=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.
$ac_ext >&5
8202 rm -f conftest.err conftest.
$ac_objext \
8203 conftest
$ac_exeext conftest.
$ac_ext
8204 if test "$am_cv_func_iconv" != yes; then
8205 am_save_LIBS
="$LIBS"
8206 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
8207 cat >conftest.
$ac_ext <<_ACEOF
8210 cat confdefs.h
>>conftest.
$ac_ext
8211 cat >>conftest.
$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8218 iconv_t cd = iconv_open("","");
8219 iconv(cd,NULL,NULL,NULL,NULL);
8225 rm -f conftest.
$ac_objext conftest
$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8229 grep -v '^ *+' conftest.er1
>conftest.err
8231 cat conftest.err
>&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try
='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try
='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8248 am_cv_func_iconv
=yes
8250 echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.
$ac_ext >&5
8254 rm -f conftest.err conftest.
$ac_objext \
8255 conftest
$ac_exeext conftest.
$ac_ext
8256 LIBS
="$am_save_LIBS"
8260 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8261 echo "${ECHO_T}$am_cv_func_iconv" >&6
8262 if test "$am_cv_func_iconv" = yes; then
8264 cat >>confdefs.h
<<\_ACEOF
8265 #define HAVE_ICONV 1
8268 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8269 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8270 if test "${am_cv_proto_iconv+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 cat >conftest.
$ac_ext <<_ACEOF
8277 cat confdefs.h
>>conftest.
$ac_ext
8278 cat >>conftest.
$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8287 #if defined(__STDC__) || defined(__cplusplus)
8288 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8301 rm -f conftest.
$ac_objext
8302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8303 (eval $ac_compile) 2>conftest.er1
8305 grep -v '^ *+' conftest.er1
>conftest.err
8307 cat conftest.err
>&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } &&
8310 { ac_try
='test -z "$ac_c_werror_flag"
8311 || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try
='test -s conftest.$ac_objext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 am_cv_proto_iconv_arg1
=""
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.
$ac_ext >&5
8328 am_cv_proto_iconv_arg1
="const"
8330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8331 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);"
8334 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8335 echo "$as_me:$LINENO: result: ${ac_t:-
8336 }$am_cv_proto_iconv" >&5
8337 echo "${ECHO_T}${ac_t:-
8338 }$am_cv_proto_iconv" >&6
8340 cat >>confdefs.h
<<_ACEOF
8341 #define ICONV_CONST $am_cv_proto_iconv_arg1
8346 if test "$am_cv_lib_iconv" = yes; then
8347 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
8351 # Until we have in-tree GNU iconv:
8356 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8357 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8358 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8359 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 cat >conftest.
$ac_ext <<_ACEOF
8364 cat confdefs.h
>>conftest.
$ac_ext
8365 cat >>conftest.
$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8376 rm -f conftest.
$ac_objext conftest
$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378 (eval $ac_link) 2>conftest.er1
8380 grep -v '^ *+' conftest.er1
>conftest.err
8382 cat conftest.err
>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try
='test -z "$ac_c_werror_flag"
8386 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try
='test -s conftest$ac_exeext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 am_cv_val_LC_MESSAGES
=yes
8400 echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.
$ac_ext >&5
8403 am_cv_val_LC_MESSAGES
=no
8405 rm -f conftest.err conftest.
$ac_objext \
8406 conftest
$ac_exeext conftest.
$ac_ext
8408 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8409 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8410 if test $am_cv_val_LC_MESSAGES = yes; then
8412 cat >>confdefs.h
<<\_ACEOF
8413 #define HAVE_LC_MESSAGES 1
8419 # We will need to find libiberty.h and ansidecl.h
8420 saved_CFLAGS
="$CFLAGS"
8421 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
8446 for ac_func
in getenv atol sbrk abort atof getcwd getwd \
8447 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \
8448 fprintf_unlocked strstr errno snprintf vasprintf \
8449 malloc realloc calloc free
basename getopt
clock getpagesize
8451 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8452 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8453 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8454 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.
$ac_ext <<_ACEOF
8460 cat confdefs.h
>>conftest.
$ac_ext
8461 cat >>conftest.
$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 #define $ac_tr_decl 1
8466 #include "ansidecl.h"
8473 char *(*pfn) = (char *(*)) $ac_func ;
8479 rm -f conftest.
$ac_objext
8480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8481 (eval $ac_compile) 2>conftest.er1
8483 grep -v '^ *+' conftest.er1
>conftest.err
8485 cat conftest.err
>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try
='test -z "$ac_c_werror_flag"
8489 || test ! -s conftest.err'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try
='test -s conftest.$ac_objext'
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 eval "gcc_cv_have_decl_$ac_func=yes"
8503 echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.
$ac_ext >&5
8506 eval "gcc_cv_have_decl_$ac_func=no"
8508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8511 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8512 echo "$as_me:$LINENO: result: yes" >&5
8513 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8514 #define $ac_tr_decl 1
8518 echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8520 #define $ac_tr_decl 0
8531 for ac_func
in getrlimit setrlimit getrusage
8533 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8534 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8535 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8536 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 cat >conftest.
$ac_ext <<_ACEOF
8542 cat confdefs.h
>>conftest.
$ac_ext
8543 cat >>conftest.
$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 #define $ac_tr_decl 1
8548 #include "ansidecl.h"
8550 #ifdef HAVE_SYS_RESOURCE_H
8551 #include <sys/resource.h>
8559 char *(*pfn) = (char *(*)) $ac_func ;
8565 rm -f conftest.
$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567 (eval $ac_compile) 2>conftest.er1
8569 grep -v '^ *+' conftest.er1
>conftest.err
8571 cat conftest.err
>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try
='test -z "$ac_c_werror_flag"
8575 || test ! -s conftest.err'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; } &&
8581 { ac_try
='test -s conftest.$ac_objext'
8582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); }; }; then
8587 eval "gcc_cv_have_decl_$ac_func=yes"
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.
$ac_ext >&5
8592 eval "gcc_cv_have_decl_$ac_func=no"
8594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8598 echo "$as_me:$LINENO: result: yes" >&5
8599 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8600 #define $ac_tr_decl 1
8604 echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8606 #define $ac_tr_decl 0
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 #include "ansidecl.h"
8623 #ifdef HAVE_SYS_RESOURCE_H
8624 #include <sys/resource.h>
8635 rm -f conftest.
$ac_objext
8636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8637 (eval $ac_compile) 2>conftest.er1
8639 grep -v '^ *+' conftest.er1
>conftest.err
8641 cat conftest.err
>&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } &&
8644 { ac_try
='test -z "$ac_c_werror_flag"
8645 || test ! -s conftest.err'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; } &&
8651 { ac_try
='test -s conftest.$ac_objext'
8652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); }; }; then
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.
$ac_ext >&5
8663 cat >>confdefs.h
<<\_ACEOF
8668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8671 for ac_func
in ldgetname
8673 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8674 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8675 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8676 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 cat >conftest.
$ac_ext <<_ACEOF
8682 cat confdefs.h
>>conftest.
$ac_ext
8683 cat >>conftest.
$ac_ext <<_ACEOF
8684 /* end confdefs.h. */
8686 #define $ac_tr_decl 1
8688 #include "ansidecl.h"
8699 char *(*pfn) = (char *(*)) $ac_func ;
8705 rm -f conftest.
$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>conftest.er1
8709 grep -v '^ *+' conftest.er1
>conftest.err
8711 cat conftest.err
>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try
='test -z "$ac_c_werror_flag"
8715 || test ! -s conftest.err'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; } &&
8721 { ac_try
='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8727 eval "gcc_cv_have_decl_$ac_func=yes"
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.
$ac_ext >&5
8732 eval "gcc_cv_have_decl_$ac_func=no"
8734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8738 echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8740 #define $ac_tr_decl 1
8744 echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8746 #define $ac_tr_decl 0
8755 for ac_func
in times
8757 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
8758 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
8759 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
8760 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 cat >conftest.
$ac_ext <<_ACEOF
8766 cat confdefs.h
>>conftest.
$ac_ext
8767 cat >>conftest.
$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8770 #define $ac_tr_decl 1
8772 #include "ansidecl.h"
8774 #ifdef HAVE_SYS_TIMES_H
8775 #include <sys/times.h>
8783 char *(*pfn) = (char *(*)) $ac_func ;
8789 rm -f conftest.
$ac_objext
8790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8793 grep -v '^ *+' conftest.er1
>conftest.err
8795 cat conftest.err
>&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try
='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try
='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 eval "gcc_cv_have_decl_$ac_func=yes"
8813 echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.
$ac_ext >&5
8816 eval "gcc_cv_have_decl_$ac_func=no"
8818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
8824 #define $ac_tr_decl 1
8828 echo "$as_me:$LINENO: result: no" >&5
8829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
8830 #define $ac_tr_decl 0
8838 # More time-related stuff.
8839 echo "$as_me:$LINENO: checking for struct tms" >&5
8840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
8841 if test "${ac_cv_struct_tms+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 cat >conftest.
$ac_ext <<_ACEOF
8848 cat confdefs.h
>>conftest.
$ac_ext
8849 cat >>conftest.
$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 #include "ansidecl.h"
8854 #ifdef HAVE_SYS_TIMES_H
8855 #include <sys/times.h>
8866 rm -f conftest.
$ac_objext
8867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
8875 { ac_try
='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try
='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_struct_tms
=yes
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.
$ac_ext >&5
8895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
8898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
8899 if test $ac_cv_struct_tms = yes; then
8901 cat >>confdefs.h
<<\_ACEOF
8902 #define HAVE_STRUCT_TMS 1
8907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
8908 # revisit after autoconf 2.50.
8909 echo "$as_me:$LINENO: checking for clock_t" >&5
8910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
8911 if test "${gcc_cv_type_clock_t+set}" = set; then
8912 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 cat >conftest.
$ac_ext <<_ACEOF
8918 cat confdefs.h
>>conftest.
$ac_ext
8919 cat >>conftest.
$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 #include "ansidecl.h"
8933 rm -f conftest.
$ac_objext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8935 (eval $ac_compile) 2>conftest.er1
8937 grep -v '^ *+' conftest.er1
>conftest.err
8939 cat conftest.err
>&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try
='test -z "$ac_c_werror_flag"
8943 || test ! -s conftest.err'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; } &&
8949 { ac_try
='test -s conftest.$ac_objext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8955 gcc_cv_type_clock_t
=yes
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.
$ac_ext >&5
8960 gcc_cv_type_clock_t
=no
8962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
8965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
8966 if test $gcc_cv_type_clock_t = yes; then
8968 cat >>confdefs.h
<<\_ACEOF
8969 #define HAVE_CLOCK_T 1
8974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
8975 CFLAGS
="$saved_CFLAGS"
8977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
8978 if test "${enable_initfini_array+set}" = set; then
8979 enableval
="$enable_initfini_array"
8983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
8984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
8985 if test "${gcc_cv_initfini_array+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
8988 if test "$cross_compiling" = yes; then
8989 gcc_cv_initfini_array
=no
8991 cat >conftest.
$ac_ext <<_ACEOF
8994 cat confdefs.h
>>conftest.
$ac_ext
8995 cat >>conftest.
$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8999 int main (void) { return x; }
9000 int foo (void) { x = 0; }
9001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9003 rm -f conftest
$ac_exeext
9004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9005 (eval $ac_link) 2>&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 gcc_cv_initfini_array
=yes
9016 echo "$as_me: program exited with status $ac_status" >&5
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9021 gcc_cv_initfini_array
=no
9023 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
9027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
9028 enable_initfini_array
=$gcc_cv_initfini_array
9031 if test $enable_initfini_array = yes; then
9033 cat >>confdefs.h
<<\_ACEOF
9034 #define HAVE_INITFINI_ARRAY 1
9039 # mkdir takes a single argument on some systems.
9040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
9041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
9042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 cat >conftest.
$ac_ext <<_ACEOF
9048 cat confdefs.h
>>conftest.
$ac_ext
9049 cat >>conftest.
$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9052 #include <sys/types.h>
9053 #ifdef HAVE_SYS_STAT_H
9054 # include <sys/stat.h>
9056 #ifdef HAVE_UNISTD_H
9057 # include <unistd.h>
9059 #ifdef HAVE_DIRECT_H
9060 # include <direct.h>
9070 rm -f conftest.
$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>conftest.er1
9074 grep -v '^ *+' conftest.er1
>conftest.err
9076 cat conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } &&
9079 { ac_try
='test -z "$ac_c_werror_flag"
9080 || test ! -s conftest.err'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; } &&
9086 { ac_try
='test -s conftest.$ac_objext'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; }; then
9092 gcc_cv_mkdir_takes_one_arg
=no
9094 echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.
$ac_ext >&5
9097 gcc_cv_mkdir_takes_one_arg
=yes
9099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
9102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
9103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9105 cat >>confdefs.h
<<\_ACEOF
9106 #define MKDIR_TAKES_ONE_ARG 1
9118 # With Setjmp/Longjmp based exception handling.
9119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
9120 if test "${enable_sjlj_exceptions+set}" = set; then
9121 enableval
="$enable_sjlj_exceptions"
9122 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
9124 cat >>confdefs.h
<<_ACEOF
9125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9130 if test x
$host = x
$target; then
9131 echo "$as_me:$LINENO: checking for main in -lunwind" >&5
9132 echo $ECHO_N "checking for main in -lunwind... $ECHO_C" >&6
9133 if test "${ac_cv_lib_unwind_main+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 ac_check_lib_save_LIBS
=$LIBS
9137 LIBS
="-lunwind $LIBS"
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9154 rm -f conftest.
$ac_objext conftest
$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>conftest.er1
9158 grep -v '^ *+' conftest.er1
>conftest.err
9160 cat conftest.err
>&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
9163 { ac_try
='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try
='test -s conftest$ac_exeext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_lib_unwind_main
=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.
$ac_ext >&5
9181 ac_cv_lib_unwind_main
=no
9183 rm -f conftest.err conftest.
$ac_objext \
9184 conftest
$ac_exeext conftest.
$ac_ext
9185 LIBS
=$ac_check_lib_save_LIBS
9187 echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_main" >&5
9188 echo "${ECHO_T}$ac_cv_lib_unwind_main" >&6
9189 if test $ac_cv_lib_unwind_main = yes; then
9190 use_libunwind_default
=yes
9192 use_libunwind_default
=no
9196 use_libunwind_default
=no
9198 # Use libunwind based exception handling.
9199 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
9200 if test "${enable_libunwind_exceptions+set}" = set; then
9201 enableval
="$enable_libunwind_exceptions"
9202 use_libunwind_exceptions
=$enableval
9204 use_libunwind_exceptions
=$use_libunwind_default
9206 if test x
"$use_libunwind_exceptions" = xyes
; then
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define USE_LIBUNWIND_EXCEPTIONS 1
9214 # --------------------------------------------------------
9215 # Build, host, and target specific configuration fragments
9216 # --------------------------------------------------------
9218 # Collect build-machine-specific information.
9219 .
${srcdir}/config.build
9221 # Collect host-machine-specific information.
9222 .
${srcdir}/config.
host
9226 # Collect target-machine-specific information.
9227 .
${srcdir}/config.gcc
9229 extra_objs
="${host_extra_objs} ${extra_objs}"
9230 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
9232 # Default the target-machine variables that were not explicitly set.
9233 if test x
"$tm_file" = x
9234 then tm_file
=$cpu_type/$cpu_type.h
; fi
9236 if test x
"$extra_headers" = x
9237 then extra_headers
=; fi
9239 if test x
$md_file = x
9240 then md_file
=$cpu_type/$cpu_type.md
; fi
9242 if test x
$out_file = x
9243 then out_file
=$cpu_type/$cpu_type.c
; fi
9245 if test x
"$tmake_file" = x
9246 then tmake_file
=$cpu_type/t-
$cpu_type
9249 if test x
"$dwarf2" = xyes
9250 then tm_file
="$tm_file tm-dwarf2.h"
9253 # Say what files are being used for the output code and MD file.
9254 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9255 echo "Using \`$srcdir/config/$md_file' as machine description file."
9257 # If any of the xm_file variables contain nonexistent files, warn
9258 # about them and drop them.
9261 for x
in $build_xm_file; do
9262 if test -f $srcdir/config
/$x
9264 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9265 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9271 for x
in $host_xm_file; do
9272 if test -f $srcdir/config
/$x
9274 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9275 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9281 for x
in $xm_file; do
9282 if test -f $srcdir/config
/$x
9284 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
9285 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9291 for f
in $tm_file; do
9294 if test $count = ax
; then
9295 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9297 echo "Using the following target machine macro files:"
9298 for f
in $tm_file; do
9299 echo " $srcdir/config/$f"
9303 if test x
$need_64bit_hwint = xyes
; then
9305 cat >>confdefs.h
<<\_ACEOF
9306 #define NEED_64BIT_HOST_WIDE_INT 1
9312 for f
in $host_xm_file; do
9315 if test $count = a
; then
9317 elif test $count = ax
; then
9318 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9320 echo "Using the following host machine macro files:"
9321 for f
in $host_xm_file; do
9322 echo " $srcdir/config/$f"
9325 echo "Using ${out_host_hook_obj} for host machine hooks."
9327 if test "$host_xm_file" != "$build_xm_file"; then
9329 for f
in $build_xm_file; do
9332 if test $count = a
; then
9334 elif test $count = ax
; then
9335 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9337 echo "Using the following build machine macro files:"
9338 for f
in $build_xm_file; do
9339 echo " $srcdir/config/$f"
9348 # Check if a valid thread package
9349 case ${enable_threads} in
9352 target_thread_file
='single'
9356 target_thread_file
='single'
9358 aix | dce | gnat | irix | posix | rtems | \
9359 single | solaris | vxworks | win32
)
9360 target_thread_file
=${enable_threads}
9363 echo "${enable_threads} is an unknown thread package" 1>&2
9368 if test x
${thread_file} = x
; then
9369 # No thread file set by target-specific clauses in config.gcc,
9370 # so use file chosen by default logic above
9371 thread_file
=${target_thread_file}
9374 # Make gthr-default.h if we have a thread file.
9376 if test $thread_file != single
; then
9377 rm -f gthr-default.h
9378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
9379 gthread_flags
=-DHAVE_GTHR_DEFAULT
9387 if test x
$enable___cxa_atexit = xyes || \
9388 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
9389 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
9390 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
9391 if test "${ac_cv_func___cxa_atexit+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 cat >conftest.
$ac_ext <<_ACEOF
9397 cat confdefs.h
>>conftest.
$ac_ext
9398 cat >>conftest.
$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402 #define __cxa_atexit innocuous___cxa_atexit
9404 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char __cxa_atexit (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9410 # include <limits.h>
9412 # include <assert.h>
9417 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9424 char __cxa_atexit ();
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
9431 char (*f) () = __cxa_atexit;
9440 return f != __cxa_atexit;
9445 rm -f conftest.
$ac_objext conftest
$ac_exeext
9446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9449 grep -v '^ *+' conftest.er1
>conftest.err
9451 cat conftest.err
>&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try
='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try
='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_func___cxa_atexit
=yes
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.
$ac_ext >&5
9472 ac_cv_func___cxa_atexit
=no
9474 rm -f conftest.err conftest.
$ac_objext \
9475 conftest
$ac_exeext conftest.
$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
9478 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
9479 if test $ac_cv_func___cxa_atexit = yes; then
9481 cat >>confdefs.h
<<\_ACEOF
9482 #define DEFAULT_USE_CXA_ATEXIT 1
9486 echo "__cxa_atexit can't be enabled on this target"
9491 # Look for a file containing extra machine modes.
9492 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
9493 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
9496 cat >>confdefs.h
<<_ACEOF
9497 #define EXTRA_MODES_FILE "config/$extra_modes"
9502 # auto-host.h is the file containing items generated by autoconf and is
9503 # the first file included by config.h.
9504 # If host=build, it is correct to have bconfig include auto-host.h
9505 # as well. If host!=build, we are in error and need to do more
9506 # work to find out the build config parameters.
9507 if test x
$host = x
$build
9509 build_auto
=auto-host.h
9512 # We create a subdir, then run autoconf in the subdir.
9513 # To prevent recursion we set host and build for the new
9514 # invocation of configure to the build for this invocation
9521 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
9522 *) realsrcdir
=..
/${srcdir};;
9524 saved_CFLAGS
="${CFLAGS}"
9525 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
9526 ${realsrcdir}/configure \
9527 --enable-languages=${enable_languages-all} \
9528 --target=$target_alias --host=$build_alias --build=$build_alias
9529 CFLAGS
="${saved_CFLAGS}"
9531 # We just finished tests for the build machine, so rename
9532 # the file auto-build.h in the gcc directory.
9533 mv auto-host.h ..
/auto-build.h
9536 build_auto
=auto-build.h
9537 FORBUILD
=..
/${build_subdir}
9541 tm_file
="${tm_file} defaults.h"
9542 tm_p_file
="${tm_p_file} tm-preds.h"
9543 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
9544 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
9545 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
9546 # put this back in temporarily.
9547 xm_file
="ansidecl.h ${xm_file}"
9553 # Get the version trigger filename from the toplevel
9554 if test "${with_gcc_version_trigger+set}" = set; then
9555 gcc_version_trigger
=$with_gcc_version_trigger
9557 gcc_version_trigger
=${srcdir}/version.c
9559 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*"\([^"]*\)".*/\1/'`
9560 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
9562 # Compile in configure arguments.
9563 if test -f configargs.h
; then
9564 # Being re-configured.
9565 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
9566 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
9568 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
9571 # Double all backslashes and backslash all quotes to turn
9572 # gcc_config_arguments into a C string.
9573 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
9574 $gcc_config_arguments
9576 gcc_config_arguments_str
=`cat conftest.out`
9579 cat > configargs.h
<<EOF
9580 /* Generated automatically. */
9581 static const char configuration_arguments[] = "$gcc_config_arguments_str";
9582 static const char thread_model[] = "$thread_file";
9584 static const struct {
9585 const char *name, *value;
9586 } configure_default_options[] = $configure_default_options;
9589 # Internationalization
9591 VERSION
="$gcc_version"
9593 cat >>confdefs.h
<<_ACEOF
9594 #define PACKAGE "$PACKAGE"
9600 # If we haven't got the data from the intl directory,
9601 # assume NLS is disabled.
9609 if test -f ..
/intl
/config.intl
; then
9610 . ..
/intl
/config.intl
9612 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9613 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9614 if test x
"$USE_NLS" != xyes
; then
9615 echo "$as_me:$LINENO: result: no" >&5
9616 echo "${ECHO_T}no" >&6
9618 echo "$as_me:$LINENO: result: yes" >&5
9619 echo "${ECHO_T}yes" >&6
9621 cat >>confdefs.h
<<\_ACEOF
9622 #define ENABLE_NLS 1
9626 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9627 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9628 # Look for .po and .gmo files in the source directory.
9631 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
9632 # If there aren't any .gmo files the shell will give us the
9633 # literal string "../path/to/srcdir/po/*.gmo" which has to be
9635 case "$cat" in *\
**)
9638 # The quadruple backslash is collapsed to a double backslash
9639 # by the backticks, then collapsed again by the double quotes,
9640 # leaving us with one backslash in the sed expression (right
9641 # before the dot that mustn't act as a wildcard).
9642 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
9643 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
9644 # The user is allowed to set LINGUAS to a list of languages to
9645 # install catalogs for. If it's empty that means "all of them."
9646 if test "x$LINGUAS" = x
; then
9647 CATALOGS
="$CATALOGS $cat"
9648 XLINGUAS
="$XLINGUAS $lang"
9650 case "$LINGUAS" in *$lang*)
9651 CATALOGS
="$CATALOGS $cat"
9652 XLINGUAS
="$XLINGUAS $lang"
9658 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9659 echo "${ECHO_T}$LINGUAS" >&6
9662 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
9663 # -liconv on the link line twice.
9664 case "$LIBINTL" in *$LIBICONV*)
9668 # Windows32 Registry support for specifying GCC installation paths.
9669 # Check whether --enable-win32-registry or --disable-win32-registry was given.
9670 if test "${enable_win32_registry+set}" = set; then
9671 enableval
="$enable_win32_registry"
9675 win32 | pe | cygwin
* | mingw32
* | uwin
*)
9676 echo "$as_me:$LINENO: checking whether windows registry support is requested" >&5
9677 echo $ECHO_N "checking whether windows registry support is requested... $ECHO_C" >&6
9678 if test "x$enable_win32_registry" != xno
; then
9680 cat >>confdefs.h
<<\_ACEOF
9681 #define ENABLE_WIN32_REGISTRY 1
9684 echo "$as_me:$LINENO: result: yes" >&5
9685 echo "${ECHO_T}yes" >&6
9686 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
9687 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
9688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 ac_func_search_save_LIBS
=$LIBS
9692 ac_cv_search_RegOpenKeyExA
=no
9693 cat >conftest.
$ac_ext <<_ACEOF
9696 cat confdefs.h
>>conftest.
$ac_ext
9697 cat >>conftest.
$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9700 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706 char RegOpenKeyExA ();
9715 rm -f conftest.
$ac_objext conftest
$ac_exeext
9716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>conftest.er1
9719 grep -v '^ *+' conftest.er1
>conftest.err
9721 cat conftest.err
>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try
='test -z "$ac_c_werror_flag"
9725 || test ! -s conftest.err'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try
='test -s conftest$ac_exeext'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; }; then
9737 ac_cv_search_RegOpenKeyExA
="none required"
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.
$ac_ext >&5
9743 rm -f conftest.err conftest.
$ac_objext \
9744 conftest
$ac_exeext conftest.
$ac_ext
9745 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
9746 for ac_lib
in advapi32
; do
9747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9748 cat >conftest.
$ac_ext <<_ACEOF
9751 cat confdefs.h
>>conftest.
$ac_ext
9752 cat >>conftest.
$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9755 /* Override any gcc2 internal prototype to avoid an error. */
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9761 char RegOpenKeyExA ();
9770 rm -f conftest.
$ac_objext conftest
$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>conftest.er1
9774 grep -v '^ *+' conftest.er1
>conftest.err
9776 cat conftest.err
>&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } &&
9779 { ac_try
='test -z "$ac_c_werror_flag"
9780 || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try
='test -s conftest$ac_exeext'
9787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.
$ac_ext >&5
9799 rm -f conftest.err conftest.
$ac_objext \
9800 conftest
$ac_exeext conftest.
$ac_ext
9803 LIBS
=$ac_func_search_save_LIBS
9805 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
9806 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
9807 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
9808 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
9813 echo "$as_me:$LINENO: result: no" >&5
9814 echo "${ECHO_T}no" >&6
9817 # Check if user specified a different registry key.
9818 case "x${enable_win32_registry}" in
9821 gcc_cv_win32_registry_key
="$VERSION"
9824 # no registry lookup.
9825 gcc_cv_win32_registry_key
=''
9828 # user-specified key.
9829 gcc_cv_win32_registry_key
="$enable_win32_registry"
9833 if test "x$enable_win32_registry" != xno
; then
9834 echo "$as_me:$LINENO: checking registry key on windows hosts" >&5
9835 echo $ECHO_N "checking registry key on windows hosts... $ECHO_C" >&6
9837 cat >>confdefs.h
<<_ACEOF
9838 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key"
9841 echo "$as_me:$LINENO: result: $gcc_cv_win32_registry_key" >&5
9842 echo "${ECHO_T}$gcc_cv_win32_registry_key" >&6
9847 # Get an absolute path to the GCC top-level source directory
9848 holddir
=`${PWDCMD-pwd}`
9850 topdir
=`${PWDCMD-pwd}`
9853 # Conditionalize the makefile for this host machine.
9855 for f
in ${host_xmake_file}
9857 if test -f ${srcdir}/config
/$f
9859 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
9863 # Conditionalize the makefile for this target machine.
9865 for f
in ${tmake_file}
9867 if test -f ${srcdir}/config
/$f
9869 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
9872 tmake_file
="${tmake_file_}"
9874 symbolic_link
='ln -s'
9876 # If the host doesn't support symlinks, modify CC in
9877 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
9878 # Otherwise, we can use "CC=$(CC)".
9880 if $symbolic_link $srcdir/gcc.c symtest.tem
2>/dev
/null
9882 cc_set_by_configure
="\$(CC)"
9883 quoted_cc_set_by_configure
="\$(CC)"
9884 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9885 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
9888 if cp -p $srcdir/gcc.c symtest.tem
2>/dev
/null
9890 symbolic_link
="cp -p"
9894 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
9895 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
9896 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
9897 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
9901 out_object_file
=`basename $out_file .c`.o
9905 for f
in $tm_file; do
9908 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
9909 tm_include_list
="${tm_include_list} $f"
9912 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
9913 tm_include_list
="${tm_include_list} config/$f"
9920 for f
in $tm_p_file; do
9923 tm_p_file_list
="${tm_p_file_list} $f"
9924 tm_p_include_list
="${tm_p_include_list} $f"
9927 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
9928 tm_p_include_list
="${tm_p_include_list} config/$f"
9934 for f
in $xm_file; do
9937 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
9938 xm_include_list
="${xm_include_list} $f"
9941 xm_file_list
="${xm_file_list} $f"
9942 xm_include_list
="${xm_include_list} $f"
9945 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
9946 xm_include_list
="${xm_include_list} config/$f"
9952 host_xm_include_list
=
9953 for f
in $host_xm_file; do
9956 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
9957 host_xm_include_list
="${host_xm_include_list} $f"
9960 host_xm_file_list
="${host_xm_file_list} $f"
9961 host_xm_include_list
="${host_xm_include_list} $f"
9964 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
9965 host_xm_include_list
="${host_xm_include_list} config/$f"
9971 for f
in $build_xm_file; do
9974 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
9975 build_xm_include_list
="${build_xm_include_list} $f"
9977 auto-build.h | auto-host.h
)
9978 build_xm_file_list
="${build_xm_file_list} $f"
9979 build_xm_include_list
="${build_xm_include_list} $f"
9982 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
9983 build_xm_include_list
="${build_xm_include_list} config/$f"
9988 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
9989 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
9992 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
9993 if test x
$host != x
$target
9995 CROSS
="-DCROSS_COMPILE"
9997 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
9998 case "$host","$target" in
9999 # Darwin crosses can use the host system's libraries and headers,
10000 # because of the fat library support. Of course, it must be the
10001 # same version of Darwin on both sides. Allow the user to
10002 # just say --target=foo-darwin without a version number to mean
10003 # "the version on this system".
10004 *-*-darwin*,*-*-darwin*)
10005 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10006 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10007 if test $hostos = $targetos -o $targetos = darwin
; then
10009 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10014 i?
86-*-*,x86_64-
*-* \
10015 | powerpc
*-*-*,powerpc64
*-*-*)
10016 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10018 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10019 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
10020 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
10023 # If this is a cross-compiler that does not
10024 # have its own set of headers then define
10027 # If this is using newlib, without having the headers available now,
10028 # then define inhibit_libc in LIBGCC2_CFLAGS.
10029 # This prevents libgcc2 from containing any code which requires libc
10032 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10033 test x
$with_newlib = xyes
; } &&
10034 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10035 inhibit_libc
=-Dinhibit_libc
10039 # When building gcc with a cross-compiler, we need to adjust things so
10040 # that the generator programs are still built with the native compiler.
10041 # Also, we cannot run fixincludes or fix-header.
10043 # These are the normal (build=host) settings:
10044 CC_FOR_BUILD
='$(CC)'
10045 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10046 STMP_FIXINC
=stmp-fixinc
10048 # Possibly disable fixproto, on a per-target basis.
10049 case ${use_fixproto} in
10054 STMP_FIXPROTO
=stmp-fixproto
10059 # And these apply if build != host, or we are generating coverage data
10060 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10062 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10064 if test "x$TARGET_SYSTEM_ROOT" = x
; then
10070 # Expand extra_headers to include complete path.
10071 # This substitutes for lots of t-* files.
10072 extra_headers_list
=
10073 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10074 for file in ${extra_headers} ; do
10075 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10078 # Define collect2 in Makefile.
10079 case $host_can_use_collect2 in
10081 *) collect2
='collect2$(exeext)' ;;
10085 # Add a definition of USE_COLLECT2 if system wants one.
10086 case $use_collect2 in
10087 no
) use_collect2
= ;;
10090 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
10091 xm_defines
="${xm_defines} USE_COLLECT2"
10092 case $host_can_use_collect2 in
10094 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
10095 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
10096 { (exit 1); exit 1; }; }
10102 # ---------------------------
10103 # Assembler & linker features
10104 # ---------------------------
10106 # Identify the assembler which will work hand-in-glove with the newly
10107 # built GCC, so that we can examine its features. This is the assembler
10108 # which will be driven by the driver program.
10110 # If build != host, and we aren't building gas in-tree, we identify a
10111 # build->target assembler and hope that it will have the same features
10112 # as the host->target assembler we'll be using.
10113 echo "$as_me:$LINENO: checking what assembler to use" >&5
10114 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
10117 gcc_cv_gas_major_version
=
10118 gcc_cv_gas_minor_version
=
10119 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
10120 if test -x "$DEFAULT_ASSEMBLER"; then
10121 gcc_cv_as
="$DEFAULT_ASSEMBLER"
10122 elif test -x as
$host_exeext; then
10123 # Build using assembler in the current directory.
10124 gcc_cv_as
=.
/as
$host_exeext
10125 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
10126 && test -f ..
/gas
/Makefile \
10127 && test x
$build = x
$host; then
10128 # Single tree build which includes gas. We want to prefer it
10129 # over whatever linker top-level may have detected, since
10130 # we'll use what we're building after installation anyway.
10132 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10133 for f
in $gcc_cv_as_bfd_srcdir/configure \
10134 $gcc_cv_as_gas_srcdir/configure \
10135 $gcc_cv_as_gas_srcdir/configure.
in \
10136 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
10137 gcc_cv_gas_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10138 if test x
$gcc_cv_gas_version != x
; then
10142 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
10143 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10144 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
10145 case $gcc_cv_gas_patch_version in
10146 "") gcc_cv_gas_patch_version
="0" ;;
10148 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
10149 + $gcc_cv_gas_minor_version \) \* 1000 \
10150 + $gcc_cv_gas_patch_version`
10152 rm -f as
$host_exeext
10153 $symbolic_link ..
/gas
/as-new
$host_exeext as
$host_exeext 2>/dev
/null
10154 in_tree_gas_is_elf
=no
10155 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
10156 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
10157 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
10159 in_tree_gas_is_elf
=yes
10161 elif test -x "$AS_FOR_TARGET"; then
10162 gcc_cv_as
="$AS_FOR_TARGET"
10163 elif test -x "$AS" && test x
$host = x
$target; then
10167 if test "x$gcc_cv_as" = x
; then
10168 # Search the same directories that the installed compiler will
10169 # search. Else we may find the wrong assembler and lose. If we
10170 # do not find a suitable assembler binary, then try the user's
10173 # Also note we have to check MD_EXEC_PREFIX before checking the
10174 # user's path. Unfortunately, there is no good way to get at the
10175 # value of MD_EXEC_PREFIX here. So we do a brute force search
10176 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10177 # to be fixed as part of the make/configure rewrite too.
10179 if test "x$exec_prefix" = xNONE
; then
10180 if test "x$prefix" = xNONE
; then
10181 test_prefix
=/usr
/local
10183 test_prefix
=$prefix
10186 test_prefix
=$exec_prefix
10189 # If the loop below does not find an assembler, then use whatever
10190 # one we can find in the users's path.
10192 if test "x$program_prefix" != xNONE
; then
10193 gcc_cv_as
=${program_prefix}as
$host_exeext
10195 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$host_exeext
10198 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10199 $test_prefix/libexec/gcc/$target_noncanonical \
10200 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10201 /usr/lib/gcc/$target_noncanonical \
10202 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10203 $test_prefix/$target_noncanonical/bin"
10205 if test x
$host = x
$target; then
10206 test_dirs
="$test_dirs \
10211 /bsd43/usr/lib/cmplrs/cc \
10212 /usr/cross64/usr/bin \
10213 /usr/lib/cmplrs/cc \
10214 /sysv/usr/lib/cmplrs/cc \
10215 /svr4/usr/lib/cmplrs/cc \
10219 for dir
in $test_dirs; do
10220 if test -x $dir/as
$host_exeext; then
10221 gcc_cv_as
=$dir/as
$host_exeext
10226 case $in_tree_gas in
10228 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
10229 echo "${ECHO_T}\"newly built gas\"" >&6
10232 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
10233 echo "${ECHO_T}$gcc_cv_as" >&6
10237 # Identify the linker which will work hand-in-glove with the newly
10238 # built GCC, so that we can examine its features. This is the linker
10239 # which will be driven by the driver program.
10241 # If build != host, and we aren't building gas in-tree, we identify a
10242 # build->target linker and hope that it will have the same features
10243 # as the host->target linker we'll be using.
10244 echo "$as_me:$LINENO: checking what linker to use" >&5
10245 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
10248 gcc_cv_gld_major_version
=
10249 gcc_cv_gld_minor_version
=
10250 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
10251 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
10252 if test -x "$DEFAULT_LINKER"; then
10253 gcc_cv_ld
="$DEFAULT_LINKER"
10254 elif test -x collect-ld
$host_exeext; then
10255 # Build using linker in the current directory.
10256 gcc_cv_ld
=.
/collect-ld
$host_exeext
10257 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
10258 && test -f ..
/ld
/Makefile \
10259 && test x
$build = x
$host; then
10260 # Single tree build which includes ld. We want to prefer it
10261 # over whatever linker top-level may have detected, since
10262 # we'll use what we're building after installation anyway.
10264 in_tree_ld_is_elf
=no
10265 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
10266 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile
) > /dev
/null
; then
10267 in_tree_ld_is_elf
=yes
10269 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
10271 gcc_cv_gld_version
=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
10272 if test x
$gcc_cv_gld_version != x
; then
10276 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
10277 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
10278 rm -f collect-ld
$host_exeext
10279 $symbolic_link ..
/ld
/ld-new
$host_exeext collect-ld
$host_exeext \
10281 elif test -x "$LD_FOR_TARGET"; then
10282 gcc_cv_ld
="$LD_FOR_TARGET"
10283 elif test -x "$LD" && test x
$host = x
$target; then
10287 if test "x$gcc_cv_ld" = x
; then
10288 # Search the same directories that the installed compiler will
10289 # search. Else we may find the wrong linker and lose. If we
10290 # do not find a suitable linker binary, then try the user's
10293 # Also note we have to check MD_EXEC_PREFIX before checking the
10294 # user's path. Unfortunately, there is no good way to get at the
10295 # value of MD_EXEC_PREFIX here. So we do a brute force search
10296 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
10297 # to be fixed as part of the make/configure rewrite too.
10299 if test "x$exec_prefix" = xNONE
; then
10300 if test "x$prefix" = xNONE
; then
10301 test_prefix
=/usr
/local
10303 test_prefix
=$prefix
10306 test_prefix
=$exec_prefix
10309 # If the loop below does not find an linker, then use whatever
10310 # one we can find in the users's path.
10312 if test "x$program_prefix" != xNONE
; then
10313 gcc_cv_ld
=${program_prefix}ld
$host_exeext
10315 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$host_exeext
10318 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
10319 $test_prefix/libexec/gcc/$target_noncanonical \
10320 /usr/lib/gcc/$target_noncanonical/$gcc_version \
10321 /usr/lib/gcc/$target_noncanonical \
10322 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
10323 $test_prefix/$target_noncanonical/bin"
10325 if test x
$host = x
$target; then
10326 test_dirs
="$test_dirs \
10331 /bsd43/usr/lib/cmplrs/cc \
10332 /usr/cross64/usr/bin \
10333 /usr/lib/cmplrs/cc \
10334 /sysv/usr/lib/cmplrs/cc \
10335 /svr4/usr/lib/cmplrs/cc \
10339 for dir
in $test_dirs; do
10340 if test -x $dir/ld
$host_exeext; then
10341 gcc_cv_ld
=$dir/ld
$host_exeext
10346 case $in_tree_ld in
10348 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
10349 echo "${ECHO_T}\"newly built ld\"" >&6
10352 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
10353 echo "${ECHO_T}$gcc_cv_ld" >&6
10357 # Figure out what nm we will be using.
10358 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
10359 echo "$as_me:$LINENO: checking what nm to use" >&5
10360 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
10362 if test -x nm
$host_exeext; then
10363 gcc_cv_nm
=.
/nm
$host_exeext
10364 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10365 && test -f ..
/binutils
/Makefile
; then
10366 # Single tree build which includes binutils.
10368 gcc_cv_nm
=.
/nm
$host_exeext
10369 rm -f nm
$host_exeext
10370 $symbolic_link ..
/binutils
/nm-new
$host_exeext nm
$host_exeext 2>/dev
/null
10371 elif test "x$program_prefix" != xNONE
; then
10372 gcc_cv_nm
=${program_prefix}nm
$host_exeext
10374 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$host_exeext
10376 case $in_tree_nm in
10377 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
10378 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
10379 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
10380 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
10383 # Figure out what objdump we will be using.
10384 echo "$as_me:$LINENO: checking what objdump to use" >&5
10385 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
10387 if test -x objdump
$host_exeext; then
10388 gcc_cv_objdump
=.
/objdump
$host_exeext
10389 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
10390 && test -f ..
/binutils
/Makefile
; then
10391 # Single tree build which includes binutils.
10392 in_tree_objdump
=yes
10393 gcc_cv_objdump
=.
/objdump
$host_exeext
10394 rm -f objdump
$host_exeext
10395 $symbolic_link ..
/binutils
/objdump
$host_exeext \
10396 objdump
$host_exeext 2>/dev
/null
10397 elif test "x$program_prefix" != xNONE
; then
10398 gcc_cv_objdump
=${program_prefix}objdump
$host_exeext
10400 gcc_cv_objdump
=`echo objdump | \
10401 sed "${program_transform_name}"`$host_exeext
10403 case $in_tree_objdump in
10404 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
10405 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
10406 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
10407 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
10410 # Figure out what assembler alignment features are present.
10411 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
10412 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
10413 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 gcc_cv_as_balign_and_p2align
=no
10417 if test $in_tree_gas = yes; then
10418 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
10419 then gcc_cv_as_balign_and_p2align
=yes
10421 elif test x
$gcc_cv_as != x
; then
10423 .p2align 2' > conftest.s
10424 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; }
10431 gcc_cv_as_balign_and_p2align
=yes
10433 echo "configure: failed program was" >&5
10436 rm -f conftest.o conftest.s
10439 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
10440 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
10441 if test $gcc_cv_as_balign_and_p2align = yes; then
10443 cat >>confdefs.h
<<\_ACEOF
10444 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
10449 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
10450 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
10451 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 gcc_cv_as_max_skip_p2align
=no
10455 if test $in_tree_gas = yes; then
10456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
10457 then gcc_cv_as_max_skip_p2align
=yes
10459 elif test x
$gcc_cv_as != x
; then
10460 echo '.p2align 4,,7' > conftest.s
10461 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }
10468 gcc_cv_as_max_skip_p2align
=yes
10470 echo "configure: failed program was" >&5
10473 rm -f conftest.o conftest.s
10476 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
10477 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
10478 if test $gcc_cv_as_max_skip_p2align = yes; then
10480 cat >>confdefs.h
<<\_ACEOF
10481 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
10486 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
10487 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
10488 if test "${gcc_cv_as_subsection_m1+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 gcc_cv_as_subsection_m1
=no
10492 if test $in_tree_gas = yes; then
10493 if test $in_tree_gas_is_elf = yes \
10494 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
10495 then gcc_cv_as_subsection_m1
=yes
10497 elif test x
$gcc_cv_as != x
; then
10498 echo 'conftest_label1: .word 0
10500 conftest_label2: .word 0
10501 .previous' > conftest.s
10502 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }
10509 if test x
$gcc_cv_nm != x
; then
10510 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
10511 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
10512 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
10514 else gcc_cv_as_subsection_m1
=yes
10516 rm -f conftest.nm1 conftest.nm2
10519 echo "configure: failed program was" >&5
10522 rm -f conftest.o conftest.s
10525 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
10526 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
10527 if test $gcc_cv_as_subsection_m1 = yes; then
10529 cat >>confdefs.h
<<\_ACEOF
10530 #define HAVE_GAS_SUBSECTION_ORDERING 1
10535 echo "$as_me:$LINENO: checking assembler for .weak" >&5
10536 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
10537 if test "${gcc_cv_as_weak+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10541 if test $in_tree_gas = yes; then
10542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
10543 then gcc_cv_as_weak
=yes
10545 elif test x
$gcc_cv_as != x
; then
10546 echo ' .weak foobar' > conftest.s
10547 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; }
10556 echo "configure: failed program was" >&5
10559 rm -f conftest.o conftest.s
10562 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
10563 echo "${ECHO_T}$gcc_cv_as_weak" >&6
10564 if test $gcc_cv_as_weak = yes; then
10566 cat >>confdefs.h
<<\_ACEOF
10567 #define HAVE_GAS_WEAK 1
10572 # .hidden needs to be supported in both the assembler and the linker,
10573 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
10574 # This is irritatingly difficult to feature test for; we have to check the
10575 # date string after the version number. If we've got an in-tree
10576 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
10578 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
10579 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
10580 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
10581 if test "${gcc_cv_as_hidden+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 gcc_cv_as_hidden
=no
10585 if test $in_tree_gas = yes; then
10586 if test $in_tree_gas_is_elf = yes \
10587 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
10588 then gcc_cv_as_hidden
=yes
10590 elif test x
$gcc_cv_as != x
; then
10591 echo ' .hidden foobar
10592 foobar:' > conftest.s
10593 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595 (eval $ac_try) 2>&5
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }; }
10600 gcc_cv_as_hidden
=yes
10602 echo "configure: failed program was" >&5
10605 rm -f conftest.o conftest.s
10608 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
10609 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
10612 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
10613 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
10614 if test "${gcc_cv_ld_hidden+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 if test $in_tree_ld = yes ; then
10618 gcc_cv_ld_hidden
=no
10619 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
10620 && test $in_tree_ld_is_elf = yes; then
10621 gcc_cv_ld_hidden
=yes
10624 gcc_cv_ld_hidden
=yes
10625 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
10626 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
10627 ld_vers
=`echo $ld_ver | sed -n \
10628 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10629 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10630 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
10631 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10632 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
10633 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
10634 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'`
10635 if test 0"$ld_date" -lt 20020404; then
10636 if test -n "$ld_date"; then
10637 # If there was date string, but was earlier than 2002-04-04, fail
10638 gcc_cv_ld_hidden
=no
10639 elif test -z "$ld_vers"; then
10640 # If there was no date string nor ld version number, something is wrong
10641 gcc_cv_ld_hidden
=no
10643 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
10644 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
10645 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
10646 test -z "$ld_vers_patch" && ld_vers_patch
=0
10647 if test "$ld_vers_major" -lt 2; then
10648 gcc_cv_ld_hidden
=no
10649 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
10650 gcc_cv_ld_hidden
="no"
10651 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
10652 gcc_cv_ld_hidden
=no
10657 case "${target}" in
10658 hppa64
*-*-hpux* | ia64
*-*-hpux*)
10659 gcc_cv_ld_hidden
=yes
10662 gcc_cv_ld_hidden
=no
10668 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
10669 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
10670 libgcc_visibility
=no
10672 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
10673 libgcc_visibility
=yes
10675 cat >>confdefs.h
<<\_ACEOF
10676 #define HAVE_GAS_HIDDEN 1
10681 # Check if we have .[us]leb128, and support symbol arithmetic with it.
10682 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
10683 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
10684 if test "${gcc_cv_as_leb128+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 gcc_cv_as_leb128
=no
10688 if test $in_tree_gas = yes; then
10689 if test $in_tree_gas_is_elf = yes \
10690 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
10691 then gcc_cv_as_leb128
=yes
10693 elif test x
$gcc_cv_as != x
; then
10700 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }
10707 # GAS versions before 2.11 do not support uleb128,
10708 # despite appearing to.
10709 # ??? There exists an elf-specific test that will crash
10710 # the assembler. Perhaps it's better to figure out whether
10711 # arbitrary sections are supported and try the test.
10712 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
10713 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
10714 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
10715 as_major
=`echo $as_ver | sed 's/\..*//'`
10716 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
10717 if test $as_major -eq 2 && test $as_minor -lt 11
10719 else gcc_cv_as_leb128
=yes
10723 echo "configure: failed program was" >&5
10726 rm -f conftest.o conftest.s
10729 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
10730 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
10731 if test $gcc_cv_as_leb128 = yes; then
10733 cat >>confdefs.h
<<\_ACEOF
10734 #define HAVE_AS_LEB128 1
10739 # GAS versions up to and including 2.11.0 may mis-optimize
10741 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
10742 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
10743 if test "${gcc_cv_as_eh_frame+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 gcc_cv_as_eh_frame
=no
10747 if test $in_tree_gas = yes; then
10748 if test $in_tree_gas_is_elf = yes \
10749 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10750 then gcc_cv_as_eh_frame
=yes
10752 elif test x
$gcc_cv_as != x
; then
10759 .section .eh_frame,"aw",@progbits
10761 .4byte .LECIE1-.LSCIE1
10775 .4byte .LEFDE1-.LASFDE1
10777 .4byte .LASFDE1-__FRAME_BEGIN__
10784 .LEFDE1:' > conftest.s
10785 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }
10792 cat > conftest.lit
<<EOF
10793 0000 10000000 00000000 017a0001 781a0004 .........z..x...
10794 0010 01000000 12000000 18000000 00000000 ................
10795 0020 08000000 04080000 0044 .........D
10797 cat > conftest.big
<<EOF
10798 0000 00000010 00000000 017a0001 781a0004 .........z..x...
10799 0010 00000001 00000012 00000018 00000000 ................
10800 0020 00000008 04000000 0844 .........D
10802 # If the assembler didn't choke, and we can objdump,
10803 # and we got the correct data, then succeed.
10804 if test x
$gcc_cv_objdump != x \
10805 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
10806 |
tail -3 > conftest.got \
10807 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
10808 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
10810 gcc_cv_as_eh_frame
=yes
10811 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
10812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 gcc_cv_as_eh_frame
=buggy
10819 # Uh oh, what do we do now?
10820 gcc_cv_as_eh_frame
=no
10823 echo "configure: failed program was" >&5
10826 rm -f conftest.o conftest.s
10829 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
10830 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
10833 if test $gcc_cv_as_eh_frame = buggy
; then
10835 cat >>confdefs.h
<<\_ACEOF
10836 #define USE_AS_TRADITIONAL_FORMAT 1
10841 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
10842 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
10843 if test "${gcc_cv_as_shf_merge+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 gcc_cv_as_shf_merge
=no
10847 if test $in_tree_gas = yes; then
10848 if test $in_tree_gas_is_elf = yes \
10849 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
10850 then gcc_cv_as_shf_merge
=yes
10852 elif test x
$gcc_cv_as != x
; then
10853 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
10854 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }
10861 gcc_cv_as_shf_merge
=yes
10863 echo "configure: failed program was" >&5
10866 rm -f conftest.o conftest.s
10869 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
10870 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
10873 cat >>confdefs.h
<<_ACEOF
10874 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
10878 # Thread-local storage - the check is heavily parametrized.
10886 .section ".tdata","awT",@progbits
10889 ldq $27,__tls_get_addr($29) !literal!1
10890 lda $16,foo($29) !tlsgd!1
10891 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
10892 ldq $27,__tls_get_addr($29) !literal!2
10893 lda $16,foo($29) !tlsldm!2
10894 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
10895 ldq $1,foo($29) !gotdtprel
10896 ldah $2,foo($29) !dtprelhi
10897 lda $3,foo($2) !dtprello
10898 lda $4,foo($29) !dtprel
10899 ldq $1,foo($29) !gottprel
10900 ldah $2,foo($29) !tprelhi
10901 lda $3,foo($2) !tprello
10902 lda $4,foo($29) !tprel'
10905 tls_as_opt
=--fatal-warnings
10909 .section ".tdata","awT",@progbits
10913 leal foo@TLSGD(,%ebx,1), %eax
10914 leal foo@TLSLDM(%ebx), %eax
10915 leal foo@DTPOFF(%eax), %edx
10916 movl foo@GOTTPOFF(%ebx), %eax
10917 subl foo@GOTTPOFF(%ebx), %eax
10918 addl foo@GOTNTPOFF(%ebx), %eax
10919 movl foo@INDNTPOFF, %eax
10920 movl $foo@TPOFF, %eax
10921 subl $foo@TPOFF, %eax
10922 leal foo@NTPOFF(%ecx), %eax'
10925 tls_as_opt
=--fatal-warnings
10929 .section ".tdata","awT",@progbits
10933 leaq foo@TLSGD(%rip), %rdi
10934 leaq foo@TLSLD(%rip), %rdi
10935 leaq foo@DTPOFF(%rax), %rdx
10936 movq foo@GOTTPOFF(%rip), %rax
10937 movq $foo@TPOFF, %rax'
10940 tls_as_opt
=--fatal-warnings
10944 .section ".tdata","awT",@progbits
10947 addl r16 = @ltoff(@dtpmod(foo#)), gp
10948 addl r17 = @ltoff(@dtprel(foo#)), gp
10949 addl r18 = @ltoff(@tprel(foo#)), gp
10950 addl r19 = @dtprel(foo#), gp
10951 adds r21 = @dtprel(foo#), r13
10952 movl r23 = @dtprel(foo#)
10953 addl r20 = @tprel(foo#), gp
10954 adds r22 = @tprel(foo#), r13
10955 movl r24 = @tprel(foo#)'
10958 tls_as_opt
=--fatal-warnings
10962 .section ".tdata","awT",@progbits
10970 addi 3,31,ld0@got@tlsgd
10972 addi 3,31,x1@got@tlsld
10975 addis 9,3,x2@dtprel@ha
10976 addi 9,9,x2@dtprel@l
10977 lwz 9,x3@got@tprel(31)
10980 addis 9,2,x2@tprel@ha
10981 addi 9,9,x2@tprel@l'
10984 tls_as_opt
="-a32 --fatal-warnings"
10988 .section ".tdata","awT",@progbits
10996 addi 3,2,ld0@got@tlsgd
11002 addi 3,2,x1@got@tlsld
11008 addis 9,3,x2@dtprel@ha
11009 addi 9,9,x2@dtprel@l
11012 ld 9,x3@got@dtprel(2)
11018 tls_as_opt
="-a64 --fatal-warnings"
11022 .section ".tdata","awT",@progbits
11029 .long foo@GOTNTPOFF
11030 .long foo@INDNTPOFF
11031 l %r1,foo@GOTNTPOFF(%r12)
11032 l %r1,0(%r1):tls_load:foo
11033 bas %r14,0(%r1,%r13):tls_gdcall:foo
11034 bas %r14,0(%r1,%r13):tls_ldcall:foo'
11037 tls_as_opt
="-m31 --fatal-warnings"
11041 .section ".tdata","awT",@progbits
11048 .quad foo@GOTNTPOFF
11049 lg %r1,foo@GOTNTPOFF(%r12)
11050 larl %r1,foo@INDNTPOFF
11051 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
11052 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
11055 tls_as_opt
="-m64 -Aesame --fatal-warnings"
11057 sh-
*-* | sh
[34]-*-*)
11059 .section ".tdata","awT",@progbits
11069 tls_as_opt
=--fatal-warnings
11073 sparc
*-sun-solaris2.
*)
11080 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
11082 .section ".tdata",#alloc,#write,#tls
11085 sethi %tgd_hi22(foo), %o0
11086 add %o0, %tgd_lo10(foo), %o1
11087 add %l7, %o1, %o0, %tgd_add(foo)
11088 call __tls_get_addr, %tgd_call(foo)
11089 sethi %tldm_hi22(foo), %l1
11090 add %l1, %tldm_lo10(foo), %l2
11091 add %l7, %l2, %o0, %tldm_add(foo)
11092 call __tls_get_addr, %tldm_call(foo)
11093 sethi %tldo_hix22(foo), %l3
11094 xor %l3, %tldo_lox10(foo), %l4
11095 add %o0, %l4, %l5, %tldo_add(foo)
11096 sethi %tie_hi22(foo), %o3
11097 add %o3, %tie_lo10(foo), %o3
11098 ld [%l7 + %o3], %o2, %tie_ld(foo)
11099 add %g7, %o2, %o4, %tie_add(foo)
11100 sethi %tle_hix22(foo), %l1
11101 xor %l1, %tle_lox10(foo), %o5
11102 ld [%g7 + %o5], %o1'
11107 .section ".tdata","awT",@progbits
11110 sethi %tgd_hi22(foo), %o0
11111 add %o0, %tgd_lo10(foo), %o1
11112 add %l7, %o1, %o0, %tgd_add(foo)
11113 call __tls_get_addr, %tgd_call(foo)
11114 sethi %tldm_hi22(foo), %l1
11115 add %l1, %tldm_lo10(foo), %l2
11116 add %l7, %l2, %o0, %tldm_add(foo)
11117 call __tls_get_addr, %tldm_call(foo)
11118 sethi %tldo_hix22(foo), %l3
11119 xor %l3, %tldo_lox10(foo), %l4
11120 add %o0, %l4, %l5, %tldo_add(foo)
11121 sethi %tie_hi22(foo), %o3
11122 add %o3, %tie_lo10(foo), %o3
11123 ld [%l7 + %o3], %o2, %tie_ld(foo)
11124 add %g7, %o2, %o4, %tie_add(foo)
11125 sethi %tle_hix22(foo), %l1
11126 xor %l1, %tle_lox10(foo), %o5
11127 ld [%g7 + %o5], %o1'
11130 tls_as_opt
="-32 --fatal-warnings"
11134 if test -z "$tls_first_major"; then
11135 : # If we don't have a check, assume no support.
11137 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
11138 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
11139 if test "${gcc_cv_as_tls+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 if test $in_tree_gas = yes; then
11144 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
11145 then gcc_cv_as_tls
=yes
11147 elif test x
$gcc_cv_as != x
; then
11148 echo "$conftest_s" > conftest.s
11149 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }
11158 echo "configure: failed program was" >&5
11161 rm -f conftest.o conftest.s
11164 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
11165 echo "${ECHO_T}$gcc_cv_as_tls" >&6
11166 if test $gcc_cv_as_tls = yes; then
11168 cat >>confdefs.h
<<\_ACEOF
11169 #define HAVE_AS_TLS 1
11175 # Target-specific assembler checks.
11177 if test x
"$demangler_in_ld" = xyes
; then
11178 echo "$as_me:$LINENO: checking linker --demangle support" >&5
11179 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
11180 gcc_cv_ld_demangle
=no
11181 if test $in_tree_ld = yes; then
11182 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
11183 gcc_cv_ld_demangle
=yes
11185 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
11186 # Check if the GNU linker supports --demangle option
11187 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
11188 gcc_cv_ld_demangle
=yes
11191 if test x
"$gcc_cv_ld_demangle" = xyes
; then
11193 cat >>confdefs.h
<<\_ACEOF
11194 #define HAVE_LD_DEMANGLE 1
11198 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
11199 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
11203 # All TARGET_ABI_OSF targets.
11204 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
11205 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11206 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11207 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 gcc_cv_as_alpha_explicit_relocs
=no
11211 if test $in_tree_gas = yes; then
11212 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
11213 then gcc_cv_as_alpha_explicit_relocs
=yes
11215 elif test x
$gcc_cv_as != x
; then
11216 echo ' .set nomacro
11218 extbl $3, $2, $3 !lituse_bytoff!1
11219 ldq $2, a($29) !literal!1
11220 ldq $4, b($29) !literal!2
11221 ldq_u $3, 0($2) !lituse_base!1
11222 ldq $27, f($29) !literal!5
11223 jsr $26, ($27), f !lituse_jsr!5
11224 ldah $29, 0($26) !gpdisp!3
11225 lda $0, c($29) !gprel
11226 ldah $1, d($29) !gprelhigh
11227 lda $1, d($1) !gprellow
11228 lda $29, 0($29) !gpdisp!3' > conftest.s
11229 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }
11236 gcc_cv_as_alpha_explicit_relocs
=yes
11238 echo "configure: failed program was" >&5
11241 rm -f conftest.o conftest.s
11244 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
11245 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
11246 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
11248 cat >>confdefs.h
<<\_ACEOF
11249 #define HAVE_AS_EXPLICIT_RELOCS 1
11256 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
11257 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
11258 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
11259 echo $ECHO_N "(cached) $ECHO_C" >&6
11261 gcc_cv_as_cris_no_mul_bug
=no
11262 if test $in_tree_gas = yes; then
11263 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11264 then gcc_cv_as_cris_no_mul_bug
=yes
11266 elif test x
$gcc_cv_as != x
; then
11267 echo '.text' > conftest.s
11268 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }
11275 gcc_cv_as_cris_no_mul_bug
=yes
11277 echo "configure: failed program was" >&5
11280 rm -f conftest.o conftest.s
11283 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
11284 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
11285 if test $gcc_cv_as_cris_no_mul_bug = yes; then
11287 cat >>confdefs.h
<<\_ACEOF
11288 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
11295 echo "$as_me:$LINENO: checking assembler for .register" >&5
11296 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
11297 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 gcc_cv_as_sparc_register_op
=no
11301 if test x
$gcc_cv_as != x
; then
11302 echo '.register %g2, #scratch' > conftest.s
11303 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; }
11310 gcc_cv_as_sparc_register_op
=yes
11312 echo "configure: failed program was" >&5
11315 rm -f conftest.o conftest.s
11318 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
11319 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
11320 if test $gcc_cv_as_sparc_register_op = yes; then
11322 cat >>confdefs.h
<<\_ACEOF
11323 #define HAVE_AS_REGISTER_PSEUDO_OP 1
11328 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
11329 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
11330 if test "${gcc_cv_as_sparc_relax+set}" = set; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 gcc_cv_as_sparc_relax
=no
11334 if test x
$gcc_cv_as != x
; then
11335 echo '.text' > conftest.s
11336 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }
11343 gcc_cv_as_sparc_relax
=yes
11345 echo "configure: failed program was" >&5
11348 rm -f conftest.o conftest.s
11351 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
11352 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
11353 if test $gcc_cv_as_sparc_relax = yes; then
11355 cat >>confdefs.h
<<\_ACEOF
11356 #define HAVE_AS_RELAX_OPTION 1
11361 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
11362 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
11363 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 gcc_cv_as_sparc_ua_pcrel
=no
11367 if test x
$gcc_cv_as != x
; then
11374 .uaword %r_disp32(foo)' > conftest.s
11375 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }
11382 if test x
$gcc_cv_ld != x \
11383 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
11384 gcc_cv_as_sparc_ua_pcrel
=yes
11388 echo "configure: failed program was" >&5
11391 rm -f conftest.o conftest.s
11394 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
11395 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
11396 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
11398 cat >>confdefs.h
<<\_ACEOF
11399 #define HAVE_AS_SPARC_UA_PCREL 1
11403 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
11404 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
11405 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 gcc_cv_as_sparc_ua_pcrel_hidden
=no
11409 if test x
$gcc_cv_as != x
; then
11413 .uaword %r_disp32(foo)
11414 .byte 0x32, 0x33, 0x34
11418 .skip 4' > conftest.s
11419 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }
11426 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
11427 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
11428 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
11429 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
11430 if $gcc_cv_objdump -R conftest
2> /dev
/null \
11431 |
grep 'DISP32' > /dev
/null
2>&1; then
11434 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
11439 echo "configure: failed program was" >&5
11442 rm -f conftest.o conftest.s
11445 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
11446 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
11447 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
11449 cat >>confdefs.h
<<\_ACEOF
11450 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
11455 fi # unaligned pcrel relocs
11457 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
11458 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
11459 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 gcc_cv_as_sparc_offsetable_lo10
=no
11463 if test x
$gcc_cv_as != x
; then
11465 or %g1, %lo(ab) + 12, %g1
11466 or %g1, %lo(ab + 12), %g1' > conftest.s
11467 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }
11474 if test x
$gcc_cv_objdump != x \
11475 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
11476 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
11477 gcc_cv_as_offsetable_lo10
=yes
11480 echo "configure: failed program was" >&5
11483 rm -f conftest.o conftest.s
11486 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
11487 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
11488 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
11490 cat >>confdefs.h
<<\_ACEOF
11491 #define HAVE_AS_OFFSETABLE_LO10 1
11497 i
[34567]86-*-* | x86_64-
*-*)
11499 cygwin
* | pe | mingw32
*)
11500 # Used for DWARF 2 in PE
11501 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
11502 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
11503 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 gcc_cv_as_ix86_pe_secrel32
=no
11507 if test $in_tree_gas = yes; then
11508 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
11509 then gcc_cv_as_ix86_pe_secrel32
=yes
11511 elif test x
$gcc_cv_as != x
; then
11515 .secrel32 foo' > conftest.s
11516 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; }
11523 if test x
$gcc_cv_ld != x \
11524 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
11525 gcc_cv_as_ix86_pe_secrel32
=yes
11529 echo "configure: failed program was" >&5
11532 rm -f conftest.o conftest.s
11535 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
11536 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
11537 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
11539 cat >>confdefs.h
<<\_ACEOF
11540 #define HAVE_GAS_PE_SECREL32_RELOC 1
11547 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
11548 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
11549 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 gcc_cv_as_ix86_filds_fists
=no
11553 if test $in_tree_gas = yes; then
11554 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
11555 then gcc_cv_as_ix86_filds_fists
=yes
11557 elif test x
$gcc_cv_as != x
; then
11558 echo 'filds mem; fists mem' > conftest.s
11559 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }
11566 gcc_cv_as_ix86_filds_fists
=yes
11568 echo "configure: failed program was" >&5
11571 rm -f conftest.o conftest.s
11574 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
11575 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
11576 if test $gcc_cv_as_ix86_filds_fists = yes; then
11578 cat >>confdefs.h
<<\_ACEOF
11579 #define HAVE_GAS_FILDS_FISTS 1
11584 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
11585 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
11586 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 gcc_cv_as_ix86_cmov_sun_syntax
=no
11590 if test x
$gcc_cv_as != x
; then
11591 echo 'cmovl.l %edx, %eax' > conftest.s
11592 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }
11599 gcc_cv_as_ix86_cmov_sun_syntax
=yes
11601 echo "configure: failed program was" >&5
11604 rm -f conftest.o conftest.s
11607 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
11608 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
11609 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
11611 cat >>confdefs.h
<<\_ACEOF
11612 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
11617 # This one is used unconditionally by i386.[ch]; it is to be defined
11618 # to 1 if the feature is present, 0 otherwise.
11619 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
11620 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
11621 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 gcc_cv_as_ix86_gotoff_in_data
=no
11625 if test $in_tree_gas = yes; then
11626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11627 then gcc_cv_as_ix86_gotoff_in_data
=yes
11629 elif test x
$gcc_cv_as != x
; then
11634 .long .L0@GOTOFF' > conftest.s
11635 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }
11642 gcc_cv_as_ix86_gotoff_in_data
=yes
11644 echo "configure: failed program was" >&5
11647 rm -f conftest.o conftest.s
11650 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
11651 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
11654 cat >>confdefs.h
<<_ACEOF
11655 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
11661 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
11662 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
11663 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
11667 if test $in_tree_gas = yes; then
11668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11669 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11671 elif test x
$gcc_cv_as != x
; then
11673 addl r15 = @ltoffx(x#), gp
11675 ld8.mov r16 = [r15], x#' > conftest.s
11676 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }
11683 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
11685 echo "configure: failed program was" >&5
11688 rm -f conftest.o conftest.s
11691 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
11692 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
11693 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
11695 cat >>confdefs.h
<<\_ACEOF
11696 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
11705 *-*-aix*) conftest_s
=' .csect .text[PR]
11707 *-*-darwin*) conftest_s
=' .text
11709 *) conftest_s
=' .text
11713 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
11714 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
11715 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 gcc_cv_as_powerpc_mfcrf
=no
11719 if test $in_tree_gas = yes; then
11720 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11721 then gcc_cv_as_powerpc_mfcrf
=yes
11723 elif test x
$gcc_cv_as != x
; then
11724 echo "$conftest_s" > conftest.s
11725 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727 (eval $ac_try) 2>&5
11729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730 (exit $ac_status); }; }
11732 gcc_cv_as_powerpc_mfcrf
=yes
11734 echo "configure: failed program was" >&5
11737 rm -f conftest.o conftest.s
11740 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
11741 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
11742 if test $gcc_cv_as_powerpc_mfcrf = yes; then
11744 cat >>confdefs.h
<<\_ACEOF
11745 #define HAVE_AS_MFCRF 1
11752 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
11753 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
11754 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 gcc_cv_as_mips_explicit_relocs
=no
11758 if test $in_tree_gas = yes; then
11759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
11760 then gcc_cv_as_mips_explicit_relocs
=yes
11762 elif test x
$gcc_cv_as != x
; then
11763 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
11764 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }
11771 gcc_cv_as_mips_explicit_relocs
=yes
11773 echo "configure: failed program was" >&5
11776 rm -f conftest.o conftest.s
11779 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
11780 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
11781 if test $gcc_cv_as_mips_explicit_relocs = yes; then
11782 if test x
$target_cpu_default = x
11783 then target_cpu_default
=MASK_EXPLICIT_RELOCS
11784 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
11788 if test x
$gas_flag = xyes \
11789 ||
test x
"$host" != x
"$build" \
11790 ||
test ! -x "$gcc_cv_as" \
11791 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
11794 echo "*** This configuration requires the GNU assembler" >&2
11799 # ??? Not all targets support dwarf2 debug_line, even within a version
11800 # of gas. Moreover, we need to emit a valid instruction to trigger any
11801 # info to the output file. So, as supported targets are added to gas 2.11,
11802 # add some instruction here to (also) show we expect this might work.
11803 # ??? Once 2.11 is released, probably need to add first known working
11804 # version to the per-target configury.
11806 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
11807 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
11808 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
11811 ia64
*-*-* | s390
*-*-*)
11818 if test x
"$insn" != x
; then
11820 .file 1 \"conftest.s\"
11823 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
11824 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
11825 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 gcc_cv_as_dwarf2_debug_line
=no
11829 if test $in_tree_gas = yes; then
11830 if test $in_tree_gas_is_elf = yes \
11831 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11832 then gcc_cv_as_dwarf2_debug_line
=yes
11834 elif test x
$gcc_cv_as != x
; then
11835 echo "$conftest_s" > conftest.s
11836 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; }
11843 # ??? This fails with non-gnu grep. Maybe use objdump?
11844 if grep debug_line conftest.o
> /dev
/null
2>&1; then
11845 gcc_cv_as_dwarf2_debug_line
=yes
11848 echo "configure: failed program was" >&5
11851 rm -f conftest.o conftest.s
11854 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
11855 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
11858 # The .debug_line file table must be in the exact order that
11859 # we specified the files, since these indices are also used
11860 # by DW_AT_decl_file. Approximate this test by testing if
11861 # the assembler bitches if the same index is assigned twice.
11862 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
11863 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
11864 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 gcc_cv_as_dwarf2_file_buggy
=no
11868 if test x
$gcc_cv_as != x
; then
11869 echo ' .file 1 "foo.s"
11870 .file 1 "bar.s"' > conftest.s
11871 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }
11878 gcc_cv_as_dwarf2_file_buggy
=yes
11880 echo "configure: failed program was" >&5
11883 rm -f conftest.o conftest.s
11886 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
11887 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
11890 if test $gcc_cv_as_dwarf2_debug_line = yes \
11891 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
11893 cat >>confdefs.h
<<\_ACEOF
11894 #define HAVE_AS_DWARF2_DEBUG_LINE 1
11899 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
11900 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
11901 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 gcc_cv_as_gdwarf2_flag
=no
11905 if test $in_tree_gas = yes; then
11906 if test $in_tree_gas_is_elf = yes \
11907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11908 then gcc_cv_as_gdwarf2_flag
=yes
11910 elif test x
$gcc_cv_as != x
; then
11911 echo "$insn" > conftest.s
11912 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; }
11919 gcc_cv_as_gdwarf2_flag
=yes
11921 echo "configure: failed program was" >&5
11924 rm -f conftest.o conftest.s
11927 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
11928 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
11929 if test $gcc_cv_as_gdwarf2_flag = yes; then
11931 cat >>confdefs.h
<<\_ACEOF
11932 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
11937 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
11938 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
11939 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
11940 echo $ECHO_N "(cached) $ECHO_C" >&6
11942 gcc_cv_as_gstabs_flag
=no
11943 if test $in_tree_gas = yes; then
11944 if test $in_tree_gas_is_elf = yes \
11945 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
11946 then gcc_cv_as_gstabs_flag
=yes
11948 elif test x
$gcc_cv_as != x
; then
11949 echo "$insn" > conftest.s
11950 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; }
11957 # The native Solaris 9/Intel assembler doesn't understand --gstabs
11958 # and warns about it, but still exits successfully. So check for
11960 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }
11967 else gcc_cv_as_gstabs_flag
=yes
11970 echo "configure: failed program was" >&5
11973 rm -f conftest.o conftest.s
11976 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
11977 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
11978 if test $gcc_cv_as_gstabs_flag = yes; then
11980 cat >>confdefs.h
<<\_ACEOF
11981 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
11987 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
11988 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
11989 gcc_cv_ld_ro_rw_mix
=unknown
11990 if test $in_tree_ld = yes ; then
11991 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 \
11992 && test $in_tree_ld_is_elf = yes; then
11993 gcc_cv_ld_ro_rw_mix
=read-write
11995 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
11996 echo '.section myfoosect, "a"' > conftest1.s
11997 echo '.section myfoosect, "aw"' > conftest2.s
11998 echo '.byte 1' >> conftest2.s
11999 echo '.section myfoosect, "a"' > conftest3.s
12000 echo '.byte 0' >> conftest3.s
12001 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
12002 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
12003 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
12004 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
12005 conftest2.o conftest3.o
> /dev
/null
2>&1; then
12006 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
12007 | sed -e '/myfoosect/!d' -e N`
12008 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
12009 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
12010 gcc_cv_ld_ro_rw_mix
=read-only
12012 gcc_cv_ld_ro_rw_mix
=read-write
12016 rm -f conftest.
* conftest
[123].
*
12018 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
12020 cat >>confdefs.h
<<\_ACEOF
12021 #define HAVE_LD_RO_RW_SECTION_MIXING 1
12025 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
12026 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
12028 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
12029 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
12030 gcc_cv_ld_eh_frame_hdr
=no
12031 if test $in_tree_ld = yes ; then
12032 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 \
12033 && test $in_tree_ld_is_elf = yes; then
12034 gcc_cv_ld_eh_frame_hdr
=yes
12036 elif test x
$gcc_cv_ld != x
; then
12037 # Check if linker supports --eh-frame-hdr option
12038 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
12039 gcc_cv_ld_eh_frame_hdr
=yes
12042 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
12044 cat >>confdefs.h
<<\_ACEOF
12045 #define HAVE_LD_EH_FRAME_HDR 1
12049 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
12050 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
12052 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
12053 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
12055 if test $in_tree_ld = yes ; then
12056 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
12057 && test $in_tree_ld_is_elf = yes; then
12060 elif test x
$gcc_cv_ld != x
; then
12061 # Check if linker supports -pie option
12062 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
12066 if test x
"$gcc_cv_ld_pie" = xyes
; then
12068 cat >>confdefs.h
<<\_ACEOF
12069 #define HAVE_LD_PIE 1
12073 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
12074 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
12080 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12081 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12082 if test "${gcc_cv_ld_as_needed+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 gcc_cv_ld_as_needed
=no
12086 if test $in_tree_ld = yes ; then
12087 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
12088 && test $in_tree_ld_is_elf = yes; then
12089 gcc_cv_ld_as_needed
=yes
12091 elif test x
$gcc_cv_ld != x
; then
12092 # Check if linker supports --as-needed and --no-as-needed options
12093 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
12094 gcc_cv_ld_as_needed
=yes
12099 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
12100 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
12101 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
12103 cat >>confdefs.h
<<\_ACEOF
12104 #define HAVE_LD_AS_NEEDED 1
12110 powerpc64
*-*-linux*)
12111 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
12112 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
12113 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 gcc_cv_ld_no_dot_syms
=no
12117 if test $in_tree_ld = yes ; then
12118 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
12119 gcc_cv_ld_no_dot_syms
=yes
12121 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
12122 cat > conftest1.s
<<EOF
12126 cat > conftest2.s
<<EOF
12127 .section ".opd","aw"
12130 .type foo,@function
12132 .quad .LEfoo,.TOC.@tocbase,0
12138 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
12139 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
12140 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
12141 gcc_cv_ld_no_dot_syms
=yes
12143 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
12147 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
12148 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
12149 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
12151 cat >>confdefs.h
<<\_ACEOF
12152 #define HAVE_LD_NO_DOT_SYMS 1
12159 if test x
$with_sysroot = x
&& test x
$host = x
$target \
12160 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
12162 cat >>confdefs.h
<<_ACEOF
12163 #define PREFIX_INCLUDE_DIR "$prefix/include"
12168 # Find out what GC implementation we want, or may, use.
12170 # Check whether --with-gc or --without-gc was given.
12171 if test "${with_gc+set}" = set; then
12178 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
12179 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
12180 { (exit 1); exit 1; }; }
12187 echo "Using $GGC for garbage collection."
12189 # Use the system's zlib library.
12191 zlibinc
="-I\$(srcdir)/../zlib"
12193 # Check whether --with-system-zlib or --without-system-zlib was given.
12194 if test "${with_system_zlib+set}" = set; then
12195 withval
="$with_system_zlib"
12204 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12205 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
12206 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
12207 if test "${enable_maintainer_mode+set}" = set; then
12208 enableval
="$enable_maintainer_mode"
12209 maintainer_mode
=$enableval
12214 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
12215 echo "${ECHO_T}$maintainer_mode" >&6
12217 if test "$maintainer_mode" = "yes"; then
12223 echo "$as_me:$LINENO: checking whether to use libbanshee for points-to alias analysis" >&5
12224 echo $ECHO_N "checking whether to use libbanshee for points-to alias analysis... $ECHO_C" >&6
12226 # Check whether --with-libbanshee or --without-libbanshee was given.
12227 if test "${with_libbanshee+set}" = set; then
12228 withval
="$with_libbanshee"
12229 libbanshee
="$with_libbanshee"
12234 if test x
"$libbanshee" = xyes
; then
12235 BANSHEELIB
="../libbanshee/points-to/libandersen.a ../libbanshee/engine/libbansheeengine.a ../libbanshee/libcompat/libbansheecompat.a "
12236 BANSHEEINC
="-I\$(srcdir)/../libbanshee/libcompat -I\$(srcdir)/../libbanshee -I\$(srcdir)/../libbanshee/points-to"
12237 ANDER
="tree-alias-ander.o"
12239 cat >>confdefs.h
<<\_ACEOF
12240 #define HAVE_BANSHEE 1
12248 echo "$as_me:$LINENO: result: $with_libbanshee" >&5
12249 echo "${ECHO_T}$with_libbanshee" >&6
12259 # Make empty files to contain the specs and options for each language.
12260 # Then add #include lines to for a compiler that has specs and/or options.
12265 for subdir
in .
$subdirs
12267 if test -f $srcdir/$subdir/lang.opt
; then
12268 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
12270 if test -f $srcdir/$subdir/lang-specs.h
; then
12271 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
12273 if test -f $srcdir/$subdir/$subdir-tree.def
; then
12274 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
12278 # These (without "all_") are set in each config-lang.in.
12279 # `language' must be a single word so is spelled singularly.
12281 all_boot_languages
=
12284 all_outputs
='Makefile fixinc/Makefile gccbug mklibgcc mkheaders libada-mk'
12285 # List of language makefile fragments.
12286 all_lang_makefrags
=
12287 # List of language subdirectory makefiles. Deprecated.
12288 all_lang_makefiles
=
12289 # Files for gengtype
12290 all_gtfiles
="$target_gtfiles"
12291 # Files for gengtype with language
12292 all_gtfiles_files_langs
=
12293 all_gtfiles_files_files
=
12295 # Add the language fragments.
12296 # Languages are added via two mechanisms. Some information must be
12297 # recorded in makefile variables, these are defined in config-lang.in.
12298 # We accumulate them and plug them into the main Makefile.
12299 # The other mechanism is a set of hooks for each of the main targets
12300 # like `clean', `install', etc.
12302 language_hooks
="Make-hooks"
12312 .
${srcdir}/$s/config-lang.
in
12313 if test "x$language" = x
12315 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
12318 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
12319 if test -f ${srcdir}/$s/Makefile.
in
12320 then all_lang_makefiles
="$s/Makefile"
12322 all_languages
="$all_languages $language"
12323 if test "x$boot_language" = xyes
12325 all_boot_languages
="$all_boot_languages $language"
12327 all_compilers
="$all_compilers $compilers"
12328 all_stagestuff
="$all_stagestuff $stagestuff"
12329 all_outputs
="$all_outputs $outputs"
12330 all_gtfiles
="$all_gtfiles $gtfiles"
12333 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12334 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12338 # Pick up gtfiles for c
12341 .
${srcdir}/c-config-lang.
in
12342 all_gtfiles
="$all_gtfiles $gtfiles"
12345 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
12346 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
12350 for language
in $all_languages
12352 check_languages
="$check_languages check-$language"
12355 # We link each language in with a set of hooks, reached indirectly via
12360 target_list
="all.build all.cross start.encap rest.encap tags \
12361 install-normal install-common install-man \
12362 uninstall info man srcextra srcman srcinfo \
12363 mostlyclean clean distclean maintainer-clean \
12364 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
12365 for t
in $target_list
12368 for lang
in $all_languages
12372 echo "lang.$t: $x" >> Make-hooks
12381 echo "dir ." > .gdbinit
12382 echo "dir ${srcdir}" >> .gdbinit
12383 if test x
$gdb_needs_out_file_path = xyes
12385 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
12387 if test "x$subdirs" != x
; then
12390 echo "dir ${srcdir}/$s" >> .gdbinit
12393 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
12395 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
12396 # absolute path for gcc_tooldir based on inserting the number of up-directory
12397 # movements required to get from $(exec_prefix) to $(prefix) into the basic
12398 # $(libsubdir)/@(unlibsubdir) based path.
12399 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
12400 # make and thus we'd get different behavior depending on where we built the
12402 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
12403 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
12405 # An explanation of the sed strings:
12406 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
12407 # -e 's|/$||' match a trailing forward slash and eliminates it
12408 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
12409 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
12411 # (*) Note this pattern overwrites the first character of the string
12412 # with a forward slash if one is not already present. This is not a
12413 # problem because the exact names of the sub-directories concerned is
12414 # unimportant, just the number of them matters.
12416 # The practical upshot of these patterns is like this:
12418 # prefix exec_prefix result
12419 # ------ ----------- ------
12420 # /foo /foo/bar ../
12421 # /foo/ /foo/bar ../
12422 # /foo /foo/bar/ ../
12423 # /foo/ /foo/bar/ ../
12424 # /foo /foo/bar/ugg ../../
12427 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
12432 # Find a directory in which to install a shared libgcc.
12434 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
12435 if test "${enable_version_specific_runtime_libs+set}" = set; then
12436 enableval
="$enable_version_specific_runtime_libs"
12441 # Check whether --with-slibdir or --without-slibdir was given.
12442 if test "${with_slibdir+set}" = set; then
12443 withval
="$with_slibdir"
12444 slibdir
="$with_slibdir"
12446 if test "${enable_version_specific_runtime_libs+set}" = set; then
12447 slibdir
='$(libsubdir)'
12448 elif test "$host" != "$target"; then
12449 slibdir
='$(build_tooldir)/lib'
12451 slibdir
='$(libdir)'
12456 objdir
=`${PWDCMD-pwd}`
12459 # Substitute configuration variables
12527 # If it doesn't already exist, create document directory
12528 echo "checking for the document directory." 1>&2
12529 if test -d doc
; then
12536 if test x
${build} = x
${host} ; then
12537 if test x
${host} = x
${target} ; then
12538 echo "Links are now set up to build a native compiler for ${target}." 1>&2
12540 echo "Links are now set up to build a cross-compiler" 1>&2
12541 echo " from ${host} to ${target}." 1>&2
12544 if test x
${host} = x
${target} ; then
12545 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
12546 echo " for ${target}." 1>&2
12548 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
12549 echo " from ${host} to ${target}." 1>&2
12556 # Configure the subdirectories
12557 # AC_CONFIG_SUBDIRS($subdirs)
12559 # Create the Makefile
12560 # and configure language subdirectories
12561 ac_config_files
="$ac_config_files $all_outputs"
12564 ac_config_commands
="$ac_config_commands default"
12566 cat >confcache
<<\_ACEOF
12567 # This file is a shell script that caches the results of configure
12568 # tests run on this system so they can be shared between configure
12569 # scripts and configure runs, see configure's option --config-cache.
12570 # It is not useful on other systems. If it contains results you don't
12571 # want to keep, you may remove or edit it.
12573 # config.status only pays attention to the cache file if you give it
12574 # the --recheck option to rerun configure.
12576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12578 # following values.
12582 # The following way of writing the cache mishandles newlines in values,
12583 # but we know of no workaround that is simple, portable, and efficient.
12584 # So, don't put newlines in cache variables' values.
12585 # Ultrix sh set writes to stderr and can't be redirected directly,
12586 # and sets the high bit in the cache file unless we assign to the vars.
12589 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12591 # `set' does not quote correctly, so add quotes (double-quote
12592 # substitution turns \\\\ into \\, and sed turns \\ into \).
12595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12598 # `set' quotes correctly as required by POSIX, so do not add quotes.
12600 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12609 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12611 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
12612 if test -w $cache_file; then
12613 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12614 cat confcache
>$cache_file
12616 echo "not updating unwritable cache $cache_file"
12621 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12622 # Let make expand exec_prefix.
12623 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12625 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12626 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12627 # trailing colons and then remove the whole line if VPATH becomes empty
12628 # (actually we leave an empty line to preserve line numbers).
12629 if test "x$srcdir" = x.
; then
12630 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
12631 s/:*\$(srcdir):*/:/;
12632 s/:*\${srcdir}:*/:/;
12634 s/^\([^=]*=[ ]*\):*/\1/;
12640 DEFS
=-DHAVE_CONFIG_H
12644 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12645 # 1. Remove the extension, and $U if already installed.
12646 ac_i
=`echo "$ac_i" |
12647 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12649 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
12650 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
12652 LIBOBJS
=$ac_libobjs
12654 LTLIBOBJS
=$ac_ltlibobjs
12658 : ${CONFIG_STATUS=./config.status}
12659 ac_clean_files_save
=$ac_clean_files
12660 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12661 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12662 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12663 cat >$CONFIG_STATUS <<_ACEOF
12665 # Generated by $as_me.
12666 # Run this file to recreate the current configuration.
12667 # Compiler output produced by configure, useful for debugging
12668 # configure, is in config.log if it exists.
12671 ac_cs_recheck=false
12673 SHELL=\${CONFIG_SHELL-$SHELL}
12676 cat >>$CONFIG_STATUS <<\_ACEOF
12677 ## --------------------- ##
12678 ## M4sh Initialization. ##
12679 ## --------------------- ##
12681 # Be Bourne compatible
12682 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12685 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12686 # is contrary to our usage. Disable this feature.
12687 alias -g '${1+"$@"}'='"$@"'
12688 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
12691 DUALCASE
=1; export DUALCASE
# for MKS sh
12693 # Support unset when possible.
12694 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
12701 # Work around bugs in pre-3.0 UWIN ksh.
12702 $as_unset ENV MAIL MAILPATH
12709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12711 LC_TELEPHONE LC_TIME
12713 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12714 eval $as_var=C
; export $as_var
12720 # Required to use basename.
12721 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12727 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
12728 as_basename
=basename
12734 # Name of the executable.
12735 as_me
=`$as_basename "$0" ||
12736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12737 X"$0" : 'X\(//\)$' \| \
12738 X"$0" : 'X\(/\)$' \| \
12739 . : '\(.\)' 2>/dev/null ||
12741 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12742 /^X\/\(\/\/\)$/{ s//\1/; q; }
12743 /^X\/\(\/\).*/{ s//\1/; q; }
12747 # PATH needs CR, and LINENO needs CR and PATH.
12748 # Avoid depending upon Character Ranges.
12749 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12750 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12751 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12752 as_cr_digits
='0123456789'
12753 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12755 # The user is always right.
12756 if test "${PATH_SEPARATOR+set}" != set; then
12757 echo "#! /bin/sh" >conf$$.sh
12758 echo "exit 0" >>conf$$.sh
12760 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
12769 as_lineno_1
=$LINENO
12770 as_lineno_2
=$LINENO
12771 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
12772 test "x$as_lineno_1" != "x$as_lineno_2" &&
12773 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
12774 # Find who we are. Look in the path if we contain no path at all
12777 *[\\/]* ) as_myself
=$0 ;;
12778 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12779 for as_dir
in $PATH
12782 test -z "$as_dir" && as_dir
=.
12783 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
12788 # We did not find ourselves, most probably we were run as `sh COMMAND'
12789 # in which case we are not to be found in the path.
12790 if test "x$as_myself" = x
; then
12793 if test ! -f "$as_myself"; then
12794 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12795 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12796 { (exit 1); exit 1; }; }
12798 case $CONFIG_SHELL in
12800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12801 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
12804 test -z "$as_dir" && as_dir
=.
12805 for as_base
in sh bash ksh sh5
; do
12808 if ("$as_dir/$as_base" -c '
12809 as_lineno_1=$LINENO
12810 as_lineno_2=$LINENO
12811 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12812 test "x$as_lineno_1" != "x$as_lineno_2" &&
12813 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
12814 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
12815 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
12816 CONFIG_SHELL
=$as_dir/$as_base
12817 export CONFIG_SHELL
12818 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12826 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12827 # uniformly replaced by the line number. The first 'sed' inserts a
12828 # line-number line before each line; the second 'sed' does the real
12829 # work. The second script uses 'N' to pair each line-number line
12830 # with the numbered line, and appends trailing '-' during
12831 # substitution so that $LINENO is not a special case at line end.
12832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12833 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12834 sed '=' <$as_myself |
12839 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12842 s,^['$as_cr_digits']*\n,,
12843 ' >$as_me.lineno
&&
12844 chmod +x
$as_me.lineno ||
12845 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12846 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12847 { (exit 1); exit 1; }; }
12849 # Don't try to exec as it changes $[0], causing all sort of problems
12850 # (the dirname of $[0] is not the place where we might find the
12851 # original and so on. Autoconf is especially sensible to this).
12853 # Exit status is that of the last command.
12858 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12859 *c
*,-n*) ECHO_N
= ECHO_C
='
12861 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
12862 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
12865 if expr a
: '\(a\)' >/dev
/null
2>&1; then
12871 rm -f conf$$ conf$$.exe conf$$.
file
12873 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12874 # We could just check for DJGPP; but this test a) works b) is more generic
12875 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12876 if test -f conf$$.exe
; then
12877 # Don't use ln at all; we don't have any links
12882 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12887 rm -f conf$$ conf$$.exe conf$$.
file
12889 if mkdir
-p .
2>/dev
/null
; then
12892 test -d .
/-p && rmdir .
/-p
12896 as_executable_p
="test -f"
12898 # Sed expression to map a string onto a valid CPP name.
12899 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12901 # Sed expression to map a string onto a valid variable name.
12902 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12906 # We need space, tab and new line, in precisely that order.
12916 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12917 # report actual input values of CONFIG_FILES etc. instead of their
12918 # values after options handling. Logging --version etc. is OK.
12922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12923 ## Running $as_me. ##
12928 This file was extended by $as_me, which was
12929 generated by GNU Autoconf 2.59. Invocation command line was
12931 CONFIG_FILES = $CONFIG_FILES
12932 CONFIG_HEADERS = $CONFIG_HEADERS
12933 CONFIG_LINKS = $CONFIG_LINKS
12934 CONFIG_COMMANDS = $CONFIG_COMMANDS
12938 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12942 # Files that config.status was made for.
12943 if test -n "$ac_config_files"; then
12944 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12947 if test -n "$ac_config_headers"; then
12948 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12951 if test -n "$ac_config_links"; then
12952 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12955 if test -n "$ac_config_commands"; then
12956 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12959 cat >>$CONFIG_STATUS <<\_ACEOF
12962 \`$as_me' instantiates files from templates according to the
12963 current configuration.
12965 Usage: $0 [OPTIONS] [FILE]...
12967 -h, --help print this help, then exit
12968 -V, --version print version number, then exit
12969 -q, --quiet do not print progress messages
12970 -d, --debug don't remove temporary files
12971 --recheck update $as_me by reconfiguring in the same conditions
12972 --file=FILE[:TEMPLATE]
12973 instantiate the configuration file FILE
12974 --header=FILE[:TEMPLATE]
12975 instantiate the configuration header FILE
12977 Configuration files:
12980 Configuration headers:
12983 Configuration commands:
12986 Report bugs to <bug-autoconf@gnu.org>."
12989 cat >>$CONFIG_STATUS <<_ACEOF
12992 configured by $0, generated by GNU Autoconf 2.59,
12993 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12995 Copyright (C) 2003 Free Software Foundation, Inc.
12996 This config.status script is free software; the Free Software Foundation
12997 gives unlimited permission to copy, distribute and modify it."
13001 cat >>$CONFIG_STATUS <<\_ACEOF
13002 # If no file are specified by the user, then we need to provide default
13003 # value. By we need to know if files were specified by the user.
13009 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
13010 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
13018 *) # This is not an option, so the user has probably given explicit
13021 ac_need_defaults
=false
;;
13025 # Handling of the options.
13027 cat >>$CONFIG_STATUS <<\_ACEOF
13028 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13030 --version |
--vers* |
-V )
13031 echo "$ac_cs_version"; exit 0 ;;
13033 # Conflict between --help and --header
13034 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13035 Try \`$0 --help' for more information." >&5
13036 echo "$as_me: error: ambiguous option: $1
13037 Try \`$0 --help' for more information." >&2;}
13038 { (exit 1); exit 1; }; };;
13039 --help |
--hel |
-h )
13040 echo "$ac_cs_usage"; exit 0 ;;
13041 --debug |
--d* |
-d )
13043 --file |
--fil |
--fi |
--f )
13045 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
13046 ac_need_defaults
=false
;;
13047 --header |
--heade |
--head |
--hea )
13049 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
13050 ac_need_defaults
=false
;;
13051 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13052 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13055 # This is an error.
13056 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13057 Try \`$0 --help' for more information." >&5
13058 echo "$as_me: error: unrecognized option: $1
13059 Try \`$0 --help' for more information." >&2;}
13060 { (exit 1); exit 1; }; } ;;
13062 *) ac_config_targets
="$ac_config_targets $1" ;;
13068 ac_configure_extra_args
=
13070 if $ac_cs_silent; then
13072 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13076 cat >>$CONFIG_STATUS <<_ACEOF
13077 if \$ac_cs_recheck; then
13078 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13079 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13084 cat >>$CONFIG_STATUS <<_ACEOF
13086 # INIT-COMMANDS section.
13090 symbolic_link='$symbolic_link'
13097 cat >>$CONFIG_STATUS <<\_ACEOF
13098 for ac_config_target
in $ac_config_targets
13100 case "$ac_config_target" in
13101 # Handling of arguments.
13102 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
13103 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
13104 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
13105 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13106 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13107 { (exit 1); exit 1; }; };;
13111 # If the user did not use the arguments to specify the items to instantiate,
13112 # then the envvar interface is used. Set only those that are not.
13113 # We use the long form for the default assignment because of an extremely
13114 # bizarre bug on SunOS 4.1.3.
13115 if $ac_need_defaults; then
13116 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13117 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13118 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13121 # Have a temporary directory for convenience. Make it in the build tree
13122 # simply because there is no reason to put it here, and in addition,
13123 # creating and moving files from /tmp can sometimes cause problems.
13124 # Create a temporary directory, and hook for its removal unless debugging.
13127 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13128 trap '{ (exit 1); exit 1; }' 1 2 13 15
13131 # Create a (secure) tmp directory for tmp files.
13134 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13135 test -n "$tmp" && test -d "$tmp"
13138 tmp
=.
/confstat$$
-$RANDOM
13139 (umask 077 && mkdir
$tmp)
13142 echo "$me: cannot create a temporary directory in ." >&2
13143 { (exit 1); exit 1; }
13148 cat >>$CONFIG_STATUS <<_ACEOF
13151 # CONFIG_FILES section.
13154 # No need to generate the scripts if there are no CONFIG_FILES.
13155 # This happens for instance when ./config.status config.h
13156 if test -n "\$CONFIG_FILES"; then
13157 # Protect against being on the right side of a sed subst in config.status.
13158 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13159 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13160 s,@SHELL@,$SHELL,;t t
13161 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13167 s,@exec_prefix@,$exec_prefix,;t t
13168 s,@prefix@,$prefix,;t t
13169 s,@program_transform_name@,$program_transform_name,;t t
13170 s,@bindir@,$bindir,;t t
13171 s,@sbindir@,$sbindir,;t t
13172 s,@libexecdir@,$libexecdir,;t t
13173 s,@datadir@,$datadir,;t t
13174 s,@sysconfdir@,$sysconfdir,;t t
13175 s,@sharedstatedir@,$sharedstatedir,;t t
13176 s,@localstatedir@,$localstatedir,;t t
13177 s,@libdir@,$libdir,;t t
13178 s,@includedir@,$includedir,;t t
13179 s,@oldincludedir@,$oldincludedir,;t t
13180 s,@infodir@,$infodir,;t t
13181 s,@mandir@,$mandir,;t t
13182 s,@build_alias@,$build_alias,;t t
13183 s,@host_alias@,$host_alias,;t t
13184 s,@target_alias@,$target_alias,;t t
13185 s,@DEFS@,$DEFS,;t t
13186 s,@ECHO_C@,$ECHO_C,;t t
13187 s,@ECHO_N@,$ECHO_N,;t t
13188 s,@ECHO_T@,$ECHO_T,;t t
13189 s,@LIBS@,$LIBS,;t t
13190 s,@build@,$build,;t t
13191 s,@build_cpu@,$build_cpu,;t t
13192 s,@build_vendor@,$build_vendor,;t t
13193 s,@build_os@,$build_os,;t t
13194 s,@host@,$host,;t t
13195 s,@host_cpu@,$host_cpu,;t t
13196 s,@host_vendor@,$host_vendor,;t t
13197 s,@host_os@,$host_os,;t t
13198 s,@target@,$target,;t t
13199 s,@target_cpu@,$target_cpu,;t t
13200 s,@target_vendor@,$target_vendor,;t t
13201 s,@target_os@,$target_os,;t t
13202 s,@target_noncanonical@,$target_noncanonical,;t t
13203 s,@build_subdir@,$build_subdir,;t t
13204 s,@host_subdir@,$host_subdir,;t t
13205 s,@target_subdir@,$target_subdir,;t t
13206 s,@GENINSRC@,$GENINSRC,;t t
13208 s,@CFLAGS@,$CFLAGS,;t t
13209 s,@LDFLAGS@,$LDFLAGS,;t t
13210 s,@CPPFLAGS@,$CPPFLAGS,;t t
13211 s,@ac_ct_CC@,$ac_ct_CC,;t t
13212 s,@EXEEXT@,$EXEEXT,;t t
13213 s,@OBJEXT@,$OBJEXT,;t t
13214 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
13215 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
13217 s,@strict1_warn@,$strict1_warn,;t t
13218 s,@warn_cflags@,$warn_cflags,;t t
13219 s,@WERROR@,$WERROR,;t t
13220 s,@nocommon_flag@,$nocommon_flag,;t t
13221 s,@TREEBROWSER@,$TREEBROWSER,;t t
13222 s,@EGREP@,$EGREP,;t t
13223 s,@valgrind_path@,$valgrind_path,;t t
13224 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
13225 s,@valgrind_command@,$valgrind_command,;t t
13226 s,@coverage_flags@,$coverage_flags,;t t
13227 s,@enable_multilib@,$enable_multilib,;t t
13228 s,@enable_shared@,$enable_shared,;t t
13229 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
13230 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
13231 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
13232 s,@onestep@,$onestep,;t t
13233 s,@SET_MAKE@,$SET_MAKE,;t t
13235 s,@LN_S@,$LN_S,;t t
13237 s,@RANLIB@,$RANLIB,;t t
13238 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13239 s,@ranlib_flags@,$ranlib_flags,;t t
13240 s,@INSTALL@,$INSTALL,;t t
13241 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13242 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13243 s,@make_compare_target@,$make_compare_target,;t t
13244 s,@have_mktemp_command@,$have_mktemp_command,;t t
13245 s,@MAKEINFO@,$MAKEINFO,;t t
13246 s,@BUILD_INFO@,$BUILD_INFO,;t t
13247 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
13248 s,@FLEX@,$FLEX,;t t
13249 s,@BISON@,$BISON,;t t
13252 s,@stage1_cflags@,$stage1_cflags,;t t
13253 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
13254 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
13255 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
13256 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
13257 s,@LIBICONV@,$LIBICONV,;t t
13258 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
13259 s,@manext@,$manext,;t t
13260 s,@objext@,$objext,;t t
13261 s,@gthread_flags@,$gthread_flags,;t t
13262 s,@extra_modes_file@,$extra_modes_file,;t t
13263 s,@FORBUILD@,$FORBUILD,;t t
13264 s,@PACKAGE@,$PACKAGE,;t t
13265 s,@VERSION@,$VERSION,;t t
13266 s,@USE_NLS@,$USE_NLS,;t t
13267 s,@LIBINTL@,$LIBINTL,;t t
13268 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13269 s,@INCINTL@,$INCINTL,;t t
13270 s,@XGETTEXT@,$XGETTEXT,;t t
13271 s,@GMSGFMT@,$GMSGFMT,;t t
13272 s,@POSUB@,$POSUB,;t t
13273 s,@CATALOGS@,$CATALOGS,;t t
13274 s,@CROSS@,$CROSS,;t t
13276 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
13277 s,@inhibit_libc@,$inhibit_libc,;t t
13278 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13279 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
13280 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
13281 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
13282 s,@collect2@,$collect2,;t t
13283 s,@libgcc_visibility@,$libgcc_visibility,;t t
13285 s,@zlibdir@,$zlibdir,;t t
13286 s,@zlibinc@,$zlibinc,;t t
13287 s,@MAINT@,$MAINT,;t t
13288 s,@ANDER@,$ANDER,;t t
13289 s,@BANSHEEINC@,$BANSHEEINC,;t t
13290 s,@BANSHEELIB@,$BANSHEELIB,;t t
13291 s,@gcc_tooldir@,$gcc_tooldir,;t t
13292 s,@dollar@,$dollar,;t t
13293 s,@slibdir@,$slibdir,;t t
13294 s,@objdir@,$objdir,;t t
13295 s,@subdirs@,$subdirs,;t t
13296 s,@srcdir@,$srcdir,;t t
13297 s,@all_boot_languages@,$all_boot_languages,;t t
13298 s,@all_compilers@,$all_compilers,;t t
13299 s,@all_gtfiles@,$all_gtfiles,;t t
13300 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
13301 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
13302 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
13303 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
13304 s,@all_languages@,$all_languages,;t t
13305 s,@all_stagestuff@,$all_stagestuff,;t t
13306 s,@build_exeext@,$build_exeext,;t t
13307 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
13308 s,@build_xm_file_list@,$build_xm_file_list,;t t
13309 s,@build_xm_include_list@,$build_xm_include_list,;t t
13310 s,@build_xm_defines@,$build_xm_defines,;t t
13311 s,@check_languages@,$check_languages,;t t
13312 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
13313 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
13314 s,@cpp_install_dir@,$cpp_install_dir,;t t
13315 s,@xmake_file@,$xmake_file,;t t
13316 s,@tmake_file@,$tmake_file,;t t
13317 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
13318 s,@extra_headers_list@,$extra_headers_list,;t t
13319 s,@extra_objs@,$extra_objs,;t t
13320 s,@extra_parts@,$extra_parts,;t t
13321 s,@extra_passes@,$extra_passes,;t t
13322 s,@extra_programs@,$extra_programs,;t t
13323 s,@float_h_file@,$float_h_file,;t t
13324 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
13325 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
13326 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
13327 s,@gcc_version@,$gcc_version,;t t
13328 s,@gcc_version_full@,$gcc_version_full,;t t
13329 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
13330 s,@host_exeext@,$host_exeext,;t t
13331 s,@host_xm_file_list@,$host_xm_file_list,;t t
13332 s,@host_xm_include_list@,$host_xm_include_list,;t t
13333 s,@host_xm_defines@,$host_xm_defines,;t t
13334 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
13335 s,@install@,$install,;t t
13336 s,@lang_opt_files@,$lang_opt_files,;t t
13337 s,@lang_specs_files@,$lang_specs_files,;t t
13338 s,@lang_tree_files@,$lang_tree_files,;t t
13339 s,@local_prefix@,$local_prefix,;t t
13340 s,@md_file@,$md_file,;t t
13341 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
13342 s,@out_file@,$out_file,;t t
13343 s,@out_object_file@,$out_object_file,;t t
13344 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
13345 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
13346 s,@symbolic_link@,$symbolic_link,;t t
13347 s,@thread_file@,$thread_file,;t t
13348 s,@tm_file_list@,$tm_file_list,;t t
13349 s,@tm_include_list@,$tm_include_list,;t t
13350 s,@tm_defines@,$tm_defines,;t t
13351 s,@tm_p_file_list@,$tm_p_file_list,;t t
13352 s,@tm_p_include_list@,$tm_p_include_list,;t t
13353 s,@xm_file_list@,$xm_file_list,;t t
13354 s,@xm_include_list@,$xm_include_list,;t t
13355 s,@xm_defines@,$xm_defines,;t t
13356 s,@c_target_objs@,$c_target_objs,;t t
13357 s,@cxx_target_objs@,$cxx_target_objs,;t t
13358 s,@target_cpu_default@,$target_cpu_default,;t t
13359 s,@GMPLIBS@,$GMPLIBS,;t t
13360 s,@GMPINC@,$GMPINC,;t t
13361 s,@LIBOBJS@,$LIBOBJS,;t t
13362 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13363 /@language_hooks@/r $language_hooks
13364 s,@language_hooks@,,;t t
13369 cat >>$CONFIG_STATUS <<\_ACEOF
13370 # Split the substitutions into bite-sized pieces for seds with
13371 # small command number limits, like on Digital OSF/1 and HP-UX.
13372 ac_max_sed_lines
=48
13373 ac_sed_frag
=1 # Number of current file.
13374 ac_beg
=1 # First line for current file.
13375 ac_end
=$ac_max_sed_lines # Line after last line for current file.
13378 while $ac_more_lines; do
13379 if test $ac_beg -gt 1; then
13380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13382 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
13384 if test ! -s $tmp/subs.frag
; then
13385 ac_more_lines
=false
13387 # The purpose of the label and of the branching condition is to
13388 # speed up the sed processing (if there are no `@' at all, there
13389 # is no need to browse any of the substitutions).
13390 # These are the two extra sed commands mentioned above.
13392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
13393 if test -z "$ac_sed_cmds"; then
13394 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
13396 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13398 ac_sed_frag
=`expr $ac_sed_frag + 1`
13400 ac_end
=`expr $ac_end + $ac_max_sed_lines`
13403 if test -z "$ac_sed_cmds"; then
13406 fi # test -n "$CONFIG_FILES"
13409 cat >>$CONFIG_STATUS <<\_ACEOF
13410 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
13411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13413 - |
*:- |
*:-:* ) # input from stdin
13415 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13416 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13417 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13418 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13419 * ) ac_file_in
=$ac_file.
in ;;
13422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13423 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13424 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13425 X"$ac_file" : 'X\(//\)[^/]' \| \
13426 X"$ac_file" : 'X\(//\)$' \| \
13427 X"$ac_file" : 'X\(/\)' \| \
13428 . : '\(.\)' 2>/dev/null ||
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13431 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13432 /^X\(\/\/\)$/{ s//\1/; q; }
13433 /^X\(\/\).*/{ s//\1/; q; }
13435 { if $as_mkdir_p; then
13440 while test ! -d "$as_dir"; do
13441 as_dirs
="$as_dir $as_dirs"
13442 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13443 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13444 X"$as_dir" : 'X\(//\)[^/]' \| \
13445 X"$as_dir" : 'X\(//\)$' \| \
13446 X"$as_dir" : 'X\(/\)' \| \
13447 . : '\(.\)' 2>/dev/null ||
13449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13451 /^X\(\/\/\)$/{ s//\1/; q; }
13452 /^X\(\/\).*/{ s//\1/; q; }
13455 test ! -n "$as_dirs" || mkdir
$as_dirs
13456 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13457 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13458 { (exit 1); exit 1; }; }; }
13462 if test "$ac_dir" != .
; then
13463 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13464 # A "../" for each directory in $ac_dir_suffix.
13465 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13467 ac_dir_suffix
= ac_top_builddir
=
13471 .
) # No --srcdir option. We are building in place.
13473 if test -z "$ac_top_builddir"; then
13476 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13478 [\\/]* | ?
:[\\/]* ) # Absolute path.
13479 ac_srcdir
=$srcdir$ac_dir_suffix;
13480 ac_top_srcdir
=$srcdir ;;
13481 *) # Relative path.
13482 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13483 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13486 # Do not use `cd foo && pwd` to compute absolute paths, because
13487 # the directories may not exist.
13489 .
) ac_abs_builddir
="$ac_dir";;
13492 .
) ac_abs_builddir
=`pwd`;;
13493 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13494 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13497 case $ac_abs_builddir in
13498 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13500 case ${ac_top_builddir}.
in
13501 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13502 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13503 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13506 case $ac_abs_builddir in
13507 .
) ac_abs_srcdir
=$ac_srcdir;;
13510 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13511 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13512 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13515 case $ac_abs_builddir in
13516 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13518 case $ac_top_srcdir in
13519 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13520 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13521 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13527 if test x
"$ac_file" != x-
; then
13528 { echo "$as_me:$LINENO: creating $ac_file" >&5
13529 echo "$as_me: creating $ac_file" >&6;}
13532 # Let's still pretend it is `configure' which instantiates (i.e., don't
13533 # use $as_me), people would be surprised to read:
13534 # /* config.h. Generated by config.status. */
13535 if test x
"$ac_file" = x-
; then
13538 configure_input
="$ac_file. "
13540 configure_input
=$configure_input"Generated from `echo $ac_file_in |
13541 sed 's,.*/,,'` by configure."
13543 # First look for the input files in the build tree, otherwise in the
13545 ac_file_inputs
=`IFS=:
13546 for f in $ac_file_in; do
13548 -) echo $tmp/stdin ;;
13550 # Absolute (can't be DOS-style, as IFS=:)
13551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13552 echo "$as_me: error: cannot find input file: $f" >&2;}
13553 { (exit 1); exit 1; }; }
13556 if test -f "$f"; then
13559 elif test -f "$srcdir/$f"; then
13564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13565 echo "$as_me: error: cannot find input file: $f" >&2;}
13566 { (exit 1); exit 1; }; }
13569 done` ||
{ (exit 1); exit 1; }
13571 cat >>$CONFIG_STATUS <<_ACEOF
13575 cat >>$CONFIG_STATUS <<\_ACEOF
13577 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13578 s
,@configure_input@
,$configure_input,;t t
13579 s
,@srcdir@
,$ac_srcdir,;t t
13580 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
13581 s
,@top_srcdir@
,$ac_top_srcdir,;t t
13582 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
13583 s
,@builddir@
,$ac_builddir,;t t
13584 s
,@abs_builddir@
,$ac_abs_builddir,;t t
13585 s
,@top_builddir@
,$ac_top_builddir,;t t
13586 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
13587 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13589 if test x"$ac_file" != x-; then
13590 mv $tmp/out $ac_file
13598 cat >>$CONFIG_STATUS <<\_ACEOF
13601 # CONFIG_HEADER section.
13604 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
13605 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13607 # ac_d sets the value in "#define NAME VALUE" lines.
13608 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13609 ac_dB
='[ ].*$,\1#\2'
13612 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13613 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13614 ac_uB
='$,\1#\2define\3'
13618 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
13619 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13621 - |
*:- |
*:-:* ) # input from stdin
13623 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13624 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13625 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13626 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
13627 * ) ac_file_in
=$ac_file.
in ;;
13630 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
13631 echo "$as_me: creating $ac_file" >&6;}
13633 # First look for the input files in the build tree, otherwise in the
13635 ac_file_inputs
=`IFS=:
13636 for f in $ac_file_in; do
13638 -) echo $tmp/stdin ;;
13640 # Absolute (can't be DOS-style, as IFS=:)
13641 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13642 echo "$as_me: error: cannot find input file: $f" >&2;}
13643 { (exit 1); exit 1; }; }
13644 # Do quote $f, to prevent DOS paths from being IFS'd.
13647 if test -f "$f"; then
13650 elif test -f "$srcdir/$f"; then
13655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13656 echo "$as_me: error: cannot find input file: $f" >&2;}
13657 { (exit 1); exit 1; }; }
13660 done` ||
{ (exit 1); exit 1; }
13661 # Remove the trailing spaces.
13662 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13666 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13667 # `conftest.undefs', that substitutes the proper values into
13668 # config.h.in to produce config.h. The first handles `#define'
13669 # templates, and the second `#undef' templates.
13670 # And first: Protect against being on the right side of a sed subst in
13671 # config.status. Protect against being in an unquoted here document
13672 # in config.status.
13673 rm -f conftest.defines conftest.undefs
13674 # Using a here document instead of a string reduces the quoting nightmare.
13675 # Putting comments in sed scripts is not portable.
13677 # `end' is used to avoid that the second main sed command (meant for
13678 # 0-ary CPP macros) applies to n-ary macro definitions.
13679 # See the Autoconf documentation for `clear'.
13680 cat >confdef2sed.
sed <<\_ACEOF
13685 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13687 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13690 # If some macros were called several times there might be several times
13691 # the same #defines, which is useless. Nevertheless, we may not want to
13692 # sort them, since we want the *last* AC-DEFINE to be honored.
13693 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13694 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13695 rm -f confdef2sed.sed
13697 # This sed command replaces #undef with comments. This is necessary, for
13698 # example, in the case of _POSIX_SOURCE, which is predefined and required
13699 # on some systems where configure will not decide to define it.
13700 cat >>conftest.undefs <<\_ACEOF
13701 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13704 # Break up conftest.defines because some shells have a limit on the size
13705 # of here documents, and old seds have small limits too (100 cmds).
13706 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13707 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13708 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13709 echo ' :' >>$CONFIG_STATUS
13710 rm -f conftest.tail
13711 while grep . conftest.defines >/dev/null
13713 # Write a limited-size here document to $tmp/defines.sed.
13714 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13715 # Speed up: don't consider the non `#define' lines.
13716 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13717 # Work around the forget-to-reset-the-flag bug.
13718 echo 't clr' >>$CONFIG_STATUS
13719 echo ': clr' >>$CONFIG_STATUS
13720 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
13722 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13724 mv $tmp/out $tmp/in
13726 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
13727 rm -f conftest.defines
13728 mv conftest.
tail conftest.defines
13730 rm -f conftest.defines
13731 echo ' fi # grep' >>$CONFIG_STATUS
13732 echo >>$CONFIG_STATUS
13734 # Break up conftest.undefs because some shells have a limit on the size
13735 # of here documents, and old seds have small limits too (100 cmds).
13736 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13737 rm -f conftest.
tail
13738 while grep . conftest.undefs
>/dev
/null
13740 # Write a limited-size here document to $tmp/undefs.sed.
13741 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13742 # Speed up: don't consider the non
`#undef'
13743 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13744 # Work around the forget-to-reset-the-flag bug.
13745 echo 't clr' >>$CONFIG_STATUS
13746 echo ': clr' >>$CONFIG_STATUS
13747 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13749 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13751 mv $tmp/out $tmp/in
13753 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13754 rm -f conftest.undefs
13755 mv conftest.tail conftest.undefs
13757 rm -f conftest.undefs
13759 cat >>$CONFIG_STATUS <<\_ACEOF
13760 # Let's still pretend it is `configure
' which instantiates (i.e., don't
13761 # use $as_me), people would be surprised to read:
13762 # /* config.h. Generated by config.status. */
13763 if test x
"$ac_file" = x-
; then
13764 echo "/* Generated by configure. */" >$tmp/config.h
13766 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13768 cat $tmp/in >>$tmp/config.h
13770 if test x
"$ac_file" != x-
; then
13771 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
13772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13773 echo "$as_me: $ac_file is unchanged" >&6;}
13775 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
13776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13777 X"$ac_file" : 'X\(//\)[^/]' \| \
13778 X"$ac_file" : 'X\(//\)$' \| \
13779 X"$ac_file" : 'X\(/\)' \| \
13780 . : '\(.\)' 2>/dev/null ||
13782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13784 /^X\(\/\/\)$/{ s//\1/; q; }
13785 /^X\(\/\).*/{ s//\1/; q; }
13787 { if $as_mkdir_p; then
13792 while test ! -d "$as_dir"; do
13793 as_dirs
="$as_dir $as_dirs"
13794 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13796 X"$as_dir" : 'X\(//\)[^/]' \| \
13797 X"$as_dir" : 'X\(//\)$' \| \
13798 X"$as_dir" : 'X\(/\)' \| \
13799 . : '\(.\)' 2>/dev/null ||
13801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13803 /^X\(\/\/\)$/{ s//\1/; q; }
13804 /^X\(\/\).*/{ s//\1/; q; }
13807 test ! -n "$as_dirs" || mkdir
$as_dirs
13808 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13810 { (exit 1); exit 1; }; }; }
13813 mv $tmp/config.h
$ac_file
13817 rm -f $tmp/config.h
13821 cat >>$CONFIG_STATUS <<\_ACEOF
13824 # CONFIG_COMMANDS section.
13826 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
13827 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
13828 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
13829 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
13830 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831 X"$ac_dest" : 'X\(//\)[^/]' \| \
13832 X"$ac_dest" : 'X\(//\)$' \| \
13833 X"$ac_dest" : 'X\(/\)' \| \
13834 . : '\(.\)' 2>/dev/null ||
13836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13838 /^X\(\/\/\)$/{ s//\1/; q; }
13839 /^X\(\/\).*/{ s//\1/; q; }
13841 { if $as_mkdir_p; then
13846 while test ! -d "$as_dir"; do
13847 as_dirs
="$as_dir $as_dirs"
13848 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
13849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13850 X"$as_dir" : 'X\(//\)[^/]' \| \
13851 X"$as_dir" : 'X\(//\)$' \| \
13852 X"$as_dir" : 'X\(/\)' \| \
13853 . : '\(.\)' 2>/dev/null ||
13855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13856 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13857 /^X\(\/\/\)$/{ s//\1/; q; }
13858 /^X\(\/\).*/{ s//\1/; q; }
13861 test ! -n "$as_dirs" || mkdir
$as_dirs
13862 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13863 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13864 { (exit 1); exit 1; }; }; }
13868 if test "$ac_dir" != .
; then
13869 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13870 # A "../" for each directory in $ac_dir_suffix.
13871 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13873 ac_dir_suffix
= ac_top_builddir
=
13877 .
) # No --srcdir option. We are building in place.
13879 if test -z "$ac_top_builddir"; then
13882 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
13884 [\\/]* | ?
:[\\/]* ) # Absolute path.
13885 ac_srcdir
=$srcdir$ac_dir_suffix;
13886 ac_top_srcdir
=$srcdir ;;
13887 *) # Relative path.
13888 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
13889 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
13892 # Do not use `cd foo && pwd` to compute absolute paths, because
13893 # the directories may not exist.
13895 .
) ac_abs_builddir
="$ac_dir";;
13898 .
) ac_abs_builddir
=`pwd`;;
13899 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
13900 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
13903 case $ac_abs_builddir in
13904 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13906 case ${ac_top_builddir}.
in
13907 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
13908 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
13909 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
13912 case $ac_abs_builddir in
13913 .
) ac_abs_srcdir
=$ac_srcdir;;
13916 .
) ac_abs_srcdir
=$ac_abs_builddir;;
13917 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
13918 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
13921 case $ac_abs_builddir in
13922 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
13924 case $ac_top_srcdir in
13925 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
13926 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
13927 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
13932 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13933 echo "$as_me: executing $ac_dest commands" >&6;}
13936 case ${CONFIG_HEADERS} in
13937 *auto-host.h
:config.
in*)
13940 # Make sure all the subdirs exist.
13943 test -d $d || mkdir
$d
13945 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
13946 # bootstrapping and the installation procedure can still use
13947 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
13948 # FLAGS_TO_PASS has been modified to solve the problem there.
13949 # This is virtually a duplicate of what happens in configure.lang; we do
13950 # an extra check to make sure this only happens if ln -s can be used.
13951 if test "$symbolic_link" = "ln -s"; then
13952 for d
in ${subdirs} fixinc
; do
13953 STARTDIR
=`${PWDCMD-pwd}`
13955 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
13958 $symbolic_link ..
/$t $t 2>/dev
/null
13968 cat >>$CONFIG_STATUS <<\_ACEOF
13970 { (exit 0); exit 0; }
13972 chmod +x
$CONFIG_STATUS
13973 ac_clean_files
=$ac_clean_files_save
13976 # configure is writing to config.log, and then calls config.status.
13977 # config.status does its own redirection, appending to config.log.
13978 # Unfortunately, on DOS this fails, as config.log is still kept open
13979 # by configure, so config.status won't be able to write to it; its
13980 # output is simply discarded. So we exec the FD to /dev/null,
13981 # effectively closing config.log, so it can be properly (re)opened and
13982 # appended to by config.status. When coming back to configure, we
13983 # need to make the FD available again.
13984 if test "$no_create" != yes; then
13986 ac_config_status_args
=
13987 test "$silent" = yes &&
13988 ac_config_status_args
="$ac_config_status_args --quiet"
13990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13993 # would make configure fail if this is the last instruction.
13994 $ac_cs_success ||
{ (exit 1); exit 1; }