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 datarootdir docdir htmldir 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 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 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2880 # optimizations to be activated explicitly by the toplevel.
2882 */prev-gcc
/xgcc
*) ;;
2883 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2887 # -------------------------
2888 # Check C compiler features
2889 # -------------------------
2892 ac_cpp
='$CPP $CPPFLAGS'
2893 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2896 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2897 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2898 # On Suns, sometimes $CPP names a directory.
2899 if test -n "$CPP" && test -d "$CPP"; then
2902 if test -z "$CPP"; then
2903 if test "${ac_cv_prog_CPP+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2906 # Double quotes because CPP needs to be expanded
2907 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2910 for ac_c_preproc_warn_flag
in '' yes
2912 # Use a header file that comes with gcc, so configuring glibc
2913 # with a fresh cross-compiler works.
2914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2915 # <limits.h> exists even on freestanding compilers.
2916 # On the NeXT, cc -E runs the code through the compiler's parser,
2917 # not just through cpp. "Syntax error" is here to catch this case.
2918 cat >conftest.
$ac_ext <<_ACEOF
2921 cat confdefs.h
>>conftest.
$ac_ext
2922 cat >>conftest.
$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2925 # include <limits.h>
2927 # include <assert.h>
2931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2932 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2934 grep -v '^ *+' conftest.er1
>conftest.err
2936 cat conftest.err
>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } >/dev
/null
; then
2939 if test -s conftest.err
; then
2940 ac_cpp_err
=$ac_c_preproc_warn_flag
2941 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2948 if test -z "$ac_cpp_err"; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.
$ac_ext >&5
2954 # Broken: fails on valid input.
2957 rm -f conftest.err conftest.
$ac_ext
2959 # OK, works on sane cases. Now check whether non-existent headers
2960 # can be detected and how.
2961 cat >conftest.
$ac_ext <<_ACEOF
2964 cat confdefs.h
>>conftest.
$ac_ext
2965 cat >>conftest.
$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2967 #include <ac_nonexistent.h>
2969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2970 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2972 grep -v '^ *+' conftest.er1
>conftest.err
2974 cat conftest.err
>&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } >/dev
/null
; then
2977 if test -s conftest.err
; then
2978 ac_cpp_err
=$ac_c_preproc_warn_flag
2979 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2986 if test -z "$ac_cpp_err"; then
2987 # Broken: success on invalid input.
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.
$ac_ext >&5
2993 # Passes both tests.
2997 rm -f conftest.err conftest.
$ac_ext
3000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3001 rm -f conftest.err conftest.
$ac_ext
3002 if $ac_preproc_ok; then
3014 echo "$as_me:$LINENO: result: $CPP" >&5
3015 echo "${ECHO_T}$CPP" >&6
3017 for ac_c_preproc_warn_flag
in '' yes
3019 # Use a header file that comes with gcc, so configuring glibc
3020 # with a fresh cross-compiler works.
3021 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022 # <limits.h> exists even on freestanding compilers.
3023 # On the NeXT, cc -E runs the code through the compiler's parser,
3024 # not just through cpp. "Syntax error" is here to catch this case.
3025 cat >conftest.
$ac_ext <<_ACEOF
3028 cat confdefs.h
>>conftest.
$ac_ext
3029 cat >>conftest.
$ac_ext <<_ACEOF
3030 /* end confdefs.h. */
3032 # include <limits.h>
3034 # include <assert.h>
3038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3039 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3041 grep -v '^ *+' conftest.er1
>conftest.err
3043 cat conftest.err
>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } >/dev
/null
; then
3046 if test -s conftest.err
; then
3047 ac_cpp_err
=$ac_c_preproc_warn_flag
3048 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3055 if test -z "$ac_cpp_err"; then
3058 echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.
$ac_ext >&5
3061 # Broken: fails on valid input.
3064 rm -f conftest.err conftest.
$ac_ext
3066 # OK, works on sane cases. Now check whether non-existent headers
3067 # can be detected and how.
3068 cat >conftest.
$ac_ext <<_ACEOF
3071 cat confdefs.h
>>conftest.
$ac_ext
3072 cat >>conftest.
$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074 #include <ac_nonexistent.h>
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3079 grep -v '^ *+' conftest.er1
>conftest.err
3081 cat conftest.err
>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev
/null
; then
3084 if test -s conftest.err
; then
3085 ac_cpp_err
=$ac_c_preproc_warn_flag
3086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3093 if test -z "$ac_cpp_err"; then
3094 # Broken: success on invalid input.
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.
$ac_ext >&5
3100 # Passes both tests.
3104 rm -f conftest.err conftest.
$ac_ext
3107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3108 rm -f conftest.err conftest.
$ac_ext
3109 if $ac_preproc_ok; then
3112 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3120 ac_cpp
='$CPP $CPPFLAGS'
3121 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3126 echo "$as_me:$LINENO: checking for inline" >&5
3127 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3128 if test "${ac_cv_c_inline+set}" = set; then
3129 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 for ac_kw
in inline __inline__ __inline
; do
3133 cat >conftest.
$ac_ext <<_ACEOF
3136 cat confdefs.h
>>conftest.
$ac_ext
3137 cat >>conftest.
$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3141 static $ac_kw foo_t static_foo () {return 0; }
3142 $ac_kw foo_t foo () {return 0; }
3146 rm -f conftest.
$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>conftest.er1
3150 grep -v '^ *+' conftest.er1
>conftest.err
3152 cat conftest.err
>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try
='test -z "$ac_c_werror_flag"
3156 || test ! -s conftest.err'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try
='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_cv_c_inline
=$ac_kw; break
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.
$ac_ext >&5
3174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3178 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3179 echo "${ECHO_T}$ac_cv_c_inline" >&6
3182 case $ac_cv_c_inline in
3185 case $ac_cv_c_inline in
3187 *) ac_val
=$ac_cv_c_inline;;
3189 cat >>confdefs.h
<<_ACEOF
3191 #define inline $ac_val
3198 # sizeof(char) is 1 by definition.
3200 echo "$as_me:$LINENO: checking for egrep" >&5
3201 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3202 if test "${ac_cv_prog_egrep+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3206 then ac_cv_prog_egrep
='grep -E'
3207 else ac_cv_prog_egrep
='egrep'
3210 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3211 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3212 EGREP
=$ac_cv_prog_egrep
3215 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3217 if test "${ac_cv_header_stdc+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 cat >conftest.
$ac_ext <<_ACEOF
3223 cat confdefs.h
>>conftest.
$ac_ext
3224 cat >>conftest.
$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3239 rm -f conftest.
$ac_objext
3240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>conftest.er1
3243 grep -v '^ *+' conftest.er1
>conftest.err
3245 cat conftest.err
>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try
='test -z "$ac_c_werror_flag"
3249 || test ! -s conftest.err'
3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); }; } &&
3255 { ac_try
='test -s conftest.$ac_objext'
3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_header_stdc
=yes
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.
$ac_ext >&5
3266 ac_cv_header_stdc
=no
3268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3270 if test $ac_cv_header_stdc = yes; then
3271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3272 cat >conftest.
$ac_ext <<_ACEOF
3275 cat confdefs.h
>>conftest.
$ac_ext
3276 cat >>conftest.
$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3282 $EGREP "memchr" >/dev
/null
2>&1; then
3285 ac_cv_header_stdc
=no
3291 if test $ac_cv_header_stdc = yes; then
3292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3293 cat >conftest.
$ac_ext <<_ACEOF
3296 cat confdefs.h
>>conftest.
$ac_ext
3297 cat >>conftest.
$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 $EGREP "free" >/dev
/null
2>&1; then
3306 ac_cv_header_stdc
=no
3312 if test $ac_cv_header_stdc = yes; then
3313 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3314 if test "$cross_compiling" = yes; then
3317 cat >conftest.
$ac_ext <<_ACEOF
3320 cat confdefs.h
>>conftest.
$ac_ext
3321 cat >>conftest.
$ac_ext <<_ACEOF
3322 /* end confdefs.h. */
3324 #if ((' ' & 0x0FF) == 0x020)
3325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3328 # define ISLOWER(c) \
3329 (('a' <= (c) && (c) <= 'i') \
3330 || ('j' <= (c) && (c) <= 'r') \
3331 || ('s' <= (c) && (c) <= 'z'))
3332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3340 for (i = 0; i < 256; i++)
3341 if (XOR (islower (i), ISLOWER (i))
3342 || toupper (i) != TOUPPER (i))
3347 rm -f conftest
$ac_exeext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3349 (eval $ac_link) 2>&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: program exited with status $ac_status" >&5
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.
$ac_ext >&5
3365 ac_cv_header_stdc
=no
3367 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3371 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3372 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3373 if test $ac_cv_header_stdc = yes; then
3375 cat >>confdefs.h
<<\_ACEOF
3376 #define STDC_HEADERS 1
3381 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3391 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3392 inttypes.h stdint.h unistd.h
3394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3395 echo "$as_me:$LINENO: checking for $ac_header" >&5
3396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 cat >conftest.
$ac_ext <<_ACEOF
3403 cat confdefs.h
>>conftest.
$ac_ext
3404 cat >>conftest.
$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 $ac_includes_default
3408 #include <$ac_header>
3410 rm -f conftest.
$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1
>conftest.err
3416 cat conftest.err
>&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try
='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try
='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 eval "$as_ac_Header=yes"
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.
$ac_ext >&5
3437 eval "$as_ac_Header=no"
3439 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3444 cat >>confdefs.h
<<_ACEOF
3445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3453 echo "$as_me:$LINENO: checking for void *" >&5
3454 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3455 if test "${ac_cv_type_void_p+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 cat >conftest.
$ac_ext <<_ACEOF
3461 cat confdefs.h
>>conftest.
$ac_ext
3462 cat >>conftest.
$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3464 $ac_includes_default
3470 if (sizeof (void *))
3476 rm -f conftest.
$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try
='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try
='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_type_void_p
=yes
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.
$ac_ext >&5
3503 ac_cv_type_void_p
=no
3505 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3507 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3508 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3510 echo "$as_me:$LINENO: checking size of void *" >&5
3511 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3512 if test "${ac_cv_sizeof_void_p+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 if test "$ac_cv_type_void_p" = yes; then
3516 # The cast to unsigned long works around a bug in the HP C Compiler
3517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3519 # This bug is HP SR number 8606223364.
3520 if test "$cross_compiling" = yes; then
3521 # Depending upon the size, compute the lo and hi bounds.
3522 cat >conftest.
$ac_ext <<_ACEOF
3525 cat confdefs.h
>>conftest.
$ac_ext
3526 cat >>conftest.
$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 $ac_includes_default
3532 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3539 rm -f conftest.
$ac_objext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541 (eval $ac_compile) 2>conftest.er1
3543 grep -v '^ *+' conftest.er1
>conftest.err
3545 cat conftest.err
>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } &&
3548 { ac_try
='test -z "$ac_c_werror_flag"
3549 || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try
='test -s conftest.$ac_objext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3563 cat >conftest.
$ac_ext <<_ACEOF
3566 cat confdefs.h
>>conftest.
$ac_ext
3567 cat >>conftest.
$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 $ac_includes_default
3573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3580 rm -f conftest.
$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1
>conftest.err
3586 cat conftest.err
>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try
='test -z "$ac_c_werror_flag"
3590 || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 ac_hi
=$ac_mid; break
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.
$ac_ext >&5
3607 ac_lo
=`expr $ac_mid + 1`
3608 if test $ac_lo -le $ac_mid; then
3612 ac_mid
=`expr 2 '*' $ac_mid + 1`
3614 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.
$ac_ext >&5
3620 cat >conftest.
$ac_ext <<_ACEOF
3623 cat confdefs.h
>>conftest.
$ac_ext
3624 cat >>conftest.
$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3630 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3637 rm -f conftest.
$ac_objext
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3641 grep -v '^ *+' conftest.er1
>conftest.err
3643 cat conftest.err
>&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try
='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try
='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3661 cat >conftest.
$ac_ext <<_ACEOF
3664 cat confdefs.h
>>conftest.
$ac_ext
3665 cat >>conftest.
$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 $ac_includes_default
3671 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3678 rm -f conftest.
$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>conftest.er1
3682 grep -v '^ *+' conftest.er1
>conftest.err
3684 cat conftest.err
>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); } &&
3687 { ac_try
='test -z "$ac_c_werror_flag"
3688 || test ! -s conftest.err'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; } &&
3694 { ac_try
='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 ac_lo
=$ac_mid; break
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.
$ac_ext >&5
3705 ac_hi
=`expr '(' $ac_mid ')' - 1`
3706 if test $ac_mid -le $ac_hi; then
3710 ac_mid
=`expr 2 '*' $ac_mid`
3712 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3715 echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.
$ac_ext >&5
3720 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3722 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3723 # Binary search between lo and hi bounds.
3724 while test "x$ac_lo" != "x$ac_hi"; do
3725 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3726 cat >conftest.
$ac_ext <<_ACEOF
3729 cat confdefs.h
>>conftest.
$ac_ext
3730 cat >>conftest.
$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3732 $ac_includes_default
3736 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3743 rm -f conftest.
$ac_objext
3744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>conftest.er1
3747 grep -v '^ *+' conftest.er1
>conftest.err
3749 cat conftest.err
>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try
='test -z "$ac_c_werror_flag"
3753 || test ! -s conftest.err'
3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; } &&
3759 { ac_try
='test -s conftest.$ac_objext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.
$ac_ext >&5
3770 ac_lo
=`expr '(' $ac_mid ')' + 1`
3772 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3775 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3776 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3777 See \`config.log' for more details." >&5
3778 echo "$as_me: error: cannot compute sizeof (void *), 77
3779 See \`config.log' for more details." >&2;}
3780 { (exit 1); exit 1; }; } ;;
3783 if test "$cross_compiling" = yes; then
3784 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3785 See \`config.log' for more details." >&5
3786 echo "$as_me: error: cannot run test program while cross compiling
3787 See \`config.log' for more details." >&2;}
3788 { (exit 1); exit 1; }; }
3790 cat >conftest.
$ac_ext <<_ACEOF
3793 cat confdefs.h
>>conftest.
$ac_ext
3794 cat >>conftest.
$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 $ac_includes_default
3797 long longval () { return (long) (sizeof (void *)); }
3798 unsigned long ulongval () { return (long) (sizeof (void *)); }
3805 FILE *f = fopen ("conftest.val", "w");
3808 if (((long) (sizeof (void *))) < 0)
3810 long i = longval ();
3811 if (i != ((long) (sizeof (void *))))
3813 fprintf (f, "%ld\n", i);
3817 unsigned long i = ulongval ();
3818 if (i != ((long) (sizeof (void *))))
3820 fprintf (f, "%lu\n", i);
3822 exit (ferror (f) || fclose (f) != 0);
3828 rm -f conftest
$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_cv_sizeof_void_p
=`cat conftest.val`
3841 echo "$as_me: program exited with status $ac_status" >&5
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.
$ac_ext >&5
3846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3847 See \`config.log' for more details." >&5
3848 echo "$as_me: error: cannot compute sizeof (void *), 77
3849 See \`config.log' for more details." >&2;}
3850 { (exit 1); exit 1; }; }
3852 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3857 ac_cv_sizeof_void_p
=0
3860 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3861 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3862 cat >>confdefs.h
<<_ACEOF
3863 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3867 echo "$as_me:$LINENO: checking for short" >&5
3868 echo $ECHO_N "checking for short... $ECHO_C" >&6
3869 if test "${ac_cv_type_short+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3872 cat >conftest.
$ac_ext <<_ACEOF
3875 cat confdefs.h
>>conftest.
$ac_ext
3876 cat >>conftest.
$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3878 $ac_includes_default
3890 rm -f conftest.
$ac_objext
3891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
3894 grep -v '^ *+' conftest.er1
>conftest.err
3896 cat conftest.err
>&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try
='test -z "$ac_c_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try
='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_type_short
=yes
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.
$ac_ext >&5
3919 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3921 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3922 echo "${ECHO_T}$ac_cv_type_short" >&6
3924 echo "$as_me:$LINENO: checking size of short" >&5
3925 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3926 if test "${ac_cv_sizeof_short+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 if test "$ac_cv_type_short" = yes; then
3930 # The cast to unsigned long works around a bug in the HP C Compiler
3931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3933 # This bug is HP SR number 8606223364.
3934 if test "$cross_compiling" = yes; then
3935 # Depending upon the size, compute the lo and hi bounds.
3936 cat >conftest.
$ac_ext <<_ACEOF
3939 cat confdefs.h
>>conftest.
$ac_ext
3940 cat >>conftest.
$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 $ac_includes_default
3946 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3953 rm -f conftest.
$ac_objext
3954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3955 (eval $ac_compile) 2>conftest.er1
3957 grep -v '^ *+' conftest.er1
>conftest.err
3959 cat conftest.err
>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); } &&
3962 { ac_try
='test -z "$ac_c_werror_flag"
3963 || test ! -s conftest.err'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; } &&
3969 { ac_try
='test -s conftest.$ac_objext'
3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 cat >conftest.
$ac_ext <<_ACEOF
3980 cat confdefs.h
>>conftest.
$ac_ext
3981 cat >>conftest.
$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3987 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3994 rm -f conftest.
$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996 (eval $ac_compile) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1
>conftest.err
4000 cat conftest.err
>&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try
='test -z "$ac_c_werror_flag"
4004 || test ! -s conftest.err'
4005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try
='test -s conftest.$ac_objext'
4011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4016 ac_hi
=$ac_mid; break
4018 echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.
$ac_ext >&5
4021 ac_lo
=`expr $ac_mid + 1`
4022 if test $ac_lo -le $ac_mid; then
4026 ac_mid
=`expr 2 '*' $ac_mid + 1`
4028 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.
$ac_ext >&5
4034 cat >conftest.
$ac_ext <<_ACEOF
4037 cat confdefs.h
>>conftest.
$ac_ext
4038 cat >>conftest.
$ac_ext <<_ACEOF
4039 /* end confdefs.h. */
4040 $ac_includes_default
4044 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4051 rm -f conftest.
$ac_objext
4052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4053 (eval $ac_compile) 2>conftest.er1
4055 grep -v '^ *+' conftest.er1
>conftest.err
4057 cat conftest.err
>&5
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try
='test -z "$ac_c_werror_flag"
4061 || test ! -s conftest.err'
4062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; } &&
4067 { ac_try
='test -s conftest.$ac_objext'
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
4075 cat >conftest.
$ac_ext <<_ACEOF
4078 cat confdefs.h
>>conftest.
$ac_ext
4079 cat >>conftest.
$ac_ext <<_ACEOF
4080 /* end confdefs.h. */
4081 $ac_includes_default
4085 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4092 rm -f conftest.
$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>conftest.er1
4096 grep -v '^ *+' conftest.er1
>conftest.err
4098 cat conftest.err
>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); } &&
4101 { ac_try
='test -z "$ac_c_werror_flag"
4102 || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest.$ac_objext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_lo
=$ac_mid; break
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.
$ac_ext >&5
4119 ac_hi
=`expr '(' $ac_mid ')' - 1`
4120 if test $ac_mid -le $ac_hi; then
4124 ac_mid
=`expr 2 '*' $ac_mid`
4126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.
$ac_ext >&5
4134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4136 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4137 # Binary search between lo and hi bounds.
4138 while test "x$ac_lo" != "x$ac_hi"; do
4139 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4140 cat >conftest.
$ac_ext <<_ACEOF
4143 cat confdefs.h
>>conftest.
$ac_ext
4144 cat >>conftest.
$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4146 $ac_includes_default
4150 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4157 rm -f conftest.
$ac_objext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1
>conftest.err
4163 cat conftest.err
>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -z "$ac_c_werror_flag"
4167 || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try
='test -s conftest.$ac_objext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.
$ac_ext >&5
4184 ac_lo
=`expr '(' $ac_mid ')' + 1`
4186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4189 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4190 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4191 See \`config.log' for more details." >&5
4192 echo "$as_me: error: cannot compute sizeof (short), 77
4193 See \`config.log' for more details." >&2;}
4194 { (exit 1); exit 1; }; } ;;
4197 if test "$cross_compiling" = yes; then
4198 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4199 See \`config.log' for more details." >&5
4200 echo "$as_me: error: cannot run test program while cross compiling
4201 See \`config.log' for more details." >&2;}
4202 { (exit 1); exit 1; }; }
4204 cat >conftest.
$ac_ext <<_ACEOF
4207 cat confdefs.h
>>conftest.
$ac_ext
4208 cat >>conftest.
$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4210 $ac_includes_default
4211 long longval () { return (long) (sizeof (short)); }
4212 unsigned long ulongval () { return (long) (sizeof (short)); }
4219 FILE *f = fopen ("conftest.val", "w");
4222 if (((long) (sizeof (short))) < 0)
4224 long i = longval ();
4225 if (i != ((long) (sizeof (short))))
4227 fprintf (f, "%ld\n", i);
4231 unsigned long i = ulongval ();
4232 if (i != ((long) (sizeof (short))))
4234 fprintf (f, "%lu\n", i);
4236 exit (ferror (f) || fclose (f) != 0);
4242 rm -f conftest
$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_sizeof_short
=`cat conftest.val`
4255 echo "$as_me: program exited with status $ac_status" >&5
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.
$ac_ext >&5
4260 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4261 See \`config.log' for more details." >&5
4262 echo "$as_me: error: cannot compute sizeof (short), 77
4263 See \`config.log' for more details." >&2;}
4264 { (exit 1); exit 1; }; }
4266 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4271 ac_cv_sizeof_short
=0
4274 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4275 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4276 cat >>confdefs.h
<<_ACEOF
4277 #define SIZEOF_SHORT $ac_cv_sizeof_short
4281 echo "$as_me:$LINENO: checking for int" >&5
4282 echo $ECHO_N "checking for int... $ECHO_C" >&6
4283 if test "${ac_cv_type_int+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4286 cat >conftest.
$ac_ext <<_ACEOF
4289 cat confdefs.h
>>conftest.
$ac_ext
4290 cat >>conftest.
$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 $ac_includes_default
4304 rm -f conftest.
$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>conftest.er1
4308 grep -v '^ *+' conftest.er1
>conftest.err
4310 cat conftest.err
>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try
='test -z "$ac_c_werror_flag"
4314 || test ! -s conftest.err'
4315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try
='test -s conftest.$ac_objext'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.
$ac_ext >&5
4333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4335 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4336 echo "${ECHO_T}$ac_cv_type_int" >&6
4338 echo "$as_me:$LINENO: checking size of int" >&5
4339 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4340 if test "${ac_cv_sizeof_int+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 if test "$ac_cv_type_int" = yes; then
4344 # The cast to unsigned long works around a bug in the HP C Compiler
4345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4347 # This bug is HP SR number 8606223364.
4348 if test "$cross_compiling" = yes; then
4349 # Depending upon the size, compute the lo and hi bounds.
4350 cat >conftest.
$ac_ext <<_ACEOF
4353 cat confdefs.h
>>conftest.
$ac_ext
4354 cat >>conftest.
$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 $ac_includes_default
4360 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4367 rm -f conftest.
$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4371 grep -v '^ *+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try
='test -z "$ac_c_werror_flag"
4377 || test ! -s conftest.err'
4378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; } &&
4383 { ac_try
='test -s conftest.$ac_objext'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4391 cat >conftest.
$ac_ext <<_ACEOF
4394 cat confdefs.h
>>conftest.
$ac_ext
4395 cat >>conftest.
$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4401 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4408 rm -f conftest.
$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410 (eval $ac_compile) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1
>conftest.err
4414 cat conftest.err
>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try
='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try
='test -s conftest.$ac_objext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_hi
=$ac_mid; break
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.
$ac_ext >&5
4435 ac_lo
=`expr $ac_mid + 1`
4436 if test $ac_lo -le $ac_mid; then
4440 ac_mid
=`expr 2 '*' $ac_mid + 1`
4442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.
$ac_ext >&5
4448 cat >conftest.
$ac_ext <<_ACEOF
4451 cat confdefs.h
>>conftest.
$ac_ext
4452 cat >>conftest.
$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 $ac_includes_default
4458 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4465 rm -f conftest.
$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4469 grep -v '^ *+' conftest.er1
>conftest.err
4471 cat conftest.err
>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try
='test -z "$ac_c_werror_flag"
4475 || test ! -s conftest.err'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; } &&
4481 { ac_try
='test -s conftest.$ac_objext'
4482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); }; }; then
4489 cat >conftest.
$ac_ext <<_ACEOF
4492 cat confdefs.h
>>conftest.
$ac_ext
4493 cat >>conftest.
$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 $ac_includes_default
4499 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4506 rm -f conftest.
$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>conftest.er1
4510 grep -v '^ *+' conftest.er1
>conftest.err
4512 cat conftest.err
>&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try
='test -z "$ac_c_werror_flag"
4516 || test ! -s conftest.err'
4517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); }; } &&
4522 { ac_try
='test -s conftest.$ac_objext'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; }; then
4528 ac_lo
=$ac_mid; break
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4533 ac_hi
=`expr '(' $ac_mid ')' - 1`
4534 if test $ac_mid -le $ac_hi; then
4538 ac_mid
=`expr 2 '*' $ac_mid`
4540 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4550 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4551 # Binary search between lo and hi bounds.
4552 while test "x$ac_lo" != "x$ac_hi"; do
4553 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4554 cat >conftest.
$ac_ext <<_ACEOF
4557 cat confdefs.h
>>conftest.
$ac_ext
4558 cat >>conftest.
$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4564 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4571 rm -f conftest.
$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>conftest.er1
4575 grep -v '^ *+' conftest.er1
>conftest.err
4577 cat conftest.err
>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try
='test -z "$ac_c_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try
='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.
$ac_ext >&5
4598 ac_lo
=`expr '(' $ac_mid ')' + 1`
4600 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4603 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4604 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4605 See \`config.log' for more details." >&5
4606 echo "$as_me: error: cannot compute sizeof (int), 77
4607 See \`config.log' for more details." >&2;}
4608 { (exit 1); exit 1; }; } ;;
4611 if test "$cross_compiling" = yes; then
4612 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: cannot run test program while cross compiling
4615 See \`config.log' for more details." >&2;}
4616 { (exit 1); exit 1; }; }
4618 cat >conftest.
$ac_ext <<_ACEOF
4621 cat confdefs.h
>>conftest.
$ac_ext
4622 cat >>conftest.
$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624 $ac_includes_default
4625 long longval () { return (long) (sizeof (int)); }
4626 unsigned long ulongval () { return (long) (sizeof (int)); }
4633 FILE *f = fopen ("conftest.val", "w");
4636 if (((long) (sizeof (int))) < 0)
4638 long i = longval ();
4639 if (i != ((long) (sizeof (int))))
4641 fprintf (f, "%ld\n", i);
4645 unsigned long i = ulongval ();
4646 if (i != ((long) (sizeof (int))))
4648 fprintf (f, "%lu\n", i);
4650 exit (ferror (f) || fclose (f) != 0);
4656 rm -f conftest
$ac_exeext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4658 (eval $ac_link) 2>&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_sizeof_int
=`cat conftest.val`
4669 echo "$as_me: program exited with status $ac_status" >&5
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.
$ac_ext >&5
4674 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4675 See \`config.log' for more details." >&5
4676 echo "$as_me: error: cannot compute sizeof (int), 77
4677 See \`config.log' for more details." >&2;}
4678 { (exit 1); exit 1; }; }
4680 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4688 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4689 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4690 cat >>confdefs.h
<<_ACEOF
4691 #define SIZEOF_INT $ac_cv_sizeof_int
4695 echo "$as_me:$LINENO: checking for long" >&5
4696 echo $ECHO_N "checking for long... $ECHO_C" >&6
4697 if test "${ac_cv_type_long+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 cat >conftest.
$ac_ext <<_ACEOF
4703 cat confdefs.h
>>conftest.
$ac_ext
4704 cat >>conftest.
$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4718 rm -f conftest.
$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720 (eval $ac_compile) 2>conftest.er1
4722 grep -v '^ *+' conftest.er1
>conftest.err
4724 cat conftest.err
>&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try
='test -z "$ac_c_werror_flag"
4728 || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try
='test -s conftest.$ac_objext'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; }; then
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.
$ac_ext >&5
4747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4749 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4750 echo "${ECHO_T}$ac_cv_type_long" >&6
4752 echo "$as_me:$LINENO: checking size of long" >&5
4753 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4754 if test "${ac_cv_sizeof_long+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 if test "$ac_cv_type_long" = yes; then
4758 # The cast to unsigned long works around a bug in the HP C Compiler
4759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4761 # This bug is HP SR number 8606223364.
4762 if test "$cross_compiling" = yes; then
4763 # Depending upon the size, compute the lo and hi bounds.
4764 cat >conftest.
$ac_ext <<_ACEOF
4767 cat confdefs.h
>>conftest.
$ac_ext
4768 cat >>conftest.
$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4770 $ac_includes_default
4774 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4781 rm -f conftest.
$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try
='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try
='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4805 cat >conftest.
$ac_ext <<_ACEOF
4808 cat confdefs.h
>>conftest.
$ac_ext
4809 cat >>conftest.
$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 $ac_includes_default
4815 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4822 rm -f conftest.
$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4826 grep -v '^ *+' conftest.er1
>conftest.err
4828 cat conftest.err
>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
4831 { ac_try
='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try
='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_hi
=$ac_mid; break
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.
$ac_ext >&5
4849 ac_lo
=`expr $ac_mid + 1`
4850 if test $ac_lo -le $ac_mid; then
4854 ac_mid
=`expr 2 '*' $ac_mid + 1`
4856 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.
$ac_ext >&5
4862 cat >conftest.
$ac_ext <<_ACEOF
4865 cat confdefs.h
>>conftest.
$ac_ext
4866 cat >>conftest.
$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 $ac_includes_default
4872 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4879 rm -f conftest.
$ac_objext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>conftest.er1
4883 grep -v '^ *+' conftest.er1
>conftest.err
4885 cat conftest.err
>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } &&
4888 { ac_try
='test -z "$ac_c_werror_flag"
4889 || test ! -s conftest.err'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; } &&
4895 { ac_try
='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4903 cat >conftest.
$ac_ext <<_ACEOF
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4909 $ac_includes_default
4913 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4920 rm -f conftest.
$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922 (eval $ac_compile) 2>conftest.er1
4924 grep -v '^ *+' conftest.er1
>conftest.err
4926 cat conftest.err
>&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
4929 { ac_try
='test -z "$ac_c_werror_flag"
4930 || test ! -s conftest.err'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; } &&
4936 { ac_try
='test -s conftest.$ac_objext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_lo
=$ac_mid; break
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.
$ac_ext >&5
4947 ac_hi
=`expr '(' $ac_mid ')' - 1`
4948 if test $ac_mid -le $ac_hi; then
4952 ac_mid
=`expr 2 '*' $ac_mid`
4954 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4965 # Binary search between lo and hi bounds.
4966 while test "x$ac_lo" != "x$ac_hi"; do
4967 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4974 $ac_includes_default
4978 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4985 rm -f conftest.
$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1
>conftest.err
4991 cat conftest.err
>&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try
='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try
='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.
$ac_ext >&5
5012 ac_lo
=`expr '(' $ac_mid ')' + 1`
5014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5017 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5018 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: cannot compute sizeof (long), 77
5021 See \`config.log' for more details." >&2;}
5022 { (exit 1); exit 1; }; } ;;
5025 if test "$cross_compiling" = yes; then
5026 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: cannot run test program while cross compiling
5029 See \`config.log' for more details." >&2;}
5030 { (exit 1); exit 1; }; }
5032 cat >conftest.
$ac_ext <<_ACEOF
5035 cat confdefs.h
>>conftest.
$ac_ext
5036 cat >>conftest.
$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5038 $ac_includes_default
5039 long longval () { return (long) (sizeof (long)); }
5040 unsigned long ulongval () { return (long) (sizeof (long)); }
5047 FILE *f = fopen ("conftest.val", "w");
5050 if (((long) (sizeof (long))) < 0)
5052 long i = longval ();
5053 if (i != ((long) (sizeof (long))))
5055 fprintf (f, "%ld\n", i);
5059 unsigned long i = ulongval ();
5060 if (i != ((long) (sizeof (long))))
5062 fprintf (f, "%lu\n", i);
5064 exit (ferror (f) || fclose (f) != 0);
5070 rm -f conftest
$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_sizeof_long
=`cat conftest.val`
5083 echo "$as_me: program exited with status $ac_status" >&5
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.
$ac_ext >&5
5088 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5089 See \`config.log' for more details." >&5
5090 echo "$as_me: error: cannot compute sizeof (long), 77
5091 See \`config.log' for more details." >&2;}
5092 { (exit 1); exit 1; }; }
5094 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5102 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5103 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5104 cat >>confdefs.h
<<_ACEOF
5105 #define SIZEOF_LONG $ac_cv_sizeof_long
5109 echo "$as_me:$LINENO: checking for long long" >&5
5110 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5111 if test "${ac_cv_type_long_long+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 cat >conftest.
$ac_ext <<_ACEOF
5117 cat confdefs.h
>>conftest.
$ac_ext
5118 cat >>conftest.
$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 $ac_includes_default
5124 if ((long long *) 0)
5126 if (sizeof (long long))
5132 rm -f conftest.
$ac_objext
5133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134 (eval $ac_compile) 2>conftest.er1
5136 grep -v '^ *+' conftest.er1
>conftest.err
5138 cat conftest.err
>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try
='test -z "$ac_c_werror_flag"
5142 || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try
='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_cv_type_long_long
=yes
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.
$ac_ext >&5
5159 ac_cv_type_long_long
=no
5161 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5163 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5164 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5165 if test $ac_cv_type_long_long = yes; then
5167 cat >>confdefs.h
<<_ACEOF
5168 #define HAVE_LONG_LONG 1
5171 echo "$as_me:$LINENO: checking for long long" >&5
5172 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5173 if test "${ac_cv_type_long_long+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 cat >conftest.
$ac_ext <<_ACEOF
5179 cat confdefs.h
>>conftest.
$ac_ext
5180 cat >>conftest.
$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 $ac_includes_default
5186 if ((long long *) 0)
5188 if (sizeof (long long))
5194 rm -f conftest.
$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>conftest.er1
5198 grep -v '^ *+' conftest.er1
>conftest.err
5200 cat conftest.err
>&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try
='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try
='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5216 ac_cv_type_long_long
=yes
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.
$ac_ext >&5
5221 ac_cv_type_long_long
=no
5223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5225 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5226 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5228 echo "$as_me:$LINENO: checking size of long long" >&5
5229 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5230 if test "${ac_cv_sizeof_long_long+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 if test "$ac_cv_type_long_long" = yes; then
5234 # The cast to unsigned long works around a bug in the HP C Compiler
5235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5237 # This bug is HP SR number 8606223364.
5238 if test "$cross_compiling" = yes; then
5239 # Depending upon the size, compute the lo and hi bounds.
5240 cat >conftest.
$ac_ext <<_ACEOF
5243 cat confdefs.h
>>conftest.
$ac_ext
5244 cat >>conftest.
$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 $ac_includes_default
5250 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5257 rm -f conftest.
$ac_objext
5258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259 (eval $ac_compile) 2>conftest.er1
5261 grep -v '^ *+' conftest.er1
>conftest.err
5263 cat conftest.err
>&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } &&
5266 { ac_try
='test -z "$ac_c_werror_flag"
5267 || test ! -s conftest.err'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; } &&
5273 { ac_try
='test -s conftest.$ac_objext'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; }; then
5281 cat >conftest.
$ac_ext <<_ACEOF
5284 cat confdefs.h
>>conftest.
$ac_ext
5285 cat >>conftest.
$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 $ac_includes_default
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5298 rm -f conftest.
$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1
>conftest.err
5304 cat conftest.err
>&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try
='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try
='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_hi
=$ac_mid; break
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.
$ac_ext >&5
5325 ac_lo
=`expr $ac_mid + 1`
5326 if test $ac_lo -le $ac_mid; then
5330 ac_mid
=`expr 2 '*' $ac_mid + 1`
5332 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 cat >conftest.
$ac_ext <<_ACEOF
5341 cat confdefs.h
>>conftest.
$ac_ext
5342 cat >>conftest.
$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 $ac_includes_default
5348 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5355 rm -f conftest.
$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1
>conftest.err
5361 cat conftest.err
>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try
='test -z "$ac_c_werror_flag"
5365 || test ! -s conftest.err'
5366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; } &&
5371 { ac_try
='test -s conftest.$ac_objext'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; }; then
5379 cat >conftest.
$ac_ext <<_ACEOF
5382 cat confdefs.h
>>conftest.
$ac_ext
5383 cat >>conftest.
$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5396 rm -f conftest.
$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398 (eval $ac_compile) 2>conftest.er1
5400 grep -v '^ *+' conftest.er1
>conftest.err
5402 cat conftest.err
>&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try
='test -z "$ac_c_werror_flag"
5406 || test ! -s conftest.err'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; } &&
5412 { ac_try
='test -s conftest.$ac_objext'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; }; then
5418 ac_lo
=$ac_mid; break
5420 echo "$as_me: failed program was:" >&5
5421 sed 's/^/| /' conftest.
$ac_ext >&5
5423 ac_hi
=`expr '(' $ac_mid ')' - 1`
5424 if test $ac_mid -le $ac_hi; then
5428 ac_mid
=`expr 2 '*' $ac_mid`
5430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5441 # Binary search between lo and hi bounds.
5442 while test "x$ac_lo" != "x$ac_hi"; do
5443 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5444 cat >conftest.
$ac_ext <<_ACEOF
5447 cat confdefs.h
>>conftest.
$ac_ext
5448 cat >>conftest.
$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450 $ac_includes_default
5454 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5461 rm -f conftest.
$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>conftest.er1
5465 grep -v '^ *+' conftest.er1
>conftest.err
5467 cat conftest.err
>&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try
='test -z "$ac_c_werror_flag"
5471 || test ! -s conftest.err'
5472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; } &&
5477 { ac_try
='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.
$ac_ext >&5
5488 ac_lo
=`expr '(' $ac_mid ')' + 1`
5490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5493 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (long long), 77
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; } ;;
5501 if test "$cross_compiling" = yes; then
5502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot run test program while cross compiling
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5508 cat >conftest.
$ac_ext <<_ACEOF
5511 cat confdefs.h
>>conftest.
$ac_ext
5512 cat >>conftest.
$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 $ac_includes_default
5515 long longval () { return (long) (sizeof (long long)); }
5516 unsigned long ulongval () { return (long) (sizeof (long long)); }
5523 FILE *f = fopen ("conftest.val", "w");
5526 if (((long) (sizeof (long long))) < 0)
5528 long i = longval ();
5529 if (i != ((long) (sizeof (long long))))
5531 fprintf (f, "%ld\n", i);
5535 unsigned long i = ulongval ();
5536 if (i != ((long) (sizeof (long long))))
5538 fprintf (f, "%lu\n", i);
5540 exit (ferror (f) || fclose (f) != 0);
5546 rm -f conftest
$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 ac_cv_sizeof_long_long
=`cat conftest.val`
5559 echo "$as_me: program exited with status $ac_status" >&5
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.
$ac_ext >&5
5564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5565 See \`config.log' for more details." >&5
5566 echo "$as_me: error: cannot compute sizeof (long long), 77
5567 See \`config.log' for more details." >&2;}
5568 { (exit 1); exit 1; }; }
5570 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5575 ac_cv_sizeof_long_long
=0
5578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5579 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5580 cat >>confdefs.h
<<_ACEOF
5581 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5587 echo "$as_me:$LINENO: checking for __int64" >&5
5588 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5589 if test "${ac_cv_type___int64+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 cat >conftest.
$ac_ext <<_ACEOF
5595 cat confdefs.h
>>conftest.
$ac_ext
5596 cat >>conftest.
$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 $ac_includes_default
5604 if (sizeof (__int64))
5610 rm -f conftest.
$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>conftest.er1
5614 grep -v '^ *+' conftest.er1
>conftest.err
5616 cat conftest.err
>&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } &&
5619 { ac_try
='test -z "$ac_c_werror_flag"
5620 || test ! -s conftest.err'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try
='test -s conftest.$ac_objext'
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 ac_cv_type___int64
=yes
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.
$ac_ext >&5
5637 ac_cv_type___int64
=no
5639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5642 echo "${ECHO_T}$ac_cv_type___int64" >&6
5643 if test $ac_cv_type___int64 = yes; then
5645 cat >>confdefs.h
<<_ACEOF
5646 #define HAVE___INT64 1
5649 echo "$as_me:$LINENO: checking for __int64" >&5
5650 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5651 if test "${ac_cv_type___int64+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5654 cat >conftest.
$ac_ext <<_ACEOF
5657 cat confdefs.h
>>conftest.
$ac_ext
5658 cat >>conftest.
$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5666 if (sizeof (__int64))
5672 rm -f conftest.
$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try
='test -z "$ac_c_werror_flag"
5682 || test ! -s conftest.err'
5683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try
='test -s conftest.$ac_objext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_type___int64
=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.
$ac_ext >&5
5699 ac_cv_type___int64
=no
5701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5704 echo "${ECHO_T}$ac_cv_type___int64" >&6
5706 echo "$as_me:$LINENO: checking size of __int64" >&5
5707 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5708 if test "${ac_cv_sizeof___int64+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 if test "$ac_cv_type___int64" = yes; then
5712 # The cast to unsigned long works around a bug in the HP C Compiler
5713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5715 # This bug is HP SR number 8606223364.
5716 if test "$cross_compiling" = yes; then
5717 # Depending upon the size, compute the lo and hi bounds.
5718 cat >conftest.
$ac_ext <<_ACEOF
5721 cat confdefs.h
>>conftest.
$ac_ext
5722 cat >>conftest.
$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 $ac_includes_default
5728 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5735 rm -f conftest.
$ac_objext
5736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5737 (eval $ac_compile) 2>conftest.er1
5739 grep -v '^ *+' conftest.er1
>conftest.err
5741 cat conftest.err
>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try
='test -z "$ac_c_werror_flag"
5745 || test ! -s conftest.err'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; } &&
5751 { ac_try
='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5759 cat >conftest.
$ac_ext <<_ACEOF
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5769 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5776 rm -f conftest.
$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>conftest.er1
5780 grep -v '^ *+' conftest.er1
>conftest.err
5782 cat conftest.err
>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try
='test -z "$ac_c_werror_flag"
5786 || test ! -s conftest.err'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; } &&
5792 { ac_try
='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5798 ac_hi
=$ac_mid; break
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.
$ac_ext >&5
5803 ac_lo
=`expr $ac_mid + 1`
5804 if test $ac_lo -le $ac_mid; then
5808 ac_mid
=`expr 2 '*' $ac_mid + 1`
5810 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.
$ac_ext >&5
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5826 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5833 rm -f conftest.
$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } &&
5842 { ac_try
='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try
='test -s conftest.$ac_objext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 $ac_includes_default
5867 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5874 rm -f conftest.
$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876 (eval $ac_compile) 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try
='test -z "$ac_c_werror_flag"
5884 || test ! -s conftest.err'
5885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }; } &&
5890 { ac_try
='test -s conftest.$ac_objext'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
5896 ac_lo
=$ac_mid; break
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.
$ac_ext >&5
5901 ac_hi
=`expr '(' $ac_mid ')' - 1`
5902 if test $ac_mid -le $ac_hi; then
5906 ac_mid
=`expr 2 '*' $ac_mid`
5908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5916 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5919 # Binary search between lo and hi bounds.
5920 while test "x$ac_lo" != "x$ac_hi"; do
5921 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5922 cat >conftest.
$ac_ext <<_ACEOF
5925 cat confdefs.h
>>conftest.
$ac_ext
5926 cat >>conftest.
$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5932 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5939 rm -f conftest.
$ac_objext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941 (eval $ac_compile) 2>conftest.er1
5943 grep -v '^ *+' conftest.er1
>conftest.err
5945 cat conftest.err
>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try
='test -z "$ac_c_werror_flag"
5949 || test ! -s conftest.err'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try
='test -s conftest.$ac_objext'
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.
$ac_ext >&5
5966 ac_lo
=`expr '(' $ac_mid ')' + 1`
5968 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5971 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5972 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5973 See \`config.log' for more details." >&5
5974 echo "$as_me: error: cannot compute sizeof (__int64), 77
5975 See \`config.log' for more details." >&2;}
5976 { (exit 1); exit 1; }; } ;;
5979 if test "$cross_compiling" = yes; then
5980 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5981 See \`config.log' for more details." >&5
5982 echo "$as_me: error: cannot run test program while cross compiling
5983 See \`config.log' for more details." >&2;}
5984 { (exit 1); exit 1; }; }
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 $ac_includes_default
5993 long longval () { return (long) (sizeof (__int64)); }
5994 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6001 FILE *f = fopen ("conftest.val", "w");
6004 if (((long) (sizeof (__int64))) < 0)
6006 long i = longval ();
6007 if (i != ((long) (sizeof (__int64))))
6009 fprintf (f, "%ld\n", i);
6013 unsigned long i = ulongval ();
6014 if (i != ((long) (sizeof (__int64))))
6016 fprintf (f, "%lu\n", i);
6018 exit (ferror (f) || fclose (f) != 0);
6024 rm -f conftest
$ac_exeext
6025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6026 (eval $ac_link) 2>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 ac_cv_sizeof___int64
=`cat conftest.val`
6037 echo "$as_me: program exited with status $ac_status" >&5
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.
$ac_ext >&5
6042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6043 See \`config.log' for more details." >&5
6044 echo "$as_me: error: cannot compute sizeof (__int64), 77
6045 See \`config.log' for more details." >&2;}
6046 { (exit 1); exit 1; }; }
6048 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6053 ac_cv_sizeof___int64
=0
6056 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6057 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6058 cat >>confdefs.h
<<_ACEOF
6059 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6066 # ---------------------
6067 # Warnings and checking
6068 # ---------------------
6070 # Check $CC warning features (if it's GCC).
6071 # We want to use -pedantic, but we don't want warnings about
6074 # * overlong strings
6075 # So, we only use -pedantic if we can disable those warnings.
6077 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6078 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6079 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 save_CFLAGS
="$CFLAGS"
6083 CFLAGS
="-Wno-long-long"
6084 cat >conftest.
$ac_ext <<_ACEOF
6087 cat confdefs.h
>>conftest.
$ac_ext
6088 cat >>conftest.
$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6092 rm -f conftest.
$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094 (eval $ac_compile) 2>conftest.er1
6096 grep -v '^ *+' conftest.er1
>conftest.err
6098 cat conftest.err
>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try
='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try
='test -s conftest.$ac_objext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_prog_cc_w_no_long_long
=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.
$ac_ext >&5
6119 ac_cv_prog_cc_w_no_long_long
=no
6121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6122 CFLAGS
="$save_CFLAGS"
6125 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6126 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6128 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6129 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6130 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 save_CFLAGS
="$CFLAGS"
6134 CFLAGS
="-Wno-variadic-macros"
6135 cat >conftest.
$ac_ext <<_ACEOF
6138 cat confdefs.h
>>conftest.
$ac_ext
6139 cat >>conftest.
$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6143 rm -f conftest.
$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145 (eval $ac_compile) 2>conftest.er1
6147 grep -v '^ *+' conftest.er1
>conftest.err
6149 cat conftest.err
>&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try
='test -z "$ac_c_werror_flag"
6153 || test ! -s conftest.err'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; } &&
6159 { ac_try
='test -s conftest.$ac_objext'
6160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); }; }; then
6165 ac_cv_prog_cc_w_no_variadic_macros
=yes
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.
$ac_ext >&5
6170 ac_cv_prog_cc_w_no_variadic_macros
=no
6172 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6173 CFLAGS
="$save_CFLAGS"
6176 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6177 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6179 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6180 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6181 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 save_CFLAGS
="$CFLAGS"
6185 CFLAGS
="-Wno-overlength-strings"
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6194 rm -f conftest.
$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>conftest.er1
6198 grep -v '^ *+' conftest.er1
>conftest.err
6200 cat conftest.err
>&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } &&
6203 { ac_try
='test -z "$ac_c_werror_flag"
6204 || test ! -s conftest.err'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; } &&
6210 { ac_try
='test -s conftest.$ac_objext'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; }; then
6216 ac_cv_prog_cc_w_no_overlength_strings
=yes
6218 echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6221 ac_cv_prog_cc_w_no_overlength_strings
=no
6223 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6224 CFLAGS
="$save_CFLAGS"
6227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6228 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6231 if test $ac_cv_prog_cc_w_no_long_long = yes \
6232 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6233 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6234 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6237 # Add -Wold-style-definition if it's accepted
6238 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6239 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6240 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 save_CFLAGS
="$CFLAGS"
6244 CFLAGS
="-Wold-style-definition"
6245 cat >conftest.
$ac_ext <<_ACEOF
6248 cat confdefs.h
>>conftest.
$ac_ext
6249 cat >>conftest.
$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6253 rm -f conftest.
$ac_objext
6254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255 (eval $ac_compile) 2>conftest.er1
6257 grep -v '^ *+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } &&
6262 { ac_try
='test -z "$ac_c_werror_flag"
6263 || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try
='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 ac_cv_prog_cc_w_old_style_definition
=yes
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.
$ac_ext >&5
6280 ac_cv_prog_cc_w_old_style_definition
=no
6282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 CFLAGS
="$save_CFLAGS"
6286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6287 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6288 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6289 strict1_warn
="${strict1_warn} -Wold-style-definition"
6292 # Add -Wmissing-format-attribute if it's accepted
6293 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6294 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6295 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 save_CFLAGS
="$CFLAGS"
6299 CFLAGS
="-Wmissing-format-attribute"
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6308 rm -f conftest.
$ac_objext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310 (eval $ac_compile) 2>conftest.er1
6312 grep -v '^ *+' conftest.er1
>conftest.err
6314 cat conftest.err
>&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try
='test -z "$ac_c_werror_flag"
6318 || test ! -s conftest.err'
6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }; } &&
6324 { ac_try
='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_prog_cc_w_missing_format_attribute
=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.
$ac_ext >&5
6335 ac_cv_prog_cc_w_missing_format_attribute
=no
6337 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6338 CFLAGS
="$save_CFLAGS"
6341 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6342 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6343 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6344 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6347 # Enable -Werror, period.
6348 # Check whether --enable-werror_always or --disable-werror_always was given.
6349 if test "${enable_werror_always+set}" = set; then
6350 enableval
="$enable_werror_always"
6353 enable_werror_always
=no
6355 if test x
${enable_werror_always} = xyes
; then
6356 strict1_warn
="${strict1_warn} -Werror"
6362 # Get C++ compatibility warning flag, if supported.
6363 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6364 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6365 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 save_CFLAGS
="$CFLAGS"
6369 CFLAGS
="-Wc++-compat"
6370 cat >conftest.
$ac_ext <<_ACEOF
6373 cat confdefs.h
>>conftest.
$ac_ext
6374 cat >>conftest.
$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6378 rm -f conftest.
$ac_objext
6379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6382 grep -v '^ *+' conftest.er1
>conftest.err
6384 cat conftest.err
>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try
='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try
='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6400 ac_cv_prog_cc_w_cxx_compat
=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.
$ac_ext >&5
6405 ac_cv_prog_cc_w_cxx_compat
=no
6407 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6408 CFLAGS
="$save_CFLAGS"
6411 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6412 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6413 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6414 cxx_compat_warn
="-Wc++-compat"
6419 # If the native compiler is GCC, we can enable warnings even in stage1.
6420 # That's useful for people building cross-compilers, or just running a
6423 if test "x$GCC" = "xyes"; then
6424 warn_cflags
='$(GCC_WARN_CFLAGS)'
6428 # Enable -Werror in bootstrap stage2 and later.
6430 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6433 # Check whether --enable-werror or --disable-werror was given.
6434 if test "${enable_werror+set}" = set; then
6435 enableval
="$enable_werror"
6438 if test x
$is_release = x
; then
6439 # Default to "yes" on development branches.
6442 # Default to "no" on release branches.
6446 if test x
$enable_werror = xyes
; then
6451 # Enable expensive internal checks
6452 # Check whether --enable-checking or --disable-checking was given.
6453 if test "${enable_checking+set}" = set; then
6454 enableval
="$enable_checking"
6455 ac_checking_flags
="${enableval}"
6458 # Determine the default checks.
6459 if test x
$is_release = x
; then
6460 ac_checking_flags
=yes
6462 ac_checking_flags
=release
6465 ac_assert_checking
=1
6469 ac_gc_always_collect
=
6471 ac_rtlflag_checking
=
6472 ac_runtime_checking
=1
6474 ac_valgrind_checking
=
6475 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6476 for check
in $ac_checking_flags
6479 # these set all the flags to specific states
6480 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6481 ac_fold_checking
= ; ac_gc_checking
=1 ;
6482 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6483 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6484 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6485 no|none
) ac_assert_checking
= ; ac_checking
= ;
6486 ac_fold_checking
= ; ac_gc_checking
= ;
6487 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6488 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6489 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6490 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6491 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6492 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6493 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6494 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6495 release
) ac_assert_checking
=1 ; ac_checking
= ;
6496 ac_fold_checking
= ; ac_gc_checking
= ;
6497 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6498 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6499 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6500 # these enable particular checks
6501 assert
) ac_assert_checking
=1 ;;
6502 fold) ac_fold_checking
=1 ;;
6503 gc
) ac_gc_checking
=1 ;;
6504 gcac
) ac_gc_always_collect
=1 ;;
6505 misc
) ac_checking
=1 ;;
6506 rtl
) ac_rtl_checking
=1 ;;
6507 rtlflag
) ac_rtlflag_checking
=1 ;;
6508 runtime
) ac_runtime_checking
=1 ;;
6509 tree
) ac_tree_checking
=1 ;;
6510 valgrind
) ac_valgrind_checking
=1 ;;
6511 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6512 echo "$as_me: error: unknown check category $check" >&2;}
6513 { (exit 1); exit 1; }; } ;;
6519 if test x
$ac_checking != x
; then
6521 cat >>confdefs.h
<<\_ACEOF
6522 #define ENABLE_CHECKING 1
6525 nocommon_flag
=-fno-common
6528 if test x
$ac_assert_checking != x
; then
6530 cat >>confdefs.h
<<\_ACEOF
6531 #define ENABLE_ASSERT_CHECKING 1
6536 if test x
$ac_runtime_checking != x
; then
6538 cat >>confdefs.h
<<\_ACEOF
6539 #define ENABLE_RUNTIME_CHECKING 1
6543 if test x
$ac_tree_checking != x
; then
6545 cat >>confdefs.h
<<\_ACEOF
6546 #define ENABLE_TREE_CHECKING 1
6549 TREEBROWSER
=tree-browser.o
6552 if test x
$ac_rtl_checking != x
; then
6554 cat >>confdefs.h
<<\_ACEOF
6555 #define ENABLE_RTL_CHECKING 1
6559 if test x
$ac_rtlflag_checking != x
; then
6561 cat >>confdefs.h
<<\_ACEOF
6562 #define ENABLE_RTL_FLAG_CHECKING 1
6566 if test x
$ac_gc_checking != x
; then
6568 cat >>confdefs.h
<<\_ACEOF
6569 #define ENABLE_GC_CHECKING 1
6573 if test x
$ac_gc_always_collect != x
; then
6575 cat >>confdefs.h
<<\_ACEOF
6576 #define ENABLE_GC_ALWAYS_COLLECT 1
6580 if test x
$ac_fold_checking != x
; then
6582 cat >>confdefs.h
<<\_ACEOF
6583 #define ENABLE_FOLD_CHECKING 1
6587 valgrind_path_defines
=
6590 if test "${ac_cv_header_valgrind_h+set}" = set; then
6591 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6592 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6593 if test "${ac_cv_header_valgrind_h+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6597 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6599 # Is the header compilable?
6600 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6601 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 $ac_includes_default
6609 #include <valgrind.h>
6611 rm -f conftest.
$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>conftest.er1
6615 grep -v '^ *+' conftest.er1
>conftest.err
6617 cat conftest.err
>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try
='test -z "$ac_c_werror_flag"
6621 || test ! -s conftest.err'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; } &&
6627 { ac_try
='test -s conftest.$ac_objext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_header_compiler
=yes
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.
$ac_ext >&5
6638 ac_header_compiler
=no
6640 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6642 echo "${ECHO_T}$ac_header_compiler" >&6
6644 # Is the header present?
6645 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6646 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6647 cat >conftest.
$ac_ext <<_ACEOF
6650 cat confdefs.h
>>conftest.
$ac_ext
6651 cat >>conftest.
$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6653 #include <valgrind.h>
6655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6656 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6658 grep -v '^ *+' conftest.er1
>conftest.err
6660 cat conftest.err
>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } >/dev
/null
; then
6663 if test -s conftest.err
; then
6664 ac_cpp_err
=$ac_c_preproc_warn_flag
6665 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6672 if test -z "$ac_cpp_err"; then
6673 ac_header_preproc
=yes
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.
$ac_ext >&5
6678 ac_header_preproc
=no
6680 rm -f conftest.err conftest.
$ac_ext
6681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6682 echo "${ECHO_T}$ac_header_preproc" >&6
6684 # So? What about this header?
6685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6687 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6688 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6690 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6691 ac_header_preproc
=yes
6694 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6695 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6697 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6699 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6701 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6703 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6705 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6708 ## ------------------------------------------ ##
6709 ## Report this to the AC_PACKAGE_NAME lists. ##
6710 ## ------------------------------------------ ##
6713 sed "s/^/$as_me: WARNING: /" >&2
6716 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6717 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6718 if test "${ac_cv_header_valgrind_h+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 ac_cv_header_valgrind_h
=$ac_header_preproc
6723 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6724 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6727 if test $ac_cv_header_valgrind_h = yes; then
6735 if test x
$ac_valgrind_checking != x
; then
6736 # It is certainly possible that there's valgrind but no valgrind.h.
6737 # GCC relies on making annotations so we must have both.
6738 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6739 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6740 cat >conftest.
$ac_ext <<_ACEOF
6743 cat confdefs.h
>>conftest.
$ac_ext
6744 cat >>conftest.
$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 #include <valgrind/memcheck.h>
6747 #ifndef VALGRIND_DISCARD
6748 #error VALGRIND_DISCARD not defined
6751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6752 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6754 grep -v '^ *+' conftest.er1
>conftest.err
6756 cat conftest.err
>&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); } >/dev
/null
; then
6759 if test -s conftest.err
; then
6760 ac_cpp_err
=$ac_c_preproc_warn_flag
6761 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6768 if test -z "$ac_cpp_err"; then
6769 gcc_cv_header_valgrind_memcheck_h
=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.
$ac_ext >&5
6774 gcc_cv_header_valgrind_memcheck_h
=no
6776 rm -f conftest.err conftest.
$ac_ext
6777 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6778 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6779 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6780 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6781 cat >conftest.
$ac_ext <<_ACEOF
6784 cat confdefs.h
>>conftest.
$ac_ext
6785 cat >>conftest.
$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <memcheck.h>
6788 #ifndef VALGRIND_DISCARD
6789 #error VALGRIND_DISCARD not defined
6792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6793 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6795 grep -v '^ *+' conftest.er1
>conftest.err
6797 cat conftest.err
>&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } >/dev
/null
; then
6800 if test -s conftest.err
; then
6801 ac_cpp_err
=$ac_c_preproc_warn_flag
6802 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6809 if test -z "$ac_cpp_err"; then
6810 gcc_cv_header_memcheck_h
=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.
$ac_ext >&5
6815 gcc_cv_header_memcheck_h
=no
6817 rm -f conftest.err conftest.
$ac_ext
6818 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6819 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6821 # Prepare PATH_SEPARATOR.
6822 # The user is always right.
6823 if test "${PATH_SEPARATOR+set}" != set; then
6824 echo "#! /bin/sh" >conf$$.sh
6825 echo "exit 0" >>conf$$.sh
6827 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6835 # Find out how to test for executable files. Don't use a zero-byte file,
6836 # as systems may use methods other than mode bits to determine executability.
6837 cat >conf$$.
file <<_ASEOF
6841 chmod +x conf$$.
file
6842 if test -x conf$$.
file >/dev
/null
2>&1; then
6843 ac_executable_p
="test -x"
6845 ac_executable_p
="test -f"
6849 # Extract the first word of "valgrind", so it can be a program name with args.
6850 set dummy valgrind
; ac_word
=$2
6851 echo "$as_me:$LINENO: checking for $ac_word" >&5
6852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6853 if test "${ac_cv_path_valgrind_path+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 case "$valgrind_path" in
6858 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6861 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6862 for ac_dir
in $PATH; do
6864 test -z "$ac_dir" && ac_dir
=.
6865 for ac_exec_ext
in '' $ac_executable_extensions; do
6866 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6867 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6868 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6878 valgrind_path
="$ac_cv_path_valgrind_path"
6879 if test -n "$valgrind_path"; then
6880 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6881 echo "${ECHO_T}$valgrind_path" >&6
6883 echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6887 if test "x$valgrind_path" = "x" \
6888 ||
(test $have_valgrind_h = no \
6889 && test $gcc_cv_header_memcheck_h = no \
6890 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6891 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6892 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6893 { (exit 1); exit 1; }; }
6895 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6896 valgrind_command
="$valgrind_path -q"
6898 cat >>confdefs.h
<<\_ACEOF
6899 #define ENABLE_VALGRIND_CHECKING 1
6902 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6904 cat >>confdefs.h
<<\_ACEOF
6905 #define HAVE_VALGRIND_MEMCHECK_H 1
6909 if test $gcc_cv_header_memcheck_h = yes; then
6911 cat >>confdefs.h
<<\_ACEOF
6912 #define HAVE_MEMCHECK_H 1
6920 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6921 if test "${enable_mapped_location+set}" = set; then
6922 enableval
="$enable_mapped_location"
6925 enable_mapped_location
=no
6928 if test "$enable_mapped_location" = yes ; then
6930 cat >>confdefs.h
<<\_ACEOF
6931 #define USE_MAPPED_LOCATION 1
6936 # Enable code coverage collection
6937 # Check whether --enable-coverage or --disable-coverage was given.
6938 if test "${enable_coverage+set}" = set; then
6939 enableval
="$enable_coverage"
6940 case "${enableval}" in
6942 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6945 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6948 # a.k.a. --disable-coverage
6952 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6953 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6954 { (exit 1); exit 1; }; }
6962 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6963 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6964 enableval
="$enable_gather_detailed_mem_stats"
6967 enable_gather_detailed_mem_stats
=no
6969 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6971 cat >>confdefs.h
<<\_ACEOF
6972 #define GATHER_STATISTICS 1
6977 # -------------------------------
6978 # Miscenalleous configure options
6979 # -------------------------------
6983 # Check whether --with-stabs or --without-stabs was given.
6984 if test "${with_stabs+set}" = set; then
6985 withval
="$with_stabs"
6991 # Determine whether or not multilibs are enabled.
6992 # Check whether --enable-multilib or --disable-multilib was given.
6993 if test "${enable_multilib+set}" = set; then
6994 enableval
="$enable_multilib"
7001 # Enable __cxa_atexit for C++.
7002 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7003 if test "${enable___cxa_atexit+set}" = set; then
7004 enableval
="$enable___cxa_atexit"
7008 # Enable C extension for decimal float if target supports it.
7009 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7010 if test "${enable_decimal_float+set}" = set; then
7011 enableval
="$enable_decimal_float"
7013 if test x
$enablevar = xyes
; then
7015 powerpc
*-*-linux* | i?
86*-*-linux*)
7016 enable_decimal_float
=yes
7019 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7020 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7021 enable_decimal_float
=no
7027 enable_decimal_float
=no
7032 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7034 cat >>confdefs.h
<<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7040 # Pass with no value to take the default
7041 # Pass with a value to specify a thread package
7042 # Check whether --enable-threads or --disable-threads was given.
7043 if test "${enable_threads+set}" = set; then
7044 enableval
="$enable_threads"
7050 # Check whether --enable-tls or --disable-tls was given.
7051 if test "${enable_tls+set}" = set; then
7052 enableval
="$enable_tls"
7056 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7057 Valid choices are 'yes' and 'no'." >&5
7058 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&2;}
7060 { (exit 1); exit 1; }; } ;;
7067 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7068 if test "${enable_objc_gc+set}" = set; then
7069 enableval
="$enable_objc_gc"
7070 if test x
$enable_objc_gc = xno
; then
7080 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7081 if test "${with_dwarf2+set}" = set; then
7082 withval
="$with_dwarf2"
7083 dwarf2
="$with_dwarf2"
7088 # Check whether --enable-shared or --disable-shared was given.
7089 if test "${enable_shared+set}" = set; then
7090 enableval
="$enable_shared"
7092 case $enable_shared in
7096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7097 for pkg
in $enableval; do
7098 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7112 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7113 if test "${with_build_sysroot+set}" = set; then
7114 withval
="$with_build_sysroot"
7119 # Check whether --with-sysroot or --without-sysroot was given.
7120 if test "${with_sysroot+set}" = set; then
7121 withval
="$with_sysroot"
7123 case ${with_sysroot} in
7124 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7125 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7128 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7129 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7131 if test "x$exec_prefix" = xNONE
; then
7132 if test "x$prefix" = xNONE
; then
7133 test_prefix
=/usr
/local
7138 test_prefix
=$exec_prefix
7140 case ${TARGET_SYSTEM_ROOT} in
7141 "${test_prefix}"|
"${test_prefix}/"*|\
7142 '${exec_prefix}'|
'${exec_prefix}/'*)
7143 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7144 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7151 TARGET_SYSTEM_ROOT_DEFINE
=
7152 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7159 # Build with intermodule optimisations
7160 # Check whether --enable-intermodule or --disable-intermodule was given.
7161 if test "${enable_intermodule+set}" = set; then
7162 enableval
="$enable_intermodule"
7163 case ${enable_intermodule} in
7164 yes) onestep
="-onestep";;
7172 # Sanity check enable_languages in case someone does not run the toplevel
7173 # configure # script.
7174 # Check whether --enable-languages or --disable-languages was given.
7175 if test "${enable_languages+set}" = set; then
7176 enableval
="$enable_languages"
7177 case ,${enable_languages}, in
7179 # go safe -- we cannot be much sure without the toplevel
7181 # analysis of which target libs are present and usable
7185 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7186 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7187 { (exit 1); exit 1; }; }
7192 enable_languages
=c
,${enable_languages}
7199 # Used by documentation targets
7204 # -------------------------
7205 # Checks for other programs
7206 # -------------------------
7208 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7210 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7211 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 cat >conftest.
make <<\_ACEOF
7216 @
echo 'ac_maketemp="$(MAKE)"'
7218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7219 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7220 if test -n "$ac_maketemp"; then
7221 eval ac_cv_prog_make_
${ac_make}_set
=yes
7223 eval ac_cv_prog_make_
${ac_make}_set
=no
7227 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229 echo "${ECHO_T}yes" >&6
7232 echo "$as_me:$LINENO: result: no" >&5
7233 echo "${ECHO_T}no" >&6
7234 SET_MAKE
="MAKE=${MAKE-make}"
7238 # Find some useful tools
7239 for ac_prog
in gawk mawk nawk
awk
7241 # Extract the first word of "$ac_prog", so it can be a program name with args.
7242 set dummy
$ac_prog; ac_word
=$2
7243 echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7245 if test "${ac_cv_prog_AWK+set}" = set; then
7246 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 if test -n "$AWK"; then
7249 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir
=.
7256 for ac_exec_ext
in '' $ac_executable_extensions; do
7257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_AWK
="$ac_prog"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 if test -n "$AWK"; then
7269 echo "$as_me:$LINENO: result: $AWK" >&5
7270 echo "${ECHO_T}$AWK" >&6
7272 echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7276 test -n "$AWK" && break
7279 # We need awk to create options.c and options.h.
7280 # Bail out if it's missing.
7282 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7283 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7284 { (exit 1); exit 1; }; } ;;
7287 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7289 if test "${gcc_cv_prog_LN_S+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 rm -f conftestdata_t
7293 echo >conftestdata_f
7294 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7296 gcc_cv_prog_LN_S
="ln -s"
7298 if ln conftestdata_f conftestdata_t
2>/dev
/null
7302 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7304 gcc_cv_prog_LN_S
="cp -p"
7310 rm -f conftestdata_f conftestdata_t
7313 LN_S
="$gcc_cv_prog_LN_S"
7314 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7315 echo "$as_me:$LINENO: result: yes" >&5
7316 echo "${ECHO_T}yes" >&6
7318 if test "$gcc_cv_prog_LN_S" = "ln"; then
7319 echo "$as_me:$LINENO: result: no, using ln" >&5
7320 echo "${ECHO_T}no, using ln" >&6
7322 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7323 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7327 echo "$as_me:$LINENO: checking whether ln works" >&5
7328 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7329 if test "${acx_cv_prog_LN+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 rm -f conftestdata_t
7333 echo >conftestdata_f
7334 if ln conftestdata_f conftestdata_t
2>/dev
/null
7340 rm -f conftestdata_f conftestdata_t
7343 if test $acx_cv_prog_LN = no
; then
7345 echo "$as_me:$LINENO: result: no, using $LN" >&5
7346 echo "${ECHO_T}no, using $LN" >&6
7348 LN
="$acx_cv_prog_LN"
7349 echo "$as_me:$LINENO: result: yes" >&5
7350 echo "${ECHO_T}yes" >&6
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7355 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7356 echo "$as_me:$LINENO: checking for $ac_word" >&5
7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7358 if test "${ac_cv_prog_RANLIB+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 if test -n "$RANLIB"; then
7362 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir
=.
7369 for ac_exec_ext
in '' $ac_executable_extensions; do
7370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7371 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 RANLIB
=$ac_cv_prog_RANLIB
7381 if test -n "$RANLIB"; then
7382 echo "$as_me:$LINENO: result: $RANLIB" >&5
7383 echo "${ECHO_T}$RANLIB" >&6
7385 echo "$as_me:$LINENO: result: no" >&5
7386 echo "${ECHO_T}no" >&6
7390 if test -z "$ac_cv_prog_RANLIB"; then
7391 ac_ct_RANLIB
=$RANLIB
7392 # Extract the first word of "ranlib", so it can be a program name with args.
7393 set dummy ranlib
; ac_word
=$2
7394 echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 if test -n "$ac_ct_RANLIB"; then
7400 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir
=.
7407 for ac_exec_ext
in '' $ac_executable_extensions; do
7408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7419 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7420 if test -n "$ac_ct_RANLIB"; then
7421 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7422 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7424 echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6
7428 RANLIB
=$ac_ct_RANLIB
7430 RANLIB
="$ac_cv_prog_RANLIB"
7435 # By default, the Darwin ranlib will not treat common symbols as
7436 # definitions when building the archive table of contents. Other
7437 # ranlibs do that; pass an option to the Darwin ranlib that makes
7438 # it behave similarly.
7446 # Find a good install program. We prefer a C program (faster),
7447 # so one script is as good as another. But avoid the broken or
7448 # incompatible versions:
7449 # SysV /etc/install, /usr/sbin/install
7450 # SunOS /usr/etc/install
7451 # IRIX /sbin/install
7453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7455 # ./install, which can be erroneously created by make from ./install.sh.
7456 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7457 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7458 if test -z "$INSTALL"; then
7459 if test "${ac_cv_path_install+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7463 for ac_dir
in $PATH; do
7464 # Account for people who put trailing slashes in PATH elements.
7466 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7468 # OSF1 and SCO ODT 3.0 have their own names for install.
7469 for ac_prog
in ginstall scoinst
install; do
7470 if test -f $ac_dir/$ac_prog; then
7471 if test $ac_prog = install &&
7472 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7473 # AIX install. It has an incompatible calling convention.
7474 # OSF/1 installbsd also uses dspmsg, but is usable.
7477 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7488 if test "${ac_cv_path_install+set}" = set; then
7489 INSTALL
="$ac_cv_path_install"
7491 # As a last resort, use the slow shell script. We don't cache a
7492 # path for INSTALL within a source directory, because that will
7493 # break other packages using the cache if that directory is
7494 # removed, or if the path is relative.
7495 INSTALL
="$ac_install_sh"
7498 echo "$as_me:$LINENO: result: $INSTALL" >&5
7499 echo "${ECHO_T}$INSTALL" >&6
7501 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7502 # It thinks the first close brace ends the variable substitution.
7503 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7505 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7508 # See if cmp has --ignore-initial.
7509 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7510 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7511 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 gcc_cv_prog_cmp_skip
=slowcompare
7517 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7518 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7521 gcc_cv_prog_cmp_skip
=gnucompare
7524 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7525 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7526 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7529 gcc_cv_prog_cmp_skip
=fastcompare
7536 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7537 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7538 make_compare_target
=$gcc_cv_prog_cmp_skip
7542 # See if we have the mktemp command.
7543 # Extract the first word of "mktemp", so it can be a program name with args.
7544 set dummy mktemp
; ac_word
=$2
7545 echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$have_mktemp_command"; then
7551 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir
=.
7558 for ac_exec_ext
in '' $ac_executable_extensions; do
7559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 ac_cv_prog_have_mktemp_command
="yes"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7570 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7571 if test -n "$have_mktemp_command"; then
7572 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7573 echo "${ECHO_T}$have_mktemp_command" >&6
7575 echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7580 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7582 # See if makeinfo has been installed and is modern enough
7583 # that we can use it.
7585 ac_executable_extensions
="$build_exeext"
7587 # Extract the first word of "makeinfo", so it can be a program name with args.
7588 set dummy makeinfo
; ac_word
=$2
7589 echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 if test -n "$MAKEINFO"; then
7595 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir
=.
7602 for ac_exec_ext
in '' $ac_executable_extensions; do
7603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_MAKEINFO
="makeinfo"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 MAKEINFO
=$ac_cv_prog_MAKEINFO
7614 if test -n "$MAKEINFO"; then
7615 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7616 echo "${ECHO_T}$MAKEINFO" >&6
7618 echo "$as_me:$LINENO: result: no" >&5
7619 echo "${ECHO_T}no" >&6
7622 if test -n "$MAKEINFO"; then
7623 # Found it, now check the version.
7624 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7625 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7626 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7630 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7631 echo "configure:7631: version of makeinfo is $ac_prog_version" >&5
7632 case $ac_prog_version in
7633 '') gcc_cv_prog_makeinfo_modern
=no
;;
7635 gcc_cv_prog_makeinfo_modern
=yes;;
7636 *) gcc_cv_prog_makeinfo_modern
=no
;;
7640 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7641 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7643 gcc_cv_prog_makeinfo_modern
=no
7646 if test $gcc_cv_prog_makeinfo_modern = no
; then
7647 MAKEINFO
="$MISSING makeinfo"
7648 { echo "$as_me:$LINENO: WARNING:
7649 *** Makeinfo is missing or too old.
7650 *** Info documentation will not be built." >&5
7651 echo "$as_me: WARNING:
7652 *** Makeinfo is missing or too old.
7653 *** Info documentation will not be built." >&2;}
7660 # Is pod2man recent enough to regenerate manpages?
7661 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7662 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7663 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7664 echo "$as_me:$LINENO: result: yes" >&5
7665 echo "${ECHO_T}yes" >&6
7666 GENERATED_MANPAGES
=generated-manpages
7668 echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6
7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
7678 set dummy
$ac_prog; ac_word
=$2
7679 echo "$as_me:$LINENO: checking for $ac_word" >&5
7680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7681 if test "${ac_cv_prog_FLEX+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 if test -n "$FLEX"; then
7685 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir
=.
7692 for ac_exec_ext
in '' $ac_executable_extensions; do
7693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_FLEX
="$ac_prog"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 FLEX
=$ac_cv_prog_FLEX
7704 if test -n "$FLEX"; then
7705 echo "$as_me:$LINENO: result: $FLEX" >&5
7706 echo "${ECHO_T}$FLEX" >&6
7708 echo "$as_me:$LINENO: result: no" >&5
7709 echo "${ECHO_T}no" >&6
7712 test -n "$FLEX" && break
7714 test -n "$FLEX" || FLEX
="$MISSING flex"
7718 for ac_prog
in bison
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy
$ac_prog; ac_word
=$2
7722 echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7724 if test "${ac_cv_prog_BISON+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 if test -n "$BISON"; then
7728 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir
=.
7735 for ac_exec_ext
in '' $ac_executable_extensions; do
7736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7737 ac_cv_prog_BISON
="$ac_prog"
7738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 BISON
=$ac_cv_prog_BISON
7747 if test -n "$BISON"; then
7748 echo "$as_me:$LINENO: result: $BISON" >&5
7749 echo "${ECHO_T}$BISON" >&6
7751 echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7755 test -n "$BISON" && break
7757 test -n "$BISON" || BISON
="$MISSING bison"
7760 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7761 # check for build == host before using them.
7764 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7765 && test -d ..
/binutils
; then
7766 NM
='$(objdir)/../binutils/nm-new'
7768 # Extract the first word of "nm", so it can be a program name with args.
7769 set dummy nm
; ac_word
=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_prog_NM+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 if test -n "$NM"; then
7776 ac_cv_prog_NM
="$NM" # Let the user override the test.
7778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir
=.
7783 for ac_exec_ext
in '' $ac_executable_extensions; do
7784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7796 if test -n "$NM"; then
7797 echo "$as_me:$LINENO: result: $NM" >&5
7798 echo "${ECHO_T}$NM" >&6
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7807 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7808 && test -d ..
/binutils
; then
7809 AR
='$(objdir)/../binutils/ar'
7811 # Extract the first word of "ar", so it can be a program name with args.
7812 set dummy
ar; ac_word
=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_prog_AR+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 if test -n "$AR"; then
7819 ac_cv_prog_AR
="$AR" # Let the user override the test.
7821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir
=.
7826 for ac_exec_ext
in '' $ac_executable_extensions; do
7827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7839 if test -n "$AR"; then
7840 echo "$as_me:$LINENO: result: $AR" >&5
7841 echo "${ECHO_T}$AR" >&6
7843 echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6
7850 # --------------------
7851 # Checks for C headers
7852 # --------------------
7854 echo "$as_me:$LINENO: checking for GNU C library" >&5
7855 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7856 if test "${gcc_cv_glibc+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7859 cat >conftest.
$ac_ext <<_ACEOF
7862 cat confdefs.h
>>conftest.
$ac_ext
7863 cat >>conftest.
$ac_ext <<_ACEOF
7864 /* end confdefs.h. */
7865 #include <features.h>
7870 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7871 #error Not a GNU C library system
7877 rm -f conftest.
$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>conftest.er1
7881 grep -v '^ *+' conftest.er1
>conftest.err
7883 cat conftest.err
>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try
='test -z "$ac_c_werror_flag"
7887 || test ! -s conftest.err'
7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try
='test -s conftest.$ac_objext'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7901 echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.
$ac_ext >&5
7906 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7909 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7910 echo "${ECHO_T}$gcc_cv_glibc" >&6
7911 if test $gcc_cv_glibc = yes; then
7913 cat >>confdefs.h
<<\_ACEOF
7914 #define _GNU_SOURCE 1
7919 # Need to reject headers which give warnings, so that the -Werror bootstrap
7920 # works later. *sigh* This needs to come before all header checks.
7922 ac_c_preproc_warn_flag
=yes
7924 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7926 if test "${ac_cv_header_stdc+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.
$ac_ext <<_ACEOF
7932 cat confdefs.h
>>conftest.
$ac_ext
7933 cat >>conftest.
$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7948 rm -f conftest.
$ac_objext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950 (eval $ac_compile) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1
>conftest.err
7954 cat conftest.err
>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try
='test -z "$ac_c_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try
='test -s conftest.$ac_objext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_header_stdc
=yes
7972 echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.
$ac_ext >&5
7975 ac_cv_header_stdc
=no
7977 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7979 if test $ac_cv_header_stdc = yes; then
7980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7981 cat >conftest.
$ac_ext <<_ACEOF
7984 cat confdefs.h
>>conftest.
$ac_ext
7985 cat >>conftest.
$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "memchr" >/dev
/null
2>&1; then
7994 ac_cv_header_stdc
=no
8000 if test $ac_cv_header_stdc = yes; then
8001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8012 $EGREP "free" >/dev
/null
2>&1; then
8015 ac_cv_header_stdc
=no
8021 if test $ac_cv_header_stdc = yes; then
8022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8023 if test "$cross_compiling" = yes; then
8026 cat >conftest.
$ac_ext <<_ACEOF
8029 cat confdefs.h
>>conftest.
$ac_ext
8030 cat >>conftest.
$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8033 #if ((' ' & 0x0FF) == 0x020)
8034 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8035 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8037 # define ISLOWER(c) \
8038 (('a' <= (c) && (c) <= 'i') \
8039 || ('j' <= (c) && (c) <= 'r') \
8040 || ('s' <= (c) && (c) <= 'z'))
8041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8049 for (i = 0; i < 256; i++)
8050 if (XOR (islower (i), ISLOWER (i))
8051 || toupper (i) != TOUPPER (i))
8056 rm -f conftest
$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058 (eval $ac_link) 2>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8069 echo "$as_me: program exited with status $ac_status" >&5
8070 echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.
$ac_ext >&5
8074 ac_cv_header_stdc
=no
8076 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8080 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8081 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8082 if test $ac_cv_header_stdc = yes; then
8084 cat >>confdefs.h
<<\_ACEOF
8085 #define STDC_HEADERS 1
8090 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8091 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8092 if test "${ac_cv_header_time+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <sys/types.h>
8102 #include <sys/time.h>
8108 if ((struct tm *) 0)
8114 rm -f conftest.
$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
8118 grep -v '^ *+' conftest.er1
>conftest.err
8120 cat conftest.err
>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try
='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try
='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_header_time
=yes
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.
$ac_ext >&5
8141 ac_cv_header_time
=no
8143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8146 echo "${ECHO_T}$ac_cv_header_time" >&6
8147 if test $ac_cv_header_time = yes; then
8149 cat >>confdefs.h
<<\_ACEOF
8150 #define TIME_WITH_SYS_TIME 1
8155 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8156 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8157 if test "${gcc_cv_header_string+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 #include <strings.h>
8176 rm -f conftest.
$ac_objext
8177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178 (eval $ac_compile) 2>conftest.er1
8180 grep -v '^ *+' conftest.er1
>conftest.err
8182 cat conftest.err
>&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try
='test -z "$ac_c_werror_flag"
8186 || test ! -s conftest.err'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try
='test -s conftest.$ac_objext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 gcc_cv_header_string
=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.
$ac_ext >&5
8203 gcc_cv_header_string
=no
8205 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8207 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8208 echo "${ECHO_T}$gcc_cv_header_string" >&6
8209 if test $gcc_cv_header_string = yes; then
8211 cat >>confdefs.h
<<\_ACEOF
8212 #define STRING_WITH_STRINGS 1
8217 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8218 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8219 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 cat >conftest.
$ac_ext <<_ACEOF
8225 cat confdefs.h
>>conftest.
$ac_ext
8226 cat >>conftest.
$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 #include <sys/types.h>
8229 #include <sys/wait.h>
8231 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8234 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8242 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8247 rm -f conftest.
$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1
>conftest.err
8253 cat conftest.err
>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try
='test -z "$ac_c_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try
='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_header_sys_wait_h
=yes
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8274 ac_cv_header_sys_wait_h
=no
8276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8279 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8280 if test $ac_cv_header_sys_wait_h = yes; then
8282 cat >>confdefs.h
<<\_ACEOF
8283 #define HAVE_SYS_WAIT_H 1
8310 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8311 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8312 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8313 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8316 echo "$as_me:$LINENO: checking for $ac_header" >&5
8317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #include <$ac_header>
8329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8330 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8332 grep -v '^ *+' conftest.er1
>conftest.err
8334 cat conftest.err
>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } >/dev
/null
; then
8337 if test -s conftest.err
; then
8338 ac_cpp_err
=$ac_c_preproc_warn_flag
8339 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8346 if test -z "$ac_cpp_err"; then
8347 eval "$as_ac_Header=yes"
8349 echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.
$ac_ext >&5
8352 eval "$as_ac_Header=no"
8354 rm -f conftest.err conftest.
$ac_ext
8356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8359 cat >>confdefs.h
<<_ACEOF
8360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 # Check for thread headers.
8368 echo "$as_me:$LINENO: checking for thread.h" >&5
8369 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8370 if test "${ac_cv_header_thread_h+set}" = set; then
8371 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 cat >conftest.
$ac_ext <<_ACEOF
8376 cat confdefs.h
>>conftest.
$ac_ext
8377 cat >>conftest.
$ac_ext <<_ACEOF
8378 /* end confdefs.h. */
8381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8382 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8384 grep -v '^ *+' conftest.er1
>conftest.err
8386 cat conftest.err
>&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } >/dev
/null
; then
8389 if test -s conftest.err
; then
8390 ac_cpp_err
=$ac_c_preproc_warn_flag
8391 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8398 if test -z "$ac_cpp_err"; then
8399 ac_cv_header_thread_h
=yes
8401 echo "$as_me: failed program was:" >&5
8402 sed 's/^/| /' conftest.
$ac_ext >&5
8404 ac_cv_header_thread_h
=no
8406 rm -f conftest.err conftest.
$ac_ext
8408 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8409 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8410 if test $ac_cv_header_thread_h = yes; then
8416 echo "$as_me:$LINENO: checking for pthread.h" >&5
8417 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8418 if test "${ac_cv_header_pthread_h+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 cat >conftest.
$ac_ext <<_ACEOF
8424 cat confdefs.h
>>conftest.
$ac_ext
8425 cat >>conftest.
$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <pthread.h>
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8432 grep -v '^ *+' conftest.er1
>conftest.err
8434 cat conftest.err
>&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev
/null
; then
8437 if test -s conftest.err
; then
8438 ac_cpp_err
=$ac_c_preproc_warn_flag
8439 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8446 if test -z "$ac_cpp_err"; then
8447 ac_cv_header_pthread_h
=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.
$ac_ext >&5
8452 ac_cv_header_pthread_h
=no
8454 rm -f conftest.err conftest.
$ac_ext
8456 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8457 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8458 if test $ac_cv_header_pthread_h = yes; then
8465 # These tests can't be done till we know if we have limits.h.
8466 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8467 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8468 if test "${gcc_cv_decl_char_bit+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 cat >conftest.
$ac_ext <<_ACEOF
8474 cat confdefs.h
>>conftest.
$ac_ext
8475 cat >>conftest.
$ac_ext <<_ACEOF
8476 /* end confdefs.h. */
8477 #ifdef HAVE_LIMITS_H
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "found" >/dev
/null
2>&1; then
8486 gcc_cv_decl_char_bit
=yes
8488 gcc_cv_decl_char_bit
=no
8494 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8495 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8496 if test $gcc_cv_decl_char_bit = no
; then
8497 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8498 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8499 if test "${gcc_cv_c_nbby+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 while test $i -lt 65; do
8505 cat >conftest.
$ac_ext <<_ACEOF
8508 cat confdefs.h
>>conftest.
$ac_ext
8509 cat >>conftest.
$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8516 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8517 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8523 rm -f conftest.
$ac_objext
8524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8525 (eval $ac_compile) 2>conftest.er1
8527 grep -v '^ *+' conftest.er1
>conftest.err
8529 cat conftest.err
>&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try
='test -z "$ac_c_werror_flag"
8533 || test ! -s conftest.err'
8534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; } &&
8539 { ac_try
='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 gcc_cv_c_nbby
=$i; break
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.
$ac_ext >&5
8551 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8554 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8557 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8558 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8559 if test $gcc_cv_c_nbby = failed
; then
8560 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8561 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8562 { (exit 1); exit 1; }; }
8565 cat >>confdefs.h
<<_ACEOF
8566 #define CHAR_BIT $gcc_cv_c_nbby
8571 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8572 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8573 if test "${ac_cv_c_bigendian+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 # See if sys/param.h defines the BYTE_ORDER macro.
8577 cat >conftest.
$ac_ext <<_ACEOF
8580 cat confdefs.h
>>conftest.
$ac_ext
8581 cat >>conftest.
$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8583 #include <sys/types.h>
8584 #include <sys/param.h>
8589 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8597 rm -f conftest.
$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>conftest.er1
8601 grep -v '^ *+' conftest.er1
>conftest.err
8603 cat conftest.err
>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try
='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try
='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 # It does; now see whether it defined to BIG_ENDIAN or not.
8620 cat >conftest.
$ac_ext <<_ACEOF
8623 cat confdefs.h
>>conftest.
$ac_ext
8624 cat >>conftest.
$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 #include <sys/types.h>
8627 #include <sys/param.h>
8632 #if BYTE_ORDER != BIG_ENDIAN
8640 rm -f conftest.
$ac_objext
8641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8642 (eval $ac_compile) 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } &&
8649 { ac_try
='test -z "$ac_c_werror_flag"
8650 || test ! -s conftest.err'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try
='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_c_bigendian
=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.
$ac_ext >&5
8667 ac_cv_c_bigendian
=no
8669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.
$ac_ext >&5
8674 # It does not; compile a test program.
8675 if test "$cross_compiling" = yes; then
8676 # try to guess the endianness by grepping values into an object file
8677 ac_cv_c_bigendian
=unknown
8678 cat >conftest.
$ac_ext <<_ACEOF
8681 cat confdefs.h
>>conftest.
$ac_ext
8682 cat >>conftest.
$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8685 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8686 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8687 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8688 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8689 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8693 _ascii (); _ebcdic ();
8698 rm -f conftest.
$ac_objext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700 (eval $ac_compile) 2>conftest.er1
8702 grep -v '^ *+' conftest.er1
>conftest.err
8704 cat conftest.err
>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
8707 { ac_try
='test -z "$ac_c_werror_flag"
8708 || test ! -s conftest.err'
8709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; } &&
8714 { ac_try
='test -s conftest.$ac_objext'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; }; then
8720 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8721 ac_cv_c_bigendian
=yes
8723 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8724 if test "$ac_cv_c_bigendian" = unknown
; then
8725 ac_cv_c_bigendian
=no
8727 # finding both strings is unlikely to happen, but who knows?
8728 ac_cv_c_bigendian
=unknown
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.
$ac_ext >&5
8736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8747 /* Are we little or big endian? From Harbison&Steele. */
8751 char c[sizeof (long)];
8754 exit (u.c[sizeof (long) - 1] == 1);
8757 rm -f conftest
$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_c_bigendian
=no
8770 echo "$as_me: program exited with status $ac_status" >&5
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8775 ac_cv_c_bigendian
=yes
8777 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8780 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8782 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8783 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8784 case $ac_cv_c_bigendian in
8787 cat >>confdefs.h
<<\_ACEOF
8788 #define WORDS_BIGENDIAN 1
8794 { { echo "$as_me:$LINENO: error: unknown endianness
8795 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8796 echo "$as_me: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8798 { (exit 1); exit 1; }; } ;;
8806 # Stage specific cflags for build.
8810 if test x
$GCC = xyes
8812 stage1_cflags
="-Wa,-J"
8818 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8819 # sources; use -no-cpp-precomp to get to GNU cpp.
8820 # Apple's GCC has bugs in designated initializer handling, so disable
8822 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8827 # These libraries may be used by collect2.
8828 # We may need a special search path to get them linked.
8829 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8830 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8831 if test "${gcc_cv_collect2_libs+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 for libs
in '' -lld -lmld \
8836 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8837 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8840 cat >conftest.
$ac_ext <<_ACEOF
8843 cat confdefs.h
>>conftest.
$ac_ext
8844 cat >>conftest.
$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8862 rm -f conftest.
$ac_objext conftest
$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>conftest.er1
8866 grep -v '^ *+' conftest.er1
>conftest.err
8868 cat conftest.err
>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } &&
8871 { ac_try
='test -z "$ac_c_werror_flag"
8872 || test ! -s conftest.err'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; } &&
8878 { ac_try
='test -s conftest$ac_exeext'
8879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); }; }; then
8884 gcc_cv_collect2_libs
="$libs"; break
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.
$ac_ext >&5
8890 rm -f conftest.err conftest.
$ac_objext \
8891 conftest
$ac_exeext conftest.
$ac_ext
8894 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8896 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8897 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8898 case $gcc_cv_collect2_libs in
8900 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8904 # When building Ada code on Alpha, we need exc_resume which is usually in
8905 # -lexc. So test for it.
8908 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8909 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8910 if test "${ac_cv_search_exc_resume+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 ac_func_search_save_LIBS
=$LIBS
8914 ac_cv_search_exc_resume
=no
8915 cat >conftest.
$ac_ext <<_ACEOF
8918 cat confdefs.h
>>conftest.
$ac_ext
8919 cat >>conftest.
$ac_ext <<_ACEOF
8920 /* end confdefs.h. */
8922 /* Override any gcc2 internal prototype to avoid an error. */
8926 /* We use char because int might match the return type of a gcc2
8927 builtin and then its argument prototype would still apply. */
8937 rm -f conftest.
$ac_objext conftest
$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8941 grep -v '^ *+' conftest.er1
>conftest.err
8943 cat conftest.err
>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try
='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try
='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_search_exc_resume
="none required"
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.
$ac_ext >&5
8965 rm -f conftest.err conftest.
$ac_objext \
8966 conftest
$ac_exeext conftest.
$ac_ext
8967 if test "$ac_cv_search_exc_resume" = no
; then
8968 for ac_lib
in exc
; do
8969 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8970 cat >conftest.
$ac_ext <<_ACEOF
8973 cat confdefs.h
>>conftest.
$ac_ext
8974 cat >>conftest.
$ac_ext <<_ACEOF
8975 /* end confdefs.h. */
8977 /* Override any gcc2 internal prototype to avoid an error. */
8981 /* We use char because int might match the return type of a gcc2
8982 builtin and then its argument prototype would still apply. */
8992 rm -f conftest.
$ac_objext conftest
$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>conftest.er1
8996 grep -v '^ *+' conftest.er1
>conftest.err
8998 cat conftest.err
>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } &&
9001 { ac_try
='test -z "$ac_c_werror_flag"
9002 || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try
='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_cv_search_exc_resume
="-l$ac_lib"
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9021 rm -f conftest.err conftest.
$ac_objext \
9022 conftest
$ac_exeext conftest.
$ac_ext
9025 LIBS
=$ac_func_search_save_LIBS
9027 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9028 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9029 if test "$ac_cv_search_exc_resume" != no
; then
9030 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9038 # Some systems put ldexp and frexp in libm instead of libc; assume
9039 # they're both in the same place. jcf-dump needs them.
9042 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9043 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9044 if test "${ac_cv_search_ldexp+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9047 ac_func_search_save_LIBS
=$LIBS
9048 ac_cv_search_ldexp
=no
9049 cat >conftest.
$ac_ext <<_ACEOF
9052 cat confdefs.h
>>conftest.
$ac_ext
9053 cat >>conftest.
$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9056 /* Override any gcc2 internal prototype to avoid an error. */
9060 /* We use char because int might match the return type of a gcc2
9061 builtin and then its argument prototype would still apply. */
9071 rm -f conftest.
$ac_objext conftest
$ac_exeext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073 (eval $ac_link) 2>conftest.er1
9075 grep -v '^ *+' conftest.er1
>conftest.err
9077 cat conftest.err
>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try
='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try
='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_search_ldexp
="none required"
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.
$ac_ext >&5
9099 rm -f conftest.err conftest.
$ac_objext \
9100 conftest
$ac_exeext conftest.
$ac_ext
9101 if test "$ac_cv_search_ldexp" = no
; then
9103 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9104 cat >conftest.
$ac_ext <<_ACEOF
9107 cat confdefs.h
>>conftest.
$ac_ext
9108 cat >>conftest.
$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9111 /* Override any gcc2 internal prototype to avoid an error. */
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9126 rm -f conftest.
$ac_objext conftest
$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9130 grep -v '^ *+' conftest.er1
>conftest.err
9132 cat conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try
='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try
='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_search_ldexp
="-l$ac_lib"
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.
$ac_ext >&5
9155 rm -f conftest.err conftest.
$ac_objext \
9156 conftest
$ac_exeext conftest.
$ac_ext
9159 LIBS
=$ac_func_search_save_LIBS
9161 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9162 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9163 if test "$ac_cv_search_ldexp" != no
; then
9164 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9172 # Use <inttypes.h> only if it exists,
9173 # doesn't clash with <sys/types.h>, and declares intmax_t.
9174 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9175 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9176 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 cat >conftest.
$ac_ext <<_ACEOF
9182 cat confdefs.h
>>conftest.
$ac_ext
9183 cat >>conftest.
$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9185 #include <sys/types.h>
9186 #include <inttypes.h>
9195 rm -f conftest.
$ac_objext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9197 (eval $ac_compile) 2>conftest.er1
9199 grep -v '^ *+' conftest.er1
>conftest.err
9201 cat conftest.err
>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } &&
9204 { ac_try
='test -z "$ac_c_werror_flag"
9205 || test ! -s conftest.err'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try
='test -s conftest.$ac_objext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 gcc_cv_header_inttypes_h
=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.
$ac_ext >&5
9222 gcc_cv_header_inttypes_h
=no
9224 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9227 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9228 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9229 if test $gcc_cv_header_inttypes_h = yes; then
9231 cat >>confdefs.h
<<\_ACEOF
9232 #define HAVE_INTTYPES_H 1
9274 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9275 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9276 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9277 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
9279 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9280 echo "$as_me:$LINENO: checking for $ac_func" >&5
9281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9282 if eval "test \"\${$as_ac_var+set}\" = set"; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 cat >conftest.
$ac_ext <<_ACEOF
9288 cat confdefs.h
>>conftest.
$ac_ext
9289 cat >>conftest.
$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9293 #define $ac_func innocuous_$ac_func
9295 /* System header to define __stub macros and hopefully few prototypes,
9296 which can conflict with char $ac_func (); below.
9297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9298 <limits.h> exists even on freestanding compilers. */
9301 # include <limits.h>
9303 # include <assert.h>
9308 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9316 /* The GNU C library defines this for functions which it implements
9317 to always fail with ENOSYS. Some functions are actually named
9318 something starting with __ and the normal name is an alias. */
9319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9322 char (*f) () = $ac_func;
9331 return f != $ac_func;
9336 rm -f conftest.
$ac_objext conftest
$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1
>conftest.err
9342 cat conftest.err
>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try
='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try
='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 eval "$as_ac_var=yes"
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.
$ac_ext >&5
9363 eval "$as_ac_var=no"
9365 rm -f conftest.err conftest.
$ac_objext \
9366 conftest
$ac_exeext conftest.
$ac_ext
9368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9370 if test `eval echo '${'$as_ac_var'}'` = yes; then
9371 cat >>confdefs.h
<<_ACEOF
9372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9379 if test x
$ac_cv_func_mbstowcs = xyes
; then
9380 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9381 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9382 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 if test "$cross_compiling" = yes; then
9386 gcc_cv_func_mbstowcs_works
=yes
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9401 rm -f conftest
$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 gcc_cv_func_mbstowcs_works
=yes
9414 echo "$as_me: program exited with status $ac_status" >&5
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.
$ac_ext >&5
9419 gcc_cv_func_mbstowcs_works
=no
9421 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9424 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9425 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9426 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9428 cat >>confdefs.h
<<\_ACEOF
9429 #define HAVE_WORKING_MBSTOWCS 1
9435 echo "$as_me:$LINENO: checking for ssize_t" >&5
9436 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9437 if test "${ac_cv_type_ssize_t+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 cat >conftest.
$ac_ext <<_ACEOF
9443 cat confdefs.h
>>conftest.
$ac_ext
9444 cat >>conftest.
$ac_ext <<_ACEOF
9445 /* end confdefs.h. */
9446 $ac_includes_default
9452 if (sizeof (ssize_t))
9458 rm -f conftest.
$ac_objext
9459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9460 (eval $ac_compile) 2>conftest.er1
9462 grep -v '^ *+' conftest.er1
>conftest.err
9464 cat conftest.err
>&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try
='test -z "$ac_c_werror_flag"
9468 || test ! -s conftest.err'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try
='test -s conftest.$ac_objext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
9480 ac_cv_type_ssize_t
=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.
$ac_ext >&5
9485 ac_cv_type_ssize_t
=no
9487 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9489 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9490 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9491 if test $ac_cv_type_ssize_t = yes; then
9495 cat >>confdefs.h
<<_ACEOF
9502 # Try to determine the array type of the second argument of getgroups
9503 # for the target system (int or gid_t).
9504 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9505 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9506 if test "${ac_cv_type_uid_t+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.
$ac_ext <<_ACEOF
9512 cat confdefs.h
>>conftest.
$ac_ext
9513 cat >>conftest.
$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 #include <sys/types.h>
9518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9519 $EGREP "uid_t" >/dev
/null
2>&1; then
9520 ac_cv_type_uid_t
=yes
9527 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9528 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9529 if test $ac_cv_type_uid_t = no
; then
9531 cat >>confdefs.h
<<\_ACEOF
9536 cat >>confdefs.h
<<\_ACEOF
9542 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9543 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9544 if test "${ac_cv_type_getgroups+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 if test "$cross_compiling" = yes; then
9548 ac_cv_type_getgroups
=cross
9550 cat >conftest.
$ac_ext <<_ACEOF
9553 cat confdefs.h
>>conftest.
$ac_ext
9554 cat >>conftest.
$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 /* Thanks to Mike Rendell for this test. */
9557 #include <sys/types.h>
9560 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9567 union { gid_t gval; long lval; } val;
9570 for (i = 0; i < NGID; i++)
9571 gidset[i] = val.gval;
9572 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9574 /* Exit non-zero if getgroups seems to require an array of ints. This
9575 happens when gid_t is short but getgroups modifies an array of ints. */
9576 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9579 rm -f conftest
$ac_exeext
9580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581 (eval $ac_link) 2>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_type_getgroups
=gid_t
9592 echo "$as_me: program exited with status $ac_status" >&5
9593 echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.
$ac_ext >&5
9597 ac_cv_type_getgroups
=int
9599 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9601 if test $ac_cv_type_getgroups = cross
; then
9602 cat >conftest.
$ac_ext <<_ACEOF
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9613 ac_cv_type_getgroups
=gid_t
9615 ac_cv_type_getgroups
=int
9621 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9622 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9624 cat >>confdefs.h
<<_ACEOF
9625 #define GETGROUPS_T $ac_cv_type_getgroups
9629 if test "${target}" = "${build}"; then
9630 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9633 # This condition may need some tweaking. It should include all
9634 # targets where the array type of the second argument of getgroups
9635 # is int and the type of gid_t is not equivalent to int.
9636 *-*-sunos* |
*-*-ultrix*)
9637 TARGET_GETGROUPS_T
=int
9640 TARGET_GETGROUPS_T
=gid_t
9647 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9648 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9649 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 cat >conftest.
$ac_ext <<_ACEOF
9655 cat confdefs.h
>>conftest.
$ac_ext
9656 cat >>conftest.
$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9658 #include <sys/mman.h>
9660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9661 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9663 grep -v '^ *+' conftest.er1
>conftest.err
9665 cat conftest.err
>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } >/dev
/null
; then
9668 if test -s conftest.err
; then
9669 ac_cpp_err
=$ac_c_preproc_warn_flag
9670 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9677 if test -z "$ac_cpp_err"; then
9678 ac_cv_header_sys_mman_h
=yes
9680 echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.
$ac_ext >&5
9683 ac_cv_header_sys_mman_h
=no
9685 rm -f conftest.err conftest.
$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9688 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9689 if test $ac_cv_header_sys_mman_h = yes; then
9690 gcc_header_sys_mman_h
=yes
9692 gcc_header_sys_mman_h
=no
9695 echo "$as_me:$LINENO: checking for mmap" >&5
9696 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9697 if test "${ac_cv_func_mmap+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 cat >conftest.
$ac_ext <<_ACEOF
9703 cat confdefs.h
>>conftest.
$ac_ext
9704 cat >>conftest.
$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9708 #define mmap innocuous_mmap
9710 /* System header to define __stub macros and hopefully few prototypes,
9711 which can conflict with char mmap (); below.
9712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9713 <limits.h> exists even on freestanding compilers. */
9716 # include <limits.h>
9718 # include <assert.h>
9723 /* Override any gcc2 internal prototype to avoid an error. */
9728 /* We use char because int might match the return type of a gcc2
9729 builtin and then its argument prototype would still apply. */
9731 /* The GNU C library defines this for functions which it implements
9732 to always fail with ENOSYS. Some functions are actually named
9733 something starting with __ and the normal name is an alias. */
9734 #if defined (__stub_mmap) || defined (__stub___mmap)
9737 char (*f) () = mmap;
9751 rm -f conftest.
$ac_objext conftest
$ac_exeext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9753 (eval $ac_link) 2>conftest.er1
9755 grep -v '^ *+' conftest.er1
>conftest.err
9757 cat conftest.err
>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } &&
9760 { ac_try
='test -z "$ac_c_werror_flag"
9761 || test ! -s conftest.err'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; } &&
9767 { ac_try
='test -s conftest$ac_exeext'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; }; then
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.
$ac_ext >&5
9780 rm -f conftest.err conftest.
$ac_objext \
9781 conftest
$ac_exeext conftest.
$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9784 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9785 if test $ac_cv_func_mmap = yes; then
9791 if test "$gcc_header_sys_mman_h" != yes \
9792 ||
test "$gcc_func_mmap" != yes; then
9793 gcc_cv_func_mmap_file
=no
9794 gcc_cv_func_mmap_dev_zero
=no
9795 gcc_cv_func_mmap_anon
=no
9797 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9798 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9799 if test "${gcc_cv_func_mmap_file+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 # Add a system to this blacklist if
9803 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9804 # memory area containing the same data that you'd get if you applied
9805 # read() to the same fd. The only system known to have a problem here
9806 # is VMS, where text files have record structure.
9809 gcc_cv_func_mmap_file
=no
;;
9811 gcc_cv_func_mmap_file
=yes;;
9814 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9815 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9816 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9817 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9818 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 # Add a system to this blacklist if it has mmap() but /dev/zero
9822 # does not exist, or if mmapping /dev/zero does not give anonymous
9823 # zeroed pages with both the following properties:
9824 # 1. If you map N consecutive pages in with one call, and then
9825 # unmap any subset of those pages, the pages that were not
9826 # explicitly unmapped remain accessible.
9827 # 2. If you map two adjacent blocks of memory and then unmap them
9828 # both at once, they must both go away.
9829 # Systems known to be in this category are Windows (all variants),
9832 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9833 gcc_cv_func_mmap_dev_zero
=no
;;
9835 gcc_cv_func_mmap_dev_zero
=yes;;
9838 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9839 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9841 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9842 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9843 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9844 if test "${gcc_cv_decl_map_anon+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 cat >conftest.
$ac_ext <<_ACEOF
9850 cat confdefs.h
>>conftest.
$ac_ext
9851 cat >>conftest.
$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 #include <sys/types.h>
9854 #include <sys/mman.h>
9857 #ifndef MAP_ANONYMOUS
9858 #define MAP_ANONYMOUS MAP_ANON
9864 int n = MAP_ANONYMOUS;
9869 rm -f conftest.
$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871 (eval $ac_compile) 2>conftest.er1
9873 grep -v '^ *+' conftest.er1
>conftest.err
9875 cat conftest.err
>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try
='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try
='test -s conftest.$ac_objext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 gcc_cv_decl_map_anon
=yes
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.
$ac_ext >&5
9896 gcc_cv_decl_map_anon
=no
9898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9900 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9901 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9903 if test $gcc_cv_decl_map_anon = no
; then
9904 gcc_cv_func_mmap_anon
=no
9906 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9907 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9908 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9911 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9912 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9913 # doesn't give anonymous zeroed pages with the same properties listed
9914 # above for use of /dev/zero.
9915 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9917 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9918 gcc_cv_func_mmap_anon
=no
;;
9920 gcc_cv_func_mmap_anon
=yes;;
9923 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9924 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9928 if test $gcc_cv_func_mmap_file = yes; then
9930 cat >>confdefs.h
<<\_ACEOF
9931 #define HAVE_MMAP_FILE 1
9935 if test $gcc_cv_func_mmap_dev_zero = yes; then
9937 cat >>confdefs.h
<<\_ACEOF
9938 #define HAVE_MMAP_DEV_ZERO 1
9942 if test $gcc_cv_func_mmap_anon = yes; then
9944 cat >>confdefs.h
<<\_ACEOF
9945 #define HAVE_MMAP_ANON 1
9953 # Under VMS, vfork works very differently than on Unix. The standard test
9954 # won't work, and it isn't easily adaptable. It makes more sense to
9956 ac_cv_func_vfork_works
=yes
9959 echo "$as_me:$LINENO: checking for pid_t" >&5
9960 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9961 if test "${ac_cv_type_pid_t+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.
$ac_ext <<_ACEOF
9967 cat confdefs.h
>>conftest.
$ac_ext
9968 cat >>conftest.
$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 $ac_includes_default
9982 rm -f conftest.
$ac_objext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>conftest.er1
9986 grep -v '^ *+' conftest.er1
>conftest.err
9988 cat conftest.err
>&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try
='test -z "$ac_c_werror_flag"
9992 || test ! -s conftest.err'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try
='test -s conftest.$ac_objext'
9999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10004 ac_cv_type_pid_t
=yes
10006 echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.
$ac_ext >&5
10009 ac_cv_type_pid_t
=no
10011 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10013 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10014 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10015 if test $ac_cv_type_pid_t = yes; then
10019 cat >>confdefs.h
<<_ACEOF
10027 for ac_header
in unistd.h vfork.h
10029 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10030 echo "$as_me:$LINENO: checking for $ac_header" >&5
10031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10035 cat >conftest.
$ac_ext <<_ACEOF
10038 cat confdefs.h
>>conftest.
$ac_ext
10039 cat >>conftest.
$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 #include <$ac_header>
10043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10046 grep -v '^ *+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev
/null
; then
10051 if test -s conftest.err
; then
10052 ac_cpp_err
=$ac_c_preproc_warn_flag
10053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10060 if test -z "$ac_cpp_err"; then
10061 eval "$as_ac_Header=yes"
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.
$ac_ext >&5
10066 eval "$as_ac_Header=no"
10068 rm -f conftest.err conftest.
$ac_ext
10070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10073 cat >>confdefs.h
<<_ACEOF
10074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10082 for ac_func
in fork vfork
10084 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10085 echo "$as_me:$LINENO: checking for $ac_func" >&5
10086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10087 if eval "test \"\${$as_ac_var+set}\" = set"; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 cat >conftest.
$ac_ext <<_ACEOF
10093 cat confdefs.h
>>conftest.
$ac_ext
10094 cat >>conftest.
$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10098 #define $ac_func innocuous_$ac_func
10100 /* System header to define __stub macros and hopefully few prototypes,
10101 which can conflict with char $ac_func (); below.
10102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103 <limits.h> exists even on freestanding compilers. */
10106 # include <limits.h>
10108 # include <assert.h>
10113 /* Override any gcc2 internal prototype to avoid an error. */
10118 /* We use char because int might match the return type of a gcc2
10119 builtin and then its argument prototype would still apply. */
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10127 char (*f) () = $ac_func;
10136 return f != $ac_func;
10141 rm -f conftest.
$ac_objext conftest
$ac_exeext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>conftest.er1
10145 grep -v '^ *+' conftest.er1
>conftest.err
10147 cat conftest.err
>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); } &&
10150 { ac_try
='test -z "$ac_c_werror_flag"
10151 || test ! -s conftest.err'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try
='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 eval "$as_ac_var=yes"
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.
$ac_ext >&5
10168 eval "$as_ac_var=no"
10170 rm -f conftest.err conftest.
$ac_objext \
10171 conftest
$ac_exeext conftest.
$ac_ext
10173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10175 if test `eval echo '${'$as_ac_var'}'` = yes; then
10176 cat >>confdefs.h
<<_ACEOF
10177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10183 if test "x$ac_cv_func_fork" = xyes
; then
10184 echo "$as_me:$LINENO: checking for working fork" >&5
10185 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10186 if test "${ac_cv_func_fork_works+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 if test "$cross_compiling" = yes; then
10190 ac_cv_func_fork_works
=cross
10192 cat >conftest.
$ac_ext <<_ACEOF
10193 /* By Ruediger Kuhlmann. */
10194 #include <sys/types.h>
10196 # include <unistd.h>
10198 /* Some systems only have a dummy stub for fork() */
10206 rm -f conftest
$ac_exeext
10207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208 (eval $ac_link) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213 (eval $ac_try) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); }; }; then
10217 ac_cv_func_fork_works
=yes
10219 echo "$as_me: program exited with status $ac_status" >&5
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.
$ac_ext >&5
10223 ( exit $ac_status )
10224 ac_cv_func_fork_works
=no
10226 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10229 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10230 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10233 ac_cv_func_fork_works
=$ac_cv_func_fork
10235 if test "x$ac_cv_func_fork_works" = xcross
; then
10237 *-*-amigaos* |
*-*-msdosdjgpp*)
10238 # Override, as these systems have only a dummy fork() stub
10239 ac_cv_func_fork_works
=no
10242 ac_cv_func_fork_works
=yes
10245 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10246 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10248 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10249 if test "x$ac_cv_func_vfork" = xyes
; then
10250 echo "$as_me:$LINENO: checking for working vfork" >&5
10251 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10252 if test "${ac_cv_func_vfork_works+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 if test "$cross_compiling" = yes; then
10256 ac_cv_func_vfork_works
=cross
10258 cat >conftest.
$ac_ext <<_ACEOF
10261 cat confdefs.h
>>conftest.
$ac_ext
10262 cat >>conftest.
$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 /* Thanks to Paul Eggert for this test. */
10266 #include <stdlib.h>
10267 #include <sys/types.h>
10268 #include <sys/stat.h>
10269 #include <sys/wait.h>
10271 # include <unistd.h>
10274 # include <vfork.h>
10276 /* On some sparc systems, changes by the child to local and incoming
10277 argument registers are propagated back to the parent. The compiler
10278 is told about this with #include <vfork.h>, but some compilers
10279 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10280 static variable whose address is put into a register that is
10281 clobbered by the vfork. */
10284 sparc_address_test (int arg)
10286 sparc_address_test (arg) int arg;
10289 static pid_t child;
10307 pid_t parent = getpid ();
10310 sparc_address_test (0);
10315 /* Here is another test for sparc vfork register problems. This
10316 test uses lots of local variables, at least as many local
10317 variables as main has allocated so far including compiler
10318 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10319 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10320 reuse the register of parent for one of the local variables,
10321 since it will think that parent can't possibly be used any more
10322 in this routine. Assigning to the local variable will thus
10323 munge parent in the parent process. */
10325 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10326 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10327 /* Convince the compiler that p..p7 are live; otherwise, it might
10328 use the same hardware register for all 8 local variables. */
10329 if (p != p1 || p != p2 || p != p3 || p != p4
10330 || p != p5 || p != p6 || p != p7)
10333 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10334 from child file descriptors. If the child closes a descriptor
10335 before it execs or exits, this munges the parent's descriptor
10336 as well. Test for this by closing stdout in the child. */
10337 _exit(close(fileno(stdout)) != 0);
10342 while (wait(&status) != child)
10345 /* Was there some problem with vforking? */
10348 /* Did the child fail? (This shouldn't happen.) */
10351 /* Did the vfork/compiler bug occur? */
10352 || parent != getpid()
10354 /* Did the file descriptor bug occur? */
10355 || fstat(fileno(stdout), &st) != 0
10360 rm -f conftest
$ac_exeext
10361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10362 (eval $ac_link) 2>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_func_vfork_works
=yes
10373 echo "$as_me: program exited with status $ac_status" >&5
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.
$ac_ext >&5
10377 ( exit $ac_status )
10378 ac_cv_func_vfork_works
=no
10380 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10383 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10384 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10387 if test "x$ac_cv_func_fork_works" = xcross
; then
10388 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10389 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10390 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10393 if test "x$ac_cv_func_vfork_works" = xyes
; then
10395 cat >>confdefs.h
<<\_ACEOF
10396 #define HAVE_WORKING_VFORK 1
10401 cat >>confdefs.h
<<\_ACEOF
10406 if test "x$ac_cv_func_fork_works" = xyes
; then
10408 cat >>confdefs.h
<<\_ACEOF
10409 #define HAVE_WORKING_FORK 1
10416 if test "X$prefix" = "XNONE"; then
10417 acl_final_prefix
="$ac_default_prefix"
10419 acl_final_prefix
="$prefix"
10421 if test "X$exec_prefix" = "XNONE"; then
10422 acl_final_exec_prefix
='${prefix}'
10424 acl_final_exec_prefix
="$exec_prefix"
10426 acl_save_prefix
="$prefix"
10427 prefix
="$acl_final_prefix"
10428 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10429 prefix
="$acl_save_prefix"
10432 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10433 if test "${with_gnu_ld+set}" = set; then
10434 withval
="$with_gnu_ld"
10435 test "$withval" = no || with_gnu_ld
=yes
10439 # Prepare PATH_SEPARATOR.
10440 # The user is always right.
10441 if test "${PATH_SEPARATOR+set}" != set; then
10442 echo "#! /bin/sh" >conf$$.sh
10443 echo "exit 0" >>conf$$.sh
10445 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10453 if test "$GCC" = yes; then
10454 # Check if gcc -print-prog-name=ld gives a path.
10455 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10456 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10459 # gcc leaves a trailing carriage return which upsets mingw
10460 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10462 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10465 # Accept absolute paths.
10466 [\\/]* |
[A-Za-z
]:[\\/]*)
10467 re_direlt
='/[^/][^/]*/\.\./'
10468 # Canonicalize the path of ld
10469 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10470 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10471 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10473 test -z "$LD" && LD
="$ac_prog"
10476 # If it fails, then pretend we aren't using GCC.
10480 # If it is relative, then search for the first ld in PATH.
10481 with_gnu_ld
=unknown
10484 elif test "$with_gnu_ld" = yes; then
10485 echo "$as_me:$LINENO: checking for GNU ld" >&5
10486 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10488 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10489 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10491 if test "${acl_cv_path_LD+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 if test -z "$LD"; then
10495 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10496 for ac_dir
in $PATH; do
10497 test -z "$ac_dir" && ac_dir
=.
10498 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10499 acl_cv_path_LD
="$ac_dir/$ac_prog"
10500 # Check to see if the program is GNU ld. I'd rather use --version,
10501 # but apparently some GNU ld's only accept -v.
10502 # Break only if it was the GNU/non-GNU ld that we prefer.
10503 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10504 test "$with_gnu_ld" != no
&& break
10506 test "$with_gnu_ld" != yes && break
10512 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10516 LD
="$acl_cv_path_LD"
10517 if test -n "$LD"; then
10518 echo "$as_me:$LINENO: result: $LD" >&5
10519 echo "${ECHO_T}$LD" >&6
10521 echo "$as_me:$LINENO: result: no" >&5
10522 echo "${ECHO_T}no" >&6
10524 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10525 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10526 { (exit 1); exit 1; }; }
10527 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10528 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10529 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10533 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10534 acl_cv_prog_gnu_ld
=yes
10536 acl_cv_prog_gnu_ld
=no
10539 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10540 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10541 with_gnu_ld
=$acl_cv_prog_gnu_ld
10545 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10546 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10547 if test "${acl_cv_rpath+set}" = set; then
10548 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10552 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10554 rm -f .
/conftest.sh
10558 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10559 echo "${ECHO_T}$acl_cv_rpath" >&6
10561 libext
="$acl_cv_libext"
10562 shlibext
="$acl_cv_shlibext"
10563 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10564 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10565 hardcode_direct
="$acl_cv_hardcode_direct"
10566 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10567 # Check whether --enable-rpath or --disable-rpath was given.
10568 if test "${enable_rpath+set}" = set; then
10569 enableval
="$enable_rpath"
10583 acl_save_prefix
="$prefix"
10584 prefix
="$acl_final_prefix"
10585 acl_save_exec_prefix
="$exec_prefix"
10586 exec_prefix
="$acl_final_exec_prefix"
10588 eval additional_includedir
=\"$includedir\"
10589 eval additional_libdir
=\"$libdir\"
10591 exec_prefix
="$acl_save_exec_prefix"
10592 prefix
="$acl_save_prefix"
10595 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10596 if test "${with_libiconv_prefix+set}" = set; then
10597 withval
="$with_libiconv_prefix"
10599 if test "X$withval" = "Xno"; then
10602 if test "X$withval" = "X"; then
10604 acl_save_prefix
="$prefix"
10605 prefix
="$acl_final_prefix"
10606 acl_save_exec_prefix
="$exec_prefix"
10607 exec_prefix
="$acl_final_exec_prefix"
10609 eval additional_includedir
=\"$includedir\"
10610 eval additional_libdir
=\"$libdir\"
10612 exec_prefix
="$acl_save_exec_prefix"
10613 prefix
="$acl_save_prefix"
10616 additional_includedir
="$withval/include"
10617 additional_libdir
="$withval/lib"
10627 names_already_handled
=
10628 names_next_round
='iconv '
10629 while test -n "$names_next_round"; do
10630 names_this_round
="$names_next_round"
10632 for name
in $names_this_round; do
10634 for n
in $names_already_handled; do
10635 if test "$n" = "$name"; then
10636 already_handled
=yes
10640 if test -z "$already_handled"; then
10641 names_already_handled
="$names_already_handled $name"
10642 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10643 eval value
=\"\
$HAVE_LIB$uppername\"
10644 if test -n "$value"; then
10645 if test "$value" = yes; then
10646 eval value
=\"\
$LIB$uppername\"
10647 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10648 eval value
=\"\
$LTLIB$uppername\"
10649 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10658 if test $use_additional = yes; then
10659 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10660 found_dir
="$additional_libdir"
10661 found_so
="$additional_libdir/lib$name.$shlibext"
10662 if test -f "$additional_libdir/lib$name.la"; then
10663 found_la
="$additional_libdir/lib$name.la"
10666 if test -f "$additional_libdir/lib$name.$libext"; then
10667 found_dir
="$additional_libdir"
10668 found_a
="$additional_libdir/lib$name.$libext"
10669 if test -f "$additional_libdir/lib$name.la"; then
10670 found_la
="$additional_libdir/lib$name.la"
10675 if test "X$found_dir" = "X"; then
10676 for x
in $LDFLAGS $LTLIBICONV; do
10678 acl_save_prefix
="$prefix"
10679 prefix
="$acl_final_prefix"
10680 acl_save_exec_prefix
="$exec_prefix"
10681 exec_prefix
="$acl_final_exec_prefix"
10683 exec_prefix
="$acl_save_exec_prefix"
10684 prefix
="$acl_save_prefix"
10688 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10689 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10691 found_so
="$dir/lib$name.$shlibext"
10692 if test -f "$dir/lib$name.la"; then
10693 found_la
="$dir/lib$name.la"
10696 if test -f "$dir/lib$name.$libext"; then
10698 found_a
="$dir/lib$name.$libext"
10699 if test -f "$dir/lib$name.la"; then
10700 found_la
="$dir/lib$name.la"
10706 if test "X$found_dir" != "X"; then
10711 if test "X$found_dir" != "X"; then
10712 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10713 if test "X$found_so" != "X"; then
10714 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10715 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10718 for x
in $ltrpathdirs; do
10719 if test "X$x" = "X$found_dir"; then
10724 if test -z "$haveit"; then
10725 ltrpathdirs
="$ltrpathdirs $found_dir"
10727 if test "$hardcode_direct" = yes; then
10728 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10730 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10731 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10733 for x
in $rpathdirs; do
10734 if test "X$x" = "X$found_dir"; then
10739 if test -z "$haveit"; then
10740 rpathdirs
="$rpathdirs $found_dir"
10744 for x
in $LDFLAGS $LIBICONV; do
10746 acl_save_prefix
="$prefix"
10747 prefix
="$acl_final_prefix"
10748 acl_save_exec_prefix
="$exec_prefix"
10749 exec_prefix
="$acl_final_exec_prefix"
10751 exec_prefix
="$acl_save_exec_prefix"
10752 prefix
="$acl_save_prefix"
10754 if test "X$x" = "X-L$found_dir"; then
10759 if test -z "$haveit"; then
10760 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10762 if test "$hardcode_minus_L" != no
; then
10763 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10765 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10771 if test "X$found_a" != "X"; then
10772 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10774 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10777 additional_includedir
=
10778 case "$found_dir" in
10780 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10781 additional_includedir
="$basedir/include"
10784 if test "X$additional_includedir" != "X"; then
10785 if test "X$additional_includedir" != "X/usr/include"; then
10787 if test "X$additional_includedir" = "X/usr/local/include"; then
10788 if test -n "$GCC"; then
10790 linux
*) haveit
=yes;;
10794 if test -z "$haveit"; then
10795 for x
in $CPPFLAGS $INCICONV; do
10797 acl_save_prefix
="$prefix"
10798 prefix
="$acl_final_prefix"
10799 acl_save_exec_prefix
="$exec_prefix"
10800 exec_prefix
="$acl_final_exec_prefix"
10802 exec_prefix
="$acl_save_exec_prefix"
10803 prefix
="$acl_save_prefix"
10805 if test "X$x" = "X-I$additional_includedir"; then
10810 if test -z "$haveit"; then
10811 if test -d "$additional_includedir"; then
10812 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10818 if test -n "$found_la"; then
10819 save_libdir
="$libdir"
10820 case "$found_la" in
10821 */* |
*\\*) .
"$found_la" ;;
10822 *) .
"./$found_la" ;;
10824 libdir
="$save_libdir"
10825 for dep
in $dependency_libs; do
10828 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10829 if test "X$additional_libdir" != "X/usr/lib"; then
10831 if test "X$additional_libdir" = "X/usr/local/lib"; then
10832 if test -n "$GCC"; then
10834 linux
*) haveit
=yes;;
10838 if test -z "$haveit"; then
10840 for x
in $LDFLAGS $LIBICONV; do
10842 acl_save_prefix
="$prefix"
10843 prefix
="$acl_final_prefix"
10844 acl_save_exec_prefix
="$exec_prefix"
10845 exec_prefix
="$acl_final_exec_prefix"
10847 exec_prefix
="$acl_save_exec_prefix"
10848 prefix
="$acl_save_prefix"
10850 if test "X$x" = "X-L$additional_libdir"; then
10855 if test -z "$haveit"; then
10856 if test -d "$additional_libdir"; then
10857 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10861 for x
in $LDFLAGS $LTLIBICONV; do
10863 acl_save_prefix
="$prefix"
10864 prefix
="$acl_final_prefix"
10865 acl_save_exec_prefix
="$exec_prefix"
10866 exec_prefix
="$acl_final_exec_prefix"
10868 exec_prefix
="$acl_save_exec_prefix"
10869 prefix
="$acl_save_prefix"
10871 if test "X$x" = "X-L$additional_libdir"; then
10876 if test -z "$haveit"; then
10877 if test -d "$additional_libdir"; then
10878 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10885 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10886 if test "$enable_rpath" != no
; then
10888 for x
in $rpathdirs; do
10889 if test "X$x" = "X$dir"; then
10894 if test -z "$haveit"; then
10895 rpathdirs
="$rpathdirs $dir"
10898 for x
in $ltrpathdirs; do
10899 if test "X$x" = "X$dir"; then
10904 if test -z "$haveit"; then
10905 ltrpathdirs
="$ltrpathdirs $dir"
10910 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10913 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10916 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10917 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10923 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10924 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10930 if test "X$rpathdirs" != "X"; then
10931 if test -n "$hardcode_libdir_separator"; then
10933 for found_dir
in $rpathdirs; do
10934 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10936 acl_save_libdir
="$libdir"
10938 eval flag
=\"$hardcode_libdir_flag_spec\"
10939 libdir
="$acl_save_libdir"
10940 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10942 for found_dir
in $rpathdirs; do
10943 acl_save_libdir
="$libdir"
10944 libdir
="$found_dir"
10945 eval flag
=\"$hardcode_libdir_flag_spec\"
10946 libdir
="$acl_save_libdir"
10947 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10951 if test "X$ltrpathdirs" != "X"; then
10952 for found_dir
in $ltrpathdirs; do
10953 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10963 am_save_CPPFLAGS
="$CPPFLAGS"
10965 for element
in $INCICONV; do
10967 for x
in $CPPFLAGS; do
10969 acl_save_prefix
="$prefix"
10970 prefix
="$acl_final_prefix"
10971 acl_save_exec_prefix
="$exec_prefix"
10972 exec_prefix
="$acl_final_exec_prefix"
10974 exec_prefix
="$acl_save_exec_prefix"
10975 prefix
="$acl_save_prefix"
10977 if test "X$x" = "X$element"; then
10982 if test -z "$haveit"; then
10983 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10988 echo "$as_me:$LINENO: checking for iconv" >&5
10989 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10990 if test "${am_cv_func_iconv+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 am_cv_func_iconv
="no, consider installing GNU libiconv"
10996 cat >conftest.
$ac_ext <<_ACEOF
10999 cat confdefs.h
>>conftest.
$ac_ext
11000 cat >>conftest.
$ac_ext <<_ACEOF
11001 /* end confdefs.h. */
11002 #include <stdlib.h>
11007 iconv_t cd = iconv_open("","");
11008 iconv(cd,NULL,NULL,NULL,NULL);
11014 rm -f conftest.
$ac_objext conftest
$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016 (eval $ac_link) 2>conftest.er1
11018 grep -v '^ *+' conftest.er1
>conftest.err
11020 cat conftest.err
>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try
='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try
='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 am_cv_func_iconv
=yes
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.
$ac_ext >&5
11042 rm -f conftest.err conftest.
$ac_objext \
11043 conftest
$ac_exeext conftest.
$ac_ext
11044 if test "$am_cv_func_iconv" != yes; then
11045 am_save_LIBS
="$LIBS"
11046 LIBS
="$LIBS $LIBICONV"
11047 cat >conftest.
$ac_ext <<_ACEOF
11050 cat confdefs.h
>>conftest.
$ac_ext
11051 cat >>conftest.
$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 #include <stdlib.h>
11058 iconv_t cd = iconv_open("","");
11059 iconv(cd,NULL,NULL,NULL,NULL);
11065 rm -f conftest.
$ac_objext conftest
$ac_exeext
11066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11067 (eval $ac_link) 2>conftest.er1
11069 grep -v '^ *+' conftest.er1
>conftest.err
11071 cat conftest.err
>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } &&
11074 { ac_try
='test -z "$ac_c_werror_flag"
11075 || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try
='test -s conftest$ac_exeext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 am_cv_lib_iconv
=yes
11088 am_cv_func_iconv
=yes
11090 echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.
$ac_ext >&5
11094 rm -f conftest.err conftest.
$ac_objext \
11095 conftest
$ac_exeext conftest.
$ac_ext
11096 LIBS
="$am_save_LIBS"
11100 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11101 echo "${ECHO_T}$am_cv_func_iconv" >&6
11102 if test "$am_cv_func_iconv" = yes; then
11104 cat >>confdefs.h
<<\_ACEOF
11105 #define HAVE_ICONV 1
11109 if test "$am_cv_lib_iconv" = yes; then
11110 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11111 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11112 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11113 echo "${ECHO_T}$LIBICONV" >&6
11115 CPPFLAGS
="$am_save_CPPFLAGS"
11122 if test "$am_cv_func_iconv" = yes; then
11123 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11124 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11125 if test "${am_cv_proto_iconv+set}" = set; then
11126 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 cat >conftest.
$ac_ext <<_ACEOF
11132 cat confdefs.h
>>conftest.
$ac_ext
11133 cat >>conftest.
$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11136 #include <stdlib.h>
11142 #if defined(__STDC__) || defined(__cplusplus)
11143 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11156 rm -f conftest.
$ac_objext
11157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11158 (eval $ac_compile) 2>conftest.er1
11160 grep -v '^ *+' conftest.er1
>conftest.err
11162 cat conftest.err
>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try
='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try
='test -s conftest.$ac_objext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 am_cv_proto_iconv_arg1
=""
11180 echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.
$ac_ext >&5
11183 am_cv_proto_iconv_arg1
="const"
11185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11186 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);"
11189 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11190 echo "$as_me:$LINENO: result: ${ac_t:-
11191 }$am_cv_proto_iconv" >&5
11192 echo "${ECHO_T}${ac_t:-
11193 }$am_cv_proto_iconv" >&6
11195 cat >>confdefs.h
<<_ACEOF
11196 #define ICONV_CONST $am_cv_proto_iconv_arg1
11201 # Until we have in-tree GNU iconv:
11206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 cat >conftest.
$ac_ext <<_ACEOF
11214 cat confdefs.h
>>conftest.
$ac_ext
11215 cat >>conftest.
$ac_ext <<_ACEOF
11216 /* end confdefs.h. */
11217 #include <locale.h>
11226 rm -f conftest.
$ac_objext conftest
$ac_exeext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11228 (eval $ac_link) 2>conftest.er1
11230 grep -v '^ *+' conftest.er1
>conftest.err
11232 cat conftest.err
>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } &&
11235 { ac_try
='test -z "$ac_c_werror_flag"
11236 || test ! -s conftest.err'
11237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238 (eval $ac_try) 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; } &&
11242 { ac_try
='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 am_cv_val_LC_MESSAGES
=yes
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.
$ac_ext >&5
11253 am_cv_val_LC_MESSAGES
=no
11255 rm -f conftest.err conftest.
$ac_objext \
11256 conftest
$ac_exeext conftest.
$ac_ext
11258 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11259 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11260 if test $am_cv_val_LC_MESSAGES = yes; then
11262 cat >>confdefs.h
<<\_ACEOF
11263 #define HAVE_LC_MESSAGES 1
11270 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11271 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11272 if test "${am_cv_langinfo_codeset+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 cat >conftest.
$ac_ext <<_ACEOF
11278 cat confdefs.h
>>conftest.
$ac_ext
11279 cat >>conftest.
$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <langinfo.h>
11285 char* cs = nl_langinfo(CODESET);
11290 rm -f conftest.
$ac_objext conftest
$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1
>conftest.err
11296 cat conftest.err
>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try
='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try
='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 am_cv_langinfo_codeset
=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.
$ac_ext >&5
11317 am_cv_langinfo_codeset
=no
11319 rm -f conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11323 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11324 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11325 if test $am_cv_langinfo_codeset = yes; then
11327 cat >>confdefs.h
<<\_ACEOF
11328 #define HAVE_LANGINFO_CODESET 1
11334 # We will need to find libiberty.h and ansidecl.h
11335 saved_CFLAGS
="$CFLAGS"
11336 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11376 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11377 strsignal strstr strverscmp \
11378 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11379 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
11381 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11382 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11383 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11384 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.
$ac_ext <<_ACEOF
11390 cat confdefs.h
>>conftest.
$ac_ext
11391 cat >>conftest.
$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11394 #define $ac_tr_decl 1
11396 #include "ansidecl.h"
11397 #include "system.h"
11403 char *(*pfn) = (char *(*)) $ac_func ;
11409 rm -f conftest.
$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1
>conftest.err
11415 cat conftest.err
>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try
='test -z "$ac_c_werror_flag"
11419 || test ! -s conftest.err'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try
='test -s conftest.$ac_objext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 eval "gcc_cv_have_decl_$ac_func=yes"
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.
$ac_ext >&5
11436 eval "gcc_cv_have_decl_$ac_func=no"
11438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11442 echo "$as_me:$LINENO: result: yes" >&5
11443 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11444 #define $ac_tr_decl 1
11448 echo "$as_me:$LINENO: result: no" >&5
11449 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11450 #define $ac_tr_decl 0
11461 for ac_func
in getrlimit setrlimit getrusage
11463 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11464 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11465 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11466 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11467 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 cat >conftest.
$ac_ext <<_ACEOF
11472 cat confdefs.h
>>conftest.
$ac_ext
11473 cat >>conftest.
$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11476 #define $ac_tr_decl 1
11478 #include "ansidecl.h"
11479 #include "system.h"
11480 #ifdef HAVE_SYS_RESOURCE_H
11481 #include <sys/resource.h>
11489 char *(*pfn) = (char *(*)) $ac_func ;
11495 rm -f conftest.
$ac_objext
11496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11499 grep -v '^ *+' conftest.er1
>conftest.err
11501 cat conftest.err
>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try
='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try
='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 eval "gcc_cv_have_decl_$ac_func=yes"
11519 echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.
$ac_ext >&5
11522 eval "gcc_cv_have_decl_$ac_func=no"
11524 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11527 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11528 echo "$as_me:$LINENO: result: yes" >&5
11529 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11530 #define $ac_tr_decl 1
11534 echo "$as_me:$LINENO: result: no" >&5
11535 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11536 #define $ac_tr_decl 0
11544 cat >conftest.
$ac_ext <<_ACEOF
11547 cat confdefs.h
>>conftest.
$ac_ext
11548 cat >>conftest.
$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11551 #include "ansidecl.h"
11552 #include "system.h"
11553 #ifdef HAVE_SYS_RESOURCE_H
11554 #include <sys/resource.h>
11565 rm -f conftest.
$ac_objext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11567 (eval $ac_compile) 2>conftest.er1
11569 grep -v '^ *+' conftest.er1
>conftest.err
11571 cat conftest.err
>&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try
='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try
='test -s conftest.$ac_objext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.
$ac_ext >&5
11593 cat >>confdefs.h
<<\_ACEOF
11594 #define rlim_t long
11598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11600 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11601 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11602 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11603 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11605 for ac_func
in ldgetname
11607 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11608 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11609 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11610 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 cat >conftest.
$ac_ext <<_ACEOF
11616 cat confdefs.h
>>conftest.
$ac_ext
11617 cat >>conftest.
$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11620 #define $ac_tr_decl 1
11622 #include "ansidecl.h"
11623 #include "system.h"
11624 #ifdef HAVE_LDFCN_H
11635 char *(*pfn) = (char *(*)) $ac_func ;
11641 rm -f conftest.
$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>conftest.er1
11645 grep -v '^ *+' conftest.er1
>conftest.err
11647 cat conftest.err
>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
11650 { ac_try
='test -z "$ac_c_werror_flag"
11651 || test ! -s conftest.err'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try
='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 eval "gcc_cv_have_decl_$ac_func=yes"
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.
$ac_ext >&5
11668 eval "gcc_cv_have_decl_$ac_func=no"
11670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11673 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11674 echo "$as_me:$LINENO: result: yes" >&5
11675 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11676 #define $ac_tr_decl 1
11680 echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11682 #define $ac_tr_decl 0
11691 for ac_func
in times
11693 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11694 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11695 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11696 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 cat >conftest.
$ac_ext <<_ACEOF
11702 cat confdefs.h
>>conftest.
$ac_ext
11703 cat >>conftest.
$ac_ext <<_ACEOF
11704 /* end confdefs.h. */
11706 #define $ac_tr_decl 1
11708 #include "ansidecl.h"
11709 #include "system.h"
11710 #ifdef HAVE_SYS_TIMES_H
11711 #include <sys/times.h>
11719 char *(*pfn) = (char *(*)) $ac_func ;
11725 rm -f conftest.
$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727 (eval $ac_compile) 2>conftest.er1
11729 grep -v '^ *+' conftest.er1
>conftest.err
11731 cat conftest.err
>&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try
='test -z "$ac_c_werror_flag"
11735 || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try
='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 eval "gcc_cv_have_decl_$ac_func=yes"
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.
$ac_ext >&5
11752 eval "gcc_cv_have_decl_$ac_func=no"
11754 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11757 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11758 echo "$as_me:$LINENO: result: yes" >&5
11759 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11760 #define $ac_tr_decl 1
11764 echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11766 #define $ac_tr_decl 0
11775 for ac_func
in sigaltstack
11777 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11778 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11779 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11780 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11783 cat >conftest.
$ac_ext <<_ACEOF
11786 cat confdefs.h
>>conftest.
$ac_ext
11787 cat >>conftest.
$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11790 #define $ac_tr_decl 1
11792 #include "ansidecl.h"
11793 #include "system.h"
11794 #include <signal.h>
11801 char *(*pfn) = (char *(*)) $ac_func ;
11807 rm -f conftest.
$ac_objext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11811 grep -v '^ *+' conftest.er1
>conftest.err
11813 cat conftest.err
>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try
='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try
='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
11829 eval "gcc_cv_have_decl_$ac_func=yes"
11831 echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.
$ac_ext >&5
11834 eval "gcc_cv_have_decl_$ac_func=no"
11836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11840 echo "$as_me:$LINENO: result: yes" >&5
11841 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11842 #define $ac_tr_decl 1
11846 echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11848 #define $ac_tr_decl 0
11856 # More time-related stuff.
11857 echo "$as_me:$LINENO: checking for struct tms" >&5
11858 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11859 if test "${ac_cv_struct_tms+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.
$ac_ext <<_ACEOF
11866 cat confdefs.h
>>conftest.
$ac_ext
11867 cat >>conftest.
$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11870 #include "ansidecl.h"
11871 #include "system.h"
11872 #ifdef HAVE_SYS_TIMES_H
11873 #include <sys/times.h>
11884 rm -f conftest.
$ac_objext
11885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11886 (eval $ac_compile) 2>conftest.er1
11888 grep -v '^ *+' conftest.er1
>conftest.err
11890 cat conftest.err
>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try
='test -z "$ac_c_werror_flag"
11894 || test ! -s conftest.err'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; } &&
11900 { ac_try
='test -s conftest.$ac_objext'
11901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902 (eval $ac_try) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); }; }; then
11906 ac_cv_struct_tms
=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.
$ac_ext >&5
11911 ac_cv_struct_tms
=no
11913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11915 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11916 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11917 if test $ac_cv_struct_tms = yes; then
11919 cat >>confdefs.h
<<\_ACEOF
11920 #define HAVE_STRUCT_TMS 1
11925 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11926 # revisit after autoconf 2.50.
11927 echo "$as_me:$LINENO: checking for clock_t" >&5
11928 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11929 if test "${gcc_cv_type_clock_t+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 cat >conftest.
$ac_ext <<_ACEOF
11936 cat confdefs.h
>>conftest.
$ac_ext
11937 cat >>conftest.
$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11940 #include "ansidecl.h"
11941 #include "system.h"
11951 rm -f conftest.
$ac_objext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11953 (eval $ac_compile) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1
>conftest.err
11957 cat conftest.err
>&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try
='test -z "$ac_c_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try
='test -s conftest.$ac_objext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11973 gcc_cv_type_clock_t
=yes
11975 echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.
$ac_ext >&5
11978 gcc_cv_type_clock_t
=no
11980 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11982 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11983 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11984 if test $gcc_cv_type_clock_t = yes; then
11986 cat >>confdefs.h
<<\_ACEOF
11987 #define HAVE_CLOCK_T 1
11992 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11993 CFLAGS
="$saved_CFLAGS"
11995 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11996 if test "${enable_initfini_array+set}" = set; then
11997 enableval
="$enable_initfini_array"
12001 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12002 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12003 if test "${gcc_cv_initfini_array+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 if test "$cross_compiling" = yes; then
12007 gcc_cv_initfini_array
=no
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12017 int main (void) { return x; }
12018 int foo (void) { x = 0; }
12019 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12021 rm -f conftest
$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 gcc_cv_initfini_array
=yes
12034 echo "$as_me: program exited with status $ac_status" >&5
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.
$ac_ext >&5
12038 ( exit $ac_status )
12039 gcc_cv_initfini_array
=no
12041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12044 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12045 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12046 enable_initfini_array
=$gcc_cv_initfini_array
12049 if test $enable_initfini_array = yes; then
12051 cat >>confdefs.h
<<\_ACEOF
12052 #define HAVE_INITFINI_ARRAY 1
12057 # mkdir takes a single argument on some systems.
12058 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12059 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12060 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12061 echo $ECHO_N "(cached) $ECHO_C" >&6
12063 cat >conftest.
$ac_ext <<_ACEOF
12066 cat confdefs.h
>>conftest.
$ac_ext
12067 cat >>conftest.
$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12070 #include <sys/types.h>
12071 #ifdef HAVE_SYS_STAT_H
12072 # include <sys/stat.h>
12074 #ifdef HAVE_UNISTD_H
12075 # include <unistd.h>
12077 #ifdef HAVE_DIRECT_H
12078 # include <direct.h>
12088 rm -f conftest.
$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1
>conftest.err
12094 cat conftest.err
>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try
='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try
='test -s conftest.$ac_objext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 gcc_cv_mkdir_takes_one_arg
=no
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.
$ac_ext >&5
12115 gcc_cv_mkdir_takes_one_arg
=yes
12117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12119 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12120 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12121 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12123 cat >>confdefs.h
<<\_ACEOF
12124 #define MKDIR_TAKES_ONE_ARG 1
12136 # With Setjmp/Longjmp based exception handling.
12137 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12138 if test "${enable_sjlj_exceptions+set}" = set; then
12139 enableval
="$enable_sjlj_exceptions"
12140 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12142 cat >>confdefs.h
<<_ACEOF
12143 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12148 # For platforms with the unwind ABI which includes an unwind library,
12149 # libunwind, we can choose to use the system libunwind.
12151 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12152 if test "${with_system_libunwind+set}" = set; then
12153 withval
="$with_system_libunwind"
12157 # --------------------------------------------------------
12158 # Build, host, and target specific configuration fragments
12159 # --------------------------------------------------------
12161 # Collect build-machine-specific information.
12162 .
${srcdir}/config.build
12164 # Collect host-machine-specific information.
12165 .
${srcdir}/config.
host
12169 # Collect target-machine-specific information.
12170 .
${srcdir}/config.gcc
12172 extra_objs
="${host_extra_objs} ${extra_objs}"
12173 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12175 # Default the target-machine variables that were not explicitly set.
12176 if test x
"$tm_file" = x
12177 then tm_file
=$cpu_type/$cpu_type.h
; fi
12179 if test x
"$extra_headers" = x
12180 then extra_headers
=; fi
12182 if test x
$md_file = x
12183 then md_file
=$cpu_type/$cpu_type.md
; fi
12185 if test x
$out_file = x
12186 then out_file
=$cpu_type/$cpu_type.c
; fi
12188 if test x
"$tmake_file" = x
12189 then tmake_file
=$cpu_type/t-
$cpu_type
12192 if test x
"$dwarf2" = xyes
12193 then tm_file
="$tm_file tm-dwarf2.h"
12196 # Say what files are being used for the output code and MD file.
12197 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12198 echo "Using \`$srcdir/config/$md_file' as machine description file."
12200 # If any of the xm_file variables contain nonexistent files, warn
12201 # about them and drop them.
12204 for x
in $build_xm_file; do
12205 if test -f $srcdir/config
/$x
12207 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12208 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12211 build_xm_file
="$bx"
12214 for x
in $host_xm_file; do
12215 if test -f $srcdir/config
/$x
12217 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12218 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12224 for x
in $xm_file; do
12225 if test -f $srcdir/config
/$x
12227 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12228 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12234 for f
in $tm_file; do
12237 if test $count = ax
; then
12238 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12240 echo "Using the following target machine macro files:"
12241 for f
in $tm_file; do
12242 echo " $srcdir/config/$f"
12246 if test x
$need_64bit_hwint = xyes
; then
12248 cat >>confdefs.h
<<\_ACEOF
12249 #define NEED_64BIT_HOST_WIDE_INT 1
12254 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12256 cat >>confdefs.h
<<\_ACEOF
12257 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12263 for f
in $host_xm_file; do
12266 if test $count = a
; then
12268 elif test $count = ax
; then
12269 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12271 echo "Using the following host machine macro files:"
12272 for f
in $host_xm_file; do
12273 echo " $srcdir/config/$f"
12276 echo "Using ${out_host_hook_obj} for host machine hooks."
12278 if test "$host_xm_file" != "$build_xm_file"; then
12280 for f
in $build_xm_file; do
12283 if test $count = a
; then
12285 elif test $count = ax
; then
12286 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12288 echo "Using the following build machine macro files:"
12289 for f
in $build_xm_file; do
12290 echo " $srcdir/config/$f"
12297 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12298 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12299 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 cat >conftest.
$ac_ext <<_ACEOF
12304 #include <sys/signal.h>
12305 #include <ucontext.h>
12306 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12309 rm -f conftest.
$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311 (eval $ac_compile) 2>conftest.er1
12313 grep -v '^ *+' conftest.er1
>conftest.err
12315 cat conftest.err
>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } &&
12318 { ac_try
='test -z "$ac_c_werror_flag"
12319 || test ! -s conftest.err'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; } &&
12325 { ac_try
='test -s conftest.$ac_objext'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; }; then
12331 gcc_cv_mcontext_underscores
=no
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.
$ac_ext >&5
12336 gcc_cv_mcontext_underscores
=yes
12338 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12340 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12341 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12342 if test $gcc_cv_mcontext_underscores = yes; then
12344 cat >>confdefs.h
<<\_ACEOF
12345 #define HAS_MCONTEXT_T_UNDERSCORES
12356 # Check if a valid thread package
12357 case ${enable_threads} in
12360 target_thread_file
='single'
12364 target_thread_file
='single'
12366 aix | dce | gnat | irix | posix | posix95 | rtems | \
12367 single | solaris | vxworks | win32
)
12368 target_thread_file
=${enable_threads}
12371 echo "${enable_threads} is an unknown thread package" 1>&2
12376 if test x
${thread_file} = x
; then
12377 # No thread file set by target-specific clauses in config.gcc,
12378 # so use file chosen by default logic above
12379 thread_file
=${target_thread_file}
12382 # Make gthr-default.h if we have a thread file.
12384 if test $thread_file != single
; then
12385 rm -f gthr-default.h
12386 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12387 gthread_flags
=-DHAVE_GTHR_DEFAULT
12396 if test x
$enable___cxa_atexit = xyes || \
12397 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12398 if test x
$host = x
$target; then
12399 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12400 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12401 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 cat >conftest.
$ac_ext <<_ACEOF
12407 cat confdefs.h
>>conftest.
$ac_ext
12408 cat >>conftest.
$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12412 #define __cxa_atexit innocuous___cxa_atexit
12414 /* System header to define __stub macros and hopefully few prototypes,
12415 which can conflict with char __cxa_atexit (); below.
12416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417 <limits.h> exists even on freestanding compilers. */
12420 # include <limits.h>
12422 # include <assert.h>
12425 #undef __cxa_atexit
12427 /* Override any gcc2 internal prototype to avoid an error. */
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12434 char __cxa_atexit ();
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12441 char (*f) () = __cxa_atexit;
12450 return f != __cxa_atexit;
12455 rm -f conftest.
$ac_objext conftest
$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>conftest.er1
12459 grep -v '^ *+' conftest.er1
>conftest.err
12461 cat conftest.err
>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try
='test -z "$ac_c_werror_flag"
12465 || test ! -s conftest.err'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try
='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_func___cxa_atexit
=yes
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.
$ac_ext >&5
12482 ac_cv_func___cxa_atexit
=no
12484 rm -f conftest.err conftest.
$ac_objext \
12485 conftest
$ac_exeext conftest.
$ac_ext
12487 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12488 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12489 if test $ac_cv_func___cxa_atexit = yes; then
12492 echo "__cxa_atexit can't be enabled on this target"
12496 # We can't check for __cxa_atexit when building a cross, so assume
12500 if test x
$use_cxa_atexit = xyes
; then
12502 cat >>confdefs.h
<<\_ACEOF
12503 #define DEFAULT_USE_CXA_ATEXIT 2
12509 # Look for a file containing extra machine modes.
12510 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12511 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12514 cat >>confdefs.h
<<_ACEOF
12515 #define EXTRA_MODES_FILE "config/$extra_modes"
12520 # Convert extra_options into a form suitable for Makefile use.
12522 for f
in $extra_options; do
12523 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12527 # auto-host.h is the file containing items generated by autoconf and is
12528 # the first file included by config.h.
12529 # If host=build, it is correct to have bconfig include auto-host.h
12530 # as well. If host!=build, we are in error and need to do more
12531 # work to find out the build config parameters.
12532 if test x
$host = x
$build
12534 build_auto
=auto-host.h
12536 # We create a subdir, then run autoconf in the subdir.
12537 # To prevent recursion we set host and build for the new
12538 # invocation of configure to the build for this invocation
12545 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12546 *) realsrcdir
=..
/${srcdir};;
12548 saved_CFLAGS
="${CFLAGS}"
12549 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12550 ${realsrcdir}/configure \
12551 --enable-languages=${enable_languages-all} \
12552 --target=$target_alias --host=$build_alias --build=$build_alias
12553 CFLAGS
="${saved_CFLAGS}"
12555 # We just finished tests for the build machine, so rename
12556 # the file auto-build.h in the gcc directory.
12557 mv auto-host.h ..
/auto-build.h
12560 build_auto
=auto-build.h
12564 tm_file
="${tm_file} defaults.h"
12565 tm_p_file
="${tm_p_file} tm-preds.h"
12566 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12567 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12568 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12569 # put this back in temporarily.
12570 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12576 # Compile in configure arguments.
12577 if test -f configargs.h
; then
12578 # Being re-configured.
12579 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12580 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12582 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12585 # Double all backslashes and backslash all quotes to turn
12586 # gcc_config_arguments into a C string.
12587 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12588 $gcc_config_arguments
12590 gcc_config_arguments_str
=`cat conftest.out`
12593 cat > configargs.h
<<EOF
12594 /* Generated automatically. */
12595 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12596 static const char thread_model[] = "$thread_file";
12598 static const struct {
12599 const char *name, *value;
12600 } configure_default_options[] = $configure_default_options;
12603 # Internationalization
12604 # If we haven't got the data from the intl directory,
12605 # assume NLS is disabled.
12614 if test -f ..
/intl
/config.intl
; then
12615 . ..
/intl
/config.intl
12617 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12618 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12619 if test x
"$USE_NLS" != xyes
; then
12620 echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12623 echo "$as_me:$LINENO: result: yes" >&5
12624 echo "${ECHO_T}yes" >&6
12626 cat >>confdefs.h
<<\_ACEOF
12627 #define ENABLE_NLS 1
12631 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12632 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12633 # Look for .po and .gmo files in the source directory.
12636 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12637 # If there aren't any .gmo files the shell will give us the
12638 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12640 case "$cat" in *\
**)
12643 # The quadruple backslash is collapsed to a double backslash
12644 # by the backticks, then collapsed again by the double quotes,
12645 # leaving us with one backslash in the sed expression (right
12646 # before the dot that mustn't act as a wildcard).
12647 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12648 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12649 # The user is allowed to set LINGUAS to a list of languages to
12650 # install catalogs for. If it's empty that means "all of them."
12651 if test "x$LINGUAS" = x
; then
12652 CATALOGS
="$CATALOGS $cat"
12653 XLINGUAS
="$XLINGUAS $lang"
12655 case "$LINGUAS" in *$lang*)
12656 CATALOGS
="$CATALOGS $cat"
12657 XLINGUAS
="$XLINGUAS $lang"
12662 LINGUAS
="$XLINGUAS"
12663 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12664 echo "${ECHO_T}$LINGUAS" >&6
12677 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12678 # -liconv on the link line twice.
12679 case "$LIBINTL" in *$LIBICONV*)
12683 # Check whether --enable-secureplt or --disable-secureplt was given.
12684 if test "${enable_secureplt+set}" = set; then
12685 enableval
="$enable_secureplt"
12689 # Windows32 Registry support for specifying GCC installation paths.
12690 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12691 if test "${enable_win32_registry+set}" = set; then
12692 enableval
="$enable_win32_registry"
12697 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12698 if test "x$enable_win32_registry" != xno
; then
12699 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12700 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12701 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 ac_func_search_save_LIBS
=$LIBS
12705 ac_cv_search_RegOpenKeyExA
=no
12706 cat >conftest.
$ac_ext <<_ACEOF
12709 cat confdefs.h
>>conftest.
$ac_ext
12710 cat >>conftest.
$ac_ext <<_ACEOF
12711 /* end confdefs.h. */
12713 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12719 char RegOpenKeyExA ();
12728 rm -f conftest.
$ac_objext conftest
$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>conftest.er1
12732 grep -v '^ *+' conftest.er1
>conftest.err
12734 cat conftest.err
>&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try
='test -z "$ac_c_werror_flag"
12738 || test ! -s conftest.err'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try
='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_search_RegOpenKeyExA
="none required"
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.
$ac_ext >&5
12756 rm -f conftest.err conftest.
$ac_objext \
12757 conftest
$ac_exeext conftest.
$ac_ext
12758 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12759 for ac_lib
in advapi32
; do
12760 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12761 cat >conftest.
$ac_ext <<_ACEOF
12764 cat confdefs.h
>>conftest.
$ac_ext
12765 cat >>conftest.
$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12774 char RegOpenKeyExA ();
12783 rm -f conftest.
$ac_objext conftest
$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>conftest.er1
12787 grep -v '^ *+' conftest.er1
>conftest.err
12789 cat conftest.err
>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try
='test -z "$ac_c_werror_flag"
12793 || test ! -s conftest.err'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try
='test -s conftest$ac_exeext'
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.
$ac_ext >&5
12812 rm -f conftest.err conftest.
$ac_objext \
12813 conftest
$ac_exeext conftest.
$ac_ext
12816 LIBS
=$ac_func_search_save_LIBS
12818 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12819 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12820 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12821 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12824 enable_win32_registry
=no
12829 if test "x$enable_win32_registry" != xno
; then
12831 cat >>confdefs.h
<<\_ACEOF
12832 #define ENABLE_WIN32_REGISTRY 1
12836 if test "x$enable_win32_registry" != xyes \
12837 && test "x$enable_win32_registry" != x
; then
12839 cat >>confdefs.h
<<_ACEOF
12840 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12848 # Get an absolute path to the GCC top-level source directory
12849 holddir
=`${PWDCMD-pwd}`
12851 topdir
=`${PWDCMD-pwd}`
12854 # Conditionalize the makefile for this host machine.
12856 for f
in ${host_xmake_file}
12858 if test -f ${srcdir}/config
/$f
12860 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12864 # Conditionalize the makefile for this target machine.
12866 for f
in ${tmake_file}
12868 if test -f ${srcdir}/config
/$f
12870 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12873 tmake_file
="${tmake_file_}"
12875 # If the host doesn't support symlinks, modify CC in
12876 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12877 # Otherwise, we can use "CC=$(CC)".
12881 cc_set_by_configure
="\$(CC)"
12882 quoted_cc_set_by_configure
="\$(CC)"
12883 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12884 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12887 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12888 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12889 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12890 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12894 # This is a terrible hack which will go away some day.
12895 host_cc_for_libada
=${CC}
12898 out_object_file
=`basename $out_file .c`.o
12900 tm_file_list
="options.h"
12901 tm_include_list
="options.h"
12902 for f
in $tm_file; do
12905 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12906 tm_include_list
="${tm_include_list} $f"
12909 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12910 tm_include_list
="${tm_include_list} config/$f"
12917 for f
in $tm_p_file; do
12920 tm_p_file_list
="${tm_p_file_list} $f"
12921 tm_p_include_list
="${tm_p_include_list} $f"
12924 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12925 tm_p_include_list
="${tm_p_include_list} config/$f"
12931 for f
in $xm_file; do
12934 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12935 xm_include_list
="${xm_include_list} $f"
12938 xm_file_list
="${xm_file_list} $f"
12939 xm_include_list
="${xm_include_list} $f"
12942 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12943 xm_include_list
="${xm_include_list} config/$f"
12949 host_xm_include_list
=
12950 for f
in $host_xm_file; do
12953 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12954 host_xm_include_list
="${host_xm_include_list} $f"
12957 host_xm_file_list
="${host_xm_file_list} $f"
12958 host_xm_include_list
="${host_xm_include_list} $f"
12961 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12962 host_xm_include_list
="${host_xm_include_list} config/$f"
12967 build_xm_file_list
=
12968 for f
in $build_xm_file; do
12971 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12972 build_xm_include_list
="${build_xm_include_list} $f"
12974 auto-build.h | auto-host.h
)
12975 build_xm_file_list
="${build_xm_file_list} $f"
12976 build_xm_include_list
="${build_xm_include_list} $f"
12979 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12980 build_xm_include_list
="${build_xm_include_list} config/$f"
12985 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12986 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12989 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12991 if test "x$with_build_sysroot" != x
; then
12992 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12994 # This value is used, even on a native system, because
12995 # CROSS_SYSTEM_HEADER_DIR is just
12996 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12997 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13000 if test x
$host != x
$target
13002 CROSS
="-DCROSS_COMPILE"
13004 SYSTEM_HEADER_DIR
=$build_system_header_dir
13005 case "$host","$target" in
13006 # Darwin crosses can use the host system's libraries and headers,
13007 # because of the fat library support. Of course, it must be the
13008 # same version of Darwin on both sides. Allow the user to
13009 # just say --target=foo-darwin without a version number to mean
13010 # "the version on this system".
13011 *-*-darwin*,*-*-darwin*)
13012 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13013 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13014 if test $hostos = $targetos -o $targetos = darwin
; then
13016 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13021 i?
86-*-*,x86_64-
*-* \
13022 | powerpc
*-*-*,powerpc64
*-*-*)
13023 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13025 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13026 SYSTEM_HEADER_DIR
=$build_system_header_dir
13029 # If this is a cross-compiler that does not
13030 # have its own set of headers then define
13033 # If this is using newlib, without having the headers available now,
13034 # then define inhibit_libc in LIBGCC2_CFLAGS.
13035 # This prevents libgcc2 from containing any code which requires libc
13038 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13039 test x
$with_newlib = xyes
; } &&
13040 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13045 # When building gcc with a cross-compiler, we need to adjust things so
13046 # that the generator programs are still built with the native compiler.
13047 # Also, we cannot run fixincludes or fix-header.
13049 # These are the normal (build=host) settings:
13050 CC_FOR_BUILD
='$(CC)'
13051 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13052 STMP_FIXINC
=stmp-fixinc
13054 # Possibly disable fixproto, on a per-target basis.
13055 case ${use_fixproto} in
13060 STMP_FIXPROTO
=stmp-fixproto
13065 # And these apply if build != host, or we are generating coverage data
13066 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13068 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13070 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13071 if test "x$STMP_FIXPROTO" != x
; then
13072 STMP_FIXPROTO
=stmp-install-fixproto
13077 # Expand extra_headers to include complete path.
13078 # This substitutes for lots of t-* files.
13079 extra_headers_list
=
13080 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13081 for file in ${extra_headers} ; do
13082 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13085 # Define collect2 in Makefile.
13086 case $host_can_use_collect2 in
13088 *) collect2
='collect2$(exeext)' ;;
13092 # Add a definition of USE_COLLECT2 if system wants one.
13093 case $use_collect2 in
13094 no
) use_collect2
= ;;
13097 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13098 xm_defines
="${xm_defines} USE_COLLECT2"
13099 case $host_can_use_collect2 in
13101 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13102 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13103 { (exit 1); exit 1; }; }
13109 # ---------------------------
13110 # Assembler & linker features
13111 # ---------------------------
13113 # Identify the assembler which will work hand-in-glove with the newly
13114 # built GCC, so that we can examine its features. This is the assembler
13115 # which will be driven by the driver program.
13117 # If build != host, and we aren't building gas in-tree, we identify a
13118 # build->target assembler and hope that it will have the same features
13119 # as the host->target assembler we'll be using.
13120 gcc_cv_gas_major_version
=
13121 gcc_cv_gas_minor_version
=
13122 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13124 if test "${gcc_cv_as+set}" = set; then
13128 if test -x "$DEFAULT_ASSEMBLER"; then
13129 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13130 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13131 && test -f ..
/gas
/Makefile \
13132 && test x
$build = x
$host; then
13133 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13134 elif test -x as
$build_exeext; then
13135 # Build using assembler in the current directory.
13136 gcc_cv_as
=.
/as
$build_exeext
13137 elif test -x $AS_FOR_TARGET; then
13138 gcc_cv_as
="$AS_FOR_TARGET"
13140 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13141 set dummy
$AS_FOR_TARGET; ac_word
=$2
13142 echo "$as_me:$LINENO: checking for $ac_word" >&5
13143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13144 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13153 for as_dir
in $PATH
13156 test -z "$as_dir" && as_dir
=.
13157 for ac_exec_ext
in '' $ac_executable_extensions; do
13158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13159 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13171 if test -n "$gcc_cv_as"; then
13172 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13173 echo "${ECHO_T}$gcc_cv_as" >&6
13175 echo "$as_me:$LINENO: result: no" >&5
13176 echo "${ECHO_T}no" >&6
13183 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13186 echo "$as_me:$LINENO: checking what assembler to use" >&5
13187 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13188 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13189 # Single tree build which includes gas. We want to prefer it
13190 # over whatever linker top-level may have detected, since
13191 # we'll use what we're building after installation anyway.
13192 echo "$as_me:$LINENO: result: newly built gas" >&5
13193 echo "${ECHO_T}newly built gas" >&6
13195 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13196 for f
in $gcc_cv_as_bfd_srcdir/configure \
13197 $gcc_cv_as_gas_srcdir/configure \
13198 $gcc_cv_as_gas_srcdir/configure.
in \
13199 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13200 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13201 if test x
$gcc_cv_gas_version != x
; then
13205 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13206 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13207 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13208 case $gcc_cv_gas_patch_version in
13209 "") gcc_cv_gas_patch_version
="0" ;;
13211 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13212 + $gcc_cv_gas_minor_version \) \* 1000 \
13213 + $gcc_cv_gas_patch_version`
13215 in_tree_gas_is_elf
=no
13216 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13217 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13218 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13220 in_tree_gas_is_elf
=yes
13223 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13224 echo "${ECHO_T}$gcc_cv_as" >&6
13228 # Identify the linker which will work hand-in-glove with the newly
13229 # built GCC, so that we can examine its features. This is the linker
13230 # which will be driven by the driver program.
13232 # If build != host, and we aren't building gas in-tree, we identify a
13233 # build->target linker and hope that it will have the same features
13234 # as the host->target linker we'll be using.
13235 gcc_cv_gld_major_version
=
13236 gcc_cv_gld_minor_version
=
13237 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13238 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13240 if test "${gcc_cv_ld+set}" = set; then
13244 if test -x "$DEFAULT_LINKER"; then
13245 gcc_cv_ld
="$DEFAULT_LINKER"
13246 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13247 && test -f ..
/ld
/Makefile \
13248 && test x
$build = x
$host; then
13249 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13250 elif test -x collect-ld
$build_exeext; then
13251 # Build using linker in the current directory.
13252 gcc_cv_ld
=.
/collect-ld
$build_exeext
13253 elif test -x $LD_FOR_TARGET; then
13254 gcc_cv_ld
="$LD_FOR_TARGET"
13256 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13257 set dummy
$LD_FOR_TARGET; ac_word
=$2
13258 echo "$as_me:$LINENO: checking for $ac_word" >&5
13259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13260 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13265 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13269 for as_dir
in $PATH
13272 test -z "$as_dir" && as_dir
=.
13273 for ac_exec_ext
in '' $ac_executable_extensions; do
13274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13285 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13287 if test -n "$gcc_cv_ld"; then
13288 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13289 echo "${ECHO_T}$gcc_cv_ld" >&6
13291 echo "$as_me:$LINENO: result: no" >&5
13292 echo "${ECHO_T}no" >&6
13299 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13302 echo "$as_me:$LINENO: checking what linker to use" >&5
13303 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13304 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13305 # Single tree build which includes ld. We want to prefer it
13306 # over whatever linker top-level may have detected, since
13307 # we'll use what we're building after installation anyway.
13308 echo "$as_me:$LINENO: result: newly built ld" >&5
13309 echo "${ECHO_T}newly built ld" >&6
13311 in_tree_ld_is_elf
=no
13312 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13313 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13314 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13315 in_tree_ld_is_elf
=yes
13317 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
13319 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13320 if test x
$gcc_cv_gld_version != x
; then
13324 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13325 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13327 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13328 echo "${ECHO_T}$gcc_cv_ld" >&6
13332 # Figure out what nm we will be using.
13333 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13334 if test "${gcc_cv_nm+set}" = set; then
13338 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13339 && test -f ..
/binutils
/Makefile \
13340 && test x
$build = x
$host; then
13341 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13342 elif test -x nm
$build_exeext; then
13343 gcc_cv_nm
=.
/nm
$build_exeext
13344 elif test -x $NM_FOR_TARGET; then
13345 gcc_cv_nm
="$NM_FOR_TARGET"
13347 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13348 set dummy
$NM_FOR_TARGET; ac_word
=$2
13349 echo "$as_me:$LINENO: checking for $ac_word" >&5
13350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13351 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13360 for as_dir
in $PATH
13363 test -z "$as_dir" && as_dir
=.
13364 for ac_exec_ext
in '' $ac_executable_extensions; do
13365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13376 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13378 if test -n "$gcc_cv_nm"; then
13379 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13380 echo "${ECHO_T}$gcc_cv_nm" >&6
13382 echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6
13390 echo "$as_me:$LINENO: checking what nm to use" >&5
13391 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13392 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13393 # Single tree build which includes binutils.
13394 echo "$as_me:$LINENO: result: newly built nm" >&5
13395 echo "${ECHO_T}newly built nm" >&6
13398 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13399 echo "${ECHO_T}$gcc_cv_nm" >&6
13403 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13406 # Figure out what objdump we will be using.
13407 if test "${gcc_cv_objdump+set}" = set; then
13411 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13412 && test -f ..
/binutils
/Makefile \
13413 && test x
$build = x
$host; then
13414 # Single tree build which includes binutils.
13415 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13416 elif test -x objdump
$build_exeext; then
13417 gcc_cv_objdump
=.
/objdump
$build_exeext
13418 elif test -x $OBJDUMP_FOR_TARGET; then
13419 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13421 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13422 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13423 echo "$as_me:$LINENO: checking for $ac_word" >&5
13424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13425 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 case $gcc_cv_objdump in
13430 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13434 for as_dir
in $PATH
13437 test -z "$as_dir" && as_dir
=.
13438 for ac_exec_ext
in '' $ac_executable_extensions; do
13439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13450 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13452 if test -n "$gcc_cv_objdump"; then
13453 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13454 echo "${ECHO_T}$gcc_cv_objdump" >&6
13456 echo "$as_me:$LINENO: result: no" >&5
13457 echo "${ECHO_T}no" >&6
13464 echo "$as_me:$LINENO: checking what objdump to use" >&5
13465 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13466 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13467 # Single tree build which includes binutils.
13468 echo "$as_me:$LINENO: result: newly built objdump" >&5
13469 echo "${ECHO_T}newly built objdump" >&6
13470 elif test x
$gcc_cv_objdump = x
; then
13471 echo "$as_me:$LINENO: result: not found" >&5
13472 echo "${ECHO_T}not found" >&6
13474 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13475 echo "${ECHO_T}$gcc_cv_objdump" >&6
13478 # Figure out what assembler alignment features are present.
13479 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13480 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13481 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 gcc_cv_as_balign_and_p2align
=no
13485 if test $in_tree_gas = yes; then
13486 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13487 then gcc_cv_as_balign_and_p2align
=yes
13489 elif test x
$gcc_cv_as != x
; then
13491 .p2align 2' > conftest.s
13492 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }
13499 gcc_cv_as_balign_and_p2align
=yes
13501 echo "configure: failed program was" >&5
13504 rm -f conftest.o conftest.s
13507 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13508 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13509 if test $gcc_cv_as_balign_and_p2align = yes; then
13511 cat >>confdefs.h
<<\_ACEOF
13512 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13517 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13518 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13519 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
13522 gcc_cv_as_max_skip_p2align
=no
13523 if test $in_tree_gas = yes; then
13524 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13525 then gcc_cv_as_max_skip_p2align
=yes
13527 elif test x
$gcc_cv_as != x
; then
13528 echo '.p2align 4,,7' > conftest.s
13529 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }
13536 gcc_cv_as_max_skip_p2align
=yes
13538 echo "configure: failed program was" >&5
13541 rm -f conftest.o conftest.s
13544 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13545 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13546 if test $gcc_cv_as_max_skip_p2align = yes; then
13548 cat >>confdefs.h
<<\_ACEOF
13549 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13554 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13555 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13556 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 gcc_cv_as_subsection_m1
=no
13560 if test $in_tree_gas = yes; then
13561 if test $in_tree_gas_is_elf = yes \
13562 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13563 then gcc_cv_as_subsection_m1
=yes
13565 elif test x
$gcc_cv_as != x
; then
13566 echo 'conftest_label1: .word 0
13568 conftest_label2: .word 0
13569 .previous' > conftest.s
13570 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572 (eval $ac_try) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); }; }
13577 if test x
$gcc_cv_nm != x
; then
13578 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13579 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13580 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13582 else gcc_cv_as_subsection_m1
=yes
13584 rm -f conftest.nm1 conftest.nm2
13587 echo "configure: failed program was" >&5
13590 rm -f conftest.o conftest.s
13593 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13594 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13595 if test $gcc_cv_as_subsection_m1 = yes; then
13597 cat >>confdefs.h
<<\_ACEOF
13598 #define HAVE_GAS_SUBSECTION_ORDERING 1
13603 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13604 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13605 if test "${gcc_cv_as_weak+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 if test $in_tree_gas = yes; then
13610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13611 then gcc_cv_as_weak
=yes
13613 elif test x
$gcc_cv_as != x
; then
13614 echo ' .weak foobar' > conftest.s
13615 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }
13624 echo "configure: failed program was" >&5
13627 rm -f conftest.o conftest.s
13630 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13631 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13632 if test $gcc_cv_as_weak = yes; then
13634 cat >>confdefs.h
<<\_ACEOF
13635 #define HAVE_GAS_WEAK 1
13640 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13641 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13642 if test "${gcc_cv_as_weakref+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 gcc_cv_as_weakref
=no
13646 if test $in_tree_gas = yes; then
13647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13648 then gcc_cv_as_weakref
=yes
13650 elif test x
$gcc_cv_as != x
; then
13651 echo ' .weakref foobar, barfnot' > conftest.s
13652 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }
13659 gcc_cv_as_weakref
=yes
13661 echo "configure: failed program was" >&5
13664 rm -f conftest.o conftest.s
13667 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13668 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13669 if test $gcc_cv_as_weakref = yes; then
13671 cat >>confdefs.h
<<\_ACEOF
13672 #define HAVE_GAS_WEAKREF 1
13677 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13678 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13679 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 gcc_cv_as_nsubspa_comdat
=no
13683 if test $in_tree_gas = yes; then
13684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13685 then gcc_cv_as_nsubspa_comdat
=yes
13687 elif test x
$gcc_cv_as != x
; then
13688 echo ' .SPACE $TEXT$
13689 .NSUBSPA $CODE$,COMDAT' > conftest.s
13690 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }
13697 gcc_cv_as_nsubspa_comdat
=yes
13699 echo "configure: failed program was" >&5
13702 rm -f conftest.o conftest.s
13705 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13706 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13707 if test $gcc_cv_as_nsubspa_comdat = yes; then
13709 cat >>confdefs.h
<<\_ACEOF
13710 #define HAVE_GAS_NSUBSPA_COMDAT 1
13715 # .hidden needs to be supported in both the assembler and the linker,
13716 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13717 # This is irritatingly difficult to feature test for; we have to check the
13718 # date string after the version number. If we've got an in-tree
13719 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13721 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13722 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13723 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13724 if test "${gcc_cv_as_hidden+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 gcc_cv_as_hidden
=no
13728 if test $in_tree_gas = yes; then
13729 if test $in_tree_gas_is_elf = yes \
13730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13731 then gcc_cv_as_hidden
=yes
13733 elif test x
$gcc_cv_as != x
; then
13734 echo ' .hidden foobar
13735 foobar:' > conftest.s
13736 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }
13743 gcc_cv_as_hidden
=yes
13745 echo "configure: failed program was" >&5
13748 rm -f conftest.o conftest.s
13751 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13752 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13755 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13756 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13757 if test "${gcc_cv_ld_hidden+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 if test $in_tree_ld = yes ; then
13761 gcc_cv_ld_hidden
=no
13762 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 \
13763 && test $in_tree_ld_is_elf = yes; then
13764 gcc_cv_ld_hidden
=yes
13767 gcc_cv_ld_hidden
=yes
13768 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13769 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13770 ld_vers
=`echo $ld_ver | sed -n \
13771 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13772 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13773 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13774 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13775 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13776 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13777 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13778 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'`
13779 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13780 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13781 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13782 if test 0"$ld_date" -lt 20020404; then
13783 if test -n "$ld_date"; then
13784 # If there was date string, but was earlier than 2002-04-04, fail
13785 gcc_cv_ld_hidden
=no
13786 elif test -z "$ld_vers"; then
13787 # If there was no date string nor ld version number, something is wrong
13788 gcc_cv_ld_hidden
=no
13790 test -z "$ld_vers_patch" && ld_vers_patch
=0
13791 if test "$ld_vers_major" -lt 2; then
13792 gcc_cv_ld_hidden
=no
13793 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13794 gcc_cv_ld_hidden
="no"
13795 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13796 gcc_cv_ld_hidden
=no
13801 case "${target}" in
13802 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13803 gcc_cv_ld_hidden
=yes
13806 gcc_cv_ld_hidden
=no
13812 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13813 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13814 libgcc_visibility
=no
13817 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13818 libgcc_visibility
=yes
13820 cat >>confdefs.h
<<\_ACEOF
13821 #define HAVE_GAS_HIDDEN 1
13826 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13827 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13828 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13829 if test "${gcc_cv_as_leb128+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 gcc_cv_as_leb128
=no
13833 if test $in_tree_gas = yes; then
13834 if test $in_tree_gas_is_elf = yes \
13835 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13836 then gcc_cv_as_leb128
=yes
13838 elif test x
$gcc_cv_as != x
; then
13845 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }
13852 # GAS versions before 2.11 do not support uleb128,
13853 # despite appearing to.
13854 # ??? There exists an elf-specific test that will crash
13855 # the assembler. Perhaps it's better to figure out whether
13856 # arbitrary sections are supported and try the test.
13857 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13858 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13859 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13860 as_major
=`echo $as_ver | sed 's/\..*//'`
13861 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13862 if test $as_major -eq 2 && test $as_minor -lt 11
13864 else gcc_cv_as_leb128
=yes
13868 echo "configure: failed program was" >&5
13871 rm -f conftest.o conftest.s
13874 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13875 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13876 if test $gcc_cv_as_leb128 = yes; then
13878 cat >>confdefs.h
<<\_ACEOF
13879 #define HAVE_AS_LEB128 1
13884 # GAS versions up to and including 2.11.0 may mis-optimize
13886 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13887 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13888 if test "${gcc_cv_as_eh_frame+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 gcc_cv_as_eh_frame
=no
13892 if test $in_tree_gas = yes; then
13893 if test $in_tree_gas_is_elf = yes \
13894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13895 then gcc_cv_as_eh_frame
=yes
13897 elif test x
$gcc_cv_as != x
; then
13904 .section .eh_frame,"aw",@progbits
13906 .4byte .LECIE1-.LSCIE1
13920 .4byte .LEFDE1-.LASFDE1
13922 .4byte .LASFDE1-__FRAME_BEGIN__
13929 .LEFDE1:' > conftest.s
13930 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }
13937 cat > conftest.lit
<<EOF
13938 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13939 0010 01000000 12000000 18000000 00000000 ................
13940 0020 08000000 04080000 0044 .........D
13942 cat > conftest.big
<<EOF
13943 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13944 0010 00000001 00000012 00000018 00000000 ................
13945 0020 00000008 04000000 0844 .........D
13947 # If the assembler didn't choke, and we can objdump,
13948 # and we got the correct data, then succeed.
13949 if test x
$gcc_cv_objdump != x \
13950 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13951 |
tail -3 > conftest.got \
13952 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13953 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13955 gcc_cv_as_eh_frame
=yes
13956 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 gcc_cv_as_eh_frame
=buggy
13964 # Uh oh, what do we do now?
13965 gcc_cv_as_eh_frame
=no
13968 echo "configure: failed program was" >&5
13971 rm -f conftest.o conftest.s
13974 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13975 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13978 if test $gcc_cv_as_eh_frame = buggy
; then
13980 cat >>confdefs.h
<<\_ACEOF
13981 #define USE_AS_TRADITIONAL_FORMAT 1
13986 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13987 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13988 if test "${gcc_cv_as_shf_merge+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 gcc_cv_as_shf_merge
=no
13992 if test $in_tree_gas = yes; then
13993 if test $in_tree_gas_is_elf = yes \
13994 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13995 then gcc_cv_as_shf_merge
=yes
13997 elif test x
$gcc_cv_as != x
; then
13998 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13999 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }
14006 gcc_cv_as_shf_merge
=yes
14008 echo "configure: failed program was" >&5
14011 rm -f conftest.o conftest.s
14014 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14015 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14017 if test $gcc_cv_as_shf_merge = no
; then
14018 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14019 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14020 if test "${gcc_cv_as_shf_merge+set}" = set; then
14021 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 gcc_cv_as_shf_merge
=no
14024 if test $in_tree_gas = yes; then
14025 if test $in_tree_gas_is_elf = yes \
14026 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14027 then gcc_cv_as_shf_merge
=yes
14029 elif test x
$gcc_cv_as != x
; then
14030 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14031 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }
14038 gcc_cv_as_shf_merge
=yes
14040 echo "configure: failed program was" >&5
14043 rm -f conftest.o conftest.s
14046 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14047 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14051 cat >>confdefs.h
<<_ACEOF
14052 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14056 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14057 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14058 if test "${gcc_cv_as_comdat_group+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 gcc_cv_as_comdat_group
=no
14062 if test $in_tree_gas = yes; then
14063 if test $in_tree_gas_is_elf = yes \
14064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14065 then gcc_cv_as_comdat_group
=yes
14067 elif test x
$gcc_cv_as != x
; then
14068 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14069 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071 (eval $ac_try) 2>&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; }
14076 gcc_cv_as_comdat_group
=yes
14078 echo "configure: failed program was" >&5
14081 rm -f conftest.o conftest.s
14084 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14085 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14087 if test $gcc_cv_as_comdat_group = yes; then
14088 gcc_cv_as_comdat_group_percent
=no
14090 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14091 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14092 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 gcc_cv_as_comdat_group_percent
=no
14096 if test $in_tree_gas = yes; then
14097 if test $in_tree_gas_is_elf = yes \
14098 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14099 then gcc_cv_as_comdat_group_percent
=yes
14101 elif test x
$gcc_cv_as != x
; then
14102 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14103 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }
14110 gcc_cv_as_comdat_group_percent
=yes
14112 echo "configure: failed program was" >&5
14115 rm -f conftest.o conftest.s
14118 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14119 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14122 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14124 if test 0"$ld_date" -lt 20050308; then
14125 if test -n "$ld_date"; then
14126 # If there was date string, but was earlier than 2005-03-08, fail
14128 elif test "$ld_vers_major" -lt 2; then
14130 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14135 # assume linkers other than GNU ld don't support COMDAT group
14138 if test $comdat_group = no
; then
14139 gcc_cv_as_comdat_group
=no
14140 gcc_cv_as_comdat_group_percent
=no
14143 cat >>confdefs.h
<<_ACEOF
14144 #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`
14148 # Thread-local storage - the check is heavily parametrized.
14156 .section ".tdata","awT",@progbits
14159 ldq $27,__tls_get_addr($29) !literal!1
14160 lda $16,foo($29) !tlsgd!1
14161 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14162 ldq $27,__tls_get_addr($29) !literal!2
14163 lda $16,foo($29) !tlsldm!2
14164 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14165 ldq $1,foo($29) !gotdtprel
14166 ldah $2,foo($29) !dtprelhi
14167 lda $3,foo($2) !dtprello
14168 lda $4,foo($29) !dtprel
14169 ldq $1,foo($29) !gottprel
14170 ldah $2,foo($29) !tprelhi
14171 lda $3,foo($2) !tprello
14172 lda $4,foo($29) !tprel'
14175 tls_as_opt
=--fatal-warnings
14179 .section ".tdata","awT",@progbits
14182 call #gettlsoff(x)'
14191 .section ".tdata","awT",@progbits
14195 addil LT%foo-$tls_gdidx$,gp
14196 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14199 addil LT%foo-$tls_ldidx$,gp
14201 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14202 addil LR%foo-$tls_dtpoff$,%ret0
14203 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14205 addil LT%foo-$tls_ieoff$,gp
14206 ldw RT%foo-$tls_ieoff$(%r1),%t2
14209 addil LR%foo-$tls_leoff$,%t1
14210 ldo RR%foo-$tls_leoff$(%r1),%t2'
14213 tls_as_opt
=--fatal-warnings
14217 .section ".tdata","awT",%progbits
14220 .word foo(gottpoff)
14230 .section ".tdata","awT",@progbits
14234 leal foo@TLSGD(,%ebx,1), %eax
14235 leal foo@TLSLDM(%ebx), %eax
14236 leal foo@DTPOFF(%eax), %edx
14237 movl foo@GOTTPOFF(%ebx), %eax
14238 subl foo@GOTTPOFF(%ebx), %eax
14239 addl foo@GOTNTPOFF(%ebx), %eax
14240 movl foo@INDNTPOFF, %eax
14241 movl $foo@TPOFF, %eax
14242 subl $foo@TPOFF, %eax
14243 leal foo@NTPOFF(%ecx), %eax'
14246 tls_as_opt
=--fatal-warnings
14250 .section ".tdata","awT",@progbits
14254 leaq foo@TLSGD(%rip), %rdi
14255 leaq foo@TLSLD(%rip), %rdi
14256 leaq foo@DTPOFF(%rax), %rdx
14257 movq foo@GOTTPOFF(%rip), %rax
14258 movq $foo@TPOFF, %rax'
14261 tls_as_opt
=--fatal-warnings
14265 .section ".tdata","awT",@progbits
14268 addl r16 = @ltoff(@dtpmod(foo#)), gp
14269 addl r17 = @ltoff(@dtprel(foo#)), gp
14270 addl r18 = @ltoff(@tprel(foo#)), gp
14271 addl r19 = @dtprel(foo#), gp
14272 adds r21 = @dtprel(foo#), r13
14273 movl r23 = @dtprel(foo#)
14274 addl r20 = @tprel(foo#), gp
14275 adds r22 = @tprel(foo#), r13
14276 movl r24 = @tprel(foo#)'
14279 tls_as_opt
=--fatal-warnings
14283 .section .tdata,"awT",@progbits
14287 addiu $4, $28, %tlsgd(x)
14288 addiu $4, $28, %tlsldm(x)
14289 lui $4, %dtprel_hi(x)
14290 addiu $4, $4, %dtprel_lo(x)
14291 lw $4, %gottprel(x)($28)
14292 lui $4, %tprel_hi(x)
14293 addiu $4, $4, %tprel_lo(x)'
14296 tls_as_opt
='-32 --fatal-warnings'
14300 .section ".tdata","awT",@progbits
14308 addi 3,31,ld0@got@tlsgd
14310 addi 3,31,x1@got@tlsld
14313 addis 9,3,x2@dtprel@ha
14314 addi 9,9,x2@dtprel@l
14315 lwz 9,x3@got@tprel(31)
14318 addis 9,2,x2@tprel@ha
14319 addi 9,9,x2@tprel@l'
14322 tls_as_opt
="-a32 --fatal-warnings"
14326 .section ".tdata","awT",@progbits
14334 addi 3,2,ld0@got@tlsgd
14340 addi 3,2,x1@got@tlsld
14346 addis 9,3,x2@dtprel@ha
14347 addi 9,9,x2@dtprel@l
14350 ld 9,x3@got@dtprel(2)
14356 tls_as_opt
="-a64 --fatal-warnings"
14360 .section ".tdata","awT",@progbits
14367 .long foo@GOTNTPOFF
14368 .long foo@INDNTPOFF
14369 l %r1,foo@GOTNTPOFF(%r12)
14370 l %r1,0(%r1):tls_load:foo
14371 bas %r14,0(%r1,%r13):tls_gdcall:foo
14372 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14375 tls_as_opt
="-m31 --fatal-warnings"
14379 .section ".tdata","awT",@progbits
14386 .quad foo@GOTNTPOFF
14387 lg %r1,foo@GOTNTPOFF(%r12)
14388 larl %r1,foo@INDNTPOFF
14389 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14390 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14393 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14395 sh-
*-* | sh
[34]-*-*)
14397 .section ".tdata","awT",@progbits
14407 tls_as_opt
=--fatal-warnings
14411 sparc
*-sun-solaris2.
[56789]*)
14412 # TLS was introduced in the Solaris 9 4/04 release but
14413 # we do not enable it by default on Solaris 9 either.
14414 if test "x$enable_tls" = xyes
; then
14420 sparc
*-sun-solaris2.
*)
14427 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14429 .section ".tdata",#alloc,#write,#tls
14432 sethi %tgd_hi22(foo), %o0
14433 add %o0, %tgd_lo10(foo), %o1
14434 add %l7, %o1, %o0, %tgd_add(foo)
14435 call __tls_get_addr, %tgd_call(foo)
14436 sethi %tldm_hi22(foo), %l1
14437 add %l1, %tldm_lo10(foo), %l2
14438 add %l7, %l2, %o0, %tldm_add(foo)
14439 call __tls_get_addr, %tldm_call(foo)
14440 sethi %tldo_hix22(foo), %l3
14441 xor %l3, %tldo_lox10(foo), %l4
14442 add %o0, %l4, %l5, %tldo_add(foo)
14443 sethi %tie_hi22(foo), %o3
14444 add %o3, %tie_lo10(foo), %o3
14445 ld [%l7 + %o3], %o2, %tie_ld(foo)
14446 add %g7, %o2, %o4, %tie_add(foo)
14447 sethi %tle_hix22(foo), %l1
14448 xor %l1, %tle_lox10(foo), %o5
14449 ld [%g7 + %o5], %o1'
14454 .section ".tdata","awT",@progbits
14457 sethi %tgd_hi22(foo), %o0
14458 add %o0, %tgd_lo10(foo), %o1
14459 add %l7, %o1, %o0, %tgd_add(foo)
14460 call __tls_get_addr, %tgd_call(foo)
14461 sethi %tldm_hi22(foo), %l1
14462 add %l1, %tldm_lo10(foo), %l2
14463 add %l7, %l2, %o0, %tldm_add(foo)
14464 call __tls_get_addr, %tldm_call(foo)
14465 sethi %tldo_hix22(foo), %l3
14466 xor %l3, %tldo_lox10(foo), %l4
14467 add %o0, %l4, %l5, %tldo_add(foo)
14468 sethi %tie_hi22(foo), %o3
14469 add %o3, %tie_lo10(foo), %o3
14470 ld [%l7 + %o3], %o2, %tie_ld(foo)
14471 add %g7, %o2, %o4, %tie_add(foo)
14472 sethi %tle_hix22(foo), %l1
14473 xor %l1, %tle_lox10(foo), %o5
14474 ld [%g7 + %o5], %o1'
14477 tls_as_opt
="-32 --fatal-warnings"
14482 if test "x$enable_tls" = xno
; then
14483 : # TLS explicitly disabled.
14484 elif test "x$enable_tls" = xyes
; then
14485 set_have_as_tls
=yes # TLS explicitly enabled.
14486 elif test -z "$tls_first_major"; then
14487 : # If we don't have a check, assume no support.
14489 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14490 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14491 if test "${gcc_cv_as_tls+set}" = set; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 if test $in_tree_gas = yes; then
14496 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14497 then gcc_cv_as_tls
=yes
14499 elif test x
$gcc_cv_as != x
; then
14500 echo "$conftest_s" > conftest.s
14501 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503 (eval $ac_try) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); }; }
14510 echo "configure: failed program was" >&5
14513 rm -f conftest.o conftest.s
14516 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14517 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14518 if test $gcc_cv_as_tls = yes; then
14519 set_have_as_tls
=yes
14522 if test $set_have_as_tls = yes ; then
14524 cat >>confdefs.h
<<\_ACEOF
14525 #define HAVE_AS_TLS 1
14530 # Target-specific assembler checks.
14532 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14533 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14534 gcc_cv_ld_static_dynamic
=no
14535 if test $in_tree_ld = yes ; then
14536 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14537 gcc_cv_ld_static_dynamic
=yes
14539 elif test x
$gcc_cv_ld != x
; then
14540 # Check if linker supports -Bstatic/-Bdynamic option
14541 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14542 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14543 gcc_cv_ld_static_dynamic
=yes
14546 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14548 cat >>confdefs.h
<<\_ACEOF
14549 #define HAVE_LD_STATIC_DYNAMIC 1
14553 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14554 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14556 if test x
"$demangler_in_ld" = xyes
; then
14557 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14558 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14559 gcc_cv_ld_demangle
=no
14560 if test $in_tree_ld = yes; then
14561 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 \
14562 gcc_cv_ld_demangle
=yes
14564 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14565 # Check if the GNU linker supports --demangle option
14566 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14567 gcc_cv_ld_demangle
=yes
14570 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14572 cat >>confdefs.h
<<\_ACEOF
14573 #define HAVE_LD_DEMANGLE 1
14577 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14578 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14582 # All TARGET_ABI_OSF targets.
14583 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14584 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14585 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14586 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14587 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 gcc_cv_as_alpha_explicit_relocs
=no
14590 if test $in_tree_gas = yes; then
14591 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14592 then gcc_cv_as_alpha_explicit_relocs
=yes
14594 elif test x
$gcc_cv_as != x
; then
14595 echo ' .set nomacro
14597 extbl $3, $2, $3 !lituse_bytoff!1
14598 ldq $2, a($29) !literal!1
14599 ldq $4, b($29) !literal!2
14600 ldq_u $3, 0($2) !lituse_base!1
14601 ldq $27, f($29) !literal!5
14602 jsr $26, ($27), f !lituse_jsr!5
14603 ldah $29, 0($26) !gpdisp!3
14604 lda $0, c($29) !gprel
14605 ldah $1, d($29) !gprelhigh
14606 lda $1, d($1) !gprellow
14607 lda $29, 0($29) !gpdisp!3' > conftest.s
14608 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }
14615 gcc_cv_as_alpha_explicit_relocs
=yes
14617 echo "configure: failed program was" >&5
14620 rm -f conftest.o conftest.s
14623 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14624 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14625 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14627 cat >>confdefs.h
<<\_ACEOF
14628 #define HAVE_AS_EXPLICIT_RELOCS 1
14632 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14633 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14634 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14635 echo $ECHO_N "(cached) $ECHO_C" >&6
14637 gcc_cv_as_alpha_jsrdirect_relocs
=no
14638 if test $in_tree_gas = yes; then
14639 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14640 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14642 elif test x
$gcc_cv_as != x
; then
14643 echo ' .set nomacro
14645 ldq $27, a($29) !literal!1
14646 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14647 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; }
14654 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14656 echo "configure: failed program was" >&5
14659 rm -f conftest.o conftest.s
14662 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14663 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14664 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14666 cat >>confdefs.h
<<\_ACEOF
14667 #define HAVE_AS_JSRDIRECT_RELOCS 1
14674 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14675 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14676 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 gcc_cv_as_cris_no_mul_bug
=no
14680 if test $in_tree_gas = yes; then
14681 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14682 then gcc_cv_as_cris_no_mul_bug
=yes
14684 elif test x
$gcc_cv_as != x
; then
14685 echo '.text' > conftest.s
14686 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; }
14693 gcc_cv_as_cris_no_mul_bug
=yes
14695 echo "configure: failed program was" >&5
14698 rm -f conftest.o conftest.s
14701 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14702 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14703 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14705 cat >>confdefs.h
<<\_ACEOF
14706 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14713 echo "$as_me:$LINENO: checking assembler for .register" >&5
14714 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14715 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 gcc_cv_as_sparc_register_op
=no
14719 if test x
$gcc_cv_as != x
; then
14720 echo '.register %g2, #scratch' > conftest.s
14721 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }
14728 gcc_cv_as_sparc_register_op
=yes
14730 echo "configure: failed program was" >&5
14733 rm -f conftest.o conftest.s
14736 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14737 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14738 if test $gcc_cv_as_sparc_register_op = yes; then
14740 cat >>confdefs.h
<<\_ACEOF
14741 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14746 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14747 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14748 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 gcc_cv_as_sparc_relax
=no
14752 if test x
$gcc_cv_as != x
; then
14753 echo '.text' > conftest.s
14754 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756 (eval $ac_try) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); }; }
14761 gcc_cv_as_sparc_relax
=yes
14763 echo "configure: failed program was" >&5
14766 rm -f conftest.o conftest.s
14769 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14770 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14771 if test $gcc_cv_as_sparc_relax = yes; then
14773 cat >>confdefs.h
<<\_ACEOF
14774 #define HAVE_AS_RELAX_OPTION 1
14779 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14780 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14781 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 gcc_cv_as_sparc_ua_pcrel
=no
14785 if test x
$gcc_cv_as != x
; then
14792 .uaword %r_disp32(foo)' > conftest.s
14793 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }
14800 if test x
$gcc_cv_ld != x \
14801 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14802 gcc_cv_as_sparc_ua_pcrel
=yes
14806 echo "configure: failed program was" >&5
14809 rm -f conftest.o conftest.s
14812 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14813 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14814 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14816 cat >>confdefs.h
<<\_ACEOF
14817 #define HAVE_AS_SPARC_UA_PCREL 1
14821 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14822 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14823 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14827 if test x
$gcc_cv_as != x
; then
14831 .uaword %r_disp32(foo)
14832 .byte 0x32, 0x33, 0x34
14836 .skip 4' > conftest.s
14837 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }
14844 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14845 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14846 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14847 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14848 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14849 |
grep 'DISP32' > /dev
/null
2>&1; then
14852 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14857 echo "configure: failed program was" >&5
14860 rm -f conftest.o conftest.s
14863 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14864 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14865 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14867 cat >>confdefs.h
<<\_ACEOF
14868 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14873 fi # unaligned pcrel relocs
14875 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14876 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14877 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 gcc_cv_as_sparc_offsetable_lo10
=no
14881 if test x
$gcc_cv_as != x
; then
14883 or %g1, %lo(ab) + 12, %g1
14884 or %g1, %lo(ab + 12), %g1' > conftest.s
14885 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }
14892 if test x
$gcc_cv_objdump != x \
14893 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14894 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14895 gcc_cv_as_sparc_offsetable_lo10
=yes
14898 echo "configure: failed program was" >&5
14901 rm -f conftest.o conftest.s
14904 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14905 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14906 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14908 cat >>confdefs.h
<<\_ACEOF
14909 #define HAVE_AS_OFFSETABLE_LO10 1
14915 i
[34567]86-*-* | x86_64-
*-*)
14917 cygwin
* | pe | mingw32
*)
14918 # Used for DWARF 2 in PE
14919 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14920 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14921 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14924 gcc_cv_as_ix86_pe_secrel32
=no
14925 if test $in_tree_gas = yes; then
14926 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14927 then gcc_cv_as_ix86_pe_secrel32
=yes
14929 elif test x
$gcc_cv_as != x
; then
14933 .secrel32 foo' > conftest.s
14934 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14941 if test x
$gcc_cv_ld != x \
14942 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14943 gcc_cv_as_ix86_pe_secrel32
=yes
14947 echo "configure: failed program was" >&5
14950 rm -f conftest.o conftest.s
14953 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14954 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14955 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14957 cat >>confdefs.h
<<\_ACEOF
14958 #define HAVE_GAS_PE_SECREL32_RELOC 1
14965 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14966 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14967 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 gcc_cv_as_ix86_filds_fists
=no
14971 if test $in_tree_gas = yes; then
14972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14973 then gcc_cv_as_ix86_filds_fists
=yes
14975 elif test x
$gcc_cv_as != x
; then
14976 echo 'filds mem; fists mem' > conftest.s
14977 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }
14984 gcc_cv_as_ix86_filds_fists
=yes
14986 echo "configure: failed program was" >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14993 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14994 if test $gcc_cv_as_ix86_filds_fists = yes; then
14996 cat >>confdefs.h
<<\_ACEOF
14997 #define HAVE_GAS_FILDS_FISTS 1
15002 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15003 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15004 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 gcc_cv_as_ix86_cmov_sun_syntax
=no
15008 if test x
$gcc_cv_as != x
; then
15009 echo 'cmovl.l %edx, %eax' > conftest.s
15010 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012 (eval $ac_try) 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }
15017 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15019 echo "configure: failed program was" >&5
15022 rm -f conftest.o conftest.s
15025 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15026 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15027 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15029 cat >>confdefs.h
<<\_ACEOF
15030 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15035 # This one is used unconditionally by i386.[ch]; it is to be defined
15036 # to 1 if the feature is present, 0 otherwise.
15037 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15038 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15039 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 gcc_cv_as_ix86_gotoff_in_data
=no
15043 if test $in_tree_gas = yes; then
15044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15045 then gcc_cv_as_ix86_gotoff_in_data
=yes
15047 elif test x
$gcc_cv_as != x
; then
15052 .long .L0@GOTOFF' > conftest.s
15053 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15055 (eval $ac_try) 2>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); }; }
15060 gcc_cv_as_ix86_gotoff_in_data
=yes
15062 echo "configure: failed program was" >&5
15065 rm -f conftest.o conftest.s
15068 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15069 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15072 cat >>confdefs.h
<<_ACEOF
15073 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15079 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15080 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15081 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15085 if test $in_tree_gas = yes; then
15086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15087 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15089 elif test x
$gcc_cv_as != x
; then
15091 addl r15 = @ltoffx(x#), gp
15093 ld8.mov r16 = [r15], x#' > conftest.s
15094 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }
15101 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15103 echo "configure: failed program was" >&5
15106 rm -f conftest.o conftest.s
15109 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15110 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15111 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15113 cat >>confdefs.h
<<\_ACEOF
15114 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15123 *-*-aix*) conftest_s
=' .machine "pwr5"
15127 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15128 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15129 if test "${gcc_cv_as_machine_directive+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 gcc_cv_as_machine_directive
=no
15133 if test x
$gcc_cv_as != x
; then
15134 echo ' .machine ppc7400' > conftest.s
15135 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137 (eval $ac_try) 2>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); }; }
15142 gcc_cv_as_machine_directive
=yes
15144 echo "configure: failed program was" >&5
15147 rm -f conftest.o conftest.s
15150 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15151 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15153 if test x
$gcc_cv_as_machine_directive != xyes
; then
15154 echo "*** This target requires an assembler supporting \".machine\"" >&2
15155 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15156 test x
$build = x
$target && exit 1
15160 *) conftest_s
=' .machine power4
15165 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15166 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15167 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15168 echo $ECHO_N "(cached) $ECHO_C" >&6
15170 gcc_cv_as_powerpc_mfcrf
=no
15171 if test $in_tree_gas = yes; then
15172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15173 then gcc_cv_as_powerpc_mfcrf
=yes
15175 elif test x
$gcc_cv_as != x
; then
15176 echo "$conftest_s" > conftest.s
15177 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }
15184 gcc_cv_as_powerpc_mfcrf
=yes
15186 echo "configure: failed program was" >&5
15189 rm -f conftest.o conftest.s
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15193 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15194 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15196 cat >>confdefs.h
<<\_ACEOF
15197 #define HAVE_AS_MFCRF 1
15203 *-*-aix*) conftest_s
=' .machine "pwr5"
15206 *) conftest_s
=' .machine power5
15211 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15212 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15213 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 gcc_cv_as_powerpc_popcntb
=no
15217 if test $in_tree_gas = yes; then
15218 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15219 then gcc_cv_as_powerpc_popcntb
=yes
15221 elif test x
$gcc_cv_as != x
; then
15222 echo "$conftest_s" > conftest.s
15223 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }
15230 gcc_cv_as_powerpc_popcntb
=yes
15232 echo "configure: failed program was" >&5
15235 rm -f conftest.o conftest.s
15238 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15239 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15240 if test $gcc_cv_as_powerpc_popcntb = yes; then
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define HAVE_AS_POPCNTB 1
15249 *-*-aix*) conftest_s
=' .machine "pwr5x"
15252 *) conftest_s
=' .machine power5
15257 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15258 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15259 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 gcc_cv_as_powerpc_fprnd
=no
15263 if test $in_tree_gas = yes; then
15264 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15265 then gcc_cv_as_powerpc_fprnd
=yes
15267 elif test x
$gcc_cv_as != x
; then
15268 echo "$conftest_s" > conftest.s
15269 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }
15276 gcc_cv_as_powerpc_fprnd
=yes
15278 echo "configure: failed program was" >&5
15281 rm -f conftest.o conftest.s
15284 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15285 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15286 if test $gcc_cv_as_powerpc_fprnd = yes; then
15288 cat >>confdefs.h
<<\_ACEOF
15289 #define HAVE_AS_FPRND 1
15295 *-*-aix*) conftest_s
=' .csect .text[PR]
15297 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15301 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15302 *) conftest_s
=' .text
15304 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15307 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15308 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15309 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 gcc_cv_as_powerpc_rel16
=no
15313 if test $in_tree_gas = yes; then
15314 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15315 then gcc_cv_as_powerpc_rel16
=yes
15317 elif test x
$gcc_cv_as != x
; then
15318 echo "$conftest_s" > conftest.s
15319 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }
15326 gcc_cv_as_powerpc_rel16
=yes
15328 echo "configure: failed program was" >&5
15331 rm -f conftest.o conftest.s
15334 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15335 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15336 if test $gcc_cv_as_powerpc_rel16 = yes; then
15338 cat >>confdefs.h
<<\_ACEOF
15339 #define HAVE_AS_REL16 1
15346 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15347 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15348 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 gcc_cv_as_mips_explicit_relocs
=no
15352 if test $in_tree_gas = yes; then
15353 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15354 then gcc_cv_as_mips_explicit_relocs
=yes
15356 elif test x
$gcc_cv_as != x
; then
15357 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15358 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }
15365 gcc_cv_as_mips_explicit_relocs
=yes
15367 echo "configure: failed program was" >&5
15370 rm -f conftest.o conftest.s
15373 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15374 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15375 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15376 if test x
$target_cpu_default = x
15377 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15378 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15384 # Mips and HP-UX need the GNU assembler.
15385 # Linux on IA64 might be able to use the Intel assembler.
15388 mips
*-*-* |
*-*-hpux* )
15389 if test x
$gas_flag = xyes \
15390 ||
test x
"$host" != x
"$build" \
15391 ||
test ! -x "$gcc_cv_as" \
15392 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15395 echo "*** This configuration requires the GNU assembler" >&2
15401 # ??? Not all targets support dwarf2 debug_line, even within a version
15402 # of gas. Moreover, we need to emit a valid instruction to trigger any
15403 # info to the output file. So, as supported targets are added to gas 2.11,
15404 # add some instruction here to (also) show we expect this might work.
15405 # ??? Once 2.11 is released, probably need to add first known working
15406 # version to the per-target configury.
15408 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15409 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15410 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15413 ia64
*-*-* | s390
*-*-*)
15420 if test x
"$insn" != x
; then
15422 .file 1 \"conftest.s\"
15425 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15426 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15427 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 gcc_cv_as_dwarf2_debug_line
=no
15431 if test $in_tree_gas = yes; then
15432 if test $in_tree_gas_is_elf = yes \
15433 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15434 then gcc_cv_as_dwarf2_debug_line
=yes
15436 elif test x
$gcc_cv_as != x
; then
15437 echo "$conftest_s" > conftest.s
15438 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }
15445 if test x
$gcc_cv_objdump != x \
15446 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15447 |
grep debug_line
> /dev
/null
2>&1; then
15448 gcc_cv_as_dwarf2_debug_line
=yes
15451 echo "configure: failed program was" >&5
15454 rm -f conftest.o conftest.s
15457 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15458 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15461 # The .debug_line file table must be in the exact order that
15462 # we specified the files, since these indices are also used
15463 # by DW_AT_decl_file. Approximate this test by testing if
15464 # the assembler bitches if the same index is assigned twice.
15465 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15466 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15467 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 gcc_cv_as_dwarf2_file_buggy
=no
15471 if test x
$gcc_cv_as != x
; then
15472 echo ' .file 1 "foo.s"
15473 .file 1 "bar.s"' > conftest.s
15474 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476 (eval $ac_try) 2>&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); }; }
15481 gcc_cv_as_dwarf2_file_buggy
=yes
15483 echo "configure: failed program was" >&5
15486 rm -f conftest.o conftest.s
15489 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15490 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15493 if test $gcc_cv_as_dwarf2_debug_line = yes \
15494 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15496 cat >>confdefs.h
<<\_ACEOF
15497 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15502 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15503 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15504 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15507 gcc_cv_as_gdwarf2_flag
=no
15508 if test $in_tree_gas = yes; then
15509 if test $in_tree_gas_is_elf = yes \
15510 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15511 then gcc_cv_as_gdwarf2_flag
=yes
15513 elif test x
$gcc_cv_as != x
; then
15514 echo "$insn" > conftest.s
15515 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517 (eval $ac_try) 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; }
15522 gcc_cv_as_gdwarf2_flag
=yes
15524 echo "configure: failed program was" >&5
15527 rm -f conftest.o conftest.s
15530 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15531 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15532 if test $gcc_cv_as_gdwarf2_flag = yes; then
15534 cat >>confdefs.h
<<\_ACEOF
15535 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15540 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15541 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15542 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 gcc_cv_as_gstabs_flag
=no
15546 if test $in_tree_gas = yes; then
15547 if test $in_tree_gas_is_elf = yes \
15548 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15549 then gcc_cv_as_gstabs_flag
=yes
15551 elif test x
$gcc_cv_as != x
; then
15552 echo "$insn" > conftest.s
15553 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }
15560 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15561 # and warns about it, but still exits successfully. So check for
15563 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }
15570 else gcc_cv_as_gstabs_flag
=yes
15573 echo "configure: failed program was" >&5
15576 rm -f conftest.o conftest.s
15579 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15580 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15581 if test $gcc_cv_as_gstabs_flag = yes; then
15583 cat >>confdefs.h
<<\_ACEOF
15584 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15590 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15591 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15592 gcc_cv_ld_ro_rw_mix
=unknown
15593 if test $in_tree_ld = yes ; then
15594 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 \
15595 && test $in_tree_ld_is_elf = yes; then
15596 gcc_cv_ld_ro_rw_mix
=read-write
15598 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15599 echo '.section myfoosect, "a"' > conftest1.s
15600 echo '.section myfoosect, "aw"' > conftest2.s
15601 echo '.byte 1' >> conftest2.s
15602 echo '.section myfoosect, "a"' > conftest3.s
15603 echo '.byte 0' >> conftest3.s
15604 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15605 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15606 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15607 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15608 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15609 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15610 | sed -e '/myfoosect/!d' -e N`
15611 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15612 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15613 gcc_cv_ld_ro_rw_mix
=read-only
15615 gcc_cv_ld_ro_rw_mix
=read-write
15619 rm -f conftest.
* conftest
[123].
*
15621 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15623 cat >>confdefs.h
<<\_ACEOF
15624 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15628 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15629 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15631 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15632 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15633 gcc_cv_ld_eh_frame_hdr
=no
15634 if test $in_tree_ld = yes ; then
15635 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 \
15636 && test $in_tree_ld_is_elf = yes; then
15637 gcc_cv_ld_eh_frame_hdr
=yes
15639 elif test x
$gcc_cv_ld != x
; then
15640 # Check if linker supports --eh-frame-hdr option
15641 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15642 gcc_cv_ld_eh_frame_hdr
=yes
15646 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15648 cat >>confdefs.h
<<\_ACEOF
15649 #define HAVE_LD_EH_FRAME_HDR 1
15653 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15654 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15656 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15657 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15659 if test $in_tree_ld = yes ; then
15660 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 \
15661 && test $in_tree_ld_is_elf = yes; then
15664 elif test x
$gcc_cv_ld != x
; then
15665 # Check if linker supports -pie option
15666 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15670 if test x
"$gcc_cv_ld_pie" = xyes
; then
15672 cat >>confdefs.h
<<\_ACEOF
15673 #define HAVE_LD_PIE 1
15677 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15678 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15684 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15685 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15686 if test "${gcc_cv_ld_as_needed+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 gcc_cv_ld_as_needed
=no
15690 if test $in_tree_ld = yes ; then
15691 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 \
15692 && test $in_tree_ld_is_elf = yes; then
15693 gcc_cv_ld_as_needed
=yes
15695 elif test x
$gcc_cv_ld != x
; then
15696 # Check if linker supports --as-needed and --no-as-needed options
15697 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15698 gcc_cv_ld_as_needed
=yes
15703 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15704 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15705 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15707 cat >>confdefs.h
<<\_ACEOF
15708 #define HAVE_LD_AS_NEEDED 1
15713 case "$target:$tm_file" in
15714 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15715 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15716 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15717 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 gcc_cv_ld_no_dot_syms
=no
15721 if test $in_tree_ld = yes ; then
15722 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
15723 gcc_cv_ld_no_dot_syms
=yes
15725 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15726 cat > conftest1.s
<<EOF
15730 cat > conftest2.s
<<EOF
15731 .section ".opd","aw"
15734 .type foo,@function
15736 .quad .LEfoo,.TOC.@tocbase,0
15742 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15743 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15744 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15745 gcc_cv_ld_no_dot_syms
=yes
15747 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15751 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15752 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15753 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15755 cat >>confdefs.h
<<\_ACEOF
15756 #define HAVE_LD_NO_DOT_SYMS 1
15763 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15764 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15765 if test "${gcc_cv_ld_sysroot+set}" = set; then
15766 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 gcc_cv_ld_sysroot
=no
15769 if test $in_tree_ld = yes ; then
15770 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
15771 gcc_cv_ld_sysroot
=yes
15773 elif test x
$gcc_cv_ld != x
; then
15774 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15775 gcc_cv_ld_sysroot
=yes
15779 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15780 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15781 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15783 cat >>confdefs.h
<<\_ACEOF
15784 #define HAVE_LD_SYSROOT 1
15789 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15790 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15792 cat >>confdefs.h
<<_ACEOF
15793 #define PREFIX_INCLUDE_DIR "$prefix/include"
15798 # Test for stack protector support in target C library.
15801 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15802 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15803 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15806 gcc_cv_libc_provides_ssp
=no
15807 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15808 if test "x$with_sysroot" = x
; then
15809 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15810 elif test "x$with_sysroot" = xyes
; then
15811 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15813 glibc_header_dir
="${with_sysroot}/usr/include"
15816 glibc_header_dir
=/usr
/include
15818 # glibc 2.4 and later provides __stack_chk_fail and
15819 # either __stack_chk_guard, or TLS access to stack guard canary.
15820 if test -f $glibc_header_dir/features.h \
15821 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15822 $glibc_header_dir/features.h
> /dev
/null
; then
15823 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15824 $glibc_header_dir/features.h
> /dev
/null
; then
15825 gcc_cv_libc_provides_ssp
=yes
15826 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15827 $glibc_header_dir/features.h
> /dev
/null \
15828 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15829 $glibc_header_dir/features.h
> /dev
/null
; then
15830 gcc_cv_libc_provides_ssp
=yes
15834 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15835 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15836 *) gcc_cv_libc_provides_ssp
=no
;;
15838 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15840 cat >>confdefs.h
<<\_ACEOF
15841 #define TARGET_LIBC_PROVIDES_SSP 1
15846 # Check if TFmode long double should be used by default or not.
15847 # Some glibc targets used DFmode long double, but with glibc 2.4
15848 # and later they can use TFmode.
15850 powerpc
*-*-*gnu
* | \
15851 sparc
*-*-linux* | \
15855 # Check whether --with-long-double-128 or --without-long-double-128 was given.
15856 if test "${with_long_double_128+set}" = set; then
15857 withval
="$with_long_double_128"
15858 gcc_cv_target_ldbl128
="$with_long_double_128"
15860 gcc_cv_target_ldbl128
=no
15861 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15862 if test "x$with_sysroot" = x
; then
15863 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15864 elif test "x$with_sysroot" = xyes
; then
15865 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15867 glibc_header_dir
="${with_sysroot}/usr/include"
15870 glibc_header_dir
=/usr
/include
15872 grep '^ *#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
15873 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
15874 && gcc_cv_target_ldbl128
=yes
15878 if test x
$gcc_cv_target_ldbl128 = xyes
; then
15880 cat >>confdefs.h
<<\_ACEOF
15881 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
15886 # Find out what GC implementation we want, or may, use.
15888 # Check whether --with-gc or --without-gc was given.
15889 if test "${with_gc+set}" = set; then
15898 cat >>confdefs.h
<<\_ACEOF
15904 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15905 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15906 { (exit 1); exit 1; }; }
15913 echo "Using $GGC for garbage collection."
15915 # Use the system's zlib library.
15917 zlibinc
="-I\$(srcdir)/../zlib"
15919 # Check whether --with-system-zlib or --without-system-zlib was given.
15920 if test "${with_system_zlib+set}" = set; then
15921 withval
="$with_system_zlib"
15930 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15931 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15932 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15933 if test "${enable_maintainer_mode+set}" = set; then
15934 enableval
="$enable_maintainer_mode"
15935 maintainer_mode
=$enableval
15940 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15941 echo "${ECHO_T}$maintainer_mode" >&6
15943 if test "$maintainer_mode" = "yes"; then
15953 # Make empty files to contain the specs and options for each language.
15954 # Then add #include lines to for a compiler that has specs and/or options.
15960 # These (without "all_") are set in each config-lang.in.
15961 # `language' must be a single word so is spelled singularly.
15963 all_boot_languages
=
15966 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15967 # List of language makefile fragments.
15968 all_lang_makefrags
=
15969 # List of language subdirectory makefiles. Deprecated.
15970 all_lang_makefiles
=
15971 # Files for gengtype
15972 all_gtfiles
="$target_gtfiles"
15973 # Files for gengtype with language
15974 all_gtfiles_files_langs
=
15975 all_gtfiles_files_files
=
15977 # These are the languages that are set in --enable-languages,
15978 # and are available in the GCC tree.
15979 all_selected_languages
=
15981 # Add the language fragments.
15982 # Languages are added via two mechanisms. Some information must be
15983 # recorded in makefile variables, these are defined in config-lang.in.
15984 # We accumulate them and plug them into the main Makefile.
15985 # The other mechanism is a set of hooks for each of the main targets
15986 # like `clean', `install', etc.
15988 language_hooks
="Make-hooks"
15990 for lang
in ${srcdir}/*/config-lang.
in
15993 # The odd quoting in the next line works around
15994 # an apparent bug in bash 1.12 on linux.
15995 ${srcdir}/[*]/config-lang.
in)
15998 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
15999 if test "x$lang_alias" = x
16001 echo "$lang doesn't set \$language." 1>&2
16004 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16005 subdirs
="$subdirs $subdir"
16006 case ",$enable_languages," in
16008 all_selected_languages
="$all_selected_languages $lang_alias"
16009 if test -f $srcdir/$subdir/lang-specs.h
; then
16010 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16015 if test -f $srcdir/$subdir/lang.opt
; then
16016 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16018 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16019 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16028 .
${srcdir}/$subdir/config-lang.
in
16029 if test "x$language" = x
16031 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16034 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16035 if test -f ${srcdir}/$subdir/Makefile.
in
16036 then all_lang_makefiles
="$subdir/Makefile"
16038 all_languages
="$all_languages $language"
16039 if test "x$boot_language" = xyes
16041 all_boot_languages
="$all_boot_languages $language"
16043 all_compilers
="$all_compilers $compilers"
16044 all_stagestuff
="$all_stagestuff $stagestuff"
16045 all_outputs
="$all_outputs $outputs"
16046 all_gtfiles
="$all_gtfiles $gtfiles"
16049 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16050 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16056 # Pick up gtfiles for c
16059 .
${srcdir}/c-config-lang.
in
16060 all_gtfiles
="$all_gtfiles $gtfiles"
16063 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16064 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16068 for language
in $all_selected_languages
16070 check_languages
="$check_languages check-$language"
16073 # We link each language in with a set of hooks, reached indirectly via
16074 # lang.${target}. Only do so for selected languages.
16078 target_list
="all.cross start.encap rest.encap tags \
16079 install-common install-man install-info dvi html \
16080 uninstall info man srcextra srcman srcinfo \
16081 mostlyclean clean distclean maintainer-clean \
16082 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16084 for t
in $target_list
16087 for lang
in $all_selected_languages
16091 echo "lang.$t: $x" >> Make-hooks
16100 echo "dir ." > .gdbinit
16101 echo "dir ${srcdir}" >> .gdbinit
16102 if test x
$gdb_needs_out_file_path = xyes
16104 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16106 if test "x$subdirs" != x
; then
16109 echo "dir ${srcdir}/$s" >> .gdbinit
16112 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16114 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16115 # absolute path for gcc_tooldir based on inserting the number of up-directory
16116 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16117 # $(libsubdir)/@(unlibsubdir) based path.
16118 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16119 # make and thus we'd get different behavior depending on where we built the
16121 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16122 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16124 # An explanation of the sed strings:
16125 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16126 # -e 's|/$||' match a trailing forward slash and eliminates it
16127 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16128 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16130 # (*) Note this pattern overwrites the first character of the string
16131 # with a forward slash if one is not already present. This is not a
16132 # problem because the exact names of the sub-directories concerned is
16133 # unimportant, just the number of them matters.
16135 # The practical upshot of these patterns is like this:
16137 # prefix exec_prefix result
16138 # ------ ----------- ------
16139 # /foo /foo/bar ../
16140 # /foo/ /foo/bar ../
16141 # /foo /foo/bar/ ../
16142 # /foo/ /foo/bar/ ../
16143 # /foo /foo/bar/ugg ../../
16146 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16151 # Find a directory in which to install a shared libgcc.
16153 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16154 if test "${enable_version_specific_runtime_libs+set}" = set; then
16155 enableval
="$enable_version_specific_runtime_libs"
16160 # Check whether --with-slibdir or --without-slibdir was given.
16161 if test "${with_slibdir+set}" = set; then
16162 withval
="$with_slibdir"
16163 slibdir
="$with_slibdir"
16165 if test "${enable_version_specific_runtime_libs+set}" = set; then
16166 slibdir
='$(libsubdir)'
16167 elif test "$host" != "$target"; then
16168 slibdir
='$(build_tooldir)/lib'
16170 slibdir
='$(libdir)'
16175 objdir
=`${PWDCMD-pwd}`
16179 # Check whether --with-datarootdir or --without-datarootdir was given.
16180 if test "${with_datarootdir+set}" = set; then
16181 withval
="$with_datarootdir"
16182 datarootdir
="\${prefix}/$with_datarootdir"
16184 datarootdir
='$(prefix)/share'
16189 # Check whether --with-docdir or --without-docdir was given.
16190 if test "${with_docdir+set}" = set; then
16191 withval
="$with_docdir"
16192 docdir
="\${prefix}/$with_docdir"
16194 docdir
='$(datarootdir)'
16199 # Check whether --with-htmldir or --without-htmldir was given.
16200 if test "${with_htmldir+set}" = set; then
16201 withval
="$with_htmldir"
16202 htmldir
="\${prefix}/$with_htmldir"
16204 htmldir
='$(docdir)'
16208 # Substitute configuration variables
16274 if test x
${build} = x
${host} ; then
16275 if test x
${host} = x
${target} ; then
16276 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16278 echo "Links are now set up to build a cross-compiler" 1>&2
16279 echo " from ${host} to ${target}." 1>&2
16282 if test x
${host} = x
${target} ; then
16283 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16284 echo " for ${target}." 1>&2
16286 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16287 echo " from ${host} to ${target}." 1>&2
16294 # Configure the subdirectories
16295 # AC_CONFIG_SUBDIRS($subdirs)
16297 # Create the Makefile
16298 # and configure language subdirectories
16299 ac_config_files
="$ac_config_files $all_outputs"
16302 ac_config_commands
="$ac_config_commands default"
16304 cat >confcache
<<\_ACEOF
16305 # This file is a shell script that caches the results of configure
16306 # tests run on this system so they can be shared between configure
16307 # scripts and configure runs, see configure's option --config-cache.
16308 # It is not useful on other systems. If it contains results you don't
16309 # want to keep, you may remove or edit it.
16311 # config.status only pays attention to the cache file if you give it
16312 # the --recheck option to rerun configure.
16314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16316 # following values.
16320 # The following way of writing the cache mishandles newlines in values,
16321 # but we know of no workaround that is simple, portable, and efficient.
16322 # So, don't put newlines in cache variables' values.
16323 # Ultrix sh set writes to stderr and can't be redirected directly,
16324 # and sets the high bit in the cache file unless we assign to the vars.
16327 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16329 # `set' does not quote correctly, so add quotes (double-quote
16330 # substitution turns \\\\ into \\, and sed turns \\ into \).
16333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16336 # `set' quotes correctly as required by POSIX, so do not add quotes.
16338 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16347 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16349 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16350 if test -w $cache_file; then
16351 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16352 cat confcache
>$cache_file
16354 echo "not updating unwritable cache $cache_file"
16359 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16360 # Let make expand exec_prefix.
16361 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16363 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16364 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16365 # trailing colons and then remove the whole line if VPATH becomes empty
16366 # (actually we leave an empty line to preserve line numbers).
16367 if test "x$srcdir" = x.
; then
16368 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16369 s/:*\$(srcdir):*/:/;
16370 s/:*\${srcdir}:*/:/;
16372 s/^\([^=]*=[ ]*\):*/\1/;
16378 DEFS
=-DHAVE_CONFIG_H
16382 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16383 # 1. Remove the extension, and $U if already installed.
16384 ac_i
=`echo "$ac_i" |
16385 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16387 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16388 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16390 LIBOBJS
=$ac_libobjs
16392 LTLIBOBJS
=$ac_ltlibobjs
16396 : ${CONFIG_STATUS=./config.status}
16397 ac_clean_files_save
=$ac_clean_files
16398 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16399 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16400 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16401 cat >$CONFIG_STATUS <<_ACEOF
16403 # Generated by $as_me.
16404 # Run this file to recreate the current configuration.
16405 # Compiler output produced by configure, useful for debugging
16406 # configure, is in config.log if it exists.
16409 ac_cs_recheck=false
16411 SHELL=\${CONFIG_SHELL-$SHELL}
16414 cat >>$CONFIG_STATUS <<\_ACEOF
16415 ## --------------------- ##
16416 ## M4sh Initialization. ##
16417 ## --------------------- ##
16419 # Be Bourne compatible
16420 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16423 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16424 # is contrary to our usage. Disable this feature.
16425 alias -g '${1+"$@"}'='"$@"'
16426 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16429 DUALCASE
=1; export DUALCASE
# for MKS sh
16431 # Support unset when possible.
16432 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16439 # Work around bugs in pre-3.0 UWIN ksh.
16440 $as_unset ENV MAIL MAILPATH
16447 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16448 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16449 LC_TELEPHONE LC_TIME
16451 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16452 eval $as_var=C
; export $as_var
16458 # Required to use basename.
16459 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16465 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16466 as_basename
=basename
16472 # Name of the executable.
16473 as_me
=`$as_basename "$0" ||
16474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16475 X"$0" : 'X\(//\)$' \| \
16476 X"$0" : 'X\(/\)$' \| \
16477 . : '\(.\)' 2>/dev/null ||
16479 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16480 /^X\/\(\/\/\)$/{ s//\1/; q; }
16481 /^X\/\(\/\).*/{ s//\1/; q; }
16485 # PATH needs CR, and LINENO needs CR and PATH.
16486 # Avoid depending upon Character Ranges.
16487 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16488 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16489 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16490 as_cr_digits
='0123456789'
16491 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16507 as_lineno_1
=$LINENO
16508 as_lineno_2
=$LINENO
16509 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16510 test "x$as_lineno_1" != "x$as_lineno_2" &&
16511 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16512 # Find who we are. Look in the path if we contain no path at all
16515 *[\\/]* ) as_myself
=$0 ;;
16516 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16517 for as_dir
in $PATH
16520 test -z "$as_dir" && as_dir
=.
16521 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16526 # We did not find ourselves, most probably we were run as `sh COMMAND'
16527 # in which case we are not to be found in the path.
16528 if test "x$as_myself" = x
; then
16531 if test ! -f "$as_myself"; then
16532 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16533 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16534 { (exit 1); exit 1; }; }
16536 case $CONFIG_SHELL in
16538 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16539 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16542 test -z "$as_dir" && as_dir
=.
16543 for as_base
in sh bash ksh sh5
; do
16546 if ("$as_dir/$as_base" -c '
16547 as_lineno_1=$LINENO
16548 as_lineno_2=$LINENO
16549 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16550 test "x$as_lineno_1" != "x$as_lineno_2" &&
16551 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16552 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16553 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16554 CONFIG_SHELL
=$as_dir/$as_base
16555 export CONFIG_SHELL
16556 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16564 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16565 # uniformly replaced by the line number. The first 'sed' inserts a
16566 # line-number line before each line; the second 'sed' does the real
16567 # work. The second script uses 'N' to pair each line-number line
16568 # with the numbered line, and appends trailing '-' during
16569 # substitution so that $LINENO is not a special case at line end.
16570 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16571 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16572 sed '=' <$as_myself |
16577 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16580 s,^['$as_cr_digits']*\n,,
16581 ' >$as_me.lineno
&&
16582 chmod +x
$as_me.lineno ||
16583 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16584 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16585 { (exit 1); exit 1; }; }
16587 # Don't try to exec as it changes $[0], causing all sort of problems
16588 # (the dirname of $[0] is not the place where we might find the
16589 # original and so on. Autoconf is especially sensible to this).
16591 # Exit status is that of the last command.
16596 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16597 *c
*,-n*) ECHO_N
= ECHO_C
='
16599 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16600 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16603 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16609 rm -f conf$$ conf$$.exe conf$$.
file
16611 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16612 # We could just check for DJGPP; but this test a) works b) is more generic
16613 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16614 if test -f conf$$.exe
; then
16615 # Don't use ln at all; we don't have any links
16620 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16625 rm -f conf$$ conf$$.exe conf$$.
file
16627 if mkdir
-p .
2>/dev
/null
; then
16630 test -d .
/-p && rmdir .
/-p
16634 as_executable_p
="test -f"
16636 # Sed expression to map a string onto a valid CPP name.
16637 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16639 # Sed expression to map a string onto a valid variable name.
16640 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16644 # We need space, tab and new line, in precisely that order.
16654 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16655 # report actual input values of CONFIG_FILES etc. instead of their
16656 # values after options handling. Logging --version etc. is OK.
16660 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16661 ## Running $as_me. ##
16666 This file was extended by $as_me, which was
16667 generated by GNU Autoconf 2.59. Invocation command line was
16669 CONFIG_FILES = $CONFIG_FILES
16670 CONFIG_HEADERS = $CONFIG_HEADERS
16671 CONFIG_LINKS = $CONFIG_LINKS
16672 CONFIG_COMMANDS = $CONFIG_COMMANDS
16676 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16680 # Files that config.status was made for.
16681 if test -n "$ac_config_files"; then
16682 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16685 if test -n "$ac_config_headers"; then
16686 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16689 if test -n "$ac_config_links"; then
16690 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16693 if test -n "$ac_config_commands"; then
16694 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16697 cat >>$CONFIG_STATUS <<\_ACEOF
16700 \`$as_me' instantiates files from templates according to the
16701 current configuration.
16703 Usage: $0 [OPTIONS] [FILE]...
16705 -h, --help print this help, then exit
16706 -V, --version print version number, then exit
16707 -q, --quiet do not print progress messages
16708 -d, --debug don't remove temporary files
16709 --recheck update $as_me by reconfiguring in the same conditions
16710 --file=FILE[:TEMPLATE]
16711 instantiate the configuration file FILE
16712 --header=FILE[:TEMPLATE]
16713 instantiate the configuration header FILE
16715 Configuration files:
16718 Configuration headers:
16721 Configuration commands:
16724 Report bugs to <bug-autoconf@gnu.org>."
16727 cat >>$CONFIG_STATUS <<_ACEOF
16730 configured by $0, generated by GNU Autoconf 2.59,
16731 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16733 Copyright (C) 2003 Free Software Foundation, Inc.
16734 This config.status script is free software; the Free Software Foundation
16735 gives unlimited permission to copy, distribute and modify it."
16739 cat >>$CONFIG_STATUS <<\_ACEOF
16740 # If no file are specified by the user, then we need to provide default
16741 # value. By we need to know if files were specified by the user.
16747 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16748 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16756 *) # This is not an option, so the user has probably given explicit
16759 ac_need_defaults
=false
;;
16763 # Handling of the options.
16765 cat >>$CONFIG_STATUS <<\_ACEOF
16766 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16768 --version |
--vers* |
-V )
16769 echo "$ac_cs_version"; exit 0 ;;
16771 # Conflict between --help and --header
16772 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16773 Try \`$0 --help' for more information." >&5
16774 echo "$as_me: error: ambiguous option: $1
16775 Try \`$0 --help' for more information." >&2;}
16776 { (exit 1); exit 1; }; };;
16777 --help |
--hel |
-h )
16778 echo "$ac_cs_usage"; exit 0 ;;
16779 --debug |
--d* |
-d )
16781 --file |
--fil |
--fi |
--f )
16783 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16784 ac_need_defaults
=false
;;
16785 --header |
--heade |
--head |
--hea )
16787 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16788 ac_need_defaults
=false
;;
16789 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16790 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16793 # This is an error.
16794 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16795 Try \`$0 --help' for more information." >&5
16796 echo "$as_me: error: unrecognized option: $1
16797 Try \`$0 --help' for more information." >&2;}
16798 { (exit 1); exit 1; }; } ;;
16800 *) ac_config_targets
="$ac_config_targets $1" ;;
16806 ac_configure_extra_args
=
16808 if $ac_cs_silent; then
16810 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16814 cat >>$CONFIG_STATUS <<_ACEOF
16815 if \$ac_cs_recheck; then
16816 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16817 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16822 cat >>$CONFIG_STATUS <<_ACEOF
16824 # INIT-COMMANDS section.
16833 cat >>$CONFIG_STATUS <<\_ACEOF
16834 for ac_config_target
in $ac_config_targets
16836 case "$ac_config_target" in
16837 # Handling of arguments.
16838 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16839 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16840 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16841 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16842 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16843 { (exit 1); exit 1; }; };;
16847 # If the user did not use the arguments to specify the items to instantiate,
16848 # then the envvar interface is used. Set only those that are not.
16849 # We use the long form for the default assignment because of an extremely
16850 # bizarre bug on SunOS 4.1.3.
16851 if $ac_need_defaults; then
16852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16854 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16857 # Have a temporary directory for convenience. Make it in the build tree
16858 # simply because there is no reason to put it here, and in addition,
16859 # creating and moving files from /tmp can sometimes cause problems.
16860 # Create a temporary directory, and hook for its removal unless debugging.
16863 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16864 trap '{ (exit 1); exit 1; }' 1 2 13 15
16867 # Create a (secure) tmp directory for tmp files.
16870 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16871 test -n "$tmp" && test -d "$tmp"
16874 tmp
=.
/confstat$$
-$RANDOM
16875 (umask 077 && mkdir
$tmp)
16878 echo "$me: cannot create a temporary directory in ." >&2
16879 { (exit 1); exit 1; }
16884 cat >>$CONFIG_STATUS <<_ACEOF
16887 # CONFIG_FILES section.
16890 # No need to generate the scripts if there are no CONFIG_FILES.
16891 # This happens for instance when ./config.status config.h
16892 if test -n "\$CONFIG_FILES"; then
16893 # Protect against being on the right side of a sed subst in config.status.
16894 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16895 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16896 s,@SHELL@,$SHELL,;t t
16897 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16898 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16899 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16900 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16901 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16902 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16903 s,@exec_prefix@,$exec_prefix,;t t
16904 s,@prefix@,$prefix,;t t
16905 s,@program_transform_name@,$program_transform_name,;t t
16906 s,@bindir@,$bindir,;t t
16907 s,@sbindir@,$sbindir,;t t
16908 s,@libexecdir@,$libexecdir,;t t
16909 s,@datadir@,$datadir,;t t
16910 s,@sysconfdir@,$sysconfdir,;t t
16911 s,@sharedstatedir@,$sharedstatedir,;t t
16912 s,@localstatedir@,$localstatedir,;t t
16913 s,@libdir@,$libdir,;t t
16914 s,@includedir@,$includedir,;t t
16915 s,@oldincludedir@,$oldincludedir,;t t
16916 s,@infodir@,$infodir,;t t
16917 s,@mandir@,$mandir,;t t
16918 s,@build_alias@,$build_alias,;t t
16919 s,@host_alias@,$host_alias,;t t
16920 s,@target_alias@,$target_alias,;t t
16921 s,@DEFS@,$DEFS,;t t
16922 s,@ECHO_C@,$ECHO_C,;t t
16923 s,@ECHO_N@,$ECHO_N,;t t
16924 s,@ECHO_T@,$ECHO_T,;t t
16925 s,@LIBS@,$LIBS,;t t
16926 s,@build@,$build,;t t
16927 s,@build_cpu@,$build_cpu,;t t
16928 s,@build_vendor@,$build_vendor,;t t
16929 s,@build_os@,$build_os,;t t
16930 s,@host@,$host,;t t
16931 s,@host_cpu@,$host_cpu,;t t
16932 s,@host_vendor@,$host_vendor,;t t
16933 s,@host_os@,$host_os,;t t
16934 s,@target@,$target,;t t
16935 s,@target_cpu@,$target_cpu,;t t
16936 s,@target_vendor@,$target_vendor,;t t
16937 s,@target_os@,$target_os,;t t
16938 s,@target_noncanonical@,$target_noncanonical,;t t
16939 s,@build_subdir@,$build_subdir,;t t
16940 s,@host_subdir@,$host_subdir,;t t
16941 s,@target_subdir@,$target_subdir,;t t
16942 s,@GENINSRC@,$GENINSRC,;t t
16944 s,@CFLAGS@,$CFLAGS,;t t
16945 s,@LDFLAGS@,$LDFLAGS,;t t
16946 s,@CPPFLAGS@,$CPPFLAGS,;t t
16947 s,@ac_ct_CC@,$ac_ct_CC,;t t
16948 s,@EXEEXT@,$EXEEXT,;t t
16949 s,@OBJEXT@,$OBJEXT,;t t
16950 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16951 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16953 s,@EGREP@,$EGREP,;t t
16954 s,@strict1_warn@,$strict1_warn,;t t
16955 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16956 s,@warn_cflags@,$warn_cflags,;t t
16957 s,@WERROR@,$WERROR,;t t
16958 s,@nocommon_flag@,$nocommon_flag,;t t
16959 s,@TREEBROWSER@,$TREEBROWSER,;t t
16960 s,@valgrind_path@,$valgrind_path,;t t
16961 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16962 s,@valgrind_command@,$valgrind_command,;t t
16963 s,@coverage_flags@,$coverage_flags,;t t
16964 s,@enable_multilib@,$enable_multilib,;t t
16965 s,@enable_decimal_float@,$enable_decimal_float,;t t
16966 s,@enable_shared@,$enable_shared,;t t
16967 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16968 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16969 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16970 s,@onestep@,$onestep,;t t
16971 s,@datarootdir@,$datarootdir,;t t
16972 s,@docdir@,$docdir,;t t
16973 s,@htmldir@,$htmldir,;t t
16974 s,@SET_MAKE@,$SET_MAKE,;t t
16976 s,@LN_S@,$LN_S,;t t
16978 s,@RANLIB@,$RANLIB,;t t
16979 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16980 s,@ranlib_flags@,$ranlib_flags,;t t
16981 s,@INSTALL@,$INSTALL,;t t
16982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16984 s,@make_compare_target@,$make_compare_target,;t t
16985 s,@have_mktemp_command@,$have_mktemp_command,;t t
16986 s,@MAKEINFO@,$MAKEINFO,;t t
16987 s,@BUILD_INFO@,$BUILD_INFO,;t t
16988 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16989 s,@FLEX@,$FLEX,;t t
16990 s,@BISON@,$BISON,;t t
16993 s,@stage1_cflags@,$stage1_cflags,;t t
16994 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16995 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16996 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16997 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16998 s,@LIBICONV@,$LIBICONV,;t t
16999 s,@LTLIBICONV@,$LTLIBICONV,;t t
17000 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17001 s,@manext@,$manext,;t t
17002 s,@objext@,$objext,;t t
17003 s,@gthread_flags@,$gthread_flags,;t t
17004 s,@extra_modes_file@,$extra_modes_file,;t t
17005 s,@extra_opt_files@,$extra_opt_files,;t t
17006 s,@USE_NLS@,$USE_NLS,;t t
17007 s,@LIBINTL@,$LIBINTL,;t t
17008 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17009 s,@INCINTL@,$INCINTL,;t t
17010 s,@XGETTEXT@,$XGETTEXT,;t t
17011 s,@GMSGFMT@,$GMSGFMT,;t t
17012 s,@POSUB@,$POSUB,;t t
17013 s,@CATALOGS@,$CATALOGS,;t t
17014 s,@DATADIRNAME@,$DATADIRNAME,;t t
17015 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17016 s,@GENCAT@,$GENCAT,;t t
17017 s,@CATOBJEXT@,$CATOBJEXT,;t t
17018 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17019 s,@CROSS@,$CROSS,;t t
17021 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17022 s,@inhibit_libc@,$inhibit_libc,;t t
17023 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17024 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17025 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17026 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17027 s,@collect2@,$collect2,;t t
17028 s,@gcc_cv_as@,$gcc_cv_as,;t t
17029 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17030 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17031 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17032 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17033 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17034 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17035 s,@libgcc_visibility@,$libgcc_visibility,;t t
17037 s,@zlibdir@,$zlibdir,;t t
17038 s,@zlibinc@,$zlibinc,;t t
17039 s,@MAINT@,$MAINT,;t t
17040 s,@gcc_tooldir@,$gcc_tooldir,;t t
17041 s,@dollar@,$dollar,;t t
17042 s,@slibdir@,$slibdir,;t t
17043 s,@objdir@,$objdir,;t t
17044 s,@subdirs@,$subdirs,;t t
17045 s,@srcdir@,$srcdir,;t t
17046 s,@all_boot_languages@,$all_boot_languages,;t t
17047 s,@all_compilers@,$all_compilers,;t t
17048 s,@all_gtfiles@,$all_gtfiles,;t t
17049 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17050 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17051 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17052 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17053 s,@all_languages@,$all_languages,;t t
17054 s,@all_selected_languages@,$all_selected_languages,;t t
17055 s,@all_stagestuff@,$all_stagestuff,;t t
17056 s,@build_exeext@,$build_exeext,;t t
17057 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17058 s,@build_xm_file_list@,$build_xm_file_list,;t t
17059 s,@build_xm_include_list@,$build_xm_include_list,;t t
17060 s,@build_xm_defines@,$build_xm_defines,;t t
17061 s,@check_languages@,$check_languages,;t t
17062 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17063 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17064 s,@cpp_install_dir@,$cpp_install_dir,;t t
17065 s,@xmake_file@,$xmake_file,;t t
17066 s,@tmake_file@,$tmake_file,;t t
17067 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17068 s,@extra_headers_list@,$extra_headers_list,;t t
17069 s,@extra_objs@,$extra_objs,;t t
17070 s,@extra_parts@,$extra_parts,;t t
17071 s,@extra_passes@,$extra_passes,;t t
17072 s,@extra_programs@,$extra_programs,;t t
17073 s,@float_h_file@,$float_h_file,;t t
17074 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17075 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17076 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17077 s,@host_exeext@,$host_exeext,;t t
17078 s,@host_xm_file_list@,$host_xm_file_list,;t t
17079 s,@host_xm_include_list@,$host_xm_include_list,;t t
17080 s,@host_xm_defines@,$host_xm_defines,;t t
17081 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17082 s,@install@,$install,;t t
17083 s,@lang_opt_files@,$lang_opt_files,;t t
17084 s,@lang_specs_files@,$lang_specs_files,;t t
17085 s,@lang_tree_files@,$lang_tree_files,;t t
17086 s,@local_prefix@,$local_prefix,;t t
17087 s,@md_file@,$md_file,;t t
17088 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17089 s,@out_file@,$out_file,;t t
17090 s,@out_object_file@,$out_object_file,;t t
17091 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17092 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17093 s,@thread_file@,$thread_file,;t t
17094 s,@tm_file_list@,$tm_file_list,;t t
17095 s,@tm_include_list@,$tm_include_list,;t t
17096 s,@tm_defines@,$tm_defines,;t t
17097 s,@tm_p_file_list@,$tm_p_file_list,;t t
17098 s,@tm_p_include_list@,$tm_p_include_list,;t t
17099 s,@xm_file_list@,$xm_file_list,;t t
17100 s,@xm_include_list@,$xm_include_list,;t t
17101 s,@xm_defines@,$xm_defines,;t t
17102 s,@c_target_objs@,$c_target_objs,;t t
17103 s,@cxx_target_objs@,$cxx_target_objs,;t t
17104 s,@target_cpu_default@,$target_cpu_default,;t t
17105 s,@GMPLIBS@,$GMPLIBS,;t t
17106 s,@GMPINC@,$GMPINC,;t t
17107 s,@LIBOBJS@,$LIBOBJS,;t t
17108 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17109 /@language_hooks@/r $language_hooks
17110 s,@language_hooks@,,;t t
17115 cat >>$CONFIG_STATUS <<\_ACEOF
17116 # Split the substitutions into bite-sized pieces for seds with
17117 # small command number limits, like on Digital OSF/1 and HP-UX.
17118 ac_max_sed_lines
=48
17119 ac_sed_frag
=1 # Number of current file.
17120 ac_beg
=1 # First line for current file.
17121 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17124 while $ac_more_lines; do
17125 if test $ac_beg -gt 1; then
17126 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17128 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17130 if test ! -s $tmp/subs.frag
; then
17131 ac_more_lines
=false
17133 # The purpose of the label and of the branching condition is to
17134 # speed up the sed processing (if there are no `@' at all, there
17135 # is no need to browse any of the substitutions).
17136 # These are the two extra sed commands mentioned above.
17138 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17139 if test -z "$ac_sed_cmds"; then
17140 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17142 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17144 ac_sed_frag
=`expr $ac_sed_frag + 1`
17146 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17149 if test -z "$ac_sed_cmds"; then
17152 fi # test -n "$CONFIG_FILES"
17155 cat >>$CONFIG_STATUS <<\_ACEOF
17156 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17159 - |
*:- |
*:-:* ) # input from stdin
17161 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17162 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17163 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17164 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17165 * ) ac_file_in
=$ac_file.
in ;;
17168 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17169 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17170 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17171 X"$ac_file" : 'X\(//\)[^/]' \| \
17172 X"$ac_file" : 'X\(//\)$' \| \
17173 X"$ac_file" : 'X\(/\)' \| \
17174 . : '\(.\)' 2>/dev/null ||
17176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17178 /^X\(\/\/\)$/{ s//\1/; q; }
17179 /^X\(\/\).*/{ s//\1/; q; }
17181 { if $as_mkdir_p; then
17186 while test ! -d "$as_dir"; do
17187 as_dirs
="$as_dir $as_dirs"
17188 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17189 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17190 X"$as_dir" : 'X\(//\)[^/]' \| \
17191 X"$as_dir" : 'X\(//\)$' \| \
17192 X"$as_dir" : 'X\(/\)' \| \
17193 . : '\(.\)' 2>/dev/null ||
17195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17197 /^X\(\/\/\)$/{ s//\1/; q; }
17198 /^X\(\/\).*/{ s//\1/; q; }
17201 test ! -n "$as_dirs" || mkdir
$as_dirs
17202 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17203 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17204 { (exit 1); exit 1; }; }; }
17208 if test "$ac_dir" != .
; then
17209 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17210 # A "../" for each directory in $ac_dir_suffix.
17211 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17213 ac_dir_suffix
= ac_top_builddir
=
17217 .
) # No --srcdir option. We are building in place.
17219 if test -z "$ac_top_builddir"; then
17222 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17224 [\\/]* | ?
:[\\/]* ) # Absolute path.
17225 ac_srcdir
=$srcdir$ac_dir_suffix;
17226 ac_top_srcdir
=$srcdir ;;
17227 *) # Relative path.
17228 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17229 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17232 # Do not use `cd foo && pwd` to compute absolute paths, because
17233 # the directories may not exist.
17235 .
) ac_abs_builddir
="$ac_dir";;
17238 .
) ac_abs_builddir
=`pwd`;;
17239 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17240 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17243 case $ac_abs_builddir in
17244 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17246 case ${ac_top_builddir}.
in
17247 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17248 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17249 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17252 case $ac_abs_builddir in
17253 .
) ac_abs_srcdir
=$ac_srcdir;;
17256 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17257 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17258 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17261 case $ac_abs_builddir in
17262 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17264 case $ac_top_srcdir in
17265 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17266 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17267 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17273 if test x
"$ac_file" != x-
; then
17274 { echo "$as_me:$LINENO: creating $ac_file" >&5
17275 echo "$as_me: creating $ac_file" >&6;}
17278 # Let's still pretend it is `configure' which instantiates (i.e., don't
17279 # use $as_me), people would be surprised to read:
17280 # /* config.h. Generated by config.status. */
17281 if test x
"$ac_file" = x-
; then
17284 configure_input
="$ac_file. "
17286 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17287 sed 's,.*/,,'` by configure."
17289 # First look for the input files in the build tree, otherwise in the
17291 ac_file_inputs
=`IFS=:
17292 for f in $ac_file_in; do
17294 -) echo $tmp/stdin ;;
17296 # Absolute (can't be DOS-style, as IFS=:)
17297 test -f "$f" || { { 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 if test -f "$f"; then
17305 elif test -f "$srcdir/$f"; then
17310 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17311 echo "$as_me: error: cannot find input file: $f" >&2;}
17312 { (exit 1); exit 1; }; }
17315 done` ||
{ (exit 1); exit 1; }
17317 cat >>$CONFIG_STATUS <<_ACEOF
17321 cat >>$CONFIG_STATUS <<\_ACEOF
17323 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17324 s
,@configure_input@
,$configure_input,;t t
17325 s
,@srcdir@
,$ac_srcdir,;t t
17326 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17327 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17328 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17329 s
,@builddir@
,$ac_builddir,;t t
17330 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17331 s
,@top_builddir@
,$ac_top_builddir,;t t
17332 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17333 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17335 if test x"$ac_file" != x-; then
17336 mv $tmp/out $ac_file
17344 cat >>$CONFIG_STATUS <<\_ACEOF
17347 # CONFIG_HEADER section.
17350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17353 # ac_d sets the value in "#define NAME VALUE" lines.
17354 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17355 ac_dB
='[ ].*$,\1#\2'
17358 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17359 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17360 ac_uB
='$,\1#\2define\3'
17364 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17365 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17367 - |
*:- |
*:-:* ) # input from stdin
17369 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17370 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17371 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17372 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17373 * ) ac_file_in
=$ac_file.
in ;;
17376 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17377 echo "$as_me: creating $ac_file" >&6;}
17379 # First look for the input files in the build tree, otherwise in the
17381 ac_file_inputs
=`IFS=:
17382 for f in $ac_file_in; do
17384 -) echo $tmp/stdin ;;
17386 # Absolute (can't be DOS-style, as IFS=:)
17387 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17388 echo "$as_me: error: cannot find input file: $f" >&2;}
17389 { (exit 1); exit 1; }; }
17390 # Do quote $f, to prevent DOS paths from being IFS'd.
17393 if test -f "$f"; then
17396 elif test -f "$srcdir/$f"; then
17401 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17402 echo "$as_me: error: cannot find input file: $f" >&2;}
17403 { (exit 1); exit 1; }; }
17406 done` ||
{ (exit 1); exit 1; }
17407 # Remove the trailing spaces.
17408 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17412 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17413 # `conftest.undefs', that substitutes the proper values into
17414 # config.h.in to produce config.h. The first handles `#define'
17415 # templates, and the second `#undef' templates.
17416 # And first: Protect against being on the right side of a sed subst in
17417 # config.status. Protect against being in an unquoted here document
17418 # in config.status.
17419 rm -f conftest.defines conftest.undefs
17420 # Using a here document instead of a string reduces the quoting nightmare.
17421 # Putting comments in sed scripts is not portable.
17423 # `end' is used to avoid that the second main sed command (meant for
17424 # 0-ary CPP macros) applies to n-ary macro definitions.
17425 # See the Autoconf documentation for `clear'.
17426 cat >confdef2sed.
sed <<\_ACEOF
17431 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17433 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17436 # If some macros were called several times there might be several times
17437 # the same #defines, which is useless. Nevertheless, we may not want to
17438 # sort them, since we want the *last* AC-DEFINE to be honored.
17439 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17440 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17441 rm -f confdef2sed.sed
17443 # This sed command replaces #undef with comments. This is necessary, for
17444 # example, in the case of _POSIX_SOURCE, which is predefined and required
17445 # on some systems where configure will not decide to define it.
17446 cat >>conftest.undefs <<\_ACEOF
17447 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17450 # Break up conftest.defines because some shells have a limit on the size
17451 # of here documents, and old seds have small limits too (100 cmds).
17452 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17453 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17454 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17455 echo ' :' >>$CONFIG_STATUS
17456 rm -f conftest.tail
17457 while grep . conftest.defines >/dev/null
17459 # Write a limited-size here document to $tmp/defines.sed.
17460 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17461 # Speed up: don't consider the non `#define' lines.
17462 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17463 # Work around the forget-to-reset-the-flag bug.
17464 echo 't clr' >>$CONFIG_STATUS
17465 echo ': clr' >>$CONFIG_STATUS
17466 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17468 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17470 mv $tmp/out $tmp/in
17472 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17473 rm -f conftest.defines
17474 mv conftest.
tail conftest.defines
17476 rm -f conftest.defines
17477 echo ' fi # grep' >>$CONFIG_STATUS
17478 echo >>$CONFIG_STATUS
17480 # Break up conftest.undefs because some shells have a limit on the size
17481 # of here documents, and old seds have small limits too (100 cmds).
17482 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17483 rm -f conftest.
tail
17484 while grep . conftest.undefs
>/dev
/null
17486 # Write a limited-size here document to $tmp/undefs.sed.
17487 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17488 # Speed up: don't consider the non
`#undef'
17489 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17490 # Work around the forget-to-reset-the-flag bug.
17491 echo 't clr' >>$CONFIG_STATUS
17492 echo ': clr' >>$CONFIG_STATUS
17493 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17495 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17497 mv $tmp/out $tmp/in
17499 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17500 rm -f conftest.undefs
17501 mv conftest.tail conftest.undefs
17503 rm -f conftest.undefs
17505 cat >>$CONFIG_STATUS <<\_ACEOF
17506 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17507 # use $as_me), people would be surprised to read:
17508 # /* config.h. Generated by config.status. */
17509 if test x
"$ac_file" = x-
; then
17510 echo "/* Generated by configure. */" >$tmp/config.h
17512 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17514 cat $tmp/in >>$tmp/config.h
17516 if test x
"$ac_file" != x-
; then
17517 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17518 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17519 echo "$as_me: $ac_file is unchanged" >&6;}
17521 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17523 X"$ac_file" : 'X\(//\)[^/]' \| \
17524 X"$ac_file" : 'X\(//\)$' \| \
17525 X"$ac_file" : 'X\(/\)' \| \
17526 . : '\(.\)' 2>/dev/null ||
17528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17530 /^X\(\/\/\)$/{ s//\1/; q; }
17531 /^X\(\/\).*/{ s//\1/; q; }
17533 { if $as_mkdir_p; then
17538 while test ! -d "$as_dir"; do
17539 as_dirs
="$as_dir $as_dirs"
17540 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17541 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17542 X"$as_dir" : 'X\(//\)[^/]' \| \
17543 X"$as_dir" : 'X\(//\)$' \| \
17544 X"$as_dir" : 'X\(/\)' \| \
17545 . : '\(.\)' 2>/dev/null ||
17547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17549 /^X\(\/\/\)$/{ s//\1/; q; }
17550 /^X\(\/\).*/{ s//\1/; q; }
17553 test ! -n "$as_dirs" || mkdir
$as_dirs
17554 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17555 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17556 { (exit 1); exit 1; }; }; }
17559 mv $tmp/config.h
$ac_file
17563 rm -f $tmp/config.h
17567 cat >>$CONFIG_STATUS <<\_ACEOF
17570 # CONFIG_COMMANDS section.
17572 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17573 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17574 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17575 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17576 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577 X"$ac_dest" : 'X\(//\)[^/]' \| \
17578 X"$ac_dest" : 'X\(//\)$' \| \
17579 X"$ac_dest" : 'X\(/\)' \| \
17580 . : '\(.\)' 2>/dev/null ||
17582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17584 /^X\(\/\/\)$/{ s//\1/; q; }
17585 /^X\(\/\).*/{ s//\1/; q; }
17587 { if $as_mkdir_p; then
17592 while test ! -d "$as_dir"; do
17593 as_dirs
="$as_dir $as_dirs"
17594 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17596 X"$as_dir" : 'X\(//\)[^/]' \| \
17597 X"$as_dir" : 'X\(//\)$' \| \
17598 X"$as_dir" : 'X\(/\)' \| \
17599 . : '\(.\)' 2>/dev/null ||
17601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17603 /^X\(\/\/\)$/{ s//\1/; q; }
17604 /^X\(\/\).*/{ s//\1/; q; }
17607 test ! -n "$as_dirs" || mkdir
$as_dirs
17608 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17610 { (exit 1); exit 1; }; }; }
17614 if test "$ac_dir" != .
; then
17615 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17616 # A "../" for each directory in $ac_dir_suffix.
17617 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17619 ac_dir_suffix
= ac_top_builddir
=
17623 .
) # No --srcdir option. We are building in place.
17625 if test -z "$ac_top_builddir"; then
17628 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17630 [\\/]* | ?
:[\\/]* ) # Absolute path.
17631 ac_srcdir
=$srcdir$ac_dir_suffix;
17632 ac_top_srcdir
=$srcdir ;;
17633 *) # Relative path.
17634 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17635 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17638 # Do not use `cd foo && pwd` to compute absolute paths, because
17639 # the directories may not exist.
17641 .
) ac_abs_builddir
="$ac_dir";;
17644 .
) ac_abs_builddir
=`pwd`;;
17645 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17646 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17649 case $ac_abs_builddir in
17650 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17652 case ${ac_top_builddir}.
in
17653 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17654 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17655 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17658 case $ac_abs_builddir in
17659 .
) ac_abs_srcdir
=$ac_srcdir;;
17662 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17663 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17664 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17667 case $ac_abs_builddir in
17668 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17670 case $ac_top_srcdir in
17671 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17672 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17673 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17678 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17679 echo "$as_me: executing $ac_dest commands" >&6;}
17682 case ${CONFIG_HEADERS} in
17683 *auto-host.h
:config.
in*)
17686 # Make sure all the subdirs exist.
17687 for d
in $subdirs doc build
17689 test -d $d || mkdir
$d
17691 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17692 # bootstrapping and the installation procedure can still use
17693 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17694 # FLAGS_TO_PASS has been modified to solve the problem there.
17695 # This is virtually a duplicate of what happens in configure.lang; we do
17696 # an extra check to make sure this only happens if ln -s can be used.
17699 for d
in ${subdirs} ; do
17700 STARTDIR
=`${PWDCMD-pwd}`
17702 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17705 $LN_S ..
/$t $t 2>/dev
/null
17716 cat >>$CONFIG_STATUS <<\_ACEOF
17718 { (exit 0); exit 0; }
17720 chmod +x
$CONFIG_STATUS
17721 ac_clean_files
=$ac_clean_files_save
17724 # configure is writing to config.log, and then calls config.status.
17725 # config.status does its own redirection, appending to config.log.
17726 # Unfortunately, on DOS this fails, as config.log is still kept open
17727 # by configure, so config.status won't be able to write to it; its
17728 # output is simply discarded. So we exec the FD to /dev/null,
17729 # effectively closing config.log, so it can be properly (re)opened and
17730 # appended to by config.status. When coming back to configure, we
17731 # need to make the FD available again.
17732 if test "$no_create" != yes; then
17734 ac_config_status_args
=
17735 test "$silent" = yes &&
17736 ac_config_status_args
="$ac_config_status_args --quiet"
17738 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17740 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17741 # would make configure fail if this is the last instruction.
17742 $ac_cs_success ||
{ (exit 1); exit 1; }