2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn cxx_compat_warn warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS 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_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-gc={page
,zone
} choose the garbage collection mechanism to use
937 --with-system-zlib use installed libz
938 --with-slibdir=DIR shared libraries
in DIR LIBDIR
940 Some influential environment variables
:
941 CC C compiler
command
942 CFLAGS C compiler flags
943 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
944 nonstandard directory
<lib dir
>
945 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
946 headers
in a nonstandard directory
<include dir
>
948 GMPLIBS How to link GMP
949 GMPINC How to
find GMP include files
951 Use these variables to override the choices made by
`configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
957 if test "$ac_init_help" = "recursive"; then
958 # If there are subdirs, report their specific --help.
960 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961 test -d $ac_dir || continue
964 if test "$ac_dir" != .; then
965 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
966 # A "../" for each directory in $ac_dir_suffix.
967 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
969 ac_dir_suffix= ac_top_builddir=
973 .) # No --srcdir option. We are building in place.
975 if test -z "$ac_top_builddir"; then
978 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
980 [\\/]* | ?:[\\/]* ) # Absolute path.
981 ac_srcdir=$srcdir$ac_dir_suffix;
982 ac_top_srcdir=$srcdir ;;
984 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985 ac_top_srcdir=$ac_top_builddir$srcdir ;;
988 # Do not use `cd foo
&& pwd` to compute absolute paths, because
989 # the directories may not exist.
991 .) ac_abs_builddir="$ac_dir";;
994 .) ac_abs_builddir=`pwd`;;
995 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996 *) ac_abs_builddir=`pwd`/"$ac_dir";;
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1002 case ${ac_top_builddir}. in
1003 .) ac_abs_top_builddir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1012 .) ac_abs_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1020 case $ac_top_srcdir in
1021 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1028 # Check for guested configure; otherwise get Cygnus style configure.
1029 if test -f $ac_srcdir/configure.gnu; then
1031 $SHELL $ac_srcdir/configure.gnu --help=recursive
1032 elif test -f $ac_srcdir/configure; then
1034 $SHELL $ac_srcdir/configure --help=recursive
1035 elif test -f $ac_srcdir/configure.ac ||
1036 test -f $ac_srcdir/configure.in; then
1038 $ac_configure --help
1040 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59. Invocation command line was
1073 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1074 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1075 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1076 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1077 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1079 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1080 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1082 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1083 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1084 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1085 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1086 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1087 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1088 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1096 test -z "$as_dir" && as_dir=.
1097 echo "PATH: $as_dir"
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1121 ac_must_keep_next=false
1127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1135 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1137 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138 if test $ac_must_keep_next = true; then
1139 ac_must_keep_next=false # Got value, back to normal.
1142 *=* | --config-cache | -C | -disable-* | --disable-* \
1143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145 | -with-* | --with-* | -without-* | --without-* | --x)
1146 case "$ac_configure_args0 " in
1147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1150 -* ) ac_must_keep_next=true ;;
1153 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154 # Get rid of the leading space.
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log. We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close
' the trap.
1168 trap 'exit_status
=$?
1169 # Save into config.log some information that might help in debugging.
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1179 # The following way of writing the cache mishandles newlines in values,
1182 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1185 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1202 for ac_var
in $ac_subst_vars
1204 eval ac_val
=$
`echo $ac_var`
1205 echo "$ac_var='"'"'$ac_val'"'"'"
1209 if test -n "$ac_subst_files"; then
1216 for ac_var
in $ac_subst_files
1218 eval ac_val
=$
`echo $ac_var`
1219 echo "$ac_var='"'"'$ac_val'"'"'"
1224 if test -s confdefs.h
; then
1231 sed "/^$/d" confdefs.h |
sort
1234 test "$ac_signal" != 0 &&
1235 echo "$as_me: caught signal $ac_signal"
1236 echo "$as_me: exit $exit_status"
1238 rm -f core
*.core
&&
1239 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1242 for ac_signal in 1 2 13 15; do
1243 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1252 # Predefined preprocessor variables.
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282 if test "x$prefix" != xNONE; then
1283 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1285 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1288 for ac_site_file in $CONFIG_SITE; do
1289 if test -r "$ac_site_file"; then
1290 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292 sed 's
/^
/|
/' "$ac_site_file" >&5
1297 if test -r "$cache_file"; then
1298 # Some versions of bash will fail to source /dev/null (special
1299 # files actually), so we avoid doing that.
1300 if test -f "$cache_file"; then
1301 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1304 [\\/]* | ?:[\\/]* ) . $cache_file;;
1305 *) . ./$cache_file;;
1309 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1314 # Check that the precious variables saved in the cache have kept the same
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1319 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320 eval ac_new_set=\$ac_env_${ac_var}_set
1321 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322 eval ac_new_val="\$ac_env_${ac_var}_value"
1323 case $ac_old_set,$ac_new_set in
1325 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1327 ac_cache_corrupted=: ;;
1329 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331 ac_cache_corrupted=: ;;
1334 if test "x$ac_old_val" != "x$ac_new_val"; then
1335 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1336 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1337 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1338 echo "$as_me: former value: $ac_old_val" >&2;}
1339 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1340 echo "$as_me: current value: $ac_new_val" >&2;}
1341 ac_cache_corrupted=:
1344 # Pass precious variables to config.status.
1345 if test "$ac_new_set" = set; then
1347 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1349 *) ac_arg=$ac_var=$ac_new_val ;;
1351 case " $ac_configure_args " in
1352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1353 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1357 if $ac_cache_corrupted; then
1358 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1361 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362 { (exit 1); exit 1; }; }
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1368 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1390 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1393 gcc_version=`cat $srcdir/BASE-VER`
1395 # Determine the host, build, and target systems
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398 if test -f $ac_dir/install-sh; then
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1402 elif test -f $ac_dir/install.sh; then
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1406 elif test -f $ac_dir/shtool; then
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415 { (exit 1); exit 1; }; }
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425 { (exit 1); exit 1; }; }
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434 ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438 { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1448 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1450 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1458 ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460 ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464 { (exit 1); exit 1; }; }
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1470 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1472 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1480 ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482 ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486 { (exit 1); exit 1; }; }
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1494 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500 test "$program_prefix$program_suffix$program_transform_name" = \
1502 program_prefix=${target_alias}-
1504 # Determine the noncanonical target name, for directory use.
1505 case ${build_alias} in
1506 "") build_noncanonical=${build} ;;
1507 *) build_noncanonical=${build_alias} ;;
1510 case ${host_alias} in
1511 "") host_noncanonical=${build_noncanonical} ;;
1512 *) host_noncanonical=${host_alias} ;;
1515 case ${target_alias} in
1516 "") target_noncanonical=${host_noncanonical} ;;
1517 *) target_noncanonical=${target_alias} ;;
1523 # Determine the target- and build-specific subdirectories
1524 # Prefix 'build-
' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528 || test -d $srcdir/../host-${host_noncanonical}; then
1529 host_subdir="host-${host_noncanonical}"
1534 target_subdir=${target_noncanonical}
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $. echo might interpret backslashes.
1544 # By default was `s,x,x', remove it
if useless.
1545 cat <<\_ACEOF
>conftest.
sed
1546 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1548 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1564 library_path_setting
="contains current directory"
1567 library_path_setting
="ok"
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581 { (exit 1); exit 1; }; }
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1595 gcc_exec_prefix_setting
="contains current directory"
1598 gcc_exec_prefix_setting
="ok"
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: 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." >&2;}
1612 { (exit 1); exit 1; }; }
1619 # Specify the local prefix
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624 withval
="$with_local_prefix"
1625 case "${withval}" in
1626 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628 { (exit 1); exit 1; }; } ;;
1630 *) local_prefix
=$with_local_prefix ;;
1634 # Default local prefix if it is empty
1635 if test x
$local_prefix = x
; then
1636 local_prefix
=/usr
/local
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir
=
1643 # Specify the g++ header file directory
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647 withval
="$with_gxx_include_dir"
1648 case "${withval}" in
1649 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651 { (exit 1); exit 1; }; } ;;
1653 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1657 if test x
${gcc_gxx_include_dir} = x
; then
1658 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1659 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1661 libstdcxx_incdir
='c++/$(version)'
1662 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669 withval
="$with_cpp_install_dir"
1670 if test x
$withval = xyes
; then
1671 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673 { (exit 1); exit 1; }; }
1674 elif test x
$withval != xno
; then
1675 cpp_install_dir
=$withval
1679 # We would like to our source tree to be readonly. However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689 enableval
="$enable_generated_files_in_srcdir"
1690 generated_files_in_srcdir
=$enableval
1692 generated_files_in_srcdir
=no
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1698 if test "$generated_files_in_srcdir" = "yes"; then
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713 withval
="$with_gnu_ld"
1714 gnu_ld_flag
="$with_gnu_ld"
1719 # With pre-defined ld
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1724 DEFAULT_LINKER
="$with_ld"
1726 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1727 if test ! -x "$DEFAULT_LINKER"; then
1728 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730 { (exit 1); exit 1; }; }
1731 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1735 cat >>confdefs.h
<<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1744 if test x
"$gnu_ld_flag" = x
"no"; then
1745 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1748 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1752 echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1756 # With demangler in GNU ld
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760 withval
="$with_demangler_in_ld"
1761 demangler_in_ld
="$with_demangler_in_ld"
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774 withval
="$with_gnu_as"
1775 gas_flag
="$with_gnu_as"
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1784 DEFAULT_ASSEMBLER
="$with_as"
1786 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1787 if test ! -x "$DEFAULT_ASSEMBLER"; then
1788 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790 { (exit 1); exit 1; }; }
1791 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1795 cat >>confdefs.h
<<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1804 if test x
"$gas_flag" = x
"no"; then
1805 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1808 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1829 # Find the native compiler
1831 ac_cpp
='$CPP $CPPFLAGS'
1832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC
="$CC" # Let the user override the test.
1846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir
=.
1851 for ac_exec_ext
in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 if test -n "$CC"; then
1864 echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1872 if test -z "$ac_cv_prog_CC"; then
1874 # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc
; ac_word
=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 if test -n "$ac_ct_CC"; then
1882 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1888 test -z "$as_dir" && as_dir
=.
1889 for ac_exec_ext
in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_ac_ct_CC
="gcc"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1914 if test -z "$CC"; then
1915 if test -n "$ac_tool_prefix"; then
1916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1923 if test -n "$CC"; then
1924 ac_cv_prog_CC
="$CC" # Let the user override the test.
1926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1930 test -z "$as_dir" && as_dir
=.
1931 for ac_exec_ext
in '' $ac_executable_extensions; do
1932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 if test -n "$CC"; then
1944 echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1952 if test -z "$ac_cv_prog_CC"; then
1954 # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc
; ac_word
=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$ac_ct_CC"; then
1962 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir
=.
1969 for ac_exec_ext
in '' $ac_executable_extensions; do
1970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971 ac_cv_prog_ac_ct_CC
="cc"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1985 echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1995 if test -z "$CC"; then
1996 # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc
; ac_word
=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$CC"; then
2004 ac_cv_prog_CC
="$CC" # Let the user override the test.
2007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir
=.
2012 for ac_exec_ext
in '' $ac_executable_extensions; do
2013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015 ac_prog_rejected
=yes
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 if test $ac_prog_rejected = yes; then
2026 # We found a bogon in the path, so make sure we never use it.
2027 set dummy
$ac_cv_prog_CC
2029 if test $# != 0; then
2030 # We chose a different compiler from the bogus one.
2031 # However, it has the same basename, so the bogon will be chosen
2032 # first if we set CC to just the basename; use the full file name.
2034 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2040 if test -n "$CC"; then
2041 echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2044 echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2049 if test -z "$CC"; then
2050 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC
="$CC" # Let the user override the test.
2063 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir
=.
2068 for ac_exec_ext
in '' $ac_executable_extensions; do
2069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2088 test -n "$CC" && break
2091 if test -z "$CC"; then
2095 # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy
$ac_prog; ac_word
=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 if test -n "$ac_ct_CC"; then
2103 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir
=.
2110 for ac_exec_ext
in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 ac_cv_prog_ac_ct_CC
="$ac_prog"
2113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2126 echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2130 test -n "$ac_ct_CC" && break
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143 { (exit 1); exit 1; }; }
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147 "checking for C compiler version" >&5
2148 ac_compiler
=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }
2165 cat >conftest.
$ac_ext <<_ACEOF
2168 cat confdefs.h
>>conftest.
$ac_ext
2169 cat >>conftest.
$ac_ext <<_ACEOF
2170 /* end confdefs.h. */
2180 ac_clean_files_save
=$ac_clean_files
2181 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189 (eval $ac_link_default) 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Find the output, starting from the most likely. This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200 # b.out is created by i960 compilers.
2201 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2203 test -f "$ac_file" ||
continue
2205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2208 # This is the source file.
2211 # We found the default executable, but exeext='' is most
2215 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216 # FIXME: I believe we export ac_cv_exeext for Libtool,
2217 # but it would be cool to find out if it's true. Does anybody
2218 # maintain Libtool? --akim.
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.
$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext
=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2240 # Check the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try
='./$ac_file'
2248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 if test "$cross_compiling" = maybe
; then
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2271 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2272 ac_clean_files
=$ac_clean_files_save
2273 # Check the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283 (eval $ac_link) 2>&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; then
2287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 for ac_file
in conftest.exe conftest conftest.
*; do
2292 test -f "$ac_file" ||
continue
2294 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2295 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest
$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2313 rm -f conftest.
$ac_ext
2314 EXEEXT
=$ac_cv_exeext
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.
$ac_ext <<_ACEOF
2324 cat confdefs.h
>>conftest.
$ac_ext
2325 cat >>conftest.
$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338 (eval $ac_compile) 2>&5
2340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341 (exit $ac_status); }; then
2342 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2345 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2350 echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.
$ac_ext >&5
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357 { (exit 1); exit 1; }; }
2360 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT
=$ac_cv_objext
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 cat >conftest.
$ac_ext <<_ACEOF
2374 cat confdefs.h
>>conftest.
$ac_ext
2375 cat >>conftest.
$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2389 rm -f conftest.
$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>conftest.er1
2393 grep -v '^ *+' conftest.er1
>conftest.err
2395 cat conftest.err
>&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
2398 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try
='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.
$ac_ext >&5
2417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2418 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2421 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2424 ac_test_CFLAGS
=${CFLAGS+set}
2425 ac_save_CFLAGS
=$CFLAGS
2427 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 cat >conftest.
$ac_ext <<_ACEOF
2435 cat confdefs.h
>>conftest.
$ac_ext
2436 cat >>conftest.
$ac_ext <<_ACEOF
2437 /* end confdefs.h. */
2447 rm -f conftest.
$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449 (eval $ac_compile) 2>conftest.er1
2451 grep -v '^ *+' conftest.er1
>conftest.err
2453 cat conftest.err
>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; } &&
2462 { ac_try
='test -s conftest.$ac_objext'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; }; then
2470 echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.
$ac_ext >&5
2475 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2477 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2478 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2479 if test "$ac_test_CFLAGS" = set; then
2480 CFLAGS
=$ac_save_CFLAGS
2481 elif test $ac_cv_prog_cc_g = yes; then
2482 if test "$GCC" = yes; then
2488 if test "$GCC" = yes; then
2494 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2495 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2496 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 ac_cv_prog_cc_stdc
=no
2501 cat >conftest.
$ac_ext <<_ACEOF
2504 cat confdefs.h
>>conftest.
$ac_ext
2505 cat >>conftest.
$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2509 #include <sys/types.h>
2510 #include <sys/stat.h>
2511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2512 struct buf { int x; };
2513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2514 static char *e (p, i)
2520 static char *f (char * (*g) (char **, int), char **p, ...)
2525 s = g (p, va_arg (v,int));
2530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2531 function prototypes and stuff, but not '\xHH' hex character constants.
2532 These don't provoke an error unfortunately, instead are silently treated
2533 as 'x'. The following induces an error, until -std1 is added to get
2534 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2535 array size at least. It's necessary to write '\x00'==0 to get something
2536 that's true only with -std1. */
2537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539 int test (int i, double x);
2540 struct s1 {int (*f) (int a);};
2541 struct s2 {int (*f) (double a);};
2542 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2548 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2553 # Don't try gcc -ansi; that turns off useful extensions and
2554 # breaks some systems' header files.
2555 # AIX -qlanglvl=ansi
2556 # Ultrix and OSF/1 -std1
2557 # HP-UX 10.20 and later -Ae
2558 # HP-UX older versions -Aa -D_HPUX_SOURCE
2559 # SVR4 -Xc -D__EXTENSIONS__
2560 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562 CC
="$ac_save_CC $ac_arg"
2563 rm -f conftest.
$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565 (eval $ac_compile) 2>conftest.er1
2567 grep -v '^ *+' conftest.er1
>conftest.err
2569 cat conftest.err
>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } &&
2572 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); }; } &&
2578 { ac_try
='test -s conftest.$ac_objext'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; }; then
2584 ac_cv_prog_cc_stdc
=$ac_arg
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.
$ac_ext >&5
2591 rm -f conftest.err conftest.
$ac_objext
2593 rm -f conftest.
$ac_ext conftest.
$ac_objext
2598 case "x$ac_cv_prog_cc_stdc" in
2600 echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2603 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2608 # Some people use a C++ compiler to compile C. Since we use `exit',
2609 # in C++ we need to declare it. In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.
$ac_ext <<_ACEOF
2617 rm -f conftest.
$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619 (eval $ac_compile) 2>conftest.er1
2621 grep -v '^ *+' conftest.er1
>conftest.err
2623 cat conftest.err
>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try
='test -s conftest.$ac_objext'
2633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2638 for ac_declaration
in \
2640 'extern "C" void std::exit (int) throw (); using std::exit;' \
2641 'extern "C" void std::exit (int); using std::exit;' \
2642 'extern "C" void exit (int) throw ();' \
2643 'extern "C" void exit (int);' \
2646 cat >conftest.
$ac_ext <<_ACEOF
2649 cat confdefs.h
>>conftest.
$ac_ext
2650 cat >>conftest.
$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2662 rm -f conftest.
$ac_objext
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664 (eval $ac_compile) 2>conftest.er1
2666 grep -v '^ *+' conftest.er1
>conftest.err
2668 cat conftest.err
>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); } &&
2671 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; } &&
2677 { ac_try
='test -s conftest.$ac_objext'
2678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }; }; then
2685 echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.
$ac_ext >&5
2690 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2691 cat >conftest.
$ac_ext <<_ACEOF
2694 cat confdefs.h
>>conftest.
$ac_ext
2695 cat >>conftest.
$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2706 rm -f conftest.
$ac_objext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 (eval $ac_compile) 2>conftest.er1
2710 grep -v '^ *+' conftest.er1
>conftest.err
2712 cat conftest.err
>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try
='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.
$ac_ext >&5
2733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2736 if test -n "$ac_declaration"; then
2737 echo '#ifdef __cplusplus' >>confdefs.h
2738 echo $ac_declaration >>confdefs.h
2739 echo '#endif' >>confdefs.h
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.
$ac_ext >&5
2747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2749 ac_cpp
='$CPP $CPPFLAGS'
2750 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2754 if test "x$CC" != xcc
; then
2755 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2756 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2758 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2759 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2761 set dummy
$CC; ac_cc
=`echo $2 |
2762 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2763 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 # Make sure it works both with $CC and with simple cc.
2782 # We do the test twice because some compilers refuse to overwrite an
2783 # existing .o file with -o, though they will create one.
2784 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2785 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); };
2796 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2797 if test "x$CC" != xcc
; then
2798 # Test first that cc exists at all.
2799 if { ac_try
='cc -c conftest.$ac_ext >&5'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; }; then
2805 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2806 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); };
2820 # cc exists but doesn't like -o.
2821 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2826 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2831 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2832 echo "$as_me:$LINENO: result: yes" >&5
2833 echo "${ECHO_T}yes" >&6
2835 echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6
2838 cat >>confdefs.h
<<\_ACEOF
2839 #define NO_MINUS_C_MINUS_O 1
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir
=`cd $ac_aux_dir && pwd`
2847 # FIXME: we rely on the cache variable name because
2848 # there is no other way.
2850 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2851 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2852 # Losing compiler, so override with the script.
2853 # FIXME: It is wrong to rewrite CC.
2854 # But if we don't then we get into trouble of one sort or another.
2855 # A longer-term fix would be to have automake use am__CC in this case,
2856 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2857 CC
="$am_aux_dir/compile $CC"
2860 # autoconf is lame and doesn't give us any substitution variable for this.
2861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2862 NO_MINUS_C_MINUS_O
=yes
2864 OUTPUT_OPTION
='-o $@'
2869 # -------------------------
2870 # Check C compiler features
2871 # -------------------------
2874 ac_cpp
='$CPP $CPPFLAGS'
2875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2880 # On Suns, sometimes $CPP names a directory.
2881 if test -n "$CPP" && test -d "$CPP"; then
2884 if test -z "$CPP"; then
2885 if test "${ac_cv_prog_CPP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 # Double quotes because CPP needs to be expanded
2889 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2892 for ac_c_preproc_warn_flag
in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.
$ac_ext <<_ACEOF
2903 cat confdefs.h
>>conftest.
$ac_ext
2904 cat >>conftest.
$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 # include <limits.h>
2909 # include <assert.h>
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1
>conftest.err
2918 cat conftest.err
>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev
/null
; then
2921 if test -s conftest.err
; then
2922 ac_cpp_err
=$ac_c_preproc_warn_flag
2923 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2930 if test -z "$ac_cpp_err"; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.
$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.
$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.
$ac_ext <<_ACEOF
2946 cat confdefs.h
>>conftest.
$ac_ext
2947 cat >>conftest.
$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1
>conftest.err
2956 cat conftest.err
>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev
/null
; then
2959 if test -s conftest.err
; then
2960 ac_cpp_err
=$ac_c_preproc_warn_flag
2961 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.
$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.
$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.
$ac_ext
2984 if $ac_preproc_ok; then
2996 echo "$as_me:$LINENO: result: $CPP" >&5
2997 echo "${ECHO_T}$CPP" >&6
2999 for ac_c_preproc_warn_flag
in '' yes
3001 # Use a header file that comes with gcc, so configuring glibc
3002 # with a fresh cross-compiler works.
3003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3004 # <limits.h> exists even on freestanding compilers.
3005 # On the NeXT, cc -E runs the code through the compiler's parser,
3006 # not just through cpp. "Syntax error" is here to catch this case.
3007 cat >conftest.
$ac_ext <<_ACEOF
3010 cat confdefs.h
>>conftest.
$ac_ext
3011 cat >>conftest.
$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3014 # include <limits.h>
3016 # include <assert.h>
3020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3023 grep -v '^ *+' conftest.er1
>conftest.err
3025 cat conftest.err
>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev
/null
; then
3028 if test -s conftest.err
; then
3029 ac_cpp_err
=$ac_c_preproc_warn_flag
3030 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3037 if test -z "$ac_cpp_err"; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3043 # Broken: fails on valid input.
3046 rm -f conftest.err conftest.
$ac_ext
3048 # OK, works on sane cases. Now check whether non-existent headers
3049 # can be detected and how.
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #include <ac_nonexistent.h>
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3061 grep -v '^ *+' conftest.er1
>conftest.err
3063 cat conftest.err
>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); } >/dev
/null
; then
3066 if test -s conftest.err
; then
3067 ac_cpp_err
=$ac_c_preproc_warn_flag
3068 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3075 if test -z "$ac_cpp_err"; then
3076 # Broken: success on invalid input.
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.
$ac_ext >&5
3082 # Passes both tests.
3086 rm -f conftest.err conftest.
$ac_ext
3089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3090 rm -f conftest.err conftest.
$ac_ext
3091 if $ac_preproc_ok; then
3094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&5
3096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3097 See \`config.log' for more details." >&2;}
3098 { (exit 1); exit 1; }; }
3102 ac_cpp
='$CPP $CPPFLAGS'
3103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3108 echo "$as_me:$LINENO: checking for inline" >&5
3109 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3110 if test "${ac_cv_c_inline+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 for ac_kw
in inline __inline__ __inline
; do
3115 cat >conftest.
$ac_ext <<_ACEOF
3118 cat confdefs.h
>>conftest.
$ac_ext
3119 cat >>conftest.
$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3123 static $ac_kw foo_t static_foo () {return 0; }
3124 $ac_kw foo_t foo () {return 0; }
3128 rm -f conftest.
$ac_objext
3129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 (eval $ac_compile) 2>conftest.er1
3132 grep -v '^ *+' conftest.er1
>conftest.err
3134 cat conftest.err
>&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try
='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c_inline
=$ac_kw; break
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3163 case $ac_cv_c_inline in
3166 case $ac_cv_c_inline in
3168 *) ac_val
=$ac_cv_c_inline;;
3170 cat >>confdefs.h
<<_ACEOF
3172 #define inline $ac_val
3179 # sizeof(char) is 1 by definition.
3181 echo "$as_me:$LINENO: checking for egrep" >&5
3182 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3183 if test "${ac_cv_prog_egrep+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3187 then ac_cv_prog_egrep
='grep -E'
3188 else ac_cv_prog_egrep
='egrep'
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3192 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3193 EGREP
=$ac_cv_prog_egrep
3196 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3198 if test "${ac_cv_header_stdc+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3204 cat confdefs.h
>>conftest.
$ac_ext
3205 cat >>conftest.
$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3220 rm -f conftest.
$ac_objext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>conftest.er1
3224 grep -v '^ *+' conftest.er1
>conftest.err
3226 cat conftest.err
>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try
='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_header_stdc
=yes
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.
$ac_ext >&5
3246 ac_cv_header_stdc
=no
3248 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3250 if test $ac_cv_header_stdc = yes; then
3251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3252 cat >conftest.
$ac_ext <<_ACEOF
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3262 $EGREP "memchr" >/dev
/null
2>&1; then
3265 ac_cv_header_stdc
=no
3271 if test $ac_cv_header_stdc = yes; then
3272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3273 cat >conftest.
$ac_ext <<_ACEOF
3276 cat confdefs.h
>>conftest.
$ac_ext
3277 cat >>conftest.
$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283 $EGREP "free" >/dev
/null
2>&1; then
3286 ac_cv_header_stdc
=no
3292 if test $ac_cv_header_stdc = yes; then
3293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3294 if test "$cross_compiling" = yes; then
3297 cat >conftest.
$ac_ext <<_ACEOF
3300 cat confdefs.h
>>conftest.
$ac_ext
3301 cat >>conftest.
$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3304 #if ((' ' & 0x0FF) == 0x020)
3305 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3306 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3308 # define ISLOWER(c) \
3309 (('a' <= (c) && (c) <= 'i') \
3310 || ('j' <= (c) && (c) <= 'r') \
3311 || ('s' <= (c) && (c) <= 'z'))
3312 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3320 for (i = 0; i < 256; i++)
3321 if (XOR (islower (i), ISLOWER (i))
3322 || toupper (i) != TOUPPER (i))
3327 rm -f conftest
$ac_exeext
3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3329 (eval $ac_link) 2>&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3340 echo "$as_me: program exited with status $ac_status" >&5
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.
$ac_ext >&5
3345 ac_cv_header_stdc
=no
3347 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3351 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3352 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3353 if test $ac_cv_header_stdc = yes; then
3355 cat >>confdefs.h
<<\_ACEOF
3356 #define STDC_HEADERS 1
3361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3371 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3372 inttypes.h stdint.h unistd.h
3374 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3375 echo "$as_me:$LINENO: checking for $ac_header" >&5
3376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 cat >conftest.
$ac_ext <<_ACEOF
3383 cat confdefs.h
>>conftest.
$ac_ext
3384 cat >>conftest.
$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 $ac_includes_default
3388 #include <$ac_header>
3390 rm -f conftest.
$ac_objext
3391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392 (eval $ac_compile) 2>conftest.er1
3394 grep -v '^ *+' conftest.er1
>conftest.err
3396 cat conftest.err
>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } &&
3399 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try
='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 eval "$as_ac_Header=yes"
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.
$ac_ext >&5
3416 eval "$as_ac_Header=no"
3418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3421 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3423 cat >>confdefs.h
<<_ACEOF
3424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3432 echo "$as_me:$LINENO: checking for void *" >&5
3433 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3434 if test "${ac_cv_type_void_p+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 cat >conftest.
$ac_ext <<_ACEOF
3440 cat confdefs.h
>>conftest.
$ac_ext
3441 cat >>conftest.
$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3443 $ac_includes_default
3449 if (sizeof (void *))
3455 rm -f conftest.
$ac_objext
3456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457 (eval $ac_compile) 2>conftest.er1
3459 grep -v '^ *+' conftest.er1
>conftest.err
3461 cat conftest.err
>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; } &&
3470 { ac_try
='test -s conftest.$ac_objext'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3476 ac_cv_type_void_p
=yes
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.
$ac_ext >&5
3481 ac_cv_type_void_p
=no
3483 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3485 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3486 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3488 echo "$as_me:$LINENO: checking size of void *" >&5
3489 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3490 if test "${ac_cv_sizeof_void_p+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 if test "$ac_cv_type_void_p" = yes; then
3494 # The cast to unsigned long works around a bug in the HP C Compiler
3495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3497 # This bug is HP SR number 8606223364.
3498 if test "$cross_compiling" = yes; then
3499 # Depending upon the size, compute the lo and hi bounds.
3500 cat >conftest.
$ac_ext <<_ACEOF
3503 cat confdefs.h
>>conftest.
$ac_ext
3504 cat >>conftest.
$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 $ac_includes_default
3510 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3517 rm -f conftest.
$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>conftest.er1
3521 grep -v '^ *+' conftest.er1
>conftest.err
3523 cat conftest.err
>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; } &&
3532 { ac_try
='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3540 cat >conftest.
$ac_ext <<_ACEOF
3543 cat confdefs.h
>>conftest.
$ac_ext
3544 cat >>conftest.
$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3546 $ac_includes_default
3550 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3557 rm -f conftest.
$ac_objext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3559 (eval $ac_compile) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1
>conftest.err
3563 cat conftest.err
>&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try
='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_hi
=$ac_mid; break
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.
$ac_ext >&5
3583 ac_lo
=`expr $ac_mid + 1`
3584 if test $ac_lo -le $ac_mid; then
3588 ac_mid
=`expr 2 '*' $ac_mid + 1`
3590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.
$ac_ext >&5
3596 cat >conftest.
$ac_ext <<_ACEOF
3599 cat confdefs.h
>>conftest.
$ac_ext
3600 cat >>conftest.
$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3602 $ac_includes_default
3606 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3613 rm -f conftest.
$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3617 grep -v '^ *+' conftest.er1
>conftest.err
3619 cat conftest.err
>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; } &&
3628 { ac_try
='test -s conftest.$ac_objext'
3629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; }; then
3636 cat >conftest.
$ac_ext <<_ACEOF
3639 cat confdefs.h
>>conftest.
$ac_ext
3640 cat >>conftest.
$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 $ac_includes_default
3646 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3653 rm -f conftest.
$ac_objext
3654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655 (eval $ac_compile) 2>conftest.er1
3657 grep -v '^ *+' conftest.er1
>conftest.err
3659 cat conftest.err
>&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } &&
3668 { ac_try
='test -s conftest.$ac_objext'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; }; then
3674 ac_lo
=$ac_mid; break
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.
$ac_ext >&5
3679 ac_hi
=`expr '(' $ac_mid ')' - 1`
3680 if test $ac_mid -le $ac_hi; then
3684 ac_mid
=`expr 2 '*' $ac_mid`
3686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.
$ac_ext >&5
3694 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3697 # Binary search between lo and hi bounds.
3698 while test "x$ac_lo" != "x$ac_hi"; do
3699 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3700 cat >conftest.
$ac_ext <<_ACEOF
3703 cat confdefs.h
>>conftest.
$ac_ext
3704 cat >>conftest.
$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706 $ac_includes_default
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3717 rm -f conftest.
$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719 (eval $ac_compile) 2>conftest.er1
3721 grep -v '^ *+' conftest.er1
>conftest.err
3723 cat conftest.err
>&5
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); } &&
3726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; } &&
3732 { ac_try
='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3740 echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.
$ac_ext >&5
3743 ac_lo
=`expr '(' $ac_mid ')' + 1`
3745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3748 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3749 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3750 See \`config.log' for more details." >&5
3751 echo "$as_me: error: cannot compute sizeof (void *), 77
3752 See \`config.log' for more details." >&2;}
3753 { (exit 1); exit 1; }; } ;;
3756 if test "$cross_compiling" = yes; then
3757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3758 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3759 { (exit 1); exit 1; }; }
3761 cat >conftest.
$ac_ext <<_ACEOF
3764 cat confdefs.h
>>conftest.
$ac_ext
3765 cat >>conftest.
$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 long longval () { return (long) (sizeof (void *)); }
3769 unsigned long ulongval () { return (long) (sizeof (void *)); }
3776 FILE *f = fopen ("conftest.val", "w");
3779 if (((long) (sizeof (void *))) < 0)
3781 long i = longval ();
3782 if (i != ((long) (sizeof (void *))))
3784 fprintf (f, "%ld\n", i);
3788 unsigned long i = ulongval ();
3789 if (i != ((long) (sizeof (void *))))
3791 fprintf (f, "%lu\n", i);
3793 exit (ferror (f) || fclose (f) != 0);
3799 rm -f conftest
$ac_exeext
3800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801 (eval $ac_link) 2>&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); }; }; then
3810 ac_cv_sizeof_void_p
=`cat conftest.val`
3812 echo "$as_me: program exited with status $ac_status" >&5
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.
$ac_ext >&5
3817 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: cannot compute sizeof (void *), 77
3820 See \`config.log' for more details." >&2;}
3821 { (exit 1); exit 1; }; }
3823 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3828 ac_cv_sizeof_void_p
=0
3831 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3832 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3833 cat >>confdefs.h
<<_ACEOF
3834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3838 echo "$as_me:$LINENO: checking for short" >&5
3839 echo $ECHO_N "checking for short... $ECHO_C" >&6
3840 if test "${ac_cv_type_short+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 $ac_includes_default
3861 rm -f conftest.
$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863 (eval $ac_compile) 2>conftest.er1
3865 grep -v '^ *+' conftest.er1
>conftest.err
3867 cat conftest.err
>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } &&
3870 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } &&
3876 { ac_try
='test -s conftest.$ac_objext'
3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }; }; then
3882 ac_cv_type_short
=yes
3884 echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.
$ac_ext >&5
3889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3891 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3892 echo "${ECHO_T}$ac_cv_type_short" >&6
3894 echo "$as_me:$LINENO: checking size of short" >&5
3895 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3896 if test "${ac_cv_sizeof_short+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 if test "$ac_cv_type_short" = yes; then
3900 # The cast to unsigned long works around a bug in the HP C Compiler
3901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3903 # This bug is HP SR number 8606223364.
3904 if test "$cross_compiling" = yes; then
3905 # Depending upon the size, compute the lo and hi bounds.
3906 cat >conftest.
$ac_ext <<_ACEOF
3909 cat confdefs.h
>>conftest.
$ac_ext
3910 cat >>conftest.
$ac_ext <<_ACEOF
3911 /* end confdefs.h. */
3912 $ac_includes_default
3916 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3923 rm -f conftest.
$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925 (eval $ac_compile) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1
>conftest.err
3929 cat conftest.err
>&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try
='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3946 cat >conftest.
$ac_ext <<_ACEOF
3949 cat confdefs.h
>>conftest.
$ac_ext
3950 cat >>conftest.
$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3952 $ac_includes_default
3956 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3963 rm -f conftest.
$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1
>conftest.err
3969 cat conftest.err
>&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try
='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_hi
=$ac_mid; break
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.
$ac_ext >&5
3989 ac_lo
=`expr $ac_mid + 1`
3990 if test $ac_lo -le $ac_mid; then
3994 ac_mid
=`expr 2 '*' $ac_mid + 1`
3996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3999 echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.
$ac_ext >&5
4002 cat >conftest.
$ac_ext <<_ACEOF
4005 cat confdefs.h
>>conftest.
$ac_ext
4006 cat >>conftest.
$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4008 $ac_includes_default
4012 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4019 rm -f conftest.
$ac_objext
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>conftest.er1
4023 grep -v '^ *+' conftest.er1
>conftest.err
4025 cat conftest.err
>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } &&
4028 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); }; } &&
4034 { ac_try
='test -s conftest.$ac_objext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4042 cat >conftest.
$ac_ext <<_ACEOF
4045 cat confdefs.h
>>conftest.
$ac_ext
4046 cat >>conftest.
$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4052 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4059 rm -f conftest.
$ac_objext
4060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 (eval $ac_compile) 2>conftest.er1
4063 grep -v '^ *+' conftest.er1
>conftest.err
4065 cat conftest.err
>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; } &&
4074 { ac_try
='test -s conftest.$ac_objext'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then
4080 ac_lo
=$ac_mid; break
4082 echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.
$ac_ext >&5
4085 ac_hi
=`expr '(' $ac_mid ')' - 1`
4086 if test $ac_mid -le $ac_hi; then
4090 ac_mid
=`expr 2 '*' $ac_mid`
4092 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4095 echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.
$ac_ext >&5
4100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4102 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4103 # Binary search between lo and hi bounds.
4104 while test "x$ac_lo" != "x$ac_hi"; do
4105 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4106 cat >conftest.
$ac_ext <<_ACEOF
4109 cat confdefs.h
>>conftest.
$ac_ext
4110 cat >>conftest.
$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4112 $ac_includes_default
4116 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4123 rm -f conftest.
$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>conftest.er1
4127 grep -v '^ *+' conftest.er1
>conftest.err
4129 cat conftest.err
>&5
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try
='test -s conftest.$ac_objext'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4146 echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.
$ac_ext >&5
4149 ac_lo
=`expr '(' $ac_mid ')' + 1`
4151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4154 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4155 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4156 See \`config.log' for more details." >&5
4157 echo "$as_me: error: cannot compute sizeof (short), 77
4158 See \`config.log' for more details." >&2;}
4159 { (exit 1); exit 1; }; } ;;
4162 if test "$cross_compiling" = yes; then
4163 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4164 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4165 { (exit 1); exit 1; }; }
4167 cat >conftest.
$ac_ext <<_ACEOF
4170 cat confdefs.h
>>conftest.
$ac_ext
4171 cat >>conftest.
$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173 $ac_includes_default
4174 long longval () { return (long) (sizeof (short)); }
4175 unsigned long ulongval () { return (long) (sizeof (short)); }
4182 FILE *f = fopen ("conftest.val", "w");
4185 if (((long) (sizeof (short))) < 0)
4187 long i = longval ();
4188 if (i != ((long) (sizeof (short))))
4190 fprintf (f, "%ld\n", i);
4194 unsigned long i = ulongval ();
4195 if (i != ((long) (sizeof (short))))
4197 fprintf (f, "%lu\n", i);
4199 exit (ferror (f) || fclose (f) != 0);
4205 rm -f conftest
$ac_exeext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4207 (eval $ac_link) 2>&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 ac_cv_sizeof_short
=`cat conftest.val`
4218 echo "$as_me: program exited with status $ac_status" >&5
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.
$ac_ext >&5
4223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4224 See \`config.log' for more details." >&5
4225 echo "$as_me: error: cannot compute sizeof (short), 77
4226 See \`config.log' for more details." >&2;}
4227 { (exit 1); exit 1; }; }
4229 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4234 ac_cv_sizeof_short
=0
4237 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4238 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4239 cat >>confdefs.h
<<_ACEOF
4240 #define SIZEOF_SHORT $ac_cv_sizeof_short
4244 echo "$as_me:$LINENO: checking for int" >&5
4245 echo $ECHO_N "checking for int... $ECHO_C" >&6
4246 if test "${ac_cv_type_int+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 cat >conftest.
$ac_ext <<_ACEOF
4252 cat confdefs.h
>>conftest.
$ac_ext
4253 cat >>conftest.
$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4255 $ac_includes_default
4267 rm -f conftest.
$ac_objext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4269 (eval $ac_compile) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1
>conftest.err
4273 cat conftest.err
>&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try
='test -s conftest.$ac_objext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.
$ac_ext >&5
4295 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4297 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_int" >&6
4300 echo "$as_me:$LINENO: checking size of int" >&5
4301 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4302 if test "${ac_cv_sizeof_int+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
4305 if test "$ac_cv_type_int" = yes; then
4306 # The cast to unsigned long works around a bug in the HP C Compiler
4307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4309 # This bug is HP SR number 8606223364.
4310 if test "$cross_compiling" = yes; then
4311 # Depending upon the size, compute the lo and hi bounds.
4312 cat >conftest.
$ac_ext <<_ACEOF
4315 cat confdefs.h
>>conftest.
$ac_ext
4316 cat >>conftest.
$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318 $ac_includes_default
4322 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4329 rm -f conftest.
$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331 (eval $ac_compile) 2>conftest.er1
4333 grep -v '^ *+' conftest.er1
>conftest.err
4335 cat conftest.err
>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } &&
4338 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try
='test -s conftest.$ac_objext'
4345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4352 cat >conftest.
$ac_ext <<_ACEOF
4355 cat confdefs.h
>>conftest.
$ac_ext
4356 cat >>conftest.
$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358 $ac_includes_default
4362 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4369 rm -f conftest.
$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>conftest.er1
4373 grep -v '^ *+' conftest.er1
>conftest.err
4375 cat conftest.err
>&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try
='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_hi
=$ac_mid; break
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.
$ac_ext >&5
4395 ac_lo
=`expr $ac_mid + 1`
4396 if test $ac_lo -le $ac_mid; then
4400 ac_mid
=`expr 2 '*' $ac_mid + 1`
4402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.
$ac_ext >&5
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4418 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4425 rm -f conftest.
$ac_objext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4429 grep -v '^ *+' conftest.er1
>conftest.err
4431 cat conftest.err
>&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; } &&
4440 { ac_try
='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
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))) >= $ac_mid)];
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" || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try
='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_lo
=$ac_mid; break
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.
$ac_ext >&5
4491 ac_hi
=`expr '(' $ac_mid ')' - 1`
4492 if test $ac_mid -le $ac_hi; then
4496 ac_mid
=`expr 2 '*' $ac_mid`
4498 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.
$ac_ext >&5
4506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4509 # Binary search between lo and hi bounds.
4510 while test "x$ac_lo" != "x$ac_hi"; do
4511 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4512 cat >conftest.
$ac_ext <<_ACEOF
4515 cat confdefs.h
>>conftest.
$ac_ext
4516 cat >>conftest.
$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 $ac_includes_default
4522 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4529 rm -f conftest.
$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1
>conftest.err
4535 cat conftest.err
>&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try
='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.
$ac_ext >&5
4555 ac_lo
=`expr '(' $ac_mid ')' + 1`
4557 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4560 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4561 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4562 See \`config.log' for more details." >&5
4563 echo "$as_me: error: cannot compute sizeof (int), 77
4564 See \`config.log' for more details." >&2;}
4565 { (exit 1); exit 1; }; } ;;
4568 if test "$cross_compiling" = yes; then
4569 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4570 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4571 { (exit 1); exit 1; }; }
4573 cat >conftest.
$ac_ext <<_ACEOF
4576 cat confdefs.h
>>conftest.
$ac_ext
4577 cat >>conftest.
$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4580 long longval () { return (long) (sizeof (int)); }
4581 unsigned long ulongval () { return (long) (sizeof (int)); }
4588 FILE *f = fopen ("conftest.val", "w");
4591 if (((long) (sizeof (int))) < 0)
4593 long i = longval ();
4594 if (i != ((long) (sizeof (int))))
4596 fprintf (f, "%ld\n", i);
4600 unsigned long i = ulongval ();
4601 if (i != ((long) (sizeof (int))))
4603 fprintf (f, "%lu\n", i);
4605 exit (ferror (f) || fclose (f) != 0);
4611 rm -f conftest
$ac_exeext
4612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4613 (eval $ac_link) 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_cv_sizeof_int
=`cat conftest.val`
4624 echo "$as_me: program exited with status $ac_status" >&5
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.
$ac_ext >&5
4629 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4630 See \`config.log' for more details." >&5
4631 echo "$as_me: error: cannot compute sizeof (int), 77
4632 See \`config.log' for more details." >&2;}
4633 { (exit 1); exit 1; }; }
4635 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4643 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4644 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4645 cat >>confdefs.h
<<_ACEOF
4646 #define SIZEOF_INT $ac_cv_sizeof_int
4650 echo "$as_me:$LINENO: checking for long" >&5
4651 echo $ECHO_N "checking for long... $ECHO_C" >&6
4652 if test "${ac_cv_type_long+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 cat >conftest.
$ac_ext <<_ACEOF
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4661 $ac_includes_default
4673 rm -f conftest.
$ac_objext
4674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4677 grep -v '^ *+' conftest.er1
>conftest.err
4679 cat conftest.err
>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
4682 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; } &&
4688 { ac_try
='test -s conftest.$ac_objext'
4689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.
$ac_ext >&5
4701 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4703 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4704 echo "${ECHO_T}$ac_cv_type_long" >&6
4706 echo "$as_me:$LINENO: checking size of long" >&5
4707 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4708 if test "${ac_cv_sizeof_long+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test "$ac_cv_type_long" = yes; then
4712 # The cast to unsigned long works around a bug in the HP C Compiler
4713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4715 # This bug is HP SR number 8606223364.
4716 if test "$cross_compiling" = yes; then
4717 # Depending upon the size, compute the lo and hi bounds.
4718 cat >conftest.
$ac_ext <<_ACEOF
4721 cat confdefs.h
>>conftest.
$ac_ext
4722 cat >>conftest.
$ac_ext <<_ACEOF
4723 /* end confdefs.h. */
4724 $ac_includes_default
4728 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4735 rm -f conftest.
$ac_objext
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>conftest.er1
4739 grep -v '^ *+' conftest.er1
>conftest.err
4741 cat conftest.err
>&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; } &&
4750 { ac_try
='test -s conftest.$ac_objext'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; }; then
4758 cat >conftest.
$ac_ext <<_ACEOF
4761 cat confdefs.h
>>conftest.
$ac_ext
4762 cat >>conftest.
$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 $ac_includes_default
4768 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4775 rm -f conftest.
$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try
='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_hi
=$ac_mid; break
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.
$ac_ext >&5
4801 ac_lo
=`expr $ac_mid + 1`
4802 if test $ac_lo -le $ac_mid; then
4806 ac_mid
=`expr 2 '*' $ac_mid + 1`
4808 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.
$ac_ext >&5
4814 cat >conftest.
$ac_ext <<_ACEOF
4817 cat confdefs.h
>>conftest.
$ac_ext
4818 cat >>conftest.
$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 $ac_includes_default
4824 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4831 rm -f conftest.
$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1
>conftest.err
4837 cat conftest.err
>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; } &&
4846 { ac_try
='test -s conftest.$ac_objext'
4847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; }; then
4854 cat >conftest.
$ac_ext <<_ACEOF
4857 cat confdefs.h
>>conftest.
$ac_ext
4858 cat >>conftest.
$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 $ac_includes_default
4864 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4871 rm -f conftest.
$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; } &&
4886 { ac_try
='test -s conftest.$ac_objext'
4887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; }; then
4892 ac_lo
=$ac_mid; break
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.
$ac_ext >&5
4897 ac_hi
=`expr '(' $ac_mid ')' - 1`
4898 if test $ac_mid -le $ac_hi; then
4902 ac_mid
=`expr 2 '*' $ac_mid`
4904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.
$ac_ext >&5
4912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4915 # Binary search between lo and hi bounds.
4916 while test "x$ac_lo" != "x$ac_hi"; do
4917 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4918 cat >conftest.
$ac_ext <<_ACEOF
4921 cat confdefs.h
>>conftest.
$ac_ext
4922 cat >>conftest.
$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4924 $ac_includes_default
4928 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4935 rm -f conftest.
$ac_objext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4937 (eval $ac_compile) 2>conftest.er1
4939 grep -v '^ *+' conftest.er1
>conftest.err
4941 cat conftest.err
>&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } &&
4944 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; } &&
4950 { ac_try
='test -s conftest.$ac_objext'
4951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; }; then
4958 echo "$as_me: failed program was:" >&5
4959 sed 's/^/| /' conftest.
$ac_ext >&5
4961 ac_lo
=`expr '(' $ac_mid ')' + 1`
4963 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4966 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4967 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4968 See \`config.log' for more details." >&5
4969 echo "$as_me: error: cannot compute sizeof (long), 77
4970 See \`config.log' for more details." >&2;}
4971 { (exit 1); exit 1; }; } ;;
4974 if test "$cross_compiling" = yes; then
4975 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
4976 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
4977 { (exit 1); exit 1; }; }
4979 cat >conftest.
$ac_ext <<_ACEOF
4982 cat confdefs.h
>>conftest.
$ac_ext
4983 cat >>conftest.
$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 $ac_includes_default
4986 long longval () { return (long) (sizeof (long)); }
4987 unsigned long ulongval () { return (long) (sizeof (long)); }
4994 FILE *f = fopen ("conftest.val", "w");
4997 if (((long) (sizeof (long))) < 0)
4999 long i = longval ();
5000 if (i != ((long) (sizeof (long))))
5002 fprintf (f, "%ld\n", i);
5006 unsigned long i = ulongval ();
5007 if (i != ((long) (sizeof (long))))
5009 fprintf (f, "%lu\n", i);
5011 exit (ferror (f) || fclose (f) != 0);
5017 rm -f conftest
$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_sizeof_long
=`cat conftest.val`
5030 echo "$as_me: program exited with status $ac_status" >&5
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5036 See \`config.log' for more details." >&5
5037 echo "$as_me: error: cannot compute sizeof (long), 77
5038 See \`config.log' for more details." >&2;}
5039 { (exit 1); exit 1; }; }
5041 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5049 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5050 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5051 cat >>confdefs.h
<<_ACEOF
5052 #define SIZEOF_LONG $ac_cv_sizeof_long
5056 echo "$as_me:$LINENO: checking for long long" >&5
5057 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5058 if test "${ac_cv_type_long_long+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.
$ac_ext <<_ACEOF
5064 cat confdefs.h
>>conftest.
$ac_ext
5065 cat >>conftest.
$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 $ac_includes_default
5071 if ((long long *) 0)
5073 if (sizeof (long long))
5079 rm -f conftest.
$ac_objext
5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5081 (eval $ac_compile) 2>conftest.er1
5083 grep -v '^ *+' conftest.er1
>conftest.err
5085 cat conftest.err
>&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } &&
5088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); }; } &&
5094 { ac_try
='test -s conftest.$ac_objext'
5095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; }; then
5100 ac_cv_type_long_long
=yes
5102 echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.
$ac_ext >&5
5105 ac_cv_type_long_long
=no
5107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5110 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5111 if test $ac_cv_type_long_long = yes; then
5113 cat >>confdefs.h
<<_ACEOF
5114 #define HAVE_LONG_LONG 1
5117 echo "$as_me:$LINENO: checking for long long" >&5
5118 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5119 if test "${ac_cv_type_long_long+set}" = set; then
5120 echo $ECHO_N "(cached) $ECHO_C" >&6
5122 cat >conftest.
$ac_ext <<_ACEOF
5125 cat confdefs.h
>>conftest.
$ac_ext
5126 cat >>conftest.
$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 $ac_includes_default
5132 if ((long long *) 0)
5134 if (sizeof (long long))
5140 rm -f conftest.
$ac_objext
5141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5142 (eval $ac_compile) 2>conftest.er1
5144 grep -v '^ *+' conftest.er1
>conftest.err
5146 cat conftest.err
>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } &&
5149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try
='test -s conftest.$ac_objext'
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; }; then
5161 ac_cv_type_long_long
=yes
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.
$ac_ext >&5
5166 ac_cv_type_long_long
=no
5168 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5170 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5171 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5173 echo "$as_me:$LINENO: checking size of long long" >&5
5174 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5175 if test "${ac_cv_sizeof_long_long+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 if test "$ac_cv_type_long_long" = yes; then
5179 # The cast to unsigned long works around a bug in the HP C Compiler
5180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5182 # This bug is HP SR number 8606223364.
5183 if test "$cross_compiling" = yes; then
5184 # Depending upon the size, compute the lo and hi bounds.
5185 cat >conftest.
$ac_ext <<_ACEOF
5188 cat confdefs.h
>>conftest.
$ac_ext
5189 cat >>conftest.
$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 $ac_includes_default
5195 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5202 rm -f conftest.
$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1
>conftest.err
5208 cat conftest.err
>&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; } &&
5217 { ac_try
='test -s conftest.$ac_objext'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; }; then
5225 cat >conftest.
$ac_ext <<_ACEOF
5228 cat confdefs.h
>>conftest.
$ac_ext
5229 cat >>conftest.
$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 $ac_includes_default
5235 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5242 rm -f conftest.
$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244 (eval $ac_compile) 2>conftest.er1
5246 grep -v '^ *+' conftest.er1
>conftest.err
5248 cat conftest.err
>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; } &&
5257 { ac_try
='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_hi
=$ac_mid; break
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.
$ac_ext >&5
5268 ac_lo
=`expr $ac_mid + 1`
5269 if test $ac_lo -le $ac_mid; then
5273 ac_mid
=`expr 2 '*' $ac_mid + 1`
5275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.
$ac_ext >&5
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))) < 0)];
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" || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try
='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5321 cat >conftest.
$ac_ext <<_ACEOF
5324 cat confdefs.h
>>conftest.
$ac_ext
5325 cat >>conftest.
$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5327 $ac_includes_default
5331 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5338 rm -f conftest.
$ac_objext
5339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5342 grep -v '^ *+' conftest.er1
>conftest.err
5344 cat conftest.err
>&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; } &&
5353 { ac_try
='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 ac_lo
=$ac_mid; break
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.
$ac_ext >&5
5364 ac_hi
=`expr '(' $ac_mid ')' - 1`
5365 if test $ac_mid -le $ac_hi; then
5369 ac_mid
=`expr 2 '*' $ac_mid`
5371 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5379 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5382 # Binary search between lo and hi bounds.
5383 while test "x$ac_lo" != "x$ac_hi"; do
5384 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5385 cat >conftest.
$ac_ext <<_ACEOF
5388 cat confdefs.h
>>conftest.
$ac_ext
5389 cat >>conftest.
$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 $ac_includes_default
5395 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5402 rm -f conftest.
$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5406 grep -v '^ *+' conftest.er1
>conftest.err
5408 cat conftest.err
>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try
='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.
$ac_ext >&5
5428 ac_lo
=`expr '(' $ac_mid ')' + 1`
5430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5433 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5434 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5435 See \`config.log' for more details." >&5
5436 echo "$as_me: error: cannot compute sizeof (long long), 77
5437 See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; } ;;
5441 if test "$cross_compiling" = yes; then
5442 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5443 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5444 { (exit 1); exit 1; }; }
5446 cat >conftest.
$ac_ext <<_ACEOF
5449 cat confdefs.h
>>conftest.
$ac_ext
5450 cat >>conftest.
$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 $ac_includes_default
5453 long longval () { return (long) (sizeof (long long)); }
5454 unsigned long ulongval () { return (long) (sizeof (long long)); }
5461 FILE *f = fopen ("conftest.val", "w");
5464 if (((long) (sizeof (long long))) < 0)
5466 long i = longval ();
5467 if (i != ((long) (sizeof (long long))))
5469 fprintf (f, "%ld\n", i);
5473 unsigned long i = ulongval ();
5474 if (i != ((long) (sizeof (long long))))
5476 fprintf (f, "%lu\n", i);
5478 exit (ferror (f) || fclose (f) != 0);
5484 rm -f conftest
$ac_exeext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5486 (eval $ac_link) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_sizeof_long_long
=`cat conftest.val`
5497 echo "$as_me: program exited with status $ac_status" >&5
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.
$ac_ext >&5
5502 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot compute sizeof (long long), 77
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5508 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5513 ac_cv_sizeof_long_long
=0
5516 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5517 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5518 cat >>confdefs.h
<<_ACEOF
5519 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5525 echo "$as_me:$LINENO: checking for __int64" >&5
5526 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5527 if test "${ac_cv_type___int64+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 cat >conftest.
$ac_ext <<_ACEOF
5533 cat confdefs.h
>>conftest.
$ac_ext
5534 cat >>conftest.
$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 $ac_includes_default
5542 if (sizeof (__int64))
5548 rm -f conftest.
$ac_objext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5550 (eval $ac_compile) 2>conftest.er1
5552 grep -v '^ *+' conftest.er1
>conftest.err
5554 cat conftest.err
>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; } &&
5563 { ac_try
='test -s conftest.$ac_objext'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; }; then
5569 ac_cv_type___int64
=yes
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.
$ac_ext >&5
5574 ac_cv_type___int64
=no
5576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5578 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5579 echo "${ECHO_T}$ac_cv_type___int64" >&6
5580 if test $ac_cv_type___int64 = yes; then
5582 cat >>confdefs.h
<<_ACEOF
5583 #define HAVE___INT64 1
5586 echo "$as_me:$LINENO: checking for __int64" >&5
5587 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5588 if test "${ac_cv_type___int64+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 cat >conftest.
$ac_ext <<_ACEOF
5594 cat confdefs.h
>>conftest.
$ac_ext
5595 cat >>conftest.
$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 $ac_includes_default
5603 if (sizeof (__int64))
5609 rm -f conftest.
$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>conftest.er1
5613 grep -v '^ *+' conftest.er1
>conftest.err
5615 cat conftest.err
>&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try
='test -s conftest.$ac_objext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_type___int64
=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 ac_cv_type___int64
=no
5637 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5639 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5640 echo "${ECHO_T}$ac_cv_type___int64" >&6
5642 echo "$as_me:$LINENO: checking size of __int64" >&5
5643 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5644 if test "${ac_cv_sizeof___int64+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 if test "$ac_cv_type___int64" = yes; then
5648 # The cast to unsigned long works around a bug in the HP C Compiler
5649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5651 # This bug is HP SR number 8606223364.
5652 if test "$cross_compiling" = yes; then
5653 # Depending upon the size, compute the lo and hi bounds.
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
5664 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5671 rm -f conftest.
$ac_objext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>conftest.er1
5675 grep -v '^ *+' conftest.er1
>conftest.err
5677 cat conftest.err
>&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try
='test -s conftest.$ac_objext'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; }; then
5694 cat >conftest.
$ac_ext <<_ACEOF
5697 cat confdefs.h
>>conftest.
$ac_ext
5698 cat >>conftest.
$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $ac_includes_default
5704 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5711 rm -f conftest.
$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713 (eval $ac_compile) 2>conftest.er1
5715 grep -v '^ *+' conftest.er1
>conftest.err
5717 cat conftest.err
>&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); } &&
5720 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; } &&
5726 { ac_try
='test -s conftest.$ac_objext'
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; }; then
5732 ac_hi
=$ac_mid; break
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.
$ac_ext >&5
5737 ac_lo
=`expr $ac_mid + 1`
5738 if test $ac_lo -le $ac_mid; then
5742 ac_mid
=`expr 2 '*' $ac_mid + 1`
5744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.
$ac_ext >&5
5750 cat >conftest.
$ac_ext <<_ACEOF
5753 cat confdefs.h
>>conftest.
$ac_ext
5754 cat >>conftest.
$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5760 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5767 rm -f conftest.
$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1
>conftest.err
5773 cat conftest.err
>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try
='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5790 cat >conftest.
$ac_ext <<_ACEOF
5793 cat confdefs.h
>>conftest.
$ac_ext
5794 cat >>conftest.
$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5800 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5807 rm -f conftest.
$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1
>conftest.err
5813 cat conftest.err
>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; } &&
5822 { ac_try
='test -s conftest.$ac_objext'
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; }; then
5828 ac_lo
=$ac_mid; break
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.
$ac_ext >&5
5833 ac_hi
=`expr '(' $ac_mid ')' - 1`
5834 if test $ac_mid -le $ac_hi; then
5838 ac_mid
=`expr 2 '*' $ac_mid`
5840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.
$ac_ext >&5
5848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5850 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5851 # Binary search between lo and hi bounds.
5852 while test "x$ac_lo" != "x$ac_hi"; do
5853 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5854 cat >conftest.
$ac_ext <<_ACEOF
5857 cat confdefs.h
>>conftest.
$ac_ext
5858 cat >>conftest.
$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5864 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5871 rm -f conftest.
$ac_objext
5872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>conftest.er1
5875 grep -v '^ *+' conftest.er1
>conftest.err
5877 cat conftest.err
>&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try
='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.
$ac_ext >&5
5897 ac_lo
=`expr '(' $ac_mid ')' + 1`
5899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5902 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5904 See \`config.log' for more details." >&5
5905 echo "$as_me: error: cannot compute sizeof (__int64), 77
5906 See \`config.log' for more details." >&2;}
5907 { (exit 1); exit 1; }; } ;;
5910 if test "$cross_compiling" = yes; then
5911 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5912 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5913 { (exit 1); exit 1; }; }
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 $ac_includes_default
5922 long longval () { return (long) (sizeof (__int64)); }
5923 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5930 FILE *f = fopen ("conftest.val", "w");
5933 if (((long) (sizeof (__int64))) < 0)
5935 long i = longval ();
5936 if (i != ((long) (sizeof (__int64))))
5938 fprintf (f, "%ld\n", i);
5942 unsigned long i = ulongval ();
5943 if (i != ((long) (sizeof (__int64))))
5945 fprintf (f, "%lu\n", i);
5947 exit (ferror (f) || fclose (f) != 0);
5953 rm -f conftest
$ac_exeext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5955 (eval $ac_link) 2>&5
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 ac_cv_sizeof___int64
=`cat conftest.val`
5966 echo "$as_me: program exited with status $ac_status" >&5
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.
$ac_ext >&5
5971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5972 See \`config.log' for more details." >&5
5973 echo "$as_me: error: cannot compute sizeof (__int64), 77
5974 See \`config.log' for more details." >&2;}
5975 { (exit 1); exit 1; }; }
5977 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5982 ac_cv_sizeof___int64
=0
5985 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
5986 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
5987 cat >>confdefs.h
<<_ACEOF
5988 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5995 # ---------------------
5996 # Warnings and checking
5997 # ---------------------
5999 # Check $CC warning features (if it's GCC).
6000 # We want to use -pedantic, but we don't want warnings about
6003 # * overlong strings
6004 # So, we only use -pedantic if we can disable those warnings.
6006 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6007 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6008 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6009 echo $ECHO_N "(cached) $ECHO_C" >&6
6011 save_CFLAGS
="$CFLAGS"
6012 CFLAGS
="-Wno-long-long"
6013 cat >conftest.
$ac_ext <<_ACEOF
6016 cat confdefs.h
>>conftest.
$ac_ext
6017 cat >>conftest.
$ac_ext <<_ACEOF
6018 /* end confdefs.h. */
6021 rm -f conftest.
$ac_objext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>conftest.er1
6025 grep -v '^ *+' conftest.er1
>conftest.err
6027 cat conftest.err
>&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try
='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 ac_cv_prog_cc_w_no_long_long
=yes
6044 echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.
$ac_ext >&5
6047 ac_cv_prog_cc_w_no_long_long
=no
6049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6050 CFLAGS
="$save_CFLAGS"
6053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6054 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6056 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6057 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6058 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 save_CFLAGS
="$CFLAGS"
6062 CFLAGS
="-Wno-variadic-macros"
6063 cat >conftest.
$ac_ext <<_ACEOF
6066 cat confdefs.h
>>conftest.
$ac_ext
6067 cat >>conftest.
$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6071 rm -f conftest.
$ac_objext
6072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073 (eval $ac_compile) 2>conftest.er1
6075 grep -v '^ *+' conftest.er1
>conftest.err
6077 cat conftest.err
>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; } &&
6086 { ac_try
='test -s conftest.$ac_objext'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; }; then
6092 ac_cv_prog_cc_w_no_variadic_macros
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_prog_cc_w_no_variadic_macros
=no
6099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6100 CFLAGS
="$save_CFLAGS"
6103 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6104 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6106 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6107 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6108 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 save_CFLAGS
="$CFLAGS"
6112 CFLAGS
="-Wno-overlength-strings"
6113 cat >conftest.
$ac_ext <<_ACEOF
6116 cat confdefs.h
>>conftest.
$ac_ext
6117 cat >>conftest.
$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6121 rm -f conftest.
$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1
>conftest.err
6127 cat conftest.err
>&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try
='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_prog_cc_w_no_overlength_strings
=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.
$ac_ext >&5
6147 ac_cv_prog_cc_w_no_overlength_strings
=no
6149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 CFLAGS
="$save_CFLAGS"
6153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6154 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6157 if test $ac_cv_prog_cc_w_no_long_long = yes \
6158 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6159 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6160 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6163 # Add -Wold-style-definition if it's accepted
6164 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6165 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6166 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 save_CFLAGS
="$CFLAGS"
6170 CFLAGS
="-Wold-style-definition"
6171 cat >conftest.
$ac_ext <<_ACEOF
6174 cat confdefs.h
>>conftest.
$ac_ext
6175 cat >>conftest.
$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6179 rm -f conftest.
$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1
>conftest.err
6185 cat conftest.err
>&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); }; } &&
6194 { ac_try
='test -s conftest.$ac_objext'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_prog_cc_w_old_style_definition
=yes
6202 echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.
$ac_ext >&5
6205 ac_cv_prog_cc_w_old_style_definition
=no
6207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6208 CFLAGS
="$save_CFLAGS"
6211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6212 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6213 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6214 strict1_warn
="${strict1_warn} -Wold-style-definition"
6217 # Add -Wmissing-format-attribute if it's accepted
6218 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6219 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6220 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 save_CFLAGS
="$CFLAGS"
6224 CFLAGS
="-Wmissing-format-attribute"
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6233 rm -f conftest.
$ac_objext
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>conftest.er1
6237 grep -v '^ *+' conftest.er1
>conftest.err
6239 cat conftest.err
>&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); } &&
6242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try
='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_prog_cc_w_missing_format_attribute
=yes
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.
$ac_ext >&5
6259 ac_cv_prog_cc_w_missing_format_attribute
=no
6261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 CFLAGS
="$save_CFLAGS"
6265 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6266 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6267 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6268 strict1_warn
="${strict1_warn} -Wmissing-format-attribute"
6271 # Enable -Werror, period.
6272 # Check whether --enable-werror_always or --disable-werror_always was given.
6273 if test "${enable_werror_always+set}" = set; then
6274 enableval
="$enable_werror_always"
6277 enable_werror_always
=no
6279 if test x
${enable_werror_always} = xyes
; then
6280 strict1_warn
="${strict1_warn} -Werror"
6286 # Get C++ compatibility warning flag, if supported.
6287 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6288 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6289 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 save_CFLAGS
="$CFLAGS"
6293 CFLAGS
="-Wc++-compat"
6294 cat >conftest.
$ac_ext <<_ACEOF
6297 cat confdefs.h
>>conftest.
$ac_ext
6298 cat >>conftest.
$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6302 rm -f conftest.
$ac_objext
6303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304 (eval $ac_compile) 2>conftest.er1
6306 grep -v '^ *+' conftest.er1
>conftest.err
6308 cat conftest.err
>&5
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try
='test -s conftest.$ac_objext'
6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6323 ac_cv_prog_cc_w_cxx_compat
=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.
$ac_ext >&5
6328 ac_cv_prog_cc_w_cxx_compat
=no
6330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 CFLAGS
="$save_CFLAGS"
6334 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6335 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6336 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6337 cxx_compat_warn
="-Wc++-compat"
6342 # If the native compiler is GCC, we can enable warnings even in stage1.
6343 # That's useful for people building cross-compilers, or just running a
6346 if test "x$GCC" = "xyes"; then
6347 warn_cflags
='$(GCC_WARN_CFLAGS)'
6351 # Enable -Werror in bootstrap stage2 and later.
6353 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6356 # Check whether --enable-werror or --disable-werror was given.
6357 if test "${enable_werror+set}" = set; then
6358 enableval
="$enable_werror"
6361 if test x
$is_release = x
; then
6362 # Default to "yes" on development branches.
6365 # Default to "no" on release branches.
6369 if test x
$enable_werror = xyes
; then
6374 # Enable expensive internal checks
6375 # Check whether --enable-checking or --disable-checking was given.
6376 if test "${enable_checking+set}" = set; then
6377 enableval
="$enable_checking"
6378 ac_checking_flags
="${enableval}"
6381 # Determine the default checks.
6382 if test x
$is_release = x
; then
6383 ac_checking_flags
=yes
6385 ac_checking_flags
=release
6388 ac_assert_checking
=1
6392 ac_gc_always_collect
=
6394 ac_rtlflag_checking
=
6395 ac_runtime_checking
=1
6397 ac_valgrind_checking
=
6398 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6399 for check
in $ac_checking_flags
6402 # these set all the flags to specific states
6403 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6404 ac_fold_checking
= ; ac_gc_checking
=1 ;
6405 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6406 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6407 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6408 no|none
) ac_assert_checking
= ; ac_checking
= ;
6409 ac_fold_checking
= ; ac_gc_checking
= ;
6410 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6411 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6412 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6413 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6414 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6415 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6416 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6417 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6418 release
) ac_assert_checking
=1 ; ac_checking
= ;
6419 ac_fold_checking
= ; ac_gc_checking
= ;
6420 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6421 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6422 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6423 # these enable particular checks
6424 assert
) ac_assert_checking
=1 ;;
6425 fold) ac_fold_checking
=1 ;;
6426 gc
) ac_gc_checking
=1 ;;
6427 gcac
) ac_gc_always_collect
=1 ;;
6428 misc
) ac_checking
=1 ;;
6429 rtl
) ac_rtl_checking
=1 ;;
6430 rtlflag
) ac_rtlflag_checking
=1 ;;
6431 runtime
) ac_runtime_checking
=1 ;;
6432 tree
) ac_tree_checking
=1 ;;
6433 valgrind
) ac_valgrind_checking
=1 ;;
6434 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6435 echo "$as_me: error: unknown check category $check" >&2;}
6436 { (exit 1); exit 1; }; } ;;
6442 if test x
$ac_checking != x
; then
6444 cat >>confdefs.h
<<\_ACEOF
6445 #define ENABLE_CHECKING 1
6448 nocommon_flag
=-fno-common
6451 if test x
$ac_assert_checking != x
; then
6453 cat >>confdefs.h
<<\_ACEOF
6454 #define ENABLE_ASSERT_CHECKING 1
6459 if test x
$ac_runtime_checking != x
; then
6461 cat >>confdefs.h
<<\_ACEOF
6462 #define ENABLE_RUNTIME_CHECKING 1
6466 if test x
$ac_tree_checking != x
; then
6468 cat >>confdefs.h
<<\_ACEOF
6469 #define ENABLE_TREE_CHECKING 1
6472 TREEBROWSER
=tree-browser.o
6475 if test x
$ac_rtl_checking != x
; then
6477 cat >>confdefs.h
<<\_ACEOF
6478 #define ENABLE_RTL_CHECKING 1
6482 if test x
$ac_rtlflag_checking != x
; then
6484 cat >>confdefs.h
<<\_ACEOF
6485 #define ENABLE_RTL_FLAG_CHECKING 1
6489 if test x
$ac_gc_checking != x
; then
6491 cat >>confdefs.h
<<\_ACEOF
6492 #define ENABLE_GC_CHECKING 1
6496 if test x
$ac_gc_always_collect != x
; then
6498 cat >>confdefs.h
<<\_ACEOF
6499 #define ENABLE_GC_ALWAYS_COLLECT 1
6503 if test x
$ac_fold_checking != x
; then
6505 cat >>confdefs.h
<<\_ACEOF
6506 #define ENABLE_FOLD_CHECKING 1
6510 valgrind_path_defines
=
6513 if test "${ac_cv_header_valgrind_h+set}" = set; then
6514 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6515 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6516 if test "${ac_cv_header_valgrind_h+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6520 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6522 # Is the header compilable?
6523 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6524 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6532 #include <valgrind.h>
6534 rm -f conftest.
$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
6543 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; } &&
6549 { ac_try
='test -s conftest.$ac_objext'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; }; then
6555 ac_header_compiler
=yes
6557 echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 ac_header_compiler
=no
6562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 echo "${ECHO_T}$ac_header_compiler" >&6
6566 # Is the header present?
6567 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6568 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <valgrind.h>
6577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6578 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6580 grep -v '^ *+' conftest.er1
>conftest.err
6582 cat conftest.err
>&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } >/dev
/null
; then
6585 if test -s conftest.err
; then
6586 ac_cpp_err
=$ac_c_preproc_warn_flag
6587 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6594 if test -z "$ac_cpp_err"; then
6595 ac_header_preproc
=yes
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.
$ac_ext >&5
6600 ac_header_preproc
=no
6602 rm -f conftest.err conftest.
$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 echo "${ECHO_T}$ac_header_preproc" >&6
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6610 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6612 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6613 ac_header_preproc
=yes
6616 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6617 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6618 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6619 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6620 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6621 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6622 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6623 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6624 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6625 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6627 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6630 ## ------------------------------------------ ##
6631 ## Report this to the AC_PACKAGE_NAME lists. ##
6632 ## ------------------------------------------ ##
6635 sed "s/^/$as_me: WARNING: /" >&2
6638 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6639 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6640 if test "${ac_cv_header_valgrind_h+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_header_valgrind_h
=$ac_header_preproc
6645 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6646 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6649 if test $ac_cv_header_valgrind_h = yes; then
6657 if test x
$ac_valgrind_checking != x
; then
6658 # It is certainly possible that there's valgrind but no valgrind.h.
6659 # GCC relies on making annotations so we must have both.
6660 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6661 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6662 cat >conftest.
$ac_ext <<_ACEOF
6665 cat confdefs.h
>>conftest.
$ac_ext
6666 cat >>conftest.
$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 #include <valgrind/memcheck.h>
6669 #ifndef VALGRIND_DISCARD
6670 #error VALGRIND_DISCARD not defined
6673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6674 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1
>conftest.err
6678 cat conftest.err
>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev
/null
; then
6681 if test -s conftest.err
; then
6682 ac_cpp_err
=$ac_c_preproc_warn_flag
6683 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6690 if test -z "$ac_cpp_err"; then
6691 gcc_cv_header_valgrind_memcheck_h
=yes
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.
$ac_ext >&5
6696 gcc_cv_header_valgrind_memcheck_h
=no
6698 rm -f conftest.err conftest.
$ac_ext
6699 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6700 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6701 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6702 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6703 cat >conftest.
$ac_ext <<_ACEOF
6706 cat confdefs.h
>>conftest.
$ac_ext
6707 cat >>conftest.
$ac_ext <<_ACEOF
6708 /* end confdefs.h. */
6709 #include <memcheck.h>
6710 #ifndef VALGRIND_DISCARD
6711 #error VALGRIND_DISCARD not defined
6714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } >/dev
/null
; then
6722 if test -s conftest.err
; then
6723 ac_cpp_err
=$ac_c_preproc_warn_flag
6724 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6731 if test -z "$ac_cpp_err"; then
6732 gcc_cv_header_memcheck_h
=yes
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.
$ac_ext >&5
6737 gcc_cv_header_memcheck_h
=no
6739 rm -f conftest.err conftest.
$ac_ext
6740 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6741 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6743 # Prepare PATH_SEPARATOR.
6744 # The user is always right.
6745 if test "${PATH_SEPARATOR+set}" != set; then
6746 echo "#! /bin/sh" >conf$$.sh
6747 echo "exit 0" >>conf$$.sh
6749 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6757 # Find out how to test for executable files. Don't use a zero-byte file,
6758 # as systems may use methods other than mode bits to determine executability.
6759 cat >conf$$.
file <<_ASEOF
6763 chmod +x conf$$.
file
6764 if test -x conf$$.
file >/dev
/null
2>&1; then
6765 ac_executable_p
="test -x"
6767 ac_executable_p
="test -f"
6771 # Extract the first word of "valgrind", so it can be a program name with args.
6772 set dummy valgrind
; ac_word
=$2
6773 echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6775 if test "${ac_cv_path_valgrind_path+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 case "$valgrind_path" in
6780 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6783 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6784 for ac_dir
in $PATH; do
6786 test -z "$ac_dir" && ac_dir
=.
6787 for ac_exec_ext
in '' $ac_executable_extensions; do
6788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6789 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6790 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6800 valgrind_path
="$ac_cv_path_valgrind_path"
6801 if test -n "$valgrind_path"; then
6802 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6803 echo "${ECHO_T}$valgrind_path" >&6
6805 echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6
6809 if test "x$valgrind_path" = "x" \
6810 ||
(test $have_valgrind_h = no \
6811 && test $gcc_cv_header_memcheck_h = no \
6812 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6813 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6814 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6815 { (exit 1); exit 1; }; }
6817 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6818 valgrind_command
="$valgrind_path -q"
6820 cat >>confdefs.h
<<\_ACEOF
6821 #define ENABLE_VALGRIND_CHECKING 1
6824 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6826 cat >>confdefs.h
<<\_ACEOF
6827 #define HAVE_VALGRIND_MEMCHECK_H 1
6831 if test $gcc_cv_header_memcheck_h = yes; then
6833 cat >>confdefs.h
<<\_ACEOF
6834 #define HAVE_MEMCHECK_H 1
6842 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6843 if test "${enable_mapped_location+set}" = set; then
6844 enableval
="$enable_mapped_location"
6847 enable_mapped_location
=no
6850 if test "$enable_mapped_location" = yes ; then
6852 cat >>confdefs.h
<<\_ACEOF
6853 #define USE_MAPPED_LOCATION 1
6858 # Enable code coverage collection
6859 # Check whether --enable-coverage or --disable-coverage was given.
6860 if test "${enable_coverage+set}" = set; then
6861 enableval
="$enable_coverage"
6862 case "${enableval}" in
6864 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6867 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6870 # a.k.a. --disable-coverage
6874 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6875 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6876 { (exit 1); exit 1; }; }
6884 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6885 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6886 enableval
="$enable_gather_detailed_mem_stats"
6889 enable_gather_detailed_mem_stats
=no
6891 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6893 cat >>confdefs.h
<<\_ACEOF
6894 #define GATHER_STATISTICS 1
6899 # -------------------------------
6900 # Miscenalleous configure options
6901 # -------------------------------
6905 # Check whether --with-stabs or --without-stabs was given.
6906 if test "${with_stabs+set}" = set; then
6907 withval
="$with_stabs"
6913 # Determine whether or not multilibs are enabled.
6914 # Check whether --enable-multilib or --disable-multilib was given.
6915 if test "${enable_multilib+set}" = set; then
6916 enableval
="$enable_multilib"
6923 # Enable __cxa_atexit for C++.
6924 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6925 if test "${enable___cxa_atexit+set}" = set; then
6926 enableval
="$enable___cxa_atexit"
6930 # Enable C extension for decimal float if target supports it.
6931 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6932 if test "${enable_decimal_float+set}" = set; then
6933 enableval
="$enable_decimal_float"
6935 if test x
$enablevar = xyes
; then
6937 powerpc
*-*-linux* | i?
86*-*-linux*)
6938 enable_decimal_float
=yes
6941 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6942 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6943 enable_decimal_float
=no
6949 enable_decimal_float
=no
6954 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6956 cat >>confdefs.h
<<_ACEOF
6957 #define ENABLE_DECIMAL_FLOAT $dfp
6962 # Pass with no value to take the default
6963 # Pass with a value to specify a thread package
6964 # Check whether --enable-threads or --disable-threads was given.
6965 if test "${enable_threads+set}" = set; then
6966 enableval
="$enable_threads"
6972 # Check whether --enable-tls or --disable-tls was given.
6973 if test "${enable_tls+set}" = set; then
6974 enableval
="$enable_tls"
6978 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
6979 Valid choices are 'yes' and 'no'." >&5
6980 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
6981 Valid choices are 'yes' and 'no'." >&2;}
6982 { (exit 1); exit 1; }; } ;;
6989 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6990 if test "${enable_objc_gc+set}" = set; then
6991 enableval
="$enable_objc_gc"
6992 if test x
$enable_objc_gc = xno
; then
7002 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7003 if test "${with_dwarf2+set}" = set; then
7004 withval
="$with_dwarf2"
7005 dwarf2
="$with_dwarf2"
7010 # Check whether --enable-shared or --disable-shared was given.
7011 if test "${enable_shared+set}" = set; then
7012 enableval
="$enable_shared"
7014 case $enable_shared in
7018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7019 for pkg
in $enableval; do
7020 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7034 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7035 if test "${with_build_sysroot+set}" = set; then
7036 withval
="$with_build_sysroot"
7041 # Check whether --with-sysroot or --without-sysroot was given.
7042 if test "${with_sysroot+set}" = set; then
7043 withval
="$with_sysroot"
7045 case ${with_sysroot} in
7046 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7047 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7050 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7051 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7053 if test "x$exec_prefix" = xNONE
; then
7054 if test "x$prefix" = xNONE
; then
7055 test_prefix
=/usr
/local
7060 test_prefix
=$exec_prefix
7062 case ${TARGET_SYSTEM_ROOT} in
7063 "${test_prefix}"|
"${test_prefix}/"*|\
7064 '${exec_prefix}'|
'${exec_prefix}/'*)
7065 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7066 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7073 TARGET_SYSTEM_ROOT_DEFINE
=
7074 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7081 # Build with intermodule optimisations
7082 # Check whether --enable-intermodule or --disable-intermodule was given.
7083 if test "${enable_intermodule+set}" = set; then
7084 enableval
="$enable_intermodule"
7085 case ${enable_intermodule} in
7086 yes) onestep
="-onestep";;
7094 # Sanity check enable_languages in case someone does not run the toplevel
7095 # configure # script.
7096 # Check whether --enable-languages or --disable-languages was given.
7097 if test "${enable_languages+set}" = set; then
7098 enableval
="$enable_languages"
7099 case ,${enable_languages}, in
7101 # go safe -- we cannot be much sure without the toplevel
7103 # analysis of which target libs are present and usable
7107 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7108 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7109 { (exit 1); exit 1; }; }
7114 enable_languages
=c
,${enable_languages}
7122 for lang
in ${srcdir}/*/config-lang.
in
7125 # The odd quoting in the next line works around
7126 # an apparent bug in bash 1.12 on linux.
7127 ${srcdir}/[*]/config-lang.
in) ;;
7129 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
7130 if test "x$lang_alias" = x
7132 echo "$lang doesn't set \$language." 1>&2
7135 case ",$enable_languages," in
7137 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7144 # -------------------------
7145 # Checks for other programs
7146 # -------------------------
7148 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7149 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7150 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7151 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.
make <<\_ACEOF
7156 @
echo 'ac_maketemp="$(MAKE)"'
7158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7159 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7160 if test -n "$ac_maketemp"; then
7161 eval ac_cv_prog_make_
${ac_make}_set
=yes
7163 eval ac_cv_prog_make_
${ac_make}_set
=no
7167 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7168 echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7172 echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6
7174 SET_MAKE
="MAKE=${MAKE-make}"
7178 # Find some useful tools
7179 for ac_prog
in gawk mawk nawk
awk
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy
$ac_prog; ac_word
=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_AWK+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$AWK"; then
7189 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir
=.
7196 for ac_exec_ext
in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_AWK
="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 if test -n "$AWK"; then
7209 echo "$as_me:$LINENO: result: $AWK" >&5
7210 echo "${ECHO_T}$AWK" >&6
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7216 test -n "$AWK" && break
7219 # We need awk to create options.c and options.h.
7220 # Bail out if it's missing.
7222 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7223 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7224 { (exit 1); exit 1; }; } ;;
7227 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7228 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7229 if test "${gcc_cv_prog_LN_S+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 rm -f conftestdata_t
7233 echo >conftestdata_f
7234 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7236 gcc_cv_prog_LN_S
="ln -s"
7238 if ln conftestdata_f conftestdata_t
2>/dev
/null
7242 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7244 gcc_cv_prog_LN_S
="cp -p"
7250 rm -f conftestdata_f conftestdata_t
7253 LN_S
="$gcc_cv_prog_LN_S"
7254 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256 echo "${ECHO_T}yes" >&6
7258 if test "$gcc_cv_prog_LN_S" = "ln"; then
7259 echo "$as_me:$LINENO: result: no, using ln" >&5
7260 echo "${ECHO_T}no, using ln" >&6
7262 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7263 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7267 echo "$as_me:$LINENO: checking whether ln works" >&5
7268 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7269 if test "${acx_cv_prog_LN+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 rm -f conftestdata_t
7273 echo >conftestdata_f
7274 if ln conftestdata_f conftestdata_t
2>/dev
/null
7280 rm -f conftestdata_f conftestdata_t
7283 if test $acx_cv_prog_LN = no
; then
7285 echo "$as_me:$LINENO: result: no, using $LN" >&5
7286 echo "${ECHO_T}no, using $LN" >&6
7288 LN
="$acx_cv_prog_LN"
7289 echo "$as_me:$LINENO: result: yes" >&5
7290 echo "${ECHO_T}yes" >&6
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7295 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_RANLIB+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 if test -n "$RANLIB"; then
7302 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir
=.
7309 for ac_exec_ext
in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 RANLIB
=$ac_cv_prog_RANLIB
7321 if test -n "$RANLIB"; then
7322 echo "$as_me:$LINENO: result: $RANLIB" >&5
7323 echo "${ECHO_T}$RANLIB" >&6
7325 echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7330 if test -z "$ac_cv_prog_RANLIB"; then
7331 ac_ct_RANLIB
=$RANLIB
7332 # Extract the first word of "ranlib", so it can be a program name with args.
7333 set dummy ranlib
; ac_word
=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 if test -n "$ac_ct_RANLIB"; then
7340 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir
=.
7347 for ac_exec_ext
in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7359 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7360 if test -n "$ac_ct_RANLIB"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7368 RANLIB
=$ac_ct_RANLIB
7370 RANLIB
="$ac_cv_prog_RANLIB"
7375 # By default, the Darwin ranlib will not treat common symbols as
7376 # definitions when building the archive table of contents. Other
7377 # ranlibs do that; pass an option to the Darwin ranlib that makes
7378 # it behave similarly.
7386 # Find a good install program. We prefer a C program (faster),
7387 # so one script is as good as another. But avoid the broken or
7388 # incompatible versions:
7389 # SysV /etc/install, /usr/sbin/install
7390 # SunOS /usr/etc/install
7391 # IRIX /sbin/install
7393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7395 # ./install, which can be erroneously created by make from ./install.sh.
7396 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7397 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7398 if test -z "$INSTALL"; then
7399 if test "${ac_cv_path_install+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7403 for ac_dir
in $PATH; do
7404 # Account for people who put trailing slashes in PATH elements.
7406 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7408 # OSF1 and SCO ODT 3.0 have their own names for install.
7409 for ac_prog
in ginstall scoinst
install; do
7410 if test -f $ac_dir/$ac_prog; then
7411 if test $ac_prog = install &&
7412 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7413 # AIX install. It has an incompatible calling convention.
7414 # OSF/1 installbsd also uses dspmsg, but is usable.
7417 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7428 if test "${ac_cv_path_install+set}" = set; then
7429 INSTALL
="$ac_cv_path_install"
7431 # As a last resort, use the slow shell script. We don't cache a
7432 # path for INSTALL within a source directory, because that will
7433 # break other packages using the cache if that directory is
7434 # removed, or if the path is relative.
7435 INSTALL
="$ac_install_sh"
7438 echo "$as_me:$LINENO: result: $INSTALL" >&5
7439 echo "${ECHO_T}$INSTALL" >&6
7441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442 # It thinks the first close brace ends the variable substitution.
7443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7445 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7448 # See if cmp has --ignore-initial.
7449 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7450 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7451 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 gcc_cv_prog_cmp_skip
=slowcompare
7457 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7458 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7461 gcc_cv_prog_cmp_skip
=gnucompare
7464 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7465 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7466 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7469 gcc_cv_prog_cmp_skip
=fastcompare
7476 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7477 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7478 make_compare_target
=$gcc_cv_prog_cmp_skip
7482 # See if we have the mktemp command.
7483 # Extract the first word of "mktemp", so it can be a program name with args.
7484 set dummy mktemp
; ac_word
=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 if test -n "$have_mktemp_command"; then
7491 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir
=.
7498 for ac_exec_ext
in '' $ac_executable_extensions; do
7499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_have_mktemp_command
="yes"
7501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7510 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7511 if test -n "$have_mktemp_command"; then
7512 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7513 echo "${ECHO_T}$have_mktemp_command" >&6
7515 echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7520 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7522 # See if makeinfo has been installed and is modern enough
7523 # that we can use it.
7525 ac_executable_extensions
="$build_exeext"
7527 # Extract the first word of "makeinfo", so it can be a program name with args.
7528 set dummy makeinfo
; ac_word
=$2
7529 echo "$as_me:$LINENO: checking for $ac_word" >&5
7530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 if test -n "$MAKEINFO"; then
7535 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7541 test -z "$as_dir" && as_dir
=.
7542 for ac_exec_ext
in '' $ac_executable_extensions; do
7543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_MAKEINFO
="makeinfo"
7545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 MAKEINFO
=$ac_cv_prog_MAKEINFO
7554 if test -n "$MAKEINFO"; then
7555 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7556 echo "${ECHO_T}$MAKEINFO" >&6
7558 echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6
7562 if test -n "$MAKEINFO"; then
7563 # Found it, now check the version.
7564 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7565 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7566 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7570 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7571 echo "configure:7571: version of makeinfo is $ac_prog_version" >&5
7572 case $ac_prog_version in
7573 '') gcc_cv_prog_makeinfo_modern
=no
;;
7575 gcc_cv_prog_makeinfo_modern
=yes;;
7576 *) gcc_cv_prog_makeinfo_modern
=no
;;
7580 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7581 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7583 gcc_cv_prog_makeinfo_modern
=no
7586 if test $gcc_cv_prog_makeinfo_modern = no
; then
7587 MAKEINFO
="$MISSING makeinfo"
7588 { echo "$as_me:$LINENO: WARNING:
7589 *** Makeinfo is missing or too old.
7590 *** Info documentation will not be built." >&5
7591 echo "$as_me: WARNING:
7592 *** Makeinfo is missing or too old.
7593 *** Info documentation will not be built." >&2;}
7600 # Is pod2man recent enough to regenerate manpages?
7601 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7602 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7603 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7604 echo "$as_me:$LINENO: result: yes" >&5
7605 echo "${ECHO_T}yes" >&6
7606 GENERATED_MANPAGES
=generated-manpages
7608 echo "$as_me:$LINENO: result: no" >&5
7609 echo "${ECHO_T}no" >&6
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618 set dummy
$ac_prog; ac_word
=$2
7619 echo "$as_me:$LINENO: checking for $ac_word" >&5
7620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621 if test "${ac_cv_prog_FLEX+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 if test -n "$FLEX"; then
7625 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7631 test -z "$as_dir" && as_dir
=.
7632 for ac_exec_ext
in '' $ac_executable_extensions; do
7633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_FLEX
="$ac_prog"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 FLEX
=$ac_cv_prog_FLEX
7644 if test -n "$FLEX"; then
7645 echo "$as_me:$LINENO: result: $FLEX" >&5
7646 echo "${ECHO_T}$FLEX" >&6
7648 echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6
7652 test -n "$FLEX" && break
7654 test -n "$FLEX" || FLEX
="$MISSING flex"
7658 for ac_prog
in bison
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy
$ac_prog; ac_word
=$2
7662 echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664 if test "${ac_cv_prog_BISON+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 if test -n "$BISON"; then
7668 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir
=.
7675 for ac_exec_ext
in '' $ac_executable_extensions; do
7676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_BISON
="$ac_prog"
7678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 BISON
=$ac_cv_prog_BISON
7687 if test -n "$BISON"; then
7688 echo "$as_me:$LINENO: result: $BISON" >&5
7689 echo "${ECHO_T}$BISON" >&6
7691 echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6
7695 test -n "$BISON" && break
7697 test -n "$BISON" || BISON
="$MISSING bison"
7700 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7701 # check for build == host before using them.
7704 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7705 && test -d ..
/binutils
; then
7706 NM
='$(objdir)/../binutils/nm-new'
7708 # Extract the first word of "nm", so it can be a program name with args.
7709 set dummy nm
; ac_word
=$2
7710 echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712 if test "${ac_cv_prog_NM+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 if test -n "$NM"; then
7716 ac_cv_prog_NM
="$NM" # Let the user override the test.
7718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir
=.
7723 for ac_exec_ext
in '' $ac_executable_extensions; do
7724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7736 if test -n "$NM"; then
7737 echo "$as_me:$LINENO: result: $NM" >&5
7738 echo "${ECHO_T}$NM" >&6
7740 echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6
7747 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7748 && test -d ..
/binutils
; then
7749 AR
='$(objdir)/../binutils/ar'
7751 # Extract the first word of "ar", so it can be a program name with args.
7752 set dummy
ar; ac_word
=$2
7753 echo "$as_me:$LINENO: checking for $ac_word" >&5
7754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755 if test "${ac_cv_prog_AR+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 if test -n "$AR"; then
7759 ac_cv_prog_AR
="$AR" # Let the user override the test.
7761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir
=.
7766 for ac_exec_ext
in '' $ac_executable_extensions; do
7767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7779 if test -n "$AR"; then
7780 echo "$as_me:$LINENO: result: $AR" >&5
7781 echo "${ECHO_T}$AR" >&6
7783 echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7790 # --------------------
7791 # Checks for C headers
7792 # --------------------
7794 echo "$as_me:$LINENO: checking for GNU C library" >&5
7795 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7796 if test "${gcc_cv_glibc+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 cat >conftest.
$ac_ext <<_ACEOF
7802 cat confdefs.h
>>conftest.
$ac_ext
7803 cat >>conftest.
$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 #include <features.h>
7810 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7811 #error Not a GNU C library system
7817 rm -f conftest.
$ac_objext
7818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7819 (eval $ac_compile) 2>conftest.er1
7821 grep -v '^ *+' conftest.er1
>conftest.err
7823 cat conftest.err
>&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try
='test -s conftest.$ac_objext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.
$ac_ext >&5
7845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7849 echo "${ECHO_T}$gcc_cv_glibc" >&6
7850 if test $gcc_cv_glibc = yes; then
7852 cat >>confdefs.h
<<\_ACEOF
7853 #define _GNU_SOURCE 1
7858 # Need to reject headers which give warnings, so that the -Werror bootstrap
7859 # works later. *sigh* This needs to come before all header checks.
7861 ac_c_preproc_warn_flag
=yes
7863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7865 if test "${ac_cv_header_stdc+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7868 cat >conftest.
$ac_ext <<_ACEOF
7871 cat confdefs.h
>>conftest.
$ac_ext
7872 cat >>conftest.
$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7887 rm -f conftest.
$ac_objext
7888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7891 grep -v '^ *+' conftest.er1
>conftest.err
7893 cat conftest.err
>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
7896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try
='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_header_stdc
=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.
$ac_ext >&5
7913 ac_cv_header_stdc
=no
7915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 if test $ac_cv_header_stdc = yes; then
7918 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7919 cat >conftest.
$ac_ext <<_ACEOF
7922 cat confdefs.h
>>conftest.
$ac_ext
7923 cat >>conftest.
$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929 $EGREP "memchr" >/dev
/null
2>&1; then
7932 ac_cv_header_stdc
=no
7938 if test $ac_cv_header_stdc = yes; then
7939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7950 $EGREP "free" >/dev
/null
2>&1; then
7953 ac_cv_header_stdc
=no
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then
7964 cat >conftest.
$ac_ext <<_ACEOF
7967 cat confdefs.h
>>conftest.
$ac_ext
7968 cat >>conftest.
$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7971 #if ((' ' & 0x0FF) == 0x020)
7972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7975 # define ISLOWER(c) \
7976 (('a' <= (c) && (c) <= 'i') \
7977 || ('j' <= (c) && (c) <= 'r') \
7978 || ('s' <= (c) && (c) <= 'z'))
7979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7987 for (i = 0; i < 256; i++)
7988 if (XOR (islower (i), ISLOWER (i))
7989 || toupper (i) != TOUPPER (i))
7994 rm -f conftest
$ac_exeext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7996 (eval $ac_link) 2>&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8007 echo "$as_me: program exited with status $ac_status" >&5
8008 echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.
$ac_ext >&5
8012 ac_cv_header_stdc
=no
8014 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8020 if test $ac_cv_header_stdc = yes; then
8022 cat >>confdefs.h
<<\_ACEOF
8023 #define STDC_HEADERS 1
8028 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8029 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8030 if test "${ac_cv_header_time+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 cat >conftest.
$ac_ext <<_ACEOF
8036 cat confdefs.h
>>conftest.
$ac_ext
8037 cat >>conftest.
$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8040 #include <sys/time.h>
8046 if ((struct tm *) 0)
8052 rm -f conftest.
$ac_objext
8053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8054 (eval $ac_compile) 2>conftest.er1
8056 grep -v '^ *+' conftest.er1
>conftest.err
8058 cat conftest.err
>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } &&
8061 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; } &&
8067 { ac_try
='test -s conftest.$ac_objext'
8068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 ac_cv_header_time
=yes
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 ac_cv_header_time
=no
8080 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8083 echo "${ECHO_T}$ac_cv_header_time" >&6
8084 if test $ac_cv_header_time = yes; then
8086 cat >>confdefs.h
<<\_ACEOF
8087 #define TIME_WITH_SYS_TIME 1
8092 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8093 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8094 if test "${gcc_cv_header_string+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.
$ac_ext <<_ACEOF
8100 cat confdefs.h
>>conftest.
$ac_ext
8101 cat >>conftest.
$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8104 #include <strings.h>
8113 rm -f conftest.
$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1
>conftest.err
8119 cat conftest.err
>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try
='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 gcc_cv_header_string
=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.
$ac_ext >&5
8139 gcc_cv_header_string
=no
8141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8144 echo "${ECHO_T}$gcc_cv_header_string" >&6
8145 if test $gcc_cv_header_string = yes; then
8147 cat >>confdefs.h
<<\_ACEOF
8148 #define STRING_WITH_STRINGS 1
8153 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8154 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8155 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 cat >conftest.
$ac_ext <<_ACEOF
8161 cat confdefs.h
>>conftest.
$ac_ext
8162 cat >>conftest.
$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <sys/types.h>
8165 #include <sys/wait.h>
8167 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8170 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8178 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8183 rm -f conftest.
$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>conftest.er1
8187 grep -v '^ *+' conftest.er1
>conftest.err
8189 cat conftest.err
>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try
='test -s conftest.$ac_objext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 ac_cv_header_sys_wait_h
=yes
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.
$ac_ext >&5
8209 ac_cv_header_sys_wait_h
=no
8211 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8214 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8215 if test $ac_cv_header_sys_wait_h = yes; then
8217 cat >>confdefs.h
<<\_ACEOF
8218 #define HAVE_SYS_WAIT_H 1
8245 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8246 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8247 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8248 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 cat >conftest.
$ac_ext <<_ACEOF
8259 cat confdefs.h
>>conftest.
$ac_ext
8260 cat >>conftest.
$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <$ac_header>
8264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8265 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8267 grep -v '^ *+' conftest.er1
>conftest.err
8269 cat conftest.err
>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } >/dev
/null
; then
8272 if test -s conftest.err
; then
8273 ac_cpp_err
=$ac_c_preproc_warn_flag
8274 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8281 if test -z "$ac_cpp_err"; then
8282 eval "$as_ac_Header=yes"
8284 echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.
$ac_ext >&5
8287 eval "$as_ac_Header=no"
8289 rm -f conftest.err conftest.
$ac_ext
8291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8292 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8294 cat >>confdefs.h
<<_ACEOF
8295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8302 # Check for thread headers.
8303 echo "$as_me:$LINENO: checking for thread.h" >&5
8304 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8305 if test "${ac_cv_header_thread_h+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8311 cat confdefs.h
>>conftest.
$ac_ext
8312 cat >>conftest.
$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8317 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8319 grep -v '^ *+' conftest.er1
>conftest.err
8321 cat conftest.err
>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } >/dev
/null
; then
8324 if test -s conftest.err
; then
8325 ac_cpp_err
=$ac_c_preproc_warn_flag
8326 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8333 if test -z "$ac_cpp_err"; then
8334 ac_cv_header_thread_h
=yes
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.
$ac_ext >&5
8339 ac_cv_header_thread_h
=no
8341 rm -f conftest.err conftest.
$ac_ext
8343 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8344 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8345 if test $ac_cv_header_thread_h = yes; then
8351 echo "$as_me:$LINENO: checking for pthread.h" >&5
8352 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8353 if test "${ac_cv_header_pthread_h+set}" = set; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 cat >conftest.
$ac_ext <<_ACEOF
8359 cat confdefs.h
>>conftest.
$ac_ext
8360 cat >>conftest.
$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362 #include <pthread.h>
8364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8367 grep -v '^ *+' conftest.er1
>conftest.err
8369 cat conftest.err
>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } >/dev
/null
; then
8372 if test -s conftest.err
; then
8373 ac_cpp_err
=$ac_c_preproc_warn_flag
8374 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8381 if test -z "$ac_cpp_err"; then
8382 ac_cv_header_pthread_h
=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.
$ac_ext >&5
8387 ac_cv_header_pthread_h
=no
8389 rm -f conftest.err conftest.
$ac_ext
8391 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8392 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8393 if test $ac_cv_header_pthread_h = yes; then
8400 # These tests can't be done till we know if we have limits.h.
8401 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8402 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8403 if test "${gcc_cv_decl_char_bit+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 cat >conftest.
$ac_ext <<_ACEOF
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #ifdef HAVE_LIMITS_H
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "found" >/dev
/null
2>&1; then
8421 gcc_cv_decl_char_bit
=yes
8423 gcc_cv_decl_char_bit
=no
8429 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8430 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8431 if test $gcc_cv_decl_char_bit = no
; then
8432 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8433 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8434 if test "${gcc_cv_c_nbby+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 while test $i -lt 65; do
8440 cat >conftest.
$ac_ext <<_ACEOF
8443 cat confdefs.h
>>conftest.
$ac_ext
8444 cat >>conftest.
$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8451 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8452 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8458 rm -f conftest.
$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8462 grep -v '^ *+' conftest.er1
>conftest.err
8464 cat conftest.err
>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try
='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 gcc_cv_c_nbby
=$i; break
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.
$ac_ext >&5
8485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8488 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8491 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8492 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8493 if test $gcc_cv_c_nbby = failed
; then
8494 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8495 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8496 { (exit 1); exit 1; }; }
8499 cat >>confdefs.h
<<_ACEOF
8500 #define CHAR_BIT $gcc_cv_c_nbby
8505 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8506 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8507 if test "${ac_cv_c_bigendian+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 # See if sys/param.h defines the BYTE_ORDER macro.
8511 cat >conftest.
$ac_ext <<_ACEOF
8514 cat confdefs.h
>>conftest.
$ac_ext
8515 cat >>conftest.
$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 #include <sys/types.h>
8518 #include <sys/param.h>
8523 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8531 rm -f conftest.
$ac_objext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8533 (eval $ac_compile) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1
>conftest.err
8537 cat conftest.err
>&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; } &&
8546 { ac_try
='test -s conftest.$ac_objext'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; }; then
8552 # It does; now see whether it defined to BIG_ENDIAN or not.
8553 cat >conftest.
$ac_ext <<_ACEOF
8556 cat confdefs.h
>>conftest.
$ac_ext
8557 cat >>conftest.
$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <sys/types.h>
8560 #include <sys/param.h>
8565 #if BYTE_ORDER != BIG_ENDIAN
8573 rm -f conftest.
$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try
='test -s conftest.$ac_objext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_c_bigendian
=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.
$ac_ext >&5
8599 ac_cv_c_bigendian
=no
8601 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.
$ac_ext >&5
8606 # It does not; compile a test program.
8607 if test "$cross_compiling" = yes; then
8608 # try to guess the endianness by grepping values into an object file
8609 ac_cv_c_bigendian
=unknown
8610 cat >conftest.
$ac_ext <<_ACEOF
8613 cat confdefs.h
>>conftest.
$ac_ext
8614 cat >>conftest.
$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8617 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8618 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8619 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8620 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8621 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8625 _ascii (); _ebcdic ();
8630 rm -f conftest.
$ac_objext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8632 (eval $ac_compile) 2>conftest.er1
8634 grep -v '^ *+' conftest.er1
>conftest.err
8636 cat conftest.err
>&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; } &&
8645 { ac_try
='test -s conftest.$ac_objext'
8646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); }; }; then
8651 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8652 ac_cv_c_bigendian
=yes
8654 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8655 if test "$ac_cv_c_bigendian" = unknown
; then
8656 ac_cv_c_bigendian
=no
8658 # finding both strings is unlikely to happen, but who knows?
8659 ac_cv_c_bigendian
=unknown
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.
$ac_ext >&5
8667 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8669 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8678 /* Are we little or big endian? From Harbison&Steele. */
8682 char c[sizeof (long)];
8685 exit (u.c[sizeof (long) - 1] == 1);
8688 rm -f conftest
$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690 (eval $ac_link) 2>&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_c_bigendian
=no
8701 echo "$as_me: program exited with status $ac_status" >&5
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.
$ac_ext >&5
8706 ac_cv_c_bigendian
=yes
8708 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8711 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8714 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8715 case $ac_cv_c_bigendian in
8718 cat >>confdefs.h
<<\_ACEOF
8719 #define WORDS_BIGENDIAN 1
8725 { { echo "$as_me:$LINENO: error: unknown endianness
8726 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8727 echo "$as_me: error: unknown endianness
8728 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8729 { (exit 1); exit 1; }; } ;;
8737 # Stage specific cflags for build.
8741 if test x
$GCC = xyes
8743 stage1_cflags
="-Wa,-J"
8749 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8750 # sources; use -no-cpp-precomp to get to GNU cpp.
8751 # Apple's GCC has bugs in designated initializer handling, so disable
8753 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8758 # These libraries may be used by collect2.
8759 # We may need a special search path to get them linked.
8760 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8761 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8762 if test "${gcc_cv_collect2_libs+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 for libs
in '' -lld -lmld \
8767 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8768 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8771 cat >conftest.
$ac_ext <<_ACEOF
8774 cat confdefs.h
>>conftest.
$ac_ext
8775 cat >>conftest.
$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8778 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8793 rm -f conftest.
$ac_objext conftest
$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1
>conftest.err
8799 cat conftest.err
>&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; } &&
8808 { ac_try
='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 gcc_cv_collect2_libs
="$libs"; break
8816 echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.
$ac_ext >&5
8820 rm -f conftest.err conftest.
$ac_objext \
8821 conftest
$ac_exeext conftest.
$ac_ext
8824 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8826 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8827 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8828 case $gcc_cv_collect2_libs in
8830 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8834 # When building Ada code on Alpha, we need exc_resume which is usually in
8835 # -lexc. So test for it.
8838 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8839 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8840 if test "${ac_cv_search_exc_resume+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 ac_func_search_save_LIBS
=$LIBS
8844 ac_cv_search_exc_resume
=no
8845 cat >conftest.
$ac_ext <<_ACEOF
8848 cat confdefs.h
>>conftest.
$ac_ext
8849 cat >>conftest.
$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any gcc2 internal prototype to avoid an error. */
8856 /* We use char because int might match the return type of a gcc2
8857 builtin and then its argument prototype would still apply. */
8867 rm -f conftest.
$ac_objext conftest
$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8871 grep -v '^ *+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try
='test -s conftest$ac_exeext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
8888 ac_cv_search_exc_resume
="none required"
8890 echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.
$ac_ext >&5
8894 rm -f conftest.err conftest.
$ac_objext \
8895 conftest
$ac_exeext conftest.
$ac_ext
8896 if test "$ac_cv_search_exc_resume" = no
; then
8897 for ac_lib
in exc
; do
8898 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8899 cat >conftest.
$ac_ext <<_ACEOF
8902 cat confdefs.h
>>conftest.
$ac_ext
8903 cat >>conftest.
$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8906 /* Override any gcc2 internal prototype to avoid an error. */
8910 /* We use char because int might match the return type of a gcc2
8911 builtin and then its argument prototype would still apply. */
8921 rm -f conftest.
$ac_objext conftest
$ac_exeext
8922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923 (eval $ac_link) 2>conftest.er1
8925 grep -v '^ *+' conftest.er1
>conftest.err
8927 cat conftest.err
>&5
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } &&
8930 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try
='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 ac_cv_search_exc_resume
="-l$ac_lib"
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.
$ac_ext >&5
8949 rm -f conftest.err conftest.
$ac_objext \
8950 conftest
$ac_exeext conftest.
$ac_ext
8953 LIBS
=$ac_func_search_save_LIBS
8955 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8956 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8957 if test "$ac_cv_search_exc_resume" != no
; then
8958 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8966 # Some systems put ldexp and frexp in libm instead of libc; assume
8967 # they're both in the same place. jcf-dump needs them.
8970 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8971 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8972 if test "${ac_cv_search_ldexp+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_func_search_save_LIBS
=$LIBS
8976 ac_cv_search_ldexp
=no
8977 cat >conftest.
$ac_ext <<_ACEOF
8980 cat confdefs.h
>>conftest.
$ac_ext
8981 cat >>conftest.
$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any gcc2 internal prototype to avoid an error. */
8988 /* We use char because int might match the return type of a gcc2
8989 builtin and then its argument prototype would still apply. */
8999 rm -f conftest.
$ac_objext conftest
$ac_exeext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9001 (eval $ac_link) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try
='test -s conftest$ac_exeext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_cv_search_ldexp
="none required"
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.
$ac_ext >&5
9026 rm -f conftest.err conftest.
$ac_objext \
9027 conftest
$ac_exeext conftest.
$ac_ext
9028 if test "$ac_cv_search_ldexp" = no
; then
9030 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9031 cat >conftest.
$ac_ext <<_ACEOF
9034 cat confdefs.h
>>conftest.
$ac_ext
9035 cat >>conftest.
$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9053 rm -f conftest.
$ac_objext conftest
$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try
='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_search_ldexp
="-l$ac_lib"
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9081 rm -f conftest.err conftest.
$ac_objext \
9082 conftest
$ac_exeext conftest.
$ac_ext
9085 LIBS
=$ac_func_search_save_LIBS
9087 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9088 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9089 if test "$ac_cv_search_ldexp" != no
; then
9090 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9098 # Use <inttypes.h> only if it exists,
9099 # doesn't clash with <sys/types.h>, and declares intmax_t.
9100 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9101 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9102 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 cat >conftest.
$ac_ext <<_ACEOF
9108 cat confdefs.h
>>conftest.
$ac_ext
9109 cat >>conftest.
$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <sys/types.h>
9112 #include <inttypes.h>
9121 rm -f conftest.
$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>conftest.er1
9125 grep -v '^ *+' conftest.er1
>conftest.err
9127 cat conftest.err
>&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
9136 { ac_try
='test -s conftest.$ac_objext'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 gcc_cv_header_inttypes_h
=yes
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.
$ac_ext >&5
9147 gcc_cv_header_inttypes_h
=no
9149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9152 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9153 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9154 if test $gcc_cv_header_inttypes_h = yes; then
9156 cat >>confdefs.h
<<\_ACEOF
9157 #define HAVE_INTTYPES_H 1
9199 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9200 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9201 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9202 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
9204 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9205 echo "$as_me:$LINENO: checking for $ac_func" >&5
9206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9207 if eval "test \"\${$as_ac_var+set}\" = set"; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 cat >conftest.
$ac_ext <<_ACEOF
9213 cat confdefs.h
>>conftest.
$ac_ext
9214 cat >>conftest.
$ac_ext <<_ACEOF
9215 /* end confdefs.h. */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9218 #define $ac_func innocuous_$ac_func
9220 /* System header to define __stub macros and hopefully few prototypes,
9221 which can conflict with char $ac_func (); below.
9222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223 <limits.h> exists even on freestanding compilers. */
9226 # include <limits.h>
9228 # include <assert.h>
9233 /* Override any gcc2 internal prototype to avoid an error. */
9238 /* We use char because int might match the return type of a gcc2
9239 builtin and then its argument prototype would still apply. */
9241 /* The GNU C library defines this for functions which it implements
9242 to always fail with ENOSYS. Some functions are actually named
9243 something starting with __ and the normal name is an alias. */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247 char (*f) () = $ac_func;
9256 return f != $ac_func;
9261 rm -f conftest.
$ac_objext conftest
$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263 (eval $ac_link) 2>conftest.er1
9265 grep -v '^ *+' conftest.er1
>conftest.err
9267 cat conftest.err
>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try
='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 eval "$as_ac_var=yes"
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.
$ac_ext >&5
9287 eval "$as_ac_var=no"
9289 rm -f conftest.err conftest.
$ac_objext \
9290 conftest
$ac_exeext conftest.
$ac_ext
9292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9294 if test `eval echo '${'$as_ac_var'}'` = yes; then
9295 cat >>confdefs.h
<<_ACEOF
9296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303 if test x
$ac_cv_func_mbstowcs = xyes
; then
9304 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9305 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9306 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 if test "$cross_compiling" = yes; then
9310 gcc_cv_func_mbstowcs_works
=yes
9312 cat >conftest.
$ac_ext <<_ACEOF
9315 cat confdefs.h
>>conftest.
$ac_ext
9316 cat >>conftest.
$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9325 rm -f conftest
$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 gcc_cv_func_mbstowcs_works
=yes
9338 echo "$as_me: program exited with status $ac_status" >&5
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.
$ac_ext >&5
9343 gcc_cv_func_mbstowcs_works
=no
9345 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9348 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9349 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9350 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9352 cat >>confdefs.h
<<\_ACEOF
9353 #define HAVE_WORKING_MBSTOWCS 1
9359 echo "$as_me:$LINENO: checking for ssize_t" >&5
9360 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9361 if test "${ac_cv_type_ssize_t+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9364 cat >conftest.
$ac_ext <<_ACEOF
9367 cat confdefs.h
>>conftest.
$ac_ext
9368 cat >>conftest.
$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9376 if (sizeof (ssize_t))
9382 rm -f conftest.
$ac_objext
9383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>conftest.er1
9386 grep -v '^ *+' conftest.er1
>conftest.err
9388 cat conftest.err
>&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try
='test -s conftest.$ac_objext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_type_ssize_t
=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.
$ac_ext >&5
9408 ac_cv_type_ssize_t
=no
9410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9412 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9413 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9414 if test $ac_cv_type_ssize_t = yes; then
9418 cat >>confdefs.h
<<_ACEOF
9425 # Try to determine the array type of the second argument of getgroups
9426 # for the target system (int or gid_t).
9427 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9428 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9429 if test "${ac_cv_type_uid_t+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 cat >conftest.
$ac_ext <<_ACEOF
9435 cat confdefs.h
>>conftest.
$ac_ext
9436 cat >>conftest.
$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9438 #include <sys/types.h>
9441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9442 $EGREP "uid_t" >/dev
/null
2>&1; then
9443 ac_cv_type_uid_t
=yes
9450 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9451 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9452 if test $ac_cv_type_uid_t = no
; then
9454 cat >>confdefs.h
<<\_ACEOF
9459 cat >>confdefs.h
<<\_ACEOF
9465 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9466 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9467 if test "${ac_cv_type_getgroups+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 if test "$cross_compiling" = yes; then
9471 ac_cv_type_getgroups
=cross
9473 cat >conftest.
$ac_ext <<_ACEOF
9476 cat confdefs.h
>>conftest.
$ac_ext
9477 cat >>conftest.
$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 /* Thanks to Mike Rendell for this test. */
9480 #include <sys/types.h>
9483 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9490 union { gid_t gval; long lval; } val;
9493 for (i = 0; i < NGID; i++)
9494 gidset[i] = val.gval;
9495 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9497 /* Exit non-zero if getgroups seems to require an array of ints. This
9498 happens when gid_t is short but getgroups modifies an array of ints. */
9499 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9502 rm -f conftest
$ac_exeext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9504 (eval $ac_link) 2>&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 ac_cv_type_getgroups
=gid_t
9515 echo "$as_me: program exited with status $ac_status" >&5
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.
$ac_ext >&5
9520 ac_cv_type_getgroups
=int
9522 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9524 if test $ac_cv_type_getgroups = cross
; then
9525 cat >conftest.
$ac_ext <<_ACEOF
9528 cat confdefs.h
>>conftest.
$ac_ext
9529 cat >>conftest.
$ac_ext <<_ACEOF
9530 /* end confdefs.h. */
9534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9535 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9536 ac_cv_type_getgroups
=gid_t
9538 ac_cv_type_getgroups
=int
9544 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9545 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9547 cat >>confdefs.h
<<_ACEOF
9548 #define GETGROUPS_T $ac_cv_type_getgroups
9552 if test "${target}" = "${build}"; then
9553 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9556 # This condition may need some tweaking. It should include all
9557 # targets where the array type of the second argument of getgroups
9558 # is int and the type of gid_t is not equivalent to int.
9559 *-*-sunos* |
*-*-ultrix*)
9560 TARGET_GETGROUPS_T
=int
9563 TARGET_GETGROUPS_T
=gid_t
9570 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9571 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9572 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.
$ac_ext <<_ACEOF
9578 cat confdefs.h
>>conftest.
$ac_ext
9579 cat >>conftest.
$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <sys/mman.h>
9583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9584 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1
>conftest.err
9588 cat conftest.err
>&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } >/dev
/null
; then
9591 if test -s conftest.err
; then
9592 ac_cpp_err
=$ac_c_preproc_warn_flag
9593 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9600 if test -z "$ac_cpp_err"; then
9601 ac_cv_header_sys_mman_h
=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.
$ac_ext >&5
9606 ac_cv_header_sys_mman_h
=no
9608 rm -f conftest.err conftest.
$ac_ext
9610 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9611 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9612 if test $ac_cv_header_sys_mman_h = yes; then
9613 gcc_header_sys_mman_h
=yes
9615 gcc_header_sys_mman_h
=no
9618 echo "$as_me:$LINENO: checking for mmap" >&5
9619 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9620 if test "${ac_cv_func_mmap+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9623 cat >conftest.
$ac_ext <<_ACEOF
9626 cat confdefs.h
>>conftest.
$ac_ext
9627 cat >>conftest.
$ac_ext <<_ACEOF
9628 /* end confdefs.h. */
9629 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9631 #define mmap innocuous_mmap
9633 /* System header to define __stub macros and hopefully few prototypes,
9634 which can conflict with char mmap (); below.
9635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636 <limits.h> exists even on freestanding compilers. */
9639 # include <limits.h>
9641 # include <assert.h>
9646 /* Override any gcc2 internal prototype to avoid an error. */
9651 /* We use char because int might match the return type of a gcc2
9652 builtin and then its argument prototype would still apply. */
9654 /* The GNU C library defines this for functions which it implements
9655 to always fail with ENOSYS. Some functions are actually named
9656 something starting with __ and the normal name is an alias. */
9657 #if defined (__stub_mmap) || defined (__stub___mmap)
9660 char (*f) () = mmap;
9674 rm -f conftest.
$ac_objext conftest
$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676 (eval $ac_link) 2>conftest.er1
9678 grep -v '^ *+' conftest.er1
>conftest.err
9680 cat conftest.err
>&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; } &&
9689 { ac_try
='test -s conftest$ac_exeext'
9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9697 echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.
$ac_ext >&5
9702 rm -f conftest.err conftest.
$ac_objext \
9703 conftest
$ac_exeext conftest.
$ac_ext
9705 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9706 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9707 if test $ac_cv_func_mmap = yes; then
9713 if test "$gcc_header_sys_mman_h" != yes \
9714 ||
test "$gcc_func_mmap" != yes; then
9715 gcc_cv_func_mmap_file
=no
9716 gcc_cv_func_mmap_dev_zero
=no
9717 gcc_cv_func_mmap_anon
=no
9719 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9720 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9721 if test "${gcc_cv_func_mmap_file+set}" = set; then
9722 echo $ECHO_N "(cached) $ECHO_C" >&6
9724 # Add a system to this blacklist if
9725 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9726 # memory area containing the same data that you'd get if you applied
9727 # read() to the same fd. The only system known to have a problem here
9728 # is VMS, where text files have record structure.
9731 gcc_cv_func_mmap_file
=no
;;
9733 gcc_cv_func_mmap_file
=yes;;
9736 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9737 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9738 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9739 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9740 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9743 # Add a system to this blacklist if it has mmap() but /dev/zero
9744 # does not exist, or if mmapping /dev/zero does not give anonymous
9745 # zeroed pages with both the following properties:
9746 # 1. If you map N consecutive pages in with one call, and then
9747 # unmap any subset of those pages, the pages that were not
9748 # explicitly unmapped remain accessible.
9749 # 2. If you map two adjacent blocks of memory and then unmap them
9750 # both at once, they must both go away.
9751 # Systems known to be in this category are Windows (all variants),
9754 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9755 gcc_cv_func_mmap_dev_zero
=no
;;
9757 gcc_cv_func_mmap_dev_zero
=yes;;
9760 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9761 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9763 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9764 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9765 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9766 if test "${gcc_cv_decl_map_anon+set}" = set; then
9767 echo $ECHO_N "(cached) $ECHO_C" >&6
9769 cat >conftest.
$ac_ext <<_ACEOF
9772 cat confdefs.h
>>conftest.
$ac_ext
9773 cat >>conftest.
$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <sys/types.h>
9776 #include <sys/mman.h>
9779 #ifndef MAP_ANONYMOUS
9780 #define MAP_ANONYMOUS MAP_ANON
9786 int n = MAP_ANONYMOUS;
9791 rm -f conftest.
$ac_objext
9792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9793 (eval $ac_compile) 2>conftest.er1
9795 grep -v '^ *+' conftest.er1
>conftest.err
9797 cat conftest.err
>&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } &&
9800 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; } &&
9806 { ac_try
='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 gcc_cv_decl_map_anon
=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.
$ac_ext >&5
9817 gcc_cv_decl_map_anon
=no
9819 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9821 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9822 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9824 if test $gcc_cv_decl_map_anon = no
; then
9825 gcc_cv_func_mmap_anon
=no
9827 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9828 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9829 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9833 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9834 # doesn't give anonymous zeroed pages with the same properties listed
9835 # above for use of /dev/zero.
9836 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9838 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9839 gcc_cv_func_mmap_anon
=no
;;
9841 gcc_cv_func_mmap_anon
=yes;;
9844 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9845 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9849 if test $gcc_cv_func_mmap_file = yes; then
9851 cat >>confdefs.h
<<\_ACEOF
9852 #define HAVE_MMAP_FILE 1
9856 if test $gcc_cv_func_mmap_dev_zero = yes; then
9858 cat >>confdefs.h
<<\_ACEOF
9859 #define HAVE_MMAP_DEV_ZERO 1
9863 if test $gcc_cv_func_mmap_anon = yes; then
9865 cat >>confdefs.h
<<\_ACEOF
9866 #define HAVE_MMAP_ANON 1
9874 # Under VMS, vfork works very differently than on Unix. The standard test
9875 # won't work, and it isn't easily adaptable. It makes more sense to
9877 ac_cv_func_vfork_works
=yes
9880 echo "$as_me:$LINENO: checking for pid_t" >&5
9881 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9882 if test "${ac_cv_type_pid_t+set}" = set; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 cat >conftest.
$ac_ext <<_ACEOF
9888 cat confdefs.h
>>conftest.
$ac_ext
9889 cat >>conftest.
$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 $ac_includes_default
9903 rm -f conftest.
$ac_objext
9904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>conftest.er1
9907 grep -v '^ *+' conftest.er1
>conftest.err
9909 cat conftest.err
>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; } &&
9918 { ac_try
='test -s conftest.$ac_objext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
9924 ac_cv_type_pid_t
=yes
9926 echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.
$ac_ext >&5
9931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9933 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9934 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9935 if test $ac_cv_type_pid_t = yes; then
9939 cat >>confdefs.h
<<_ACEOF
9947 for ac_header
in unistd.h vfork.h
9949 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9950 echo "$as_me:$LINENO: checking for $ac_header" >&5
9951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 cat >conftest.
$ac_ext <<_ACEOF
9958 cat confdefs.h
>>conftest.
$ac_ext
9959 cat >>conftest.
$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 #include <$ac_header>
9963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9966 grep -v '^ *+' conftest.er1
>conftest.err
9968 cat conftest.err
>&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } >/dev
/null
; then
9971 if test -s conftest.err
; then
9972 ac_cpp_err
=$ac_c_preproc_warn_flag
9973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9980 if test -z "$ac_cpp_err"; then
9981 eval "$as_ac_Header=yes"
9983 echo "$as_me: failed program was:" >&5
9984 sed 's/^/| /' conftest.
$ac_ext >&5
9986 eval "$as_ac_Header=no"
9988 rm -f conftest.err conftest.
$ac_ext
9990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9993 cat >>confdefs.h
<<_ACEOF
9994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 for ac_func
in fork vfork
10004 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cat >conftest.
$ac_ext <<_ACEOF
10013 cat confdefs.h
>>conftest.
$ac_ext
10014 cat >>conftest.
$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018 #define $ac_func innocuous_$ac_func
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10026 # include <limits.h>
10028 # include <assert.h>
10033 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10041 /* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10047 char (*f) () = $ac_func;
10056 return f != $ac_func;
10061 rm -f conftest.
$ac_objext conftest
$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10065 grep -v '^ *+' conftest.er1
>conftest.err
10067 cat conftest.err
>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try
='test -s conftest$ac_exeext'
10077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078 (eval $ac_try) 2>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); }; }; then
10082 eval "$as_ac_var=yes"
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.
$ac_ext >&5
10087 eval "$as_ac_var=no"
10089 rm -f conftest.err conftest.
$ac_objext \
10090 conftest
$ac_exeext conftest.
$ac_ext
10092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10094 if test `eval echo '${'$as_ac_var'}'` = yes; then
10095 cat >>confdefs.h
<<_ACEOF
10096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10102 if test "x$ac_cv_func_fork" = xyes
; then
10103 echo "$as_me:$LINENO: checking for working fork" >&5
10104 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10105 if test "${ac_cv_func_fork_works+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 if test "$cross_compiling" = yes; then
10109 ac_cv_func_fork_works
=cross
10111 cat >conftest.
$ac_ext <<_ACEOF
10114 cat confdefs.h
>>conftest.
$ac_ext
10115 cat >>conftest.
$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10117 $ac_includes_default
10122 /* By Ruediger Kuhlmann. */
10131 rm -f conftest
$ac_exeext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10133 (eval $ac_link) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_func_fork_works
=yes
10144 echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.
$ac_ext >&5
10148 ( exit $ac_status )
10149 ac_cv_func_fork_works
=no
10151 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10154 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10155 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10158 ac_cv_func_fork_works
=$ac_cv_func_fork
10160 if test "x$ac_cv_func_fork_works" = xcross
; then
10162 *-*-amigaos* |
*-*-msdosdjgpp*)
10163 # Override, as these systems have only a dummy fork() stub
10164 ac_cv_func_fork_works
=no
10167 ac_cv_func_fork_works
=yes
10170 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10171 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10173 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10174 if test "x$ac_cv_func_vfork" = xyes
; then
10175 echo "$as_me:$LINENO: checking for working vfork" >&5
10176 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10177 if test "${ac_cv_func_vfork_works+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 if test "$cross_compiling" = yes; then
10181 ac_cv_func_vfork_works
=cross
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 /* Thanks to Paul Eggert for this test. */
10191 #include <stdlib.h>
10192 #include <sys/types.h>
10193 #include <sys/stat.h>
10194 #include <sys/wait.h>
10196 # include <unistd.h>
10199 # include <vfork.h>
10201 /* On some sparc systems, changes by the child to local and incoming
10202 argument registers are propagated back to the parent. The compiler
10203 is told about this with #include <vfork.h>, but some compilers
10204 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10205 static variable whose address is put into a register that is
10206 clobbered by the vfork. */
10209 sparc_address_test (int arg)
10211 sparc_address_test (arg) int arg;
10214 static pid_t child;
10232 pid_t parent = getpid ();
10235 sparc_address_test (0);
10240 /* Here is another test for sparc vfork register problems. This
10241 test uses lots of local variables, at least as many local
10242 variables as main has allocated so far including compiler
10243 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10244 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10245 reuse the register of parent for one of the local variables,
10246 since it will think that parent can't possibly be used any more
10247 in this routine. Assigning to the local variable will thus
10248 munge parent in the parent process. */
10250 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10251 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10252 /* Convince the compiler that p..p7 are live; otherwise, it might
10253 use the same hardware register for all 8 local variables. */
10254 if (p != p1 || p != p2 || p != p3 || p != p4
10255 || p != p5 || p != p6 || p != p7)
10258 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10259 from child file descriptors. If the child closes a descriptor
10260 before it execs or exits, this munges the parent's descriptor
10261 as well. Test for this by closing stdout in the child. */
10262 _exit(close(fileno(stdout)) != 0);
10267 while (wait(&status) != child)
10270 /* Was there some problem with vforking? */
10273 /* Did the child fail? (This shouldn't happen.) */
10276 /* Did the vfork/compiler bug occur? */
10277 || parent != getpid()
10279 /* Did the file descriptor bug occur? */
10280 || fstat(fileno(stdout), &st) != 0
10285 rm -f conftest
$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
10296 ac_cv_func_vfork_works
=yes
10298 echo "$as_me: program exited with status $ac_status" >&5
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.
$ac_ext >&5
10302 ( exit $ac_status )
10303 ac_cv_func_vfork_works
=no
10305 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10309 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10312 if test "x$ac_cv_func_fork_works" = xcross
; then
10313 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10314 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10315 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10318 if test "x$ac_cv_func_vfork_works" = xyes
; then
10320 cat >>confdefs.h
<<\_ACEOF
10321 #define HAVE_WORKING_VFORK 1
10326 cat >>confdefs.h
<<\_ACEOF
10331 if test "x$ac_cv_func_fork_works" = xyes
; then
10333 cat >>confdefs.h
<<\_ACEOF
10334 #define HAVE_WORKING_FORK 1
10341 if test "X$prefix" = "XNONE"; then
10342 acl_final_prefix
="$ac_default_prefix"
10344 acl_final_prefix
="$prefix"
10346 if test "X$exec_prefix" = "XNONE"; then
10347 acl_final_exec_prefix
='${prefix}'
10349 acl_final_exec_prefix
="$exec_prefix"
10351 acl_save_prefix
="$prefix"
10352 prefix
="$acl_final_prefix"
10353 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10354 prefix
="$acl_save_prefix"
10357 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10358 if test "${with_gnu_ld+set}" = set; then
10359 withval
="$with_gnu_ld"
10360 test "$withval" = no || with_gnu_ld
=yes
10364 # Prepare PATH_SEPARATOR.
10365 # The user is always right.
10366 if test "${PATH_SEPARATOR+set}" != set; then
10367 echo "#! /bin/sh" >conf$$.sh
10368 echo "exit 0" >>conf$$.sh
10370 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10378 if test "$GCC" = yes; then
10379 # Check if gcc -print-prog-name=ld gives a path.
10380 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10381 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10384 # gcc leaves a trailing carriage return which upsets mingw
10385 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10387 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10390 # Accept absolute paths.
10391 [\\/]* |
[A-Za-z
]:[\\/]*)
10392 re_direlt
='/[^/][^/]*/\.\./'
10393 # Canonicalize the path of ld
10394 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10395 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10396 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10398 test -z "$LD" && LD
="$ac_prog"
10401 # If it fails, then pretend we aren't using GCC.
10405 # If it is relative, then search for the first ld in PATH.
10406 with_gnu_ld
=unknown
10409 elif test "$with_gnu_ld" = yes; then
10410 echo "$as_me:$LINENO: checking for GNU ld" >&5
10411 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10413 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10414 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10416 if test "${acl_cv_path_LD+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 if test -z "$LD"; then
10420 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10421 for ac_dir
in $PATH; do
10422 test -z "$ac_dir" && ac_dir
=.
10423 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10424 acl_cv_path_LD
="$ac_dir/$ac_prog"
10425 # Check to see if the program is GNU ld. I'd rather use --version,
10426 # but apparently some GNU ld's only accept -v.
10427 # Break only if it was the GNU/non-GNU ld that we prefer.
10428 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10429 test "$with_gnu_ld" != no
&& break
10431 test "$with_gnu_ld" != yes && break
10437 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10441 LD
="$acl_cv_path_LD"
10442 if test -n "$LD"; then
10443 echo "$as_me:$LINENO: result: $LD" >&5
10444 echo "${ECHO_T}$LD" >&6
10446 echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6
10449 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10450 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10451 { (exit 1); exit 1; }; }
10452 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10453 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10454 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10458 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10459 acl_cv_prog_gnu_ld
=yes
10461 acl_cv_prog_gnu_ld
=no
10464 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10465 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10466 with_gnu_ld
=$acl_cv_prog_gnu_ld
10470 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10471 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10472 if test "${acl_cv_rpath+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10477 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10479 rm -f .
/conftest.sh
10483 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10484 echo "${ECHO_T}$acl_cv_rpath" >&6
10486 libext
="$acl_cv_libext"
10487 shlibext
="$acl_cv_shlibext"
10488 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10489 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10490 hardcode_direct
="$acl_cv_hardcode_direct"
10491 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10492 # Check whether --enable-rpath or --disable-rpath was given.
10493 if test "${enable_rpath+set}" = set; then
10494 enableval
="$enable_rpath"
10508 acl_save_prefix
="$prefix"
10509 prefix
="$acl_final_prefix"
10510 acl_save_exec_prefix
="$exec_prefix"
10511 exec_prefix
="$acl_final_exec_prefix"
10513 eval additional_includedir
=\"$includedir\"
10514 eval additional_libdir
=\"$libdir\"
10516 exec_prefix
="$acl_save_exec_prefix"
10517 prefix
="$acl_save_prefix"
10520 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10521 if test "${with_libiconv_prefix+set}" = set; then
10522 withval
="$with_libiconv_prefix"
10524 if test "X$withval" = "Xno"; then
10527 if test "X$withval" = "X"; then
10529 acl_save_prefix
="$prefix"
10530 prefix
="$acl_final_prefix"
10531 acl_save_exec_prefix
="$exec_prefix"
10532 exec_prefix
="$acl_final_exec_prefix"
10534 eval additional_includedir
=\"$includedir\"
10535 eval additional_libdir
=\"$libdir\"
10537 exec_prefix
="$acl_save_exec_prefix"
10538 prefix
="$acl_save_prefix"
10541 additional_includedir
="$withval/include"
10542 additional_libdir
="$withval/lib"
10552 names_already_handled
=
10553 names_next_round
='iconv '
10554 while test -n "$names_next_round"; do
10555 names_this_round
="$names_next_round"
10557 for name
in $names_this_round; do
10559 for n
in $names_already_handled; do
10560 if test "$n" = "$name"; then
10561 already_handled
=yes
10565 if test -z "$already_handled"; then
10566 names_already_handled
="$names_already_handled $name"
10567 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10568 eval value
=\"\
$HAVE_LIB$uppername\"
10569 if test -n "$value"; then
10570 if test "$value" = yes; then
10571 eval value
=\"\
$LIB$uppername\"
10572 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10573 eval value
=\"\
$LTLIB$uppername\"
10574 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10583 if test $use_additional = yes; then
10584 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10585 found_dir
="$additional_libdir"
10586 found_so
="$additional_libdir/lib$name.$shlibext"
10587 if test -f "$additional_libdir/lib$name.la"; then
10588 found_la
="$additional_libdir/lib$name.la"
10591 if test -f "$additional_libdir/lib$name.$libext"; then
10592 found_dir
="$additional_libdir"
10593 found_a
="$additional_libdir/lib$name.$libext"
10594 if test -f "$additional_libdir/lib$name.la"; then
10595 found_la
="$additional_libdir/lib$name.la"
10600 if test "X$found_dir" = "X"; then
10601 for x
in $LDFLAGS $LTLIBICONV; do
10603 acl_save_prefix
="$prefix"
10604 prefix
="$acl_final_prefix"
10605 acl_save_exec_prefix
="$exec_prefix"
10606 exec_prefix
="$acl_final_exec_prefix"
10608 exec_prefix
="$acl_save_exec_prefix"
10609 prefix
="$acl_save_prefix"
10613 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10614 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10616 found_so
="$dir/lib$name.$shlibext"
10617 if test -f "$dir/lib$name.la"; then
10618 found_la
="$dir/lib$name.la"
10621 if test -f "$dir/lib$name.$libext"; then
10623 found_a
="$dir/lib$name.$libext"
10624 if test -f "$dir/lib$name.la"; then
10625 found_la
="$dir/lib$name.la"
10631 if test "X$found_dir" != "X"; then
10636 if test "X$found_dir" != "X"; then
10637 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10638 if test "X$found_so" != "X"; then
10639 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10640 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10643 for x
in $ltrpathdirs; do
10644 if test "X$x" = "X$found_dir"; then
10649 if test -z "$haveit"; then
10650 ltrpathdirs
="$ltrpathdirs $found_dir"
10652 if test "$hardcode_direct" = yes; then
10653 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10655 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10656 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10658 for x
in $rpathdirs; do
10659 if test "X$x" = "X$found_dir"; then
10664 if test -z "$haveit"; then
10665 rpathdirs
="$rpathdirs $found_dir"
10669 for x
in $LDFLAGS $LIBICONV; do
10671 acl_save_prefix
="$prefix"
10672 prefix
="$acl_final_prefix"
10673 acl_save_exec_prefix
="$exec_prefix"
10674 exec_prefix
="$acl_final_exec_prefix"
10676 exec_prefix
="$acl_save_exec_prefix"
10677 prefix
="$acl_save_prefix"
10679 if test "X$x" = "X-L$found_dir"; then
10684 if test -z "$haveit"; then
10685 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10687 if test "$hardcode_minus_L" != no
; then
10688 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10690 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10696 if test "X$found_a" != "X"; then
10697 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10699 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10702 additional_includedir
=
10703 case "$found_dir" in
10705 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10706 additional_includedir
="$basedir/include"
10709 if test "X$additional_includedir" != "X"; then
10710 if test "X$additional_includedir" != "X/usr/include"; then
10712 if test "X$additional_includedir" = "X/usr/local/include"; then
10713 if test -n "$GCC"; then
10715 linux
*) haveit
=yes;;
10719 if test -z "$haveit"; then
10720 for x
in $CPPFLAGS $INCICONV; do
10722 acl_save_prefix
="$prefix"
10723 prefix
="$acl_final_prefix"
10724 acl_save_exec_prefix
="$exec_prefix"
10725 exec_prefix
="$acl_final_exec_prefix"
10727 exec_prefix
="$acl_save_exec_prefix"
10728 prefix
="$acl_save_prefix"
10730 if test "X$x" = "X-I$additional_includedir"; then
10735 if test -z "$haveit"; then
10736 if test -d "$additional_includedir"; then
10737 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10743 if test -n "$found_la"; then
10744 save_libdir
="$libdir"
10745 case "$found_la" in
10746 */* |
*\\*) .
"$found_la" ;;
10747 *) .
"./$found_la" ;;
10749 libdir
="$save_libdir"
10750 for dep
in $dependency_libs; do
10753 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10754 if test "X$additional_libdir" != "X/usr/lib"; then
10756 if test "X$additional_libdir" = "X/usr/local/lib"; then
10757 if test -n "$GCC"; then
10759 linux
*) haveit
=yes;;
10763 if test -z "$haveit"; then
10765 for x
in $LDFLAGS $LIBICONV; do
10767 acl_save_prefix
="$prefix"
10768 prefix
="$acl_final_prefix"
10769 acl_save_exec_prefix
="$exec_prefix"
10770 exec_prefix
="$acl_final_exec_prefix"
10772 exec_prefix
="$acl_save_exec_prefix"
10773 prefix
="$acl_save_prefix"
10775 if test "X$x" = "X-L$additional_libdir"; then
10780 if test -z "$haveit"; then
10781 if test -d "$additional_libdir"; then
10782 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10786 for x
in $LDFLAGS $LTLIBICONV; do
10788 acl_save_prefix
="$prefix"
10789 prefix
="$acl_final_prefix"
10790 acl_save_exec_prefix
="$exec_prefix"
10791 exec_prefix
="$acl_final_exec_prefix"
10793 exec_prefix
="$acl_save_exec_prefix"
10794 prefix
="$acl_save_prefix"
10796 if test "X$x" = "X-L$additional_libdir"; then
10801 if test -z "$haveit"; then
10802 if test -d "$additional_libdir"; then
10803 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10810 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10811 if test "$enable_rpath" != no
; then
10813 for x
in $rpathdirs; do
10814 if test "X$x" = "X$dir"; then
10819 if test -z "$haveit"; then
10820 rpathdirs
="$rpathdirs $dir"
10823 for x
in $ltrpathdirs; do
10824 if test "X$x" = "X$dir"; then
10829 if test -z "$haveit"; then
10830 ltrpathdirs
="$ltrpathdirs $dir"
10835 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10838 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10841 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10842 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10848 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10849 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10855 if test "X$rpathdirs" != "X"; then
10856 if test -n "$hardcode_libdir_separator"; then
10858 for found_dir
in $rpathdirs; do
10859 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10861 acl_save_libdir
="$libdir"
10863 eval flag
=\"$hardcode_libdir_flag_spec\"
10864 libdir
="$acl_save_libdir"
10865 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10867 for found_dir
in $rpathdirs; do
10868 acl_save_libdir
="$libdir"
10869 libdir
="$found_dir"
10870 eval flag
=\"$hardcode_libdir_flag_spec\"
10871 libdir
="$acl_save_libdir"
10872 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10876 if test "X$ltrpathdirs" != "X"; then
10877 for found_dir
in $ltrpathdirs; do
10878 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10888 am_save_CPPFLAGS
="$CPPFLAGS"
10890 for element
in $INCICONV; do
10892 for x
in $CPPFLAGS; do
10894 acl_save_prefix
="$prefix"
10895 prefix
="$acl_final_prefix"
10896 acl_save_exec_prefix
="$exec_prefix"
10897 exec_prefix
="$acl_final_exec_prefix"
10899 exec_prefix
="$acl_save_exec_prefix"
10900 prefix
="$acl_save_prefix"
10902 if test "X$x" = "X$element"; then
10907 if test -z "$haveit"; then
10908 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10913 echo "$as_me:$LINENO: checking for iconv" >&5
10914 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10915 if test "${am_cv_func_iconv+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 am_cv_func_iconv
="no, consider installing GNU libiconv"
10921 cat >conftest.
$ac_ext <<_ACEOF
10924 cat confdefs.h
>>conftest.
$ac_ext
10925 cat >>conftest.
$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927 #include <stdlib.h>
10932 iconv_t cd = iconv_open("","");
10933 iconv(cd,NULL,NULL,NULL,NULL);
10939 rm -f conftest.
$ac_objext conftest
$ac_exeext
10940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10941 (eval $ac_link) 2>conftest.er1
10943 grep -v '^ *+' conftest.er1
>conftest.err
10945 cat conftest.err
>&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } &&
10948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; } &&
10954 { ac_try
='test -s conftest$ac_exeext'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; }; then
10960 am_cv_func_iconv
=yes
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.
$ac_ext >&5
10966 rm -f conftest.err conftest.
$ac_objext \
10967 conftest
$ac_exeext conftest.
$ac_ext
10968 if test "$am_cv_func_iconv" != yes; then
10969 am_save_LIBS
="$LIBS"
10970 LIBS
="$LIBS $LIBICONV"
10971 cat >conftest.
$ac_ext <<_ACEOF
10974 cat confdefs.h
>>conftest.
$ac_ext
10975 cat >>conftest.
$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 #include <stdlib.h>
10982 iconv_t cd = iconv_open("","");
10983 iconv(cd,NULL,NULL,NULL,NULL);
10989 rm -f conftest.
$ac_objext conftest
$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10993 grep -v '^ *+' conftest.er1
>conftest.err
10995 cat conftest.err
>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try
='test -s conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 am_cv_lib_iconv
=yes
11011 am_cv_func_iconv
=yes
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.
$ac_ext >&5
11017 rm -f conftest.err conftest.
$ac_objext \
11018 conftest
$ac_exeext conftest.
$ac_ext
11019 LIBS
="$am_save_LIBS"
11023 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11024 echo "${ECHO_T}$am_cv_func_iconv" >&6
11025 if test "$am_cv_func_iconv" = yes; then
11027 cat >>confdefs.h
<<\_ACEOF
11028 #define HAVE_ICONV 1
11032 if test "$am_cv_lib_iconv" = yes; then
11033 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11034 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11035 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11036 echo "${ECHO_T}$LIBICONV" >&6
11038 CPPFLAGS
="$am_save_CPPFLAGS"
11045 if test "$am_cv_func_iconv" = yes; then
11046 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11047 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11048 if test "${am_cv_proto_iconv+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 cat >conftest.
$ac_ext <<_ACEOF
11055 cat confdefs.h
>>conftest.
$ac_ext
11056 cat >>conftest.
$ac_ext <<_ACEOF
11057 /* end confdefs.h. */
11059 #include <stdlib.h>
11065 #if defined(__STDC__) || defined(__cplusplus)
11066 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11079 rm -f conftest.
$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>conftest.er1
11083 grep -v '^ *+' conftest.er1
>conftest.err
11085 cat conftest.err
>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try
='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 am_cv_proto_iconv_arg1
=""
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.
$ac_ext >&5
11105 am_cv_proto_iconv_arg1
="const"
11107 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11108 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);"
11111 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11112 echo "$as_me:$LINENO: result: ${ac_t:-
11113 }$am_cv_proto_iconv" >&5
11114 echo "${ECHO_T}${ac_t:-
11115 }$am_cv_proto_iconv" >&6
11117 cat >>confdefs.h
<<_ACEOF
11118 #define ICONV_CONST $am_cv_proto_iconv_arg1
11123 # Until we have in-tree GNU iconv:
11128 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 #include <locale.h>
11148 rm -f conftest.
$ac_objext conftest
$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11152 grep -v '^ *+' conftest.er1
>conftest.err
11154 cat conftest.err
>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try
='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 am_cv_val_LC_MESSAGES
=yes
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.
$ac_ext >&5
11174 am_cv_val_LC_MESSAGES
=no
11176 rm -f conftest.err conftest.
$ac_objext \
11177 conftest
$ac_exeext conftest.
$ac_ext
11179 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11180 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11181 if test $am_cv_val_LC_MESSAGES = yes; then
11183 cat >>confdefs.h
<<\_ACEOF
11184 #define HAVE_LC_MESSAGES 1
11191 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11192 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11193 if test "${am_cv_langinfo_codeset+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.
$ac_ext <<_ACEOF
11199 cat confdefs.h
>>conftest.
$ac_ext
11200 cat >>conftest.
$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 #include <langinfo.h>
11206 char* cs = nl_langinfo(CODESET);
11211 rm -f conftest.
$ac_objext conftest
$ac_exeext
11212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11213 (eval $ac_link) 2>conftest.er1
11215 grep -v '^ *+' conftest.er1
>conftest.err
11217 cat conftest.err
>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; } &&
11226 { ac_try
='test -s conftest$ac_exeext'
11227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11228 (eval $ac_try) 2>&5
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); }; }; then
11232 am_cv_langinfo_codeset
=yes
11234 echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.
$ac_ext >&5
11237 am_cv_langinfo_codeset
=no
11239 rm -f conftest.err conftest.
$ac_objext \
11240 conftest
$ac_exeext conftest.
$ac_ext
11243 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11244 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11245 if test $am_cv_langinfo_codeset = yes; then
11247 cat >>confdefs.h
<<\_ACEOF
11248 #define HAVE_LANGINFO_CODESET 1
11254 # We will need to find libiberty.h and ansidecl.h
11255 saved_CFLAGS
="$CFLAGS"
11256 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11296 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11297 strsignal strstr strverscmp \
11298 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11299 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
11301 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11302 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11303 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11304 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 cat >conftest.
$ac_ext <<_ACEOF
11310 cat confdefs.h
>>conftest.
$ac_ext
11311 cat >>conftest.
$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11314 #define $ac_tr_decl 1
11316 #include "ansidecl.h"
11317 #include "system.h"
11323 char *(*pfn) = (char *(*)) $ac_func ;
11329 rm -f conftest.
$ac_objext
11330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11331 (eval $ac_compile) 2>conftest.er1
11333 grep -v '^ *+' conftest.er1
>conftest.err
11335 cat conftest.err
>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; } &&
11344 { ac_try
='test -s conftest.$ac_objext'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; }; then
11350 eval "gcc_cv_have_decl_$ac_func=yes"
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 eval "gcc_cv_have_decl_$ac_func=no"
11357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11360 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11361 echo "$as_me:$LINENO: result: yes" >&5
11362 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11363 #define $ac_tr_decl 1
11367 echo "$as_me:$LINENO: result: no" >&5
11368 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11369 #define $ac_tr_decl 0
11380 for ac_func
in getrlimit setrlimit getrusage
11382 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11383 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11384 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11385 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 cat >conftest.
$ac_ext <<_ACEOF
11391 cat confdefs.h
>>conftest.
$ac_ext
11392 cat >>conftest.
$ac_ext <<_ACEOF
11393 /* end confdefs.h. */
11395 #define $ac_tr_decl 1
11397 #include "ansidecl.h"
11398 #include "system.h"
11399 #ifdef HAVE_SYS_RESOURCE_H
11400 #include <sys/resource.h>
11408 char *(*pfn) = (char *(*)) $ac_func ;
11414 rm -f conftest.
$ac_objext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11416 (eval $ac_compile) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1
>conftest.err
11420 cat conftest.err
>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try
='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 eval "gcc_cv_have_decl_$ac_func=yes"
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.
$ac_ext >&5
11440 eval "gcc_cv_have_decl_$ac_func=no"
11442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11445 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11446 echo "$as_me:$LINENO: result: yes" >&5
11447 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11448 #define $ac_tr_decl 1
11452 echo "$as_me:$LINENO: result: no" >&5
11453 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11454 #define $ac_tr_decl 0
11462 cat >conftest.
$ac_ext <<_ACEOF
11465 cat confdefs.h
>>conftest.
$ac_ext
11466 cat >>conftest.
$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 #include "ansidecl.h"
11470 #include "system.h"
11471 #ifdef HAVE_SYS_RESOURCE_H
11472 #include <sys/resource.h>
11483 rm -f conftest.
$ac_objext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11485 (eval $ac_compile) 2>conftest.er1
11487 grep -v '^ *+' conftest.er1
>conftest.err
11489 cat conftest.err
>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } &&
11492 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494 (eval $ac_try) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); }; } &&
11498 { ac_try
='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.
$ac_ext >&5
11510 cat >>confdefs.h
<<\_ACEOF
11511 #define rlim_t long
11515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11517 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11518 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11519 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11520 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11522 for ac_func
in ldgetname
11524 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11525 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11526 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11527 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 cat >conftest.
$ac_ext <<_ACEOF
11533 cat confdefs.h
>>conftest.
$ac_ext
11534 cat >>conftest.
$ac_ext <<_ACEOF
11535 /* end confdefs.h. */
11537 #define $ac_tr_decl 1
11539 #include "ansidecl.h"
11540 #include "system.h"
11541 #ifdef HAVE_LDFCN_H
11552 char *(*pfn) = (char *(*)) $ac_func ;
11558 rm -f conftest.
$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1
>conftest.err
11564 cat conftest.err
>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try
='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "gcc_cv_have_decl_$ac_func=yes"
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.
$ac_ext >&5
11584 eval "gcc_cv_have_decl_$ac_func=no"
11586 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11589 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11590 echo "$as_me:$LINENO: result: yes" >&5
11591 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11592 #define $ac_tr_decl 1
11596 echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11598 #define $ac_tr_decl 0
11607 for ac_func
in times
11609 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11610 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11611 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11612 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.
$ac_ext <<_ACEOF
11618 cat confdefs.h
>>conftest.
$ac_ext
11619 cat >>conftest.
$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11622 #define $ac_tr_decl 1
11624 #include "ansidecl.h"
11625 #include "system.h"
11626 #ifdef HAVE_SYS_TIMES_H
11627 #include <sys/times.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" || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try
='test -s conftest.$ac_objext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 eval "gcc_cv_have_decl_$ac_func=yes"
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.
$ac_ext >&5
11667 eval "gcc_cv_have_decl_$ac_func=no"
11669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11672 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11673 echo "$as_me:$LINENO: result: yes" >&5
11674 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11675 #define $ac_tr_decl 1
11679 echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11681 #define $ac_tr_decl 0
11689 # More time-related stuff.
11690 echo "$as_me:$LINENO: checking for struct tms" >&5
11691 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11692 if test "${ac_cv_struct_tms+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 cat >conftest.
$ac_ext <<_ACEOF
11699 cat confdefs.h
>>conftest.
$ac_ext
11700 cat >>conftest.
$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11703 #include "ansidecl.h"
11704 #include "system.h"
11705 #ifdef HAVE_SYS_TIMES_H
11706 #include <sys/times.h>
11717 rm -f conftest.
$ac_objext
11718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11719 (eval $ac_compile) 2>conftest.er1
11721 grep -v '^ *+' conftest.er1
>conftest.err
11723 cat conftest.err
>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
11726 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728 (eval $ac_try) 2>&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); }; } &&
11732 { ac_try
='test -s conftest.$ac_objext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 ac_cv_struct_tms
=yes
11740 echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.
$ac_ext >&5
11743 ac_cv_struct_tms
=no
11745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11747 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11748 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11749 if test $ac_cv_struct_tms = yes; then
11751 cat >>confdefs.h
<<\_ACEOF
11752 #define HAVE_STRUCT_TMS 1
11757 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11758 # revisit after autoconf 2.50.
11759 echo "$as_me:$LINENO: checking for clock_t" >&5
11760 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11761 if test "${gcc_cv_type_clock_t+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cat >conftest.
$ac_ext <<_ACEOF
11768 cat confdefs.h
>>conftest.
$ac_ext
11769 cat >>conftest.
$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 #include "ansidecl.h"
11773 #include "system.h"
11783 rm -f conftest.
$ac_objext
11784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11785 (eval $ac_compile) 2>conftest.er1
11787 grep -v '^ *+' conftest.er1
>conftest.err
11789 cat conftest.err
>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
11792 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try
='test -s conftest.$ac_objext'
11799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 gcc_cv_type_clock_t
=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.
$ac_ext >&5
11809 gcc_cv_type_clock_t
=no
11811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11813 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11814 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11815 if test $gcc_cv_type_clock_t = yes; then
11817 cat >>confdefs.h
<<\_ACEOF
11818 #define HAVE_CLOCK_T 1
11823 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11824 CFLAGS
="$saved_CFLAGS"
11826 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11827 if test "${enable_initfini_array+set}" = set; then
11828 enableval
="$enable_initfini_array"
11832 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11833 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11834 if test "${gcc_cv_initfini_array+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 if test "$cross_compiling" = yes; then
11838 gcc_cv_initfini_array
=no
11840 cat >conftest.
$ac_ext <<_ACEOF
11843 cat confdefs.h
>>conftest.
$ac_ext
11844 cat >>conftest.
$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11848 int main (void) { return x; }
11849 int foo (void) { x = 0; }
11850 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11852 rm -f conftest
$ac_exeext
11853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11854 (eval $ac_link) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11863 gcc_cv_initfini_array
=yes
11865 echo "$as_me: program exited with status $ac_status" >&5
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.
$ac_ext >&5
11869 ( exit $ac_status )
11870 gcc_cv_initfini_array
=no
11872 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11875 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11876 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11877 enable_initfini_array
=$gcc_cv_initfini_array
11880 if test $enable_initfini_array = yes; then
11882 cat >>confdefs.h
<<\_ACEOF
11883 #define HAVE_INITFINI_ARRAY 1
11888 # mkdir takes a single argument on some systems.
11889 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11890 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11891 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.
$ac_ext <<_ACEOF
11897 cat confdefs.h
>>conftest.
$ac_ext
11898 cat >>conftest.
$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11901 #include <sys/types.h>
11902 #ifdef HAVE_SYS_STAT_H
11903 # include <sys/stat.h>
11905 #ifdef HAVE_UNISTD_H
11906 # include <unistd.h>
11908 #ifdef HAVE_DIRECT_H
11909 # include <direct.h>
11919 rm -f conftest.
$ac_objext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11921 (eval $ac_compile) 2>conftest.er1
11923 grep -v '^ *+' conftest.er1
>conftest.err
11925 cat conftest.err
>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
11928 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try
='test -s conftest.$ac_objext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 gcc_cv_mkdir_takes_one_arg
=no
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.
$ac_ext >&5
11945 gcc_cv_mkdir_takes_one_arg
=yes
11947 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11949 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11950 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11951 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11953 cat >>confdefs.h
<<\_ACEOF
11954 #define MKDIR_TAKES_ONE_ARG 1
11966 # With Setjmp/Longjmp based exception handling.
11967 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11968 if test "${enable_sjlj_exceptions+set}" = set; then
11969 enableval
="$enable_sjlj_exceptions"
11970 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11972 cat >>confdefs.h
<<_ACEOF
11973 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11978 # For platforms with the unwind ABI which includes an unwind library,
11979 # libunwind, we can choose to use the system libunwind.
11981 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11982 if test "${with_system_libunwind+set}" = set; then
11983 withval
="$with_system_libunwind"
11987 # --------------------------------------------------------
11988 # Build, host, and target specific configuration fragments
11989 # --------------------------------------------------------
11991 # Collect build-machine-specific information.
11992 .
${srcdir}/config.build
11994 # Collect host-machine-specific information.
11995 .
${srcdir}/config.
host
11999 # Collect target-machine-specific information.
12000 .
${srcdir}/config.gcc
12002 extra_objs
="${host_extra_objs} ${extra_objs}"
12003 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12005 # Default the target-machine variables that were not explicitly set.
12006 if test x
"$tm_file" = x
12007 then tm_file
=$cpu_type/$cpu_type.h
; fi
12009 if test x
"$extra_headers" = x
12010 then extra_headers
=; fi
12012 if test x
$md_file = x
12013 then md_file
=$cpu_type/$cpu_type.md
; fi
12015 if test x
$out_file = x
12016 then out_file
=$cpu_type/$cpu_type.c
; fi
12018 if test x
"$tmake_file" = x
12019 then tmake_file
=$cpu_type/t-
$cpu_type
12022 if test x
"$dwarf2" = xyes
12023 then tm_file
="$tm_file tm-dwarf2.h"
12026 # Say what files are being used for the output code and MD file.
12027 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12028 echo "Using \`$srcdir/config/$md_file' as machine description file."
12030 # If any of the xm_file variables contain nonexistent files, warn
12031 # about them and drop them.
12034 for x
in $build_xm_file; do
12035 if test -f $srcdir/config
/$x
12037 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12038 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12041 build_xm_file
="$bx"
12044 for x
in $host_xm_file; do
12045 if test -f $srcdir/config
/$x
12047 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12048 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12054 for x
in $xm_file; do
12055 if test -f $srcdir/config
/$x
12057 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12058 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12064 for f
in $tm_file; do
12067 if test $count = ax
; then
12068 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12070 echo "Using the following target machine macro files:"
12071 for f
in $tm_file; do
12072 echo " $srcdir/config/$f"
12076 if test x
$need_64bit_hwint = xyes
; then
12078 cat >>confdefs.h
<<\_ACEOF
12079 #define NEED_64BIT_HOST_WIDE_INT 1
12084 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12086 cat >>confdefs.h
<<\_ACEOF
12087 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12093 for f
in $host_xm_file; do
12096 if test $count = a
; then
12098 elif test $count = ax
; then
12099 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12101 echo "Using the following host machine macro files:"
12102 for f
in $host_xm_file; do
12103 echo " $srcdir/config/$f"
12106 echo "Using ${out_host_hook_obj} for host machine hooks."
12108 if test "$host_xm_file" != "$build_xm_file"; then
12110 for f
in $build_xm_file; do
12113 if test $count = a
; then
12115 elif test $count = ax
; then
12116 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12118 echo "Using the following build machine macro files:"
12119 for f
in $build_xm_file; do
12120 echo " $srcdir/config/$f"
12129 # Check if a valid thread package
12130 case ${enable_threads} in
12133 target_thread_file
='single'
12137 target_thread_file
='single'
12139 aix | dce | gnat | irix | posix | posix95 | rtems | \
12140 single | solaris | vxworks | win32
)
12141 target_thread_file
=${enable_threads}
12144 echo "${enable_threads} is an unknown thread package" 1>&2
12149 if test x
${thread_file} = x
; then
12150 # No thread file set by target-specific clauses in config.gcc,
12151 # so use file chosen by default logic above
12152 thread_file
=${target_thread_file}
12155 # Make gthr-default.h if we have a thread file.
12157 if test $thread_file != single
; then
12158 rm -f gthr-default.h
12159 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12160 gthread_flags
=-DHAVE_GTHR_DEFAULT
12169 if test x
$enable___cxa_atexit = xyes || \
12170 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12171 if test x
$host = x
$target; then
12172 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12173 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12174 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 cat >conftest.
$ac_ext <<_ACEOF
12180 cat confdefs.h
>>conftest.
$ac_ext
12181 cat >>conftest.
$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185 #define __cxa_atexit innocuous___cxa_atexit
12187 /* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char __cxa_atexit (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12193 # include <limits.h>
12195 # include <assert.h>
12198 #undef __cxa_atexit
12200 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207 char __cxa_atexit ();
12208 /* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12214 char (*f) () = __cxa_atexit;
12223 return f != __cxa_atexit;
12228 rm -f conftest.
$ac_objext conftest
$ac_exeext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>conftest.er1
12232 grep -v '^ *+' conftest.er1
>conftest.err
12234 cat conftest.err
>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239 (eval $ac_try) 2>&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); }; } &&
12243 { ac_try
='test -s conftest$ac_exeext'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; }; then
12249 ac_cv_func___cxa_atexit
=yes
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.
$ac_ext >&5
12254 ac_cv_func___cxa_atexit
=no
12256 rm -f conftest.err conftest.
$ac_objext \
12257 conftest
$ac_exeext conftest.
$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12260 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12261 if test $ac_cv_func___cxa_atexit = yes; then
12264 echo "__cxa_atexit can't be enabled on this target"
12268 # We can't check for __cxa_atexit when building a cross, so assume
12272 if test x
$use_cxa_atexit = xyes
; then
12274 cat >>confdefs.h
<<\_ACEOF
12275 #define DEFAULT_USE_CXA_ATEXIT 1
12281 # Look for a file containing extra machine modes.
12282 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12283 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12286 cat >>confdefs.h
<<_ACEOF
12287 #define EXTRA_MODES_FILE "config/$extra_modes"
12292 # Convert extra_options into a form suitable for Makefile use.
12294 for f
in $extra_options; do
12295 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12299 # auto-host.h is the file containing items generated by autoconf and is
12300 # the first file included by config.h.
12301 # If host=build, it is correct to have bconfig include auto-host.h
12302 # as well. If host!=build, we are in error and need to do more
12303 # work to find out the build config parameters.
12304 if test x
$host = x
$build
12306 build_auto
=auto-host.h
12308 # We create a subdir, then run autoconf in the subdir.
12309 # To prevent recursion we set host and build for the new
12310 # invocation of configure to the build for this invocation
12317 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12318 *) realsrcdir
=..
/${srcdir};;
12320 saved_CFLAGS
="${CFLAGS}"
12321 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12322 ${realsrcdir}/configure \
12323 --enable-languages=${enable_languages-all} \
12324 --target=$target_alias --host=$build_alias --build=$build_alias
12325 CFLAGS
="${saved_CFLAGS}"
12327 # We just finished tests for the build machine, so rename
12328 # the file auto-build.h in the gcc directory.
12329 mv auto-host.h ..
/auto-build.h
12332 build_auto
=auto-build.h
12336 tm_file
="${tm_file} defaults.h"
12337 tm_p_file
="${tm_p_file} tm-preds.h"
12338 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12339 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12340 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12341 # put this back in temporarily.
12342 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12348 # Compile in configure arguments.
12349 if test -f configargs.h
; then
12350 # Being re-configured.
12351 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12352 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12354 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12357 # Double all backslashes and backslash all quotes to turn
12358 # gcc_config_arguments into a C string.
12359 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12360 $gcc_config_arguments
12362 gcc_config_arguments_str
=`cat conftest.out`
12365 cat > configargs.h
<<EOF
12366 /* Generated automatically. */
12367 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12368 static const char thread_model[] = "$thread_file";
12370 static const struct {
12371 const char *name, *value;
12372 } configure_default_options[] = $configure_default_options;
12375 # Internationalization
12376 # If we haven't got the data from the intl directory,
12377 # assume NLS is disabled.
12385 if test -f ..
/intl
/config.intl
; then
12386 . ..
/intl
/config.intl
12388 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12389 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12390 if test x
"$USE_NLS" != xyes
; then
12391 echo "$as_me:$LINENO: result: no" >&5
12392 echo "${ECHO_T}no" >&6
12394 echo "$as_me:$LINENO: result: yes" >&5
12395 echo "${ECHO_T}yes" >&6
12397 cat >>confdefs.h
<<\_ACEOF
12398 #define ENABLE_NLS 1
12402 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12403 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12404 # Look for .po and .gmo files in the source directory.
12407 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12408 # If there aren't any .gmo files the shell will give us the
12409 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12411 case "$cat" in *\
**)
12414 # The quadruple backslash is collapsed to a double backslash
12415 # by the backticks, then collapsed again by the double quotes,
12416 # leaving us with one backslash in the sed expression (right
12417 # before the dot that mustn't act as a wildcard).
12418 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12419 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12420 # The user is allowed to set LINGUAS to a list of languages to
12421 # install catalogs for. If it's empty that means "all of them."
12422 if test "x$LINGUAS" = x
; then
12423 CATALOGS
="$CATALOGS $cat"
12424 XLINGUAS
="$XLINGUAS $lang"
12426 case "$LINGUAS" in *$lang*)
12427 CATALOGS
="$CATALOGS $cat"
12428 XLINGUAS
="$XLINGUAS $lang"
12433 LINGUAS
="$XLINGUAS"
12434 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12435 echo "${ECHO_T}$LINGUAS" >&6
12438 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12439 # -liconv on the link line twice.
12440 case "$LIBINTL" in *$LIBICONV*)
12444 # Check whether --enable-secureplt or --disable-secureplt was given.
12445 if test "${enable_secureplt+set}" = set; then
12446 enableval
="$enable_secureplt"
12450 # Windows32 Registry support for specifying GCC installation paths.
12451 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12452 if test "${enable_win32_registry+set}" = set; then
12453 enableval
="$enable_win32_registry"
12458 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12459 if test "x$enable_win32_registry" != xno
; then
12460 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12461 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12462 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_func_search_save_LIBS
=$LIBS
12466 ac_cv_search_RegOpenKeyExA
=no
12467 cat >conftest.
$ac_ext <<_ACEOF
12470 cat confdefs.h
>>conftest.
$ac_ext
12471 cat >>conftest.
$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 /* Override any gcc2 internal prototype to avoid an error. */
12478 /* We use char because int might match the return type of a gcc2
12479 builtin and then its argument prototype would still apply. */
12480 char RegOpenKeyExA ();
12489 rm -f conftest.
$ac_objext conftest
$ac_exeext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12491 (eval $ac_link) 2>conftest.er1
12493 grep -v '^ *+' conftest.er1
>conftest.err
12495 cat conftest.err
>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; } &&
12504 { ac_try
='test -s conftest$ac_exeext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12510 ac_cv_search_RegOpenKeyExA
="none required"
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.
$ac_ext >&5
12516 rm -f conftest.err conftest.
$ac_objext \
12517 conftest
$ac_exeext conftest.
$ac_ext
12518 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12519 for ac_lib
in advapi32
; do
12520 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12521 cat >conftest.
$ac_ext <<_ACEOF
12524 cat confdefs.h
>>conftest.
$ac_ext
12525 cat >>conftest.
$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any gcc2 internal prototype to avoid an error. */
12532 /* We use char because int might match the return type of a gcc2
12533 builtin and then its argument prototype would still apply. */
12534 char RegOpenKeyExA ();
12543 rm -f conftest.
$ac_objext conftest
$ac_exeext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12545 (eval $ac_link) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1
>conftest.err
12549 cat conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try
='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.
$ac_ext >&5
12571 rm -f conftest.err conftest.
$ac_objext \
12572 conftest
$ac_exeext conftest.
$ac_ext
12575 LIBS
=$ac_func_search_save_LIBS
12577 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12578 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12579 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12580 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12583 enable_win32_registry
=no
12588 if test "x$enable_win32_registry" != xno
; then
12590 cat >>confdefs.h
<<\_ACEOF
12591 #define ENABLE_WIN32_REGISTRY 1
12595 if test "x$enable_win32_registry" != xyes \
12596 && test "x$enable_win32_registry" != x
; then
12598 cat >>confdefs.h
<<_ACEOF
12599 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12607 # Get an absolute path to the GCC top-level source directory
12608 holddir
=`${PWDCMD-pwd}`
12610 topdir
=`${PWDCMD-pwd}`
12613 # Conditionalize the makefile for this host machine.
12615 for f
in ${host_xmake_file}
12617 if test -f ${srcdir}/config
/$f
12619 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12623 # Conditionalize the makefile for this target machine.
12625 for f
in ${tmake_file}
12627 if test -f ${srcdir}/config
/$f
12629 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12632 tmake_file
="${tmake_file_}"
12634 # If the host doesn't support symlinks, modify CC in
12635 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12636 # Otherwise, we can use "CC=$(CC)".
12640 cc_set_by_configure
="\$(CC)"
12641 quoted_cc_set_by_configure
="\$(CC)"
12642 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12643 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12646 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12647 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12648 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12649 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12653 # This is a terrible hack which will go away some day.
12654 host_cc_for_libada
=${CC}
12657 out_object_file
=`basename $out_file .c`.o
12659 tm_file_list
="options.h"
12660 tm_include_list
="options.h"
12661 for f
in $tm_file; do
12664 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12665 tm_include_list
="${tm_include_list} $f"
12668 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12669 tm_include_list
="${tm_include_list} config/$f"
12676 for f
in $tm_p_file; do
12679 tm_p_file_list
="${tm_p_file_list} $f"
12680 tm_p_include_list
="${tm_p_include_list} $f"
12683 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12684 tm_p_include_list
="${tm_p_include_list} config/$f"
12690 for f
in $xm_file; do
12693 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12694 xm_include_list
="${xm_include_list} $f"
12697 xm_file_list
="${xm_file_list} $f"
12698 xm_include_list
="${xm_include_list} $f"
12701 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12702 xm_include_list
="${xm_include_list} config/$f"
12708 host_xm_include_list
=
12709 for f
in $host_xm_file; do
12712 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12713 host_xm_include_list
="${host_xm_include_list} $f"
12716 host_xm_file_list
="${host_xm_file_list} $f"
12717 host_xm_include_list
="${host_xm_include_list} $f"
12720 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12721 host_xm_include_list
="${host_xm_include_list} config/$f"
12726 build_xm_file_list
=
12727 for f
in $build_xm_file; do
12730 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12731 build_xm_include_list
="${build_xm_include_list} $f"
12733 auto-build.h | auto-host.h
)
12734 build_xm_file_list
="${build_xm_file_list} $f"
12735 build_xm_include_list
="${build_xm_include_list} $f"
12738 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12739 build_xm_include_list
="${build_xm_include_list} config/$f"
12744 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12745 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12748 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12750 if test "x$with_build_sysroot" != x
; then
12751 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12753 # This value is used, even on a native system, because
12754 # CROSS_SYSTEM_HEADER_DIR is just
12755 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12756 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12759 if test x
$host != x
$target
12761 CROSS
="-DCROSS_COMPILE"
12763 SYSTEM_HEADER_DIR
=$build_system_header_dir
12764 case "$host","$target" in
12765 # Darwin crosses can use the host system's libraries and headers,
12766 # because of the fat library support. Of course, it must be the
12767 # same version of Darwin on both sides. Allow the user to
12768 # just say --target=foo-darwin without a version number to mean
12769 # "the version on this system".
12770 *-*-darwin*,*-*-darwin*)
12771 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12772 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12773 if test $hostos = $targetos -o $targetos = darwin
; then
12775 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12780 i?
86-*-*,x86_64-
*-* \
12781 | powerpc
*-*-*,powerpc64
*-*-*)
12782 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12784 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12785 SYSTEM_HEADER_DIR
=$build_system_header_dir
12788 # If this is a cross-compiler that does not
12789 # have its own set of headers then define
12792 # If this is using newlib, without having the headers available now,
12793 # then define inhibit_libc in LIBGCC2_CFLAGS.
12794 # This prevents libgcc2 from containing any code which requires libc
12797 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12798 test x
$with_newlib = xyes
; } &&
12799 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12804 # When building gcc with a cross-compiler, we need to adjust things so
12805 # that the generator programs are still built with the native compiler.
12806 # Also, we cannot run fixincludes or fix-header.
12808 # These are the normal (build=host) settings:
12809 CC_FOR_BUILD
='$(CC)'
12810 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12811 STMP_FIXINC
=stmp-fixinc
12813 # Possibly disable fixproto, on a per-target basis.
12814 case ${use_fixproto} in
12819 STMP_FIXPROTO
=stmp-fixproto
12824 # And these apply if build != host, or we are generating coverage data
12825 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12827 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12829 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12830 if test "x$STMP_FIXPROTO" != x
; then
12831 STMP_FIXPROTO
=stmp-install-fixproto
12836 # Expand extra_headers to include complete path.
12837 # This substitutes for lots of t-* files.
12838 extra_headers_list
=
12839 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12840 for file in ${extra_headers} ; do
12841 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12844 # Define collect2 in Makefile.
12845 case $host_can_use_collect2 in
12847 *) collect2
='collect2$(exeext)' ;;
12851 # Add a definition of USE_COLLECT2 if system wants one.
12852 case $use_collect2 in
12853 no
) use_collect2
= ;;
12856 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12857 xm_defines
="${xm_defines} USE_COLLECT2"
12858 case $host_can_use_collect2 in
12860 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12861 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12862 { (exit 1); exit 1; }; }
12868 # ---------------------------
12869 # Assembler & linker features
12870 # ---------------------------
12872 # Identify the assembler which will work hand-in-glove with the newly
12873 # built GCC, so that we can examine its features. This is the assembler
12874 # which will be driven by the driver program.
12876 # If build != host, and we aren't building gas in-tree, we identify a
12877 # build->target assembler and hope that it will have the same features
12878 # as the host->target assembler we'll be using.
12879 gcc_cv_gas_major_version
=
12880 gcc_cv_gas_minor_version
=
12881 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12883 if test "${gcc_cv_as+set}" = set; then
12887 if test -x "$DEFAULT_ASSEMBLER"; then
12888 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12889 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12890 && test -f ..
/gas
/Makefile \
12891 && test x
$build = x
$host; then
12892 gcc_cv_as
=..
/gas
/as-new
$build_exeext
12893 elif test -x as
$build_exeext; then
12894 # Build using assembler in the current directory.
12895 gcc_cv_as
=.
/as
$build_exeext
12896 elif test -x $AS_FOR_TARGET; then
12897 gcc_cv_as
="$AS_FOR_TARGET"
12899 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12900 set dummy
$AS_FOR_TARGET; ac_word
=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
12911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12912 for as_dir
in $PATH
12915 test -z "$as_dir" && as_dir
=.
12916 for ac_exec_ext
in '' $ac_executable_extensions; do
12917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
12919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 gcc_cv_as
=$ac_cv_path_gcc_cv_as
12930 if test -n "$gcc_cv_as"; then
12931 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12932 echo "${ECHO_T}$gcc_cv_as" >&6
12934 echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12942 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
12945 echo "$as_me:$LINENO: checking what assembler to use" >&5
12946 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12947 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
12948 # Single tree build which includes gas. We want to prefer it
12949 # over whatever linker top-level may have detected, since
12950 # we'll use what we're building after installation anyway.
12951 echo "$as_me:$LINENO: result: newly built gas" >&5
12952 echo "${ECHO_T}newly built gas" >&6
12954 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12955 for f
in $gcc_cv_as_bfd_srcdir/configure \
12956 $gcc_cv_as_gas_srcdir/configure \
12957 $gcc_cv_as_gas_srcdir/configure.
in \
12958 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12959 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12960 if test x
$gcc_cv_gas_version != x
; then
12964 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12965 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12966 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12967 case $gcc_cv_gas_patch_version in
12968 "") gcc_cv_gas_patch_version
="0" ;;
12970 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12971 + $gcc_cv_gas_minor_version \) \* 1000 \
12972 + $gcc_cv_gas_patch_version`
12974 in_tree_gas_is_elf
=no
12975 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12976 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12977 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12979 in_tree_gas_is_elf
=yes
12982 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12983 echo "${ECHO_T}$gcc_cv_as" >&6
12987 # Identify the linker which will work hand-in-glove with the newly
12988 # built GCC, so that we can examine its features. This is the linker
12989 # which will be driven by the driver program.
12991 # If build != host, and we aren't building gas in-tree, we identify a
12992 # build->target linker and hope that it will have the same features
12993 # as the host->target linker we'll be using.
12994 gcc_cv_gld_major_version
=
12995 gcc_cv_gld_minor_version
=
12996 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12997 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12999 if test "${gcc_cv_ld+set}" = set; then
13003 if test -x "$DEFAULT_LINKER"; then
13004 gcc_cv_ld
="$DEFAULT_LINKER"
13005 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13006 && test -f ..
/ld
/Makefile \
13007 && test x
$build = x
$host; then
13008 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13009 elif test -x collect-ld
$build_exeext; then
13010 # Build using linker in the current directory.
13011 gcc_cv_ld
=.
/collect-ld
$build_exeext
13012 elif test -x $LD_FOR_TARGET; then
13013 gcc_cv_ld
="$LD_FOR_TARGET"
13015 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13016 set dummy
$LD_FOR_TARGET; ac_word
=$2
13017 echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13019 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13028 for as_dir
in $PATH
13031 test -z "$as_dir" && as_dir
=.
13032 for ac_exec_ext
in '' $ac_executable_extensions; do
13033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13034 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13046 if test -n "$gcc_cv_ld"; then
13047 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13048 echo "${ECHO_T}$gcc_cv_ld" >&6
13050 echo "$as_me:$LINENO: result: no" >&5
13051 echo "${ECHO_T}no" >&6
13058 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13061 echo "$as_me:$LINENO: checking what linker to use" >&5
13062 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13063 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13064 # Single tree build which includes ld. We want to prefer it
13065 # over whatever linker top-level may have detected, since
13066 # we'll use what we're building after installation anyway.
13067 echo "$as_me:$LINENO: result: newly built ld" >&5
13068 echo "${ECHO_T}newly built ld" >&6
13070 in_tree_ld_is_elf
=no
13071 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13072 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13073 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13074 in_tree_ld_is_elf
=yes
13076 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
13078 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13079 if test x
$gcc_cv_gld_version != x
; then
13083 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13084 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13086 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13087 echo "${ECHO_T}$gcc_cv_ld" >&6
13091 # Figure out what nm we will be using.
13092 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13093 if test "${gcc_cv_nm+set}" = set; then
13097 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13098 && test -f ..
/binutils
/Makefile
; then
13099 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13100 elif test -x nm
$build_exeext; then
13101 gcc_cv_nm
=.
/nm
$build_exeext
13102 elif test -x $NM_FOR_TARGET; then
13103 gcc_cv_nm
="$NM_FOR_TARGET"
13105 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13106 set dummy
$NM_FOR_TARGET; ac_word
=$2
13107 echo "$as_me:$LINENO: checking for $ac_word" >&5
13108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13109 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13118 for as_dir
in $PATH
13121 test -z "$as_dir" && as_dir
=.
13122 for ac_exec_ext
in '' $ac_executable_extensions; do
13123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13124 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13136 if test -n "$gcc_cv_nm"; then
13137 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13138 echo "${ECHO_T}$gcc_cv_nm" >&6
13140 echo "$as_me:$LINENO: result: no" >&5
13141 echo "${ECHO_T}no" >&6
13148 echo "$as_me:$LINENO: checking what nm to use" >&5
13149 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13150 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13151 # Single tree build which includes binutils.
13152 echo "$as_me:$LINENO: result: newly built nm" >&5
13153 echo "${ECHO_T}newly built nm" >&6
13156 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13157 echo "${ECHO_T}$gcc_cv_nm" >&6
13161 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13164 # Figure out what objdump we will be using.
13165 if test "${gcc_cv_objdump+set}" = set; then
13169 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13170 && test -f ..
/binutils
/Makefile
; then
13171 # Single tree build which includes binutils.
13172 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13173 elif test -x objdump
$build_exeext; then
13174 gcc_cv_objdump
=.
/objdump
$build_exeext
13175 elif test -x $OBJDUMP_FOR_TARGET; then
13176 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13178 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13179 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13180 echo "$as_me:$LINENO: checking for $ac_word" >&5
13181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13182 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 case $gcc_cv_objdump in
13187 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13191 for as_dir
in $PATH
13194 test -z "$as_dir" && as_dir
=.
13195 for ac_exec_ext
in '' $ac_executable_extensions; do
13196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13207 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13209 if test -n "$gcc_cv_objdump"; then
13210 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13211 echo "${ECHO_T}$gcc_cv_objdump" >&6
13213 echo "$as_me:$LINENO: result: no" >&5
13214 echo "${ECHO_T}no" >&6
13221 echo "$as_me:$LINENO: checking what objdump to use" >&5
13222 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13223 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13224 # Single tree build which includes binutils.
13225 echo "$as_me:$LINENO: result: newly built objdump" >&5
13226 echo "${ECHO_T}newly built objdump" >&6
13227 elif test x
$gcc_cv_objdump = x
; then
13228 echo "$as_me:$LINENO: result: not found" >&5
13229 echo "${ECHO_T}not found" >&6
13231 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13232 echo "${ECHO_T}$gcc_cv_objdump" >&6
13235 # Figure out what assembler alignment features are present.
13236 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13237 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13238 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 gcc_cv_as_balign_and_p2align
=no
13242 if test $in_tree_gas = yes; then
13243 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13244 then gcc_cv_as_balign_and_p2align
=yes
13246 elif test x
$gcc_cv_as != x
; then
13248 .p2align 2' > conftest.s
13249 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; }
13256 gcc_cv_as_balign_and_p2align
=yes
13258 echo "configure: failed program was" >&5
13261 rm -f conftest.o conftest.s
13264 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13265 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13266 if test $gcc_cv_as_balign_and_p2align = yes; then
13268 cat >>confdefs.h
<<\_ACEOF
13269 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13274 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13275 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13276 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 gcc_cv_as_max_skip_p2align
=no
13280 if test $in_tree_gas = yes; then
13281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13282 then gcc_cv_as_max_skip_p2align
=yes
13284 elif test x
$gcc_cv_as != x
; then
13285 echo '.p2align 4,,7' > conftest.s
13286 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288 (eval $ac_try) 2>&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); }; }
13293 gcc_cv_as_max_skip_p2align
=yes
13295 echo "configure: failed program was" >&5
13298 rm -f conftest.o conftest.s
13301 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13302 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13303 if test $gcc_cv_as_max_skip_p2align = yes; then
13305 cat >>confdefs.h
<<\_ACEOF
13306 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13311 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13312 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13313 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 gcc_cv_as_subsection_m1
=no
13317 if test $in_tree_gas = yes; then
13318 if test $in_tree_gas_is_elf = yes \
13319 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13320 then gcc_cv_as_subsection_m1
=yes
13322 elif test x
$gcc_cv_as != x
; then
13323 echo 'conftest_label1: .word 0
13325 conftest_label2: .word 0
13326 .previous' > conftest.s
13327 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }
13334 if test x
$gcc_cv_nm != x
; then
13335 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13336 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13337 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13339 else gcc_cv_as_subsection_m1
=yes
13341 rm -f conftest.nm1 conftest.nm2
13344 echo "configure: failed program was" >&5
13347 rm -f conftest.o conftest.s
13350 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13351 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13352 if test $gcc_cv_as_subsection_m1 = yes; then
13354 cat >>confdefs.h
<<\_ACEOF
13355 #define HAVE_GAS_SUBSECTION_ORDERING 1
13360 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13361 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13362 if test "${gcc_cv_as_weak+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 if test $in_tree_gas = yes; then
13367 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13368 then gcc_cv_as_weak
=yes
13370 elif test x
$gcc_cv_as != x
; then
13371 echo ' .weak foobar' > conftest.s
13372 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }
13381 echo "configure: failed program was" >&5
13384 rm -f conftest.o conftest.s
13387 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13388 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13389 if test $gcc_cv_as_weak = yes; then
13391 cat >>confdefs.h
<<\_ACEOF
13392 #define HAVE_GAS_WEAK 1
13397 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13398 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13399 if test "${gcc_cv_as_weakref+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 gcc_cv_as_weakref
=no
13403 if test $in_tree_gas = yes; then
13404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13405 then gcc_cv_as_weakref
=yes
13407 elif test x
$gcc_cv_as != x
; then
13408 echo ' .weakref foobar, barfnot' > conftest.s
13409 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }
13416 gcc_cv_as_weakref
=yes
13418 echo "configure: failed program was" >&5
13421 rm -f conftest.o conftest.s
13424 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13425 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13426 if test $gcc_cv_as_weakref = yes; then
13428 cat >>confdefs.h
<<\_ACEOF
13429 #define HAVE_GAS_WEAKREF 1
13434 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13435 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13436 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 gcc_cv_as_nsubspa_comdat
=no
13440 if test $in_tree_gas = yes; then
13441 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13442 then gcc_cv_as_nsubspa_comdat
=yes
13444 elif test x
$gcc_cv_as != x
; then
13445 echo ' .SPACE $TEXT$
13446 .NSUBSPA $CODE$,COMDAT' > conftest.s
13447 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }
13454 gcc_cv_as_nsubspa_comdat
=yes
13456 echo "configure: failed program was" >&5
13459 rm -f conftest.o conftest.s
13462 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13463 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13464 if test $gcc_cv_as_nsubspa_comdat = yes; then
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define HAVE_GAS_NSUBSPA_COMDAT 1
13472 # .hidden needs to be supported in both the assembler and the linker,
13473 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13474 # This is irritatingly difficult to feature test for; we have to check the
13475 # date string after the version number. If we've got an in-tree
13476 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13478 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13479 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13480 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13481 if test "${gcc_cv_as_hidden+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13484 gcc_cv_as_hidden
=no
13485 if test $in_tree_gas = yes; then
13486 if test $in_tree_gas_is_elf = yes \
13487 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13488 then gcc_cv_as_hidden
=yes
13490 elif test x
$gcc_cv_as != x
; then
13491 echo ' .hidden foobar
13492 foobar:' > conftest.s
13493 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }
13500 gcc_cv_as_hidden
=yes
13502 echo "configure: failed program was" >&5
13505 rm -f conftest.o conftest.s
13508 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13509 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13512 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13513 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13514 if test "${gcc_cv_ld_hidden+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 if test $in_tree_ld = yes ; then
13518 gcc_cv_ld_hidden
=no
13519 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 \
13520 && test $in_tree_ld_is_elf = yes; then
13521 gcc_cv_ld_hidden
=yes
13524 gcc_cv_ld_hidden
=yes
13525 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13526 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13527 ld_vers
=`echo $ld_ver | sed -n \
13528 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13529 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13530 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13531 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13532 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13533 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13534 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13535 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'`
13536 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13537 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13538 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13539 if test 0"$ld_date" -lt 20020404; then
13540 if test -n "$ld_date"; then
13541 # If there was date string, but was earlier than 2002-04-04, fail
13542 gcc_cv_ld_hidden
=no
13543 elif test -z "$ld_vers"; then
13544 # If there was no date string nor ld version number, something is wrong
13545 gcc_cv_ld_hidden
=no
13547 test -z "$ld_vers_patch" && ld_vers_patch
=0
13548 if test "$ld_vers_major" -lt 2; then
13549 gcc_cv_ld_hidden
=no
13550 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13551 gcc_cv_ld_hidden
="no"
13552 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13553 gcc_cv_ld_hidden
=no
13558 case "${target}" in
13559 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13560 gcc_cv_ld_hidden
=yes
13563 gcc_cv_ld_hidden
=no
13569 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13570 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13571 libgcc_visibility
=no
13574 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13575 libgcc_visibility
=yes
13577 cat >>confdefs.h
<<\_ACEOF
13578 #define HAVE_GAS_HIDDEN 1
13583 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13584 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13585 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13586 if test "${gcc_cv_as_leb128+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 gcc_cv_as_leb128
=no
13590 if test $in_tree_gas = yes; then
13591 if test $in_tree_gas_is_elf = yes \
13592 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13593 then gcc_cv_as_leb128
=yes
13595 elif test x
$gcc_cv_as != x
; then
13602 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }
13609 # GAS versions before 2.11 do not support uleb128,
13610 # despite appearing to.
13611 # ??? There exists an elf-specific test that will crash
13612 # the assembler. Perhaps it's better to figure out whether
13613 # arbitrary sections are supported and try the test.
13614 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13615 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13616 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13617 as_major
=`echo $as_ver | sed 's/\..*//'`
13618 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13619 if test $as_major -eq 2 && test $as_minor -lt 11
13621 else gcc_cv_as_leb128
=yes
13625 echo "configure: failed program was" >&5
13628 rm -f conftest.o conftest.s
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13632 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13633 if test $gcc_cv_as_leb128 = yes; then
13635 cat >>confdefs.h
<<\_ACEOF
13636 #define HAVE_AS_LEB128 1
13641 # GAS versions up to and including 2.11.0 may mis-optimize
13643 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13644 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13645 if test "${gcc_cv_as_eh_frame+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 gcc_cv_as_eh_frame
=no
13649 if test $in_tree_gas = yes; then
13650 if test $in_tree_gas_is_elf = yes \
13651 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13652 then gcc_cv_as_eh_frame
=yes
13654 elif test x
$gcc_cv_as != x
; then
13661 .section .eh_frame,"aw",@progbits
13663 .4byte .LECIE1-.LSCIE1
13677 .4byte .LEFDE1-.LASFDE1
13679 .4byte .LASFDE1-__FRAME_BEGIN__
13686 .LEFDE1:' > conftest.s
13687 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }
13694 cat > conftest.lit
<<EOF
13695 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13696 0010 01000000 12000000 18000000 00000000 ................
13697 0020 08000000 04080000 0044 .........D
13699 cat > conftest.big
<<EOF
13700 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13701 0010 00000001 00000012 00000018 00000000 ................
13702 0020 00000008 04000000 0844 .........D
13704 # If the assembler didn't choke, and we can objdump,
13705 # and we got the correct data, then succeed.
13706 if test x
$gcc_cv_objdump != x \
13707 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13708 |
tail -3 > conftest.got \
13709 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13710 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13712 gcc_cv_as_eh_frame
=yes
13713 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 gcc_cv_as_eh_frame
=buggy
13721 # Uh oh, what do we do now?
13722 gcc_cv_as_eh_frame
=no
13725 echo "configure: failed program was" >&5
13728 rm -f conftest.o conftest.s
13731 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13732 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13735 if test $gcc_cv_as_eh_frame = buggy
; then
13737 cat >>confdefs.h
<<\_ACEOF
13738 #define USE_AS_TRADITIONAL_FORMAT 1
13743 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13744 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13745 if test "${gcc_cv_as_shf_merge+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13748 gcc_cv_as_shf_merge
=no
13749 if test $in_tree_gas = yes; then
13750 if test $in_tree_gas_is_elf = yes \
13751 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13752 then gcc_cv_as_shf_merge
=yes
13754 elif test x
$gcc_cv_as != x
; then
13755 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13756 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }
13763 gcc_cv_as_shf_merge
=yes
13765 echo "configure: failed program was" >&5
13768 rm -f conftest.o conftest.s
13771 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13772 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13774 if test $gcc_cv_as_shf_merge = no
; then
13775 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13776 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13777 if test "${gcc_cv_as_shf_merge+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 gcc_cv_as_shf_merge
=no
13781 if test $in_tree_gas = yes; then
13782 if test $in_tree_gas_is_elf = yes \
13783 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13784 then gcc_cv_as_shf_merge
=yes
13786 elif test x
$gcc_cv_as != x
; then
13787 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13788 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }
13795 gcc_cv_as_shf_merge
=yes
13797 echo "configure: failed program was" >&5
13800 rm -f conftest.o conftest.s
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13804 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13808 cat >>confdefs.h
<<_ACEOF
13809 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13813 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13814 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13815 if test "${gcc_cv_as_comdat_group+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 gcc_cv_as_comdat_group
=no
13819 if test $in_tree_gas = yes; then
13820 if test $in_tree_gas_is_elf = yes \
13821 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13822 then gcc_cv_as_comdat_group
=yes
13824 elif test x
$gcc_cv_as != x
; then
13825 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13826 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }
13833 gcc_cv_as_comdat_group
=yes
13835 echo "configure: failed program was" >&5
13838 rm -f conftest.o conftest.s
13841 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13842 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13844 if test $gcc_cv_as_comdat_group = yes; then
13845 gcc_cv_as_comdat_group_percent
=no
13847 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13848 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13849 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 gcc_cv_as_comdat_group_percent
=no
13853 if test $in_tree_gas = yes; then
13854 if test $in_tree_gas_is_elf = yes \
13855 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13856 then gcc_cv_as_comdat_group_percent
=yes
13858 elif test x
$gcc_cv_as != x
; then
13859 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13860 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; }
13867 gcc_cv_as_comdat_group_percent
=yes
13869 echo "configure: failed program was" >&5
13872 rm -f conftest.o conftest.s
13875 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13876 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13879 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
13881 if test 0"$ld_date" -lt 20050308; then
13882 if test -n "$ld_date"; then
13883 # If there was date string, but was earlier than 2005-03-08, fail
13885 elif test "$ld_vers_major" -lt 2; then
13887 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13891 if test $comdat_group = no
; then
13892 gcc_cv_as_comdat_group
=no
13893 gcc_cv_as_comdat_group_percent
=no
13897 cat >>confdefs.h
<<_ACEOF
13898 #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`
13902 # Thread-local storage - the check is heavily parametrized.
13910 .section ".tdata","awT",@progbits
13913 ldq $27,__tls_get_addr($29) !literal!1
13914 lda $16,foo($29) !tlsgd!1
13915 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13916 ldq $27,__tls_get_addr($29) !literal!2
13917 lda $16,foo($29) !tlsldm!2
13918 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13919 ldq $1,foo($29) !gotdtprel
13920 ldah $2,foo($29) !dtprelhi
13921 lda $3,foo($2) !dtprello
13922 lda $4,foo($29) !dtprel
13923 ldq $1,foo($29) !gottprel
13924 ldah $2,foo($29) !tprelhi
13925 lda $3,foo($2) !tprello
13926 lda $4,foo($29) !tprel'
13929 tls_as_opt
=--fatal-warnings
13933 .section ".tdata","awT",@progbits
13936 call #gettlsoff(x)'
13945 .section ".tdata","awT",@progbits
13949 addil LT%foo-$tls_gdidx$,gp
13950 ldo RT%foo-$tls_gdidx$(%r1),%arg0
13953 addil LT%foo-$tls_ldidx$,gp
13955 ldo RT%foo-$tls_ldidx$(%r1),%arg0
13956 addil LR%foo-$tls_dtpoff$,%ret0
13957 ldo RR%foo-$tls_dtpoff$(%r1),%t1
13959 addil LT%foo-$tls_ieoff$,gp
13960 ldw RT%foo-$tls_ieoff$(%r1),%t2
13963 addil LR%foo-$tls_leoff$,%t1
13964 ldo RR%foo-$tls_leoff$(%r1),%t2'
13967 tls_as_opt
=--fatal-warnings
13971 .section ".tdata","awT",%progbits
13974 .word foo(gottpoff)
13984 .section ".tdata","awT",@progbits
13988 leal foo@TLSGD(,%ebx,1), %eax
13989 leal foo@TLSLDM(%ebx), %eax
13990 leal foo@DTPOFF(%eax), %edx
13991 movl foo@GOTTPOFF(%ebx), %eax
13992 subl foo@GOTTPOFF(%ebx), %eax
13993 addl foo@GOTNTPOFF(%ebx), %eax
13994 movl foo@INDNTPOFF, %eax
13995 movl $foo@TPOFF, %eax
13996 subl $foo@TPOFF, %eax
13997 leal foo@NTPOFF(%ecx), %eax'
14000 tls_as_opt
=--fatal-warnings
14004 .section ".tdata","awT",@progbits
14008 leaq foo@TLSGD(%rip), %rdi
14009 leaq foo@TLSLD(%rip), %rdi
14010 leaq foo@DTPOFF(%rax), %rdx
14011 movq foo@GOTTPOFF(%rip), %rax
14012 movq $foo@TPOFF, %rax'
14015 tls_as_opt
=--fatal-warnings
14019 .section ".tdata","awT",@progbits
14022 addl r16 = @ltoff(@dtpmod(foo#)), gp
14023 addl r17 = @ltoff(@dtprel(foo#)), gp
14024 addl r18 = @ltoff(@tprel(foo#)), gp
14025 addl r19 = @dtprel(foo#), gp
14026 adds r21 = @dtprel(foo#), r13
14027 movl r23 = @dtprel(foo#)
14028 addl r20 = @tprel(foo#), gp
14029 adds r22 = @tprel(foo#), r13
14030 movl r24 = @tprel(foo#)'
14033 tls_as_opt
=--fatal-warnings
14037 .section .tdata,"awT",@progbits
14041 addiu $4, $28, %tlsgd(x)
14042 addiu $4, $28, %tlsldm(x)
14043 lui $4, %dtprel_hi(x)
14044 addiu $4, $4, %dtprel_lo(x)
14045 lw $4, %gottprel(x)($28)
14046 lui $4, %tprel_hi(x)
14047 addiu $4, $4, %tprel_lo(x)'
14050 tls_as_opt
='-32 --fatal-warnings'
14054 .section ".tdata","awT",@progbits
14062 addi 3,31,ld0@got@tlsgd
14064 addi 3,31,x1@got@tlsld
14067 addis 9,3,x2@dtprel@ha
14068 addi 9,9,x2@dtprel@l
14069 lwz 9,x3@got@tprel(31)
14072 addis 9,2,x2@tprel@ha
14073 addi 9,9,x2@tprel@l'
14076 tls_as_opt
="-a32 --fatal-warnings"
14080 .section ".tdata","awT",@progbits
14088 addi 3,2,ld0@got@tlsgd
14094 addi 3,2,x1@got@tlsld
14100 addis 9,3,x2@dtprel@ha
14101 addi 9,9,x2@dtprel@l
14104 ld 9,x3@got@dtprel(2)
14110 tls_as_opt
="-a64 --fatal-warnings"
14114 .section ".tdata","awT",@progbits
14121 .long foo@GOTNTPOFF
14122 .long foo@INDNTPOFF
14123 l %r1,foo@GOTNTPOFF(%r12)
14124 l %r1,0(%r1):tls_load:foo
14125 bas %r14,0(%r1,%r13):tls_gdcall:foo
14126 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14129 tls_as_opt
="-m31 --fatal-warnings"
14133 .section ".tdata","awT",@progbits
14140 .quad foo@GOTNTPOFF
14141 lg %r1,foo@GOTNTPOFF(%r12)
14142 larl %r1,foo@INDNTPOFF
14143 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14144 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14147 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14149 sh-
*-* | sh
[34]-*-*)
14151 .section ".tdata","awT",@progbits
14161 tls_as_opt
=--fatal-warnings
14165 sparc
*-sun-solaris2.
*)
14172 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14174 .section ".tdata",#alloc,#write,#tls
14177 sethi %tgd_hi22(foo), %o0
14178 add %o0, %tgd_lo10(foo), %o1
14179 add %l7, %o1, %o0, %tgd_add(foo)
14180 call __tls_get_addr, %tgd_call(foo)
14181 sethi %tldm_hi22(foo), %l1
14182 add %l1, %tldm_lo10(foo), %l2
14183 add %l7, %l2, %o0, %tldm_add(foo)
14184 call __tls_get_addr, %tldm_call(foo)
14185 sethi %tldo_hix22(foo), %l3
14186 xor %l3, %tldo_lox10(foo), %l4
14187 add %o0, %l4, %l5, %tldo_add(foo)
14188 sethi %tie_hi22(foo), %o3
14189 add %o3, %tie_lo10(foo), %o3
14190 ld [%l7 + %o3], %o2, %tie_ld(foo)
14191 add %g7, %o2, %o4, %tie_add(foo)
14192 sethi %tle_hix22(foo), %l1
14193 xor %l1, %tle_lox10(foo), %o5
14194 ld [%g7 + %o5], %o1'
14199 .section ".tdata","awT",@progbits
14202 sethi %tgd_hi22(foo), %o0
14203 add %o0, %tgd_lo10(foo), %o1
14204 add %l7, %o1, %o0, %tgd_add(foo)
14205 call __tls_get_addr, %tgd_call(foo)
14206 sethi %tldm_hi22(foo), %l1
14207 add %l1, %tldm_lo10(foo), %l2
14208 add %l7, %l2, %o0, %tldm_add(foo)
14209 call __tls_get_addr, %tldm_call(foo)
14210 sethi %tldo_hix22(foo), %l3
14211 xor %l3, %tldo_lox10(foo), %l4
14212 add %o0, %l4, %l5, %tldo_add(foo)
14213 sethi %tie_hi22(foo), %o3
14214 add %o3, %tie_lo10(foo), %o3
14215 ld [%l7 + %o3], %o2, %tie_ld(foo)
14216 add %g7, %o2, %o4, %tie_add(foo)
14217 sethi %tle_hix22(foo), %l1
14218 xor %l1, %tle_lox10(foo), %o5
14219 ld [%g7 + %o5], %o1'
14222 tls_as_opt
="-32 --fatal-warnings"
14227 if test "x$enable_tls" = xno
; then
14228 : # TLS explicitly disabled.
14229 elif test "x$enable_tls" = xyes
; then
14230 set_have_as_tls
=yes # TLS explicitly enabled.
14231 elif test -z "$tls_first_major"; then
14232 : # If we don't have a check, assume no support.
14234 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14235 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14236 if test "${gcc_cv_as_tls+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 if test $in_tree_gas = yes; then
14241 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14242 then gcc_cv_as_tls
=yes
14244 elif test x
$gcc_cv_as != x
; then
14245 echo "$conftest_s" > conftest.s
14246 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }
14255 echo "configure: failed program was" >&5
14258 rm -f conftest.o conftest.s
14261 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14262 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14263 if test $gcc_cv_as_tls = yes; then
14264 set_have_as_tls
=yes
14267 if test $set_have_as_tls = yes ; then
14269 cat >>confdefs.h
<<\_ACEOF
14270 #define HAVE_AS_TLS 1
14275 # Target-specific assembler checks.
14277 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14278 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14279 gcc_cv_ld_static_dynamic
=no
14280 if test $in_tree_ld = yes ; then
14281 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14282 gcc_cv_ld_static_dynamic
=yes
14284 elif test x
$gcc_cv_ld != x
; then
14285 # Check if linker supports -Bstatic/-Bdynamic option
14286 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14287 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14288 gcc_cv_ld_static_dynamic
=yes
14291 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14293 cat >>confdefs.h
<<\_ACEOF
14294 #define HAVE_LD_STATIC_DYNAMIC 1
14298 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14299 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14301 if test x
"$demangler_in_ld" = xyes
; then
14302 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14303 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14304 gcc_cv_ld_demangle
=no
14305 if test $in_tree_ld = yes; then
14306 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 \
14307 gcc_cv_ld_demangle
=yes
14309 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14310 # Check if the GNU linker supports --demangle option
14311 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14312 gcc_cv_ld_demangle
=yes
14315 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14317 cat >>confdefs.h
<<\_ACEOF
14318 #define HAVE_LD_DEMANGLE 1
14322 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14323 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14327 # All TARGET_ABI_OSF targets.
14328 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14329 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14330 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14331 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 gcc_cv_as_alpha_explicit_relocs
=no
14335 if test $in_tree_gas = yes; then
14336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14337 then gcc_cv_as_alpha_explicit_relocs
=yes
14339 elif test x
$gcc_cv_as != x
; then
14340 echo ' .set nomacro
14342 extbl $3, $2, $3 !lituse_bytoff!1
14343 ldq $2, a($29) !literal!1
14344 ldq $4, b($29) !literal!2
14345 ldq_u $3, 0($2) !lituse_base!1
14346 ldq $27, f($29) !literal!5
14347 jsr $26, ($27), f !lituse_jsr!5
14348 ldah $29, 0($26) !gpdisp!3
14349 lda $0, c($29) !gprel
14350 ldah $1, d($29) !gprelhigh
14351 lda $1, d($1) !gprellow
14352 lda $29, 0($29) !gpdisp!3' > conftest.s
14353 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }
14360 gcc_cv_as_alpha_explicit_relocs
=yes
14362 echo "configure: failed program was" >&5
14365 rm -f conftest.o conftest.s
14368 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14369 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14370 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14372 cat >>confdefs.h
<<\_ACEOF
14373 #define HAVE_AS_EXPLICIT_RELOCS 1
14377 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14378 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14379 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14380 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 gcc_cv_as_alpha_jsrdirect_relocs
=no
14383 if test $in_tree_gas = yes; then
14384 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14385 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14387 elif test x
$gcc_cv_as != x
; then
14388 echo ' .set nomacro
14390 ldq $27, a($29) !literal!1
14391 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14392 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }
14399 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14401 echo "configure: failed program was" >&5
14404 rm -f conftest.o conftest.s
14407 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14408 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14409 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14411 cat >>confdefs.h
<<\_ACEOF
14412 #define HAVE_AS_JSRDIRECT_RELOCS 1
14419 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14420 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14421 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 gcc_cv_as_cris_no_mul_bug
=no
14425 if test $in_tree_gas = yes; then
14426 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14427 then gcc_cv_as_cris_no_mul_bug
=yes
14429 elif test x
$gcc_cv_as != x
; then
14430 echo '.text' > conftest.s
14431 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }
14438 gcc_cv_as_cris_no_mul_bug
=yes
14440 echo "configure: failed program was" >&5
14443 rm -f conftest.o conftest.s
14446 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14447 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14448 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14450 cat >>confdefs.h
<<\_ACEOF
14451 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14458 echo "$as_me:$LINENO: checking assembler for .register" >&5
14459 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14460 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 gcc_cv_as_sparc_register_op
=no
14464 if test x
$gcc_cv_as != x
; then
14465 echo '.register %g2, #scratch' > conftest.s
14466 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }
14473 gcc_cv_as_sparc_register_op
=yes
14475 echo "configure: failed program was" >&5
14478 rm -f conftest.o conftest.s
14481 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14482 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14483 if test $gcc_cv_as_sparc_register_op = yes; then
14485 cat >>confdefs.h
<<\_ACEOF
14486 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14491 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14492 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14493 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 gcc_cv_as_sparc_relax
=no
14497 if test x
$gcc_cv_as != x
; then
14498 echo '.text' > conftest.s
14499 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }
14506 gcc_cv_as_sparc_relax
=yes
14508 echo "configure: failed program was" >&5
14511 rm -f conftest.o conftest.s
14514 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14515 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14516 if test $gcc_cv_as_sparc_relax = yes; then
14518 cat >>confdefs.h
<<\_ACEOF
14519 #define HAVE_AS_RELAX_OPTION 1
14524 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14525 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14526 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 gcc_cv_as_sparc_ua_pcrel
=no
14530 if test x
$gcc_cv_as != x
; then
14537 .uaword %r_disp32(foo)' > conftest.s
14538 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }
14545 if test x
$gcc_cv_ld != x \
14546 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14547 gcc_cv_as_sparc_ua_pcrel
=yes
14551 echo "configure: failed program was" >&5
14554 rm -f conftest.o conftest.s
14557 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14558 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14559 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14561 cat >>confdefs.h
<<\_ACEOF
14562 #define HAVE_AS_SPARC_UA_PCREL 1
14566 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14567 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14568 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14572 if test x
$gcc_cv_as != x
; then
14576 .uaword %r_disp32(foo)
14577 .byte 0x32, 0x33, 0x34
14581 .skip 4' > conftest.s
14582 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }
14589 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14590 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14591 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14592 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14593 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14594 |
grep 'DISP32' > /dev
/null
2>&1; then
14597 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14602 echo "configure: failed program was" >&5
14605 rm -f conftest.o conftest.s
14608 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14609 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14610 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14612 cat >>confdefs.h
<<\_ACEOF
14613 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14618 fi # unaligned pcrel relocs
14620 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14621 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14622 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 gcc_cv_as_sparc_offsetable_lo10
=no
14626 if test x
$gcc_cv_as != x
; then
14628 or %g1, %lo(ab) + 12, %g1
14629 or %g1, %lo(ab + 12), %g1' > conftest.s
14630 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }
14637 if test x
$gcc_cv_objdump != x \
14638 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14639 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14640 gcc_cv_as_sparc_offsetable_lo10
=yes
14643 echo "configure: failed program was" >&5
14646 rm -f conftest.o conftest.s
14649 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14650 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14651 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14653 cat >>confdefs.h
<<\_ACEOF
14654 #define HAVE_AS_OFFSETABLE_LO10 1
14660 i
[34567]86-*-* | x86_64-
*-*)
14662 cygwin
* | pe | mingw32
*)
14663 # Used for DWARF 2 in PE
14664 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14665 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14666 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 gcc_cv_as_ix86_pe_secrel32
=no
14670 if test $in_tree_gas = yes; then
14671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14672 then gcc_cv_as_ix86_pe_secrel32
=yes
14674 elif test x
$gcc_cv_as != x
; then
14678 .secrel32 foo' > conftest.s
14679 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }
14686 if test x
$gcc_cv_ld != x \
14687 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14688 gcc_cv_as_ix86_pe_secrel32
=yes
14692 echo "configure: failed program was" >&5
14695 rm -f conftest.o conftest.s
14698 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14699 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14700 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14702 cat >>confdefs.h
<<\_ACEOF
14703 #define HAVE_GAS_PE_SECREL32_RELOC 1
14710 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14711 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14712 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 gcc_cv_as_ix86_filds_fists
=no
14716 if test $in_tree_gas = yes; then
14717 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14718 then gcc_cv_as_ix86_filds_fists
=yes
14720 elif test x
$gcc_cv_as != x
; then
14721 echo 'filds mem; fists mem' > conftest.s
14722 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }
14729 gcc_cv_as_ix86_filds_fists
=yes
14731 echo "configure: failed program was" >&5
14734 rm -f conftest.o conftest.s
14737 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14738 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14739 if test $gcc_cv_as_ix86_filds_fists = yes; then
14741 cat >>confdefs.h
<<\_ACEOF
14742 #define HAVE_GAS_FILDS_FISTS 1
14747 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14748 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14749 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 gcc_cv_as_ix86_cmov_sun_syntax
=no
14753 if test x
$gcc_cv_as != x
; then
14754 echo 'cmovl.l %edx, %eax' > conftest.s
14755 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }
14762 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14764 echo "configure: failed program was" >&5
14767 rm -f conftest.o conftest.s
14770 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14771 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14772 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14774 cat >>confdefs.h
<<\_ACEOF
14775 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14780 # This one is used unconditionally by i386.[ch]; it is to be defined
14781 # to 1 if the feature is present, 0 otherwise.
14782 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14783 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14784 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 gcc_cv_as_ix86_gotoff_in_data
=no
14788 if test $in_tree_gas = yes; then
14789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14790 then gcc_cv_as_ix86_gotoff_in_data
=yes
14792 elif test x
$gcc_cv_as != x
; then
14797 .long .L0@GOTOFF' > conftest.s
14798 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }
14805 gcc_cv_as_ix86_gotoff_in_data
=yes
14807 echo "configure: failed program was" >&5
14810 rm -f conftest.o conftest.s
14813 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14814 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14817 cat >>confdefs.h
<<_ACEOF
14818 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14824 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14825 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14826 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14830 if test $in_tree_gas = yes; then
14831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14832 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14834 elif test x
$gcc_cv_as != x
; then
14836 addl r15 = @ltoffx(x#), gp
14838 ld8.mov r16 = [r15], x#' > conftest.s
14839 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }
14846 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14848 echo "configure: failed program was" >&5
14851 rm -f conftest.o conftest.s
14854 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14855 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14856 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14858 cat >>confdefs.h
<<\_ACEOF
14859 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14868 *-*-aix*) conftest_s
=' .machine "pwr5"
14872 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14873 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14874 if test "${gcc_cv_as_machine_directive+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 gcc_cv_as_machine_directive
=no
14878 if test x
$gcc_cv_as != x
; then
14879 echo ' .machine ppc7400' > conftest.s
14880 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }
14887 gcc_cv_as_machine_directive
=yes
14889 echo "configure: failed program was" >&5
14892 rm -f conftest.o conftest.s
14895 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14896 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14898 if test x
$gcc_cv_as_machine_directive != xyes
; then
14899 echo "*** This target requires an assembler supporting \".machine\"" >&2
14900 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14901 test x
$build = x
$target && exit 1
14905 *) conftest_s
=' .machine power4
14910 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14911 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14912 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14915 gcc_cv_as_powerpc_mfcrf
=no
14916 if test $in_tree_gas = yes; then
14917 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14918 then gcc_cv_as_powerpc_mfcrf
=yes
14920 elif test x
$gcc_cv_as != x
; then
14921 echo "$conftest_s" > conftest.s
14922 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }
14929 gcc_cv_as_powerpc_mfcrf
=yes
14931 echo "configure: failed program was" >&5
14934 rm -f conftest.o conftest.s
14937 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14938 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14939 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14941 cat >>confdefs.h
<<\_ACEOF
14942 #define HAVE_AS_MFCRF 1
14948 *-*-aix*) conftest_s
=' .machine "pwr5"
14951 *) conftest_s
=' .machine power5
14956 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14957 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14958 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 gcc_cv_as_powerpc_popcntb
=no
14962 if test $in_tree_gas = yes; then
14963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14964 then gcc_cv_as_powerpc_popcntb
=yes
14966 elif test x
$gcc_cv_as != x
; then
14967 echo "$conftest_s" > conftest.s
14968 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; }
14975 gcc_cv_as_powerpc_popcntb
=yes
14977 echo "configure: failed program was" >&5
14980 rm -f conftest.o conftest.s
14983 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14984 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14985 if test $gcc_cv_as_powerpc_popcntb = yes; then
14987 cat >>confdefs.h
<<\_ACEOF
14988 #define HAVE_AS_POPCNTB 1
14994 *-*-aix*) conftest_s
=' .machine "pwr5x"
14997 *) conftest_s
=' .machine power5
15002 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15003 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15004 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 gcc_cv_as_powerpc_fprnd
=no
15008 if test $in_tree_gas = yes; then
15009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15010 then gcc_cv_as_powerpc_fprnd
=yes
15012 elif test x
$gcc_cv_as != x
; then
15013 echo "$conftest_s" > conftest.s
15014 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; }
15021 gcc_cv_as_powerpc_fprnd
=yes
15023 echo "configure: failed program was" >&5
15026 rm -f conftest.o conftest.s
15029 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15030 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15031 if test $gcc_cv_as_powerpc_fprnd = yes; then
15033 cat >>confdefs.h
<<\_ACEOF
15034 #define HAVE_AS_FPRND 1
15040 *-*-aix*) conftest_s
=' .csect .text[PR]
15042 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15046 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15047 *) conftest_s
=' .text
15049 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15052 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15053 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15054 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 gcc_cv_as_powerpc_rel16
=no
15058 if test $in_tree_gas = yes; then
15059 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15060 then gcc_cv_as_powerpc_rel16
=yes
15062 elif test x
$gcc_cv_as != x
; then
15063 echo "$conftest_s" > conftest.s
15064 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }
15071 gcc_cv_as_powerpc_rel16
=yes
15073 echo "configure: failed program was" >&5
15076 rm -f conftest.o conftest.s
15079 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15080 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15081 if test $gcc_cv_as_powerpc_rel16 = yes; then
15083 cat >>confdefs.h
<<\_ACEOF
15084 #define HAVE_AS_REL16 1
15091 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15092 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15093 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 gcc_cv_as_mips_explicit_relocs
=no
15097 if test $in_tree_gas = yes; then
15098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15099 then gcc_cv_as_mips_explicit_relocs
=yes
15101 elif test x
$gcc_cv_as != x
; then
15102 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15103 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }
15110 gcc_cv_as_mips_explicit_relocs
=yes
15112 echo "configure: failed program was" >&5
15115 rm -f conftest.o conftest.s
15118 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15119 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15120 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15121 if test x
$target_cpu_default = x
15122 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15123 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15129 # Mips and HP-UX need the GNU assembler.
15130 # Linux on IA64 might be able to use the Intel assembler.
15133 mips
*-*-* |
*-*-hpux* )
15134 if test x
$gas_flag = xyes \
15135 ||
test x
"$host" != x
"$build" \
15136 ||
test ! -x "$gcc_cv_as" \
15137 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15140 echo "*** This configuration requires the GNU assembler" >&2
15146 # ??? Not all targets support dwarf2 debug_line, even within a version
15147 # of gas. Moreover, we need to emit a valid instruction to trigger any
15148 # info to the output file. So, as supported targets are added to gas 2.11,
15149 # add some instruction here to (also) show we expect this might work.
15150 # ??? Once 2.11 is released, probably need to add first known working
15151 # version to the per-target configury.
15153 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15154 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15155 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-*)
15158 ia64
*-*-* | s390
*-*-*)
15165 if test x
"$insn" != x
; then
15167 .file 1 \"conftest.s\"
15170 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15171 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15172 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 gcc_cv_as_dwarf2_debug_line
=no
15176 if test $in_tree_gas = yes; then
15177 if test $in_tree_gas_is_elf = yes \
15178 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15179 then gcc_cv_as_dwarf2_debug_line
=yes
15181 elif test x
$gcc_cv_as != x
; then
15182 echo "$conftest_s" > conftest.s
15183 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }
15190 if test x
$gcc_cv_objdump != x \
15191 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15192 |
grep debug_line
> /dev
/null
2>&1; then
15193 gcc_cv_as_dwarf2_debug_line
=yes
15196 echo "configure: failed program was" >&5
15199 rm -f conftest.o conftest.s
15202 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15203 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15206 # The .debug_line file table must be in the exact order that
15207 # we specified the files, since these indices are also used
15208 # by DW_AT_decl_file. Approximate this test by testing if
15209 # the assembler bitches if the same index is assigned twice.
15210 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15211 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15212 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 gcc_cv_as_dwarf2_file_buggy
=no
15216 if test x
$gcc_cv_as != x
; then
15217 echo ' .file 1 "foo.s"
15218 .file 1 "bar.s"' > conftest.s
15219 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }
15226 gcc_cv_as_dwarf2_file_buggy
=yes
15228 echo "configure: failed program was" >&5
15231 rm -f conftest.o conftest.s
15234 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15235 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15238 if test $gcc_cv_as_dwarf2_debug_line = yes \
15239 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15241 cat >>confdefs.h
<<\_ACEOF
15242 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15247 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15248 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15249 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15250 echo $ECHO_N "(cached) $ECHO_C" >&6
15252 gcc_cv_as_gdwarf2_flag
=no
15253 if test $in_tree_gas = yes; then
15254 if test $in_tree_gas_is_elf = yes \
15255 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15256 then gcc_cv_as_gdwarf2_flag
=yes
15258 elif test x
$gcc_cv_as != x
; then
15259 echo "$insn" > conftest.s
15260 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }
15267 gcc_cv_as_gdwarf2_flag
=yes
15269 echo "configure: failed program was" >&5
15272 rm -f conftest.o conftest.s
15275 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15276 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15277 if test $gcc_cv_as_gdwarf2_flag = yes; then
15279 cat >>confdefs.h
<<\_ACEOF
15280 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15285 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15286 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15287 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 gcc_cv_as_gstabs_flag
=no
15291 if test $in_tree_gas = yes; then
15292 if test $in_tree_gas_is_elf = yes \
15293 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15294 then gcc_cv_as_gstabs_flag
=yes
15296 elif test x
$gcc_cv_as != x
; then
15297 echo "$insn" > conftest.s
15298 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }
15305 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15306 # and warns about it, but still exits successfully. So check for
15308 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }
15315 else gcc_cv_as_gstabs_flag
=yes
15318 echo "configure: failed program was" >&5
15321 rm -f conftest.o conftest.s
15324 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15325 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15326 if test $gcc_cv_as_gstabs_flag = yes; then
15328 cat >>confdefs.h
<<\_ACEOF
15329 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15335 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15336 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15337 gcc_cv_ld_ro_rw_mix
=unknown
15338 if test $in_tree_ld = yes ; then
15339 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 \
15340 && test $in_tree_ld_is_elf = yes; then
15341 gcc_cv_ld_ro_rw_mix
=read-write
15343 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15344 echo '.section myfoosect, "a"' > conftest1.s
15345 echo '.section myfoosect, "aw"' > conftest2.s
15346 echo '.byte 1' >> conftest2.s
15347 echo '.section myfoosect, "a"' > conftest3.s
15348 echo '.byte 0' >> conftest3.s
15349 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15350 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15351 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15352 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15353 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15354 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15355 | sed -e '/myfoosect/!d' -e N`
15356 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15357 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15358 gcc_cv_ld_ro_rw_mix
=read-only
15360 gcc_cv_ld_ro_rw_mix
=read-write
15364 rm -f conftest.
* conftest
[123].
*
15366 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15368 cat >>confdefs.h
<<\_ACEOF
15369 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15373 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15374 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15376 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15377 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15378 gcc_cv_ld_eh_frame_hdr
=no
15379 if test $in_tree_ld = yes ; then
15380 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 \
15381 && test $in_tree_ld_is_elf = yes; then
15382 gcc_cv_ld_eh_frame_hdr
=yes
15384 elif test x
$gcc_cv_ld != x
; then
15385 # Check if linker supports --eh-frame-hdr option
15386 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15387 gcc_cv_ld_eh_frame_hdr
=yes
15391 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15393 cat >>confdefs.h
<<\_ACEOF
15394 #define HAVE_LD_EH_FRAME_HDR 1
15398 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15399 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15401 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15402 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15404 if test $in_tree_ld = yes ; then
15405 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 \
15406 && test $in_tree_ld_is_elf = yes; then
15409 elif test x
$gcc_cv_ld != x
; then
15410 # Check if linker supports -pie option
15411 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15415 if test x
"$gcc_cv_ld_pie" = xyes
; then
15417 cat >>confdefs.h
<<\_ACEOF
15418 #define HAVE_LD_PIE 1
15422 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15423 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15429 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15430 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15431 if test "${gcc_cv_ld_as_needed+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 gcc_cv_ld_as_needed
=no
15435 if test $in_tree_ld = yes ; then
15436 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 \
15437 && test $in_tree_ld_is_elf = yes; then
15438 gcc_cv_ld_as_needed
=yes
15440 elif test x
$gcc_cv_ld != x
; then
15441 # Check if linker supports --as-needed and --no-as-needed options
15442 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15443 gcc_cv_ld_as_needed
=yes
15448 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15449 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15450 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15452 cat >>confdefs.h
<<\_ACEOF
15453 #define HAVE_LD_AS_NEEDED 1
15458 case "$target:$tm_file" in
15459 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
15460 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15461 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15462 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15465 gcc_cv_ld_no_dot_syms
=no
15466 if test $in_tree_ld = yes ; then
15467 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
15468 gcc_cv_ld_no_dot_syms
=yes
15470 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15471 cat > conftest1.s
<<EOF
15475 cat > conftest2.s
<<EOF
15476 .section ".opd","aw"
15479 .type foo,@function
15481 .quad .LEfoo,.TOC.@tocbase,0
15487 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15488 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15489 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15490 gcc_cv_ld_no_dot_syms
=yes
15492 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15496 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15497 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15498 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15500 cat >>confdefs.h
<<\_ACEOF
15501 #define HAVE_LD_NO_DOT_SYMS 1
15508 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15509 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15510 if test "${gcc_cv_ld_sysroot+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 gcc_cv_ld_sysroot
=no
15514 if test $in_tree_ld = yes ; then
15515 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
15516 gcc_cv_ld_sysroot
=yes
15518 elif test x
$gcc_cv_ld != x
; then
15519 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15520 gcc_cv_ld_sysroot
=yes
15524 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15525 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15526 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15528 cat >>confdefs.h
<<\_ACEOF
15529 #define HAVE_LD_SYSROOT 1
15534 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15535 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15537 cat >>confdefs.h
<<_ACEOF
15538 #define PREFIX_INCLUDE_DIR "$prefix/include"
15543 # Test for stack protector support in target C library.
15546 echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15547 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15548 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15551 gcc_cv_libc_provides_ssp
=no
15552 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
15553 if test "x$with_sysroot" = x
; then
15554 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
15555 elif test "x$with_sysroot" = xyes
; then
15556 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15558 glibc_header_dir
="${with_sysroot}/usr/include"
15561 glibc_header_dir
=/usr
/include
15563 # glibc 2.4 and later provides __stack_chk_fail and
15564 # either __stack_chk_guard, or TLS access to stack guard canary.
15565 if test -f $glibc_header_dir/features.h \
15566 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
15567 $glibc_header_dir/features.h
> /dev
/null
; then
15568 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
15569 $glibc_header_dir/features.h
> /dev
/null
; then
15570 gcc_cv_libc_provides_ssp
=yes
15571 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
15572 $glibc_header_dir/features.h
> /dev
/null \
15573 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
15574 $glibc_header_dir/features.h
> /dev
/null
; then
15575 gcc_cv_libc_provides_ssp
=yes
15579 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15580 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15581 *) gcc_cv_libc_provides_ssp
=no
;;
15583 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
15585 cat >>confdefs.h
<<\_ACEOF
15586 #define TARGET_LIBC_PROVIDES_SSP 1
15591 # Find out what GC implementation we want, or may, use.
15593 # Check whether --with-gc or --without-gc was given.
15594 if test "${with_gc+set}" = set; then
15603 cat >>confdefs.h
<<\_ACEOF
15609 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15610 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15611 { (exit 1); exit 1; }; }
15618 echo "Using $GGC for garbage collection."
15620 # Use the system's zlib library.
15622 zlibinc
="-I\$(srcdir)/../zlib"
15624 # Check whether --with-system-zlib or --without-system-zlib was given.
15625 if test "${with_system_zlib+set}" = set; then
15626 withval
="$with_system_zlib"
15635 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15636 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15637 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15638 if test "${enable_maintainer_mode+set}" = set; then
15639 enableval
="$enable_maintainer_mode"
15640 maintainer_mode
=$enableval
15645 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15646 echo "${ECHO_T}$maintainer_mode" >&6
15648 if test "$maintainer_mode" = "yes"; then
15658 # Make empty files to contain the specs and options for each language.
15659 # Then add #include lines to for a compiler that has specs and/or options.
15664 for subdir
in .
$subdirs
15666 if test -f $srcdir/$subdir/lang.opt
; then
15667 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15669 if test -f $srcdir/$subdir/lang-specs.h
; then
15670 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15672 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15673 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15677 # These (without "all_") are set in each config-lang.in.
15678 # `language' must be a single word so is spelled singularly.
15680 all_boot_languages
=
15683 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15684 # List of language makefile fragments.
15685 all_lang_makefrags
=
15686 # List of language subdirectory makefiles. Deprecated.
15687 all_lang_makefiles
=
15688 # Files for gengtype
15689 all_gtfiles
="$target_gtfiles"
15690 # Files for gengtype with language
15691 all_gtfiles_files_langs
=
15692 all_gtfiles_files_files
=
15694 # Add the language fragments.
15695 # Languages are added via two mechanisms. Some information must be
15696 # recorded in makefile variables, these are defined in config-lang.in.
15697 # We accumulate them and plug them into the main Makefile.
15698 # The other mechanism is a set of hooks for each of the main targets
15699 # like `clean', `install', etc.
15701 language_hooks
="Make-hooks"
15711 .
${srcdir}/$s/config-lang.
in
15712 if test "x$language" = x
15714 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15717 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15718 if test -f ${srcdir}/$s/Makefile.
in
15719 then all_lang_makefiles
="$s/Makefile"
15721 all_languages
="$all_languages $language"
15722 if test "x$boot_language" = xyes
15724 all_boot_languages
="$all_boot_languages $language"
15726 all_compilers
="$all_compilers $compilers"
15727 all_stagestuff
="$all_stagestuff $stagestuff"
15728 all_outputs
="$all_outputs $outputs"
15729 all_gtfiles
="$all_gtfiles $gtfiles"
15732 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15733 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15737 # Pick up gtfiles for c
15740 .
${srcdir}/c-config-lang.
in
15741 all_gtfiles
="$all_gtfiles $gtfiles"
15744 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15745 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15749 for language
in $all_languages
15751 check_languages
="$check_languages check-$language"
15754 # We link each language in with a set of hooks, reached indirectly via
15759 target_list
="all.cross start.encap rest.encap tags \
15760 install-common install-man \
15761 uninstall info man srcextra srcman srcinfo \
15762 mostlyclean clean distclean maintainer-clean \
15763 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15764 for t
in $target_list
15767 for lang
in $all_languages
15771 echo "lang.$t: $x" >> Make-hooks
15780 echo "dir ." > .gdbinit
15781 echo "dir ${srcdir}" >> .gdbinit
15782 if test x
$gdb_needs_out_file_path = xyes
15784 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15786 if test "x$subdirs" != x
; then
15789 echo "dir ${srcdir}/$s" >> .gdbinit
15792 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15794 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15795 # absolute path for gcc_tooldir based on inserting the number of up-directory
15796 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15797 # $(libsubdir)/@(unlibsubdir) based path.
15798 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15799 # make and thus we'd get different behavior depending on where we built the
15801 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15802 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15804 # An explanation of the sed strings:
15805 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15806 # -e 's|/$||' match a trailing forward slash and eliminates it
15807 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15808 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15810 # (*) Note this pattern overwrites the first character of the string
15811 # with a forward slash if one is not already present. This is not a
15812 # problem because the exact names of the sub-directories concerned is
15813 # unimportant, just the number of them matters.
15815 # The practical upshot of these patterns is like this:
15817 # prefix exec_prefix result
15818 # ------ ----------- ------
15819 # /foo /foo/bar ../
15820 # /foo/ /foo/bar ../
15821 # /foo /foo/bar/ ../
15822 # /foo/ /foo/bar/ ../
15823 # /foo /foo/bar/ugg ../../
15826 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15831 # Find a directory in which to install a shared libgcc.
15833 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15834 if test "${enable_version_specific_runtime_libs+set}" = set; then
15835 enableval
="$enable_version_specific_runtime_libs"
15840 # Check whether --with-slibdir or --without-slibdir was given.
15841 if test "${with_slibdir+set}" = set; then
15842 withval
="$with_slibdir"
15843 slibdir
="$with_slibdir"
15845 if test "${enable_version_specific_runtime_libs+set}" = set; then
15846 slibdir
='$(libsubdir)'
15847 elif test "$host" != "$target"; then
15848 slibdir
='$(build_tooldir)/lib'
15850 slibdir
='$(libdir)'
15855 objdir
=`${PWDCMD-pwd}`
15858 # Substitute configuration variables
15923 if test x
${build} = x
${host} ; then
15924 if test x
${host} = x
${target} ; then
15925 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15927 echo "Links are now set up to build a cross-compiler" 1>&2
15928 echo " from ${host} to ${target}." 1>&2
15931 if test x
${host} = x
${target} ; then
15932 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15933 echo " for ${target}." 1>&2
15935 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15936 echo " from ${host} to ${target}." 1>&2
15943 # Configure the subdirectories
15944 # AC_CONFIG_SUBDIRS($subdirs)
15946 # Create the Makefile
15947 # and configure language subdirectories
15948 ac_config_files
="$ac_config_files $all_outputs"
15951 ac_config_commands
="$ac_config_commands default"
15953 cat >confcache
<<\_ACEOF
15954 # This file is a shell script that caches the results of configure
15955 # tests run on this system so they can be shared between configure
15956 # scripts and configure runs, see configure's option --config-cache.
15957 # It is not useful on other systems. If it contains results you don't
15958 # want to keep, you may remove or edit it.
15960 # config.status only pays attention to the cache file if you give it
15961 # the --recheck option to rerun configure.
15963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15965 # following values.
15969 # The following way of writing the cache mishandles newlines in values,
15970 # but we know of no workaround that is simple, portable, and efficient.
15971 # So, don't put newlines in cache variables' values.
15972 # Ultrix sh set writes to stderr and can't be redirected directly,
15973 # and sets the high bit in the cache file unless we assign to the vars.
15976 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15978 # `set' does not quote correctly, so add quotes (double-quote
15979 # substitution turns \\\\ into \\, and sed turns \\ into \).
15982 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15985 # `set' quotes correctly as required by POSIX, so do not add quotes.
15987 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15996 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15998 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15999 if test -w $cache_file; then
16000 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16001 cat confcache
>$cache_file
16003 echo "not updating unwritable cache $cache_file"
16008 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16009 # Let make expand exec_prefix.
16010 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16012 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16013 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16014 # trailing colons and then remove the whole line if VPATH becomes empty
16015 # (actually we leave an empty line to preserve line numbers).
16016 if test "x$srcdir" = x.
; then
16017 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16018 s/:*\$(srcdir):*/:/;
16019 s/:*\${srcdir}:*/:/;
16021 s/^\([^=]*=[ ]*\):*/\1/;
16027 DEFS
=-DHAVE_CONFIG_H
16031 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16032 # 1. Remove the extension, and $U if already installed.
16033 ac_i
=`echo "$ac_i" |
16034 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16036 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16037 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16039 LIBOBJS
=$ac_libobjs
16041 LTLIBOBJS
=$ac_ltlibobjs
16045 : ${CONFIG_STATUS=./config.status}
16046 ac_clean_files_save
=$ac_clean_files
16047 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16048 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16049 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16050 cat >$CONFIG_STATUS <<_ACEOF
16052 # Generated by $as_me.
16053 # Run this file to recreate the current configuration.
16054 # Compiler output produced by configure, useful for debugging
16055 # configure, is in config.log if it exists.
16058 ac_cs_recheck=false
16060 SHELL=\${CONFIG_SHELL-$SHELL}
16063 cat >>$CONFIG_STATUS <<\_ACEOF
16064 ## --------------------- ##
16065 ## M4sh Initialization. ##
16066 ## --------------------- ##
16068 # Be Bourne compatible
16069 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16073 # is contrary to our usage. Disable this feature.
16074 alias -g '${1+"$@"}'='"$@"'
16075 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16078 DUALCASE
=1; export DUALCASE
# for MKS sh
16080 # Support unset when possible.
16081 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16088 # Work around bugs in pre-3.0 UWIN ksh.
16089 $as_unset ENV MAIL MAILPATH
16096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16098 LC_TELEPHONE LC_TIME
16100 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16101 eval $as_var=C
; export $as_var
16107 # Required to use basename.
16108 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16114 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16115 as_basename
=basename
16121 # Name of the executable.
16122 as_me
=`$as_basename "$0" ||
16123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16124 X"$0" : 'X\(//\)$' \| \
16125 X"$0" : 'X\(/\)$' \| \
16126 . : '\(.\)' 2>/dev/null ||
16128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16129 /^X\/\(\/\/\)$/{ s//\1/; q; }
16130 /^X\/\(\/\).*/{ s//\1/; q; }
16134 # PATH needs CR, and LINENO needs CR and PATH.
16135 # Avoid depending upon Character Ranges.
16136 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16137 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16138 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16139 as_cr_digits
='0123456789'
16140 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16142 # The user is always right.
16143 if test "${PATH_SEPARATOR+set}" != set; then
16144 echo "#! /bin/sh" >conf$$.sh
16145 echo "exit 0" >>conf$$.sh
16147 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16156 as_lineno_1
=$LINENO
16157 as_lineno_2
=$LINENO
16158 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16159 test "x$as_lineno_1" != "x$as_lineno_2" &&
16160 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16161 # Find who we are. Look in the path if we contain no path at all
16164 *[\\/]* ) as_myself
=$0 ;;
16165 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16166 for as_dir
in $PATH
16169 test -z "$as_dir" && as_dir
=.
16170 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16175 # We did not find ourselves, most probably we were run as `sh COMMAND'
16176 # in which case we are not to be found in the path.
16177 if test "x$as_myself" = x
; then
16180 if test ! -f "$as_myself"; then
16181 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16182 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16183 { (exit 1); exit 1; }; }
16185 case $CONFIG_SHELL in
16187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16191 test -z "$as_dir" && as_dir
=.
16192 for as_base
in sh bash ksh sh5
; do
16195 if ("$as_dir/$as_base" -c '
16196 as_lineno_1=$LINENO
16197 as_lineno_2=$LINENO
16198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16199 test "x$as_lineno_1" != "x$as_lineno_2" &&
16200 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16201 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
16202 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
16203 CONFIG_SHELL
=$as_dir/$as_base
16204 export CONFIG_SHELL
16205 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16214 # uniformly replaced by the line number. The first 'sed' inserts a
16215 # line-number line before each line; the second 'sed' does the real
16216 # work. The second script uses 'N' to pair each line-number line
16217 # with the numbered line, and appends trailing '-' during
16218 # substitution so that $LINENO is not a special case at line end.
16219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16220 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16221 sed '=' <$as_myself |
16226 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16229 s,^['$as_cr_digits']*\n,,
16230 ' >$as_me.lineno
&&
16231 chmod +x
$as_me.lineno ||
16232 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16233 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16234 { (exit 1); exit 1; }; }
16236 # Don't try to exec as it changes $[0], causing all sort of problems
16237 # (the dirname of $[0] is not the place where we might find the
16238 # original and so on. Autoconf is especially sensible to this).
16240 # Exit status is that of the last command.
16245 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16246 *c
*,-n*) ECHO_N
= ECHO_C
='
16248 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16249 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16252 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16258 rm -f conf$$ conf$$.exe conf$$.
file
16260 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16261 # We could just check for DJGPP; but this test a) works b) is more generic
16262 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16263 if test -f conf$$.exe
; then
16264 # Don't use ln at all; we don't have any links
16269 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16274 rm -f conf$$ conf$$.exe conf$$.
file
16276 if mkdir
-p .
2>/dev
/null
; then
16279 test -d .
/-p && rmdir .
/-p
16283 as_executable_p
="test -f"
16285 # Sed expression to map a string onto a valid CPP name.
16286 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16288 # Sed expression to map a string onto a valid variable name.
16289 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16293 # We need space, tab and new line, in precisely that order.
16303 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16304 # report actual input values of CONFIG_FILES etc. instead of their
16305 # values after options handling. Logging --version etc. is OK.
16309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16310 ## Running $as_me. ##
16315 This file was extended by $as_me, which was
16316 generated by GNU Autoconf 2.59. Invocation command line was
16318 CONFIG_FILES = $CONFIG_FILES
16319 CONFIG_HEADERS = $CONFIG_HEADERS
16320 CONFIG_LINKS = $CONFIG_LINKS
16321 CONFIG_COMMANDS = $CONFIG_COMMANDS
16325 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16329 # Files that config.status was made for.
16330 if test -n "$ac_config_files"; then
16331 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16334 if test -n "$ac_config_headers"; then
16335 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16338 if test -n "$ac_config_links"; then
16339 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16342 if test -n "$ac_config_commands"; then
16343 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16346 cat >>$CONFIG_STATUS <<\_ACEOF
16349 \`$as_me' instantiates files from templates according to the
16350 current configuration.
16352 Usage: $0 [OPTIONS] [FILE]...
16354 -h, --help print this help, then exit
16355 -V, --version print version number, then exit
16356 -q, --quiet do not print progress messages
16357 -d, --debug don't remove temporary files
16358 --recheck update $as_me by reconfiguring in the same conditions
16359 --file=FILE[:TEMPLATE]
16360 instantiate the configuration file FILE
16361 --header=FILE[:TEMPLATE]
16362 instantiate the configuration header FILE
16364 Configuration files:
16367 Configuration headers:
16370 Configuration commands:
16373 Report bugs to <bug-autoconf@gnu.org>."
16376 cat >>$CONFIG_STATUS <<_ACEOF
16379 configured by $0, generated by GNU Autoconf 2.59,
16380 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16382 Copyright (C) 2003 Free Software Foundation, Inc.
16383 This config.status script is free software; the Free Software Foundation
16384 gives unlimited permission to copy, distribute and modify it."
16388 cat >>$CONFIG_STATUS <<\_ACEOF
16389 # If no file are specified by the user, then we need to provide default
16390 # value. By we need to know if files were specified by the user.
16396 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16397 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16405 *) # This is not an option, so the user has probably given explicit
16408 ac_need_defaults
=false
;;
16412 # Handling of the options.
16414 cat >>$CONFIG_STATUS <<\_ACEOF
16415 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16417 --version |
--vers* |
-V )
16418 echo "$ac_cs_version"; exit 0 ;;
16420 # Conflict between --help and --header
16421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16422 Try \`$0 --help' for more information." >&5
16423 echo "$as_me: error: ambiguous option: $1
16424 Try \`$0 --help' for more information." >&2;}
16425 { (exit 1); exit 1; }; };;
16426 --help |
--hel |
-h )
16427 echo "$ac_cs_usage"; exit 0 ;;
16428 --debug |
--d* |
-d )
16430 --file |
--fil |
--fi |
--f )
16432 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16433 ac_need_defaults
=false
;;
16434 --header |
--heade |
--head |
--hea )
16436 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16437 ac_need_defaults
=false
;;
16438 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16439 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16442 # This is an error.
16443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16444 Try \`$0 --help' for more information." >&5
16445 echo "$as_me: error: unrecognized option: $1
16446 Try \`$0 --help' for more information." >&2;}
16447 { (exit 1); exit 1; }; } ;;
16449 *) ac_config_targets
="$ac_config_targets $1" ;;
16455 ac_configure_extra_args
=
16457 if $ac_cs_silent; then
16459 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16463 cat >>$CONFIG_STATUS <<_ACEOF
16464 if \$ac_cs_recheck; then
16465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16471 cat >>$CONFIG_STATUS <<_ACEOF
16473 # INIT-COMMANDS section.
16482 cat >>$CONFIG_STATUS <<\_ACEOF
16483 for ac_config_target
in $ac_config_targets
16485 case "$ac_config_target" in
16486 # Handling of arguments.
16487 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16488 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16489 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16490 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16491 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16492 { (exit 1); exit 1; }; };;
16496 # If the user did not use the arguments to specify the items to instantiate,
16497 # then the envvar interface is used. Set only those that are not.
16498 # We use the long form for the default assignment because of an extremely
16499 # bizarre bug on SunOS 4.1.3.
16500 if $ac_need_defaults; then
16501 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16502 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16506 # Have a temporary directory for convenience. Make it in the build tree
16507 # simply because there is no reason to put it here, and in addition,
16508 # creating and moving files from /tmp can sometimes cause problems.
16509 # Create a temporary directory, and hook for its removal unless debugging.
16512 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16513 trap '{ (exit 1); exit 1; }' 1 2 13 15
16516 # Create a (secure) tmp directory for tmp files.
16519 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16520 test -n "$tmp" && test -d "$tmp"
16523 tmp
=.
/confstat$$
-$RANDOM
16524 (umask 077 && mkdir
$tmp)
16527 echo "$me: cannot create a temporary directory in ." >&2
16528 { (exit 1); exit 1; }
16533 cat >>$CONFIG_STATUS <<_ACEOF
16536 # CONFIG_FILES section.
16539 # No need to generate the scripts if there are no CONFIG_FILES.
16540 # This happens for instance when ./config.status config.h
16541 if test -n "\$CONFIG_FILES"; then
16542 # Protect against being on the right side of a sed subst in config.status.
16543 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16544 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16545 s,@SHELL@,$SHELL,;t t
16546 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16547 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16548 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16549 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16550 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16551 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16552 s,@exec_prefix@,$exec_prefix,;t t
16553 s,@prefix@,$prefix,;t t
16554 s,@program_transform_name@,$program_transform_name,;t t
16555 s,@bindir@,$bindir,;t t
16556 s,@sbindir@,$sbindir,;t t
16557 s,@libexecdir@,$libexecdir,;t t
16558 s,@datadir@,$datadir,;t t
16559 s,@sysconfdir@,$sysconfdir,;t t
16560 s,@sharedstatedir@,$sharedstatedir,;t t
16561 s,@localstatedir@,$localstatedir,;t t
16562 s,@libdir@,$libdir,;t t
16563 s,@includedir@,$includedir,;t t
16564 s,@oldincludedir@,$oldincludedir,;t t
16565 s,@infodir@,$infodir,;t t
16566 s,@mandir@,$mandir,;t t
16567 s,@build_alias@,$build_alias,;t t
16568 s,@host_alias@,$host_alias,;t t
16569 s,@target_alias@,$target_alias,;t t
16570 s,@DEFS@,$DEFS,;t t
16571 s,@ECHO_C@,$ECHO_C,;t t
16572 s,@ECHO_N@,$ECHO_N,;t t
16573 s,@ECHO_T@,$ECHO_T,;t t
16574 s,@LIBS@,$LIBS,;t t
16575 s,@build@,$build,;t t
16576 s,@build_cpu@,$build_cpu,;t t
16577 s,@build_vendor@,$build_vendor,;t t
16578 s,@build_os@,$build_os,;t t
16579 s,@host@,$host,;t t
16580 s,@host_cpu@,$host_cpu,;t t
16581 s,@host_vendor@,$host_vendor,;t t
16582 s,@host_os@,$host_os,;t t
16583 s,@target@,$target,;t t
16584 s,@target_cpu@,$target_cpu,;t t
16585 s,@target_vendor@,$target_vendor,;t t
16586 s,@target_os@,$target_os,;t t
16587 s,@target_noncanonical@,$target_noncanonical,;t t
16588 s,@build_subdir@,$build_subdir,;t t
16589 s,@host_subdir@,$host_subdir,;t t
16590 s,@target_subdir@,$target_subdir,;t t
16591 s,@GENINSRC@,$GENINSRC,;t t
16593 s,@CFLAGS@,$CFLAGS,;t t
16594 s,@LDFLAGS@,$LDFLAGS,;t t
16595 s,@CPPFLAGS@,$CPPFLAGS,;t t
16596 s,@ac_ct_CC@,$ac_ct_CC,;t t
16597 s,@EXEEXT@,$EXEEXT,;t t
16598 s,@OBJEXT@,$OBJEXT,;t t
16599 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16600 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16602 s,@EGREP@,$EGREP,;t t
16603 s,@strict1_warn@,$strict1_warn,;t t
16604 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
16605 s,@warn_cflags@,$warn_cflags,;t t
16606 s,@WERROR@,$WERROR,;t t
16607 s,@nocommon_flag@,$nocommon_flag,;t t
16608 s,@TREEBROWSER@,$TREEBROWSER,;t t
16609 s,@valgrind_path@,$valgrind_path,;t t
16610 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16611 s,@valgrind_command@,$valgrind_command,;t t
16612 s,@coverage_flags@,$coverage_flags,;t t
16613 s,@enable_multilib@,$enable_multilib,;t t
16614 s,@enable_decimal_float@,$enable_decimal_float,;t t
16615 s,@enable_shared@,$enable_shared,;t t
16616 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16617 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16618 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16619 s,@onestep@,$onestep,;t t
16620 s,@SET_MAKE@,$SET_MAKE,;t t
16622 s,@LN_S@,$LN_S,;t t
16624 s,@RANLIB@,$RANLIB,;t t
16625 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16626 s,@ranlib_flags@,$ranlib_flags,;t t
16627 s,@INSTALL@,$INSTALL,;t t
16628 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16629 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16630 s,@make_compare_target@,$make_compare_target,;t t
16631 s,@have_mktemp_command@,$have_mktemp_command,;t t
16632 s,@MAKEINFO@,$MAKEINFO,;t t
16633 s,@BUILD_INFO@,$BUILD_INFO,;t t
16634 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16635 s,@FLEX@,$FLEX,;t t
16636 s,@BISON@,$BISON,;t t
16639 s,@stage1_cflags@,$stage1_cflags,;t t
16640 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16641 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16642 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16643 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16644 s,@LIBICONV@,$LIBICONV,;t t
16645 s,@LTLIBICONV@,$LTLIBICONV,;t t
16646 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16647 s,@manext@,$manext,;t t
16648 s,@objext@,$objext,;t t
16649 s,@gthread_flags@,$gthread_flags,;t t
16650 s,@extra_modes_file@,$extra_modes_file,;t t
16651 s,@extra_opt_files@,$extra_opt_files,;t t
16652 s,@USE_NLS@,$USE_NLS,;t t
16653 s,@LIBINTL@,$LIBINTL,;t t
16654 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16655 s,@INCINTL@,$INCINTL,;t t
16656 s,@XGETTEXT@,$XGETTEXT,;t t
16657 s,@GMSGFMT@,$GMSGFMT,;t t
16658 s,@POSUB@,$POSUB,;t t
16659 s,@CATALOGS@,$CATALOGS,;t t
16660 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16661 s,@CROSS@,$CROSS,;t t
16663 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16664 s,@inhibit_libc@,$inhibit_libc,;t t
16665 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16666 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16667 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16668 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16669 s,@collect2@,$collect2,;t t
16670 s,@gcc_cv_as@,$gcc_cv_as,;t t
16671 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16672 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16673 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16674 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16675 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16676 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
16677 s,@libgcc_visibility@,$libgcc_visibility,;t t
16679 s,@zlibdir@,$zlibdir,;t t
16680 s,@zlibinc@,$zlibinc,;t t
16681 s,@MAINT@,$MAINT,;t t
16682 s,@gcc_tooldir@,$gcc_tooldir,;t t
16683 s,@dollar@,$dollar,;t t
16684 s,@slibdir@,$slibdir,;t t
16685 s,@objdir@,$objdir,;t t
16686 s,@subdirs@,$subdirs,;t t
16687 s,@srcdir@,$srcdir,;t t
16688 s,@all_boot_languages@,$all_boot_languages,;t t
16689 s,@all_compilers@,$all_compilers,;t t
16690 s,@all_gtfiles@,$all_gtfiles,;t t
16691 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16692 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16693 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16694 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16695 s,@all_languages@,$all_languages,;t t
16696 s,@all_stagestuff@,$all_stagestuff,;t t
16697 s,@build_exeext@,$build_exeext,;t t
16698 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16699 s,@build_xm_file_list@,$build_xm_file_list,;t t
16700 s,@build_xm_include_list@,$build_xm_include_list,;t t
16701 s,@build_xm_defines@,$build_xm_defines,;t t
16702 s,@check_languages@,$check_languages,;t t
16703 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16704 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16705 s,@cpp_install_dir@,$cpp_install_dir,;t t
16706 s,@xmake_file@,$xmake_file,;t t
16707 s,@tmake_file@,$tmake_file,;t t
16708 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16709 s,@extra_headers_list@,$extra_headers_list,;t t
16710 s,@extra_objs@,$extra_objs,;t t
16711 s,@extra_parts@,$extra_parts,;t t
16712 s,@extra_passes@,$extra_passes,;t t
16713 s,@extra_programs@,$extra_programs,;t t
16714 s,@float_h_file@,$float_h_file,;t t
16715 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16716 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16717 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16718 s,@host_exeext@,$host_exeext,;t t
16719 s,@host_xm_file_list@,$host_xm_file_list,;t t
16720 s,@host_xm_include_list@,$host_xm_include_list,;t t
16721 s,@host_xm_defines@,$host_xm_defines,;t t
16722 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16723 s,@install@,$install,;t t
16724 s,@lang_opt_files@,$lang_opt_files,;t t
16725 s,@lang_specs_files@,$lang_specs_files,;t t
16726 s,@lang_tree_files@,$lang_tree_files,;t t
16727 s,@local_prefix@,$local_prefix,;t t
16728 s,@md_file@,$md_file,;t t
16729 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16730 s,@out_file@,$out_file,;t t
16731 s,@out_object_file@,$out_object_file,;t t
16732 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16733 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16734 s,@thread_file@,$thread_file,;t t
16735 s,@tm_file_list@,$tm_file_list,;t t
16736 s,@tm_include_list@,$tm_include_list,;t t
16737 s,@tm_defines@,$tm_defines,;t t
16738 s,@tm_p_file_list@,$tm_p_file_list,;t t
16739 s,@tm_p_include_list@,$tm_p_include_list,;t t
16740 s,@xm_file_list@,$xm_file_list,;t t
16741 s,@xm_include_list@,$xm_include_list,;t t
16742 s,@xm_defines@,$xm_defines,;t t
16743 s,@c_target_objs@,$c_target_objs,;t t
16744 s,@cxx_target_objs@,$cxx_target_objs,;t t
16745 s,@target_cpu_default@,$target_cpu_default,;t t
16746 s,@GMPLIBS@,$GMPLIBS,;t t
16747 s,@GMPINC@,$GMPINC,;t t
16748 s,@LIBOBJS@,$LIBOBJS,;t t
16749 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16750 /@language_hooks@/r $language_hooks
16751 s,@language_hooks@,,;t t
16756 cat >>$CONFIG_STATUS <<\_ACEOF
16757 # Split the substitutions into bite-sized pieces for seds with
16758 # small command number limits, like on Digital OSF/1 and HP-UX.
16759 ac_max_sed_lines
=48
16760 ac_sed_frag
=1 # Number of current file.
16761 ac_beg
=1 # First line for current file.
16762 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16765 while $ac_more_lines; do
16766 if test $ac_beg -gt 1; then
16767 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16769 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16771 if test ! -s $tmp/subs.frag
; then
16772 ac_more_lines
=false
16774 # The purpose of the label and of the branching condition is to
16775 # speed up the sed processing (if there are no `@' at all, there
16776 # is no need to browse any of the substitutions).
16777 # These are the two extra sed commands mentioned above.
16779 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16780 if test -z "$ac_sed_cmds"; then
16781 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16783 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16785 ac_sed_frag
=`expr $ac_sed_frag + 1`
16787 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16790 if test -z "$ac_sed_cmds"; then
16793 fi # test -n "$CONFIG_FILES"
16796 cat >>$CONFIG_STATUS <<\_ACEOF
16797 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16798 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16800 - |
*:- |
*:-:* ) # input from stdin
16802 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16803 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16804 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16805 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16806 * ) ac_file_in
=$ac_file.
in ;;
16809 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16810 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16811 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16812 X"$ac_file" : 'X\(//\)[^/]' \| \
16813 X"$ac_file" : 'X\(//\)$' \| \
16814 X"$ac_file" : 'X\(/\)' \| \
16815 . : '\(.\)' 2>/dev/null ||
16817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16819 /^X\(\/\/\)$/{ s//\1/; q; }
16820 /^X\(\/\).*/{ s//\1/; q; }
16822 { if $as_mkdir_p; then
16827 while test ! -d "$as_dir"; do
16828 as_dirs
="$as_dir $as_dirs"
16829 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16831 X"$as_dir" : 'X\(//\)[^/]' \| \
16832 X"$as_dir" : 'X\(//\)$' \| \
16833 X"$as_dir" : 'X\(/\)' \| \
16834 . : '\(.\)' 2>/dev/null ||
16836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16838 /^X\(\/\/\)$/{ s//\1/; q; }
16839 /^X\(\/\).*/{ s//\1/; q; }
16842 test ! -n "$as_dirs" || mkdir
$as_dirs
16843 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16845 { (exit 1); exit 1; }; }; }
16849 if test "$ac_dir" != .
; then
16850 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16851 # A "../" for each directory in $ac_dir_suffix.
16852 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16854 ac_dir_suffix
= ac_top_builddir
=
16858 .
) # No --srcdir option. We are building in place.
16860 if test -z "$ac_top_builddir"; then
16863 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16865 [\\/]* | ?
:[\\/]* ) # Absolute path.
16866 ac_srcdir
=$srcdir$ac_dir_suffix;
16867 ac_top_srcdir
=$srcdir ;;
16868 *) # Relative path.
16869 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16870 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16873 # Do not use `cd foo && pwd` to compute absolute paths, because
16874 # the directories may not exist.
16876 .
) ac_abs_builddir
="$ac_dir";;
16879 .
) ac_abs_builddir
=`pwd`;;
16880 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16881 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16884 case $ac_abs_builddir in
16885 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16887 case ${ac_top_builddir}.
in
16888 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16889 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16890 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16893 case $ac_abs_builddir in
16894 .
) ac_abs_srcdir
=$ac_srcdir;;
16897 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16898 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16899 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16902 case $ac_abs_builddir in
16903 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16905 case $ac_top_srcdir in
16906 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16907 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16908 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16914 # Let's still pretend it is `configure' which instantiates (i.e., don't
16915 # use $as_me), people would be surprised to read:
16916 # /* config.h. Generated by config.status. */
16917 if test x
"$ac_file" = x-
; then
16920 configure_input
="$ac_file. "
16922 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16923 sed 's,.*/,,'` by configure."
16925 # First look for the input files in the build tree, otherwise in the
16927 ac_file_inputs
=`IFS=:
16928 for f in $ac_file_in; do
16930 -) echo $tmp/stdin ;;
16932 # Absolute (can't be DOS-style, as IFS=:)
16933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16934 echo "$as_me: error: cannot find input file: $f" >&2;}
16935 { (exit 1); exit 1; }; }
16938 if test -f "$f"; then
16941 elif test -f "$srcdir/$f"; then
16946 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16947 echo "$as_me: error: cannot find input file: $f" >&2;}
16948 { (exit 1); exit 1; }; }
16951 done` ||
{ (exit 1); exit 1; }
16953 if test x
"$ac_file" != x-
; then
16954 { echo "$as_me:$LINENO: creating $ac_file" >&5
16955 echo "$as_me: creating $ac_file" >&6;}
16959 cat >>$CONFIG_STATUS <<_ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF
16965 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16966 s
,@configure_input@
,$configure_input,;t t
16967 s
,@srcdir@
,$ac_srcdir,;t t
16968 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16969 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16970 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16971 s
,@builddir@
,$ac_builddir,;t t
16972 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16973 s
,@top_builddir@
,$ac_top_builddir,;t t
16974 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16975 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16977 if test x"$ac_file" != x-; then
16978 mv $tmp/out $ac_file
16986 cat >>$CONFIG_STATUS <<\_ACEOF
16989 # CONFIG_HEADER section.
16992 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16993 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16995 # ac_d sets the value in "#define NAME VALUE" lines.
16996 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16997 ac_dB
='[ ].*$,\1#\2'
17000 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17001 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17002 ac_uB
='$,\1#\2define\3'
17006 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17009 - |
*:- |
*:-:* ) # input from stdin
17011 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17012 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17013 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17014 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17015 * ) ac_file_in
=$ac_file.
in ;;
17018 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17019 echo "$as_me: creating $ac_file" >&6;}
17021 # First look for the input files in the build tree, otherwise in the
17023 ac_file_inputs
=`IFS=:
17024 for f in $ac_file_in; do
17026 -) echo $tmp/stdin ;;
17028 # Absolute (can't be DOS-style, as IFS=:)
17029 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17030 echo "$as_me: error: cannot find input file: $f" >&2;}
17031 { (exit 1); exit 1; }; }
17032 # Do quote $f, to prevent DOS paths from being IFS'd.
17035 if test -f "$f"; then
17038 elif test -f "$srcdir/$f"; then
17043 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17044 echo "$as_me: error: cannot find input file: $f" >&2;}
17045 { (exit 1); exit 1; }; }
17048 done` ||
{ (exit 1); exit 1; }
17049 # Remove the trailing spaces.
17050 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17054 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17055 # `conftest.undefs', that substitutes the proper values into
17056 # config.h.in to produce config.h. The first handles `#define'
17057 # templates, and the second `#undef' templates.
17058 # And first: Protect against being on the right side of a sed subst in
17059 # config.status. Protect against being in an unquoted here document
17060 # in config.status.
17061 rm -f conftest.defines conftest.undefs
17062 # Using a here document instead of a string reduces the quoting nightmare.
17063 # Putting comments in sed scripts is not portable.
17065 # `end' is used to avoid that the second main sed command (meant for
17066 # 0-ary CPP macros) applies to n-ary macro definitions.
17067 # See the Autoconf documentation for `clear'.
17068 cat >confdef2sed.
sed <<\_ACEOF
17073 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17075 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17078 # If some macros were called several times there might be several times
17079 # the same #defines, which is useless. Nevertheless, we may not want to
17080 # sort them, since we want the *last* AC-DEFINE to be honored.
17081 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17082 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17083 rm -f confdef2sed.sed
17085 # This sed command replaces #undef with comments. This is necessary, for
17086 # example, in the case of _POSIX_SOURCE, which is predefined and required
17087 # on some systems where configure will not decide to define it.
17088 cat >>conftest.undefs <<\_ACEOF
17089 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17092 # Break up conftest.defines because some shells have a limit on the size
17093 # of here documents, and old seds have small limits too (100 cmds).
17094 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17095 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17096 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17097 echo ' :' >>$CONFIG_STATUS
17098 rm -f conftest.tail
17099 while grep . conftest.defines >/dev/null
17101 # Write a limited-size here document to $tmp/defines.sed.
17102 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17103 # Speed up: don't consider the non `#define' lines.
17104 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17105 # Work around the forget-to-reset-the-flag bug.
17106 echo 't clr' >>$CONFIG_STATUS
17107 echo ': clr' >>$CONFIG_STATUS
17108 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17110 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17112 mv $tmp/out $tmp/in
17114 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17115 rm -f conftest.defines
17116 mv conftest.
tail conftest.defines
17118 rm -f conftest.defines
17119 echo ' fi # grep' >>$CONFIG_STATUS
17120 echo >>$CONFIG_STATUS
17122 # Break up conftest.undefs because some shells have a limit on the size
17123 # of here documents, and old seds have small limits too (100 cmds).
17124 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17125 rm -f conftest.
tail
17126 while grep . conftest.undefs
>/dev
/null
17128 # Write a limited-size here document to $tmp/undefs.sed.
17129 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17130 # Speed up: don't consider the non
`#undef'
17131 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17132 # Work around the forget-to-reset-the-flag bug.
17133 echo 't clr' >>$CONFIG_STATUS
17134 echo ': clr' >>$CONFIG_STATUS
17135 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17137 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17139 mv $tmp/out $tmp/in
17141 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17142 rm -f conftest.undefs
17143 mv conftest.tail conftest.undefs
17145 rm -f conftest.undefs
17147 cat >>$CONFIG_STATUS <<\_ACEOF
17148 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17149 # use $as_me), people would be surprised to read:
17150 # /* config.h. Generated by config.status. */
17151 if test x
"$ac_file" = x-
; then
17152 echo "/* Generated by configure. */" >$tmp/config.h
17154 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17156 cat $tmp/in >>$tmp/config.h
17158 if test x
"$ac_file" != x-
; then
17159 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
17160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17161 echo "$as_me: $ac_file is unchanged" >&6;}
17163 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17165 X"$ac_file" : 'X\(//\)[^/]' \| \
17166 X"$ac_file" : 'X\(//\)$' \| \
17167 X"$ac_file" : 'X\(/\)' \| \
17168 . : '\(.\)' 2>/dev/null ||
17170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17172 /^X\(\/\/\)$/{ s//\1/; q; }
17173 /^X\(\/\).*/{ s//\1/; q; }
17175 { if $as_mkdir_p; then
17180 while test ! -d "$as_dir"; do
17181 as_dirs
="$as_dir $as_dirs"
17182 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17184 X"$as_dir" : 'X\(//\)[^/]' \| \
17185 X"$as_dir" : 'X\(//\)$' \| \
17186 X"$as_dir" : 'X\(/\)' \| \
17187 . : '\(.\)' 2>/dev/null ||
17189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17191 /^X\(\/\/\)$/{ s//\1/; q; }
17192 /^X\(\/\).*/{ s//\1/; q; }
17195 test ! -n "$as_dirs" || mkdir
$as_dirs
17196 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17197 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17198 { (exit 1); exit 1; }; }; }
17201 mv $tmp/config.h
$ac_file
17205 rm -f $tmp/config.h
17209 cat >>$CONFIG_STATUS <<\_ACEOF
17212 # CONFIG_COMMANDS section.
17214 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17215 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17216 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17217 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17218 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17219 X"$ac_dest" : 'X\(//\)[^/]' \| \
17220 X"$ac_dest" : 'X\(//\)$' \| \
17221 X"$ac_dest" : 'X\(/\)' \| \
17222 . : '\(.\)' 2>/dev/null ||
17224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17225 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17226 /^X\(\/\/\)$/{ s//\1/; q; }
17227 /^X\(\/\).*/{ s//\1/; q; }
17229 { if $as_mkdir_p; then
17234 while test ! -d "$as_dir"; do
17235 as_dirs
="$as_dir $as_dirs"
17236 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17237 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17238 X"$as_dir" : 'X\(//\)[^/]' \| \
17239 X"$as_dir" : 'X\(//\)$' \| \
17240 X"$as_dir" : 'X\(/\)' \| \
17241 . : '\(.\)' 2>/dev/null ||
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17245 /^X\(\/\/\)$/{ s//\1/; q; }
17246 /^X\(\/\).*/{ s//\1/; q; }
17249 test ! -n "$as_dirs" || mkdir
$as_dirs
17250 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17251 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17252 { (exit 1); exit 1; }; }; }
17256 if test "$ac_dir" != .
; then
17257 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17258 # A "../" for each directory in $ac_dir_suffix.
17259 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17261 ac_dir_suffix
= ac_top_builddir
=
17265 .
) # No --srcdir option. We are building in place.
17267 if test -z "$ac_top_builddir"; then
17270 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17272 [\\/]* | ?
:[\\/]* ) # Absolute path.
17273 ac_srcdir
=$srcdir$ac_dir_suffix;
17274 ac_top_srcdir
=$srcdir ;;
17275 *) # Relative path.
17276 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17277 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17280 # Do not use `cd foo && pwd` to compute absolute paths, because
17281 # the directories may not exist.
17283 .
) ac_abs_builddir
="$ac_dir";;
17286 .
) ac_abs_builddir
=`pwd`;;
17287 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17288 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17291 case $ac_abs_builddir in
17292 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17294 case ${ac_top_builddir}.
in
17295 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17296 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17297 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17300 case $ac_abs_builddir in
17301 .
) ac_abs_srcdir
=$ac_srcdir;;
17304 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17305 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17306 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17309 case $ac_abs_builddir in
17310 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17312 case $ac_top_srcdir in
17313 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17314 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17315 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17320 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17321 echo "$as_me: executing $ac_dest commands" >&6;}
17324 case ${CONFIG_HEADERS} in
17325 *auto-host.h
:config.
in*)
17328 # Make sure all the subdirs exist.
17329 for d
in $subdirs doc build
17331 test -d $d || mkdir
$d
17333 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17334 # bootstrapping and the installation procedure can still use
17335 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
17336 # FLAGS_TO_PASS has been modified to solve the problem there.
17337 # This is virtually a duplicate of what happens in configure.lang; we do
17338 # an extra check to make sure this only happens if ln -s can be used.
17341 for d
in ${subdirs} ; do
17342 STARTDIR
=`${PWDCMD-pwd}`
17344 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17347 $LN_S ..
/$t $t 2>/dev
/null
17358 cat >>$CONFIG_STATUS <<\_ACEOF
17360 { (exit 0); exit 0; }
17362 chmod +x
$CONFIG_STATUS
17363 ac_clean_files
=$ac_clean_files_save
17366 # configure is writing to config.log, and then calls config.status.
17367 # config.status does its own redirection, appending to config.log.
17368 # Unfortunately, on DOS this fails, as config.log is still kept open
17369 # by configure, so config.status won't be able to write to it; its
17370 # output is simply discarded. So we exec the FD to /dev/null,
17371 # effectively closing config.log, so it can be properly (re)opened and
17372 # appended to by config.status. When coming back to configure, we
17373 # need to make the FD available again.
17374 if test "$no_create" != yes; then
17376 ac_config_status_args
=
17377 test "$silent" = yes &&
17378 ac_config_status_args
="$ac_config_status_args --quiet"
17380 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17382 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17383 # would make configure fail if this is the last instruction.
17384 $ac_cs_success ||
{ (exit 1); exit 1; }