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 EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float 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 LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir datarootdir docdir htmldir 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_selected_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 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 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
: yes,no
,all
,none
,release.
871 Flags are
: assert
,fold,gc
,gcac
,misc
,
872 rtlflag
,rtl
,runtime
,tree
,valgrind.
873 --enable-mapped-location location_t is fileline integer cookie
874 --enable-coverage=LEVEL
875 enable compiler
's code coverage collection.
876 Use to measure compiler performance and locate
877 unused parts of the compiler. With LEVEL, specify
878 optimization. Values are opt, noopt,
880 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
881 --enable-multilib enable library support for multiple ABIs
882 --enable-__cxa_atexit enable __cxa_atexit for C++
883 --enable-decimal-float enable decimal float extension to C
884 --enable-threads enable thread usage for target GCC
885 --enable-threads=LIB use LIB thread package for target GCC
886 --enable-tls enable or disable generation of tls code
887 overriding the assembler check for tls support
888 --enable-objc-gc enable the use of Boehm's garbage collector with
889 the GNU Objective-C runtime
890 --disable-shared don
't provide a shared libgcc
891 --enable-intermodule build the compiler in one step
892 --enable-languages=LIST specify which front-ends to build
893 --disable-rpath do not hardcode runtime library paths
894 --enable-initfini-array use .init_array/.fini_array sections
895 --enable-sjlj-exceptions
896 arrange to use setjmp/longjmp exception handling
897 --enable-secureplt enable -msecure-plt by default for PowerPC
898 --disable-win32-registry
899 disable lookup of installation paths in the
900 Registry on Windows hosts
901 --enable-win32-registry enable registry lookup (default)
902 --enable-win32-registry=KEY
903 use KEY instead of GCC version as the last portion
905 --enable-maintainer-mode
906 enable make rules and dependencies not useful
907 (and sometimes confusing) to the casual installer
908 --enable-version-specific-runtime-libs
909 specify that runtime libraries should be
910 installed in a compiler-specific directory
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use
128-bit long double by default.
936 --with-gc={page
,zone
} choose the garbage collection mechanism to use
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
940 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
941 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
942 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
944 Some influential environment variables
:
945 CC C compiler
command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
948 nonstandard directory
<lib dir
>
949 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
950 headers
in a nonstandard directory
<include dir
>
952 GMPLIBS How to link GMP
953 GMPINC How to
find GMP include files
955 Use these variables to override the choices made by
`configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
973 ac_dir_suffix= ac_top_builddir=
977 .) # No --srcdir option. We are building in place.
979 if test -z "$ac_top_builddir"; then
982 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
992 # Do not use `cd foo
&& pwd` to compute absolute paths, because
993 # the directories may not exist.
995 .) ac_abs_builddir="$ac_dir";;
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1042 $ac_configure --help
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1077 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1078 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1079 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1080 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1081 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1083 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1084 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1086 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1087 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1088 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1089 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1090 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1091 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1092 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_must_keep_next=false
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1154 -* ) ac_must_keep_next=true ;;
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close
' the trap.
1172 trap 'exit_status
=$?
1173 # Save into config.log some information that might help in debugging.
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1183 # The following way of writing the cache mishandles newlines in values,
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1206 for ac_var
in $ac_subst_vars
1208 eval ac_val
=$
`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -n "$ac_subst_files"; then
1220 for ac_var
in $ac_subst_files
1222 eval ac_val
=$
`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1228 if test -s confdefs.h
; then
1235 sed "/^$/d" confdefs.h |
sort
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1242 rm -f core
*.core
&&
1243 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's
/^
/|
/' "$ac_site_file" >&5
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1318 # Check that the precious variables saved in the cache have kept the same
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1331 ac_cache_corrupted=: ;;
1333 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1340 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1365 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1372 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1406 elif test -f $ac_dir/install.sh; then
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1410 elif test -f $ac_dir/shtool; then
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1452 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1454 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1474 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1476 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1498 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1527 # Determine the target- and build-specific subdirectories
1528 # Prefix 'build-
' so this never conflicts with target_subdir.
1529 build_subdir="build-${build_noncanonical}"
1530 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1531 if ( test $srcdir = . && test -d gcc ) \
1532 || test -d $srcdir/../host-${host_noncanonical}; then
1533 host_subdir="host-${host_noncanonical}"
1538 target_subdir=${target_noncanonical}
1541 # Set program_transform_name
1542 test "$program_prefix" != NONE &&
1543 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1544 # Use a double $ so make ignores it.
1545 test "$program_suffix" != NONE &&
1546 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1547 # Double any \ or $. echo might interpret backslashes.
1548 # By default was `s,x,x', remove it
if useless.
1549 cat <<\_ACEOF
>conftest.
sed
1550 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1552 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1556 # Check for bogus environment variables.
1557 # Test if LIBRARY_PATH contains the notation for the current directory
1558 # since this would lead to problems installing/building glibc.
1559 # LIBRARY_PATH contains the current directory if one of the following
1561 # - one of the terminals (":" and ";") is the first or last sign
1562 # - two terminals occur directly after each other
1563 # - the path contains an element with a dot in it
1564 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1565 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1566 case ${LIBRARY_PATH} in
1567 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1568 library_path_setting
="contains current directory"
1571 library_path_setting
="ok"
1574 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1575 echo "${ECHO_T}$library_path_setting" >&6
1576 if test "$library_path_setting" != "ok"; then
1577 { { echo "$as_me:$LINENO: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&5
1581 echo "$as_me: error:
1582 *** LIBRARY_PATH shouldn't contain the current directory when
1583 *** building gcc. Please change the environment variable
1584 *** and run configure again." >&2;}
1585 { (exit 1); exit 1; }; }
1588 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1589 # since this would lead to problems installing/building glibc.
1590 # GCC_EXEC_PREFIX contains the current directory if one of the following
1592 # - one of the terminals (":" and ";") is the first or last sign
1593 # - two terminals occur directly after each other
1594 # - the path contains an element with a dot in it
1595 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1596 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1597 case ${GCC_EXEC_PREFIX} in
1598 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1599 gcc_exec_prefix_setting
="contains current directory"
1602 gcc_exec_prefix_setting
="ok"
1605 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1606 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1607 if test "$gcc_exec_prefix_setting" != "ok"; then
1608 { { echo "$as_me:$LINENO: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&5
1612 echo "$as_me: error:
1613 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1614 *** building gcc. Please change the environment variable
1615 *** and run configure again." >&2;}
1616 { (exit 1); exit 1; }; }
1623 # Specify the local prefix
1626 # Check whether --with-local-prefix or --without-local-prefix was given.
1627 if test "${with_local_prefix+set}" = set; then
1628 withval
="$with_local_prefix"
1629 case "${withval}" in
1630 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1631 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1632 { (exit 1); exit 1; }; } ;;
1634 *) local_prefix
=$with_local_prefix ;;
1638 # Default local prefix if it is empty
1639 if test x
$local_prefix = x
; then
1640 local_prefix
=/usr
/local
1643 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1644 # passed in by the toplevel make and thus we'd get different behavior
1645 # depending on where we built the sources.
1646 gcc_gxx_include_dir
=
1647 # Specify the g++ header file directory
1649 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1650 if test "${with_gxx_include_dir+set}" = set; then
1651 withval
="$with_gxx_include_dir"
1652 case "${withval}" in
1653 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1654 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1655 { (exit 1); exit 1; }; } ;;
1657 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1661 if test x
${gcc_gxx_include_dir} = x
; then
1662 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1663 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1665 libstdcxx_incdir
='c++/$(version)'
1666 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1671 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1672 if test "${with_cpp_install_dir+set}" = set; then
1673 withval
="$with_cpp_install_dir"
1674 if test x
$withval = xyes
; then
1675 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1676 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1677 { (exit 1); exit 1; }; }
1678 elif test x
$withval != xno
; then
1679 cpp_install_dir
=$withval
1683 # We would like to our source tree to be readonly. However when releases or
1684 # pre-releases are generated, the flex/bison generated files as well as the
1685 # various formats of manuals need to be included along with the rest of the
1686 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1689 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1690 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1691 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1692 if test "${enable_generated_files_in_srcdir+set}" = set; then
1693 enableval
="$enable_generated_files_in_srcdir"
1694 generated_files_in_srcdir
=$enableval
1696 generated_files_in_srcdir
=no
1699 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1700 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1702 if test "$generated_files_in_srcdir" = "yes"; then
1709 # -------------------
1710 # Find default linker
1711 # -------------------
1715 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1716 if test "${with_gnu_ld+set}" = set; then
1717 withval
="$with_gnu_ld"
1718 gnu_ld_flag
="$with_gnu_ld"
1723 # With pre-defined ld
1725 # Check whether --with-ld or --without-ld was given.
1726 if test "${with_ld+set}" = set; then
1728 DEFAULT_LINKER
="$with_ld"
1730 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1731 if test ! -x "$DEFAULT_LINKER"; then
1732 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1733 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1734 { (exit 1); exit 1; }; }
1735 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1739 cat >>confdefs.h
<<_ACEOF
1740 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1745 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1746 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1747 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1748 if test x
"$gnu_ld_flag" = x
"no"; then
1749 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1750 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1752 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1753 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1760 # With demangler in GNU ld
1762 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1763 if test "${with_demangler_in_ld+set}" = set; then
1764 withval
="$with_demangler_in_ld"
1765 demangler_in_ld
="$with_demangler_in_ld"
1770 # ----------------------
1771 # Find default assembler
1772 # ----------------------
1776 # Check whether --with-gnu-as or --without-gnu-as was given.
1777 if test "${with_gnu_as+set}" = set; then
1778 withval
="$with_gnu_as"
1779 gas_flag
="$with_gnu_as"
1785 # Check whether --with-as or --without-as was given.
1786 if test "${with_as+set}" = set; then
1788 DEFAULT_ASSEMBLER
="$with_as"
1790 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1791 if test ! -x "$DEFAULT_ASSEMBLER"; then
1792 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1793 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1794 { (exit 1); exit 1; }; }
1795 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1799 cat >>confdefs.h
<<_ACEOF
1800 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1805 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1806 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1807 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1808 if test x
"$gas_flag" = x
"no"; then
1809 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1810 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1812 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1813 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1824 # If a non-executable a.out is present (e.g. created by GNU as above even if
1825 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1826 # file, even when creating an executable, so an execution test fails.
1827 # Remove possible default executable files to avoid this.
1829 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1830 # Autoconf includes it.
1831 rm -f a.out a.exe b.out
1833 # Find the native compiler
1835 ac_cpp
='$CPP $CPPFLAGS'
1836 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1839 if test -n "$ac_tool_prefix"; then
1840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1841 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1842 echo "$as_me:$LINENO: checking for $ac_word" >&5
1843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844 if test "${ac_cv_prog_CC+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 if test -n "$CC"; then
1848 ac_cv_prog_CC
="$CC" # Let the user override the test.
1850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1854 test -z "$as_dir" && as_dir
=.
1855 for ac_exec_ext
in '' $ac_executable_extensions; do
1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1857 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 if test -n "$CC"; then
1868 echo "$as_me:$LINENO: result: $CC" >&5
1869 echo "${ECHO_T}$CC" >&6
1871 echo "$as_me:$LINENO: result: no" >&5
1872 echo "${ECHO_T}no" >&6
1876 if test -z "$ac_cv_prog_CC"; then
1878 # Extract the first word of "gcc", so it can be a program name with args.
1879 set dummy gcc
; ac_word
=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1885 if test -n "$ac_ct_CC"; then
1886 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1892 test -z "$as_dir" && as_dir
=.
1893 for ac_exec_ext
in '' $ac_executable_extensions; do
1894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895 ac_cv_prog_ac_ct_CC
="gcc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1905 if test -n "$ac_ct_CC"; then
1906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1907 echo "${ECHO_T}$ac_ct_CC" >&6
1909 echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1918 if test -z "$CC"; then
1919 if test -n "$ac_tool_prefix"; then
1920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1921 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$CC"; then
1928 ac_cv_prog_CC
="$CC" # Let the user override the test.
1930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir
=.
1935 for ac_exec_ext
in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 if test -n "$CC"; then
1948 echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1951 echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1956 if test -z "$ac_cv_prog_CC"; then
1958 # Extract the first word of "cc", so it can be a program name with args.
1959 set dummy cc
; ac_word
=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1963 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 if test -n "$ac_ct_CC"; then
1966 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1968 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1972 test -z "$as_dir" && as_dir
=.
1973 for ac_exec_ext
in '' $ac_executable_extensions; do
1974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975 ac_cv_prog_ac_ct_CC
="cc"
1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1985 if test -n "$ac_ct_CC"; then
1986 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1987 echo "${ECHO_T}$ac_ct_CC" >&6
1989 echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1999 if test -z "$CC"; then
2000 # Extract the first word of "cc", so it can be a program name with args.
2001 set dummy cc
; ac_word
=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_CC+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 if test -n "$CC"; then
2008 ac_cv_prog_CC
="$CC" # Let the user override the test.
2011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir
=.
2016 for ac_exec_ext
in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2019 ac_prog_rejected
=yes
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029 if test $ac_prog_rejected = yes; then
2030 # We found a bogon in the path, so make sure we never use it.
2031 set dummy
$ac_cv_prog_CC
2033 if test $# != 0; then
2034 # We chose a different compiler from the bogus one.
2035 # However, it has the same basename, so the bogon will be chosen
2036 # first if we set CC to just the basename; use the full file name.
2038 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2044 if test -n "$CC"; then
2045 echo "$as_me:$LINENO: result: $CC" >&5
2046 echo "${ECHO_T}$CC" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2053 if test -z "$CC"; then
2054 if test -n "$ac_tool_prefix"; then
2057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2058 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2059 echo "$as_me:$LINENO: checking for $ac_word" >&5
2060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2061 if test "${ac_cv_prog_CC+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 if test -n "$CC"; then
2065 ac_cv_prog_CC
="$CC" # Let the user override the test.
2067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir
=.
2072 for ac_exec_ext
in '' $ac_executable_extensions; do
2073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2074 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 if test -n "$CC"; then
2085 echo "$as_me:$LINENO: result: $CC" >&5
2086 echo "${ECHO_T}$CC" >&6
2088 echo "$as_me:$LINENO: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2092 test -n "$CC" && break
2095 if test -z "$CC"; then
2099 # Extract the first word of "$ac_prog", so it can be a program name with args.
2100 set dummy
$ac_prog; ac_word
=$2
2101 echo "$as_me:$LINENO: checking for $ac_word" >&5
2102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 if test -n "$ac_ct_CC"; then
2107 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir
=.
2114 for ac_exec_ext
in '' $ac_executable_extensions; do
2115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2116 ac_cv_prog_ac_ct_CC
="$ac_prog"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2126 if test -n "$ac_ct_CC"; then
2127 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2128 echo "${ECHO_T}$ac_ct_CC" >&6
2130 echo "$as_me:$LINENO: result: no" >&5
2131 echo "${ECHO_T}no" >&6
2134 test -n "$ac_ct_CC" && break
2143 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&2;}
2147 { (exit 1); exit 1; }; }
2149 # Provide some information about the compiler.
2150 echo "$as_me:$LINENO:" \
2151 "checking for C compiler version" >&5
2152 ac_compiler
=`set X $ac_compile; echo $2`
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2154 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2159 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }
2163 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2164 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }
2169 cat >conftest.
$ac_ext <<_ACEOF
2172 cat confdefs.h
>>conftest.
$ac_ext
2173 cat >>conftest.
$ac_ext <<_ACEOF
2174 /* end confdefs.h. */
2184 ac_clean_files_save
=$ac_clean_files
2185 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2186 # Try to create an executable without -o first, disregard a.out.
2187 # It will help us diagnose broken compilers, and finding out an intuition
2189 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2190 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2191 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2193 (eval $ac_link_default) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # Find the output, starting from the most likely. This scheme is
2198 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2201 # Be careful to initialize this variable, since it used to be cached.
2202 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2204 # b.out is created by i960 compilers.
2205 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2207 test -f "$ac_file" ||
continue
2209 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2212 # This is the source file.
2215 # We found the default executable, but exeext='' is most
2219 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2220 # FIXME: I believe we export ac_cv_exeext for Libtool,
2221 # but it would be cool to find out if it's true. Does anybody
2222 # maintain Libtool? --akim.
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.
$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: C compiler cannot create executables
2236 See \`config.log' for more details." >&2;}
2237 { (exit 77); exit 77; }; }
2240 ac_exeext
=$ac_cv_exeext
2241 echo "$as_me:$LINENO: result: $ac_file" >&5
2242 echo "${ECHO_T}$ac_file" >&6
2244 # Check the compiler produces executables we can run. If not, either
2245 # the compiler is broken, or we cross compile.
2246 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2248 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249 # If not cross compiling, check that we can run a simple program.
2250 if test "$cross_compiling" != yes; then
2251 if { ac_try
='./$ac_file'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 if test "$cross_compiling" = maybe
; then
2262 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2272 echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6
2275 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2276 ac_clean_files
=$ac_clean_files_save
2277 # Check the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2281 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6
2284 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2287 (eval $ac_link) 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2295 for ac_file
in conftest.exe conftest conftest.
*; do
2296 test -f "$ac_file" ||
continue
2298 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2299 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2313 rm -f conftest
$ac_cv_exeext
2314 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315 echo "${ECHO_T}$ac_cv_exeext" >&6
2317 rm -f conftest.
$ac_ext
2318 EXEEXT
=$ac_cv_exeext
2320 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2322 if test "${ac_cv_objext+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 cat >conftest.
$ac_ext <<_ACEOF
2328 cat confdefs.h
>>conftest.
$ac_ext
2329 cat >>conftest.
$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2340 rm -f conftest.o conftest.obj
2341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2342 (eval $ac_compile) 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }; then
2346 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2348 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2349 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.
$ac_ext >&5
2357 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2364 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2366 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367 echo "${ECHO_T}$ac_cv_objext" >&6
2368 OBJEXT
=$ac_cv_objext
2370 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 cat >conftest.
$ac_ext <<_ACEOF
2378 cat confdefs.h
>>conftest.
$ac_ext
2379 cat >>conftest.
$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2393 rm -f conftest.
$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1
>conftest.err
2399 cat conftest.err
>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try
='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try
='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.
$ac_ext >&5
2422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2426 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2427 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2428 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2429 ac_test_CFLAGS
=${CFLAGS+set}
2430 ac_save_CFLAGS
=$CFLAGS
2432 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2433 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2434 if test "${ac_cv_prog_cc_g+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 cat >conftest.
$ac_ext <<_ACEOF
2440 cat confdefs.h
>>conftest.
$ac_ext
2441 cat >>conftest.
$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2452 rm -f conftest.
$ac_objext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2454 (eval $ac_compile) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1
>conftest.err
2458 cat conftest.err
>&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try
='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try
='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.
$ac_ext >&5
2481 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2483 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2484 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2485 if test "$ac_test_CFLAGS" = set; then
2486 CFLAGS
=$ac_save_CFLAGS
2487 elif test $ac_cv_prog_cc_g = yes; then
2488 if test "$GCC" = yes; then
2494 if test "$GCC" = yes; then
2500 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2501 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 ac_cv_prog_cc_stdc
=no
2507 cat >conftest.
$ac_ext <<_ACEOF
2510 cat confdefs.h
>>conftest.
$ac_ext
2511 cat >>conftest.
$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (p, i)
2526 static char *f (char * (*g) (char **, int), char **p, ...)
2531 s = g (p, va_arg (v,int));
2536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2537 function prototypes and stuff, but not '\xHH' hex character constants.
2538 These don't provoke an error unfortunately, instead are silently treated
2539 as 'x'. The following induces an error, until -std1 is added to get
2540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2541 array size at least. It's necessary to write '\x00'==0 to get something
2542 that's true only with -std1. */
2543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2545 int test (int i, double x);
2546 struct s1 {int (*f) (int a);};
2547 struct s2 {int (*f) (double a);};
2548 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2554 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2559 # Don't try gcc -ansi; that turns off useful extensions and
2560 # breaks some systems' header files.
2561 # AIX -qlanglvl=ansi
2562 # Ultrix and OSF/1 -std1
2563 # HP-UX 10.20 and later -Ae
2564 # HP-UX older versions -Aa -D_HPUX_SOURCE
2565 # SVR4 -Xc -D__EXTENSIONS__
2566 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2568 CC
="$ac_save_CC $ac_arg"
2569 rm -f conftest.
$ac_objext
2570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571 (eval $ac_compile) 2>conftest.er1
2573 grep -v '^ *+' conftest.er1
>conftest.err
2575 cat conftest.err
>&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try
='test -z "$ac_c_werror_flag"
2579 || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try
='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_cv_prog_cc_stdc
=$ac_arg
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.
$ac_ext >&5
2598 rm -f conftest.err conftest.
$ac_objext
2600 rm -f conftest.
$ac_ext conftest.
$ac_objext
2605 case "x$ac_cv_prog_cc_stdc" in
2607 echo "$as_me:$LINENO: result: none needed" >&5
2608 echo "${ECHO_T}none needed" >&6 ;;
2610 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2612 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2615 # Some people use a C++ compiler to compile C. Since we use `exit',
2616 # in C++ we need to declare it. In case someone uses the same compiler
2617 # for both compiling C and C++ we need to have the C++ compiler decide
2618 # the declaration of exit, since it's the most demanding environment.
2619 cat >conftest.
$ac_ext <<_ACEOF
2624 rm -f conftest.
$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>conftest.er1
2628 grep -v '^ *+' conftest.er1
>conftest.err
2630 cat conftest.err
>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try
='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try
='test -s conftest.$ac_objext'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 for ac_declaration
in \
2648 'extern "C" void std::exit (int) throw (); using std::exit;' \
2649 'extern "C" void std::exit (int); using std::exit;' \
2650 'extern "C" void exit (int) throw ();' \
2651 'extern "C" void exit (int);' \
2654 cat >conftest.
$ac_ext <<_ACEOF
2657 cat confdefs.h
>>conftest.
$ac_ext
2658 cat >>conftest.
$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2670 rm -f conftest.
$ac_objext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>conftest.er1
2674 grep -v '^ *+' conftest.er1
>conftest.err
2676 cat conftest.err
>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try
='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try
='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.
$ac_ext >&5
2699 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2700 cat >conftest.
$ac_ext <<_ACEOF
2703 cat confdefs.h
>>conftest.
$ac_ext
2704 cat >>conftest.
$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 rm -f conftest.
$ac_objext
2716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2717 (eval $ac_compile) 2>conftest.er1
2719 grep -v '^ *+' conftest.er1
>conftest.err
2721 cat conftest.err
>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); } &&
2724 { ac_try
='test -z "$ac_c_werror_flag"
2725 || test ! -s conftest.err'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; } &&
2731 { ac_try
='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.
$ac_ext >&5
2743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2746 if test -n "$ac_declaration"; then
2747 echo '#ifdef __cplusplus' >>confdefs.h
2748 echo $ac_declaration >>confdefs.h
2749 echo '#endif' >>confdefs.h
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.
$ac_ext >&5
2757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2759 ac_cpp
='$CPP $CPPFLAGS'
2760 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2764 if test "x$CC" != xcc
; then
2765 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2766 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2768 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2769 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2771 set dummy
$CC; ac_cc
=`echo $2 |
2772 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2773 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 cat >conftest.
$ac_ext <<_ACEOF
2779 cat confdefs.h
>>conftest.
$ac_ext
2780 cat >>conftest.
$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 # Make sure it works both with $CC and with simple cc.
2792 # We do the test twice because some compilers refuse to overwrite an
2793 # existing .o file with -o, though they will create one.
2794 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2795 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } &&
2800 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); };
2806 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2807 if test "x$CC" != xcc
; then
2808 # Test first that cc exists at all.
2809 if { ac_try
='cc -c conftest.$ac_ext >&5'
2810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2816 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); };
2830 # cc exists but doesn't like -o.
2831 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2836 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2841 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2842 echo "$as_me:$LINENO: result: yes" >&5
2843 echo "${ECHO_T}yes" >&6
2845 echo "$as_me:$LINENO: result: no" >&5
2846 echo "${ECHO_T}no" >&6
2848 cat >>confdefs.h
<<\_ACEOF
2849 #define NO_MINUS_C_MINUS_O 1
2854 # expand $ac_aux_dir to an absolute path
2855 am_aux_dir
=`cd $ac_aux_dir && pwd`
2857 # FIXME: we rely on the cache variable name because
2858 # there is no other way.
2860 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2862 # Losing compiler, so override with the script.
2863 # FIXME: It is wrong to rewrite CC.
2864 # But if we don't then we get into trouble of one sort or another.
2865 # A longer-term fix would be to have automake use am__CC in this case,
2866 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2867 CC
="$am_aux_dir/compile $CC"
2870 # autoconf is lame and doesn't give us any substitution variable for this.
2871 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2872 NO_MINUS_C_MINUS_O
=yes
2874 OUTPUT_OPTION
='-o $@'
2879 # -------------------------
2880 # Check C compiler features
2881 # -------------------------
2884 ac_cpp
='$CPP $CPPFLAGS'
2885 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2888 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2889 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2890 # On Suns, sometimes $CPP names a directory.
2891 if test -n "$CPP" && test -d "$CPP"; then
2894 if test -z "$CPP"; then
2895 if test "${ac_cv_prog_CPP+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 # Double quotes because CPP needs to be expanded
2899 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2902 for ac_c_preproc_warn_flag
in '' yes
2904 # Use a header file that comes with gcc, so configuring glibc
2905 # with a fresh cross-compiler works.
2906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2907 # <limits.h> exists even on freestanding compilers.
2908 # On the NeXT, cc -E runs the code through the compiler's parser,
2909 # not just through cpp. "Syntax error" is here to catch this case.
2910 cat >conftest.
$ac_ext <<_ACEOF
2913 cat confdefs.h
>>conftest.
$ac_ext
2914 cat >>conftest.
$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2917 # include <limits.h>
2919 # include <assert.h>
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2926 grep -v '^ *+' conftest.er1
>conftest.err
2928 cat conftest.err
>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } >/dev
/null
; then
2931 if test -s conftest.err
; then
2932 ac_cpp_err
=$ac_c_preproc_warn_flag
2933 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2940 if test -z "$ac_cpp_err"; then
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.
$ac_ext >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err conftest.
$ac_ext
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >conftest.
$ac_ext <<_ACEOF
2956 cat confdefs.h
>>conftest.
$ac_ext
2957 cat >>conftest.
$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <ac_nonexistent.h>
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1
>conftest.err
2966 cat conftest.err
>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } >/dev
/null
; then
2969 if test -s conftest.err
; then
2970 ac_cpp_err
=$ac_c_preproc_warn_flag
2971 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2978 if test -z "$ac_cpp_err"; then
2979 # Broken: success on invalid input.
2982 echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.
$ac_ext >&5
2985 # Passes both tests.
2989 rm -f conftest.err conftest.
$ac_ext
2992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2993 rm -f conftest.err conftest.
$ac_ext
2994 if $ac_preproc_ok; then
3006 echo "$as_me:$LINENO: result: $CPP" >&5
3007 echo "${ECHO_T}$CPP" >&6
3009 for ac_c_preproc_warn_flag
in '' yes
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
3013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
3015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.
$ac_ext <<_ACEOF
3020 cat confdefs.h
>>conftest.
$ac_ext
3021 cat >>conftest.
$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3024 # include <limits.h>
3026 # include <assert.h>
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3033 grep -v '^ *+' conftest.er1
>conftest.err
3035 cat conftest.err
>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev
/null
; then
3038 if test -s conftest.err
; then
3039 ac_cpp_err
=$ac_c_preproc_warn_flag
3040 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3047 if test -z "$ac_cpp_err"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.
$ac_ext >&5
3053 # Broken: fails on valid input.
3056 rm -f conftest.err conftest.
$ac_ext
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.
$ac_ext <<_ACEOF
3063 cat confdefs.h
>>conftest.
$ac_ext
3064 cat >>conftest.
$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3066 #include <ac_nonexistent.h>
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3071 grep -v '^ *+' conftest.er1
>conftest.err
3073 cat conftest.err
>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev
/null
; then
3076 if test -s conftest.err
; then
3077 ac_cpp_err
=$ac_c_preproc_warn_flag
3078 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3085 if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.
$ac_ext >&5
3092 # Passes both tests.
3096 rm -f conftest.err conftest.
$ac_ext
3099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100 rm -f conftest.err conftest.
$ac_ext
3101 if $ac_preproc_ok; then
3104 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3105 See \`config.log' for more details." >&5
3106 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3107 See \`config.log' for more details." >&2;}
3108 { (exit 1); exit 1; }; }
3112 ac_cpp
='$CPP $CPPFLAGS'
3113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3118 echo "$as_me:$LINENO: checking for inline" >&5
3119 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3120 if test "${ac_cv_c_inline+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 for ac_kw
in inline __inline__ __inline
; do
3125 cat >conftest.
$ac_ext <<_ACEOF
3128 cat confdefs.h
>>conftest.
$ac_ext
3129 cat >>conftest.
$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3133 static $ac_kw foo_t static_foo () {return 0; }
3134 $ac_kw foo_t foo () {return 0; }
3138 rm -f conftest.
$ac_objext
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140 (eval $ac_compile) 2>conftest.er1
3142 grep -v '^ *+' conftest.er1
>conftest.err
3144 cat conftest.err
>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try
='test -z "$ac_c_werror_flag"
3148 || test ! -s conftest.err'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try
='test -s conftest.$ac_objext'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_c_inline
=$ac_kw; break
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.
$ac_ext >&5
3166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3170 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3171 echo "${ECHO_T}$ac_cv_c_inline" >&6
3174 case $ac_cv_c_inline in
3177 case $ac_cv_c_inline in
3179 *) ac_val
=$ac_cv_c_inline;;
3181 cat >>confdefs.h
<<_ACEOF
3183 #define inline $ac_val
3190 # sizeof(char) is 1 by definition.
3192 echo "$as_me:$LINENO: checking for egrep" >&5
3193 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3194 if test "${ac_cv_prog_egrep+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3198 then ac_cv_prog_egrep
='grep -E'
3199 else ac_cv_prog_egrep
='egrep'
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3203 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3204 EGREP
=$ac_cv_prog_egrep
3207 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3209 if test "${ac_cv_header_stdc+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 cat >conftest.
$ac_ext <<_ACEOF
3215 cat confdefs.h
>>conftest.
$ac_ext
3216 cat >>conftest.
$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3231 rm -f conftest.
$ac_objext
3232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233 (eval $ac_compile) 2>conftest.er1
3235 grep -v '^ *+' conftest.er1
>conftest.err
3237 cat conftest.err
>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } &&
3240 { ac_try
='test -z "$ac_c_werror_flag"
3241 || test ! -s conftest.err'
3242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); }; } &&
3247 { ac_try
='test -s conftest.$ac_objext'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; }; then
3253 ac_cv_header_stdc
=yes
3255 echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.
$ac_ext >&5
3258 ac_cv_header_stdc
=no
3260 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3262 if test $ac_cv_header_stdc = yes; then
3263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3264 cat >conftest.
$ac_ext <<_ACEOF
3267 cat confdefs.h
>>conftest.
$ac_ext
3268 cat >>conftest.
$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3274 $EGREP "memchr" >/dev
/null
2>&1; then
3277 ac_cv_header_stdc
=no
3283 if test $ac_cv_header_stdc = yes; then
3284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3285 cat >conftest.
$ac_ext <<_ACEOF
3288 cat confdefs.h
>>conftest.
$ac_ext
3289 cat >>conftest.
$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 $EGREP "free" >/dev
/null
2>&1; then
3298 ac_cv_header_stdc
=no
3304 if test $ac_cv_header_stdc = yes; then
3305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3306 if test "$cross_compiling" = yes; then
3309 cat >conftest.
$ac_ext <<_ACEOF
3312 cat confdefs.h
>>conftest.
$ac_ext
3313 cat >>conftest.
$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3316 #if ((' ' & 0x0FF) == 0x020)
3317 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3318 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3320 # define ISLOWER(c) \
3321 (('a' <= (c) && (c) <= 'i') \
3322 || ('j' <= (c) && (c) <= 'r') \
3323 || ('s' <= (c) && (c) <= 'z'))
3324 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3327 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3332 for (i = 0; i < 256; i++)
3333 if (XOR (islower (i), ISLOWER (i))
3334 || toupper (i) != TOUPPER (i))
3339 rm -f conftest
$ac_exeext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3352 echo "$as_me: program exited with status $ac_status" >&5
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.
$ac_ext >&5
3357 ac_cv_header_stdc
=no
3359 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3363 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3364 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3365 if test $ac_cv_header_stdc = yes; then
3367 cat >>confdefs.h
<<\_ACEOF
3368 #define STDC_HEADERS 1
3373 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3383 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3384 inttypes.h stdint.h unistd.h
3386 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3387 echo "$as_me:$LINENO: checking for $ac_header" >&5
3388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 cat >conftest.
$ac_ext <<_ACEOF
3395 cat confdefs.h
>>conftest.
$ac_ext
3396 cat >>conftest.
$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 $ac_includes_default
3400 #include <$ac_header>
3402 rm -f conftest.
$ac_objext
3403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 (eval $ac_compile) 2>conftest.er1
3406 grep -v '^ *+' conftest.er1
>conftest.err
3408 cat conftest.err
>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try
='test -z "$ac_c_werror_flag"
3412 || test ! -s conftest.err'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; } &&
3418 { ac_try
='test -s conftest.$ac_objext'
3419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; }; then
3424 eval "$as_ac_Header=yes"
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.
$ac_ext >&5
3429 eval "$as_ac_Header=no"
3431 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3436 cat >>confdefs.h
<<_ACEOF
3437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3445 echo "$as_me:$LINENO: checking for void *" >&5
3446 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3447 if test "${ac_cv_type_void_p+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 cat >conftest.
$ac_ext <<_ACEOF
3453 cat confdefs.h
>>conftest.
$ac_ext
3454 cat >>conftest.
$ac_ext <<_ACEOF
3455 /* end confdefs.h. */
3456 $ac_includes_default
3462 if (sizeof (void *))
3468 rm -f conftest.
$ac_objext
3469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>conftest.er1
3472 grep -v '^ *+' conftest.er1
>conftest.err
3474 cat conftest.err
>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try
='test -z "$ac_c_werror_flag"
3478 || test ! -s conftest.err'
3479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; } &&
3484 { ac_try
='test -s conftest.$ac_objext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_type_void_p
=yes
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.
$ac_ext >&5
3495 ac_cv_type_void_p
=no
3497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3499 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3500 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3502 echo "$as_me:$LINENO: checking size of void *" >&5
3503 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3504 if test "${ac_cv_sizeof_void_p+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if test "$ac_cv_type_void_p" = yes; then
3508 # The cast to unsigned long works around a bug in the HP C Compiler
3509 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3510 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3511 # This bug is HP SR number 8606223364.
3512 if test "$cross_compiling" = yes; then
3513 # Depending upon the size, compute the lo and hi bounds.
3514 cat >conftest.
$ac_ext <<_ACEOF
3517 cat confdefs.h
>>conftest.
$ac_ext
3518 cat >>conftest.
$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 $ac_includes_default
3524 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3531 rm -f conftest.
$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try
='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try
='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3555 cat >conftest.
$ac_ext <<_ACEOF
3558 cat confdefs.h
>>conftest.
$ac_ext
3559 cat >>conftest.
$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 $ac_includes_default
3565 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3572 rm -f conftest.
$ac_objext
3573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3574 (eval $ac_compile) 2>conftest.er1
3576 grep -v '^ *+' conftest.er1
>conftest.err
3578 cat conftest.err
>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try
='test -z "$ac_c_werror_flag"
3582 || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } &&
3588 { ac_try
='test -s conftest.$ac_objext'
3589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); }; }; then
3594 ac_hi
=$ac_mid; break
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.
$ac_ext >&5
3599 ac_lo
=`expr $ac_mid + 1`
3600 if test $ac_lo -le $ac_mid; then
3604 ac_mid
=`expr 2 '*' $ac_mid + 1`
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.
$ac_ext >&5
3612 cat >conftest.
$ac_ext <<_ACEOF
3615 cat confdefs.h
>>conftest.
$ac_ext
3616 cat >>conftest.
$ac_ext <<_ACEOF
3617 /* end confdefs.h. */
3618 $ac_includes_default
3622 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3629 rm -f conftest.
$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3633 grep -v '^ *+' conftest.er1
>conftest.err
3635 cat conftest.err
>&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try
='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try
='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3653 cat >conftest.
$ac_ext <<_ACEOF
3656 cat confdefs.h
>>conftest.
$ac_ext
3657 cat >>conftest.
$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659 $ac_includes_default
3663 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3670 rm -f conftest.
$ac_objext
3671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>conftest.er1
3674 grep -v '^ *+' conftest.er1
>conftest.err
3676 cat conftest.err
>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try
='test -z "$ac_c_werror_flag"
3680 || test ! -s conftest.err'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; } &&
3686 { ac_try
='test -s conftest.$ac_objext'
3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; }; then
3692 ac_lo
=$ac_mid; break
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.
$ac_ext >&5
3697 ac_hi
=`expr '(' $ac_mid ')' - 1`
3698 if test $ac_mid -le $ac_hi; then
3702 ac_mid
=`expr 2 '*' $ac_mid`
3704 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.
$ac_ext >&5
3712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3715 # Binary search between lo and hi bounds.
3716 while test "x$ac_lo" != "x$ac_hi"; do
3717 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3718 cat >conftest.
$ac_ext <<_ACEOF
3721 cat confdefs.h
>>conftest.
$ac_ext
3722 cat >>conftest.
$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 $ac_includes_default
3728 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3735 rm -f conftest.
$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737 (eval $ac_compile) 2>conftest.er1
3739 grep -v '^ *+' conftest.er1
>conftest.err
3741 cat conftest.err
>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } &&
3744 { ac_try
='test -z "$ac_c_werror_flag"
3745 || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try
='test -s conftest.$ac_objext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3759 echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.
$ac_ext >&5
3762 ac_lo
=`expr '(' $ac_mid ')' + 1`
3764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3767 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3768 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3769 See \`config.log' for more details." >&5
3770 echo "$as_me: error: cannot compute sizeof (void *), 77
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; } ;;
3775 if test "$cross_compiling" = yes; then
3776 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: cannot run test program while cross compiling
3779 See \`config.log' for more details." >&2;}
3780 { (exit 1); exit 1; }; }
3782 cat >conftest.
$ac_ext <<_ACEOF
3785 cat confdefs.h
>>conftest.
$ac_ext
3786 cat >>conftest.
$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788 $ac_includes_default
3789 long longval () { return (long) (sizeof (void *)); }
3790 unsigned long ulongval () { return (long) (sizeof (void *)); }
3797 FILE *f = fopen ("conftest.val", "w");
3800 if (((long) (sizeof (void *))) < 0)
3802 long i = longval ();
3803 if (i != ((long) (sizeof (void *))))
3805 fprintf (f, "%ld\n", i);
3809 unsigned long i = ulongval ();
3810 if (i != ((long) (sizeof (void *))))
3812 fprintf (f, "%lu\n", i);
3814 exit (ferror (f) || fclose (f) != 0);
3820 rm -f conftest
$ac_exeext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822 (eval $ac_link) 2>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 ac_cv_sizeof_void_p
=`cat conftest.val`
3833 echo "$as_me: program exited with status $ac_status" >&5
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.
$ac_ext >&5
3838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3839 See \`config.log' for more details." >&5
3840 echo "$as_me: error: cannot compute sizeof (void *), 77
3841 See \`config.log' for more details." >&2;}
3842 { (exit 1); exit 1; }; }
3844 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3849 ac_cv_sizeof_void_p
=0
3852 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3853 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3854 cat >>confdefs.h
<<_ACEOF
3855 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3859 echo "$as_me:$LINENO: checking for short" >&5
3860 echo $ECHO_N "checking for short... $ECHO_C" >&6
3861 if test "${ac_cv_type_short+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 cat >conftest.
$ac_ext <<_ACEOF
3867 cat confdefs.h
>>conftest.
$ac_ext
3868 cat >>conftest.
$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 $ac_includes_default
3882 rm -f conftest.
$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>conftest.er1
3886 grep -v '^ *+' conftest.er1
>conftest.err
3888 cat conftest.err
>&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try
='test -z "$ac_c_werror_flag"
3892 || test ! -s conftest.err'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; } &&
3898 { ac_try
='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_cv_type_short
=yes
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.
$ac_ext >&5
3911 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3913 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3914 echo "${ECHO_T}$ac_cv_type_short" >&6
3916 echo "$as_me:$LINENO: checking size of short" >&5
3917 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3918 if test "${ac_cv_sizeof_short+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 if test "$ac_cv_type_short" = yes; then
3922 # The cast to unsigned long works around a bug in the HP C Compiler
3923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3925 # This bug is HP SR number 8606223364.
3926 if test "$cross_compiling" = yes; then
3927 # Depending upon the size, compute the lo and hi bounds.
3928 cat >conftest.
$ac_ext <<_ACEOF
3931 cat confdefs.h
>>conftest.
$ac_ext
3932 cat >>conftest.
$ac_ext <<_ACEOF
3933 /* end confdefs.h. */
3934 $ac_includes_default
3938 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3945 rm -f conftest.
$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3949 grep -v '^ *+' conftest.er1
>conftest.err
3951 cat conftest.err
>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try
='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try
='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3969 cat >conftest.
$ac_ext <<_ACEOF
3972 cat confdefs.h
>>conftest.
$ac_ext
3973 cat >>conftest.
$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3975 $ac_includes_default
3979 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3986 rm -f conftest.
$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988 (eval $ac_compile) 2>conftest.er1
3990 grep -v '^ *+' conftest.er1
>conftest.err
3992 cat conftest.err
>&5
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } &&
3995 { ac_try
='test -z "$ac_c_werror_flag"
3996 || test ! -s conftest.err'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; } &&
4002 { ac_try
='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4008 ac_hi
=$ac_mid; break
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.
$ac_ext >&5
4013 ac_lo
=`expr $ac_mid + 1`
4014 if test $ac_lo -le $ac_mid; then
4018 ac_mid
=`expr 2 '*' $ac_mid + 1`
4020 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.
$ac_ext >&5
4026 cat >conftest.
$ac_ext <<_ACEOF
4029 cat confdefs.h
>>conftest.
$ac_ext
4030 cat >>conftest.
$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4032 $ac_includes_default
4036 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4043 rm -f conftest.
$ac_objext
4044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045 (eval $ac_compile) 2>conftest.er1
4047 grep -v '^ *+' conftest.er1
>conftest.err
4049 cat conftest.err
>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } &&
4052 { ac_try
='test -z "$ac_c_werror_flag"
4053 || test ! -s conftest.err'
4054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058 (exit $ac_status); }; } &&
4059 { ac_try
='test -s conftest.$ac_objext'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4067 cat >conftest.
$ac_ext <<_ACEOF
4070 cat confdefs.h
>>conftest.
$ac_ext
4071 cat >>conftest.
$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4073 $ac_includes_default
4077 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4084 rm -f conftest.
$ac_objext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086 (eval $ac_compile) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1
>conftest.err
4090 cat conftest.err
>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try
='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try
='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_lo
=$ac_mid; break
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.
$ac_ext >&5
4111 ac_hi
=`expr '(' $ac_mid ')' - 1`
4112 if test $ac_mid -le $ac_hi; then
4116 ac_mid
=`expr 2 '*' $ac_mid`
4118 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.
$ac_ext >&5
4126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4128 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4129 # Binary search between lo and hi bounds.
4130 while test "x$ac_lo" != "x$ac_hi"; do
4131 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4132 cat >conftest.
$ac_ext <<_ACEOF
4135 cat confdefs.h
>>conftest.
$ac_ext
4136 cat >>conftest.
$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 $ac_includes_default
4142 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4149 rm -f conftest.
$ac_objext
4150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151 (eval $ac_compile) 2>conftest.er1
4153 grep -v '^ *+' conftest.er1
>conftest.err
4155 cat conftest.err
>&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } &&
4158 { ac_try
='test -z "$ac_c_werror_flag"
4159 || test ! -s conftest.err'
4160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try
='test -s conftest.$ac_objext'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.
$ac_ext >&5
4176 ac_lo
=`expr '(' $ac_mid ')' + 1`
4178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4181 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4182 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4183 See \`config.log' for more details." >&5
4184 echo "$as_me: error: cannot compute sizeof (short), 77
4185 See \`config.log' for more details." >&2;}
4186 { (exit 1); exit 1; }; } ;;
4189 if test "$cross_compiling" = yes; then
4190 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4191 See \`config.log' for more details." >&5
4192 echo "$as_me: error: cannot run test program while cross compiling
4193 See \`config.log' for more details." >&2;}
4194 { (exit 1); exit 1; }; }
4196 cat >conftest.
$ac_ext <<_ACEOF
4199 cat confdefs.h
>>conftest.
$ac_ext
4200 cat >>conftest.
$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202 $ac_includes_default
4203 long longval () { return (long) (sizeof (short)); }
4204 unsigned long ulongval () { return (long) (sizeof (short)); }
4211 FILE *f = fopen ("conftest.val", "w");
4214 if (((long) (sizeof (short))) < 0)
4216 long i = longval ();
4217 if (i != ((long) (sizeof (short))))
4219 fprintf (f, "%ld\n", i);
4223 unsigned long i = ulongval ();
4224 if (i != ((long) (sizeof (short))))
4226 fprintf (f, "%lu\n", i);
4228 exit (ferror (f) || fclose (f) != 0);
4234 rm -f conftest
$ac_exeext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_sizeof_short
=`cat conftest.val`
4247 echo "$as_me: program exited with status $ac_status" >&5
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.
$ac_ext >&5
4252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4253 See \`config.log' for more details." >&5
4254 echo "$as_me: error: cannot compute sizeof (short), 77
4255 See \`config.log' for more details." >&2;}
4256 { (exit 1); exit 1; }; }
4258 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4263 ac_cv_sizeof_short
=0
4266 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4267 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4268 cat >>confdefs.h
<<_ACEOF
4269 #define SIZEOF_SHORT $ac_cv_sizeof_short
4273 echo "$as_me:$LINENO: checking for int" >&5
4274 echo $ECHO_N "checking for int... $ECHO_C" >&6
4275 if test "${ac_cv_type_int+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 cat >conftest.
$ac_ext <<_ACEOF
4281 cat confdefs.h
>>conftest.
$ac_ext
4282 cat >>conftest.
$ac_ext <<_ACEOF
4283 /* end confdefs.h. */
4284 $ac_includes_default
4296 rm -f conftest.
$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4300 grep -v '^ *+' conftest.er1
>conftest.err
4302 cat conftest.err
>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try
='test -z "$ac_c_werror_flag"
4306 || test ! -s conftest.err'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; } &&
4312 { ac_try
='test -s conftest.$ac_objext'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.
$ac_ext >&5
4325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4327 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4328 echo "${ECHO_T}$ac_cv_type_int" >&6
4330 echo "$as_me:$LINENO: checking size of int" >&5
4331 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4332 if test "${ac_cv_sizeof_int+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 if test "$ac_cv_type_int" = yes; then
4336 # The cast to unsigned long works around a bug in the HP C Compiler
4337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4339 # This bug is HP SR number 8606223364.
4340 if test "$cross_compiling" = yes; then
4341 # Depending upon the size, compute the lo and hi bounds.
4342 cat >conftest.
$ac_ext <<_ACEOF
4345 cat confdefs.h
>>conftest.
$ac_ext
4346 cat >>conftest.
$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4352 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4359 rm -f conftest.
$ac_objext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4361 (eval $ac_compile) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -z "$ac_c_werror_flag"
4369 || test ! -s conftest.err'
4370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; } &&
4375 { ac_try
='test -s conftest.$ac_objext'
4376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; }; then
4383 cat >conftest.
$ac_ext <<_ACEOF
4386 cat confdefs.h
>>conftest.
$ac_ext
4387 cat >>conftest.
$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 $ac_includes_default
4393 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4400 rm -f conftest.
$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1
>conftest.err
4406 cat conftest.err
>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try
='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try
='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_hi
=$ac_mid; break
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.
$ac_ext >&5
4427 ac_lo
=`expr $ac_mid + 1`
4428 if test $ac_lo -le $ac_mid; then
4432 ac_mid
=`expr 2 '*' $ac_mid + 1`
4434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.
$ac_ext >&5
4440 cat >conftest.
$ac_ext <<_ACEOF
4443 cat confdefs.h
>>conftest.
$ac_ext
4444 cat >>conftest.
$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4450 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4457 rm -f conftest.
$ac_objext
4458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4459 (eval $ac_compile) 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try
='test -z "$ac_c_werror_flag"
4467 || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try
='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4481 cat >conftest.
$ac_ext <<_ACEOF
4484 cat confdefs.h
>>conftest.
$ac_ext
4485 cat >>conftest.
$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4487 $ac_includes_default
4491 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4498 rm -f conftest.
$ac_objext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>conftest.er1
4502 grep -v '^ *+' conftest.er1
>conftest.err
4504 cat conftest.err
>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } &&
4507 { ac_try
='test -z "$ac_c_werror_flag"
4508 || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try
='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 ac_lo
=$ac_mid; break
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.
$ac_ext >&5
4525 ac_hi
=`expr '(' $ac_mid ')' - 1`
4526 if test $ac_mid -le $ac_hi; then
4530 ac_mid
=`expr 2 '*' $ac_mid`
4532 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4535 echo "$as_me: failed program was:" >&5
4536 sed 's/^/| /' conftest.
$ac_ext >&5
4540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4542 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4543 # Binary search between lo and hi bounds.
4544 while test "x$ac_lo" != "x$ac_hi"; do
4545 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4546 cat >conftest.
$ac_ext <<_ACEOF
4549 cat confdefs.h
>>conftest.
$ac_ext
4550 cat >>conftest.
$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4552 $ac_includes_default
4556 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4563 rm -f conftest.
$ac_objext
4564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4567 grep -v '^ *+' conftest.er1
>conftest.err
4569 cat conftest.err
>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try
='test -z "$ac_c_werror_flag"
4573 || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try
='test -s conftest.$ac_objext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.
$ac_ext >&5
4590 ac_lo
=`expr '(' $ac_mid ')' + 1`
4592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4595 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4596 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4597 See \`config.log' for more details." >&5
4598 echo "$as_me: error: cannot compute sizeof (int), 77
4599 See \`config.log' for more details." >&2;}
4600 { (exit 1); exit 1; }; } ;;
4603 if test "$cross_compiling" = yes; then
4604 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot run test program while cross compiling
4607 See \`config.log' for more details." >&2;}
4608 { (exit 1); exit 1; }; }
4610 cat >conftest.
$ac_ext <<_ACEOF
4613 cat confdefs.h
>>conftest.
$ac_ext
4614 cat >>conftest.
$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 $ac_includes_default
4617 long longval () { return (long) (sizeof (int)); }
4618 unsigned long ulongval () { return (long) (sizeof (int)); }
4625 FILE *f = fopen ("conftest.val", "w");
4628 if (((long) (sizeof (int))) < 0)
4630 long i = longval ();
4631 if (i != ((long) (sizeof (int))))
4633 fprintf (f, "%ld\n", i);
4637 unsigned long i = ulongval ();
4638 if (i != ((long) (sizeof (int))))
4640 fprintf (f, "%lu\n", i);
4642 exit (ferror (f) || fclose (f) != 0);
4648 rm -f conftest
$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 ac_cv_sizeof_int
=`cat conftest.val`
4661 echo "$as_me: program exited with status $ac_status" >&5
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.
$ac_ext >&5
4666 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4667 See \`config.log' for more details." >&5
4668 echo "$as_me: error: cannot compute sizeof (int), 77
4669 See \`config.log' for more details." >&2;}
4670 { (exit 1); exit 1; }; }
4672 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4681 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4682 cat >>confdefs.h
<<_ACEOF
4683 #define SIZEOF_INT $ac_cv_sizeof_int
4687 echo "$as_me:$LINENO: checking for long" >&5
4688 echo $ECHO_N "checking for long... $ECHO_C" >&6
4689 if test "${ac_cv_type_long+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 cat >conftest.
$ac_ext <<_ACEOF
4695 cat confdefs.h
>>conftest.
$ac_ext
4696 cat >>conftest.
$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4698 $ac_includes_default
4710 rm -f conftest.
$ac_objext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712 (eval $ac_compile) 2>conftest.er1
4714 grep -v '^ *+' conftest.er1
>conftest.err
4716 cat conftest.err
>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try
='test -z "$ac_c_werror_flag"
4720 || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try
='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4739 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4741 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4742 echo "${ECHO_T}$ac_cv_type_long" >&6
4744 echo "$as_me:$LINENO: checking size of long" >&5
4745 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4746 if test "${ac_cv_sizeof_long+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test "$ac_cv_type_long" = yes; then
4750 # The cast to unsigned long works around a bug in the HP C Compiler
4751 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4752 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4753 # This bug is HP SR number 8606223364.
4754 if test "$cross_compiling" = yes; then
4755 # Depending upon the size, compute the lo and hi bounds.
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 $ac_includes_default
4766 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4773 rm -f conftest.
$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>conftest.er1
4777 grep -v '^ *+' conftest.er1
>conftest.err
4779 cat conftest.err
>&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } &&
4782 { ac_try
='test -z "$ac_c_werror_flag"
4783 || test ! -s conftest.err'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; } &&
4789 { ac_try
='test -s conftest.$ac_objext'
4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4797 cat >conftest.
$ac_ext <<_ACEOF
4800 cat confdefs.h
>>conftest.
$ac_ext
4801 cat >>conftest.
$ac_ext <<_ACEOF
4802 /* end confdefs.h. */
4803 $ac_includes_default
4807 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4814 rm -f conftest.
$ac_objext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1
>conftest.err
4820 cat conftest.err
>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try
='test -z "$ac_c_werror_flag"
4824 || test ! -s conftest.err'
4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); }; } &&
4830 { ac_try
='test -s conftest.$ac_objext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_hi
=$ac_mid; break
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.
$ac_ext >&5
4841 ac_lo
=`expr $ac_mid + 1`
4842 if test $ac_lo -le $ac_mid; then
4846 ac_mid
=`expr 2 '*' $ac_mid + 1`
4848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.
$ac_ext >&5
4854 cat >conftest.
$ac_ext <<_ACEOF
4857 cat confdefs.h
>>conftest.
$ac_ext
4858 cat >>conftest.
$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4871 rm -f conftest.
$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try
='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4895 cat >conftest.
$ac_ext <<_ACEOF
4898 cat confdefs.h
>>conftest.
$ac_ext
4899 cat >>conftest.
$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 $ac_includes_default
4905 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4912 rm -f conftest.
$ac_objext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>conftest.er1
4916 grep -v '^ *+' conftest.er1
>conftest.err
4918 cat conftest.err
>&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try
='test -z "$ac_c_werror_flag"
4922 || test ! -s conftest.err'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; } &&
4928 { ac_try
='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_lo
=$ac_mid; break
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.
$ac_ext >&5
4939 ac_hi
=`expr '(' $ac_mid ')' - 1`
4940 if test $ac_mid -le $ac_hi; then
4944 ac_mid
=`expr 2 '*' $ac_mid`
4946 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.
$ac_ext >&5
4954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4956 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4957 # Binary search between lo and hi bounds.
4958 while test "x$ac_lo" != "x$ac_hi"; do
4959 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4960 cat >conftest.
$ac_ext <<_ACEOF
4963 cat confdefs.h
>>conftest.
$ac_ext
4964 cat >>conftest.
$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4970 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4977 rm -f conftest.
$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979 (eval $ac_compile) 2>conftest.er1
4981 grep -v '^ *+' conftest.er1
>conftest.err
4983 cat conftest.err
>&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); } &&
4986 { ac_try
='test -z "$ac_c_werror_flag"
4987 || test ! -s conftest.err'
4988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); }; } &&
4993 { ac_try
='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.
$ac_ext >&5
5004 ac_lo
=`expr '(' $ac_mid ')' + 1`
5006 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5009 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5010 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5011 See \`config.log' for more details." >&5
5012 echo "$as_me: error: cannot compute sizeof (long), 77
5013 See \`config.log' for more details." >&2;}
5014 { (exit 1); exit 1; }; } ;;
5017 if test "$cross_compiling" = yes; then
5018 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: cannot run test program while cross compiling
5021 See \`config.log' for more details." >&2;}
5022 { (exit 1); exit 1; }; }
5024 cat >conftest.
$ac_ext <<_ACEOF
5027 cat confdefs.h
>>conftest.
$ac_ext
5028 cat >>conftest.
$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5031 long longval () { return (long) (sizeof (long)); }
5032 unsigned long ulongval () { return (long) (sizeof (long)); }
5039 FILE *f = fopen ("conftest.val", "w");
5042 if (((long) (sizeof (long))) < 0)
5044 long i = longval ();
5045 if (i != ((long) (sizeof (long))))
5047 fprintf (f, "%ld\n", i);
5051 unsigned long i = ulongval ();
5052 if (i != ((long) (sizeof (long))))
5054 fprintf (f, "%lu\n", i);
5056 exit (ferror (f) || fclose (f) != 0);
5062 rm -f conftest
$ac_exeext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5064 (eval $ac_link) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_cv_sizeof_long
=`cat conftest.val`
5075 echo "$as_me: program exited with status $ac_status" >&5
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.
$ac_ext >&5
5080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5081 See \`config.log' for more details." >&5
5082 echo "$as_me: error: cannot compute sizeof (long), 77
5083 See \`config.log' for more details." >&2;}
5084 { (exit 1); exit 1; }; }
5086 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5094 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5095 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5096 cat >>confdefs.h
<<_ACEOF
5097 #define SIZEOF_LONG $ac_cv_sizeof_long
5101 echo "$as_me:$LINENO: checking for long long" >&5
5102 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5103 if test "${ac_cv_type_long_long+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.
$ac_ext <<_ACEOF
5109 cat confdefs.h
>>conftest.
$ac_ext
5110 cat >>conftest.
$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5116 if ((long long *) 0)
5118 if (sizeof (long long))
5124 rm -f conftest.
$ac_objext
5125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5126 (eval $ac_compile) 2>conftest.er1
5128 grep -v '^ *+' conftest.er1
>conftest.err
5130 cat conftest.err
>&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try
='test -z "$ac_c_werror_flag"
5134 || test ! -s conftest.err'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; } &&
5140 { ac_try
='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 ac_cv_type_long_long
=yes
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.
$ac_ext >&5
5151 ac_cv_type_long_long
=no
5153 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5156 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5157 if test $ac_cv_type_long_long = yes; then
5159 cat >>confdefs.h
<<_ACEOF
5160 #define HAVE_LONG_LONG 1
5163 echo "$as_me:$LINENO: checking for long long" >&5
5164 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5165 if test "${ac_cv_type_long_long+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.
$ac_ext <<_ACEOF
5171 cat confdefs.h
>>conftest.
$ac_ext
5172 cat >>conftest.
$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5178 if ((long long *) 0)
5180 if (sizeof (long long))
5186 rm -f conftest.
$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>conftest.er1
5190 grep -v '^ *+' conftest.er1
>conftest.err
5192 cat conftest.err
>&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
5195 { ac_try
='test -z "$ac_c_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try
='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_type_long_long
=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.
$ac_ext >&5
5213 ac_cv_type_long_long
=no
5215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5218 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5220 echo "$as_me:$LINENO: checking size of long long" >&5
5221 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5222 if test "${ac_cv_sizeof_long_long+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 if test "$ac_cv_type_long_long" = yes; then
5226 # The cast to unsigned long works around a bug in the HP C Compiler
5227 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5228 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5229 # This bug is HP SR number 8606223364.
5230 if test "$cross_compiling" = yes; then
5231 # Depending upon the size, compute the lo and hi bounds.
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 cat confdefs.h
>>conftest.
$ac_ext
5236 cat >>conftest.
$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5242 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5249 rm -f conftest.
$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1
>conftest.err
5255 cat conftest.err
>&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try
='test -z "$ac_c_werror_flag"
5259 || test ! -s conftest.err'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try
='test -s conftest.$ac_objext'
5266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); }; }; then
5273 cat >conftest.
$ac_ext <<_ACEOF
5276 cat confdefs.h
>>conftest.
$ac_ext
5277 cat >>conftest.
$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5279 $ac_includes_default
5283 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5290 rm -f conftest.
$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292 (eval $ac_compile) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1
>conftest.err
5296 cat conftest.err
>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -z "$ac_c_werror_flag"
5300 || test ! -s conftest.err'
5301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; } &&
5306 { ac_try
='test -s conftest.$ac_objext'
5307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); }; }; then
5312 ac_hi
=$ac_mid; break
5314 echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.
$ac_ext >&5
5317 ac_lo
=`expr $ac_mid + 1`
5318 if test $ac_lo -le $ac_mid; then
5322 ac_mid
=`expr 2 '*' $ac_mid + 1`
5324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.
$ac_ext >&5
5330 cat >conftest.
$ac_ext <<_ACEOF
5333 cat confdefs.h
>>conftest.
$ac_ext
5334 cat >>conftest.
$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 $ac_includes_default
5340 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5347 rm -f conftest.
$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>conftest.er1
5351 grep -v '^ *+' conftest.er1
>conftest.err
5353 cat conftest.err
>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try
='test -z "$ac_c_werror_flag"
5357 || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try
='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5371 cat >conftest.
$ac_ext <<_ACEOF
5374 cat confdefs.h
>>conftest.
$ac_ext
5375 cat >>conftest.
$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5381 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5388 rm -f conftest.
$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1
>conftest.err
5394 cat conftest.err
>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try
='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try
='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_lo
=$ac_mid; break
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.
$ac_ext >&5
5415 ac_hi
=`expr '(' $ac_mid ')' - 1`
5416 if test $ac_mid -le $ac_hi; then
5420 ac_mid
=`expr 2 '*' $ac_mid`
5422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5432 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 # Binary search between lo and hi bounds.
5434 while test "x$ac_lo" != "x$ac_hi"; do
5435 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5436 cat >conftest.
$ac_ext <<_ACEOF
5439 cat confdefs.h
>>conftest.
$ac_ext
5440 cat >>conftest.
$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 $ac_includes_default
5446 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5453 rm -f conftest.
$ac_objext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5455 (eval $ac_compile) 2>conftest.er1
5457 grep -v '^ *+' conftest.er1
>conftest.err
5459 cat conftest.err
>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try
='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try
='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.
$ac_ext >&5
5480 ac_lo
=`expr '(' $ac_mid ')' + 1`
5482 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5485 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5486 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5487 See \`config.log' for more details." >&5
5488 echo "$as_me: error: cannot compute sizeof (long long), 77
5489 See \`config.log' for more details." >&2;}
5490 { (exit 1); exit 1; }; } ;;
5493 if test "$cross_compiling" = yes; then
5494 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot run test program while cross compiling
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; }
5500 cat >conftest.
$ac_ext <<_ACEOF
5503 cat confdefs.h
>>conftest.
$ac_ext
5504 cat >>conftest.
$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5507 long longval () { return (long) (sizeof (long long)); }
5508 unsigned long ulongval () { return (long) (sizeof (long long)); }
5515 FILE *f = fopen ("conftest.val", "w");
5518 if (((long) (sizeof (long long))) < 0)
5520 long i = longval ();
5521 if (i != ((long) (sizeof (long long))))
5523 fprintf (f, "%ld\n", i);
5527 unsigned long i = ulongval ();
5528 if (i != ((long) (sizeof (long long))))
5530 fprintf (f, "%lu\n", i);
5532 exit (ferror (f) || fclose (f) != 0);
5538 rm -f conftest
$ac_exeext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5540 (eval $ac_link) 2>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_sizeof_long_long
=`cat conftest.val`
5551 echo "$as_me: program exited with status $ac_status" >&5
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5556 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5557 See \`config.log' for more details." >&5
5558 echo "$as_me: error: cannot compute sizeof (long long), 77
5559 See \`config.log' for more details." >&2;}
5560 { (exit 1); exit 1; }; }
5562 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5567 ac_cv_sizeof_long_long
=0
5570 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5571 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5572 cat >>confdefs.h
<<_ACEOF
5573 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5579 echo "$as_me:$LINENO: checking for __int64" >&5
5580 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5581 if test "${ac_cv_type___int64+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 cat >conftest.
$ac_ext <<_ACEOF
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 $ac_includes_default
5596 if (sizeof (__int64))
5602 rm -f conftest.
$ac_objext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5604 (eval $ac_compile) 2>conftest.er1
5606 grep -v '^ *+' conftest.er1
>conftest.err
5608 cat conftest.err
>&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } &&
5611 { ac_try
='test -z "$ac_c_werror_flag"
5612 || test ! -s conftest.err'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; } &&
5618 { ac_try
='test -s conftest.$ac_objext'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
5624 ac_cv_type___int64
=yes
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.
$ac_ext >&5
5629 ac_cv_type___int64
=no
5631 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5633 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5634 echo "${ECHO_T}$ac_cv_type___int64" >&6
5635 if test $ac_cv_type___int64 = yes; then
5637 cat >>confdefs.h
<<_ACEOF
5638 #define HAVE___INT64 1
5641 echo "$as_me:$LINENO: checking for __int64" >&5
5642 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5643 if test "${ac_cv_type___int64+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.
$ac_ext <<_ACEOF
5649 cat confdefs.h
>>conftest.
$ac_ext
5650 cat >>conftest.
$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 $ac_includes_default
5658 if (sizeof (__int64))
5664 rm -f conftest.
$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>conftest.er1
5668 grep -v '^ *+' conftest.er1
>conftest.err
5670 cat conftest.err
>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try
='test -z "$ac_c_werror_flag"
5674 || test ! -s conftest.err'
5675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try
='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_type___int64
=yes
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5691 ac_cv_type___int64
=no
5693 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5696 echo "${ECHO_T}$ac_cv_type___int64" >&6
5698 echo "$as_me:$LINENO: checking size of __int64" >&5
5699 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5700 if test "${ac_cv_sizeof___int64+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 if test "$ac_cv_type___int64" = yes; then
5704 # The cast to unsigned long works around a bug in the HP C Compiler
5705 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5706 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5707 # This bug is HP SR number 8606223364.
5708 if test "$cross_compiling" = yes; then
5709 # Depending upon the size, compute the lo and hi bounds.
5710 cat >conftest.
$ac_ext <<_ACEOF
5713 cat confdefs.h
>>conftest.
$ac_ext
5714 cat >>conftest.
$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 $ac_includes_default
5720 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5727 rm -f conftest.
$ac_objext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1
>conftest.err
5733 cat conftest.err
>&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try
='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try
='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5751 cat >conftest.
$ac_ext <<_ACEOF
5754 cat confdefs.h
>>conftest.
$ac_ext
5755 cat >>conftest.
$ac_ext <<_ACEOF
5756 /* end confdefs.h. */
5757 $ac_includes_default
5761 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5768 rm -f conftest.
$ac_objext
5769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>conftest.er1
5772 grep -v '^ *+' conftest.er1
>conftest.err
5774 cat conftest.err
>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try
='test -z "$ac_c_werror_flag"
5778 || test ! -s conftest.err'
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try
='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5790 ac_hi
=$ac_mid; break
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5795 ac_lo
=`expr $ac_mid + 1`
5796 if test $ac_lo -le $ac_mid; then
5800 ac_mid
=`expr 2 '*' $ac_mid + 1`
5802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.
$ac_ext >&5
5808 cat >conftest.
$ac_ext <<_ACEOF
5811 cat confdefs.h
>>conftest.
$ac_ext
5812 cat >>conftest.
$ac_ext <<_ACEOF
5813 /* end confdefs.h. */
5814 $ac_includes_default
5818 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5825 rm -f conftest.
$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try
='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5849 cat >conftest.
$ac_ext <<_ACEOF
5852 cat confdefs.h
>>conftest.
$ac_ext
5853 cat >>conftest.
$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 $ac_includes_default
5859 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5866 rm -f conftest.
$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try
='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try
='test -s conftest.$ac_objext'
5883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
5888 ac_lo
=$ac_mid; break
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.
$ac_ext >&5
5893 ac_hi
=`expr '(' $ac_mid ')' - 1`
5894 if test $ac_mid -le $ac_hi; then
5898 ac_mid
=`expr 2 '*' $ac_mid`
5900 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.
$ac_ext >&5
5908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5910 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 # Binary search between lo and hi bounds.
5912 while test "x$ac_lo" != "x$ac_hi"; do
5913 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5914 cat >conftest.
$ac_ext <<_ACEOF
5917 cat confdefs.h
>>conftest.
$ac_ext
5918 cat >>conftest.
$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 $ac_includes_default
5924 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5931 rm -f conftest.
$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try
='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try
='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.
$ac_ext >&5
5958 ac_lo
=`expr '(' $ac_mid ')' + 1`
5960 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5963 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5964 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5965 See \`config.log' for more details." >&5
5966 echo "$as_me: error: cannot compute sizeof (__int64), 77
5967 See \`config.log' for more details." >&2;}
5968 { (exit 1); exit 1; }; } ;;
5971 if test "$cross_compiling" = yes; then
5972 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot run test program while cross compiling
5975 See \`config.log' for more details." >&2;}
5976 { (exit 1); exit 1; }; }
5978 cat >conftest.
$ac_ext <<_ACEOF
5981 cat confdefs.h
>>conftest.
$ac_ext
5982 cat >>conftest.
$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 long longval () { return (long) (sizeof (__int64)); }
5986 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5993 FILE *f = fopen ("conftest.val", "w");
5996 if (((long) (sizeof (__int64))) < 0)
5998 long i = longval ();
5999 if (i != ((long) (sizeof (__int64))))
6001 fprintf (f, "%ld\n", i);
6005 unsigned long i = ulongval ();
6006 if (i != ((long) (sizeof (__int64))))
6008 fprintf (f, "%lu\n", i);
6010 exit (ferror (f) || fclose (f) != 0);
6016 rm -f conftest
$ac_exeext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6018 (eval $ac_link) 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6027 ac_cv_sizeof___int64
=`cat conftest.val`
6029 echo "$as_me: program exited with status $ac_status" >&5
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.
$ac_ext >&5
6034 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6035 See \`config.log' for more details." >&5
6036 echo "$as_me: error: cannot compute sizeof (__int64), 77
6037 See \`config.log' for more details." >&2;}
6038 { (exit 1); exit 1; }; }
6040 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6045 ac_cv_sizeof___int64
=0
6048 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6049 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6050 cat >>confdefs.h
<<_ACEOF
6051 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6058 # ---------------------
6059 # Warnings and checking
6060 # ---------------------
6062 # Check $CC warning features (if it's GCC).
6063 # We want to use -pedantic, but we don't want warnings about
6066 # * overlong strings
6067 # So, we only use -pedantic if we can disable those warnings.
6069 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6070 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6071 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 save_CFLAGS
="$CFLAGS"
6075 CFLAGS
="-Wno-long-long"
6076 cat >conftest.
$ac_ext <<_ACEOF
6079 cat confdefs.h
>>conftest.
$ac_ext
6080 cat >>conftest.
$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6084 rm -f conftest.
$ac_objext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
6088 grep -v '^ *+' conftest.er1
>conftest.err
6090 cat conftest.err
>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
6093 { ac_try
='test -z "$ac_c_werror_flag"
6094 || test ! -s conftest.err'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; } &&
6100 { ac_try
='test -s conftest.$ac_objext'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6106 ac_cv_prog_cc_w_no_long_long
=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.
$ac_ext >&5
6111 ac_cv_prog_cc_w_no_long_long
=no
6113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6114 CFLAGS
="$save_CFLAGS"
6117 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6118 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6120 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6121 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6122 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 save_CFLAGS
="$CFLAGS"
6126 CFLAGS
="-Wno-variadic-macros"
6127 cat >conftest.
$ac_ext <<_ACEOF
6130 cat confdefs.h
>>conftest.
$ac_ext
6131 cat >>conftest.
$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6135 rm -f conftest.
$ac_objext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6137 (eval $ac_compile) 2>conftest.er1
6139 grep -v '^ *+' conftest.er1
>conftest.err
6141 cat conftest.err
>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try
='test -z "$ac_c_werror_flag"
6145 || test ! -s conftest.err'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; } &&
6151 { ac_try
='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_cv_prog_cc_w_no_variadic_macros
=yes
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.
$ac_ext >&5
6162 ac_cv_prog_cc_w_no_variadic_macros
=no
6164 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6165 CFLAGS
="$save_CFLAGS"
6168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6169 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6171 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6172 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6173 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 save_CFLAGS
="$CFLAGS"
6177 CFLAGS
="-Wno-overlength-strings"
6178 cat >conftest.
$ac_ext <<_ACEOF
6181 cat confdefs.h
>>conftest.
$ac_ext
6182 cat >>conftest.
$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6186 rm -f conftest.
$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
6190 grep -v '^ *+' conftest.er1
>conftest.err
6192 cat conftest.err
>&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try
='test -z "$ac_c_werror_flag"
6196 || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try
='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_prog_cc_w_no_overlength_strings
=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.
$ac_ext >&5
6213 ac_cv_prog_cc_w_no_overlength_strings
=no
6215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 CFLAGS
="$save_CFLAGS"
6219 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6220 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6223 if test $ac_cv_prog_cc_w_no_long_long = yes \
6224 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6225 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6226 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6229 # Add -Wold-style-definition if it's accepted
6230 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6231 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6232 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 save_CFLAGS
="$CFLAGS"
6236 CFLAGS
="-Wold-style-definition"
6237 cat >conftest.
$ac_ext <<_ACEOF
6240 cat confdefs.h
>>conftest.
$ac_ext
6241 cat >>conftest.
$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6245 rm -f conftest.
$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1
>conftest.err
6251 cat conftest.err
>&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try
='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try
='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_cv_prog_cc_w_old_style_definition
=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.
$ac_ext >&5
6272 ac_cv_prog_cc_w_old_style_definition
=no
6274 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6275 CFLAGS
="$save_CFLAGS"
6278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6279 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6280 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6281 strict1_warn
="${strict1_warn} -Wold-style-definition"
6284 # Add -Wmissing-format-attribute if it's accepted
6285 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6286 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6287 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 save_CFLAGS
="$CFLAGS"
6291 CFLAGS
="-Wmissing-format-attribute"
6292 cat >conftest.
$ac_ext <<_ACEOF
6295 cat confdefs.h
>>conftest.
$ac_ext
6296 cat >>conftest.
$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6300 rm -f conftest.
$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302 (eval $ac_compile) 2>conftest.er1
6304 grep -v '^ *+' conftest.er1
>conftest.err
6306 cat conftest.err
>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try
='test -z "$ac_c_werror_flag"
6310 || test ! -s conftest.err'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; } &&
6316 { ac_try
='test -s conftest.$ac_objext'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6322 ac_cv_prog_cc_w_missing_format_attribute
=yes
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6327 ac_cv_prog_cc_w_missing_format_attribute
=no
6329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6330 CFLAGS
="$save_CFLAGS"
6333 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6334 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6335 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6336 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6339 # Enable -Werror, period.
6340 # Check whether --enable-werror_always or --disable-werror_always was given.
6341 if test "${enable_werror_always+set}" = set; then
6342 enableval
="$enable_werror_always"
6345 enable_werror_always
=no
6347 if test x
${enable_werror_always} = xyes
; then
6348 strict1_warn
="${strict1_warn} -Werror"
6354 # Get C++ compatibility warning flag, if supported.
6355 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6356 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6357 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 save_CFLAGS
="$CFLAGS"
6361 CFLAGS
="-Wc++-compat"
6362 cat >conftest.
$ac_ext <<_ACEOF
6365 cat confdefs.h
>>conftest.
$ac_ext
6366 cat >>conftest.
$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6370 rm -f conftest.
$ac_objext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372 (eval $ac_compile) 2>conftest.er1
6374 grep -v '^ *+' conftest.er1
>conftest.err
6376 cat conftest.err
>&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try
='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try
='test -s conftest.$ac_objext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_prog_cc_w_cxx_compat
=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.
$ac_ext >&5
6397 ac_cv_prog_cc_w_cxx_compat
=no
6399 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6400 CFLAGS
="$save_CFLAGS"
6403 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6404 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6405 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6406 cxx_compat_warn
="-Wc++-compat"
6411 # If the native compiler is GCC, we can enable warnings even in stage1.
6412 # That's useful for people building cross-compilers, or just running a
6415 if test "x$GCC" = "xyes"; then
6416 warn_cflags
='$(GCC_WARN_CFLAGS)'
6420 # Enable -Werror in bootstrap stage2 and later.
6422 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6425 # Check whether --enable-werror or --disable-werror was given.
6426 if test "${enable_werror+set}" = set; then
6427 enableval
="$enable_werror"
6430 if test x
$is_release = x
; then
6431 # Default to "yes" on development branches.
6434 # Default to "no" on release branches.
6438 if test x
$enable_werror = xyes
; then
6443 # Enable expensive internal checks
6444 # Check whether --enable-checking or --disable-checking was given.
6445 if test "${enable_checking+set}" = set; then
6446 enableval
="$enable_checking"
6447 ac_checking_flags
="${enableval}"
6450 # Determine the default checks.
6451 if test x
$is_release = x
; then
6452 ac_checking_flags
=yes
6454 ac_checking_flags
=release
6457 ac_assert_checking
=1
6461 ac_gc_always_collect
=
6463 ac_rtlflag_checking
=
6464 ac_runtime_checking
=1
6466 ac_valgrind_checking
=
6467 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6468 for check
in $ac_checking_flags
6471 # these set all the flags to specific states
6472 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6473 ac_fold_checking
= ; ac_gc_checking
=1 ;
6474 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6475 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6476 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6477 no|none
) ac_assert_checking
= ; ac_checking
= ;
6478 ac_fold_checking
= ; ac_gc_checking
= ;
6479 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6480 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6481 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6482 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6483 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6484 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6485 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6486 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6487 release
) ac_assert_checking
=1 ; ac_checking
= ;
6488 ac_fold_checking
= ; ac_gc_checking
= ;
6489 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6490 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6491 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6492 # these enable particular checks
6493 assert
) ac_assert_checking
=1 ;;
6494 fold) ac_fold_checking
=1 ;;
6495 gc
) ac_gc_checking
=1 ;;
6496 gcac
) ac_gc_always_collect
=1 ;;
6497 misc
) ac_checking
=1 ;;
6498 rtl
) ac_rtl_checking
=1 ;;
6499 rtlflag
) ac_rtlflag_checking
=1 ;;
6500 runtime
) ac_runtime_checking
=1 ;;
6501 tree
) ac_tree_checking
=1 ;;
6502 valgrind
) ac_valgrind_checking
=1 ;;
6503 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6504 echo "$as_me: error: unknown check category $check" >&2;}
6505 { (exit 1); exit 1; }; } ;;
6511 if test x
$ac_checking != x
; then
6513 cat >>confdefs.h
<<\_ACEOF
6514 #define ENABLE_CHECKING 1
6517 nocommon_flag
=-fno-common
6520 if test x
$ac_assert_checking != x
; then
6522 cat >>confdefs.h
<<\_ACEOF
6523 #define ENABLE_ASSERT_CHECKING 1
6528 if test x
$ac_runtime_checking != x
; then
6530 cat >>confdefs.h
<<\_ACEOF
6531 #define ENABLE_RUNTIME_CHECKING 1
6535 if test x
$ac_tree_checking != x
; then
6537 cat >>confdefs.h
<<\_ACEOF
6538 #define ENABLE_TREE_CHECKING 1
6541 TREEBROWSER
=tree-browser.o
6544 if test x
$ac_rtl_checking != x
; then
6546 cat >>confdefs.h
<<\_ACEOF
6547 #define ENABLE_RTL_CHECKING 1
6551 if test x
$ac_rtlflag_checking != x
; then
6553 cat >>confdefs.h
<<\_ACEOF
6554 #define ENABLE_RTL_FLAG_CHECKING 1
6558 if test x
$ac_gc_checking != x
; then
6560 cat >>confdefs.h
<<\_ACEOF
6561 #define ENABLE_GC_CHECKING 1
6565 if test x
$ac_gc_always_collect != x
; then
6567 cat >>confdefs.h
<<\_ACEOF
6568 #define ENABLE_GC_ALWAYS_COLLECT 1
6572 if test x
$ac_fold_checking != x
; then
6574 cat >>confdefs.h
<<\_ACEOF
6575 #define ENABLE_FOLD_CHECKING 1
6579 valgrind_path_defines
=
6582 if test "${ac_cv_header_valgrind_h+set}" = set; then
6583 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6584 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6585 if test "${ac_cv_header_valgrind_h+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6589 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6591 # Is the header compilable?
6592 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6593 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6594 cat >conftest.
$ac_ext <<_ACEOF
6597 cat confdefs.h
>>conftest.
$ac_ext
6598 cat >>conftest.
$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 #include <valgrind.h>
6603 rm -f conftest.
$ac_objext
6604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6605 (eval $ac_compile) 2>conftest.er1
6607 grep -v '^ *+' conftest.er1
>conftest.err
6609 cat conftest.err
>&5
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try
='test -z "$ac_c_werror_flag"
6613 || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try
='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6625 ac_header_compiler
=yes
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.
$ac_ext >&5
6630 ac_header_compiler
=no
6632 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6634 echo "${ECHO_T}$ac_header_compiler" >&6
6636 # Is the header present?
6637 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6638 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6639 cat >conftest.
$ac_ext <<_ACEOF
6642 cat confdefs.h
>>conftest.
$ac_ext
6643 cat >>conftest.
$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <valgrind.h>
6647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6648 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6650 grep -v '^ *+' conftest.er1
>conftest.err
6652 cat conftest.err
>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } >/dev
/null
; then
6655 if test -s conftest.err
; then
6656 ac_cpp_err
=$ac_c_preproc_warn_flag
6657 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6664 if test -z "$ac_cpp_err"; then
6665 ac_header_preproc
=yes
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.
$ac_ext >&5
6670 ac_header_preproc
=no
6672 rm -f conftest.err conftest.
$ac_ext
6673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6674 echo "${ECHO_T}$ac_header_preproc" >&6
6676 # So? What about this header?
6677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6679 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6680 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6681 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6682 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6683 ac_header_preproc
=yes
6686 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6687 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6688 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6689 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6691 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6693 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6695 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6697 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6700 ## ------------------------------------------ ##
6701 ## Report this to the AC_PACKAGE_NAME lists. ##
6702 ## ------------------------------------------ ##
6705 sed "s/^/$as_me: WARNING: /" >&2
6708 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6709 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6710 if test "${ac_cv_header_valgrind_h+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_header_valgrind_h
=$ac_header_preproc
6715 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6716 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6719 if test $ac_cv_header_valgrind_h = yes; then
6727 if test x
$ac_valgrind_checking != x
; then
6728 # It is certainly possible that there's valgrind but no valgrind.h.
6729 # GCC relies on making annotations so we must have both.
6730 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6731 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6732 cat >conftest.
$ac_ext <<_ACEOF
6735 cat confdefs.h
>>conftest.
$ac_ext
6736 cat >>conftest.
$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <valgrind/memcheck.h>
6739 #ifndef VALGRIND_DISCARD
6740 #error VALGRIND_DISCARD not defined
6743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6744 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6746 grep -v '^ *+' conftest.er1
>conftest.err
6748 cat conftest.err
>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev
/null
; then
6751 if test -s conftest.err
; then
6752 ac_cpp_err
=$ac_c_preproc_warn_flag
6753 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6760 if test -z "$ac_cpp_err"; then
6761 gcc_cv_header_valgrind_memcheck_h
=yes
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.
$ac_ext >&5
6766 gcc_cv_header_valgrind_memcheck_h
=no
6768 rm -f conftest.err conftest.
$ac_ext
6769 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6770 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6771 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6772 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6773 cat >conftest.
$ac_ext <<_ACEOF
6776 cat confdefs.h
>>conftest.
$ac_ext
6777 cat >>conftest.
$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 #include <memcheck.h>
6780 #ifndef VALGRIND_DISCARD
6781 #error VALGRIND_DISCARD not defined
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6787 grep -v '^ *+' conftest.er1
>conftest.err
6789 cat conftest.err
>&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } >/dev
/null
; then
6792 if test -s conftest.err
; then
6793 ac_cpp_err
=$ac_c_preproc_warn_flag
6794 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6801 if test -z "$ac_cpp_err"; then
6802 gcc_cv_header_memcheck_h
=yes
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.
$ac_ext >&5
6807 gcc_cv_header_memcheck_h
=no
6809 rm -f conftest.err conftest.
$ac_ext
6810 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6811 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6813 # Prepare PATH_SEPARATOR.
6814 # The user is always right.
6815 if test "${PATH_SEPARATOR+set}" != set; then
6816 echo "#! /bin/sh" >conf$$.sh
6817 echo "exit 0" >>conf$$.sh
6819 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6827 # Find out how to test for executable files. Don't use a zero-byte file,
6828 # as systems may use methods other than mode bits to determine executability.
6829 cat >conf$$.
file <<_ASEOF
6833 chmod +x conf$$.
file
6834 if test -x conf$$.
file >/dev
/null
2>&1; then
6835 ac_executable_p
="test -x"
6837 ac_executable_p
="test -f"
6841 # Extract the first word of "valgrind", so it can be a program name with args.
6842 set dummy valgrind
; ac_word
=$2
6843 echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6845 if test "${ac_cv_path_valgrind_path+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 case "$valgrind_path" in
6850 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6853 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6854 for ac_dir
in $PATH; do
6856 test -z "$ac_dir" && ac_dir
=.
6857 for ac_exec_ext
in '' $ac_executable_extensions; do
6858 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6859 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6860 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6870 valgrind_path
="$ac_cv_path_valgrind_path"
6871 if test -n "$valgrind_path"; then
6872 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6873 echo "${ECHO_T}$valgrind_path" >&6
6875 echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6
6879 if test "x$valgrind_path" = "x" \
6880 ||
(test $have_valgrind_h = no \
6881 && test $gcc_cv_header_memcheck_h = no \
6882 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6883 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6884 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6885 { (exit 1); exit 1; }; }
6887 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6888 valgrind_command
="$valgrind_path -q"
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define ENABLE_VALGRIND_CHECKING 1
6894 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6896 cat >>confdefs.h
<<\_ACEOF
6897 #define HAVE_VALGRIND_MEMCHECK_H 1
6901 if test $gcc_cv_header_memcheck_h = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define HAVE_MEMCHECK_H 1
6912 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6913 if test "${enable_mapped_location+set}" = set; then
6914 enableval
="$enable_mapped_location"
6917 enable_mapped_location
=no
6920 if test "$enable_mapped_location" = yes ; then
6922 cat >>confdefs.h
<<\_ACEOF
6923 #define USE_MAPPED_LOCATION 1
6928 # Enable code coverage collection
6929 # Check whether --enable-coverage or --disable-coverage was given.
6930 if test "${enable_coverage+set}" = set; then
6931 enableval
="$enable_coverage"
6932 case "${enableval}" in
6934 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6937 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6940 # a.k.a. --disable-coverage
6944 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6945 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6946 { (exit 1); exit 1; }; }
6954 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6955 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6956 enableval
="$enable_gather_detailed_mem_stats"
6959 enable_gather_detailed_mem_stats
=no
6961 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6963 cat >>confdefs.h
<<\_ACEOF
6964 #define GATHER_STATISTICS 1
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6975 # Check whether --with-stabs or --without-stabs was given.
6976 if test "${with_stabs+set}" = set; then
6977 withval
="$with_stabs"
6983 # Determine whether or not multilibs are enabled.
6984 # Check whether --enable-multilib or --disable-multilib was given.
6985 if test "${enable_multilib+set}" = set; then
6986 enableval
="$enable_multilib"
6993 # Enable __cxa_atexit for C++.
6994 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6995 if test "${enable___cxa_atexit+set}" = set; then
6996 enableval
="$enable___cxa_atexit"
7000 # Enable C extension for decimal float if target supports it.
7001 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7002 if test "${enable_decimal_float+set}" = set; then
7003 enableval
="$enable_decimal_float"
7005 if test x
$enablevar = xyes
; then
7007 powerpc
*-*-linux* | i?
86*-*-linux*)
7008 enable_decimal_float
=yes
7011 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7012 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7013 enable_decimal_float
=no
7019 enable_decimal_float
=no
7024 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7026 cat >>confdefs.h
<<_ACEOF
7027 #define ENABLE_DECIMAL_FLOAT $dfp
7032 # Pass with no value to take the default
7033 # Pass with a value to specify a thread package
7034 # Check whether --enable-threads or --disable-threads was given.
7035 if test "${enable_threads+set}" = set; then
7036 enableval
="$enable_threads"
7042 # Check whether --enable-tls or --disable-tls was given.
7043 if test "${enable_tls+set}" = set; then
7044 enableval
="$enable_tls"
7048 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7049 Valid choices are 'yes' and 'no'." >&5
7050 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7051 Valid choices are 'yes' and 'no'." >&2;}
7052 { (exit 1); exit 1; }; } ;;
7059 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7060 if test "${enable_objc_gc+set}" = set; then
7061 enableval
="$enable_objc_gc"
7062 if test x
$enable_objc_gc = xno
; then
7072 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7073 if test "${with_dwarf2+set}" = set; then
7074 withval
="$with_dwarf2"
7075 dwarf2
="$with_dwarf2"
7080 # Check whether --enable-shared or --disable-shared was given.
7081 if test "${enable_shared+set}" = set; then
7082 enableval
="$enable_shared"
7084 case $enable_shared in
7088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7089 for pkg
in $enableval; do
7090 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7104 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7105 if test "${with_build_sysroot+set}" = set; then
7106 withval
="$with_build_sysroot"
7111 # Check whether --with-sysroot or --without-sysroot was given.
7112 if test "${with_sysroot+set}" = set; then
7113 withval
="$with_sysroot"
7115 case ${with_sysroot} in
7116 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7117 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7120 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7121 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7123 if test "x$exec_prefix" = xNONE
; then
7124 if test "x$prefix" = xNONE
; then
7125 test_prefix
=/usr
/local
7130 test_prefix
=$exec_prefix
7132 case ${TARGET_SYSTEM_ROOT} in
7133 "${test_prefix}"|
"${test_prefix}/"*|\
7134 '${exec_prefix}'|
'${exec_prefix}/'*)
7135 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7136 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7143 TARGET_SYSTEM_ROOT_DEFINE
=
7144 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7151 # Build with intermodule optimisations
7152 # Check whether --enable-intermodule or --disable-intermodule was given.
7153 if test "${enable_intermodule+set}" = set; then
7154 enableval
="$enable_intermodule"
7155 case ${enable_intermodule} in
7156 yes) onestep
="-onestep";;
7164 # Sanity check enable_languages in case someone does not run the toplevel
7165 # configure # script.
7166 # Check whether --enable-languages or --disable-languages was given.
7167 if test "${enable_languages+set}" = set; then
7168 enableval
="$enable_languages"
7169 case ,${enable_languages}, in
7171 # go safe -- we cannot be much sure without the toplevel
7173 # analysis of which target libs are present and usable
7177 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7178 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7179 { (exit 1); exit 1; }; }
7184 enable_languages
=c
,${enable_languages}
7192 # -------------------------
7193 # Checks for other programs
7194 # -------------------------
7196 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7197 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7198 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7199 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.
make <<\_ACEOF
7204 @
echo 'ac_maketemp="$(MAKE)"'
7206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7207 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7208 if test -n "$ac_maketemp"; then
7209 eval ac_cv_prog_make_
${ac_make}_set
=yes
7211 eval ac_cv_prog_make_
${ac_make}_set
=no
7215 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217 echo "${ECHO_T}yes" >&6
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7222 SET_MAKE
="MAKE=${MAKE-make}"
7226 # Find some useful tools
7227 for ac_prog
in gawk mawk nawk
awk
7229 # Extract the first word of "$ac_prog", so it can be a program name with args.
7230 set dummy
$ac_prog; ac_word
=$2
7231 echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7233 if test "${ac_cv_prog_AWK+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7236 if test -n "$AWK"; then
7237 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7243 test -z "$as_dir" && as_dir
=.
7244 for ac_exec_ext
in '' $ac_executable_extensions; do
7245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_AWK
="$ac_prog"
7247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 if test -n "$AWK"; then
7257 echo "$as_me:$LINENO: result: $AWK" >&5
7258 echo "${ECHO_T}$AWK" >&6
7260 echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6
7264 test -n "$AWK" && break
7267 # We need awk to create options.c and options.h.
7268 # Bail out if it's missing.
7270 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7271 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7272 { (exit 1); exit 1; }; } ;;
7275 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7276 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7277 if test "${gcc_cv_prog_LN_S+set}" = set; then
7278 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 rm -f conftestdata_t
7281 echo >conftestdata_f
7282 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7284 gcc_cv_prog_LN_S
="ln -s"
7286 if ln conftestdata_f conftestdata_t
2>/dev
/null
7290 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7292 gcc_cv_prog_LN_S
="cp -p"
7298 rm -f conftestdata_f conftestdata_t
7301 LN_S
="$gcc_cv_prog_LN_S"
7302 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7303 echo "$as_me:$LINENO: result: yes" >&5
7304 echo "${ECHO_T}yes" >&6
7306 if test "$gcc_cv_prog_LN_S" = "ln"; then
7307 echo "$as_me:$LINENO: result: no, using ln" >&5
7308 echo "${ECHO_T}no, using ln" >&6
7310 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7311 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7315 echo "$as_me:$LINENO: checking whether ln works" >&5
7316 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7317 if test "${acx_cv_prog_LN+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 rm -f conftestdata_t
7321 echo >conftestdata_f
7322 if ln conftestdata_f conftestdata_t
2>/dev
/null
7328 rm -f conftestdata_f conftestdata_t
7331 if test $acx_cv_prog_LN = no
; then
7333 echo "$as_me:$LINENO: result: no, using $LN" >&5
7334 echo "${ECHO_T}no, using $LN" >&6
7336 LN
="$acx_cv_prog_LN"
7337 echo "$as_me:$LINENO: result: yes" >&5
7338 echo "${ECHO_T}yes" >&6
7341 if test -n "$ac_tool_prefix"; then
7342 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7343 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7344 echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7346 if test "${ac_cv_prog_RANLIB+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 if test -n "$RANLIB"; then
7350 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7356 test -z "$as_dir" && as_dir
=.
7357 for ac_exec_ext
in '' $ac_executable_extensions; do
7358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 RANLIB
=$ac_cv_prog_RANLIB
7369 if test -n "$RANLIB"; then
7370 echo "$as_me:$LINENO: result: $RANLIB" >&5
7371 echo "${ECHO_T}$RANLIB" >&6
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7378 if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB
=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381 set dummy ranlib
; ac_word
=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir
=.
7395 for ac_exec_ext
in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7407 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7408 if test -n "$ac_ct_RANLIB"; then
7409 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7412 echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7416 RANLIB
=$ac_ct_RANLIB
7418 RANLIB
="$ac_cv_prog_RANLIB"
7423 # By default, the Darwin ranlib will not treat common symbols as
7424 # definitions when building the archive table of contents. Other
7425 # ranlibs do that; pass an option to the Darwin ranlib that makes
7426 # it behave similarly.
7434 # Find a good install program. We prefer a C program (faster),
7435 # so one script is as good as another. But avoid the broken or
7436 # incompatible versions:
7437 # SysV /etc/install, /usr/sbin/install
7438 # SunOS /usr/etc/install
7439 # IRIX /sbin/install
7441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7443 # ./install, which can be erroneously created by make from ./install.sh.
7444 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7445 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7446 if test -z "$INSTALL"; then
7447 if test "${ac_cv_path_install+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7451 for ac_dir
in $PATH; do
7452 # Account for people who put trailing slashes in PATH elements.
7454 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7456 # OSF1 and SCO ODT 3.0 have their own names for install.
7457 for ac_prog
in ginstall scoinst
install; do
7458 if test -f $ac_dir/$ac_prog; then
7459 if test $ac_prog = install &&
7460 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7461 # AIX install. It has an incompatible calling convention.
7462 # OSF/1 installbsd also uses dspmsg, but is usable.
7465 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7476 if test "${ac_cv_path_install+set}" = set; then
7477 INSTALL
="$ac_cv_path_install"
7479 # As a last resort, use the slow shell script. We don't cache a
7480 # path for INSTALL within a source directory, because that will
7481 # break other packages using the cache if that directory is
7482 # removed, or if the path is relative.
7483 INSTALL
="$ac_install_sh"
7486 echo "$as_me:$LINENO: result: $INSTALL" >&5
7487 echo "${ECHO_T}$INSTALL" >&6
7489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7490 # It thinks the first close brace ends the variable substitution.
7491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7493 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7496 # See if cmp has --ignore-initial.
7497 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7498 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7499 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 gcc_cv_prog_cmp_skip
=slowcompare
7505 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7506 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7509 gcc_cv_prog_cmp_skip
=gnucompare
7512 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7513 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7514 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7517 gcc_cv_prog_cmp_skip
=fastcompare
7524 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7525 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7526 make_compare_target
=$gcc_cv_prog_cmp_skip
7530 # See if we have the mktemp command.
7531 # Extract the first word of "mktemp", so it can be a program name with args.
7532 set dummy mktemp
; ac_word
=$2
7533 echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 if test -n "$have_mktemp_command"; then
7539 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7545 test -z "$as_dir" && as_dir
=.
7546 for ac_exec_ext
in '' $ac_executable_extensions; do
7547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_have_mktemp_command
="yes"
7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7558 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7559 if test -n "$have_mktemp_command"; then
7560 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7561 echo "${ECHO_T}$have_mktemp_command" >&6
7563 echo "$as_me:$LINENO: result: no" >&5
7564 echo "${ECHO_T}no" >&6
7568 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7570 # See if makeinfo has been installed and is modern enough
7571 # that we can use it.
7573 ac_executable_extensions
="$build_exeext"
7575 # Extract the first word of "makeinfo", so it can be a program name with args.
7576 set dummy makeinfo
; ac_word
=$2
7577 echo "$as_me:$LINENO: checking for $ac_word" >&5
7578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 if test -n "$MAKEINFO"; then
7583 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7589 test -z "$as_dir" && as_dir
=.
7590 for ac_exec_ext
in '' $ac_executable_extensions; do
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_MAKEINFO
="makeinfo"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 MAKEINFO
=$ac_cv_prog_MAKEINFO
7602 if test -n "$MAKEINFO"; then
7603 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7604 echo "${ECHO_T}$MAKEINFO" >&6
7606 echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7610 if test -n "$MAKEINFO"; then
7611 # Found it, now check the version.
7612 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7613 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7614 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7618 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7619 echo "configure:7619: version of makeinfo is $ac_prog_version" >&5
7620 case $ac_prog_version in
7621 '') gcc_cv_prog_makeinfo_modern
=no
;;
7623 gcc_cv_prog_makeinfo_modern
=yes;;
7624 *) gcc_cv_prog_makeinfo_modern
=no
;;
7628 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7629 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7631 gcc_cv_prog_makeinfo_modern
=no
7634 if test $gcc_cv_prog_makeinfo_modern = no
; then
7635 MAKEINFO
="$MISSING makeinfo"
7636 { echo "$as_me:$LINENO: WARNING:
7637 *** Makeinfo is missing or too old.
7638 *** Info documentation will not be built." >&5
7639 echo "$as_me: WARNING:
7640 *** Makeinfo is missing or too old.
7641 *** Info documentation will not be built." >&2;}
7648 # Is pod2man recent enough to regenerate manpages?
7649 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7650 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7651 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7652 echo "$as_me:$LINENO: result: yes" >&5
7653 echo "${ECHO_T}yes" >&6
7654 GENERATED_MANPAGES
=generated-manpages
7656 echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7665 # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy
$ac_prog; ac_word
=$2
7667 echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7669 if test "${ac_cv_prog_FLEX+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 if test -n "$FLEX"; then
7673 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir
=.
7680 for ac_exec_ext
in '' $ac_executable_extensions; do
7681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_FLEX
="$ac_prog"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 FLEX
=$ac_cv_prog_FLEX
7692 if test -n "$FLEX"; then
7693 echo "$as_me:$LINENO: result: $FLEX" >&5
7694 echo "${ECHO_T}$FLEX" >&6
7696 echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6
7700 test -n "$FLEX" && break
7702 test -n "$FLEX" || FLEX
="$MISSING flex"
7706 for ac_prog
in bison
7708 # Extract the first word of "$ac_prog", so it can be a program name with args.
7709 set dummy
$ac_prog; ac_word
=$2
7710 echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712 if test "${ac_cv_prog_BISON+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 if test -n "$BISON"; then
7716 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir
=.
7723 for ac_exec_ext
in '' $ac_executable_extensions; do
7724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_BISON
="$ac_prog"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 BISON
=$ac_cv_prog_BISON
7735 if test -n "$BISON"; then
7736 echo "$as_me:$LINENO: result: $BISON" >&5
7737 echo "${ECHO_T}$BISON" >&6
7739 echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6
7743 test -n "$BISON" && break
7745 test -n "$BISON" || BISON
="$MISSING bison"
7748 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7749 # check for build == host before using them.
7752 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7753 && test -d ..
/binutils
; then
7754 NM
='$(objdir)/../binutils/nm-new'
7756 # Extract the first word of "nm", so it can be a program name with args.
7757 set dummy nm
; ac_word
=$2
7758 echo "$as_me:$LINENO: checking for $ac_word" >&5
7759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7760 if test "${ac_cv_prog_NM+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 if test -n "$NM"; then
7764 ac_cv_prog_NM
="$NM" # Let the user override the test.
7766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7770 test -z "$as_dir" && as_dir
=.
7771 for ac_exec_ext
in '' $ac_executable_extensions; do
7772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7784 if test -n "$NM"; then
7785 echo "$as_me:$LINENO: result: $NM" >&5
7786 echo "${ECHO_T}$NM" >&6
7788 echo "$as_me:$LINENO: result: no" >&5
7789 echo "${ECHO_T}no" >&6
7795 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7796 && test -d ..
/binutils
; then
7797 AR
='$(objdir)/../binutils/ar'
7799 # Extract the first word of "ar", so it can be a program name with args.
7800 set dummy
ar; ac_word
=$2
7801 echo "$as_me:$LINENO: checking for $ac_word" >&5
7802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7803 if test "${ac_cv_prog_AR+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 if test -n "$AR"; then
7807 ac_cv_prog_AR
="$AR" # Let the user override the test.
7809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7813 test -z "$as_dir" && as_dir
=.
7814 for ac_exec_ext
in '' $ac_executable_extensions; do
7815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7827 if test -n "$AR"; then
7828 echo "$as_me:$LINENO: result: $AR" >&5
7829 echo "${ECHO_T}$AR" >&6
7831 echo "$as_me:$LINENO: result: no" >&5
7832 echo "${ECHO_T}no" >&6
7838 # --------------------
7839 # Checks for C headers
7840 # --------------------
7842 echo "$as_me:$LINENO: checking for GNU C library" >&5
7843 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7844 if test "${gcc_cv_glibc+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 cat >conftest.
$ac_ext <<_ACEOF
7850 cat confdefs.h
>>conftest.
$ac_ext
7851 cat >>conftest.
$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7853 #include <features.h>
7858 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7859 #error Not a GNU C library system
7865 rm -f conftest.
$ac_objext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7867 (eval $ac_compile) 2>conftest.er1
7869 grep -v '^ *+' conftest.er1
>conftest.err
7871 cat conftest.err
>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try
='test -z "$ac_c_werror_flag"
7875 || test ! -s conftest.err'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try
='test -s conftest.$ac_objext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.
$ac_ext >&5
7894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7897 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7898 echo "${ECHO_T}$gcc_cv_glibc" >&6
7899 if test $gcc_cv_glibc = yes; then
7901 cat >>confdefs.h
<<\_ACEOF
7902 #define _GNU_SOURCE 1
7907 # Need to reject headers which give warnings, so that the -Werror bootstrap
7908 # works later. *sigh* This needs to come before all header checks.
7910 ac_c_preproc_warn_flag
=yes
7912 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7913 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7914 if test "${ac_cv_header_stdc+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 cat >conftest.
$ac_ext <<_ACEOF
7920 cat confdefs.h
>>conftest.
$ac_ext
7921 cat >>conftest.
$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7936 rm -f conftest.
$ac_objext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try
='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try
='test -s conftest.$ac_objext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_cv_header_stdc
=yes
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.
$ac_ext >&5
7963 ac_cv_header_stdc
=no
7965 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat >conftest.
$ac_ext <<_ACEOF
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7979 $EGREP "memchr" >/dev
/null
2>&1; then
7982 ac_cv_header_stdc
=no
7988 if test $ac_cv_header_stdc = yes; then
7989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7990 cat >conftest.
$ac_ext <<_ACEOF
7993 cat confdefs.h
>>conftest.
$ac_ext
7994 cat >>conftest.
$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000 $EGREP "free" >/dev
/null
2>&1; then
8003 ac_cv_header_stdc
=no
8009 if test $ac_cv_header_stdc = yes; then
8010 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8011 if test "$cross_compiling" = yes; then
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 #if ((' ' & 0x0FF) == 0x020)
8022 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8023 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8025 # define ISLOWER(c) \
8026 (('a' <= (c) && (c) <= 'i') \
8027 || ('j' <= (c) && (c) <= 'r') \
8028 || ('s' <= (c) && (c) <= 'z'))
8029 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8032 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8037 for (i = 0; i < 256; i++)
8038 if (XOR (islower (i), ISLOWER (i))
8039 || toupper (i) != TOUPPER (i))
8044 rm -f conftest
$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8057 echo "$as_me: program exited with status $ac_status" >&5
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.
$ac_ext >&5
8062 ac_cv_header_stdc
=no
8064 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8069 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8070 if test $ac_cv_header_stdc = yes; then
8072 cat >>confdefs.h
<<\_ACEOF
8073 #define STDC_HEADERS 1
8078 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8079 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8080 if test "${ac_cv_header_time+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.
$ac_ext <<_ACEOF
8086 cat confdefs.h
>>conftest.
$ac_ext
8087 cat >>conftest.
$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 #include <sys/types.h>
8090 #include <sys/time.h>
8096 if ((struct tm *) 0)
8102 rm -f conftest.
$ac_objext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8104 (eval $ac_compile) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1
>conftest.err
8108 cat conftest.err
>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try
='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try
='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_header_time
=yes
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.
$ac_ext >&5
8129 ac_cv_header_time
=no
8131 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8133 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8134 echo "${ECHO_T}$ac_cv_header_time" >&6
8135 if test $ac_cv_header_time = yes; then
8137 cat >>confdefs.h
<<\_ACEOF
8138 #define TIME_WITH_SYS_TIME 1
8143 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8144 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8145 if test "${gcc_cv_header_string+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8155 #include <strings.h>
8164 rm -f conftest.
$ac_objext
8165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8166 (eval $ac_compile) 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try
='test -z "$ac_c_werror_flag"
8174 || test ! -s conftest.err'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try
='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 gcc_cv_header_string
=yes
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.
$ac_ext >&5
8191 gcc_cv_header_string
=no
8193 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8195 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8196 echo "${ECHO_T}$gcc_cv_header_string" >&6
8197 if test $gcc_cv_header_string = yes; then
8199 cat >>confdefs.h
<<\_ACEOF
8200 #define STRING_WITH_STRINGS 1
8205 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8206 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8207 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.
$ac_ext <<_ACEOF
8213 cat confdefs.h
>>conftest.
$ac_ext
8214 cat >>conftest.
$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 #include <sys/types.h>
8217 #include <sys/wait.h>
8219 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8222 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8230 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8235 rm -f conftest.
$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>conftest.er1
8239 grep -v '^ *+' conftest.er1
>conftest.err
8241 cat conftest.err
>&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try
='test -z "$ac_c_werror_flag"
8245 || test ! -s conftest.err'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; } &&
8251 { ac_try
='test -s conftest.$ac_objext'
8252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 ac_cv_header_sys_wait_h
=yes
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.
$ac_ext >&5
8262 ac_cv_header_sys_wait_h
=no
8264 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8267 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8268 if test $ac_cv_header_sys_wait_h = yes; then
8270 cat >>confdefs.h
<<\_ACEOF
8271 #define HAVE_SYS_WAIT_H 1
8298 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8299 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8300 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8301 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8303 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8304 echo "$as_me:$LINENO: checking for $ac_header" >&5
8305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8307 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 cat >conftest.
$ac_ext <<_ACEOF
8312 cat confdefs.h
>>conftest.
$ac_ext
8313 cat >>conftest.
$ac_ext <<_ACEOF
8314 /* end confdefs.h. */
8315 #include <$ac_header>
8317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8318 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8320 grep -v '^ *+' conftest.er1
>conftest.err
8322 cat conftest.err
>&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } >/dev
/null
; then
8325 if test -s conftest.err
; then
8326 ac_cpp_err
=$ac_c_preproc_warn_flag
8327 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8334 if test -z "$ac_cpp_err"; then
8335 eval "$as_ac_Header=yes"
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.
$ac_ext >&5
8340 eval "$as_ac_Header=no"
8342 rm -f conftest.err conftest.
$ac_ext
8344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8347 cat >>confdefs.h
<<_ACEOF
8348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8355 # Check for thread headers.
8356 echo "$as_me:$LINENO: checking for thread.h" >&5
8357 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8358 if test "${ac_cv_header_thread_h+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. */
8369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8370 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8372 grep -v '^ *+' conftest.er1
>conftest.err
8374 cat conftest.err
>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } >/dev
/null
; then
8377 if test -s conftest.err
; then
8378 ac_cpp_err
=$ac_c_preproc_warn_flag
8379 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8386 if test -z "$ac_cpp_err"; then
8387 ac_cv_header_thread_h
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_header_thread_h
=no
8394 rm -f conftest.err conftest.
$ac_ext
8396 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8397 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8398 if test $ac_cv_header_thread_h = yes; then
8404 echo "$as_me:$LINENO: checking for pthread.h" >&5
8405 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8406 if test "${ac_cv_header_pthread_h+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 cat >conftest.
$ac_ext <<_ACEOF
8412 cat confdefs.h
>>conftest.
$ac_ext
8413 cat >>conftest.
$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8415 #include <pthread.h>
8417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8418 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8420 grep -v '^ *+' conftest.er1
>conftest.err
8422 cat conftest.err
>&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } >/dev
/null
; then
8425 if test -s conftest.err
; then
8426 ac_cpp_err
=$ac_c_preproc_warn_flag
8427 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8434 if test -z "$ac_cpp_err"; then
8435 ac_cv_header_pthread_h
=yes
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.
$ac_ext >&5
8440 ac_cv_header_pthread_h
=no
8442 rm -f conftest.err conftest.
$ac_ext
8444 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8445 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8446 if test $ac_cv_header_pthread_h = yes; then
8453 # These tests can't be done till we know if we have limits.h.
8454 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8455 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8456 if test "${gcc_cv_decl_char_bit+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 cat >conftest.
$ac_ext <<_ACEOF
8462 cat confdefs.h
>>conftest.
$ac_ext
8463 cat >>conftest.
$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 #ifdef HAVE_LIMITS_H
8472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8473 $EGREP "found" >/dev
/null
2>&1; then
8474 gcc_cv_decl_char_bit
=yes
8476 gcc_cv_decl_char_bit
=no
8482 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8483 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8484 if test $gcc_cv_decl_char_bit = no
; then
8485 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8486 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8487 if test "${gcc_cv_c_nbby+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 while test $i -lt 65; do
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8504 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8505 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8511 rm -f conftest.
$ac_objext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>conftest.er1
8515 grep -v '^ *+' conftest.er1
>conftest.err
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try
='test -z "$ac_c_werror_flag"
8521 || test ! -s conftest.err'
8522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); }; } &&
8527 { ac_try
='test -s conftest.$ac_objext'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; }; then
8533 gcc_cv_c_nbby
=$i; break
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8539 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8542 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8545 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8546 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8547 if test $gcc_cv_c_nbby = failed
; then
8548 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8549 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8550 { (exit 1); exit 1; }; }
8553 cat >>confdefs.h
<<_ACEOF
8554 #define CHAR_BIT $gcc_cv_c_nbby
8559 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8560 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8561 if test "${ac_cv_c_bigendian+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 # See if sys/param.h defines the BYTE_ORDER macro.
8565 cat >conftest.
$ac_ext <<_ACEOF
8568 cat confdefs.h
>>conftest.
$ac_ext
8569 cat >>conftest.
$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 #include <sys/types.h>
8572 #include <sys/param.h>
8577 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8585 rm -f conftest.
$ac_objext
8586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8587 (eval $ac_compile) 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try
='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try
='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 # It does; now see whether it defined to BIG_ENDIAN or not.
8608 cat >conftest.
$ac_ext <<_ACEOF
8611 cat confdefs.h
>>conftest.
$ac_ext
8612 cat >>conftest.
$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <sys/types.h>
8615 #include <sys/param.h>
8620 #if BYTE_ORDER != BIG_ENDIAN
8628 rm -f conftest.
$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8632 grep -v '^ *+' conftest.er1
>conftest.err
8634 cat conftest.err
>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try
='test -z "$ac_c_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try
='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8650 ac_cv_c_bigendian
=yes
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.
$ac_ext >&5
8655 ac_cv_c_bigendian
=no
8657 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.
$ac_ext >&5
8662 # It does not; compile a test program.
8663 if test "$cross_compiling" = yes; then
8664 # try to guess the endianness by grepping values into an object file
8665 ac_cv_c_bigendian
=unknown
8666 cat >conftest.
$ac_ext <<_ACEOF
8669 cat confdefs.h
>>conftest.
$ac_ext
8670 cat >>conftest.
$ac_ext <<_ACEOF
8671 /* end confdefs.h. */
8672 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8673 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8674 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8675 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8676 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8677 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8681 _ascii (); _ebcdic ();
8686 rm -f conftest.
$ac_objext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8688 (eval $ac_compile) 2>conftest.er1
8690 grep -v '^ *+' conftest.er1
>conftest.err
8692 cat conftest.err
>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } &&
8695 { ac_try
='test -z "$ac_c_werror_flag"
8696 || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try
='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8709 ac_cv_c_bigendian
=yes
8711 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8712 if test "$ac_cv_c_bigendian" = unknown
; then
8713 ac_cv_c_bigendian
=no
8715 # finding both strings is unlikely to happen, but who knows?
8716 ac_cv_c_bigendian
=unknown
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.
$ac_ext >&5
8724 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 cat >conftest.
$ac_ext <<_ACEOF
8729 cat confdefs.h
>>conftest.
$ac_ext
8730 cat >>conftest.
$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8735 /* Are we little or big endian? From Harbison&Steele. */
8739 char c[sizeof (long)];
8742 exit (u.c[sizeof (long) - 1] == 1);
8745 rm -f conftest
$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747 (eval $ac_link) 2>&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_cv_c_bigendian
=no
8758 echo "$as_me: program exited with status $ac_status" >&5
8759 echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.
$ac_ext >&5
8763 ac_cv_c_bigendian
=yes
8765 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8771 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8772 case $ac_cv_c_bigendian in
8775 cat >>confdefs.h
<<\_ACEOF
8776 #define WORDS_BIGENDIAN 1
8782 { { echo "$as_me:$LINENO: error: unknown endianness
8783 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8784 echo "$as_me: error: unknown endianness
8785 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8786 { (exit 1); exit 1; }; } ;;
8794 # Stage specific cflags for build.
8798 if test x
$GCC = xyes
8800 stage1_cflags
="-Wa,-J"
8806 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8807 # sources; use -no-cpp-precomp to get to GNU cpp.
8808 # Apple's GCC has bugs in designated initializer handling, so disable
8810 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8815 # These libraries may be used by collect2.
8816 # We may need a special search path to get them linked.
8817 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8818 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8819 if test "${gcc_cv_collect2_libs+set}" = set; then
8820 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 for libs
in '' -lld -lmld \
8824 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8825 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8828 cat >conftest.
$ac_ext <<_ACEOF
8831 cat confdefs.h
>>conftest.
$ac_ext
8832 cat >>conftest.
$ac_ext <<_ACEOF
8833 /* end confdefs.h. */
8835 /* Override any gcc2 internal prototype to avoid an error. */
8839 /* We use char because int might match the return type of a gcc2
8840 builtin and then its argument prototype would still apply. */
8850 rm -f conftest.
$ac_objext conftest
$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852 (eval $ac_link) 2>conftest.er1
8854 grep -v '^ *+' conftest.er1
>conftest.err
8856 cat conftest.err
>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try
='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try
='test -s conftest$ac_exeext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 gcc_cv_collect2_libs
="$libs"; break
8874 echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.
$ac_ext >&5
8878 rm -f conftest.err conftest.
$ac_objext \
8879 conftest
$ac_exeext conftest.
$ac_ext
8882 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8884 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8885 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8886 case $gcc_cv_collect2_libs in
8888 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8892 # When building Ada code on Alpha, we need exc_resume which is usually in
8893 # -lexc. So test for it.
8896 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8897 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8898 if test "${ac_cv_search_exc_resume+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 ac_func_search_save_LIBS
=$LIBS
8902 ac_cv_search_exc_resume
=no
8903 cat >conftest.
$ac_ext <<_ACEOF
8906 cat confdefs.h
>>conftest.
$ac_ext
8907 cat >>conftest.
$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8910 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8925 rm -f conftest.
$ac_objext conftest
$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927 (eval $ac_link) 2>conftest.er1
8929 grep -v '^ *+' conftest.er1
>conftest.err
8931 cat conftest.err
>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try
='test -z "$ac_c_werror_flag"
8935 || test ! -s conftest.err'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; } &&
8941 { ac_try
='test -s conftest$ac_exeext'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_search_exc_resume
="none required"
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8953 rm -f conftest.err conftest.
$ac_objext \
8954 conftest
$ac_exeext conftest.
$ac_ext
8955 if test "$ac_cv_search_exc_resume" = no
; then
8956 for ac_lib
in exc
; do
8957 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8958 cat >conftest.
$ac_ext <<_ACEOF
8961 cat confdefs.h
>>conftest.
$ac_ext
8962 cat >>conftest.
$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8965 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8980 rm -f conftest.
$ac_objext conftest
$ac_exeext
8981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982 (eval $ac_link) 2>conftest.er1
8984 grep -v '^ *+' conftest.er1
>conftest.err
8986 cat conftest.err
>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try
='test -z "$ac_c_werror_flag"
8990 || test ! -s conftest.err'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; } &&
8996 { ac_try
='test -s conftest$ac_exeext'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 ac_cv_search_exc_resume
="-l$ac_lib"
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.
$ac_ext >&5
9009 rm -f conftest.err conftest.
$ac_objext \
9010 conftest
$ac_exeext conftest.
$ac_ext
9013 LIBS
=$ac_func_search_save_LIBS
9015 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9016 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9017 if test "$ac_cv_search_exc_resume" != no
; then
9018 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9026 # Some systems put ldexp and frexp in libm instead of libc; assume
9027 # they're both in the same place. jcf-dump needs them.
9030 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9031 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9032 if test "${ac_cv_search_ldexp+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_func_search_save_LIBS
=$LIBS
9036 ac_cv_search_ldexp
=no
9037 cat >conftest.
$ac_ext <<_ACEOF
9040 cat confdefs.h
>>conftest.
$ac_ext
9041 cat >>conftest.
$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9044 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9059 rm -f conftest.
$ac_objext conftest
$ac_exeext
9060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>conftest.er1
9063 grep -v '^ *+' conftest.er1
>conftest.err
9065 cat conftest.err
>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try
='test -z "$ac_c_werror_flag"
9069 || test ! -s conftest.err'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; } &&
9075 { ac_try
='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 ac_cv_search_ldexp
="none required"
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.
$ac_ext >&5
9087 rm -f conftest.err conftest.
$ac_objext \
9088 conftest
$ac_exeext conftest.
$ac_ext
9089 if test "$ac_cv_search_ldexp" = no
; then
9091 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9092 cat >conftest.
$ac_ext <<_ACEOF
9095 cat confdefs.h
>>conftest.
$ac_ext
9096 cat >>conftest.
$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9099 /* Override any gcc2 internal prototype to avoid an error. */
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9114 rm -f conftest.
$ac_objext conftest
$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9118 grep -v '^ *+' conftest.er1
>conftest.err
9120 cat conftest.err
>&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try
='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try
='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_search_ldexp
="-l$ac_lib"
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9143 rm -f conftest.err conftest.
$ac_objext \
9144 conftest
$ac_exeext conftest.
$ac_ext
9147 LIBS
=$ac_func_search_save_LIBS
9149 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9150 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9151 if test "$ac_cv_search_ldexp" != no
; then
9152 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9160 # Use <inttypes.h> only if it exists,
9161 # doesn't clash with <sys/types.h>, and declares intmax_t.
9162 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9163 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9164 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 cat >conftest.
$ac_ext <<_ACEOF
9170 cat confdefs.h
>>conftest.
$ac_ext
9171 cat >>conftest.
$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 #include <sys/types.h>
9174 #include <inttypes.h>
9183 rm -f conftest.
$ac_objext
9184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185 (eval $ac_compile) 2>conftest.er1
9187 grep -v '^ *+' conftest.er1
>conftest.err
9189 cat conftest.err
>&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); } &&
9192 { ac_try
='test -z "$ac_c_werror_flag"
9193 || test ! -s conftest.err'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; } &&
9199 { ac_try
='test -s conftest.$ac_objext'
9200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); }; }; then
9205 gcc_cv_header_inttypes_h
=yes
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.
$ac_ext >&5
9210 gcc_cv_header_inttypes_h
=no
9212 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9215 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9216 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9217 if test $gcc_cv_header_inttypes_h = yes; then
9219 cat >>confdefs.h
<<\_ACEOF
9220 #define HAVE_INTTYPES_H 1
9262 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9263 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9264 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9265 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
9267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_var+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 cat >conftest.
$ac_ext <<_ACEOF
9276 cat confdefs.h
>>conftest.
$ac_ext
9277 cat >>conftest.
$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define $ac_func innocuous_$ac_func
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9289 # include <limits.h>
9291 # include <assert.h>
9296 /* Override any gcc2 internal prototype to avoid an error. */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9310 char (*f) () = $ac_func;
9319 return f != $ac_func;
9324 rm -f conftest.
$ac_objext conftest
$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9328 grep -v '^ *+' conftest.er1
>conftest.err
9330 cat conftest.err
>&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try
='test -z "$ac_c_werror_flag"
9334 || test ! -s conftest.err'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; } &&
9340 { ac_try
='test -s conftest$ac_exeext'
9341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); }; }; then
9346 eval "$as_ac_var=yes"
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.
$ac_ext >&5
9351 eval "$as_ac_var=no"
9353 rm -f conftest.err conftest.
$ac_objext \
9354 conftest
$ac_exeext conftest.
$ac_ext
9356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9358 if test `eval echo '${'$as_ac_var'}'` = yes; then
9359 cat >>confdefs.h
<<_ACEOF
9360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9367 if test x
$ac_cv_func_mbstowcs = xyes
; then
9368 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9369 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9370 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 if test "$cross_compiling" = yes; then
9374 gcc_cv_func_mbstowcs_works
=yes
9376 cat >conftest.
$ac_ext <<_ACEOF
9379 cat confdefs.h
>>conftest.
$ac_ext
9380 cat >>conftest.
$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9389 rm -f conftest
$ac_exeext
9390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9391 (eval $ac_link) 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 gcc_cv_func_mbstowcs_works
=yes
9402 echo "$as_me: program exited with status $ac_status" >&5
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9407 gcc_cv_func_mbstowcs_works
=no
9409 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9412 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9413 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9414 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9416 cat >>confdefs.h
<<\_ACEOF
9417 #define HAVE_WORKING_MBSTOWCS 1
9423 echo "$as_me:$LINENO: checking for ssize_t" >&5
9424 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9425 if test "${ac_cv_type_ssize_t+set}" = set; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 cat >conftest.
$ac_ext <<_ACEOF
9431 cat confdefs.h
>>conftest.
$ac_ext
9432 cat >>conftest.
$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 $ac_includes_default
9440 if (sizeof (ssize_t))
9446 rm -f conftest.
$ac_objext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1
>conftest.err
9452 cat conftest.err
>&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try
='test -z "$ac_c_werror_flag"
9456 || test ! -s conftest.err'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try
='test -s conftest.$ac_objext'
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; }; then
9468 ac_cv_type_ssize_t
=yes
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.
$ac_ext >&5
9473 ac_cv_type_ssize_t
=no
9475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9477 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9478 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9479 if test $ac_cv_type_ssize_t = yes; then
9483 cat >>confdefs.h
<<_ACEOF
9490 # Try to determine the array type of the second argument of getgroups
9491 # for the target system (int or gid_t).
9492 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9493 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9494 if test "${ac_cv_type_uid_t+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 cat >conftest.
$ac_ext <<_ACEOF
9500 cat confdefs.h
>>conftest.
$ac_ext
9501 cat >>conftest.
$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503 #include <sys/types.h>
9506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9507 $EGREP "uid_t" >/dev
/null
2>&1; then
9508 ac_cv_type_uid_t
=yes
9515 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9516 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9517 if test $ac_cv_type_uid_t = no
; then
9519 cat >>confdefs.h
<<\_ACEOF
9524 cat >>confdefs.h
<<\_ACEOF
9530 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9531 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9532 if test "${ac_cv_type_getgroups+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 if test "$cross_compiling" = yes; then
9536 ac_cv_type_getgroups
=cross
9538 cat >conftest.
$ac_ext <<_ACEOF
9541 cat confdefs.h
>>conftest.
$ac_ext
9542 cat >>conftest.
$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Thanks to Mike Rendell for this test. */
9545 #include <sys/types.h>
9548 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9555 union { gid_t gval; long lval; } val;
9558 for (i = 0; i < NGID; i++)
9559 gidset[i] = val.gval;
9560 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9562 /* Exit non-zero if getgroups seems to require an array of ints. This
9563 happens when gid_t is short but getgroups modifies an array of ints. */
9564 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9567 rm -f conftest
$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_type_getgroups
=gid_t
9580 echo "$as_me: program exited with status $ac_status" >&5
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.
$ac_ext >&5
9585 ac_cv_type_getgroups
=int
9587 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9589 if test $ac_cv_type_getgroups = cross
; then
9590 cat >conftest.
$ac_ext <<_ACEOF
9593 cat confdefs.h
>>conftest.
$ac_ext
9594 cat >>conftest.
$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9600 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9601 ac_cv_type_getgroups
=gid_t
9603 ac_cv_type_getgroups
=int
9609 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9610 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9612 cat >>confdefs.h
<<_ACEOF
9613 #define GETGROUPS_T $ac_cv_type_getgroups
9617 if test "${target}" = "${build}"; then
9618 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9621 # This condition may need some tweaking. It should include all
9622 # targets where the array type of the second argument of getgroups
9623 # is int and the type of gid_t is not equivalent to int.
9624 *-*-sunos* |
*-*-ultrix*)
9625 TARGET_GETGROUPS_T
=int
9628 TARGET_GETGROUPS_T
=gid_t
9635 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9636 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9637 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.
$ac_ext <<_ACEOF
9643 cat confdefs.h
>>conftest.
$ac_ext
9644 cat >>conftest.
$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 #include <sys/mman.h>
9648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9649 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9651 grep -v '^ *+' conftest.er1
>conftest.err
9653 cat conftest.err
>&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } >/dev
/null
; then
9656 if test -s conftest.err
; then
9657 ac_cpp_err
=$ac_c_preproc_warn_flag
9658 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9665 if test -z "$ac_cpp_err"; then
9666 ac_cv_header_sys_mman_h
=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.
$ac_ext >&5
9671 ac_cv_header_sys_mman_h
=no
9673 rm -f conftest.err conftest.
$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9677 if test $ac_cv_header_sys_mman_h = yes; then
9678 gcc_header_sys_mman_h
=yes
9680 gcc_header_sys_mman_h
=no
9683 echo "$as_me:$LINENO: checking for mmap" >&5
9684 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9685 if test "${ac_cv_func_mmap+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.
$ac_ext <<_ACEOF
9691 cat confdefs.h
>>conftest.
$ac_ext
9692 cat >>conftest.
$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define mmap innocuous_mmap
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char mmap (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9704 # include <limits.h>
9706 # include <assert.h>
9711 /* Override any gcc2 internal prototype to avoid an error. */
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_mmap) || defined (__stub___mmap)
9725 char (*f) () = mmap;
9739 rm -f conftest.
$ac_objext conftest
$ac_exeext
9740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>conftest.er1
9743 grep -v '^ *+' conftest.er1
>conftest.err
9745 cat conftest.err
>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } &&
9748 { ac_try
='test -z "$ac_c_werror_flag"
9749 || test ! -s conftest.err'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; } &&
9755 { ac_try
='test -s conftest$ac_exeext'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.
$ac_ext >&5
9768 rm -f conftest.err conftest.
$ac_objext \
9769 conftest
$ac_exeext conftest.
$ac_ext
9771 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9772 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9773 if test $ac_cv_func_mmap = yes; then
9779 if test "$gcc_header_sys_mman_h" != yes \
9780 ||
test "$gcc_func_mmap" != yes; then
9781 gcc_cv_func_mmap_file
=no
9782 gcc_cv_func_mmap_dev_zero
=no
9783 gcc_cv_func_mmap_anon
=no
9785 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9786 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9787 if test "${gcc_cv_func_mmap_file+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 # Add a system to this blacklist if
9791 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9792 # memory area containing the same data that you'd get if you applied
9793 # read() to the same fd. The only system known to have a problem here
9794 # is VMS, where text files have record structure.
9797 gcc_cv_func_mmap_file
=no
;;
9799 gcc_cv_func_mmap_file
=yes;;
9802 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9803 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9804 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9805 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9806 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 # Add a system to this blacklist if it has mmap() but /dev/zero
9810 # does not exist, or if mmapping /dev/zero does not give anonymous
9811 # zeroed pages with both the following properties:
9812 # 1. If you map N consecutive pages in with one call, and then
9813 # unmap any subset of those pages, the pages that were not
9814 # explicitly unmapped remain accessible.
9815 # 2. If you map two adjacent blocks of memory and then unmap them
9816 # both at once, they must both go away.
9817 # Systems known to be in this category are Windows (all variants),
9820 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9821 gcc_cv_func_mmap_dev_zero
=no
;;
9823 gcc_cv_func_mmap_dev_zero
=yes;;
9826 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9827 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9829 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9830 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9831 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9832 if test "${gcc_cv_decl_map_anon+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.
$ac_ext <<_ACEOF
9838 cat confdefs.h
>>conftest.
$ac_ext
9839 cat >>conftest.
$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 #include <sys/types.h>
9842 #include <sys/mman.h>
9845 #ifndef MAP_ANONYMOUS
9846 #define MAP_ANONYMOUS MAP_ANON
9852 int n = MAP_ANONYMOUS;
9857 rm -f conftest.
$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try
='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try
='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 gcc_cv_decl_map_anon
=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 gcc_cv_decl_map_anon
=no
9886 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9888 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9889 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9891 if test $gcc_cv_decl_map_anon = no
; then
9892 gcc_cv_func_mmap_anon
=no
9894 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9895 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9896 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9900 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9901 # doesn't give anonymous zeroed pages with the same properties listed
9902 # above for use of /dev/zero.
9903 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9905 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9906 gcc_cv_func_mmap_anon
=no
;;
9908 gcc_cv_func_mmap_anon
=yes;;
9911 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9912 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9916 if test $gcc_cv_func_mmap_file = yes; then
9918 cat >>confdefs.h
<<\_ACEOF
9919 #define HAVE_MMAP_FILE 1
9923 if test $gcc_cv_func_mmap_dev_zero = yes; then
9925 cat >>confdefs.h
<<\_ACEOF
9926 #define HAVE_MMAP_DEV_ZERO 1
9930 if test $gcc_cv_func_mmap_anon = yes; then
9932 cat >>confdefs.h
<<\_ACEOF
9933 #define HAVE_MMAP_ANON 1
9941 # Under VMS, vfork works very differently than on Unix. The standard test
9942 # won't work, and it isn't easily adaptable. It makes more sense to
9944 ac_cv_func_vfork_works
=yes
9947 echo "$as_me:$LINENO: checking for pid_t" >&5
9948 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9949 if test "${ac_cv_type_pid_t+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 cat >conftest.
$ac_ext <<_ACEOF
9955 cat confdefs.h
>>conftest.
$ac_ext
9956 cat >>conftest.
$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 $ac_includes_default
9970 rm -f conftest.
$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972 (eval $ac_compile) 2>conftest.er1
9974 grep -v '^ *+' conftest.er1
>conftest.err
9976 cat conftest.err
>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } &&
9979 { ac_try
='test -z "$ac_c_werror_flag"
9980 || test ! -s conftest.err'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; } &&
9986 { ac_try
='test -s conftest.$ac_objext'
9987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_type_pid_t
=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.
$ac_ext >&5
9999 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10001 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10002 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10003 if test $ac_cv_type_pid_t = yes; then
10007 cat >>confdefs.h
<<_ACEOF
10015 for ac_header
in unistd.h vfork.h
10017 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10018 echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 cat >conftest.
$ac_ext <<_ACEOF
10026 cat confdefs.h
>>conftest.
$ac_ext
10027 cat >>conftest.
$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <$ac_header>
10031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10034 grep -v '^ *+' conftest.er1
>conftest.err
10036 cat conftest.err
>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev
/null
; then
10039 if test -s conftest.err
; then
10040 ac_cpp_err
=$ac_c_preproc_warn_flag
10041 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10048 if test -z "$ac_cpp_err"; then
10049 eval "$as_ac_Header=yes"
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.
$ac_ext >&5
10054 eval "$as_ac_Header=no"
10056 rm -f conftest.err conftest.
$ac_ext
10058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10061 cat >>confdefs.h
<<_ACEOF
10062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070 for ac_func
in fork vfork
10072 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10073 echo "$as_me:$LINENO: checking for $ac_func" >&5
10074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10075 if eval "test \"\${$as_ac_var+set}\" = set"; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 cat >conftest.
$ac_ext <<_ACEOF
10081 cat confdefs.h
>>conftest.
$ac_ext
10082 cat >>conftest.
$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10086 #define $ac_func innocuous_$ac_func
10088 /* System header to define __stub macros and hopefully few prototypes,
10089 which can conflict with char $ac_func (); below.
10090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10091 <limits.h> exists even on freestanding compilers. */
10094 # include <limits.h>
10096 # include <assert.h>
10101 /* Override any gcc2 internal prototype to avoid an error. */
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10109 /* The GNU C library defines this for functions which it implements
10110 to always fail with ENOSYS. Some functions are actually named
10111 something starting with __ and the normal name is an alias. */
10112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10115 char (*f) () = $ac_func;
10124 return f != $ac_func;
10129 rm -f conftest.
$ac_objext conftest
$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>conftest.er1
10133 grep -v '^ *+' conftest.er1
>conftest.err
10135 cat conftest.err
>&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
10138 { ac_try
='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try
='test -s conftest$ac_exeext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
10151 eval "$as_ac_var=yes"
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.
$ac_ext >&5
10156 eval "$as_ac_var=no"
10158 rm -f conftest.err conftest.
$ac_objext \
10159 conftest
$ac_exeext conftest.
$ac_ext
10161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10163 if test `eval echo '${'$as_ac_var'}'` = yes; then
10164 cat >>confdefs.h
<<_ACEOF
10165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10171 if test "x$ac_cv_func_fork" = xyes
; then
10172 echo "$as_me:$LINENO: checking for working fork" >&5
10173 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10174 if test "${ac_cv_func_fork_works+set}" = set; then
10175 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 if test "$cross_compiling" = yes; then
10178 ac_cv_func_fork_works
=cross
10180 cat >conftest.
$ac_ext <<_ACEOF
10181 /* By Ruediger Kuhlmann. */
10182 #include <sys/types.h>
10184 # include <unistd.h>
10186 /* Some systems only have a dummy stub for fork() */
10194 rm -f conftest
$ac_exeext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_func_fork_works
=yes
10207 echo "$as_me: program exited with status $ac_status" >&5
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.
$ac_ext >&5
10211 ( exit $ac_status )
10212 ac_cv_func_fork_works
=no
10214 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10218 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10221 ac_cv_func_fork_works
=$ac_cv_func_fork
10223 if test "x$ac_cv_func_fork_works" = xcross
; then
10225 *-*-amigaos* |
*-*-msdosdjgpp*)
10226 # Override, as these systems have only a dummy fork() stub
10227 ac_cv_func_fork_works
=no
10230 ac_cv_func_fork_works
=yes
10233 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10234 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10236 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10237 if test "x$ac_cv_func_vfork" = xyes
; then
10238 echo "$as_me:$LINENO: checking for working vfork" >&5
10239 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10240 if test "${ac_cv_func_vfork_works+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 if test "$cross_compiling" = yes; then
10244 ac_cv_func_vfork_works
=cross
10246 cat >conftest.
$ac_ext <<_ACEOF
10249 cat confdefs.h
>>conftest.
$ac_ext
10250 cat >>conftest.
$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 /* Thanks to Paul Eggert for this test. */
10254 #include <stdlib.h>
10255 #include <sys/types.h>
10256 #include <sys/stat.h>
10257 #include <sys/wait.h>
10259 # include <unistd.h>
10262 # include <vfork.h>
10264 /* On some sparc systems, changes by the child to local and incoming
10265 argument registers are propagated back to the parent. The compiler
10266 is told about this with #include <vfork.h>, but some compilers
10267 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10268 static variable whose address is put into a register that is
10269 clobbered by the vfork. */
10272 sparc_address_test (int arg)
10274 sparc_address_test (arg) int arg;
10277 static pid_t child;
10295 pid_t parent = getpid ();
10298 sparc_address_test (0);
10303 /* Here is another test for sparc vfork register problems. This
10304 test uses lots of local variables, at least as many local
10305 variables as main has allocated so far including compiler
10306 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10307 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10308 reuse the register of parent for one of the local variables,
10309 since it will think that parent can't possibly be used any more
10310 in this routine. Assigning to the local variable will thus
10311 munge parent in the parent process. */
10313 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10314 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10315 /* Convince the compiler that p..p7 are live; otherwise, it might
10316 use the same hardware register for all 8 local variables. */
10317 if (p != p1 || p != p2 || p != p3 || p != p4
10318 || p != p5 || p != p6 || p != p7)
10321 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10322 from child file descriptors. If the child closes a descriptor
10323 before it execs or exits, this munges the parent's descriptor
10324 as well. Test for this by closing stdout in the child. */
10325 _exit(close(fileno(stdout)) != 0);
10330 while (wait(&status) != child)
10333 /* Was there some problem with vforking? */
10336 /* Did the child fail? (This shouldn't happen.) */
10339 /* Did the vfork/compiler bug occur? */
10340 || parent != getpid()
10342 /* Did the file descriptor bug occur? */
10343 || fstat(fileno(stdout), &st) != 0
10348 rm -f conftest
$ac_exeext
10349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 ac_cv_func_vfork_works
=yes
10361 echo "$as_me: program exited with status $ac_status" >&5
10362 echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.
$ac_ext >&5
10365 ( exit $ac_status )
10366 ac_cv_func_vfork_works
=no
10368 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10371 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10372 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10375 if test "x$ac_cv_func_fork_works" = xcross
; then
10376 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10377 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10378 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10381 if test "x$ac_cv_func_vfork_works" = xyes
; then
10383 cat >>confdefs.h
<<\_ACEOF
10384 #define HAVE_WORKING_VFORK 1
10389 cat >>confdefs.h
<<\_ACEOF
10394 if test "x$ac_cv_func_fork_works" = xyes
; then
10396 cat >>confdefs.h
<<\_ACEOF
10397 #define HAVE_WORKING_FORK 1
10404 if test "X$prefix" = "XNONE"; then
10405 acl_final_prefix
="$ac_default_prefix"
10407 acl_final_prefix
="$prefix"
10409 if test "X$exec_prefix" = "XNONE"; then
10410 acl_final_exec_prefix
='${prefix}'
10412 acl_final_exec_prefix
="$exec_prefix"
10414 acl_save_prefix
="$prefix"
10415 prefix
="$acl_final_prefix"
10416 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10417 prefix
="$acl_save_prefix"
10420 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10421 if test "${with_gnu_ld+set}" = set; then
10422 withval
="$with_gnu_ld"
10423 test "$withval" = no || with_gnu_ld
=yes
10427 # Prepare PATH_SEPARATOR.
10428 # The user is always right.
10429 if test "${PATH_SEPARATOR+set}" != set; then
10430 echo "#! /bin/sh" >conf$$.sh
10431 echo "exit 0" >>conf$$.sh
10433 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10441 if test "$GCC" = yes; then
10442 # Check if gcc -print-prog-name=ld gives a path.
10443 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10444 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10447 # gcc leaves a trailing carriage return which upsets mingw
10448 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10450 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10453 # Accept absolute paths.
10454 [\\/]* |
[A-Za-z
]:[\\/]*)
10455 re_direlt
='/[^/][^/]*/\.\./'
10456 # Canonicalize the path of ld
10457 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10458 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10459 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10461 test -z "$LD" && LD
="$ac_prog"
10464 # If it fails, then pretend we aren't using GCC.
10468 # If it is relative, then search for the first ld in PATH.
10469 with_gnu_ld
=unknown
10472 elif test "$with_gnu_ld" = yes; then
10473 echo "$as_me:$LINENO: checking for GNU ld" >&5
10474 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10476 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10477 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10479 if test "${acl_cv_path_LD+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
10482 if test -z "$LD"; then
10483 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10484 for ac_dir
in $PATH; do
10485 test -z "$ac_dir" && ac_dir
=.
10486 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10487 acl_cv_path_LD
="$ac_dir/$ac_prog"
10488 # Check to see if the program is GNU ld. I'd rather use --version,
10489 # but apparently some GNU ld's only accept -v.
10490 # Break only if it was the GNU/non-GNU ld that we prefer.
10491 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10492 test "$with_gnu_ld" != no
&& break
10494 test "$with_gnu_ld" != yes && break
10500 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10504 LD
="$acl_cv_path_LD"
10505 if test -n "$LD"; then
10506 echo "$as_me:$LINENO: result: $LD" >&5
10507 echo "${ECHO_T}$LD" >&6
10509 echo "$as_me:$LINENO: result: no" >&5
10510 echo "${ECHO_T}no" >&6
10512 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10513 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10514 { (exit 1); exit 1; }; }
10515 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10516 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10517 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10521 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10522 acl_cv_prog_gnu_ld
=yes
10524 acl_cv_prog_gnu_ld
=no
10527 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10528 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10529 with_gnu_ld
=$acl_cv_prog_gnu_ld
10533 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10534 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10535 if test "${acl_cv_rpath+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10540 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10542 rm -f .
/conftest.sh
10546 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10547 echo "${ECHO_T}$acl_cv_rpath" >&6
10549 libext
="$acl_cv_libext"
10550 shlibext
="$acl_cv_shlibext"
10551 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10552 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10553 hardcode_direct
="$acl_cv_hardcode_direct"
10554 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10555 # Check whether --enable-rpath or --disable-rpath was given.
10556 if test "${enable_rpath+set}" = set; then
10557 enableval
="$enable_rpath"
10571 acl_save_prefix
="$prefix"
10572 prefix
="$acl_final_prefix"
10573 acl_save_exec_prefix
="$exec_prefix"
10574 exec_prefix
="$acl_final_exec_prefix"
10576 eval additional_includedir
=\"$includedir\"
10577 eval additional_libdir
=\"$libdir\"
10579 exec_prefix
="$acl_save_exec_prefix"
10580 prefix
="$acl_save_prefix"
10583 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10584 if test "${with_libiconv_prefix+set}" = set; then
10585 withval
="$with_libiconv_prefix"
10587 if test "X$withval" = "Xno"; then
10590 if test "X$withval" = "X"; then
10592 acl_save_prefix
="$prefix"
10593 prefix
="$acl_final_prefix"
10594 acl_save_exec_prefix
="$exec_prefix"
10595 exec_prefix
="$acl_final_exec_prefix"
10597 eval additional_includedir
=\"$includedir\"
10598 eval additional_libdir
=\"$libdir\"
10600 exec_prefix
="$acl_save_exec_prefix"
10601 prefix
="$acl_save_prefix"
10604 additional_includedir
="$withval/include"
10605 additional_libdir
="$withval/lib"
10615 names_already_handled
=
10616 names_next_round
='iconv '
10617 while test -n "$names_next_round"; do
10618 names_this_round
="$names_next_round"
10620 for name
in $names_this_round; do
10622 for n
in $names_already_handled; do
10623 if test "$n" = "$name"; then
10624 already_handled
=yes
10628 if test -z "$already_handled"; then
10629 names_already_handled
="$names_already_handled $name"
10630 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10631 eval value
=\"\
$HAVE_LIB$uppername\"
10632 if test -n "$value"; then
10633 if test "$value" = yes; then
10634 eval value
=\"\
$LIB$uppername\"
10635 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10636 eval value
=\"\
$LTLIB$uppername\"
10637 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10646 if test $use_additional = yes; then
10647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10648 found_dir
="$additional_libdir"
10649 found_so
="$additional_libdir/lib$name.$shlibext"
10650 if test -f "$additional_libdir/lib$name.la"; then
10651 found_la
="$additional_libdir/lib$name.la"
10654 if test -f "$additional_libdir/lib$name.$libext"; then
10655 found_dir
="$additional_libdir"
10656 found_a
="$additional_libdir/lib$name.$libext"
10657 if test -f "$additional_libdir/lib$name.la"; then
10658 found_la
="$additional_libdir/lib$name.la"
10663 if test "X$found_dir" = "X"; then
10664 for x
in $LDFLAGS $LTLIBICONV; do
10666 acl_save_prefix
="$prefix"
10667 prefix
="$acl_final_prefix"
10668 acl_save_exec_prefix
="$exec_prefix"
10669 exec_prefix
="$acl_final_exec_prefix"
10671 exec_prefix
="$acl_save_exec_prefix"
10672 prefix
="$acl_save_prefix"
10676 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10679 found_so
="$dir/lib$name.$shlibext"
10680 if test -f "$dir/lib$name.la"; then
10681 found_la
="$dir/lib$name.la"
10684 if test -f "$dir/lib$name.$libext"; then
10686 found_a
="$dir/lib$name.$libext"
10687 if test -f "$dir/lib$name.la"; then
10688 found_la
="$dir/lib$name.la"
10694 if test "X$found_dir" != "X"; then
10699 if test "X$found_dir" != "X"; then
10700 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10701 if test "X$found_so" != "X"; then
10702 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10703 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10706 for x
in $ltrpathdirs; do
10707 if test "X$x" = "X$found_dir"; then
10712 if test -z "$haveit"; then
10713 ltrpathdirs
="$ltrpathdirs $found_dir"
10715 if test "$hardcode_direct" = yes; then
10716 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10719 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10721 for x
in $rpathdirs; do
10722 if test "X$x" = "X$found_dir"; then
10727 if test -z "$haveit"; then
10728 rpathdirs
="$rpathdirs $found_dir"
10732 for x
in $LDFLAGS $LIBICONV; do
10734 acl_save_prefix
="$prefix"
10735 prefix
="$acl_final_prefix"
10736 acl_save_exec_prefix
="$exec_prefix"
10737 exec_prefix
="$acl_final_exec_prefix"
10739 exec_prefix
="$acl_save_exec_prefix"
10740 prefix
="$acl_save_prefix"
10742 if test "X$x" = "X-L$found_dir"; then
10747 if test -z "$haveit"; then
10748 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10750 if test "$hardcode_minus_L" != no
; then
10751 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10753 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10759 if test "X$found_a" != "X"; then
10760 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10762 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10765 additional_includedir
=
10766 case "$found_dir" in
10768 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10769 additional_includedir
="$basedir/include"
10772 if test "X$additional_includedir" != "X"; then
10773 if test "X$additional_includedir" != "X/usr/include"; then
10775 if test "X$additional_includedir" = "X/usr/local/include"; then
10776 if test -n "$GCC"; then
10778 linux
*) haveit
=yes;;
10782 if test -z "$haveit"; then
10783 for x
in $CPPFLAGS $INCICONV; do
10785 acl_save_prefix
="$prefix"
10786 prefix
="$acl_final_prefix"
10787 acl_save_exec_prefix
="$exec_prefix"
10788 exec_prefix
="$acl_final_exec_prefix"
10790 exec_prefix
="$acl_save_exec_prefix"
10791 prefix
="$acl_save_prefix"
10793 if test "X$x" = "X-I$additional_includedir"; then
10798 if test -z "$haveit"; then
10799 if test -d "$additional_includedir"; then
10800 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10806 if test -n "$found_la"; then
10807 save_libdir
="$libdir"
10808 case "$found_la" in
10809 */* |
*\\*) .
"$found_la" ;;
10810 *) .
"./$found_la" ;;
10812 libdir
="$save_libdir"
10813 for dep
in $dependency_libs; do
10816 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10817 if test "X$additional_libdir" != "X/usr/lib"; then
10819 if test "X$additional_libdir" = "X/usr/local/lib"; then
10820 if test -n "$GCC"; then
10822 linux
*) haveit
=yes;;
10826 if test -z "$haveit"; then
10828 for x
in $LDFLAGS $LIBICONV; do
10830 acl_save_prefix
="$prefix"
10831 prefix
="$acl_final_prefix"
10832 acl_save_exec_prefix
="$exec_prefix"
10833 exec_prefix
="$acl_final_exec_prefix"
10835 exec_prefix
="$acl_save_exec_prefix"
10836 prefix
="$acl_save_prefix"
10838 if test "X$x" = "X-L$additional_libdir"; then
10843 if test -z "$haveit"; then
10844 if test -d "$additional_libdir"; then
10845 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10849 for x
in $LDFLAGS $LTLIBICONV; do
10851 acl_save_prefix
="$prefix"
10852 prefix
="$acl_final_prefix"
10853 acl_save_exec_prefix
="$exec_prefix"
10854 exec_prefix
="$acl_final_exec_prefix"
10856 exec_prefix
="$acl_save_exec_prefix"
10857 prefix
="$acl_save_prefix"
10859 if test "X$x" = "X-L$additional_libdir"; then
10864 if test -z "$haveit"; then
10865 if test -d "$additional_libdir"; then
10866 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10873 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10874 if test "$enable_rpath" != no
; then
10876 for x
in $rpathdirs; do
10877 if test "X$x" = "X$dir"; then
10882 if test -z "$haveit"; then
10883 rpathdirs
="$rpathdirs $dir"
10886 for x
in $ltrpathdirs; do
10887 if test "X$x" = "X$dir"; then
10892 if test -z "$haveit"; then
10893 ltrpathdirs
="$ltrpathdirs $dir"
10898 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10901 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10904 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10905 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10911 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10912 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10918 if test "X$rpathdirs" != "X"; then
10919 if test -n "$hardcode_libdir_separator"; then
10921 for found_dir
in $rpathdirs; do
10922 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10924 acl_save_libdir
="$libdir"
10926 eval flag
=\"$hardcode_libdir_flag_spec\"
10927 libdir
="$acl_save_libdir"
10928 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10930 for found_dir
in $rpathdirs; do
10931 acl_save_libdir
="$libdir"
10932 libdir
="$found_dir"
10933 eval flag
=\"$hardcode_libdir_flag_spec\"
10934 libdir
="$acl_save_libdir"
10935 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10939 if test "X$ltrpathdirs" != "X"; then
10940 for found_dir
in $ltrpathdirs; do
10941 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10951 am_save_CPPFLAGS
="$CPPFLAGS"
10953 for element
in $INCICONV; do
10955 for x
in $CPPFLAGS; do
10957 acl_save_prefix
="$prefix"
10958 prefix
="$acl_final_prefix"
10959 acl_save_exec_prefix
="$exec_prefix"
10960 exec_prefix
="$acl_final_exec_prefix"
10962 exec_prefix
="$acl_save_exec_prefix"
10963 prefix
="$acl_save_prefix"
10965 if test "X$x" = "X$element"; then
10970 if test -z "$haveit"; then
10971 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10976 echo "$as_me:$LINENO: checking for iconv" >&5
10977 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10978 if test "${am_cv_func_iconv+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 am_cv_func_iconv
="no, consider installing GNU libiconv"
10984 cat >conftest.
$ac_ext <<_ACEOF
10987 cat confdefs.h
>>conftest.
$ac_ext
10988 cat >>conftest.
$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10990 #include <stdlib.h>
10995 iconv_t cd = iconv_open("","");
10996 iconv(cd,NULL,NULL,NULL,NULL);
11002 rm -f conftest.
$ac_objext conftest
$ac_exeext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11004 (eval $ac_link) 2>conftest.er1
11006 grep -v '^ *+' conftest.er1
>conftest.err
11008 cat conftest.err
>&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try
='test -z "$ac_c_werror_flag"
11012 || test ! -s conftest.err'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; } &&
11018 { ac_try
='test -s conftest$ac_exeext'
11019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 am_cv_func_iconv
=yes
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.
$ac_ext >&5
11030 rm -f conftest.err conftest.
$ac_objext \
11031 conftest
$ac_exeext conftest.
$ac_ext
11032 if test "$am_cv_func_iconv" != yes; then
11033 am_save_LIBS
="$LIBS"
11034 LIBS
="$LIBS $LIBICONV"
11035 cat >conftest.
$ac_ext <<_ACEOF
11038 cat confdefs.h
>>conftest.
$ac_ext
11039 cat >>conftest.
$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11041 #include <stdlib.h>
11046 iconv_t cd = iconv_open("","");
11047 iconv(cd,NULL,NULL,NULL,NULL);
11053 rm -f conftest.
$ac_objext conftest
$ac_exeext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11055 (eval $ac_link) 2>conftest.er1
11057 grep -v '^ *+' conftest.er1
>conftest.err
11059 cat conftest.err
>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try
='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try
='test -s conftest$ac_exeext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 am_cv_lib_iconv
=yes
11076 am_cv_func_iconv
=yes
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.
$ac_ext >&5
11082 rm -f conftest.err conftest.
$ac_objext \
11083 conftest
$ac_exeext conftest.
$ac_ext
11084 LIBS
="$am_save_LIBS"
11088 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11089 echo "${ECHO_T}$am_cv_func_iconv" >&6
11090 if test "$am_cv_func_iconv" = yes; then
11092 cat >>confdefs.h
<<\_ACEOF
11093 #define HAVE_ICONV 1
11097 if test "$am_cv_lib_iconv" = yes; then
11098 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11099 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11100 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11101 echo "${ECHO_T}$LIBICONV" >&6
11103 CPPFLAGS
="$am_save_CPPFLAGS"
11110 if test "$am_cv_func_iconv" = yes; then
11111 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11112 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11113 if test "${am_cv_proto_iconv+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11117 cat >conftest.
$ac_ext <<_ACEOF
11120 cat confdefs.h
>>conftest.
$ac_ext
11121 cat >>conftest.
$ac_ext <<_ACEOF
11122 /* end confdefs.h. */
11124 #include <stdlib.h>
11130 #if defined(__STDC__) || defined(__cplusplus)
11131 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11144 rm -f conftest.
$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>conftest.er1
11148 grep -v '^ *+' conftest.er1
>conftest.err
11150 cat conftest.err
>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try
='test -z "$ac_c_werror_flag"
11154 || test ! -s conftest.err'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try
='test -s conftest.$ac_objext'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 am_cv_proto_iconv_arg1
=""
11168 echo "$as_me: failed program was:" >&5
11169 sed 's/^/| /' conftest.
$ac_ext >&5
11171 am_cv_proto_iconv_arg1
="const"
11173 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11174 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);"
11177 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11178 echo "$as_me:$LINENO: result: ${ac_t:-
11179 }$am_cv_proto_iconv" >&5
11180 echo "${ECHO_T}${ac_t:-
11181 }$am_cv_proto_iconv" >&6
11183 cat >>confdefs.h
<<_ACEOF
11184 #define ICONV_CONST $am_cv_proto_iconv_arg1
11189 # Until we have in-tree GNU iconv:
11194 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11195 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11196 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 cat >conftest.
$ac_ext <<_ACEOF
11202 cat confdefs.h
>>conftest.
$ac_ext
11203 cat >>conftest.
$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <locale.h>
11214 rm -f conftest.
$ac_objext conftest
$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>conftest.er1
11218 grep -v '^ *+' conftest.er1
>conftest.err
11220 cat conftest.err
>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try
='test -z "$ac_c_werror_flag"
11224 || test ! -s conftest.err'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try
='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 am_cv_val_LC_MESSAGES
=yes
11238 echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.
$ac_ext >&5
11241 am_cv_val_LC_MESSAGES
=no
11243 rm -f conftest.err conftest.
$ac_objext \
11244 conftest
$ac_exeext conftest.
$ac_ext
11246 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11247 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11248 if test $am_cv_val_LC_MESSAGES = yes; then
11250 cat >>confdefs.h
<<\_ACEOF
11251 #define HAVE_LC_MESSAGES 1
11258 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11259 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11260 if test "${am_cv_langinfo_codeset+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 cat >conftest.
$ac_ext <<_ACEOF
11266 cat confdefs.h
>>conftest.
$ac_ext
11267 cat >>conftest.
$ac_ext <<_ACEOF
11268 /* end confdefs.h. */
11269 #include <langinfo.h>
11273 char* cs = nl_langinfo(CODESET);
11278 rm -f conftest.
$ac_objext conftest
$ac_exeext
11279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11280 (eval $ac_link) 2>conftest.er1
11282 grep -v '^ *+' conftest.er1
>conftest.err
11284 cat conftest.err
>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); } &&
11287 { ac_try
='test -z "$ac_c_werror_flag"
11288 || test ! -s conftest.err'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; } &&
11294 { ac_try
='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 am_cv_langinfo_codeset
=yes
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 am_cv_langinfo_codeset
=no
11307 rm -f conftest.err conftest.
$ac_objext \
11308 conftest
$ac_exeext conftest.
$ac_ext
11311 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11312 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11313 if test $am_cv_langinfo_codeset = yes; then
11315 cat >>confdefs.h
<<\_ACEOF
11316 #define HAVE_LANGINFO_CODESET 1
11322 # We will need to find libiberty.h and ansidecl.h
11323 saved_CFLAGS
="$CFLAGS"
11324 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11364 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11365 strsignal strstr strverscmp \
11366 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11367 free
basename getopt
clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
11369 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11370 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11371 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11372 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 cat >conftest.
$ac_ext <<_ACEOF
11378 cat confdefs.h
>>conftest.
$ac_ext
11379 cat >>conftest.
$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11382 #define $ac_tr_decl 1
11384 #include "ansidecl.h"
11385 #include "system.h"
11391 char *(*pfn) = (char *(*)) $ac_func ;
11397 rm -f conftest.
$ac_objext
11398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11401 grep -v '^ *+' conftest.er1
>conftest.err
11403 cat conftest.err
>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try
='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try
='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 eval "gcc_cv_have_decl_$ac_func=yes"
11421 echo "$as_me: failed program was:" >&5
11422 sed 's/^/| /' conftest.
$ac_ext >&5
11424 eval "gcc_cv_have_decl_$ac_func=no"
11426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11429 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11430 echo "$as_me:$LINENO: result: yes" >&5
11431 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11432 #define $ac_tr_decl 1
11436 echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11438 #define $ac_tr_decl 0
11449 for ac_func
in getrlimit setrlimit getrusage
11451 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11452 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11453 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11454 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 cat >conftest.
$ac_ext <<_ACEOF
11460 cat confdefs.h
>>conftest.
$ac_ext
11461 cat >>conftest.
$ac_ext <<_ACEOF
11462 /* end confdefs.h. */
11464 #define $ac_tr_decl 1
11466 #include "ansidecl.h"
11467 #include "system.h"
11468 #ifdef HAVE_SYS_RESOURCE_H
11469 #include <sys/resource.h>
11477 char *(*pfn) = (char *(*)) $ac_func ;
11483 rm -f conftest.
$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11487 grep -v '^ *+' conftest.er1
>conftest.err
11489 cat conftest.err
>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try
='test -z "$ac_c_werror_flag"
11493 || test ! -s conftest.err'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; } &&
11499 { ac_try
='test -s conftest.$ac_objext'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; }; then
11505 eval "gcc_cv_have_decl_$ac_func=yes"
11507 echo "$as_me: failed program was:" >&5
11508 sed 's/^/| /' conftest.
$ac_ext >&5
11510 eval "gcc_cv_have_decl_$ac_func=no"
11512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11515 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11516 echo "$as_me:$LINENO: result: yes" >&5
11517 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11518 #define $ac_tr_decl 1
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11524 #define $ac_tr_decl 0
11532 cat >conftest.
$ac_ext <<_ACEOF
11535 cat confdefs.h
>>conftest.
$ac_ext
11536 cat >>conftest.
$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11539 #include "ansidecl.h"
11540 #include "system.h"
11541 #ifdef HAVE_SYS_RESOURCE_H
11542 #include <sys/resource.h>
11553 rm -f conftest.
$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>conftest.er1
11557 grep -v '^ *+' conftest.er1
>conftest.err
11559 cat conftest.err
>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try
='test -z "$ac_c_werror_flag"
11563 || test ! -s conftest.err'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try
='test -s conftest.$ac_objext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.
$ac_ext >&5
11581 cat >>confdefs.h
<<\_ACEOF
11582 #define rlim_t long
11586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11589 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11590 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11591 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11593 for ac_func
in ldgetname
11595 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11596 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11597 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11598 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 cat >conftest.
$ac_ext <<_ACEOF
11604 cat confdefs.h
>>conftest.
$ac_ext
11605 cat >>conftest.
$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11608 #define $ac_tr_decl 1
11610 #include "ansidecl.h"
11611 #include "system.h"
11612 #ifdef HAVE_LDFCN_H
11623 char *(*pfn) = (char *(*)) $ac_func ;
11629 rm -f conftest.
$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631 (eval $ac_compile) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1
>conftest.err
11635 cat conftest.err
>&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try
='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try
='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 eval "gcc_cv_have_decl_$ac_func=yes"
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.
$ac_ext >&5
11656 eval "gcc_cv_have_decl_$ac_func=no"
11658 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11662 echo "$as_me:$LINENO: result: yes" >&5
11663 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11664 #define $ac_tr_decl 1
11668 echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11670 #define $ac_tr_decl 0
11679 for ac_func
in times
11681 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11682 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11683 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11684 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11687 cat >conftest.
$ac_ext <<_ACEOF
11690 cat confdefs.h
>>conftest.
$ac_ext
11691 cat >>conftest.
$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11694 #define $ac_tr_decl 1
11696 #include "ansidecl.h"
11697 #include "system.h"
11698 #ifdef HAVE_SYS_TIMES_H
11699 #include <sys/times.h>
11707 char *(*pfn) = (char *(*)) $ac_func ;
11713 rm -f conftest.
$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>conftest.er1
11717 grep -v '^ *+' conftest.er1
>conftest.err
11719 cat conftest.err
>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
11722 { ac_try
='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try
='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 eval "gcc_cv_have_decl_$ac_func=yes"
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.
$ac_ext >&5
11740 eval "gcc_cv_have_decl_$ac_func=no"
11742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11745 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11746 echo "$as_me:$LINENO: result: yes" >&5
11747 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11748 #define $ac_tr_decl 1
11752 echo "$as_me:$LINENO: result: no" >&5
11753 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11754 #define $ac_tr_decl 0
11763 for ac_func
in sigaltstack
11765 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11766 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11767 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11768 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11771 cat >conftest.
$ac_ext <<_ACEOF
11774 cat confdefs.h
>>conftest.
$ac_ext
11775 cat >>conftest.
$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11778 #define $ac_tr_decl 1
11780 #include "ansidecl.h"
11781 #include "system.h"
11782 #include <signal.h>
11789 char *(*pfn) = (char *(*)) $ac_func ;
11795 rm -f conftest.
$ac_objext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11797 (eval $ac_compile) 2>conftest.er1
11799 grep -v '^ *+' conftest.er1
>conftest.err
11801 cat conftest.err
>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } &&
11804 { ac_try
='test -z "$ac_c_werror_flag"
11805 || test ! -s conftest.err'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; } &&
11811 { ac_try
='test -s conftest.$ac_objext'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; }; then
11817 eval "gcc_cv_have_decl_$ac_func=yes"
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.
$ac_ext >&5
11822 eval "gcc_cv_have_decl_$ac_func=no"
11824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11827 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11828 echo "$as_me:$LINENO: result: yes" >&5
11829 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11830 #define $ac_tr_decl 1
11834 echo "$as_me:$LINENO: result: no" >&5
11835 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11836 #define $ac_tr_decl 0
11844 # More time-related stuff.
11845 echo "$as_me:$LINENO: checking for struct tms" >&5
11846 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11847 if test "${ac_cv_struct_tms+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 cat >conftest.
$ac_ext <<_ACEOF
11854 cat confdefs.h
>>conftest.
$ac_ext
11855 cat >>conftest.
$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11858 #include "ansidecl.h"
11859 #include "system.h"
11860 #ifdef HAVE_SYS_TIMES_H
11861 #include <sys/times.h>
11872 rm -f conftest.
$ac_objext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11874 (eval $ac_compile) 2>conftest.er1
11876 grep -v '^ *+' conftest.er1
>conftest.err
11878 cat conftest.err
>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try
='test -z "$ac_c_werror_flag"
11882 || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try
='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_struct_tms
=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.
$ac_ext >&5
11899 ac_cv_struct_tms
=no
11901 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11903 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11904 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11905 if test $ac_cv_struct_tms = yes; then
11907 cat >>confdefs.h
<<\_ACEOF
11908 #define HAVE_STRUCT_TMS 1
11913 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11914 # revisit after autoconf 2.50.
11915 echo "$as_me:$LINENO: checking for clock_t" >&5
11916 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11917 if test "${gcc_cv_type_clock_t+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.
$ac_ext <<_ACEOF
11924 cat confdefs.h
>>conftest.
$ac_ext
11925 cat >>conftest.
$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11928 #include "ansidecl.h"
11929 #include "system.h"
11939 rm -f conftest.
$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11943 grep -v '^ *+' conftest.er1
>conftest.err
11945 cat conftest.err
>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try
='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try
='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 gcc_cv_type_clock_t
=yes
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.
$ac_ext >&5
11966 gcc_cv_type_clock_t
=no
11968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11970 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11971 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11972 if test $gcc_cv_type_clock_t = yes; then
11974 cat >>confdefs.h
<<\_ACEOF
11975 #define HAVE_CLOCK_T 1
11980 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11981 CFLAGS
="$saved_CFLAGS"
11983 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11984 if test "${enable_initfini_array+set}" = set; then
11985 enableval
="$enable_initfini_array"
11989 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11990 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11991 if test "${gcc_cv_initfini_array+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 if test "$cross_compiling" = yes; then
11995 gcc_cv_initfini_array
=no
11997 cat >conftest.
$ac_ext <<_ACEOF
12000 cat confdefs.h
>>conftest.
$ac_ext
12001 cat >>conftest.
$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12005 int main (void) { return x; }
12006 int foo (void) { x = 0; }
12007 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12009 rm -f conftest
$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 gcc_cv_initfini_array
=yes
12022 echo "$as_me: program exited with status $ac_status" >&5
12023 echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.
$ac_ext >&5
12026 ( exit $ac_status )
12027 gcc_cv_initfini_array
=no
12029 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12032 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12033 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12034 enable_initfini_array
=$gcc_cv_initfini_array
12037 if test $enable_initfini_array = yes; then
12039 cat >>confdefs.h
<<\_ACEOF
12040 #define HAVE_INITFINI_ARRAY 1
12045 # mkdir takes a single argument on some systems.
12046 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12047 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12048 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 cat >conftest.
$ac_ext <<_ACEOF
12054 cat confdefs.h
>>conftest.
$ac_ext
12055 cat >>conftest.
$ac_ext <<_ACEOF
12056 /* end confdefs.h. */
12058 #include <sys/types.h>
12059 #ifdef HAVE_SYS_STAT_H
12060 # include <sys/stat.h>
12062 #ifdef HAVE_UNISTD_H
12063 # include <unistd.h>
12065 #ifdef HAVE_DIRECT_H
12066 # include <direct.h>
12076 rm -f conftest.
$ac_objext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12078 (eval $ac_compile) 2>conftest.er1
12080 grep -v '^ *+' conftest.er1
>conftest.err
12082 cat conftest.err
>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try
='test -z "$ac_c_werror_flag"
12086 || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try
='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 gcc_cv_mkdir_takes_one_arg
=no
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.
$ac_ext >&5
12103 gcc_cv_mkdir_takes_one_arg
=yes
12105 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12107 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12108 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12109 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12111 cat >>confdefs.h
<<\_ACEOF
12112 #define MKDIR_TAKES_ONE_ARG 1
12124 # With Setjmp/Longjmp based exception handling.
12125 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12126 if test "${enable_sjlj_exceptions+set}" = set; then
12127 enableval
="$enable_sjlj_exceptions"
12128 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12130 cat >>confdefs.h
<<_ACEOF
12131 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12136 # For platforms with the unwind ABI which includes an unwind library,
12137 # libunwind, we can choose to use the system libunwind.
12139 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12140 if test "${with_system_libunwind+set}" = set; then
12141 withval
="$with_system_libunwind"
12145 # --------------------------------------------------------
12146 # Build, host, and target specific configuration fragments
12147 # --------------------------------------------------------
12149 # Collect build-machine-specific information.
12150 .
${srcdir}/config.build
12152 # Collect host-machine-specific information.
12153 .
${srcdir}/config.
host
12157 # Collect target-machine-specific information.
12158 .
${srcdir}/config.gcc
12160 extra_objs
="${host_extra_objs} ${extra_objs}"
12161 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12163 # Default the target-machine variables that were not explicitly set.
12164 if test x
"$tm_file" = x
12165 then tm_file
=$cpu_type/$cpu_type.h
; fi
12167 if test x
"$extra_headers" = x
12168 then extra_headers
=; fi
12170 if test x
$md_file = x
12171 then md_file
=$cpu_type/$cpu_type.md
; fi
12173 if test x
$out_file = x
12174 then out_file
=$cpu_type/$cpu_type.c
; fi
12176 if test x
"$tmake_file" = x
12177 then tmake_file
=$cpu_type/t-
$cpu_type
12180 if test x
"$dwarf2" = xyes
12181 then tm_file
="$tm_file tm-dwarf2.h"
12184 # Say what files are being used for the output code and MD file.
12185 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12186 echo "Using \`$srcdir/config/$md_file' as machine description file."
12188 # If any of the xm_file variables contain nonexistent files, warn
12189 # about them and drop them.
12192 for x
in $build_xm_file; do
12193 if test -f $srcdir/config
/$x
12195 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12196 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12199 build_xm_file
="$bx"
12202 for x
in $host_xm_file; do
12203 if test -f $srcdir/config
/$x
12205 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12206 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12212 for x
in $xm_file; do
12213 if test -f $srcdir/config
/$x
12215 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12216 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12222 for f
in $tm_file; do
12225 if test $count = ax
; then
12226 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12228 echo "Using the following target machine macro files:"
12229 for f
in $tm_file; do
12230 echo " $srcdir/config/$f"
12234 if test x
$need_64bit_hwint = xyes
; then
12236 cat >>confdefs.h
<<\_ACEOF
12237 #define NEED_64BIT_HOST_WIDE_INT 1
12242 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12244 cat >>confdefs.h
<<\_ACEOF
12245 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12251 for f
in $host_xm_file; do
12254 if test $count = a
; then
12256 elif test $count = ax
; then
12257 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12259 echo "Using the following host machine macro files:"
12260 for f
in $host_xm_file; do
12261 echo " $srcdir/config/$f"
12264 echo "Using ${out_host_hook_obj} for host machine hooks."
12266 if test "$host_xm_file" != "$build_xm_file"; then
12268 for f
in $build_xm_file; do
12271 if test $count = a
; then
12273 elif test $count = ax
; then
12274 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12276 echo "Using the following build machine macro files:"
12277 for f
in $build_xm_file; do
12278 echo " $srcdir/config/$f"
12285 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12286 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12287 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 cat >conftest.
$ac_ext <<_ACEOF
12292 #include <sys/signal.h>
12293 #include <ucontext.h>
12294 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12297 rm -f conftest.
$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>conftest.er1
12301 grep -v '^ *+' conftest.er1
>conftest.err
12303 cat conftest.err
>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try
='test -z "$ac_c_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try
='test -s conftest.$ac_objext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 gcc_cv_mcontext_underscores
=no
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.
$ac_ext >&5
12324 gcc_cv_mcontext_underscores
=yes
12326 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12328 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12329 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12330 if test $gcc_cv_mcontext_underscores = yes; then
12332 cat >>confdefs.h
<<\_ACEOF
12333 #define HAS_MCONTEXT_T_UNDERSCORES
12344 # Check if a valid thread package
12345 case ${enable_threads} in
12348 target_thread_file
='single'
12352 target_thread_file
='single'
12354 aix | dce | gnat | irix | posix | posix95 | rtems | \
12355 single | solaris | vxworks | win32
)
12356 target_thread_file
=${enable_threads}
12359 echo "${enable_threads} is an unknown thread package" 1>&2
12364 if test x
${thread_file} = x
; then
12365 # No thread file set by target-specific clauses in config.gcc,
12366 # so use file chosen by default logic above
12367 thread_file
=${target_thread_file}
12370 # Make gthr-default.h if we have a thread file.
12372 if test $thread_file != single
; then
12373 rm -f gthr-default.h
12374 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12375 gthread_flags
=-DHAVE_GTHR_DEFAULT
12384 if test x
$enable___cxa_atexit = xyes || \
12385 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12386 if test x
$host = x
$target; then
12387 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12388 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12389 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 cat >conftest.
$ac_ext <<_ACEOF
12395 cat confdefs.h
>>conftest.
$ac_ext
12396 cat >>conftest.
$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define __cxa_atexit innocuous___cxa_atexit
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char __cxa_atexit (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12413 #undef __cxa_atexit
12415 /* Override any gcc2 internal prototype to avoid an error. */
12420 /* We use char because int might match the return type of a gcc2
12421 builtin and then its argument prototype would still apply. */
12422 char __cxa_atexit ();
12423 /* The GNU C library defines this for functions which it implements
12424 to always fail with ENOSYS. Some functions are actually named
12425 something starting with __ and the normal name is an alias. */
12426 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12429 char (*f) () = __cxa_atexit;
12438 return f != __cxa_atexit;
12443 rm -f conftest.
$ac_objext conftest
$ac_exeext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12447 grep -v '^ *+' conftest.er1
>conftest.err
12449 cat conftest.err
>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try
='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try
='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_cv_func___cxa_atexit
=yes
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.
$ac_ext >&5
12470 ac_cv_func___cxa_atexit
=no
12472 rm -f conftest.err conftest.
$ac_objext \
12473 conftest
$ac_exeext conftest.
$ac_ext
12475 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12476 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12477 if test $ac_cv_func___cxa_atexit = yes; then
12480 echo "__cxa_atexit can't be enabled on this target"
12484 # We can't check for __cxa_atexit when building a cross, so assume
12488 if test x
$use_cxa_atexit = xyes
; then
12490 cat >>confdefs.h
<<\_ACEOF
12491 #define DEFAULT_USE_CXA_ATEXIT 2
12497 # Look for a file containing extra machine modes.
12498 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12499 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12502 cat >>confdefs.h
<<_ACEOF
12503 #define EXTRA_MODES_FILE "config/$extra_modes"
12508 # Convert extra_options into a form suitable for Makefile use.
12510 for f
in $extra_options; do
12511 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12515 # auto-host.h is the file containing items generated by autoconf and is
12516 # the first file included by config.h.
12517 # If host=build, it is correct to have bconfig include auto-host.h
12518 # as well. If host!=build, we are in error and need to do more
12519 # work to find out the build config parameters.
12520 if test x
$host = x
$build
12522 build_auto
=auto-host.h
12524 # We create a subdir, then run autoconf in the subdir.
12525 # To prevent recursion we set host and build for the new
12526 # invocation of configure to the build for this invocation
12533 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12534 *) realsrcdir
=..
/${srcdir};;
12536 saved_CFLAGS
="${CFLAGS}"
12537 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12538 ${realsrcdir}/configure \
12539 --enable-languages=${enable_languages-all} \
12540 --target=$target_alias --host=$build_alias --build=$build_alias
12541 CFLAGS
="${saved_CFLAGS}"
12543 # We just finished tests for the build machine, so rename
12544 # the file auto-build.h in the gcc directory.
12545 mv auto-host.h ..
/auto-build.h
12548 build_auto
=auto-build.h
12552 tm_file
="${tm_file} defaults.h"
12553 tm_p_file
="${tm_p_file} tm-preds.h"
12554 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12555 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12556 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12557 # put this back in temporarily.
12558 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12564 # Compile in configure arguments.
12565 if test -f configargs.h
; then
12566 # Being re-configured.
12567 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12568 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12570 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12573 # Double all backslashes and backslash all quotes to turn
12574 # gcc_config_arguments into a C string.
12575 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12576 $gcc_config_arguments
12578 gcc_config_arguments_str
=`cat conftest.out`
12581 cat > configargs.h
<<EOF
12582 /* Generated automatically. */
12583 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12584 static const char thread_model[] = "$thread_file";
12586 static const struct {
12587 const char *name, *value;
12588 } configure_default_options[] = $configure_default_options;
12591 # Internationalization
12592 # If we haven't got the data from the intl directory,
12593 # assume NLS is disabled.
12601 if test -f ..
/intl
/config.intl
; then
12602 . ..
/intl
/config.intl
12604 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12605 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12606 if test x
"$USE_NLS" != xyes
; then
12607 echo "$as_me:$LINENO: result: no" >&5
12608 echo "${ECHO_T}no" >&6
12610 echo "$as_me:$LINENO: result: yes" >&5
12611 echo "${ECHO_T}yes" >&6
12613 cat >>confdefs.h
<<\_ACEOF
12614 #define ENABLE_NLS 1
12618 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12619 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12620 # Look for .po and .gmo files in the source directory.
12623 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12624 # If there aren't any .gmo files the shell will give us the
12625 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12627 case "$cat" in *\
**)
12630 # The quadruple backslash is collapsed to a double backslash
12631 # by the backticks, then collapsed again by the double quotes,
12632 # leaving us with one backslash in the sed expression (right
12633 # before the dot that mustn't act as a wildcard).
12634 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12635 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12636 # The user is allowed to set LINGUAS to a list of languages to
12637 # install catalogs for. If it's empty that means "all of them."
12638 if test "x$LINGUAS" = x
; then
12639 CATALOGS
="$CATALOGS $cat"
12640 XLINGUAS
="$XLINGUAS $lang"
12642 case "$LINGUAS" in *$lang*)
12643 CATALOGS
="$CATALOGS $cat"
12644 XLINGUAS
="$XLINGUAS $lang"
12649 LINGUAS
="$XLINGUAS"
12650 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12651 echo "${ECHO_T}$LINGUAS" >&6
12664 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12665 # -liconv on the link line twice.
12666 case "$LIBINTL" in *$LIBICONV*)
12670 # Check whether --enable-secureplt or --disable-secureplt was given.
12671 if test "${enable_secureplt+set}" = set; then
12672 enableval
="$enable_secureplt"
12676 # Windows32 Registry support for specifying GCC installation paths.
12677 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12678 if test "${enable_win32_registry+set}" = set; then
12679 enableval
="$enable_win32_registry"
12684 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12685 if test "x$enable_win32_registry" != xno
; then
12686 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12687 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12688 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12689 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 ac_func_search_save_LIBS
=$LIBS
12692 ac_cv_search_RegOpenKeyExA
=no
12693 cat >conftest.
$ac_ext <<_ACEOF
12696 cat confdefs.h
>>conftest.
$ac_ext
12697 cat >>conftest.
$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12700 /* Override any gcc2 internal prototype to avoid an error. */
12704 /* We use char because int might match the return type of a gcc2
12705 builtin and then its argument prototype would still apply. */
12706 char RegOpenKeyExA ();
12715 rm -f conftest.
$ac_objext conftest
$ac_exeext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717 (eval $ac_link) 2>conftest.er1
12719 grep -v '^ *+' conftest.er1
>conftest.err
12721 cat conftest.err
>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try
='test -z "$ac_c_werror_flag"
12725 || test ! -s conftest.err'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; } &&
12731 { ac_try
='test -s conftest$ac_exeext'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; }; then
12737 ac_cv_search_RegOpenKeyExA
="none required"
12739 echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.
$ac_ext >&5
12743 rm -f conftest.err conftest.
$ac_objext \
12744 conftest
$ac_exeext conftest.
$ac_ext
12745 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12746 for ac_lib
in advapi32
; do
12747 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12748 cat >conftest.
$ac_ext <<_ACEOF
12751 cat confdefs.h
>>conftest.
$ac_ext
12752 cat >>conftest.
$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 /* Override any gcc2 internal prototype to avoid an error. */
12759 /* We use char because int might match the return type of a gcc2
12760 builtin and then its argument prototype would still apply. */
12761 char RegOpenKeyExA ();
12770 rm -f conftest.
$ac_objext conftest
$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12774 grep -v '^ *+' conftest.er1
>conftest.err
12776 cat conftest.err
>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try
='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try
='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.
$ac_ext >&5
12799 rm -f conftest.err conftest.
$ac_objext \
12800 conftest
$ac_exeext conftest.
$ac_ext
12803 LIBS
=$ac_func_search_save_LIBS
12805 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12806 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12807 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12808 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12811 enable_win32_registry
=no
12816 if test "x$enable_win32_registry" != xno
; then
12818 cat >>confdefs.h
<<\_ACEOF
12819 #define ENABLE_WIN32_REGISTRY 1
12823 if test "x$enable_win32_registry" != xyes \
12824 && test "x$enable_win32_registry" != x
; then
12826 cat >>confdefs.h
<<_ACEOF
12827 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12835 # Get an absolute path to the GCC top-level source directory
12836 holddir
=`${PWDCMD-pwd}`
12838 topdir
=`${PWDCMD-pwd}`
12841 # Conditionalize the makefile for this host machine.
12843 for f
in ${host_xmake_file}
12845 if test -f ${srcdir}/config
/$f
12847 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12851 # Conditionalize the makefile for this target machine.
12853 for f
in ${tmake_file}
12855 if test -f ${srcdir}/config
/$f
12857 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12860 tmake_file
="${tmake_file_}"
12862 # If the host doesn't support symlinks, modify CC in
12863 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12864 # Otherwise, we can use "CC=$(CC)".
12868 cc_set_by_configure
="\$(CC)"
12869 quoted_cc_set_by_configure
="\$(CC)"
12870 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12871 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12874 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12875 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12876 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12877 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12881 # This is a terrible hack which will go away some day.
12882 host_cc_for_libada
=${CC}
12885 out_object_file
=`basename $out_file .c`.o
12887 tm_file_list
="options.h"
12888 tm_include_list
="options.h"
12889 for f
in $tm_file; do
12892 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12893 tm_include_list
="${tm_include_list} $f"
12896 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12897 tm_include_list
="${tm_include_list} config/$f"
12904 for f
in $tm_p_file; do
12907 tm_p_file_list
="${tm_p_file_list} $f"
12908 tm_p_include_list
="${tm_p_include_list} $f"
12911 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12912 tm_p_include_list
="${tm_p_include_list} config/$f"
12918 for f
in $xm_file; do
12921 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12922 xm_include_list
="${xm_include_list} $f"
12925 xm_file_list
="${xm_file_list} $f"
12926 xm_include_list
="${xm_include_list} $f"
12929 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12930 xm_include_list
="${xm_include_list} config/$f"
12936 host_xm_include_list
=
12937 for f
in $host_xm_file; do
12940 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12941 host_xm_include_list
="${host_xm_include_list} $f"
12944 host_xm_file_list
="${host_xm_file_list} $f"
12945 host_xm_include_list
="${host_xm_include_list} $f"
12948 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12949 host_xm_include_list
="${host_xm_include_list} config/$f"
12954 build_xm_file_list
=
12955 for f
in $build_xm_file; do
12958 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12959 build_xm_include_list
="${build_xm_include_list} $f"
12961 auto-build.h | auto-host.h
)
12962 build_xm_file_list
="${build_xm_file_list} $f"
12963 build_xm_include_list
="${build_xm_include_list} $f"
12966 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12967 build_xm_include_list
="${build_xm_include_list} config/$f"
12972 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12973 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12976 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12978 if test "x$with_build_sysroot" != x
; then
12979 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12981 # This value is used, even on a native system, because
12982 # CROSS_SYSTEM_HEADER_DIR is just
12983 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12984 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12987 if test x
$host != x
$target
12989 CROSS
="-DCROSS_COMPILE"
12991 SYSTEM_HEADER_DIR
=$build_system_header_dir
12992 case "$host","$target" in
12993 # Darwin crosses can use the host system's libraries and headers,
12994 # because of the fat library support. Of course, it must be the
12995 # same version of Darwin on both sides. Allow the user to
12996 # just say --target=foo-darwin without a version number to mean
12997 # "the version on this system".
12998 *-*-darwin*,*-*-darwin*)
12999 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13000 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13001 if test $hostos = $targetos -o $targetos = darwin
; then
13003 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13008 i?
86-*-*,x86_64-
*-* \
13009 | powerpc
*-*-*,powerpc64
*-*-*)
13010 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13012 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13013 SYSTEM_HEADER_DIR
=$build_system_header_dir
13016 # If this is a cross-compiler that does not
13017 # have its own set of headers then define
13020 # If this is using newlib, without having the headers available now,
13021 # then define inhibit_libc in LIBGCC2_CFLAGS.
13022 # This prevents libgcc2 from containing any code which requires libc
13025 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13026 test x
$with_newlib = xyes
; } &&
13027 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13032 # When building gcc with a cross-compiler, we need to adjust things so
13033 # that the generator programs are still built with the native compiler.
13034 # Also, we cannot run fixincludes or fix-header.
13036 # These are the normal (build=host) settings:
13037 CC_FOR_BUILD
='$(CC)'
13038 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13039 STMP_FIXINC
=stmp-fixinc
13041 # Possibly disable fixproto, on a per-target basis.
13042 case ${use_fixproto} in
13047 STMP_FIXPROTO
=stmp-fixproto
13052 # And these apply if build != host, or we are generating coverage data
13053 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13055 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13057 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13058 if test "x$STMP_FIXPROTO" != x
; then
13059 STMP_FIXPROTO
=stmp-install-fixproto
13064 # Expand extra_headers to include complete path.
13065 # This substitutes for lots of t-* files.
13066 extra_headers_list
=
13067 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13068 for file in ${extra_headers} ; do
13069 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13072 # Define collect2 in Makefile.
13073 case $host_can_use_collect2 in
13075 *) collect2
='collect2$(exeext)' ;;
13079 # Add a definition of USE_COLLECT2 if system wants one.
13080 case $use_collect2 in
13081 no
) use_collect2
= ;;
13084 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13085 xm_defines
="${xm_defines} USE_COLLECT2"
13086 case $host_can_use_collect2 in
13088 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13089 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13090 { (exit 1); exit 1; }; }
13096 # ---------------------------
13097 # Assembler & linker features
13098 # ---------------------------
13100 # Identify the assembler which will work hand-in-glove with the newly
13101 # built GCC, so that we can examine its features. This is the assembler
13102 # which will be driven by the driver program.
13104 # If build != host, and we aren't building gas in-tree, we identify a
13105 # build->target assembler and hope that it will have the same features
13106 # as the host->target assembler we'll be using.
13107 gcc_cv_gas_major_version
=
13108 gcc_cv_gas_minor_version
=
13109 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13111 if test "${gcc_cv_as+set}" = set; then
13115 if test -x "$DEFAULT_ASSEMBLER"; then
13116 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13117 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13118 && test -f ..
/gas
/Makefile \
13119 && test x
$build = x
$host; then
13120 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13121 elif test -x as
$build_exeext; then
13122 # Build using assembler in the current directory.
13123 gcc_cv_as
=.
/as
$build_exeext
13124 elif test -x $AS_FOR_TARGET; then
13125 gcc_cv_as
="$AS_FOR_TARGET"
13127 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13128 set dummy
$AS_FOR_TARGET; ac_word
=$2
13129 echo "$as_me:$LINENO: checking for $ac_word" >&5
13130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13140 for as_dir
in $PATH
13143 test -z "$as_dir" && as_dir
=.
13144 for ac_exec_ext
in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13158 if test -n "$gcc_cv_as"; then
13159 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13160 echo "${ECHO_T}$gcc_cv_as" >&6
13162 echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6
13170 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13173 echo "$as_me:$LINENO: checking what assembler to use" >&5
13174 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13175 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13176 # Single tree build which includes gas. We want to prefer it
13177 # over whatever linker top-level may have detected, since
13178 # we'll use what we're building after installation anyway.
13179 echo "$as_me:$LINENO: result: newly built gas" >&5
13180 echo "${ECHO_T}newly built gas" >&6
13182 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13183 for f
in $gcc_cv_as_bfd_srcdir/configure \
13184 $gcc_cv_as_gas_srcdir/configure \
13185 $gcc_cv_as_gas_srcdir/configure.
in \
13186 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13187 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13188 if test x
$gcc_cv_gas_version != x
; then
13192 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13193 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13194 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13195 case $gcc_cv_gas_patch_version in
13196 "") gcc_cv_gas_patch_version
="0" ;;
13198 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13199 + $gcc_cv_gas_minor_version \) \* 1000 \
13200 + $gcc_cv_gas_patch_version`
13202 in_tree_gas_is_elf
=no
13203 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13204 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13205 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13207 in_tree_gas_is_elf
=yes
13210 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13211 echo "${ECHO_T}$gcc_cv_as" >&6
13215 # Identify the linker which will work hand-in-glove with the newly
13216 # built GCC, so that we can examine its features. This is the linker
13217 # which will be driven by the driver program.
13219 # If build != host, and we aren't building gas in-tree, we identify a
13220 # build->target linker and hope that it will have the same features
13221 # as the host->target linker we'll be using.
13222 gcc_cv_gld_major_version
=
13223 gcc_cv_gld_minor_version
=
13224 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13225 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13227 if test "${gcc_cv_ld+set}" = set; then
13231 if test -x "$DEFAULT_LINKER"; then
13232 gcc_cv_ld
="$DEFAULT_LINKER"
13233 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13234 && test -f ..
/ld
/Makefile \
13235 && test x
$build = x
$host; then
13236 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13237 elif test -x collect-ld
$build_exeext; then
13238 # Build using linker in the current directory.
13239 gcc_cv_ld
=.
/collect-ld
$build_exeext
13240 elif test -x $LD_FOR_TARGET; then
13241 gcc_cv_ld
="$LD_FOR_TARGET"
13243 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13244 set dummy
$LD_FOR_TARGET; ac_word
=$2
13245 echo "$as_me:$LINENO: checking for $ac_word" >&5
13246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13247 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13256 for as_dir
in $PATH
13259 test -z "$as_dir" && as_dir
=.
13260 for ac_exec_ext
in '' $ac_executable_extensions; do
13261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13262 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13272 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13274 if test -n "$gcc_cv_ld"; then
13275 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13276 echo "${ECHO_T}$gcc_cv_ld" >&6
13278 echo "$as_me:$LINENO: result: no" >&5
13279 echo "${ECHO_T}no" >&6
13286 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13289 echo "$as_me:$LINENO: checking what linker to use" >&5
13290 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13291 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13292 # Single tree build which includes ld. We want to prefer it
13293 # over whatever linker top-level may have detected, since
13294 # we'll use what we're building after installation anyway.
13295 echo "$as_me:$LINENO: result: newly built ld" >&5
13296 echo "${ECHO_T}newly built ld" >&6
13298 in_tree_ld_is_elf
=no
13299 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13300 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13301 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13302 in_tree_ld_is_elf
=yes
13304 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
13306 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13307 if test x
$gcc_cv_gld_version != x
; then
13311 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13312 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13314 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13315 echo "${ECHO_T}$gcc_cv_ld" >&6
13319 # Figure out what nm we will be using.
13320 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13321 if test "${gcc_cv_nm+set}" = set; then
13325 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13326 && test -f ..
/binutils
/Makefile \
13327 && test x
$build = x
$host; then
13328 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13329 elif test -x nm
$build_exeext; then
13330 gcc_cv_nm
=.
/nm
$build_exeext
13331 elif test -x $NM_FOR_TARGET; then
13332 gcc_cv_nm
="$NM_FOR_TARGET"
13334 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13335 set dummy
$NM_FOR_TARGET; ac_word
=$2
13336 echo "$as_me:$LINENO: checking for $ac_word" >&5
13337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13338 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13347 for as_dir
in $PATH
13350 test -z "$as_dir" && as_dir
=.
13351 for ac_exec_ext
in '' $ac_executable_extensions; do
13352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13365 if test -n "$gcc_cv_nm"; then
13366 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13367 echo "${ECHO_T}$gcc_cv_nm" >&6
13369 echo "$as_me:$LINENO: result: no" >&5
13370 echo "${ECHO_T}no" >&6
13377 echo "$as_me:$LINENO: checking what nm to use" >&5
13378 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13379 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13380 # Single tree build which includes binutils.
13381 echo "$as_me:$LINENO: result: newly built nm" >&5
13382 echo "${ECHO_T}newly built nm" >&6
13385 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13386 echo "${ECHO_T}$gcc_cv_nm" >&6
13390 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13393 # Figure out what objdump we will be using.
13394 if test "${gcc_cv_objdump+set}" = set; then
13398 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13399 && test -f ..
/binutils
/Makefile \
13400 && test x
$build = x
$host; then
13401 # Single tree build which includes binutils.
13402 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13403 elif test -x objdump
$build_exeext; then
13404 gcc_cv_objdump
=.
/objdump
$build_exeext
13405 elif test -x $OBJDUMP_FOR_TARGET; then
13406 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13408 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13409 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13410 echo "$as_me:$LINENO: checking for $ac_word" >&5
13411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13412 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 case $gcc_cv_objdump in
13417 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13421 for as_dir
in $PATH
13424 test -z "$as_dir" && as_dir
=.
13425 for ac_exec_ext
in '' $ac_executable_extensions; do
13426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13439 if test -n "$gcc_cv_objdump"; then
13440 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13441 echo "${ECHO_T}$gcc_cv_objdump" >&6
13443 echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6
13451 echo "$as_me:$LINENO: checking what objdump to use" >&5
13452 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13453 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13454 # Single tree build which includes binutils.
13455 echo "$as_me:$LINENO: result: newly built objdump" >&5
13456 echo "${ECHO_T}newly built objdump" >&6
13457 elif test x
$gcc_cv_objdump = x
; then
13458 echo "$as_me:$LINENO: result: not found" >&5
13459 echo "${ECHO_T}not found" >&6
13461 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13462 echo "${ECHO_T}$gcc_cv_objdump" >&6
13465 # Figure out what assembler alignment features are present.
13466 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13467 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13468 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 gcc_cv_as_balign_and_p2align
=no
13472 if test $in_tree_gas = yes; then
13473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13474 then gcc_cv_as_balign_and_p2align
=yes
13476 elif test x
$gcc_cv_as != x
; then
13478 .p2align 2' > conftest.s
13479 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }
13486 gcc_cv_as_balign_and_p2align
=yes
13488 echo "configure: failed program was" >&5
13491 rm -f conftest.o conftest.s
13494 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13495 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13496 if test $gcc_cv_as_balign_and_p2align = yes; then
13498 cat >>confdefs.h
<<\_ACEOF
13499 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13504 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13505 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13506 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 gcc_cv_as_max_skip_p2align
=no
13510 if test $in_tree_gas = yes; then
13511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13512 then gcc_cv_as_max_skip_p2align
=yes
13514 elif test x
$gcc_cv_as != x
; then
13515 echo '.p2align 4,,7' > conftest.s
13516 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }
13523 gcc_cv_as_max_skip_p2align
=yes
13525 echo "configure: failed program was" >&5
13528 rm -f conftest.o conftest.s
13531 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13532 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13533 if test $gcc_cv_as_max_skip_p2align = yes; then
13535 cat >>confdefs.h
<<\_ACEOF
13536 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13541 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13542 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13543 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 gcc_cv_as_subsection_m1
=no
13547 if test $in_tree_gas = yes; then
13548 if test $in_tree_gas_is_elf = yes \
13549 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13550 then gcc_cv_as_subsection_m1
=yes
13552 elif test x
$gcc_cv_as != x
; then
13553 echo 'conftest_label1: .word 0
13555 conftest_label2: .word 0
13556 .previous' > conftest.s
13557 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }
13564 if test x
$gcc_cv_nm != x
; then
13565 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13566 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13567 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13569 else gcc_cv_as_subsection_m1
=yes
13571 rm -f conftest.nm1 conftest.nm2
13574 echo "configure: failed program was" >&5
13577 rm -f conftest.o conftest.s
13580 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13581 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13582 if test $gcc_cv_as_subsection_m1 = yes; then
13584 cat >>confdefs.h
<<\_ACEOF
13585 #define HAVE_GAS_SUBSECTION_ORDERING 1
13590 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13591 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13592 if test "${gcc_cv_as_weak+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 if test $in_tree_gas = yes; then
13597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13598 then gcc_cv_as_weak
=yes
13600 elif test x
$gcc_cv_as != x
; then
13601 echo ' .weak foobar' > conftest.s
13602 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }
13611 echo "configure: failed program was" >&5
13614 rm -f conftest.o conftest.s
13617 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13618 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13619 if test $gcc_cv_as_weak = yes; then
13621 cat >>confdefs.h
<<\_ACEOF
13622 #define HAVE_GAS_WEAK 1
13627 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13628 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13629 if test "${gcc_cv_as_weakref+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 gcc_cv_as_weakref
=no
13633 if test $in_tree_gas = yes; then
13634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13635 then gcc_cv_as_weakref
=yes
13637 elif test x
$gcc_cv_as != x
; then
13638 echo ' .weakref foobar, barfnot' > conftest.s
13639 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; }
13646 gcc_cv_as_weakref
=yes
13648 echo "configure: failed program was" >&5
13651 rm -f conftest.o conftest.s
13654 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13655 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13656 if test $gcc_cv_as_weakref = yes; then
13658 cat >>confdefs.h
<<\_ACEOF
13659 #define HAVE_GAS_WEAKREF 1
13664 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13665 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13666 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 gcc_cv_as_nsubspa_comdat
=no
13670 if test $in_tree_gas = yes; then
13671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13672 then gcc_cv_as_nsubspa_comdat
=yes
13674 elif test x
$gcc_cv_as != x
; then
13675 echo ' .SPACE $TEXT$
13676 .NSUBSPA $CODE$,COMDAT' > conftest.s
13677 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }
13684 gcc_cv_as_nsubspa_comdat
=yes
13686 echo "configure: failed program was" >&5
13689 rm -f conftest.o conftest.s
13692 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13693 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13694 if test $gcc_cv_as_nsubspa_comdat = yes; then
13696 cat >>confdefs.h
<<\_ACEOF
13697 #define HAVE_GAS_NSUBSPA_COMDAT 1
13702 # .hidden needs to be supported in both the assembler and the linker,
13703 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13704 # This is irritatingly difficult to feature test for; we have to check the
13705 # date string after the version number. If we've got an in-tree
13706 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13708 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13709 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13710 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13711 if test "${gcc_cv_as_hidden+set}" = set; then
13712 echo $ECHO_N "(cached) $ECHO_C" >&6
13714 gcc_cv_as_hidden
=no
13715 if test $in_tree_gas = yes; then
13716 if test $in_tree_gas_is_elf = yes \
13717 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13718 then gcc_cv_as_hidden
=yes
13720 elif test x
$gcc_cv_as != x
; then
13721 echo ' .hidden foobar
13722 foobar:' > conftest.s
13723 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }
13730 gcc_cv_as_hidden
=yes
13732 echo "configure: failed program was" >&5
13735 rm -f conftest.o conftest.s
13738 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13739 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13742 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13743 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13744 if test "${gcc_cv_ld_hidden+set}" = set; then
13745 echo $ECHO_N "(cached) $ECHO_C" >&6
13747 if test $in_tree_ld = yes ; then
13748 gcc_cv_ld_hidden
=no
13749 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 \
13750 && test $in_tree_ld_is_elf = yes; then
13751 gcc_cv_ld_hidden
=yes
13754 gcc_cv_ld_hidden
=yes
13755 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13756 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13757 ld_vers
=`echo $ld_ver | sed -n \
13758 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13759 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13760 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13761 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13763 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13764 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13765 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'`
13766 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13767 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13768 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13769 if test 0"$ld_date" -lt 20020404; then
13770 if test -n "$ld_date"; then
13771 # If there was date string, but was earlier than 2002-04-04, fail
13772 gcc_cv_ld_hidden
=no
13773 elif test -z "$ld_vers"; then
13774 # If there was no date string nor ld version number, something is wrong
13775 gcc_cv_ld_hidden
=no
13777 test -z "$ld_vers_patch" && ld_vers_patch
=0
13778 if test "$ld_vers_major" -lt 2; then
13779 gcc_cv_ld_hidden
=no
13780 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13781 gcc_cv_ld_hidden
="no"
13782 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13783 gcc_cv_ld_hidden
=no
13788 case "${target}" in
13789 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13790 gcc_cv_ld_hidden
=yes
13793 gcc_cv_ld_hidden
=no
13799 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13800 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13801 libgcc_visibility
=no
13804 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13805 libgcc_visibility
=yes
13807 cat >>confdefs.h
<<\_ACEOF
13808 #define HAVE_GAS_HIDDEN 1
13813 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13814 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13815 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13816 if test "${gcc_cv_as_leb128+set}" = set; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 gcc_cv_as_leb128
=no
13820 if test $in_tree_gas = yes; then
13821 if test $in_tree_gas_is_elf = yes \
13822 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13823 then gcc_cv_as_leb128
=yes
13825 elif test x
$gcc_cv_as != x
; then
13832 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }
13839 # GAS versions before 2.11 do not support uleb128,
13840 # despite appearing to.
13841 # ??? There exists an elf-specific test that will crash
13842 # the assembler. Perhaps it's better to figure out whether
13843 # arbitrary sections are supported and try the test.
13844 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13845 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13846 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13847 as_major
=`echo $as_ver | sed 's/\..*//'`
13848 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13849 if test $as_major -eq 2 && test $as_minor -lt 11
13851 else gcc_cv_as_leb128
=yes
13855 echo "configure: failed program was" >&5
13858 rm -f conftest.o conftest.s
13861 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13862 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13863 if test $gcc_cv_as_leb128 = yes; then
13865 cat >>confdefs.h
<<\_ACEOF
13866 #define HAVE_AS_LEB128 1
13871 # GAS versions up to and including 2.11.0 may mis-optimize
13873 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13874 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13875 if test "${gcc_cv_as_eh_frame+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 gcc_cv_as_eh_frame
=no
13879 if test $in_tree_gas = yes; then
13880 if test $in_tree_gas_is_elf = yes \
13881 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13882 then gcc_cv_as_eh_frame
=yes
13884 elif test x
$gcc_cv_as != x
; then
13891 .section .eh_frame,"aw",@progbits
13893 .4byte .LECIE1-.LSCIE1
13907 .4byte .LEFDE1-.LASFDE1
13909 .4byte .LASFDE1-__FRAME_BEGIN__
13916 .LEFDE1:' > conftest.s
13917 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }
13924 cat > conftest.lit
<<EOF
13925 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13926 0010 01000000 12000000 18000000 00000000 ................
13927 0020 08000000 04080000 0044 .........D
13929 cat > conftest.big
<<EOF
13930 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13931 0010 00000001 00000012 00000018 00000000 ................
13932 0020 00000008 04000000 0844 .........D
13934 # If the assembler didn't choke, and we can objdump,
13935 # and we got the correct data, then succeed.
13936 if test x
$gcc_cv_objdump != x \
13937 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13938 |
tail -3 > conftest.got \
13939 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13940 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13942 gcc_cv_as_eh_frame
=yes
13943 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 gcc_cv_as_eh_frame
=buggy
13951 # Uh oh, what do we do now?
13952 gcc_cv_as_eh_frame
=no
13955 echo "configure: failed program was" >&5
13958 rm -f conftest.o conftest.s
13961 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13962 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13965 if test $gcc_cv_as_eh_frame = buggy
; then
13967 cat >>confdefs.h
<<\_ACEOF
13968 #define USE_AS_TRADITIONAL_FORMAT 1
13973 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13974 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13975 if test "${gcc_cv_as_shf_merge+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 gcc_cv_as_shf_merge
=no
13979 if test $in_tree_gas = yes; then
13980 if test $in_tree_gas_is_elf = yes \
13981 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13982 then gcc_cv_as_shf_merge
=yes
13984 elif test x
$gcc_cv_as != x
; then
13985 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13986 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }
13993 gcc_cv_as_shf_merge
=yes
13995 echo "configure: failed program was" >&5
13998 rm -f conftest.o conftest.s
14001 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14002 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14004 if test $gcc_cv_as_shf_merge = no
; then
14005 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14006 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14007 if test "${gcc_cv_as_shf_merge+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 gcc_cv_as_shf_merge
=no
14011 if test $in_tree_gas = yes; then
14012 if test $in_tree_gas_is_elf = yes \
14013 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14014 then gcc_cv_as_shf_merge
=yes
14016 elif test x
$gcc_cv_as != x
; then
14017 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14018 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020 (eval $ac_try) 2>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); }; }
14025 gcc_cv_as_shf_merge
=yes
14027 echo "configure: failed program was" >&5
14030 rm -f conftest.o conftest.s
14033 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14034 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14038 cat >>confdefs.h
<<_ACEOF
14039 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14043 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14044 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14045 if test "${gcc_cv_as_comdat_group+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 gcc_cv_as_comdat_group
=no
14049 if test $in_tree_gas = yes; then
14050 if test $in_tree_gas_is_elf = yes \
14051 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14052 then gcc_cv_as_comdat_group
=yes
14054 elif test x
$gcc_cv_as != x
; then
14055 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14056 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }
14063 gcc_cv_as_comdat_group
=yes
14065 echo "configure: failed program was" >&5
14068 rm -f conftest.o conftest.s
14071 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14072 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14074 if test $gcc_cv_as_comdat_group = yes; then
14075 gcc_cv_as_comdat_group_percent
=no
14077 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14078 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14079 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14082 gcc_cv_as_comdat_group_percent
=no
14083 if test $in_tree_gas = yes; then
14084 if test $in_tree_gas_is_elf = yes \
14085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14086 then gcc_cv_as_comdat_group_percent
=yes
14088 elif test x
$gcc_cv_as != x
; then
14089 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14090 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; }
14097 gcc_cv_as_comdat_group_percent
=yes
14099 echo "configure: failed program was" >&5
14102 rm -f conftest.o conftest.s
14105 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14106 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14109 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14111 if test 0"$ld_date" -lt 20050308; then
14112 if test -n "$ld_date"; then
14113 # If there was date string, but was earlier than 2005-03-08, fail
14115 elif test "$ld_vers_major" -lt 2; then
14117 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14122 # assume linkers other than GNU ld don't support COMDAT group
14125 if test $comdat_group = no
; then
14126 gcc_cv_as_comdat_group
=no
14127 gcc_cv_as_comdat_group_percent
=no
14130 cat >>confdefs.h
<<_ACEOF
14131 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14135 # Thread-local storage - the check is heavily parametrized.
14143 .section ".tdata","awT",@progbits
14146 ldq $27,__tls_get_addr($29) !literal!1
14147 lda $16,foo($29) !tlsgd!1
14148 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14149 ldq $27,__tls_get_addr($29) !literal!2
14150 lda $16,foo($29) !tlsldm!2
14151 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14152 ldq $1,foo($29) !gotdtprel
14153 ldah $2,foo($29) !dtprelhi
14154 lda $3,foo($2) !dtprello
14155 lda $4,foo($29) !dtprel
14156 ldq $1,foo($29) !gottprel
14157 ldah $2,foo($29) !tprelhi
14158 lda $3,foo($2) !tprello
14159 lda $4,foo($29) !tprel'
14162 tls_as_opt
=--fatal-warnings
14166 .section ".tdata","awT",@progbits
14169 call #gettlsoff(x)'
14178 .section ".tdata","awT",@progbits
14182 addil LT%foo-$tls_gdidx$,gp
14183 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14186 addil LT%foo-$tls_ldidx$,gp
14188 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14189 addil LR%foo-$tls_dtpoff$,%ret0
14190 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14192 addil LT%foo-$tls_ieoff$,gp
14193 ldw RT%foo-$tls_ieoff$(%r1),%t2
14196 addil LR%foo-$tls_leoff$,%t1
14197 ldo RR%foo-$tls_leoff$(%r1),%t2'
14200 tls_as_opt
=--fatal-warnings
14204 .section ".tdata","awT",%progbits
14207 .word foo(gottpoff)
14217 .section ".tdata","awT",@progbits
14221 leal foo@TLSGD(,%ebx,1), %eax
14222 leal foo@TLSLDM(%ebx), %eax
14223 leal foo@DTPOFF(%eax), %edx
14224 movl foo@GOTTPOFF(%ebx), %eax
14225 subl foo@GOTTPOFF(%ebx), %eax
14226 addl foo@GOTNTPOFF(%ebx), %eax
14227 movl foo@INDNTPOFF, %eax
14228 movl $foo@TPOFF, %eax
14229 subl $foo@TPOFF, %eax
14230 leal foo@NTPOFF(%ecx), %eax'
14233 tls_as_opt
=--fatal-warnings
14237 .section ".tdata","awT",@progbits
14241 leaq foo@TLSGD(%rip), %rdi
14242 leaq foo@TLSLD(%rip), %rdi
14243 leaq foo@DTPOFF(%rax), %rdx
14244 movq foo@GOTTPOFF(%rip), %rax
14245 movq $foo@TPOFF, %rax'
14248 tls_as_opt
=--fatal-warnings
14252 .section ".tdata","awT",@progbits
14255 addl r16 = @ltoff(@dtpmod(foo#)), gp
14256 addl r17 = @ltoff(@dtprel(foo#)), gp
14257 addl r18 = @ltoff(@tprel(foo#)), gp
14258 addl r19 = @dtprel(foo#), gp
14259 adds r21 = @dtprel(foo#), r13
14260 movl r23 = @dtprel(foo#)
14261 addl r20 = @tprel(foo#), gp
14262 adds r22 = @tprel(foo#), r13
14263 movl r24 = @tprel(foo#)'
14266 tls_as_opt
=--fatal-warnings
14270 .section .tdata,"awT",@progbits
14274 addiu $4, $28, %tlsgd(x)
14275 addiu $4, $28, %tlsldm(x)
14276 lui $4, %dtprel_hi(x)
14277 addiu $4, $4, %dtprel_lo(x)
14278 lw $4, %gottprel(x)($28)
14279 lui $4, %tprel_hi(x)
14280 addiu $4, $4, %tprel_lo(x)'
14283 tls_as_opt
='-32 --fatal-warnings'
14287 .section ".tdata","awT",@progbits
14295 addi 3,31,ld0@got@tlsgd
14297 addi 3,31,x1@got@tlsld
14300 addis 9,3,x2@dtprel@ha
14301 addi 9,9,x2@dtprel@l
14302 lwz 9,x3@got@tprel(31)
14305 addis 9,2,x2@tprel@ha
14306 addi 9,9,x2@tprel@l'
14309 tls_as_opt
="-a32 --fatal-warnings"
14313 .section ".tdata","awT",@progbits
14321 addi 3,2,ld0@got@tlsgd
14327 addi 3,2,x1@got@tlsld
14333 addis 9,3,x2@dtprel@ha
14334 addi 9,9,x2@dtprel@l
14337 ld 9,x3@got@dtprel(2)
14343 tls_as_opt
="-a64 --fatal-warnings"
14347 .section ".tdata","awT",@progbits
14354 .long foo@GOTNTPOFF
14355 .long foo@INDNTPOFF
14356 l %r1,foo@GOTNTPOFF(%r12)
14357 l %r1,0(%r1):tls_load:foo
14358 bas %r14,0(%r1,%r13):tls_gdcall:foo
14359 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14362 tls_as_opt
="-m31 --fatal-warnings"
14366 .section ".tdata","awT",@progbits
14373 .quad foo@GOTNTPOFF
14374 lg %r1,foo@GOTNTPOFF(%r12)
14375 larl %r1,foo@INDNTPOFF
14376 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14377 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14380 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14382 sh-
*-* | sh
[34]-*-*)
14384 .section ".tdata","awT",@progbits
14394 tls_as_opt
=--fatal-warnings
14398 sparc
*-sun-solaris2.
[56789]*)
14399 # TLS was introduced in the Solaris 9 4/04 release but
14400 # we do not enable it by default on Solaris 9 either.
14401 if test "x$enable_tls" = xyes
; then
14407 sparc
*-sun-solaris2.
*)
14414 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14416 .section ".tdata",#alloc,#write,#tls
14419 sethi %tgd_hi22(foo), %o0
14420 add %o0, %tgd_lo10(foo), %o1
14421 add %l7, %o1, %o0, %tgd_add(foo)
14422 call __tls_get_addr, %tgd_call(foo)
14423 sethi %tldm_hi22(foo), %l1
14424 add %l1, %tldm_lo10(foo), %l2
14425 add %l7, %l2, %o0, %tldm_add(foo)
14426 call __tls_get_addr, %tldm_call(foo)
14427 sethi %tldo_hix22(foo), %l3
14428 xor %l3, %tldo_lox10(foo), %l4
14429 add %o0, %l4, %l5, %tldo_add(foo)
14430 sethi %tie_hi22(foo), %o3
14431 add %o3, %tie_lo10(foo), %o3
14432 ld [%l7 + %o3], %o2, %tie_ld(foo)
14433 add %g7, %o2, %o4, %tie_add(foo)
14434 sethi %tle_hix22(foo), %l1
14435 xor %l1, %tle_lox10(foo), %o5
14436 ld [%g7 + %o5], %o1'
14441 .section ".tdata","awT",@progbits
14444 sethi %tgd_hi22(foo), %o0
14445 add %o0, %tgd_lo10(foo), %o1
14446 add %l7, %o1, %o0, %tgd_add(foo)
14447 call __tls_get_addr, %tgd_call(foo)
14448 sethi %tldm_hi22(foo), %l1
14449 add %l1, %tldm_lo10(foo), %l2
14450 add %l7, %l2, %o0, %tldm_add(foo)
14451 call __tls_get_addr, %tldm_call(foo)
14452 sethi %tldo_hix22(foo), %l3
14453 xor %l3, %tldo_lox10(foo), %l4
14454 add %o0, %l4, %l5, %tldo_add(foo)
14455 sethi %tie_hi22(foo), %o3
14456 add %o3, %tie_lo10(foo), %o3
14457 ld [%l7 + %o3], %o2, %tie_ld(foo)
14458 add %g7, %o2, %o4, %tie_add(foo)
14459 sethi %tle_hix22(foo), %l1
14460 xor %l1, %tle_lox10(foo), %o5
14461 ld [%g7 + %o5], %o1'
14464 tls_as_opt
="-32 --fatal-warnings"
14469 if test "x$enable_tls" = xno
; then
14470 : # TLS explicitly disabled.
14471 elif test "x$enable_tls" = xyes
; then
14472 set_have_as_tls
=yes # TLS explicitly enabled.
14473 elif test -z "$tls_first_major"; then
14474 : # If we don't have a check, assume no support.
14476 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14477 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14478 if test "${gcc_cv_as_tls+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14482 if test $in_tree_gas = yes; then
14483 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14484 then gcc_cv_as_tls
=yes
14486 elif test x
$gcc_cv_as != x
; then
14487 echo "$conftest_s" > conftest.s
14488 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }
14497 echo "configure: failed program was" >&5
14500 rm -f conftest.o conftest.s
14503 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14504 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14505 if test $gcc_cv_as_tls = yes; then
14506 set_have_as_tls
=yes
14509 if test $set_have_as_tls = yes ; then
14511 cat >>confdefs.h
<<\_ACEOF
14512 #define HAVE_AS_TLS 1
14517 # Target-specific assembler checks.
14519 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14520 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14521 gcc_cv_ld_static_dynamic
=no
14522 if test $in_tree_ld = yes ; then
14523 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14524 gcc_cv_ld_static_dynamic
=yes
14526 elif test x
$gcc_cv_ld != x
; then
14527 # Check if linker supports -Bstatic/-Bdynamic option
14528 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14529 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14530 gcc_cv_ld_static_dynamic
=yes
14533 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14535 cat >>confdefs.h
<<\_ACEOF
14536 #define HAVE_LD_STATIC_DYNAMIC 1
14540 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14541 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14543 if test x
"$demangler_in_ld" = xyes
; then
14544 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14545 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14546 gcc_cv_ld_demangle
=no
14547 if test $in_tree_ld = yes; then
14548 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 \
14549 gcc_cv_ld_demangle
=yes
14551 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14552 # Check if the GNU linker supports --demangle option
14553 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14554 gcc_cv_ld_demangle
=yes
14557 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14559 cat >>confdefs.h
<<\_ACEOF
14560 #define HAVE_LD_DEMANGLE 1
14564 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14565 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14569 # All TARGET_ABI_OSF targets.
14570 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14571 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14572 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14573 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 gcc_cv_as_alpha_explicit_relocs
=no
14577 if test $in_tree_gas = yes; then
14578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14579 then gcc_cv_as_alpha_explicit_relocs
=yes
14581 elif test x
$gcc_cv_as != x
; then
14582 echo ' .set nomacro
14584 extbl $3, $2, $3 !lituse_bytoff!1
14585 ldq $2, a($29) !literal!1
14586 ldq $4, b($29) !literal!2
14587 ldq_u $3, 0($2) !lituse_base!1
14588 ldq $27, f($29) !literal!5
14589 jsr $26, ($27), f !lituse_jsr!5
14590 ldah $29, 0($26) !gpdisp!3
14591 lda $0, c($29) !gprel
14592 ldah $1, d($29) !gprelhigh
14593 lda $1, d($1) !gprellow
14594 lda $29, 0($29) !gpdisp!3' > conftest.s
14595 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }
14602 gcc_cv_as_alpha_explicit_relocs
=yes
14604 echo "configure: failed program was" >&5
14607 rm -f conftest.o conftest.s
14610 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14611 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14612 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14614 cat >>confdefs.h
<<\_ACEOF
14615 #define HAVE_AS_EXPLICIT_RELOCS 1
14619 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14620 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14621 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 gcc_cv_as_alpha_jsrdirect_relocs
=no
14625 if test $in_tree_gas = yes; then
14626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14627 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14629 elif test x
$gcc_cv_as != x
; then
14630 echo ' .set nomacro
14632 ldq $27, a($29) !literal!1
14633 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14634 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14636 (eval $ac_try) 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; }
14641 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14643 echo "configure: failed program was" >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14650 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14651 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14653 cat >>confdefs.h
<<\_ACEOF
14654 #define HAVE_AS_JSRDIRECT_RELOCS 1
14661 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14662 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14663 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 gcc_cv_as_cris_no_mul_bug
=no
14667 if test $in_tree_gas = yes; then
14668 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14669 then gcc_cv_as_cris_no_mul_bug
=yes
14671 elif test x
$gcc_cv_as != x
; then
14672 echo '.text' > conftest.s
14673 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }
14680 gcc_cv_as_cris_no_mul_bug
=yes
14682 echo "configure: failed program was" >&5
14685 rm -f conftest.o conftest.s
14688 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14689 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14690 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14692 cat >>confdefs.h
<<\_ACEOF
14693 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14700 echo "$as_me:$LINENO: checking assembler for .register" >&5
14701 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14702 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14703 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 gcc_cv_as_sparc_register_op
=no
14706 if test x
$gcc_cv_as != x
; then
14707 echo '.register %g2, #scratch' > conftest.s
14708 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }
14715 gcc_cv_as_sparc_register_op
=yes
14717 echo "configure: failed program was" >&5
14720 rm -f conftest.o conftest.s
14723 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14724 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14725 if test $gcc_cv_as_sparc_register_op = yes; then
14727 cat >>confdefs.h
<<\_ACEOF
14728 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14733 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14734 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14735 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14736 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 gcc_cv_as_sparc_relax
=no
14739 if test x
$gcc_cv_as != x
; then
14740 echo '.text' > conftest.s
14741 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }
14748 gcc_cv_as_sparc_relax
=yes
14750 echo "configure: failed program was" >&5
14753 rm -f conftest.o conftest.s
14756 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14757 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14758 if test $gcc_cv_as_sparc_relax = yes; then
14760 cat >>confdefs.h
<<\_ACEOF
14761 #define HAVE_AS_RELAX_OPTION 1
14766 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14767 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14768 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 gcc_cv_as_sparc_ua_pcrel
=no
14772 if test x
$gcc_cv_as != x
; then
14779 .uaword %r_disp32(foo)' > conftest.s
14780 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }
14787 if test x
$gcc_cv_ld != x \
14788 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14789 gcc_cv_as_sparc_ua_pcrel
=yes
14793 echo "configure: failed program was" >&5
14796 rm -f conftest.o conftest.s
14799 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14800 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14801 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14803 cat >>confdefs.h
<<\_ACEOF
14804 #define HAVE_AS_SPARC_UA_PCREL 1
14808 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14809 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14810 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14813 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14814 if test x
$gcc_cv_as != x
; then
14818 .uaword %r_disp32(foo)
14819 .byte 0x32, 0x33, 0x34
14823 .skip 4' > conftest.s
14824 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; }
14831 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14832 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14833 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14834 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14835 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14836 |
grep 'DISP32' > /dev
/null
2>&1; then
14839 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14844 echo "configure: failed program was" >&5
14847 rm -f conftest.o conftest.s
14850 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14851 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14852 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14854 cat >>confdefs.h
<<\_ACEOF
14855 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14860 fi # unaligned pcrel relocs
14862 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14863 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14864 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 gcc_cv_as_sparc_offsetable_lo10
=no
14868 if test x
$gcc_cv_as != x
; then
14870 or %g1, %lo(ab) + 12, %g1
14871 or %g1, %lo(ab + 12), %g1' > conftest.s
14872 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }
14879 if test x
$gcc_cv_objdump != x \
14880 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14881 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14882 gcc_cv_as_sparc_offsetable_lo10
=yes
14885 echo "configure: failed program was" >&5
14888 rm -f conftest.o conftest.s
14891 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14892 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14893 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14895 cat >>confdefs.h
<<\_ACEOF
14896 #define HAVE_AS_OFFSETABLE_LO10 1
14902 i
[34567]86-*-* | x86_64-
*-*)
14904 cygwin
* | pe | mingw32
*)
14905 # Used for DWARF 2 in PE
14906 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14907 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14908 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 gcc_cv_as_ix86_pe_secrel32
=no
14912 if test $in_tree_gas = yes; then
14913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14914 then gcc_cv_as_ix86_pe_secrel32
=yes
14916 elif test x
$gcc_cv_as != x
; then
14920 .secrel32 foo' > conftest.s
14921 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }
14928 if test x
$gcc_cv_ld != x \
14929 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14930 gcc_cv_as_ix86_pe_secrel32
=yes
14934 echo "configure: failed program was" >&5
14937 rm -f conftest.o conftest.s
14940 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14941 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14942 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14944 cat >>confdefs.h
<<\_ACEOF
14945 #define HAVE_GAS_PE_SECREL32_RELOC 1
14952 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14953 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14954 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 gcc_cv_as_ix86_filds_fists
=no
14958 if test $in_tree_gas = yes; then
14959 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14960 then gcc_cv_as_ix86_filds_fists
=yes
14962 elif test x
$gcc_cv_as != x
; then
14963 echo 'filds mem; fists mem' > conftest.s
14964 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966 (eval $ac_try) 2>&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); }; }
14971 gcc_cv_as_ix86_filds_fists
=yes
14973 echo "configure: failed program was" >&5
14976 rm -f conftest.o conftest.s
14979 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14980 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14981 if test $gcc_cv_as_ix86_filds_fists = yes; then
14983 cat >>confdefs.h
<<\_ACEOF
14984 #define HAVE_GAS_FILDS_FISTS 1
14989 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14990 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14991 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14992 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 gcc_cv_as_ix86_cmov_sun_syntax
=no
14995 if test x
$gcc_cv_as != x
; then
14996 echo 'cmovl.l %edx, %eax' > conftest.s
14997 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }
15004 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15006 echo "configure: failed program was" >&5
15009 rm -f conftest.o conftest.s
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15013 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15014 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15016 cat >>confdefs.h
<<\_ACEOF
15017 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15022 # This one is used unconditionally by i386.[ch]; it is to be defined
15023 # to 1 if the feature is present, 0 otherwise.
15024 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15025 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15026 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 gcc_cv_as_ix86_gotoff_in_data
=no
15030 if test $in_tree_gas = yes; then
15031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15032 then gcc_cv_as_ix86_gotoff_in_data
=yes
15034 elif test x
$gcc_cv_as != x
; then
15039 .long .L0@GOTOFF' > conftest.s
15040 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }
15047 gcc_cv_as_ix86_gotoff_in_data
=yes
15049 echo "configure: failed program was" >&5
15052 rm -f conftest.o conftest.s
15055 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15056 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15059 cat >>confdefs.h
<<_ACEOF
15060 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15066 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15067 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15068 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15069 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15072 if test $in_tree_gas = yes; then
15073 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15074 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15076 elif test x
$gcc_cv_as != x
; then
15078 addl r15 = @ltoffx(x#), gp
15080 ld8.mov r16 = [r15], x#' > conftest.s
15081 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }
15088 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15090 echo "configure: failed program was" >&5
15093 rm -f conftest.o conftest.s
15096 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15097 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15098 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15100 cat >>confdefs.h
<<\_ACEOF
15101 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15110 *-*-aix*) conftest_s
=' .machine "pwr5"
15114 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15115 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15116 if test "${gcc_cv_as_machine_directive+set}" = set; then
15117 echo $ECHO_N "(cached) $ECHO_C" >&6
15119 gcc_cv_as_machine_directive
=no
15120 if test x
$gcc_cv_as != x
; then
15121 echo ' .machine ppc7400' > conftest.s
15122 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }
15129 gcc_cv_as_machine_directive
=yes
15131 echo "configure: failed program was" >&5
15134 rm -f conftest.o conftest.s
15137 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15138 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15140 if test x
$gcc_cv_as_machine_directive != xyes
; then
15141 echo "*** This target requires an assembler supporting \".machine\"" >&2
15142 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15143 test x
$build = x
$target && exit 1
15147 *) conftest_s
=' .machine power4
15152 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15153 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15154 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15157 gcc_cv_as_powerpc_mfcrf
=no
15158 if test $in_tree_gas = yes; then
15159 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15160 then gcc_cv_as_powerpc_mfcrf
=yes
15162 elif test x
$gcc_cv_as != x
; then
15163 echo "$conftest_s" > conftest.s
15164 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; }
15171 gcc_cv_as_powerpc_mfcrf
=yes
15173 echo "configure: failed program was" >&5
15176 rm -f conftest.o conftest.s
15179 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15180 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15181 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15183 cat >>confdefs.h
<<\_ACEOF
15184 #define HAVE_AS_MFCRF 1
15190 *-*-aix*) conftest_s
=' .machine "pwr5"
15193 *) conftest_s
=' .machine power5
15198 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15199 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15200 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 gcc_cv_as_powerpc_popcntb
=no
15204 if test $in_tree_gas = yes; then
15205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15206 then gcc_cv_as_powerpc_popcntb
=yes
15208 elif test x
$gcc_cv_as != x
; then
15209 echo "$conftest_s" > conftest.s
15210 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15217 gcc_cv_as_powerpc_popcntb
=yes
15219 echo "configure: failed program was" >&5
15222 rm -f conftest.o conftest.s
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15226 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15227 if test $gcc_cv_as_powerpc_popcntb = yes; then
15229 cat >>confdefs.h
<<\_ACEOF
15230 #define HAVE_AS_POPCNTB 1
15236 *-*-aix*) conftest_s
=' .machine "pwr5x"
15239 *) conftest_s
=' .machine power5
15244 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15245 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15246 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 gcc_cv_as_powerpc_fprnd
=no
15250 if test $in_tree_gas = yes; then
15251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15252 then gcc_cv_as_powerpc_fprnd
=yes
15254 elif test x
$gcc_cv_as != x
; then
15255 echo "$conftest_s" > conftest.s
15256 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258 (eval $ac_try) 2>&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); }; }
15263 gcc_cv_as_powerpc_fprnd
=yes
15265 echo "configure: failed program was" >&5
15268 rm -f conftest.o conftest.s
15271 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15272 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15273 if test $gcc_cv_as_powerpc_fprnd = yes; then
15275 cat >>confdefs.h
<<\_ACEOF
15276 #define HAVE_AS_FPRND 1
15282 *-*-aix*) conftest_s
=' .csect .text[PR]
15284 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15288 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15289 *) conftest_s
=' .text
15291 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15294 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15295 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15296 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 gcc_cv_as_powerpc_rel16
=no
15300 if test $in_tree_gas = yes; then
15301 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15302 then gcc_cv_as_powerpc_rel16
=yes
15304 elif test x
$gcc_cv_as != x
; then
15305 echo "$conftest_s" > conftest.s
15306 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }
15313 gcc_cv_as_powerpc_rel16
=yes
15315 echo "configure: failed program was" >&5
15318 rm -f conftest.o conftest.s
15321 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15322 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15323 if test $gcc_cv_as_powerpc_rel16 = yes; then
15325 cat >>confdefs.h
<<\_ACEOF
15326 #define HAVE_AS_REL16 1
15333 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15334 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15335 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 gcc_cv_as_mips_explicit_relocs
=no
15339 if test $in_tree_gas = yes; then
15340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15341 then gcc_cv_as_mips_explicit_relocs
=yes
15343 elif test x
$gcc_cv_as != x
; then
15344 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15345 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }
15352 gcc_cv_as_mips_explicit_relocs
=yes
15354 echo "configure: failed program was" >&5
15357 rm -f conftest.o conftest.s
15360 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15361 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15362 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15363 if test x
$target_cpu_default = x
15364 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15365 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15371 # Mips and HP-UX need the GNU assembler.
15372 # Linux on IA64 might be able to use the Intel assembler.
15375 mips
*-*-* |
*-*-hpux* )
15376 if test x
$gas_flag = xyes \
15377 ||
test x
"$host" != x
"$build" \
15378 ||
test ! -x "$gcc_cv_as" \
15379 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15382 echo "*** This configuration requires the GNU assembler" >&2
15388 # ??? Not all targets support dwarf2 debug_line, even within a version
15389 # of gas. Moreover, we need to emit a valid instruction to trigger any
15390 # info to the output file. So, as supported targets are added to gas 2.11,
15391 # add some instruction here to (also) show we expect this might work.
15392 # ??? Once 2.11 is released, probably need to add first known working
15393 # version to the per-target configury.
15395 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15396 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15397 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15400 ia64
*-*-* | s390
*-*-*)
15407 if test x
"$insn" != x
; then
15409 .file 1 \"conftest.s\"
15412 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15413 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15414 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 gcc_cv_as_dwarf2_debug_line
=no
15418 if test $in_tree_gas = yes; then
15419 if test $in_tree_gas_is_elf = yes \
15420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15421 then gcc_cv_as_dwarf2_debug_line
=yes
15423 elif test x
$gcc_cv_as != x
; then
15424 echo "$conftest_s" > conftest.s
15425 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }
15432 if test x
$gcc_cv_objdump != x \
15433 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15434 |
grep debug_line
> /dev
/null
2>&1; then
15435 gcc_cv_as_dwarf2_debug_line
=yes
15438 echo "configure: failed program was" >&5
15441 rm -f conftest.o conftest.s
15444 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15445 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15448 # The .debug_line file table must be in the exact order that
15449 # we specified the files, since these indices are also used
15450 # by DW_AT_decl_file. Approximate this test by testing if
15451 # the assembler bitches if the same index is assigned twice.
15452 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15453 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15454 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15455 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 gcc_cv_as_dwarf2_file_buggy
=no
15458 if test x
$gcc_cv_as != x
; then
15459 echo ' .file 1 "foo.s"
15460 .file 1 "bar.s"' > conftest.s
15461 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; }
15468 gcc_cv_as_dwarf2_file_buggy
=yes
15470 echo "configure: failed program was" >&5
15473 rm -f conftest.o conftest.s
15476 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15477 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15480 if test $gcc_cv_as_dwarf2_debug_line = yes \
15481 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15483 cat >>confdefs.h
<<\_ACEOF
15484 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15489 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15490 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15491 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 gcc_cv_as_gdwarf2_flag
=no
15495 if test $in_tree_gas = yes; then
15496 if test $in_tree_gas_is_elf = yes \
15497 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15498 then gcc_cv_as_gdwarf2_flag
=yes
15500 elif test x
$gcc_cv_as != x
; then
15501 echo "$insn" > conftest.s
15502 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }
15509 gcc_cv_as_gdwarf2_flag
=yes
15511 echo "configure: failed program was" >&5
15514 rm -f conftest.o conftest.s
15517 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15518 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15519 if test $gcc_cv_as_gdwarf2_flag = yes; then
15521 cat >>confdefs.h
<<\_ACEOF
15522 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15527 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15528 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15529 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 gcc_cv_as_gstabs_flag
=no
15533 if test $in_tree_gas = yes; then
15534 if test $in_tree_gas_is_elf = yes \
15535 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15536 then gcc_cv_as_gstabs_flag
=yes
15538 elif test x
$gcc_cv_as != x
; then
15539 echo "$insn" > conftest.s
15540 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }
15547 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15548 # and warns about it, but still exits successfully. So check for
15550 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }
15557 else gcc_cv_as_gstabs_flag
=yes
15560 echo "configure: failed program was" >&5
15563 rm -f conftest.o conftest.s
15566 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15567 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15568 if test $gcc_cv_as_gstabs_flag = yes; then
15570 cat >>confdefs.h
<<\_ACEOF
15571 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15577 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15578 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15579 gcc_cv_ld_ro_rw_mix
=unknown
15580 if test $in_tree_ld = yes ; then
15581 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 \
15582 && test $in_tree_ld_is_elf = yes; then
15583 gcc_cv_ld_ro_rw_mix
=read-write
15585 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15586 echo '.section myfoosect, "a"' > conftest1.s
15587 echo '.section myfoosect, "aw"' > conftest2.s
15588 echo '.byte 1' >> conftest2.s
15589 echo '.section myfoosect, "a"' > conftest3.s
15590 echo '.byte 0' >> conftest3.s
15591 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15592 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15593 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15594 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15595 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15596 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15597 | sed -e '/myfoosect/!d' -e N`
15598 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15599 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15600 gcc_cv_ld_ro_rw_mix
=read-only
15602 gcc_cv_ld_ro_rw_mix
=read-write
15606 rm -f conftest.
* conftest
[123].
*
15608 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15610 cat >>confdefs.h
<<\_ACEOF
15611 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15615 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15616 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15618 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15619 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15620 gcc_cv_ld_eh_frame_hdr
=no
15621 if test $in_tree_ld = yes ; then
15622 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 \
15623 && test $in_tree_ld_is_elf = yes; then
15624 gcc_cv_ld_eh_frame_hdr
=yes
15626 elif test x
$gcc_cv_ld != x
; then
15627 # Check if linker supports --eh-frame-hdr option
15628 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15629 gcc_cv_ld_eh_frame_hdr
=yes
15633 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15635 cat >>confdefs.h
<<\_ACEOF
15636 #define HAVE_LD_EH_FRAME_HDR 1
15640 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15641 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15643 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15644 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15646 if test $in_tree_ld = yes ; then
15647 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 \
15648 && test $in_tree_ld_is_elf = yes; then
15651 elif test x
$gcc_cv_ld != x
; then
15652 # Check if linker supports -pie option
15653 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15657 if test x
"$gcc_cv_ld_pie" = xyes
; then
15659 cat >>confdefs.h
<<\_ACEOF
15660 #define HAVE_LD_PIE 1
15664 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15665 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15671 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15672 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15673 if test "${gcc_cv_ld_as_needed+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 gcc_cv_ld_as_needed
=no
15677 if test $in_tree_ld = yes ; then
15678 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 \
15679 && test $in_tree_ld_is_elf = yes; then
15680 gcc_cv_ld_as_needed
=yes
15682 elif test x
$gcc_cv_ld != x
; then
15683 # Check if linker supports --as-needed and --no-as-needed options
15684 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15685 gcc_cv_ld_as_needed
=yes
15690 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15691 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15692 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15694 cat >>confdefs.h
<<\_ACEOF
15695 #define HAVE_LD_AS_NEEDED 1
15700 case "$target:$tm_file" in
15701 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15702 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15703 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15704 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 gcc_cv_ld_no_dot_syms
=no
15708 if test $in_tree_ld = yes ; then
15709 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
15710 gcc_cv_ld_no_dot_syms
=yes
15712 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15713 cat > conftest1.s
<<EOF
15717 cat > conftest2.s
<<EOF
15718 .section ".opd","aw"
15721 .type foo,@function
15723 .quad .LEfoo,.TOC.@tocbase,0
15729 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15730 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15731 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15732 gcc_cv_ld_no_dot_syms
=yes
15734 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15738 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15739 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15740 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15742 cat >>confdefs.h
<<\_ACEOF
15743 #define HAVE_LD_NO_DOT_SYMS 1
15750 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15751 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15752 if test "${gcc_cv_ld_sysroot+set}" = set; then
15753 echo $ECHO_N "(cached) $ECHO_C" >&6
15755 gcc_cv_ld_sysroot
=no
15756 if test $in_tree_ld = yes ; then
15757 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
15758 gcc_cv_ld_sysroot
=yes
15760 elif test x
$gcc_cv_ld != x
; then
15761 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15762 gcc_cv_ld_sysroot
=yes
15766 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15767 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15768 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15770 cat >>confdefs.h
<<\_ACEOF
15771 #define HAVE_LD_SYSROOT 1
15776 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15777 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15779 cat >>confdefs.h
<<_ACEOF
15780 #define PREFIX_INCLUDE_DIR "$prefix/include"
15785 # Test for stack protector support in target C library.
15788 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15789 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15790 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
15793 gcc_cv_libc_provides_ssp
=no
15794 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15795 if test "x$with_sysroot" = x
; then
15796 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15797 elif test "x$with_sysroot" = xyes
; then
15798 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15800 glibc_header_dir
="${with_sysroot}/usr/include"
15803 glibc_header_dir
=/usr
/include
15805 # glibc 2.4 and later provides __stack_chk_fail and
15806 # either __stack_chk_guard, or TLS access to stack guard canary.
15807 if test -f $glibc_header_dir/features.h \
15808 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15809 $glibc_header_dir/features.h
> /dev
/null
; then
15810 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15811 $glibc_header_dir/features.h
> /dev
/null
; then
15812 gcc_cv_libc_provides_ssp
=yes
15813 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15814 $glibc_header_dir/features.h
> /dev
/null \
15815 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15816 $glibc_header_dir/features.h
> /dev
/null
; then
15817 gcc_cv_libc_provides_ssp
=yes
15821 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15822 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15823 *) gcc_cv_libc_provides_ssp
=no
;;
15825 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15827 cat >>confdefs.h
<<\_ACEOF
15828 #define TARGET_LIBC_PROVIDES_SSP 1
15833 # Check if TFmode long double should be used by default or not.
15834 # Some glibc targets used DFmode long double, but with glibc 2.4
15835 # and later they can use TFmode.
15837 powerpc
*-*-*gnu
* | \
15838 sparc
*-*-linux* | \
15842 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15843 if test "${with_long_double_128+set}" = set; then
15844 withval
="$with_long_double_128"
15845 gcc_cv_target_ldbl128
="$with_long_double_128"
15847 gcc_cv_target_ldbl128
=no
15848 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15849 if test "x$with_sysroot" = x
; then
15850 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15851 elif test "x$with_sysroot" = xyes
; then
15852 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15854 glibc_header_dir
="${with_sysroot}/usr/include"
15857 glibc_header_dir
=/usr
/include
15859 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15860 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
15861 && gcc_cv_target_ldbl128
=yes
15865 if test x
$gcc_cv_target_ldbl128 = xyes
; then
15867 cat >>confdefs.h
<<\_ACEOF
15868 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15873 # Find out what GC implementation we want, or may, use.
15875 # Check whether --with-gc or --without-gc was given.
15876 if test "${with_gc+set}" = set; then
15885 cat >>confdefs.h
<<\_ACEOF
15891 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15892 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15893 { (exit 1); exit 1; }; }
15900 echo "Using $GGC for garbage collection."
15902 # Use the system's zlib library.
15904 zlibinc
="-I\$(srcdir)/../zlib"
15906 # Check whether --with-system-zlib or --without-system-zlib was given.
15907 if test "${with_system_zlib+set}" = set; then
15908 withval
="$with_system_zlib"
15917 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15918 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15919 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15920 if test "${enable_maintainer_mode+set}" = set; then
15921 enableval
="$enable_maintainer_mode"
15922 maintainer_mode
=$enableval
15927 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15928 echo "${ECHO_T}$maintainer_mode" >&6
15930 if test "$maintainer_mode" = "yes"; then
15940 # Make empty files to contain the specs and options for each language.
15941 # Then add #include lines to for a compiler that has specs and/or options.
15947 # These (without "all_") are set in each config-lang.in.
15948 # `language' must be a single word so is spelled singularly.
15950 all_boot_languages
=
15953 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15954 # List of language makefile fragments.
15955 all_lang_makefrags
=
15956 # List of language subdirectory makefiles. Deprecated.
15957 all_lang_makefiles
=
15958 # Files for gengtype
15959 all_gtfiles
="$target_gtfiles"
15960 # Files for gengtype with language
15961 all_gtfiles_files_langs
=
15962 all_gtfiles_files_files
=
15964 # These are the languages that are set in --enable-languages,
15965 # and are available in the GCC tree.
15966 all_selected_languages
=
15968 # Add the language fragments.
15969 # Languages are added via two mechanisms. Some information must be
15970 # recorded in makefile variables, these are defined in config-lang.in.
15971 # We accumulate them and plug them into the main Makefile.
15972 # The other mechanism is a set of hooks for each of the main targets
15973 # like `clean', `install', etc.
15975 language_hooks
="Make-hooks"
15977 for lang
in ${srcdir}/*/config-lang.
in
15980 # The odd quoting in the next line works around
15981 # an apparent bug in bash 1.12 on linux.
15982 ${srcdir}/[*]/config-lang.
in)
15985 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
15986 if test "x$lang_alias" = x
15988 echo "$lang doesn't set \$language." 1>&2
15991 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
15992 subdirs
="$subdirs $subdir"
15993 case ",$enable_languages," in
15995 all_selected_languages
="$all_selected_languages $lang_alias"
15996 if test -f $srcdir/$subdir/lang-specs.h
; then
15997 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16002 if test -f $srcdir/$subdir/lang.opt
; then
16003 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16005 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16006 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16015 .
${srcdir}/$subdir/config-lang.
in
16016 if test "x$language" = x
16018 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16021 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16022 if test -f ${srcdir}/$subdir/Makefile.
in
16023 then all_lang_makefiles
="$subdir/Makefile"
16025 all_languages
="$all_languages $language"
16026 if test "x$boot_language" = xyes
16028 all_boot_languages
="$all_boot_languages $language"
16030 all_compilers
="$all_compilers $compilers"
16031 all_stagestuff
="$all_stagestuff $stagestuff"
16032 all_outputs
="$all_outputs $outputs"
16033 all_gtfiles
="$all_gtfiles $gtfiles"
16036 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16037 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16043 # Pick up gtfiles for c
16046 .
${srcdir}/c-config-lang.
in
16047 all_gtfiles
="$all_gtfiles $gtfiles"
16050 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16051 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16055 for language
in $all_selected_languages
16057 check_languages
="$check_languages check-$language"
16060 # We link each language in with a set of hooks, reached indirectly via
16061 # lang.${target}. Only do so for selected languages.
16065 target_list
="all.cross start.encap rest.encap tags \
16066 install-common install-man install-info dvi html \
16067 uninstall info man srcextra srcman srcinfo \
16068 mostlyclean clean distclean maintainer-clean \
16069 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16071 for t
in $target_list
16074 for lang
in $all_selected_languages
16078 echo "lang.$t: $x" >> Make-hooks
16087 echo "dir ." > .gdbinit
16088 echo "dir ${srcdir}" >> .gdbinit
16089 if test x
$gdb_needs_out_file_path = xyes
16091 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16093 if test "x$subdirs" != x
; then
16096 echo "dir ${srcdir}/$s" >> .gdbinit
16099 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16101 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16102 # absolute path for gcc_tooldir based on inserting the number of up-directory
16103 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16104 # $(libsubdir)/@(unlibsubdir) based path.
16105 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16106 # make and thus we'd get different behavior depending on where we built the
16108 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16109 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16111 # An explanation of the sed strings:
16112 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16113 # -e 's|/$||' match a trailing forward slash and eliminates it
16114 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16115 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16117 # (*) Note this pattern overwrites the first character of the string
16118 # with a forward slash if one is not already present. This is not a
16119 # problem because the exact names of the sub-directories concerned is
16120 # unimportant, just the number of them matters.
16122 # The practical upshot of these patterns is like this:
16124 # prefix exec_prefix result
16125 # ------ ----------- ------
16126 # /foo /foo/bar ../
16127 # /foo/ /foo/bar ../
16128 # /foo /foo/bar/ ../
16129 # /foo/ /foo/bar/ ../
16130 # /foo /foo/bar/ugg ../../
16133 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16138 # Find a directory in which to install a shared libgcc.
16140 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16141 if test "${enable_version_specific_runtime_libs+set}" = set; then
16142 enableval
="$enable_version_specific_runtime_libs"
16147 # Check whether --with-slibdir or --without-slibdir was given.
16148 if test "${with_slibdir+set}" = set; then
16149 withval
="$with_slibdir"
16150 slibdir
="$with_slibdir"
16152 if test "${enable_version_specific_runtime_libs+set}" = set; then
16153 slibdir
='$(libsubdir)'
16154 elif test "$host" != "$target"; then
16155 slibdir
='$(build_tooldir)/lib'
16157 slibdir
='$(libdir)'
16162 objdir
=`${PWDCMD-pwd}`
16166 # Check whether --with-datarootdir or --without-datarootdir was given.
16167 if test "${with_datarootdir+set}" = set; then
16168 withval
="$with_datarootdir"
16169 datarootdir
="\${prefix}/$with_datarootdir"
16171 datarootdir
='$(prefix)/share'
16176 # Check whether --with-docdir or --without-docdir was given.
16177 if test "${with_docdir+set}" = set; then
16178 withval
="$with_docdir"
16179 docdir
="\${prefix}/$with_docdir"
16181 docdir
='$(datarootdir)'
16186 # Check whether --with-htmldir or --without-htmldir was given.
16187 if test "${with_htmldir+set}" = set; then
16188 withval
="$with_htmldir"
16189 htmldir
="\${prefix}/$with_htmldir"
16191 htmldir
='$(docdir)'
16195 # Substitute configuration variables
16261 if test x
${build} = x
${host} ; then
16262 if test x
${host} = x
${target} ; then
16263 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16265 echo "Links are now set up to build a cross-compiler" 1>&2
16266 echo " from ${host} to ${target}." 1>&2
16269 if test x
${host} = x
${target} ; then
16270 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16271 echo " for ${target}." 1>&2
16273 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16274 echo " from ${host} to ${target}." 1>&2
16281 # Configure the subdirectories
16282 # AC_CONFIG_SUBDIRS($subdirs)
16284 # Create the Makefile
16285 # and configure language subdirectories
16286 ac_config_files
="$ac_config_files $all_outputs"
16289 ac_config_commands
="$ac_config_commands default"
16291 cat >confcache
<<\_ACEOF
16292 # This file is a shell script that caches the results of configure
16293 # tests run on this system so they can be shared between configure
16294 # scripts and configure runs, see configure's option --config-cache.
16295 # It is not useful on other systems. If it contains results you don't
16296 # want to keep, you may remove or edit it.
16298 # config.status only pays attention to the cache file if you give it
16299 # the --recheck option to rerun configure.
16301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16303 # following values.
16307 # The following way of writing the cache mishandles newlines in values,
16308 # but we know of no workaround that is simple, portable, and efficient.
16309 # So, don't put newlines in cache variables' values.
16310 # Ultrix sh set writes to stderr and can't be redirected directly,
16311 # and sets the high bit in the cache file unless we assign to the vars.
16314 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16316 # `set' does not quote correctly, so add quotes (double-quote
16317 # substitution turns \\\\ into \\, and sed turns \\ into \).
16320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16323 # `set' quotes correctly as required by POSIX, so do not add quotes.
16325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16334 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16336 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16337 if test -w $cache_file; then
16338 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16339 cat confcache
>$cache_file
16341 echo "not updating unwritable cache $cache_file"
16346 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16347 # Let make expand exec_prefix.
16348 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.
; then
16355 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16356 s/:*\$(srcdir):*/:/;
16357 s/:*\${srcdir}:*/:/;
16359 s/^\([^=]*=[ ]*\):*/\1/;
16365 DEFS
=-DHAVE_CONFIG_H
16369 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16370 # 1. Remove the extension, and $U if already installed.
16371 ac_i
=`echo "$ac_i" |
16372 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16374 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16375 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16377 LIBOBJS
=$ac_libobjs
16379 LTLIBOBJS
=$ac_ltlibobjs
16383 : ${CONFIG_STATUS=./config.status}
16384 ac_clean_files_save
=$ac_clean_files
16385 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16386 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16387 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16388 cat >$CONFIG_STATUS <<_ACEOF
16390 # Generated by $as_me.
16391 # Run this file to recreate the current configuration.
16392 # Compiler output produced by configure, useful for debugging
16393 # configure, is in config.log if it exists.
16396 ac_cs_recheck=false
16398 SHELL=\${CONFIG_SHELL-$SHELL}
16401 cat >>$CONFIG_STATUS <<\_ACEOF
16402 ## --------------------- ##
16403 ## M4sh Initialization. ##
16404 ## --------------------- ##
16406 # Be Bourne compatible
16407 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16410 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16411 # is contrary to our usage. Disable this feature.
16412 alias -g '${1+"$@"}'='"$@"'
16413 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16416 DUALCASE
=1; export DUALCASE
# for MKS sh
16418 # Support unset when possible.
16419 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16426 # Work around bugs in pre-3.0 UWIN ksh.
16427 $as_unset ENV MAIL MAILPATH
16434 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16435 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16436 LC_TELEPHONE LC_TIME
16438 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16439 eval $as_var=C
; export $as_var
16445 # Required to use basename.
16446 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16452 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16453 as_basename
=basename
16459 # Name of the executable.
16460 as_me
=`$as_basename "$0" ||
16461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16462 X"$0" : 'X\(//\)$' \| \
16463 X"$0" : 'X\(/\)$' \| \
16464 . : '\(.\)' 2>/dev/null ||
16466 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16467 /^X\/\(\/\/\)$/{ s//\1/; q; }
16468 /^X\/\(\/\).*/{ s//\1/; q; }
16472 # PATH needs CR, and LINENO needs CR and PATH.
16473 # Avoid depending upon Character Ranges.
16474 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16475 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16476 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16477 as_cr_digits
='0123456789'
16478 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16480 # The user is always right.
16481 if test "${PATH_SEPARATOR+set}" != set; then
16482 echo "#! /bin/sh" >conf$$.sh
16483 echo "exit 0" >>conf$$.sh
16485 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16494 as_lineno_1
=$LINENO
16495 as_lineno_2
=$LINENO
16496 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16497 test "x$as_lineno_1" != "x$as_lineno_2" &&
16498 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16499 # Find who we are. Look in the path if we contain no path at all
16502 *[\\/]* ) as_myself
=$0 ;;
16503 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16504 for as_dir
in $PATH
16507 test -z "$as_dir" && as_dir
=.
16508 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16513 # We did not find ourselves, most probably we were run as `sh COMMAND'
16514 # in which case we are not to be found in the path.
16515 if test "x$as_myself" = x
; then
16518 if test ! -f "$as_myself"; then
16519 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16520 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16521 { (exit 1); exit 1; }; }
16523 case $CONFIG_SHELL in
16525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16526 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16529 test -z "$as_dir" && as_dir
=.
16530 for as_base
in sh bash ksh sh5
; do
16533 if ("$as_dir/$as_base" -c '
16534 as_lineno_1=$LINENO
16535 as_lineno_2=$LINENO
16536 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16537 test "x$as_lineno_1" != "x$as_lineno_2" &&
16538 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16539 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16540 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16541 CONFIG_SHELL
=$as_dir/$as_base
16542 export CONFIG_SHELL
16543 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16551 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16552 # uniformly replaced by the line number. The first 'sed' inserts a
16553 # line-number line before each line; the second 'sed' does the real
16554 # work. The second script uses 'N' to pair each line-number line
16555 # with the numbered line, and appends trailing '-' during
16556 # substitution so that $LINENO is not a special case at line end.
16557 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16558 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16559 sed '=' <$as_myself |
16564 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16567 s,^['$as_cr_digits']*\n,,
16568 ' >$as_me.lineno
&&
16569 chmod +x
$as_me.lineno ||
16570 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16571 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16572 { (exit 1); exit 1; }; }
16574 # Don't try to exec as it changes $[0], causing all sort of problems
16575 # (the dirname of $[0] is not the place where we might find the
16576 # original and so on. Autoconf is especially sensible to this).
16578 # Exit status is that of the last command.
16583 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16584 *c
*,-n*) ECHO_N
= ECHO_C
='
16586 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16587 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16590 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16596 rm -f conf$$ conf$$.exe conf$$.
file
16598 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16599 # We could just check for DJGPP; but this test a) works b) is more generic
16600 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16601 if test -f conf$$.exe
; then
16602 # Don't use ln at all; we don't have any links
16607 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16612 rm -f conf$$ conf$$.exe conf$$.
file
16614 if mkdir
-p .
2>/dev
/null
; then
16617 test -d .
/-p && rmdir .
/-p
16621 as_executable_p
="test -f"
16623 # Sed expression to map a string onto a valid CPP name.
16624 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16626 # Sed expression to map a string onto a valid variable name.
16627 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16631 # We need space, tab and new line, in precisely that order.
16641 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16642 # report actual input values of CONFIG_FILES etc. instead of their
16643 # values after options handling. Logging --version etc. is OK.
16647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16648 ## Running $as_me. ##
16653 This file was extended by $as_me, which was
16654 generated by GNU Autoconf 2.59. Invocation command line was
16656 CONFIG_FILES = $CONFIG_FILES
16657 CONFIG_HEADERS = $CONFIG_HEADERS
16658 CONFIG_LINKS = $CONFIG_LINKS
16659 CONFIG_COMMANDS = $CONFIG_COMMANDS
16663 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16667 # Files that config.status was made for.
16668 if test -n "$ac_config_files"; then
16669 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16672 if test -n "$ac_config_headers"; then
16673 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16676 if test -n "$ac_config_links"; then
16677 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16680 if test -n "$ac_config_commands"; then
16681 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16684 cat >>$CONFIG_STATUS <<\_ACEOF
16687 \`$as_me' instantiates files from templates according to the
16688 current configuration.
16690 Usage: $0 [OPTIONS] [FILE]...
16692 -h, --help print this help, then exit
16693 -V, --version print version number, then exit
16694 -q, --quiet do not print progress messages
16695 -d, --debug don't remove temporary files
16696 --recheck update $as_me by reconfiguring in the same conditions
16697 --file=FILE[:TEMPLATE]
16698 instantiate the configuration file FILE
16699 --header=FILE[:TEMPLATE]
16700 instantiate the configuration header FILE
16702 Configuration files:
16705 Configuration headers:
16708 Configuration commands:
16711 Report bugs to <bug-autoconf@gnu.org>."
16714 cat >>$CONFIG_STATUS <<_ACEOF
16717 configured by $0, generated by GNU Autoconf 2.59,
16718 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16720 Copyright (C) 2003 Free Software Foundation, Inc.
16721 This config.status script is free software; the Free Software Foundation
16722 gives unlimited permission to copy, distribute and modify it."
16726 cat >>$CONFIG_STATUS <<\_ACEOF
16727 # If no file are specified by the user, then we need to provide default
16728 # value. By we need to know if files were specified by the user.
16734 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16735 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16743 *) # This is not an option, so the user has probably given explicit
16746 ac_need_defaults
=false
;;
16750 # Handling of the options.
16752 cat >>$CONFIG_STATUS <<\_ACEOF
16753 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16755 --version |
--vers* |
-V )
16756 echo "$ac_cs_version"; exit 0 ;;
16758 # Conflict between --help and --header
16759 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16760 Try \`$0 --help' for more information." >&5
16761 echo "$as_me: error: ambiguous option: $1
16762 Try \`$0 --help' for more information." >&2;}
16763 { (exit 1); exit 1; }; };;
16764 --help |
--hel |
-h )
16765 echo "$ac_cs_usage"; exit 0 ;;
16766 --debug |
--d* |
-d )
16768 --file |
--fil |
--fi |
--f )
16770 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16771 ac_need_defaults
=false
;;
16772 --header |
--heade |
--head |
--hea )
16774 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16775 ac_need_defaults
=false
;;
16776 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16777 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16780 # This is an error.
16781 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16782 Try \`$0 --help' for more information." >&5
16783 echo "$as_me: error: unrecognized option: $1
16784 Try \`$0 --help' for more information." >&2;}
16785 { (exit 1); exit 1; }; } ;;
16787 *) ac_config_targets
="$ac_config_targets $1" ;;
16793 ac_configure_extra_args
=
16795 if $ac_cs_silent; then
16797 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16801 cat >>$CONFIG_STATUS <<_ACEOF
16802 if \$ac_cs_recheck; then
16803 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16804 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16809 cat >>$CONFIG_STATUS <<_ACEOF
16811 # INIT-COMMANDS section.
16820 cat >>$CONFIG_STATUS <<\_ACEOF
16821 for ac_config_target
in $ac_config_targets
16823 case "$ac_config_target" in
16824 # Handling of arguments.
16825 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16826 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16827 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16828 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16829 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16830 { (exit 1); exit 1; }; };;
16834 # If the user did not use the arguments to specify the items to instantiate,
16835 # then the envvar interface is used. Set only those that are not.
16836 # We use the long form for the default assignment because of an extremely
16837 # bizarre bug on SunOS 4.1.3.
16838 if $ac_need_defaults; then
16839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16841 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16844 # Have a temporary directory for convenience. Make it in the build tree
16845 # simply because there is no reason to put it here, and in addition,
16846 # creating and moving files from /tmp can sometimes cause problems.
16847 # Create a temporary directory, and hook for its removal unless debugging.
16850 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16851 trap '{ (exit 1); exit 1; }' 1 2 13 15
16854 # Create a (secure) tmp directory for tmp files.
16857 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16858 test -n "$tmp" && test -d "$tmp"
16861 tmp
=.
/confstat$$
-$RANDOM
16862 (umask 077 && mkdir
$tmp)
16865 echo "$me: cannot create a temporary directory in ." >&2
16866 { (exit 1); exit 1; }
16871 cat >>$CONFIG_STATUS <<_ACEOF
16874 # CONFIG_FILES section.
16877 # No need to generate the scripts if there are no CONFIG_FILES.
16878 # This happens for instance when ./config.status config.h
16879 if test -n "\$CONFIG_FILES"; then
16880 # Protect against being on the right side of a sed subst in config.status.
16881 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16882 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16883 s,@SHELL@,$SHELL,;t t
16884 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16885 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16886 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16887 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16888 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16889 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16890 s,@exec_prefix@,$exec_prefix,;t t
16891 s,@prefix@,$prefix,;t t
16892 s,@program_transform_name@,$program_transform_name,;t t
16893 s,@bindir@,$bindir,;t t
16894 s,@sbindir@,$sbindir,;t t
16895 s,@libexecdir@,$libexecdir,;t t
16896 s,@datadir@,$datadir,;t t
16897 s,@sysconfdir@,$sysconfdir,;t t
16898 s,@sharedstatedir@,$sharedstatedir,;t t
16899 s,@localstatedir@,$localstatedir,;t t
16900 s,@libdir@,$libdir,;t t
16901 s,@includedir@,$includedir,;t t
16902 s,@oldincludedir@,$oldincludedir,;t t
16903 s,@infodir@,$infodir,;t t
16904 s,@mandir@,$mandir,;t t
16905 s,@build_alias@,$build_alias,;t t
16906 s,@host_alias@,$host_alias,;t t
16907 s,@target_alias@,$target_alias,;t t
16908 s,@DEFS@,$DEFS,;t t
16909 s,@ECHO_C@,$ECHO_C,;t t
16910 s,@ECHO_N@,$ECHO_N,;t t
16911 s,@ECHO_T@,$ECHO_T,;t t
16912 s,@LIBS@,$LIBS,;t t
16913 s,@build@,$build,;t t
16914 s,@build_cpu@,$build_cpu,;t t
16915 s,@build_vendor@,$build_vendor,;t t
16916 s,@build_os@,$build_os,;t t
16917 s,@host@,$host,;t t
16918 s,@host_cpu@,$host_cpu,;t t
16919 s,@host_vendor@,$host_vendor,;t t
16920 s,@host_os@,$host_os,;t t
16921 s,@target@,$target,;t t
16922 s,@target_cpu@,$target_cpu,;t t
16923 s,@target_vendor@,$target_vendor,;t t
16924 s,@target_os@,$target_os,;t t
16925 s,@target_noncanonical@,$target_noncanonical,;t t
16926 s,@build_subdir@,$build_subdir,;t t
16927 s,@host_subdir@,$host_subdir,;t t
16928 s,@target_subdir@,$target_subdir,;t t
16929 s,@GENINSRC@,$GENINSRC,;t t
16931 s,@CFLAGS@,$CFLAGS,;t t
16932 s,@LDFLAGS@,$LDFLAGS,;t t
16933 s,@CPPFLAGS@,$CPPFLAGS,;t t
16934 s,@ac_ct_CC@,$ac_ct_CC,;t t
16935 s,@EXEEXT@,$EXEEXT,;t t
16936 s,@OBJEXT@,$OBJEXT,;t t
16937 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16938 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16940 s,@EGREP@,$EGREP,;t t
16941 s,@strict1_warn@,$strict1_warn,;t t
16942 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16943 s,@warn_cflags@,$warn_cflags,;t t
16944 s,@WERROR@,$WERROR,;t t
16945 s,@nocommon_flag@,$nocommon_flag,;t t
16946 s,@TREEBROWSER@,$TREEBROWSER,;t t
16947 s,@valgrind_path@,$valgrind_path,;t t
16948 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16949 s,@valgrind_command@,$valgrind_command,;t t
16950 s,@coverage_flags@,$coverage_flags,;t t
16951 s,@enable_multilib@,$enable_multilib,;t t
16952 s,@enable_decimal_float@,$enable_decimal_float,;t t
16953 s,@enable_shared@,$enable_shared,;t t
16954 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16955 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16956 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16957 s,@onestep@,$onestep,;t t
16958 s,@SET_MAKE@,$SET_MAKE,;t t
16960 s,@LN_S@,$LN_S,;t t
16962 s,@RANLIB@,$RANLIB,;t t
16963 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16964 s,@ranlib_flags@,$ranlib_flags,;t t
16965 s,@INSTALL@,$INSTALL,;t t
16966 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16967 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16968 s,@make_compare_target@,$make_compare_target,;t t
16969 s,@have_mktemp_command@,$have_mktemp_command,;t t
16970 s,@MAKEINFO@,$MAKEINFO,;t t
16971 s,@BUILD_INFO@,$BUILD_INFO,;t t
16972 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16973 s,@FLEX@,$FLEX,;t t
16974 s,@BISON@,$BISON,;t t
16977 s,@stage1_cflags@,$stage1_cflags,;t t
16978 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16979 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16980 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16981 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16982 s,@LIBICONV@,$LIBICONV,;t t
16983 s,@LTLIBICONV@,$LTLIBICONV,;t t
16984 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16985 s,@manext@,$manext,;t t
16986 s,@objext@,$objext,;t t
16987 s,@gthread_flags@,$gthread_flags,;t t
16988 s,@extra_modes_file@,$extra_modes_file,;t t
16989 s,@extra_opt_files@,$extra_opt_files,;t t
16990 s,@USE_NLS@,$USE_NLS,;t t
16991 s,@LIBINTL@,$LIBINTL,;t t
16992 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16993 s,@INCINTL@,$INCINTL,;t t
16994 s,@XGETTEXT@,$XGETTEXT,;t t
16995 s,@GMSGFMT@,$GMSGFMT,;t t
16996 s,@POSUB@,$POSUB,;t t
16997 s,@CATALOGS@,$CATALOGS,;t t
16998 s,@DATADIRNAME@,$DATADIRNAME,;t t
16999 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17000 s,@GENCAT@,$GENCAT,;t t
17001 s,@CATOBJEXT@,$CATOBJEXT,;t t
17002 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17003 s,@CROSS@,$CROSS,;t t
17005 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17006 s,@inhibit_libc@,$inhibit_libc,;t t
17007 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17008 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17009 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17010 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17011 s,@collect2@,$collect2,;t t
17012 s,@gcc_cv_as@,$gcc_cv_as,;t t
17013 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17014 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17015 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17016 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17017 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17018 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17019 s,@libgcc_visibility@,$libgcc_visibility,;t t
17021 s,@zlibdir@,$zlibdir,;t t
17022 s,@zlibinc@,$zlibinc,;t t
17023 s,@MAINT@,$MAINT,;t t
17024 s,@gcc_tooldir@,$gcc_tooldir,;t t
17025 s,@dollar@,$dollar,;t t
17026 s,@slibdir@,$slibdir,;t t
17027 s,@objdir@,$objdir,;t t
17028 s,@datarootdir@,$datarootdir,;t t
17029 s,@docdir@,$docdir,;t t
17030 s,@htmldir@,$htmldir,;t t
17031 s,@subdirs@,$subdirs,;t t
17032 s,@srcdir@,$srcdir,;t t
17033 s,@all_boot_languages@,$all_boot_languages,;t t
17034 s,@all_compilers@,$all_compilers,;t t
17035 s,@all_gtfiles@,$all_gtfiles,;t t
17036 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17037 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17038 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17039 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17040 s,@all_languages@,$all_languages,;t t
17041 s,@all_selected_languages@,$all_selected_languages,;t t
17042 s,@all_stagestuff@,$all_stagestuff,;t t
17043 s,@build_exeext@,$build_exeext,;t t
17044 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17045 s,@build_xm_file_list@,$build_xm_file_list,;t t
17046 s,@build_xm_include_list@,$build_xm_include_list,;t t
17047 s,@build_xm_defines@,$build_xm_defines,;t t
17048 s,@check_languages@,$check_languages,;t t
17049 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17050 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17051 s,@cpp_install_dir@,$cpp_install_dir,;t t
17052 s,@xmake_file@,$xmake_file,;t t
17053 s,@tmake_file@,$tmake_file,;t t
17054 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17055 s,@extra_headers_list@,$extra_headers_list,;t t
17056 s,@extra_objs@,$extra_objs,;t t
17057 s,@extra_parts@,$extra_parts,;t t
17058 s,@extra_passes@,$extra_passes,;t t
17059 s,@extra_programs@,$extra_programs,;t t
17060 s,@float_h_file@,$float_h_file,;t t
17061 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17062 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17063 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17064 s,@host_exeext@,$host_exeext,;t t
17065 s,@host_xm_file_list@,$host_xm_file_list,;t t
17066 s,@host_xm_include_list@,$host_xm_include_list,;t t
17067 s,@host_xm_defines@,$host_xm_defines,;t t
17068 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17069 s,@install@,$install,;t t
17070 s,@lang_opt_files@,$lang_opt_files,;t t
17071 s,@lang_specs_files@,$lang_specs_files,;t t
17072 s,@lang_tree_files@,$lang_tree_files,;t t
17073 s,@local_prefix@,$local_prefix,;t t
17074 s,@md_file@,$md_file,;t t
17075 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17076 s,@out_file@,$out_file,;t t
17077 s,@out_object_file@,$out_object_file,;t t
17078 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17079 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17080 s,@thread_file@,$thread_file,;t t
17081 s,@tm_file_list@,$tm_file_list,;t t
17082 s,@tm_include_list@,$tm_include_list,;t t
17083 s,@tm_defines@,$tm_defines,;t t
17084 s,@tm_p_file_list@,$tm_p_file_list,;t t
17085 s,@tm_p_include_list@,$tm_p_include_list,;t t
17086 s,@xm_file_list@,$xm_file_list,;t t
17087 s,@xm_include_list@,$xm_include_list,;t t
17088 s,@xm_defines@,$xm_defines,;t t
17089 s,@c_target_objs@,$c_target_objs,;t t
17090 s,@cxx_target_objs@,$cxx_target_objs,;t t
17091 s,@target_cpu_default@,$target_cpu_default,;t t
17092 s,@GMPLIBS@,$GMPLIBS,;t t
17093 s,@GMPINC@,$GMPINC,;t t
17094 s,@LIBOBJS@,$LIBOBJS,;t t
17095 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17096 /@language_hooks@/r $language_hooks
17097 s,@language_hooks@,,;t t
17102 cat >>$CONFIG_STATUS <<\_ACEOF
17103 # Split the substitutions into bite-sized pieces for seds with
17104 # small command number limits, like on Digital OSF/1 and HP-UX.
17105 ac_max_sed_lines
=48
17106 ac_sed_frag
=1 # Number of current file.
17107 ac_beg
=1 # First line for current file.
17108 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17111 while $ac_more_lines; do
17112 if test $ac_beg -gt 1; then
17113 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17115 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17117 if test ! -s $tmp/subs.frag
; then
17118 ac_more_lines
=false
17120 # The purpose of the label and of the branching condition is to
17121 # speed up the sed processing (if there are no `@' at all, there
17122 # is no need to browse any of the substitutions).
17123 # These are the two extra sed commands mentioned above.
17125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17126 if test -z "$ac_sed_cmds"; then
17127 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17129 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17131 ac_sed_frag
=`expr $ac_sed_frag + 1`
17133 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17136 if test -z "$ac_sed_cmds"; then
17139 fi # test -n "$CONFIG_FILES"
17142 cat >>$CONFIG_STATUS <<\_ACEOF
17143 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17146 - |
*:- |
*:-:* ) # input from stdin
17148 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17149 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17150 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17151 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17152 * ) ac_file_in
=$ac_file.
in ;;
17155 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17156 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17158 X"$ac_file" : 'X\(//\)[^/]' \| \
17159 X"$ac_file" : 'X\(//\)$' \| \
17160 X"$ac_file" : 'X\(/\)' \| \
17161 . : '\(.\)' 2>/dev/null ||
17163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17165 /^X\(\/\/\)$/{ s//\1/; q; }
17166 /^X\(\/\).*/{ s//\1/; q; }
17168 { if $as_mkdir_p; then
17173 while test ! -d "$as_dir"; do
17174 as_dirs
="$as_dir $as_dirs"
17175 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$as_dir" : 'X\(//\)[^/]' \| \
17178 X"$as_dir" : 'X\(//\)$' \| \
17179 X"$as_dir" : 'X\(/\)' \| \
17180 . : '\(.\)' 2>/dev/null ||
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17184 /^X\(\/\/\)$/{ s//\1/; q; }
17185 /^X\(\/\).*/{ s//\1/; q; }
17188 test ! -n "$as_dirs" || mkdir
$as_dirs
17189 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17191 { (exit 1); exit 1; }; }; }
17195 if test "$ac_dir" != .
; then
17196 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17197 # A "../" for each directory in $ac_dir_suffix.
17198 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17200 ac_dir_suffix
= ac_top_builddir
=
17204 .
) # No --srcdir option. We are building in place.
17206 if test -z "$ac_top_builddir"; then
17209 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17211 [\\/]* | ?
:[\\/]* ) # Absolute path.
17212 ac_srcdir
=$srcdir$ac_dir_suffix;
17213 ac_top_srcdir
=$srcdir ;;
17214 *) # Relative path.
17215 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17216 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17219 # Do not use `cd foo && pwd` to compute absolute paths, because
17220 # the directories may not exist.
17222 .
) ac_abs_builddir
="$ac_dir";;
17225 .
) ac_abs_builddir
=`pwd`;;
17226 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17227 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17230 case $ac_abs_builddir in
17231 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17233 case ${ac_top_builddir}.
in
17234 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17235 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17236 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17239 case $ac_abs_builddir in
17240 .
) ac_abs_srcdir
=$ac_srcdir;;
17243 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17244 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17245 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17248 case $ac_abs_builddir in
17249 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17251 case $ac_top_srcdir in
17252 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17253 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17254 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17260 if test x
"$ac_file" != x-
; then
17261 { echo "$as_me:$LINENO: creating $ac_file" >&5
17262 echo "$as_me: creating $ac_file" >&6;}
17265 # Let's still pretend it is `configure' which instantiates (i.e., don't
17266 # use $as_me), people would be surprised to read:
17267 # /* config.h. Generated by config.status. */
17268 if test x
"$ac_file" = x-
; then
17271 configure_input
="$ac_file. "
17273 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17274 sed 's,.*/,,'` by configure."
17276 # First look for the input files in the build tree, otherwise in the
17278 ac_file_inputs
=`IFS=:
17279 for f in $ac_file_in; do
17281 -) echo $tmp/stdin ;;
17283 # Absolute (can't be DOS-style, as IFS=:)
17284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17285 echo "$as_me: error: cannot find input file: $f" >&2;}
17286 { (exit 1); exit 1; }; }
17289 if test -f "$f"; then
17292 elif test -f "$srcdir/$f"; then
17297 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17298 echo "$as_me: error: cannot find input file: $f" >&2;}
17299 { (exit 1); exit 1; }; }
17302 done` ||
{ (exit 1); exit 1; }
17304 cat >>$CONFIG_STATUS <<_ACEOF
17308 cat >>$CONFIG_STATUS <<\_ACEOF
17310 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17311 s
,@configure_input@
,$configure_input,;t t
17312 s
,@srcdir@
,$ac_srcdir,;t t
17313 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17314 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17315 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17316 s
,@builddir@
,$ac_builddir,;t t
17317 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17318 s
,@top_builddir@
,$ac_top_builddir,;t t
17319 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17320 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17322 if test x"$ac_file" != x-; then
17323 mv $tmp/out $ac_file
17331 cat >>$CONFIG_STATUS <<\_ACEOF
17334 # CONFIG_HEADER section.
17337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17340 # ac_d sets the value in "#define NAME VALUE" lines.
17341 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17342 ac_dB
='[ ].*$,\1#\2'
17345 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17346 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17347 ac_uB
='$,\1#\2define\3'
17351 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17354 - |
*:- |
*:-:* ) # input from stdin
17356 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17357 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17358 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17359 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17360 * ) ac_file_in
=$ac_file.
in ;;
17363 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17364 echo "$as_me: creating $ac_file" >&6;}
17366 # First look for the input files in the build tree, otherwise in the
17368 ac_file_inputs
=`IFS=:
17369 for f in $ac_file_in; do
17371 -) echo $tmp/stdin ;;
17373 # Absolute (can't be DOS-style, as IFS=:)
17374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17375 echo "$as_me: error: cannot find input file: $f" >&2;}
17376 { (exit 1); exit 1; }; }
17377 # Do quote $f, to prevent DOS paths from being IFS'd.
17380 if test -f "$f"; then
17383 elif test -f "$srcdir/$f"; then
17388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17389 echo "$as_me: error: cannot find input file: $f" >&2;}
17390 { (exit 1); exit 1; }; }
17393 done` ||
{ (exit 1); exit 1; }
17394 # Remove the trailing spaces.
17395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17399 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17400 # `conftest.undefs', that substitutes the proper values into
17401 # config.h.in to produce config.h. The first handles `#define'
17402 # templates, and the second `#undef' templates.
17403 # And first: Protect against being on the right side of a sed subst in
17404 # config.status. Protect against being in an unquoted here document
17405 # in config.status.
17406 rm -f conftest.defines conftest.undefs
17407 # Using a here document instead of a string reduces the quoting nightmare.
17408 # Putting comments in sed scripts is not portable.
17410 # `end' is used to avoid that the second main sed command (meant for
17411 # 0-ary CPP macros) applies to n-ary macro definitions.
17412 # See the Autoconf documentation for `clear'.
17413 cat >confdef2sed.
sed <<\_ACEOF
17418 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17420 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17423 # If some macros were called several times there might be several times
17424 # the same #defines, which is useless. Nevertheless, we may not want to
17425 # sort them, since we want the *last* AC-DEFINE to be honored.
17426 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17427 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17428 rm -f confdef2sed.sed
17430 # This sed command replaces #undef with comments. This is necessary, for
17431 # example, in the case of _POSIX_SOURCE, which is predefined and required
17432 # on some systems where configure will not decide to define it.
17433 cat >>conftest.undefs <<\_ACEOF
17434 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17437 # Break up conftest.defines because some shells have a limit on the size
17438 # of here documents, and old seds have small limits too (100 cmds).
17439 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17440 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17441 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17442 echo ' :' >>$CONFIG_STATUS
17443 rm -f conftest.tail
17444 while grep . conftest.defines >/dev/null
17446 # Write a limited-size here document to $tmp/defines.sed.
17447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17448 # Speed up: don't consider the non `#define' lines.
17449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17450 # Work around the forget-to-reset-the-flag bug.
17451 echo 't clr' >>$CONFIG_STATUS
17452 echo ': clr' >>$CONFIG_STATUS
17453 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17457 mv $tmp/out $tmp/in
17459 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17460 rm -f conftest.defines
17461 mv conftest.
tail conftest.defines
17463 rm -f conftest.defines
17464 echo ' fi # grep' >>$CONFIG_STATUS
17465 echo >>$CONFIG_STATUS
17467 # Break up conftest.undefs because some shells have a limit on the size
17468 # of here documents, and old seds have small limits too (100 cmds).
17469 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17470 rm -f conftest.
tail
17471 while grep . conftest.undefs
>/dev
/null
17473 # Write a limited-size here document to $tmp/undefs.sed.
17474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17475 # Speed up: don't consider the non
`#undef'
17476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17477 # Work around the forget-to-reset-the-flag bug.
17478 echo 't clr' >>$CONFIG_STATUS
17479 echo ': clr' >>$CONFIG_STATUS
17480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17484 mv $tmp/out $tmp/in
17486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17487 rm -f conftest.undefs
17488 mv conftest.tail conftest.undefs
17490 rm -f conftest.undefs
17492 cat >>$CONFIG_STATUS <<\_ACEOF
17493 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17494 # use $as_me), people would be surprised to read:
17495 # /* config.h. Generated by config.status. */
17496 if test x
"$ac_file" = x-
; then
17497 echo "/* Generated by configure. */" >$tmp/config.h
17499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17501 cat $tmp/in >>$tmp/config.h
17503 if test x
"$ac_file" != x-
; then
17504 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17506 echo "$as_me: $ac_file is unchanged" >&6;}
17508 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17510 X"$ac_file" : 'X\(//\)[^/]' \| \
17511 X"$ac_file" : 'X\(//\)$' \| \
17512 X"$ac_file" : 'X\(/\)' \| \
17513 . : '\(.\)' 2>/dev/null ||
17515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17517 /^X\(\/\/\)$/{ s//\1/; q; }
17518 /^X\(\/\).*/{ s//\1/; q; }
17520 { if $as_mkdir_p; then
17525 while test ! -d "$as_dir"; do
17526 as_dirs
="$as_dir $as_dirs"
17527 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17529 X"$as_dir" : 'X\(//\)[^/]' \| \
17530 X"$as_dir" : 'X\(//\)$' \| \
17531 X"$as_dir" : 'X\(/\)' \| \
17532 . : '\(.\)' 2>/dev/null ||
17534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17536 /^X\(\/\/\)$/{ s//\1/; q; }
17537 /^X\(\/\).*/{ s//\1/; q; }
17540 test ! -n "$as_dirs" || mkdir
$as_dirs
17541 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17542 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17543 { (exit 1); exit 1; }; }; }
17546 mv $tmp/config.h
$ac_file
17550 rm -f $tmp/config.h
17554 cat >>$CONFIG_STATUS <<\_ACEOF
17557 # CONFIG_COMMANDS section.
17559 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17560 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17561 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17562 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17563 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17564 X"$ac_dest" : 'X\(//\)[^/]' \| \
17565 X"$ac_dest" : 'X\(//\)$' \| \
17566 X"$ac_dest" : 'X\(/\)' \| \
17567 . : '\(.\)' 2>/dev/null ||
17569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17571 /^X\(\/\/\)$/{ s//\1/; q; }
17572 /^X\(\/\).*/{ s//\1/; q; }
17574 { if $as_mkdir_p; then
17579 while test ! -d "$as_dir"; do
17580 as_dirs
="$as_dir $as_dirs"
17581 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17583 X"$as_dir" : 'X\(//\)[^/]' \| \
17584 X"$as_dir" : 'X\(//\)$' \| \
17585 X"$as_dir" : 'X\(/\)' \| \
17586 . : '\(.\)' 2>/dev/null ||
17588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17589 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17590 /^X\(\/\/\)$/{ s//\1/; q; }
17591 /^X\(\/\).*/{ s//\1/; q; }
17594 test ! -n "$as_dirs" || mkdir
$as_dirs
17595 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17597 { (exit 1); exit 1; }; }; }
17601 if test "$ac_dir" != .
; then
17602 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17603 # A "../" for each directory in $ac_dir_suffix.
17604 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17606 ac_dir_suffix
= ac_top_builddir
=
17610 .
) # No --srcdir option. We are building in place.
17612 if test -z "$ac_top_builddir"; then
17615 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17617 [\\/]* | ?
:[\\/]* ) # Absolute path.
17618 ac_srcdir
=$srcdir$ac_dir_suffix;
17619 ac_top_srcdir
=$srcdir ;;
17620 *) # Relative path.
17621 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17622 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17625 # Do not use `cd foo && pwd` to compute absolute paths, because
17626 # the directories may not exist.
17628 .
) ac_abs_builddir
="$ac_dir";;
17631 .
) ac_abs_builddir
=`pwd`;;
17632 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17633 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17636 case $ac_abs_builddir in
17637 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17639 case ${ac_top_builddir}.
in
17640 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17641 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17642 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17645 case $ac_abs_builddir in
17646 .
) ac_abs_srcdir
=$ac_srcdir;;
17649 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17650 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17651 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17654 case $ac_abs_builddir in
17655 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17657 case $ac_top_srcdir in
17658 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17659 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17660 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17665 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17666 echo "$as_me: executing $ac_dest commands" >&6;}
17669 case ${CONFIG_HEADERS} in
17670 *auto-host.h
:config.
in*)
17673 # Make sure all the subdirs exist.
17674 for d
in $subdirs doc build
17676 test -d $d || mkdir
$d
17678 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17679 # bootstrapping and the installation procedure can still use
17680 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17681 # FLAGS_TO_PASS has been modified to solve the problem there.
17682 # This is virtually a duplicate of what happens in configure.lang; we do
17683 # an extra check to make sure this only happens if ln -s can be used.
17686 for d
in ${subdirs} ; do
17687 STARTDIR
=`${PWDCMD-pwd}`
17689 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17692 $LN_S ..
/$t $t 2>/dev
/null
17703 cat >>$CONFIG_STATUS <<\_ACEOF
17705 { (exit 0); exit 0; }
17707 chmod +x
$CONFIG_STATUS
17708 ac_clean_files
=$ac_clean_files_save
17711 # configure is writing to config.log, and then calls config.status.
17712 # config.status does its own redirection, appending to config.log.
17713 # Unfortunately, on DOS this fails, as config.log is still kept open
17714 # by configure, so config.status won't be able to write to it; its
17715 # output is simply discarded. So we exec the FD to /dev/null,
17716 # effectively closing config.log, so it can be properly (re)opened and
17717 # appended to by config.status. When coming back to configure, we
17718 # need to make the FD available again.
17719 if test "$no_create" != yes; then
17721 ac_config_status_args
=
17722 test "$silent" = yes &&
17723 ac_config_status_args
="$ac_config_status_args --quiet"
17725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17728 # would make configure fail if this is the last instruction.
17729 $ac_cs_success ||
{ (exit 1); exit 1; }