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 warn_cflags WERROR nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV 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 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-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-objc-gc enable the use of Boehm's garbage collector with
886 the GNU Objective-C runtime
887 --disable-shared don
't provide a shared libgcc
888 --enable-intermodule build the compiler in one step
889 --enable-languages=LIST specify which front-ends to build
890 --disable-rpath do not hardcode runtime library paths
891 --enable-initfini-array use .init_array/.fini_array sections
892 --enable-sjlj-exceptions
893 arrange to use setjmp/longjmp exception handling
894 --disable-win32-registry
895 disable lookup of installation paths in the
896 Registry on Windows hosts
897 --enable-win32-registry enable registry lookup (default)
898 --enable-win32-registry=KEY
899 use KEY instead of GCC version as the last portion
901 --enable-maintainer-mode
902 enable make rules and dependencies not useful
903 (and sometimes confusing) to the casual installer
904 --enable-version-specific-runtime-libs
905 specify that runtime libraries should be
906 installed in a compiler-specific directory
909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
911 --with-local-prefix=DIR specifies directory to put local include
912 --with-gxx-include-dir=DIR
913 specifies directory to put g++ header files
914 --with-cpp-install-dir=DIR
915 install the user visible C preprocessor in DIR
916 (relative to PREFIX) as well as PREFIX/bin
917 --with-gnu-ld arrange to work with GNU ld.
918 --with-ld arrange to use the specified ld (full pathname)
919 --with-demangler-in-ld try to use demangler in GNU ld.
920 --with-gnu-as arrange to work with GNU as
921 --with-as arrange to use the specified as (full pathname)
922 --with-stabs arrange to use stabs instead of host debug format
923 --with-dwarf2 force the default debug format to be DWARF 2
924 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
928 --with-system-libunwind use installed libunwind
929 --with-gc={page
,zone
} choose the garbage collection mechanism to use
931 --with-system-zlib use installed libz
932 --with-slibdir=DIR shared libraries
in DIR LIBDIR
934 Some influential environment variables
:
935 CC C compiler
command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
938 nonstandard directory
<lib dir
>
939 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
940 headers
in a nonstandard directory
<include dir
>
942 GMPLIBS How to link GMP
943 GMPINC How to
find GMP include files
945 Use these variables to override the choices made by
`configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo
&& pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1068 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1069 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1070 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1071 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1073 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1074 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1076 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1077 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1078 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1079 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1080 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1081 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1082 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close
' the trap.
1162 trap 'exit_status
=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var
in $ac_subst_vars
1198 eval ac_val
=$
`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var
in $ac_subst_files
1212 eval ac_val
=$
`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h
; then
1225 sed "/^$/d" confdefs.h |
sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core
*.core
&&
1233 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's
/^
/|
/' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1330 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1355 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1362 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1387 # Determine the host, build, and target systems
1389 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 # Make sure we can run config.sub.
1414 $ac_config_sub sun4 >/dev/null 2>&1 ||
1415 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1416 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1417 { (exit 1); exit 1; }; }
1419 echo "$as_me:$LINENO: checking build system type" >&5
1420 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1421 if test "${ac_cv_build+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1424 ac_cv_build_alias=$build_alias
1425 test -z "$ac_cv_build_alias" &&
1426 ac_cv_build_alias=`$ac_config_guess`
1427 test -z "$ac_cv_build_alias" &&
1428 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1429 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1430 { (exit 1); exit 1; }; }
1431 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1432 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1433 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1434 { (exit 1); exit 1; }; }
1437 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1438 echo "${ECHO_T}$ac_cv_build" >&6
1440 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1441 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1442 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1445 echo "$as_me:$LINENO: checking host system type" >&5
1446 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1447 if test "${ac_cv_host+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1450 ac_cv_host_alias=$host_alias
1451 test -z "$ac_cv_host_alias" &&
1452 ac_cv_host_alias=$ac_cv_build_alias
1453 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1455 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1456 { (exit 1); exit 1; }; }
1459 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1460 echo "${ECHO_T}$ac_cv_host" >&6
1462 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1463 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1464 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1467 echo "$as_me:$LINENO: checking target system type" >&5
1468 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1469 if test "${ac_cv_target+set}" = set; then
1470 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 ac_cv_target_alias=$target_alias
1473 test "x$ac_cv_target_alias" = "x" &&
1474 ac_cv_target_alias=$ac_cv_host_alias
1475 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1482 echo "${ECHO_T}$ac_cv_target" >&6
1483 target=$ac_cv_target
1484 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1485 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1486 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1489 # The aliases save the names the user supplied, while $host etc.
1490 # will get canonicalized.
1491 test -n "$target_alias" &&
1492 test "$program_prefix$program_suffix$program_transform_name" = \
1494 program_prefix=${target_alias}-
1496 # Determine the noncanonical target name, for directory use.
1497 case ${build_alias} in
1498 "") build_noncanonical=${build} ;;
1499 *) build_noncanonical=${build_alias} ;;
1502 case ${host_alias} in
1503 "") host_noncanonical=${build_noncanonical} ;;
1504 *) host_noncanonical=${host_alias} ;;
1507 case ${target_alias} in
1508 "") target_noncanonical=${host_noncanonical} ;;
1509 *) target_noncanonical=${target_alias} ;;
1515 # Determine the target- and build-specific subdirectories
1516 # Prefix 'build-
' so this never conflicts with target_subdir.
1517 build_subdir="build-${build_noncanonical}"
1518 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1519 if ( test $srcdir = . && test -d gcc ) \
1520 || test -d $srcdir/../host-${host_noncanonical}; then
1521 host_subdir="host-${host_noncanonical}"
1526 target_subdir=${target_noncanonical}
1529 # Set program_transform_name
1530 test "$program_prefix" != NONE &&
1531 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1532 # Use a double $ so make ignores it.
1533 test "$program_suffix" != NONE &&
1534 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1535 # Double any \ or $. echo might interpret backslashes.
1536 # By default was `s,x,x', remove it
if useless.
1537 cat <<\_ACEOF
>conftest.
sed
1538 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1540 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1544 # Check for bogus environment variables.
1545 # Test if LIBRARY_PATH contains the notation for the current directory
1546 # since this would lead to problems installing/building glibc.
1547 # LIBRARY_PATH contains the current directory if one of the following
1549 # - one of the terminals (":" and ";") is the first or last sign
1550 # - two terminals occur directly after each other
1551 # - the path contains an element with a dot in it
1552 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1553 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1554 case ${LIBRARY_PATH} in
1555 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1556 library_path_setting
="contains current directory"
1559 library_path_setting
="ok"
1562 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1563 echo "${ECHO_T}$library_path_setting" >&6
1564 if test "$library_path_setting" != "ok"; then
1565 { { echo "$as_me:$LINENO: error:
1566 *** LIBRARY_PATH shouldn't contain the current directory when
1567 *** building gcc. Please change the environment variable
1568 *** and run configure again." >&5
1569 echo "$as_me: error:
1570 *** LIBRARY_PATH shouldn't contain the current directory when
1571 *** building gcc. Please change the environment variable
1572 *** and run configure again." >&2;}
1573 { (exit 1); exit 1; }; }
1576 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1577 # since this would lead to problems installing/building glibc.
1578 # GCC_EXEC_PREFIX contains the current directory if one of the following
1580 # - one of the terminals (":" and ";") is the first or last sign
1581 # - two terminals occur directly after each other
1582 # - the path contains an element with a dot in it
1583 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1584 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1585 case ${GCC_EXEC_PREFIX} in
1586 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1587 gcc_exec_prefix_setting
="contains current directory"
1590 gcc_exec_prefix_setting
="ok"
1593 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1594 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1595 if test "$gcc_exec_prefix_setting" != "ok"; then
1596 { { echo "$as_me:$LINENO: error:
1597 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1598 *** building gcc. Please change the environment variable
1599 *** and run configure again." >&5
1600 echo "$as_me: error:
1601 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&2;}
1604 { (exit 1); exit 1; }; }
1611 # Specify the local prefix
1614 # Check whether --with-local-prefix or --without-local-prefix was given.
1615 if test "${with_local_prefix+set}" = set; then
1616 withval
="$with_local_prefix"
1617 case "${withval}" in
1618 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1619 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1620 { (exit 1); exit 1; }; } ;;
1622 *) local_prefix
=$with_local_prefix ;;
1626 # Default local prefix if it is empty
1627 if test x
$local_prefix = x
; then
1628 local_prefix
=/usr
/local
1631 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1632 # passed in by the toplevel make and thus we'd get different behavior
1633 # depending on where we built the sources.
1634 gcc_gxx_include_dir
=
1635 # Specify the g++ header file directory
1637 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1638 if test "${with_gxx_include_dir+set}" = set; then
1639 withval
="$with_gxx_include_dir"
1640 case "${withval}" in
1641 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1642 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1643 { (exit 1); exit 1; }; } ;;
1645 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1649 if test x
${gcc_gxx_include_dir} = x
; then
1650 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1651 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1653 libstdcxx_incdir
='c++/$(version)'
1654 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1659 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1660 if test "${with_cpp_install_dir+set}" = set; then
1661 withval
="$with_cpp_install_dir"
1662 if test x
$withval = xyes
; then
1663 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1664 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1665 { (exit 1); exit 1; }; }
1666 elif test x
$withval != xno
; then
1667 cpp_install_dir
=$withval
1671 # We would like to our source tree to be readonly. However when releases or
1672 # pre-releases are generated, the flex/bison generated files as well as the
1673 # various formats of manuals need to be included along with the rest of the
1674 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1677 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1678 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1679 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1680 if test "${enable_generated_files_in_srcdir+set}" = set; then
1681 enableval
="$enable_generated_files_in_srcdir"
1682 generated_files_in_srcdir
=$enableval
1684 generated_files_in_srcdir
=no
1687 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1688 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1690 if test "$generated_files_in_srcdir" = "yes"; then
1697 # -------------------
1698 # Find default linker
1699 # -------------------
1703 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1704 if test "${with_gnu_ld+set}" = set; then
1705 withval
="$with_gnu_ld"
1706 gnu_ld_flag
="$with_gnu_ld"
1711 # With pre-defined ld
1713 # Check whether --with-ld or --without-ld was given.
1714 if test "${with_ld+set}" = set; then
1716 DEFAULT_LINKER
="$with_ld"
1718 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1719 if test ! -x "$DEFAULT_LINKER"; then
1720 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1721 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1722 { (exit 1); exit 1; }; }
1723 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1727 cat >>confdefs.h
<<_ACEOF
1728 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1733 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1734 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1735 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1736 if test x
"$gnu_ld_flag" = x
"no"; then
1737 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1738 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1740 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1741 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1748 # With demangler in GNU ld
1750 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1751 if test "${with_demangler_in_ld+set}" = set; then
1752 withval
="$with_demangler_in_ld"
1753 demangler_in_ld
="$with_demangler_in_ld"
1758 # ----------------------
1759 # Find default assembler
1760 # ----------------------
1764 # Check whether --with-gnu-as or --without-gnu-as was given.
1765 if test "${with_gnu_as+set}" = set; then
1766 withval
="$with_gnu_as"
1767 gas_flag
="$with_gnu_as"
1773 # Check whether --with-as or --without-as was given.
1774 if test "${with_as+set}" = set; then
1776 DEFAULT_ASSEMBLER
="$with_as"
1778 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1779 if test ! -x "$DEFAULT_ASSEMBLER"; then
1780 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1781 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1782 { (exit 1); exit 1; }; }
1783 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1787 cat >>confdefs.h
<<_ACEOF
1788 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1793 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1794 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1795 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1796 if test x
"$gas_flag" = x
"no"; then
1797 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1798 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1800 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1801 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1812 # If a non-executable a.out is present (e.g. created by GNU as above even if
1813 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1814 # file, even when creating an executable, so an execution test fails.
1815 # Remove possible default executable files to avoid this.
1817 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1818 # Autoconf includes it.
1819 rm -f a.out a.exe b.out
1821 # Find the native compiler
1823 ac_cpp
='$CPP $CPPFLAGS'
1824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1827 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1829 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC
="$CC" # Let the user override the test.
1838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir
=.
1843 for ac_exec_ext
in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1864 if test -z "$ac_cv_prog_CC"; then
1866 # Extract the first word of "gcc", so it can be a program name with args.
1867 set dummy gcc
; ac_word
=$2
1868 echo "$as_me:$LINENO: checking for $ac_word" >&5
1869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1873 if test -n "$ac_ct_CC"; then
1874 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1880 test -z "$as_dir" && as_dir
=.
1881 for ac_exec_ext
in '' $ac_executable_extensions; do
1882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1883 ac_cv_prog_ac_ct_CC
="gcc"
1884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1893 if test -n "$ac_ct_CC"; then
1894 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1895 echo "${ECHO_T}$ac_ct_CC" >&6
1897 echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1906 if test -z "$CC"; then
1907 if test -n "$ac_tool_prefix"; then
1908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1909 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$CC"; then
1916 ac_cv_prog_CC
="$CC" # Let the user override the test.
1918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir
=.
1923 for ac_exec_ext
in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test -n "$CC"; then
1936 echo "$as_me:$LINENO: result: $CC" >&5
1937 echo "${ECHO_T}$CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1944 if test -z "$ac_cv_prog_CC"; then
1946 # Extract the first word of "cc", so it can be a program name with args.
1947 set dummy cc
; ac_word
=$2
1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 if test -n "$ac_ct_CC"; then
1954 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir
=.
1961 for ac_exec_ext
in '' $ac_executable_extensions; do
1962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1963 ac_cv_prog_ac_ct_CC
="cc"
1964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1973 if test -n "$ac_ct_CC"; then
1974 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1975 echo "${ECHO_T}$ac_ct_CC" >&6
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1987 if test -z "$CC"; then
1988 # Extract the first word of "cc", so it can be a program name with args.
1989 set dummy cc
; ac_word
=$2
1990 echo "$as_me:$LINENO: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$CC"; then
1996 ac_cv_prog_CC
="$CC" # Let the user override the test.
1999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir
=.
2004 for ac_exec_ext
in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2007 ac_prog_rejected
=yes
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017 if test $ac_prog_rejected = yes; then
2018 # We found a bogon in the path, so make sure we never use it.
2019 set dummy
$ac_cv_prog_CC
2021 if test $# != 0; then
2022 # We chose a different compiler from the bogus one.
2023 # However, it has the same basename, so the bogon will be chosen
2024 # first if we set CC to just the basename; use the full file name.
2026 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2032 if test -n "$CC"; then
2033 echo "$as_me:$LINENO: result: $CC" >&5
2034 echo "${ECHO_T}$CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2041 if test -z "$CC"; then
2042 if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2046 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC
="$CC" # Let the user override the test.
2055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2059 test -z "$as_dir" && as_dir
=.
2060 for ac_exec_ext
in '' $ac_executable_extensions; do
2061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 if test -n "$CC"; then
2073 echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2076 echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2080 test -n "$CC" && break
2083 if test -z "$CC"; then
2087 # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy
$ac_prog; ac_word
=$2
2089 echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 if test -n "$ac_ct_CC"; then
2095 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2101 test -z "$as_dir" && as_dir
=.
2102 for ac_exec_ext
in '' $ac_executable_extensions; do
2103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2104 ac_cv_prog_ac_ct_CC
="$ac_prog"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2114 if test -n "$ac_ct_CC"; then
2115 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2116 echo "${ECHO_T}$ac_ct_CC" >&6
2118 echo "$as_me:$LINENO: result: no" >&5
2119 echo "${ECHO_T}no" >&6
2122 test -n "$ac_ct_CC" && break
2131 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&2;}
2135 { (exit 1); exit 1; }; }
2137 # Provide some information about the compiler.
2138 echo "$as_me:$LINENO:" \
2139 "checking for C compiler version" >&5
2140 ac_compiler
=`set X $ac_compile; echo $2`
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2142 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2147 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2152 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }
2157 cat >conftest.
$ac_ext <<_ACEOF
2160 cat confdefs.h
>>conftest.
$ac_ext
2161 cat >>conftest.
$ac_ext <<_ACEOF
2162 /* end confdefs.h. */
2172 ac_clean_files_save
=$ac_clean_files
2173 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2174 # Try to create an executable without -o first, disregard a.out.
2175 # It will help us diagnose broken compilers, and finding out an intuition
2177 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2179 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2180 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2181 (eval $ac_link_default) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Find the output, starting from the most likely. This scheme is
2186 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2189 # Be careful to initialize this variable, since it used to be cached.
2190 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2192 # b.out is created by i960 compilers.
2193 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2195 test -f "$ac_file" ||
continue
2197 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2200 # This is the source file.
2203 # We found the default executable, but exeext='' is most
2207 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # FIXME: I believe we export ac_cv_exeext for Libtool,
2209 # but it would be cool to find out if it's true. Does anybody
2210 # maintain Libtool? --akim.
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.
$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext
=$ac_cv_exeext
2229 echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6
2232 # Check the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try
='./$ac_file'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 if test "$cross_compiling" = maybe
; then
2250 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2251 If you meant to cross compile, use \`--host'.
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: cannot run C compiled programs.
2254 If you meant to cross compile, use \`--host'.
2255 See \`config.log' for more details." >&2;}
2256 { (exit 1); exit 1; }; }
2260 echo "$as_me:$LINENO: result: yes" >&5
2261 echo "${ECHO_T}yes" >&6
2263 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2264 ac_clean_files
=$ac_clean_files_save
2265 # Check the compiler produces executables we can run. If not, either
2266 # the compiler is broken, or we cross compile.
2267 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2268 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2269 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2270 echo "${ECHO_T}$cross_compiling" >&6
2272 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2273 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2275 (eval $ac_link) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2281 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 for ac_file
in conftest.exe conftest conftest.
*; do
2284 test -f "$ac_file" ||
continue
2286 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2287 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2301 rm -f conftest
$ac_cv_exeext
2302 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6
2305 rm -f conftest.
$ac_ext
2306 EXEEXT
=$ac_cv_exeext
2308 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 cat >conftest.
$ac_ext <<_ACEOF
2316 cat confdefs.h
>>conftest.
$ac_ext
2317 cat >>conftest.
$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2328 rm -f conftest.o conftest.obj
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330 (eval $ac_compile) 2>&5
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; then
2334 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2336 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2337 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.
$ac_ext >&5
2345 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&2;}
2349 { (exit 1); exit 1; }; }
2352 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2354 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2355 echo "${ECHO_T}$ac_cv_objext" >&6
2356 OBJEXT
=$ac_cv_objext
2358 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2359 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2360 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 cat >conftest.
$ac_ext <<_ACEOF
2366 cat confdefs.h
>>conftest.
$ac_ext
2367 cat >>conftest.
$ac_ext <<_ACEOF
2368 /* end confdefs.h. */
2381 rm -f conftest.
$ac_objext
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383 (eval $ac_compile) 2>conftest.er1
2385 grep -v '^ *+' conftest.er1
>conftest.err
2387 cat conftest.err
>&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try
='test -z "$ac_c_werror_flag"
2391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try
='test -s conftest.$ac_objext'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
2405 echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.
$ac_ext >&5
2410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2411 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2414 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2415 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2416 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2417 ac_test_CFLAGS
=${CFLAGS+set}
2418 ac_save_CFLAGS
=$CFLAGS
2420 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2421 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2422 if test "${ac_cv_prog_cc_g+set}" = set; then
2423 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 cat >conftest.
$ac_ext <<_ACEOF
2428 cat confdefs.h
>>conftest.
$ac_ext
2429 cat >>conftest.
$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2440 rm -f conftest.
$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2444 grep -v '^ *+' conftest.er1
>conftest.err
2446 cat conftest.err
>&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try
='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try
='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.
$ac_ext >&5
2469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2471 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2472 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2473 if test "$ac_test_CFLAGS" = set; then
2474 CFLAGS
=$ac_save_CFLAGS
2475 elif test $ac_cv_prog_cc_g = yes; then
2476 if test "$GCC" = yes; then
2482 if test "$GCC" = yes; then
2488 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2489 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2490 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2491 echo $ECHO_N "(cached) $ECHO_C" >&6
2493 ac_cv_prog_cc_stdc
=no
2495 cat >conftest.
$ac_ext <<_ACEOF
2498 cat confdefs.h
>>conftest.
$ac_ext
2499 cat >>conftest.
$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2503 #include <sys/types.h>
2504 #include <sys/stat.h>
2505 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2506 struct buf { int x; };
2507 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2508 static char *e (p, i)
2514 static char *f (char * (*g) (char **, int), char **p, ...)
2519 s = g (p, va_arg (v,int));
2524 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2525 function prototypes and stuff, but not '\xHH' hex character constants.
2526 These don't provoke an error unfortunately, instead are silently treated
2527 as 'x'. The following induces an error, until -std1 is added to get
2528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2529 array size at least. It's necessary to write '\x00'==0 to get something
2530 that's true only with -std1. */
2531 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2547 # Don't try gcc -ansi; that turns off useful extensions and
2548 # breaks some systems' header files.
2549 # AIX -qlanglvl=ansi
2550 # Ultrix and OSF/1 -std1
2551 # HP-UX 10.20 and later -Ae
2552 # HP-UX older versions -Aa -D_HPUX_SOURCE
2553 # SVR4 -Xc -D__EXTENSIONS__
2554 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 CC
="$ac_save_CC $ac_arg"
2557 rm -f conftest.
$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>conftest.er1
2561 grep -v '^ *+' conftest.er1
>conftest.err
2563 cat conftest.err
>&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try
='test -z "$ac_c_werror_flag"
2567 || test ! -s conftest.err'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; } &&
2573 { ac_try
='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cc_stdc
=$ac_arg
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2586 rm -f conftest.err conftest.
$ac_objext
2588 rm -f conftest.
$ac_ext conftest.
$ac_objext
2593 case "x$ac_cv_prog_cc_stdc" in
2595 echo "$as_me:$LINENO: result: none needed" >&5
2596 echo "${ECHO_T}none needed" >&6 ;;
2598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2599 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2600 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2603 # Some people use a C++ compiler to compile C. Since we use `exit',
2604 # in C++ we need to declare it. In case someone uses the same compiler
2605 # for both compiling C and C++ we need to have the C++ compiler decide
2606 # the declaration of exit, since it's the most demanding environment.
2607 cat >conftest.
$ac_ext <<_ACEOF
2612 rm -f conftest.
$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614 (eval $ac_compile) 2>conftest.er1
2616 grep -v '^ *+' conftest.er1
>conftest.err
2618 cat conftest.err
>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try
='test -z "$ac_c_werror_flag"
2622 || test ! -s conftest.err'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; } &&
2628 { ac_try
='test -s conftest.$ac_objext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 for ac_declaration
in \
2636 'extern "C" void std::exit (int) throw (); using std::exit;' \
2637 'extern "C" void std::exit (int); using std::exit;' \
2638 'extern "C" void exit (int) throw ();' \
2639 'extern "C" void exit (int);' \
2642 cat >conftest.
$ac_ext <<_ACEOF
2645 cat confdefs.h
>>conftest.
$ac_ext
2646 cat >>conftest.
$ac_ext <<_ACEOF
2647 /* end confdefs.h. */
2658 rm -f conftest.
$ac_objext
2659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2660 (eval $ac_compile) 2>conftest.er1
2662 grep -v '^ *+' conftest.er1
>conftest.err
2664 cat conftest.err
>&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try
='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try
='test -s conftest.$ac_objext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.
$ac_ext >&5
2687 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2688 cat >conftest.
$ac_ext <<_ACEOF
2691 cat confdefs.h
>>conftest.
$ac_ext
2692 cat >>conftest.
$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2703 rm -f conftest.
$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>conftest.er1
2707 grep -v '^ *+' conftest.er1
>conftest.err
2709 cat conftest.err
>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try
='test -z "$ac_c_werror_flag"
2713 || test ! -s conftest.err'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try
='test -s conftest.$ac_objext'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; }; then
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.
$ac_ext >&5
2731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2734 if test -n "$ac_declaration"; then
2735 echo '#ifdef __cplusplus' >>confdefs.h
2736 echo $ac_declaration >>confdefs.h
2737 echo '#endif' >>confdefs.h
2741 echo "$as_me: failed program was:" >&5
2742 sed 's/^/| /' conftest.
$ac_ext >&5
2745 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2747 ac_cpp
='$CPP $CPPFLAGS'
2748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2752 if test "x$CC" != xcc
; then
2753 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2754 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2756 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2757 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2759 set dummy
$CC; ac_cc
=`echo $2 |
2760 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2761 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2764 cat >conftest.
$ac_ext <<_ACEOF
2767 cat confdefs.h
>>conftest.
$ac_ext
2768 cat >>conftest.
$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 # Make sure it works both with $CC and with simple cc.
2780 # We do the test twice because some compilers refuse to overwrite an
2781 # existing .o file with -o, though they will create one.
2782 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2783 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); };
2794 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2795 if test "x$CC" != xcc
; then
2796 # Test first that cc exists at all.
2797 if { ac_try
='cc -c conftest.$ac_ext >&5'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2804 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); };
2818 # cc exists but doesn't like -o.
2819 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2824 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2829 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2830 echo "$as_me:$LINENO: result: yes" >&5
2831 echo "${ECHO_T}yes" >&6
2833 echo "$as_me:$LINENO: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2836 cat >>confdefs.h
<<\_ACEOF
2837 #define NO_MINUS_C_MINUS_O 1
2842 # expand $ac_aux_dir to an absolute path
2843 am_aux_dir
=`cd $ac_aux_dir && pwd`
2845 # FIXME: we rely on the cache variable name because
2846 # there is no other way.
2848 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2850 # Losing compiler, so override with the script.
2851 # FIXME: It is wrong to rewrite CC.
2852 # But if we don't then we get into trouble of one sort or another.
2853 # A longer-term fix would be to have automake use am__CC in this case,
2854 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2855 CC
="$am_aux_dir/compile $CC"
2858 # autoconf is lame and doesn't give us any substitution variable for this.
2859 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2860 NO_MINUS_C_MINUS_O
=yes
2862 OUTPUT_OPTION
='-o $@'
2867 # -------------------------
2868 # Check C compiler features
2869 # -------------------------
2872 ac_cpp
='$CPP $CPPFLAGS'
2873 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2876 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2877 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2878 # On Suns, sometimes $CPP names a directory.
2879 if test -n "$CPP" && test -d "$CPP"; then
2882 if test -z "$CPP"; then
2883 if test "${ac_cv_prog_CPP+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 # Double quotes because CPP needs to be expanded
2887 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2890 for ac_c_preproc_warn_flag
in '' yes
2892 # Use a header file that comes with gcc, so configuring glibc
2893 # with a fresh cross-compiler works.
2894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2895 # <limits.h> exists even on freestanding compilers.
2896 # On the NeXT, cc -E runs the code through the compiler's parser,
2897 # not just through cpp. "Syntax error" is here to catch this case.
2898 cat >conftest.
$ac_ext <<_ACEOF
2901 cat confdefs.h
>>conftest.
$ac_ext
2902 cat >>conftest.
$ac_ext <<_ACEOF
2903 /* end confdefs.h. */
2905 # include <limits.h>
2907 # include <assert.h>
2911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2914 grep -v '^ *+' conftest.er1
>conftest.err
2916 cat conftest.err
>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev
/null
; then
2919 if test -s conftest.err
; then
2920 ac_cpp_err
=$ac_c_preproc_warn_flag
2921 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2928 if test -z "$ac_cpp_err"; then
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.
$ac_ext >&5
2934 # Broken: fails on valid input.
2937 rm -f conftest.err conftest.
$ac_ext
2939 # OK, works on sane cases. Now check whether non-existent headers
2940 # can be detected and how.
2941 cat >conftest.
$ac_ext <<_ACEOF
2944 cat confdefs.h
>>conftest.
$ac_ext
2945 cat >>conftest.
$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 #include <ac_nonexistent.h>
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2952 grep -v '^ *+' conftest.er1
>conftest.err
2954 cat conftest.err
>&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } >/dev
/null
; then
2957 if test -s conftest.err
; then
2958 ac_cpp_err
=$ac_c_preproc_warn_flag
2959 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2966 if test -z "$ac_cpp_err"; then
2967 # Broken: success on invalid input.
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.
$ac_ext >&5
2973 # Passes both tests.
2977 rm -f conftest.err conftest.
$ac_ext
2980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2981 rm -f conftest.err conftest.
$ac_ext
2982 if $ac_preproc_ok; then
2994 echo "$as_me:$LINENO: result: $CPP" >&5
2995 echo "${ECHO_T}$CPP" >&6
2997 for ac_c_preproc_warn_flag
in '' yes
2999 # Use a header file that comes with gcc, so configuring glibc
3000 # with a fresh cross-compiler works.
3001 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3002 # <limits.h> exists even on freestanding compilers.
3003 # On the NeXT, cc -E runs the code through the compiler's parser,
3004 # not just through cpp. "Syntax error" is here to catch this case.
3005 cat >conftest.
$ac_ext <<_ACEOF
3008 cat confdefs.h
>>conftest.
$ac_ext
3009 cat >>conftest.
$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3012 # include <limits.h>
3014 # include <assert.h>
3018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3019 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1
>conftest.err
3023 cat conftest.err
>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } >/dev
/null
; then
3026 if test -s conftest.err
; then
3027 ac_cpp_err
=$ac_c_preproc_warn_flag
3028 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3035 if test -z "$ac_cpp_err"; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.
$ac_ext >&5
3041 # Broken: fails on valid input.
3044 rm -f conftest.err conftest.
$ac_ext
3046 # OK, works on sane cases. Now check whether non-existent headers
3047 # can be detected and how.
3048 cat >conftest.
$ac_ext <<_ACEOF
3051 cat confdefs.h
>>conftest.
$ac_ext
3052 cat >>conftest.
$ac_ext <<_ACEOF
3053 /* end confdefs.h. */
3054 #include <ac_nonexistent.h>
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3059 grep -v '^ *+' conftest.er1
>conftest.err
3061 cat conftest.err
>&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } >/dev
/null
; then
3064 if test -s conftest.err
; then
3065 ac_cpp_err
=$ac_c_preproc_warn_flag
3066 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3073 if test -z "$ac_cpp_err"; then
3074 # Broken: success on invalid input.
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.
$ac_ext >&5
3080 # Passes both tests.
3084 rm -f conftest.err conftest.
$ac_ext
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.
$ac_ext
3089 if $ac_preproc_ok; then
3092 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3093 See \`config.log' for more details." >&5
3094 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3095 See \`config.log' for more details." >&2;}
3096 { (exit 1); exit 1; }; }
3100 ac_cpp
='$CPP $CPPFLAGS'
3101 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 for ac_kw
in inline __inline__ __inline
; do
3113 cat >conftest.
$ac_ext <<_ACEOF
3116 cat confdefs.h
>>conftest.
$ac_ext
3117 cat >>conftest.
$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3126 rm -f conftest.
$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try
='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try
='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_c_inline
=$ac_kw; break
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3154 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3159 echo "${ECHO_T}$ac_cv_c_inline" >&6
3162 case $ac_cv_c_inline in
3165 case $ac_cv_c_inline in
3167 *) ac_val
=$ac_cv_c_inline;;
3169 cat >>confdefs.h
<<_ACEOF
3171 #define inline $ac_val
3178 # sizeof(char) is 1 by definition.
3180 echo "$as_me:$LINENO: checking for egrep" >&5
3181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3182 if test "${ac_cv_prog_egrep+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3186 then ac_cv_prog_egrep
='grep -E'
3187 else ac_cv_prog_egrep
='egrep'
3190 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3191 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3192 EGREP
=$ac_cv_prog_egrep
3195 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3196 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3197 if test "${ac_cv_header_stdc+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 cat >conftest.
$ac_ext <<_ACEOF
3203 cat confdefs.h
>>conftest.
$ac_ext
3204 cat >>conftest.
$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3219 rm -f conftest.
$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221 (eval $ac_compile) 2>conftest.er1
3223 grep -v '^ *+' conftest.er1
>conftest.err
3225 cat conftest.err
>&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
3228 { ac_try
='test -z "$ac_c_werror_flag"
3229 || 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"
3400 || test ! -s conftest.err'
3401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try
='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 eval "$as_ac_Header=yes"
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.
$ac_ext >&5
3417 eval "$as_ac_Header=no"
3419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h
<<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 echo "$as_me:$LINENO: checking for void *" >&5
3434 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3435 if test "${ac_cv_type_void_p+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 cat >conftest.
$ac_ext <<_ACEOF
3441 cat confdefs.h
>>conftest.
$ac_ext
3442 cat >>conftest.
$ac_ext <<_ACEOF
3443 /* end confdefs.h. */
3444 $ac_includes_default
3450 if (sizeof (void *))
3456 rm -f conftest.
$ac_objext
3457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>conftest.er1
3460 grep -v '^ *+' conftest.er1
>conftest.err
3462 cat conftest.err
>&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
3465 { ac_try
='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try
='test -s conftest.$ac_objext'
3473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_cv_type_void_p
=yes
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.
$ac_ext >&5
3483 ac_cv_type_void_p
=no
3485 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3487 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3488 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3490 echo "$as_me:$LINENO: checking size of void *" >&5
3491 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3492 if test "${ac_cv_sizeof_void_p+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 if test "$ac_cv_type_void_p" = yes; then
3496 # The cast to unsigned long works around a bug in the HP C Compiler
3497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3499 # This bug is HP SR number 8606223364.
3500 if test "$cross_compiling" = yes; then
3501 # Depending upon the size, compute the lo and hi bounds.
3502 cat >conftest.
$ac_ext <<_ACEOF
3505 cat confdefs.h
>>conftest.
$ac_ext
3506 cat >>conftest.
$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 $ac_includes_default
3512 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3519 rm -f conftest.
$ac_objext
3520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3521 (eval $ac_compile) 2>conftest.er1
3523 grep -v '^ *+' conftest.er1
>conftest.err
3525 cat conftest.err
>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try
='test -z "$ac_c_werror_flag"
3529 || test ! -s conftest.err'
3530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; } &&
3535 { ac_try
='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3543 cat >conftest.
$ac_ext <<_ACEOF
3546 cat confdefs.h
>>conftest.
$ac_ext
3547 cat >>conftest.
$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 $ac_includes_default
3553 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3560 rm -f conftest.
$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>conftest.er1
3564 grep -v '^ *+' conftest.er1
>conftest.err
3566 cat conftest.err
>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } &&
3569 { ac_try
='test -z "$ac_c_werror_flag"
3570 || test ! -s conftest.err'
3571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); }; } &&
3576 { ac_try
='test -s conftest.$ac_objext'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; }; then
3582 ac_hi
=$ac_mid; break
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.
$ac_ext >&5
3587 ac_lo
=`expr $ac_mid + 1`
3588 if test $ac_lo -le $ac_mid; then
3592 ac_mid
=`expr 2 '*' $ac_mid + 1`
3594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.
$ac_ext >&5
3600 cat >conftest.
$ac_ext <<_ACEOF
3603 cat confdefs.h
>>conftest.
$ac_ext
3604 cat >>conftest.
$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3606 $ac_includes_default
3610 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3617 rm -f conftest.
$ac_objext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 (eval $ac_compile) 2>conftest.er1
3621 grep -v '^ *+' conftest.er1
>conftest.err
3623 cat conftest.err
>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try
='test -z "$ac_c_werror_flag"
3627 || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try
='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3641 cat >conftest.
$ac_ext <<_ACEOF
3644 cat confdefs.h
>>conftest.
$ac_ext
3645 cat >>conftest.
$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3647 $ac_includes_default
3651 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3658 rm -f conftest.
$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3662 grep -v '^ *+' conftest.er1
>conftest.err
3664 cat conftest.err
>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try
='test -z "$ac_c_werror_flag"
3668 || test ! -s conftest.err'
3669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; } &&
3674 { ac_try
='test -s conftest.$ac_objext'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3680 ac_lo
=$ac_mid; break
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.
$ac_ext >&5
3685 ac_hi
=`expr '(' $ac_mid ')' - 1`
3686 if test $ac_mid -le $ac_hi; then
3690 ac_mid
=`expr 2 '*' $ac_mid`
3692 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3695 echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.
$ac_ext >&5
3700 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3703 # Binary search between lo and hi bounds.
3704 while test "x$ac_lo" != "x$ac_hi"; do
3705 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3706 cat >conftest.
$ac_ext <<_ACEOF
3709 cat confdefs.h
>>conftest.
$ac_ext
3710 cat >>conftest.
$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3712 $ac_includes_default
3716 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3723 rm -f conftest.
$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3727 grep -v '^ *+' conftest.er1
>conftest.err
3729 cat conftest.err
>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try
='test -z "$ac_c_werror_flag"
3733 || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try
='test -s conftest.$ac_objext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.
$ac_ext >&5
3750 ac_lo
=`expr '(' $ac_mid ')' + 1`
3752 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3755 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3756 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute sizeof (void *), 77
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; } ;;
3763 if test "$cross_compiling" = yes; then
3764 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot run test program while cross compiling
3767 See \`config.log' for more details." >&2;}
3768 { (exit 1); exit 1; }; }
3770 cat >conftest.
$ac_ext <<_ACEOF
3773 cat confdefs.h
>>conftest.
$ac_ext
3774 cat >>conftest.
$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776 $ac_includes_default
3777 long longval () { return (long) (sizeof (void *)); }
3778 unsigned long ulongval () { return (long) (sizeof (void *)); }
3785 FILE *f = fopen ("conftest.val", "w");
3788 if (((long) (sizeof (void *))) < 0)
3790 long i = longval ();
3791 if (i != ((long) (sizeof (void *))))
3793 fprintf (f, "%ld\n", i);
3797 unsigned long i = ulongval ();
3798 if (i != ((long) (sizeof (void *))))
3800 fprintf (f, "%lu\n", i);
3802 exit (ferror (f) || fclose (f) != 0);
3808 rm -f conftest
$ac_exeext
3809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3810 (eval $ac_link) 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_sizeof_void_p
=`cat conftest.val`
3821 echo "$as_me: program exited with status $ac_status" >&5
3822 echo "$as_me: failed program was:" >&5
3823 sed 's/^/| /' conftest.
$ac_ext >&5
3826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3827 See \`config.log' for more details." >&5
3828 echo "$as_me: error: cannot compute sizeof (void *), 77
3829 See \`config.log' for more details." >&2;}
3830 { (exit 1); exit 1; }; }
3832 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3837 ac_cv_sizeof_void_p
=0
3840 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3841 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3842 cat >>confdefs.h
<<_ACEOF
3843 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3847 echo "$as_me:$LINENO: checking for short" >&5
3848 echo $ECHO_N "checking for short... $ECHO_C" >&6
3849 if test "${ac_cv_type_short+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 cat >conftest.
$ac_ext <<_ACEOF
3855 cat confdefs.h
>>conftest.
$ac_ext
3856 cat >>conftest.
$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 $ac_includes_default
3870 rm -f conftest.
$ac_objext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
3876 cat conftest.err
>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try
='test -z "$ac_c_werror_flag"
3880 || test ! -s conftest.err'
3881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try
='test -s conftest.$ac_objext'
3887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); }; }; then
3892 ac_cv_type_short
=yes
3894 echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.
$ac_ext >&5
3899 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3901 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3902 echo "${ECHO_T}$ac_cv_type_short" >&6
3904 echo "$as_me:$LINENO: checking size of short" >&5
3905 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3906 if test "${ac_cv_sizeof_short+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 if test "$ac_cv_type_short" = yes; then
3910 # The cast to unsigned long works around a bug in the HP C Compiler
3911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3913 # This bug is HP SR number 8606223364.
3914 if test "$cross_compiling" = yes; then
3915 # Depending upon the size, compute the lo and hi bounds.
3916 cat >conftest.
$ac_ext <<_ACEOF
3919 cat confdefs.h
>>conftest.
$ac_ext
3920 cat >>conftest.
$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3922 $ac_includes_default
3926 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3933 rm -f conftest.
$ac_objext
3934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3935 (eval $ac_compile) 2>conftest.er1
3937 grep -v '^ *+' conftest.er1
>conftest.err
3939 cat conftest.err
>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try
='test -z "$ac_c_werror_flag"
3943 || test ! -s conftest.err'
3944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; } &&
3949 { ac_try
='test -s conftest.$ac_objext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3957 cat >conftest.
$ac_ext <<_ACEOF
3960 cat confdefs.h
>>conftest.
$ac_ext
3961 cat >>conftest.
$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 $ac_includes_default
3967 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3974 rm -f conftest.
$ac_objext
3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976 (eval $ac_compile) 2>conftest.er1
3978 grep -v '^ *+' conftest.er1
>conftest.err
3980 cat conftest.err
>&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try
='test -z "$ac_c_werror_flag"
3984 || test ! -s conftest.err'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try
='test -s conftest.$ac_objext'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_hi
=$ac_mid; break
3998 echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.
$ac_ext >&5
4001 ac_lo
=`expr $ac_mid + 1`
4002 if test $ac_lo -le $ac_mid; then
4006 ac_mid
=`expr 2 '*' $ac_mid + 1`
4008 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.
$ac_ext >&5
4014 cat >conftest.
$ac_ext <<_ACEOF
4017 cat confdefs.h
>>conftest.
$ac_ext
4018 cat >>conftest.
$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 $ac_includes_default
4024 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4031 rm -f conftest.
$ac_objext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4033 (eval $ac_compile) 2>conftest.er1
4035 grep -v '^ *+' conftest.er1
>conftest.err
4037 cat conftest.err
>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try
='test -z "$ac_c_werror_flag"
4041 || test ! -s conftest.err'
4042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); }; } &&
4047 { ac_try
='test -s conftest.$ac_objext'
4048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; }; then
4055 cat >conftest.
$ac_ext <<_ACEOF
4058 cat confdefs.h
>>conftest.
$ac_ext
4059 cat >>conftest.
$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4061 $ac_includes_default
4065 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4072 rm -f conftest.
$ac_objext
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>conftest.er1
4076 grep -v '^ *+' conftest.er1
>conftest.err
4078 cat conftest.err
>&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try
='test -z "$ac_c_werror_flag"
4082 || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try
='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 ac_lo
=$ac_mid; break
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.
$ac_ext >&5
4099 ac_hi
=`expr '(' $ac_mid ')' - 1`
4100 if test $ac_mid -le $ac_hi; then
4104 ac_mid
=`expr 2 '*' $ac_mid`
4106 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.
$ac_ext >&5
4114 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4117 # Binary search between lo and hi bounds.
4118 while test "x$ac_lo" != "x$ac_hi"; do
4119 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4120 cat >conftest.
$ac_ext <<_ACEOF
4123 cat confdefs.h
>>conftest.
$ac_ext
4124 cat >>conftest.
$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4130 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4137 rm -f conftest.
$ac_objext
4138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139 (eval $ac_compile) 2>conftest.er1
4141 grep -v '^ *+' conftest.er1
>conftest.err
4143 cat conftest.err
>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try
='test -z "$ac_c_werror_flag"
4147 || test ! -s conftest.err'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; } &&
4153 { ac_try
='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.
$ac_ext >&5
4164 ac_lo
=`expr '(' $ac_mid ')' + 1`
4166 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4169 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4171 See \`config.log' for more details." >&5
4172 echo "$as_me: error: cannot compute sizeof (short), 77
4173 See \`config.log' for more details." >&2;}
4174 { (exit 1); exit 1; }; } ;;
4177 if test "$cross_compiling" = yes; then
4178 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot run test program while cross compiling
4181 See \`config.log' for more details." >&2;}
4182 { (exit 1); exit 1; }; }
4184 cat >conftest.
$ac_ext <<_ACEOF
4187 cat confdefs.h
>>conftest.
$ac_ext
4188 cat >>conftest.
$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4190 $ac_includes_default
4191 long longval () { return (long) (sizeof (short)); }
4192 unsigned long ulongval () { return (long) (sizeof (short)); }
4199 FILE *f = fopen ("conftest.val", "w");
4202 if (((long) (sizeof (short))) < 0)
4204 long i = longval ();
4205 if (i != ((long) (sizeof (short))))
4207 fprintf (f, "%ld\n", i);
4211 unsigned long i = ulongval ();
4212 if (i != ((long) (sizeof (short))))
4214 fprintf (f, "%lu\n", i);
4216 exit (ferror (f) || fclose (f) != 0);
4222 rm -f conftest
$ac_exeext
4223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4224 (eval $ac_link) 2>&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; }; then
4233 ac_cv_sizeof_short
=`cat conftest.val`
4235 echo "$as_me: program exited with status $ac_status" >&5
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.
$ac_ext >&5
4240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4241 See \`config.log' for more details." >&5
4242 echo "$as_me: error: cannot compute sizeof (short), 77
4243 See \`config.log' for more details." >&2;}
4244 { (exit 1); exit 1; }; }
4246 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4251 ac_cv_sizeof_short
=0
4254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4255 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4256 cat >>confdefs.h
<<_ACEOF
4257 #define SIZEOF_SHORT $ac_cv_sizeof_short
4261 echo "$as_me:$LINENO: checking for int" >&5
4262 echo $ECHO_N "checking for int... $ECHO_C" >&6
4263 if test "${ac_cv_type_int+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 cat >conftest.
$ac_ext <<_ACEOF
4269 cat confdefs.h
>>conftest.
$ac_ext
4270 cat >>conftest.
$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 $ac_includes_default
4284 rm -f conftest.
$ac_objext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286 (eval $ac_compile) 2>conftest.er1
4288 grep -v '^ *+' conftest.er1
>conftest.err
4290 cat conftest.err
>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try
='test -z "$ac_c_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try
='test -s conftest.$ac_objext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.
$ac_ext >&5
4313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4315 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4316 echo "${ECHO_T}$ac_cv_type_int" >&6
4318 echo "$as_me:$LINENO: checking size of int" >&5
4319 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4320 if test "${ac_cv_sizeof_int+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 if test "$ac_cv_type_int" = yes; then
4324 # The cast to unsigned long works around a bug in the HP C Compiler
4325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4327 # This bug is HP SR number 8606223364.
4328 if test "$cross_compiling" = yes; then
4329 # Depending upon the size, compute the lo and hi bounds.
4330 cat >conftest.
$ac_ext <<_ACEOF
4333 cat confdefs.h
>>conftest.
$ac_ext
4334 cat >>conftest.
$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4340 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4347 rm -f conftest.
$ac_objext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349 (eval $ac_compile) 2>conftest.er1
4351 grep -v '^ *+' conftest.er1
>conftest.err
4353 cat conftest.err
>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try
='test -z "$ac_c_werror_flag"
4357 || test ! -s conftest.err'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try
='test -s conftest.$ac_objext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4371 cat >conftest.
$ac_ext <<_ACEOF
4374 cat confdefs.h
>>conftest.
$ac_ext
4375 cat >>conftest.
$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 $ac_includes_default
4381 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4388 rm -f conftest.
$ac_objext
4389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4390 (eval $ac_compile) 2>conftest.er1
4392 grep -v '^ *+' conftest.er1
>conftest.err
4394 cat conftest.err
>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try
='test -z "$ac_c_werror_flag"
4398 || test ! -s conftest.err'
4399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403 (exit $ac_status); }; } &&
4404 { ac_try
='test -s conftest.$ac_objext'
4405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4410 ac_hi
=$ac_mid; break
4412 echo "$as_me: failed program was:" >&5
4413 sed 's/^/| /' conftest.
$ac_ext >&5
4415 ac_lo
=`expr $ac_mid + 1`
4416 if test $ac_lo -le $ac_mid; then
4420 ac_mid
=`expr 2 '*' $ac_mid + 1`
4422 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.
$ac_ext >&5
4428 cat >conftest.
$ac_ext <<_ACEOF
4431 cat confdefs.h
>>conftest.
$ac_ext
4432 cat >>conftest.
$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 $ac_includes_default
4438 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4445 rm -f conftest.
$ac_objext
4446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447 (eval $ac_compile) 2>conftest.er1
4449 grep -v '^ *+' conftest.er1
>conftest.err
4451 cat conftest.err
>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try
='test -z "$ac_c_werror_flag"
4455 || test ! -s conftest.err'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; } &&
4461 { ac_try
='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4469 cat >conftest.
$ac_ext <<_ACEOF
4472 cat confdefs.h
>>conftest.
$ac_ext
4473 cat >>conftest.
$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 $ac_includes_default
4479 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4486 rm -f conftest.
$ac_objext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>conftest.er1
4490 grep -v '^ *+' conftest.er1
>conftest.err
4492 cat conftest.err
>&5
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try
='test -z "$ac_c_werror_flag"
4496 || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try
='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 ac_lo
=$ac_mid; break
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4513 ac_hi
=`expr '(' $ac_mid ')' - 1`
4514 if test $ac_mid -le $ac_hi; then
4518 ac_mid
=`expr 2 '*' $ac_mid`
4520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.
$ac_ext >&5
4528 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4531 # Binary search between lo and hi bounds.
4532 while test "x$ac_lo" != "x$ac_hi"; do
4533 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4534 cat >conftest.
$ac_ext <<_ACEOF
4537 cat confdefs.h
>>conftest.
$ac_ext
4538 cat >>conftest.
$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 $ac_includes_default
4544 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4551 rm -f conftest.
$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
4555 grep -v '^ *+' conftest.er1
>conftest.err
4557 cat conftest.err
>&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
4560 { ac_try
='test -z "$ac_c_werror_flag"
4561 || test ! -s conftest.err'
4562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try
='test -s conftest.$ac_objext'
4568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4575 echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.
$ac_ext >&5
4578 ac_lo
=`expr '(' $ac_mid ')' + 1`
4580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4583 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4585 See \`config.log' for more details." >&5
4586 echo "$as_me: error: cannot compute sizeof (int), 77
4587 See \`config.log' for more details." >&2;}
4588 { (exit 1); exit 1; }; } ;;
4591 if test "$cross_compiling" = yes; then
4592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot run test program while cross compiling
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; }
4598 cat >conftest.
$ac_ext <<_ACEOF
4601 cat confdefs.h
>>conftest.
$ac_ext
4602 cat >>conftest.
$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4604 $ac_includes_default
4605 long longval () { return (long) (sizeof (int)); }
4606 unsigned long ulongval () { return (long) (sizeof (int)); }
4613 FILE *f = fopen ("conftest.val", "w");
4616 if (((long) (sizeof (int))) < 0)
4618 long i = longval ();
4619 if (i != ((long) (sizeof (int))))
4621 fprintf (f, "%ld\n", i);
4625 unsigned long i = ulongval ();
4626 if (i != ((long) (sizeof (int))))
4628 fprintf (f, "%lu\n", i);
4630 exit (ferror (f) || fclose (f) != 0);
4636 rm -f conftest
$ac_exeext
4637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4638 (eval $ac_link) 2>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); }; }; then
4647 ac_cv_sizeof_int
=`cat conftest.val`
4649 echo "$as_me: program exited with status $ac_status" >&5
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.
$ac_ext >&5
4654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4655 See \`config.log' for more details." >&5
4656 echo "$as_me: error: cannot compute sizeof (int), 77
4657 See \`config.log' for more details." >&2;}
4658 { (exit 1); exit 1; }; }
4660 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4670 cat >>confdefs.h
<<_ACEOF
4671 #define SIZEOF_INT $ac_cv_sizeof_int
4675 echo "$as_me:$LINENO: checking for long" >&5
4676 echo $ECHO_N "checking for long... $ECHO_C" >&6
4677 if test "${ac_cv_type_long+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 $ac_includes_default
4698 rm -f conftest.
$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700 (eval $ac_compile) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1
>conftest.err
4704 cat conftest.err
>&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try
='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try
='test -s conftest.$ac_objext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.
$ac_ext >&5
4727 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4729 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4730 echo "${ECHO_T}$ac_cv_type_long" >&6
4732 echo "$as_me:$LINENO: checking size of long" >&5
4733 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4734 if test "${ac_cv_sizeof_long+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test "$ac_cv_type_long" = yes; then
4738 # The cast to unsigned long works around a bug in the HP C Compiler
4739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4741 # This bug is HP SR number 8606223364.
4742 if test "$cross_compiling" = yes; then
4743 # Depending upon the size, compute the lo and hi bounds.
4744 cat >conftest.
$ac_ext <<_ACEOF
4747 cat confdefs.h
>>conftest.
$ac_ext
4748 cat >>conftest.
$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4750 $ac_includes_default
4754 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4761 rm -f conftest.
$ac_objext
4762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4763 (eval $ac_compile) 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } &&
4770 { ac_try
='test -z "$ac_c_werror_flag"
4771 || test ! -s conftest.err'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; } &&
4777 { ac_try
='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4785 cat >conftest.
$ac_ext <<_ACEOF
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 $ac_includes_default
4795 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4802 rm -f conftest.
$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1
>conftest.err
4808 cat conftest.err
>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try
='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try
='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 ac_hi
=$ac_mid; break
4826 echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.
$ac_ext >&5
4829 ac_lo
=`expr $ac_mid + 1`
4830 if test $ac_lo -le $ac_mid; then
4834 ac_mid
=`expr 2 '*' $ac_mid + 1`
4836 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.
$ac_ext >&5
4842 cat >conftest.
$ac_ext <<_ACEOF
4845 cat confdefs.h
>>conftest.
$ac_ext
4846 cat >>conftest.
$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4848 $ac_includes_default
4852 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4859 rm -f conftest.
$ac_objext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>conftest.er1
4863 grep -v '^ *+' conftest.er1
>conftest.err
4865 cat conftest.err
>&5
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } &&
4868 { ac_try
='test -z "$ac_c_werror_flag"
4869 || test ! -s conftest.err'
4870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); }; } &&
4875 { ac_try
='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4883 cat >conftest.
$ac_ext <<_ACEOF
4886 cat confdefs.h
>>conftest.
$ac_ext
4887 cat >>conftest.
$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4889 $ac_includes_default
4893 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4900 rm -f conftest.
$ac_objext
4901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4902 (eval $ac_compile) 2>conftest.er1
4904 grep -v '^ *+' conftest.er1
>conftest.err
4906 cat conftest.err
>&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try
='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try
='test -s conftest.$ac_objext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_lo
=$ac_mid; break
4924 echo "$as_me: failed program was:" >&5
4925 sed 's/^/| /' conftest.
$ac_ext >&5
4927 ac_hi
=`expr '(' $ac_mid ')' - 1`
4928 if test $ac_mid -le $ac_hi; then
4932 ac_mid
=`expr 2 '*' $ac_mid`
4934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4937 echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.
$ac_ext >&5
4942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4945 # Binary search between lo and hi bounds.
4946 while test "x$ac_lo" != "x$ac_hi"; do
4947 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4948 cat >conftest.
$ac_ext <<_ACEOF
4951 cat confdefs.h
>>conftest.
$ac_ext
4952 cat >>conftest.
$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4954 $ac_includes_default
4958 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4965 rm -f conftest.
$ac_objext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag"
4975 || test ! -s conftest.err'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; } &&
4981 { ac_try
='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.
$ac_ext >&5
4992 ac_lo
=`expr '(' $ac_mid ')' + 1`
4994 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 ?
*) ac_cv_sizeof_long
=$ac_lo;;
4998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4999 See \`config.log' for more details." >&5
5000 echo "$as_me: error: cannot compute sizeof (long), 77
5001 See \`config.log' for more details." >&2;}
5002 { (exit 1); exit 1; }; } ;;
5005 if test "$cross_compiling" = yes; then
5006 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot run test program while cross compiling
5009 See \`config.log' for more details." >&2;}
5010 { (exit 1); exit 1; }; }
5012 cat >conftest.
$ac_ext <<_ACEOF
5015 cat confdefs.h
>>conftest.
$ac_ext
5016 cat >>conftest.
$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5019 long longval () { return (long) (sizeof (long)); }
5020 unsigned long ulongval () { return (long) (sizeof (long)); }
5027 FILE *f = fopen ("conftest.val", "w");
5030 if (((long) (sizeof (long))) < 0)
5032 long i = longval ();
5033 if (i != ((long) (sizeof (long))))
5035 fprintf (f, "%ld\n", i);
5039 unsigned long i = ulongval ();
5040 if (i != ((long) (sizeof (long))))
5042 fprintf (f, "%lu\n", i);
5044 exit (ferror (f) || fclose (f) != 0);
5050 rm -f conftest
$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_sizeof_long
=`cat conftest.val`
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.
$ac_ext >&5
5068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5069 See \`config.log' for more details." >&5
5070 echo "$as_me: error: cannot compute sizeof (long), 77
5071 See \`config.log' for more details." >&2;}
5072 { (exit 1); exit 1; }; }
5074 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5083 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5084 cat >>confdefs.h
<<_ACEOF
5085 #define SIZEOF_LONG $ac_cv_sizeof_long
5089 echo "$as_me:$LINENO: checking for long long" >&5
5090 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5091 if test "${ac_cv_type_long_long+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 cat >conftest.
$ac_ext <<_ACEOF
5097 cat confdefs.h
>>conftest.
$ac_ext
5098 cat >>conftest.
$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5104 if ((long long *) 0)
5106 if (sizeof (long long))
5112 rm -f conftest.
$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>conftest.er1
5116 grep -v '^ *+' conftest.er1
>conftest.err
5118 cat conftest.err
>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } &&
5121 { ac_try
='test -z "$ac_c_werror_flag"
5122 || test ! -s conftest.err'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; } &&
5128 { ac_try
='test -s conftest.$ac_objext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 ac_cv_type_long_long
=yes
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.
$ac_ext >&5
5139 ac_cv_type_long_long
=no
5141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5144 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5145 if test $ac_cv_type_long_long = yes; then
5147 cat >>confdefs.h
<<_ACEOF
5148 #define HAVE_LONG_LONG 1
5151 echo "$as_me:$LINENO: checking for long long" >&5
5152 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5153 if test "${ac_cv_type_long_long+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 cat >conftest.
$ac_ext <<_ACEOF
5159 cat confdefs.h
>>conftest.
$ac_ext
5160 cat >>conftest.
$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 $ac_includes_default
5166 if ((long long *) 0)
5168 if (sizeof (long long))
5174 rm -f conftest.
$ac_objext
5175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1
>conftest.err
5180 cat conftest.err
>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try
='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try
='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_type_long_long
=yes
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.
$ac_ext >&5
5201 ac_cv_type_long_long
=no
5203 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5206 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5208 echo "$as_me:$LINENO: checking size of long long" >&5
5209 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5210 if test "${ac_cv_sizeof_long_long+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 if test "$ac_cv_type_long_long" = yes; then
5214 # The cast to unsigned long works around a bug in the HP C Compiler
5215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5217 # This bug is HP SR number 8606223364.
5218 if test "$cross_compiling" = yes; then
5219 # Depending upon the size, compute the lo and hi bounds.
5220 cat >conftest.
$ac_ext <<_ACEOF
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5230 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5237 rm -f conftest.
$ac_objext
5238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239 (eval $ac_compile) 2>conftest.er1
5241 grep -v '^ *+' conftest.er1
>conftest.err
5243 cat conftest.err
>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } &&
5246 { ac_try
='test -z "$ac_c_werror_flag"
5247 || test ! -s conftest.err'
5248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); }; } &&
5253 { ac_try
='test -s conftest.$ac_objext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5261 cat >conftest.
$ac_ext <<_ACEOF
5264 cat confdefs.h
>>conftest.
$ac_ext
5265 cat >>conftest.
$ac_ext <<_ACEOF
5266 /* end confdefs.h. */
5267 $ac_includes_default
5271 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5278 rm -f conftest.
$ac_objext
5279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>conftest.er1
5282 grep -v '^ *+' conftest.er1
>conftest.err
5284 cat conftest.err
>&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } &&
5287 { ac_try
='test -z "$ac_c_werror_flag"
5288 || test ! -s conftest.err'
5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }; } &&
5294 { ac_try
='test -s conftest.$ac_objext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_hi
=$ac_mid; break
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.
$ac_ext >&5
5305 ac_lo
=`expr $ac_mid + 1`
5306 if test $ac_lo -le $ac_mid; then
5310 ac_mid
=`expr 2 '*' $ac_mid + 1`
5312 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.
$ac_ext >&5
5318 cat >conftest.
$ac_ext <<_ACEOF
5321 cat confdefs.h
>>conftest.
$ac_ext
5322 cat >>conftest.
$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5328 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5335 rm -f conftest.
$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>conftest.er1
5339 grep -v '^ *+' conftest.er1
>conftest.err
5341 cat conftest.err
>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try
='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try
='test -s conftest.$ac_objext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5359 cat >conftest.
$ac_ext <<_ACEOF
5362 cat confdefs.h
>>conftest.
$ac_ext
5363 cat >>conftest.
$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 $ac_includes_default
5369 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5376 rm -f conftest.
$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
5380 grep -v '^ *+' conftest.er1
>conftest.err
5382 cat conftest.err
>&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try
='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try
='test -s conftest.$ac_objext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_lo
=$ac_mid; break
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.
$ac_ext >&5
5403 ac_hi
=`expr '(' $ac_mid ')' - 1`
5404 if test $ac_mid -le $ac_hi; then
5408 ac_mid
=`expr 2 '*' $ac_mid`
5410 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.
$ac_ext >&5
5418 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5421 # Binary search between lo and hi bounds.
5422 while test "x$ac_lo" != "x$ac_hi"; do
5423 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5424 cat >conftest.
$ac_ext <<_ACEOF
5427 cat confdefs.h
>>conftest.
$ac_ext
5428 cat >>conftest.
$ac_ext <<_ACEOF
5429 /* end confdefs.h. */
5430 $ac_includes_default
5434 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5441 rm -f conftest.
$ac_objext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>conftest.er1
5445 grep -v '^ *+' conftest.er1
>conftest.err
5447 cat conftest.err
>&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } &&
5450 { ac_try
='test -z "$ac_c_werror_flag"
5451 || test ! -s conftest.err'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; } &&
5457 { ac_try
='test -s conftest.$ac_objext'
5458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5465 echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.
$ac_ext >&5
5468 ac_lo
=`expr '(' $ac_mid ')' + 1`
5470 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5473 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5475 See \`config.log' for more details." >&5
5476 echo "$as_me: error: cannot compute sizeof (long long), 77
5477 See \`config.log' for more details." >&2;}
5478 { (exit 1); exit 1; }; } ;;
5481 if test "$cross_compiling" = yes; then
5482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot run test program while cross compiling
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5488 cat >conftest.
$ac_ext <<_ACEOF
5491 cat confdefs.h
>>conftest.
$ac_ext
5492 cat >>conftest.
$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494 $ac_includes_default
5495 long longval () { return (long) (sizeof (long long)); }
5496 unsigned long ulongval () { return (long) (sizeof (long long)); }
5503 FILE *f = fopen ("conftest.val", "w");
5506 if (((long) (sizeof (long long))) < 0)
5508 long i = longval ();
5509 if (i != ((long) (sizeof (long long))))
5511 fprintf (f, "%ld\n", i);
5515 unsigned long i = ulongval ();
5516 if (i != ((long) (sizeof (long long))))
5518 fprintf (f, "%lu\n", i);
5520 exit (ferror (f) || fclose (f) != 0);
5526 rm -f conftest
$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; }; then
5537 ac_cv_sizeof_long_long
=`cat conftest.val`
5539 echo "$as_me: program exited with status $ac_status" >&5
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.
$ac_ext >&5
5544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5545 See \`config.log' for more details." >&5
5546 echo "$as_me: error: cannot compute sizeof (long long), 77
5547 See \`config.log' for more details." >&2;}
5548 { (exit 1); exit 1; }; }
5550 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5555 ac_cv_sizeof_long_long
=0
5558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5559 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5560 cat >>confdefs.h
<<_ACEOF
5561 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5567 echo "$as_me:$LINENO: checking for __int64" >&5
5568 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5569 if test "${ac_cv_type___int64+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 cat >conftest.
$ac_ext <<_ACEOF
5575 cat confdefs.h
>>conftest.
$ac_ext
5576 cat >>conftest.
$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 $ac_includes_default
5584 if (sizeof (__int64))
5590 rm -f conftest.
$ac_objext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5592 (eval $ac_compile) 2>conftest.er1
5594 grep -v '^ *+' conftest.er1
>conftest.err
5596 cat conftest.err
>&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try
='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try
='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_type___int64
=yes
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.
$ac_ext >&5
5617 ac_cv_type___int64
=no
5619 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5621 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5622 echo "${ECHO_T}$ac_cv_type___int64" >&6
5623 if test $ac_cv_type___int64 = yes; then
5625 cat >>confdefs.h
<<_ACEOF
5626 #define HAVE___INT64 1
5629 echo "$as_me:$LINENO: checking for __int64" >&5
5630 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5631 if test "${ac_cv_type___int64+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.
$ac_ext <<_ACEOF
5637 cat confdefs.h
>>conftest.
$ac_ext
5638 cat >>conftest.
$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5646 if (sizeof (__int64))
5652 rm -f conftest.
$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654 (eval $ac_compile) 2>conftest.er1
5656 grep -v '^ *+' conftest.er1
>conftest.err
5658 cat conftest.err
>&5
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try
='test -z "$ac_c_werror_flag"
5662 || test ! -s conftest.err'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try
='test -s conftest.$ac_objext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 ac_cv_type___int64
=yes
5676 echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.
$ac_ext >&5
5679 ac_cv_type___int64
=no
5681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5684 echo "${ECHO_T}$ac_cv_type___int64" >&6
5686 echo "$as_me:$LINENO: checking size of __int64" >&5
5687 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5688 if test "${ac_cv_sizeof___int64+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 if test "$ac_cv_type___int64" = yes; then
5692 # The cast to unsigned long works around a bug in the HP C Compiler
5693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5695 # This bug is HP SR number 8606223364.
5696 if test "$cross_compiling" = yes; then
5697 # Depending upon the size, compute the lo and hi bounds.
5698 cat >conftest.
$ac_ext <<_ACEOF
5701 cat confdefs.h
>>conftest.
$ac_ext
5702 cat >>conftest.
$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 $ac_includes_default
5708 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5715 rm -f conftest.
$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
5719 grep -v '^ *+' conftest.er1
>conftest.err
5721 cat conftest.err
>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
5724 { ac_try
='test -z "$ac_c_werror_flag"
5725 || test ! -s conftest.err'
5726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; } &&
5731 { ac_try
='test -s conftest.$ac_objext'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; }; then
5739 cat >conftest.
$ac_ext <<_ACEOF
5742 cat confdefs.h
>>conftest.
$ac_ext
5743 cat >>conftest.
$ac_ext <<_ACEOF
5744 /* end confdefs.h. */
5745 $ac_includes_default
5749 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5756 rm -f conftest.
$ac_objext
5757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>conftest.er1
5760 grep -v '^ *+' conftest.er1
>conftest.err
5762 cat conftest.err
>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } &&
5765 { ac_try
='test -z "$ac_c_werror_flag"
5766 || test ! -s conftest.err'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try
='test -s conftest.$ac_objext'
5773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }; }; then
5778 ac_hi
=$ac_mid; break
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.
$ac_ext >&5
5783 ac_lo
=`expr $ac_mid + 1`
5784 if test $ac_lo -le $ac_mid; then
5788 ac_mid
=`expr 2 '*' $ac_mid + 1`
5790 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.
$ac_ext >&5
5796 cat >conftest.
$ac_ext <<_ACEOF
5799 cat confdefs.h
>>conftest.
$ac_ext
5800 cat >>conftest.
$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 $ac_includes_default
5806 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5813 rm -f conftest.
$ac_objext
5814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815 (eval $ac_compile) 2>conftest.er1
5817 grep -v '^ *+' conftest.er1
>conftest.err
5819 cat conftest.err
>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5822 { ac_try
='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try
='test -s conftest.$ac_objext'
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5847 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5854 rm -f conftest.
$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5858 grep -v '^ *+' conftest.er1
>conftest.err
5860 cat conftest.err
>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try
='test -z "$ac_c_werror_flag"
5864 || test ! -s conftest.err'
5865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try
='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_lo
=$ac_mid; break
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.
$ac_ext >&5
5881 ac_hi
=`expr '(' $ac_mid ')' - 1`
5882 if test $ac_mid -le $ac_hi; then
5886 ac_mid
=`expr 2 '*' $ac_mid`
5888 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.
$ac_ext >&5
5896 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5899 # Binary search between lo and hi bounds.
5900 while test "x$ac_lo" != "x$ac_hi"; do
5901 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902 cat >conftest.
$ac_ext <<_ACEOF
5905 cat confdefs.h
>>conftest.
$ac_ext
5906 cat >>conftest.
$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5912 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5919 rm -f conftest.
$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5923 grep -v '^ *+' conftest.er1
>conftest.err
5925 cat conftest.err
>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try
='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try
='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.
$ac_ext >&5
5946 ac_lo
=`expr '(' $ac_mid ')' + 1`
5948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5952 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5953 See \`config.log' for more details." >&5
5954 echo "$as_me: error: cannot compute sizeof (__int64), 77
5955 See \`config.log' for more details." >&2;}
5956 { (exit 1); exit 1; }; } ;;
5959 if test "$cross_compiling" = yes; then
5960 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot run test program while cross compiling
5963 See \`config.log' for more details." >&2;}
5964 { (exit 1); exit 1; }; }
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973 long longval () { return (long) (sizeof (__int64)); }
5974 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5981 FILE *f = fopen ("conftest.val", "w");
5984 if (((long) (sizeof (__int64))) < 0)
5986 long i = longval ();
5987 if (i != ((long) (sizeof (__int64))))
5989 fprintf (f, "%ld\n", i);
5993 unsigned long i = ulongval ();
5994 if (i != ((long) (sizeof (__int64))))
5996 fprintf (f, "%lu\n", i);
5998 exit (ferror (f) || fclose (f) != 0);
6004 rm -f conftest
$ac_exeext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 (eval $ac_link) 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; }; then
6015 ac_cv_sizeof___int64
=`cat conftest.val`
6017 echo "$as_me: program exited with status $ac_status" >&5
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.
$ac_ext >&5
6022 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6023 See \`config.log' for more details." >&5
6024 echo "$as_me: error: cannot compute sizeof (__int64), 77
6025 See \`config.log' for more details." >&2;}
6026 { (exit 1); exit 1; }; }
6028 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6033 ac_cv_sizeof___int64
=0
6036 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6037 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6038 cat >>confdefs.h
<<_ACEOF
6039 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6046 # ---------------------
6047 # Warnings and checking
6048 # ---------------------
6050 # Check $CC warning features (if it's GCC).
6051 # We want to use -pedantic, but we don't want warnings about
6054 # So, we only use -pedantic if we can disable those warnings.
6056 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6057 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6058 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 save_CFLAGS
="$CFLAGS"
6062 CFLAGS
="-Wno-long-long"
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"
6081 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } &&
6087 { ac_try
='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_cv_prog_cc_w_no_long_long
=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.
$ac_ext >&5
6098 ac_cv_prog_cc_w_no_long_long
=no
6100 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6101 CFLAGS
="$save_CFLAGS"
6104 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6105 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6107 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6108 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6109 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 save_CFLAGS
="$CFLAGS"
6113 CFLAGS
="-Wno-variadic-macros"
6114 cat >conftest.
$ac_ext <<_ACEOF
6117 cat confdefs.h
>>conftest.
$ac_ext
6118 cat >>conftest.
$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6122 rm -f conftest.
$ac_objext
6123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6124 (eval $ac_compile) 2>conftest.er1
6126 grep -v '^ *+' conftest.er1
>conftest.err
6128 cat conftest.err
>&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try
='test -z "$ac_c_werror_flag"
6132 || test ! -s conftest.err'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; } &&
6138 { ac_try
='test -s conftest.$ac_objext'
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
6144 ac_cv_prog_cc_w_no_variadic_macros
=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.
$ac_ext >&5
6149 ac_cv_prog_cc_w_no_variadic_macros
=no
6151 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6152 CFLAGS
="$save_CFLAGS"
6155 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6156 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6159 if test $ac_cv_prog_cc_w_no_long_long = yes \
6160 && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6161 strict1_warn
="-pedantic -Wno-long-long -Wno-variadic-macros"
6165 # Add -Wold-style-definition if it's accepted
6166 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6167 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6168 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 save_CFLAGS
="$CFLAGS"
6172 CFLAGS
="-Wold-style-definition"
6173 cat >conftest.
$ac_ext <<_ACEOF
6176 cat confdefs.h
>>conftest.
$ac_ext
6177 cat >>conftest.
$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6181 rm -f conftest.
$ac_objext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183 (eval $ac_compile) 2>conftest.er1
6185 grep -v '^ *+' conftest.er1
>conftest.err
6187 cat conftest.err
>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try
='test -z "$ac_c_werror_flag"
6191 || test ! -s conftest.err'
6192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; } &&
6197 { ac_try
='test -s conftest.$ac_objext'
6198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 ac_cv_prog_cc_w_old_style_definition
=yes
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.
$ac_ext >&5
6208 ac_cv_prog_cc_w_old_style_definition
=no
6210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6211 CFLAGS
="$save_CFLAGS"
6214 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6215 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6216 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6217 strict1_warn
="${strict1_warn} -Wold-style-definition"
6220 # Enable -Werror, period.
6221 # Check whether --enable-werror_always or --disable-werror_always was given.
6222 if test "${enable_werror_always+set}" = set; then
6223 enableval
="$enable_werror_always"
6226 enable_werror_always
=no
6228 if test x
${enable_werror_always} = xyes
; then
6229 strict1_warn
="${strict1_warn} -Werror"
6233 # If the native compiler is GCC, we can enable warnings even in stage1.
6234 # That's useful for people building cross-compilers, or just running a
6237 if test "x$GCC" = "xyes"; then
6238 warn_cflags
='$(GCC_WARN_CFLAGS)'
6242 # Enable -Werror in bootstrap stage2 and later.
6244 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6247 # Check whether --enable-werror or --disable-werror was given.
6248 if test "${enable_werror+set}" = set; then
6249 enableval
="$enable_werror"
6252 if test x
$is_release = x
; then
6253 # Default to "yes" on development branches.
6256 # Default to "no" on release branches.
6260 if test x
$enable_werror = xyes
; then
6265 # Enable expensive internal checks
6266 # Check whether --enable-checking or --disable-checking was given.
6267 if test "${enable_checking+set}" = set; then
6268 enableval
="$enable_checking"
6269 ac_checking_flags
="${enableval}"
6272 # Determine the default checks.
6273 if test x
$is_release = x
; then
6274 ac_checking_flags
=yes
6276 ac_checking_flags
=release
6279 ac_assert_checking
=1
6283 ac_gc_always_collect
=
6285 ac_rtlflag_checking
=
6286 ac_runtime_checking
=1
6288 ac_valgrind_checking
=
6289 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6290 for check
in $ac_checking_flags
6293 # these set all the flags to specific states
6294 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6295 ac_fold_checking
= ; ac_gc_checking
=1 ;
6296 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6297 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6298 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6299 no|none
) ac_assert_checking
= ; ac_checking
= ;
6300 ac_fold_checking
= ; ac_gc_checking
= ;
6301 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6302 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6303 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6304 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6305 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6306 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6307 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6308 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6309 release
) ac_assert_checking
=1 ; ac_checking
= ;
6310 ac_fold_checking
= ; ac_gc_checking
= ;
6311 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6312 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6313 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6314 # these enable particular checks
6315 assert
) ac_assert_checking
=1 ;;
6316 fold) ac_fold_checking
=1 ;;
6317 gc
) ac_gc_checking
=1 ;;
6318 gcac
) ac_gc_always_collect
=1 ;;
6319 misc
) ac_checking
=1 ;;
6320 rtl
) ac_rtl_checking
=1 ;;
6321 rtlflag
) ac_rtlflag_checking
=1 ;;
6322 runtime
) ac_runtime_checking
=1 ;;
6323 tree
) ac_tree_checking
=1 ;;
6324 valgrind
) ac_valgrind_checking
=1 ;;
6325 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6326 echo "$as_me: error: unknown check category $check" >&2;}
6327 { (exit 1); exit 1; }; } ;;
6333 if test x
$ac_checking != x
; then
6335 cat >>confdefs.h
<<\_ACEOF
6336 #define ENABLE_CHECKING 1
6339 nocommon_flag
=-fno-common
6342 if test x
$ac_assert_checking != x
; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define ENABLE_ASSERT_CHECKING 1
6350 if test x
$ac_runtime_checking != x
; then
6352 cat >>confdefs.h
<<\_ACEOF
6353 #define ENABLE_RUNTIME_CHECKING 1
6357 if test x
$ac_tree_checking != x
; then
6359 cat >>confdefs.h
<<\_ACEOF
6360 #define ENABLE_TREE_CHECKING 1
6363 TREEBROWSER
=tree-browser.o
6366 if test x
$ac_rtl_checking != x
; then
6368 cat >>confdefs.h
<<\_ACEOF
6369 #define ENABLE_RTL_CHECKING 1
6373 if test x
$ac_rtlflag_checking != x
; then
6375 cat >>confdefs.h
<<\_ACEOF
6376 #define ENABLE_RTL_FLAG_CHECKING 1
6380 if test x
$ac_gc_checking != x
; then
6382 cat >>confdefs.h
<<\_ACEOF
6383 #define ENABLE_GC_CHECKING 1
6387 if test x
$ac_gc_always_collect != x
; then
6389 cat >>confdefs.h
<<\_ACEOF
6390 #define ENABLE_GC_ALWAYS_COLLECT 1
6394 if test x
$ac_fold_checking != x
; then
6396 cat >>confdefs.h
<<\_ACEOF
6397 #define ENABLE_FOLD_CHECKING 1
6401 valgrind_path_defines
=
6404 if test "${ac_cv_header_valgrind_h+set}" = set; then
6405 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6406 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6407 if test "${ac_cv_header_valgrind_h+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6411 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6413 # Is the header compilable?
6414 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6415 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6416 cat >conftest.
$ac_ext <<_ACEOF
6419 cat confdefs.h
>>conftest.
$ac_ext
6420 cat >>conftest.
$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6423 #include <valgrind.h>
6425 rm -f conftest.
$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>conftest.er1
6429 grep -v '^ *+' conftest.er1
>conftest.err
6431 cat conftest.err
>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try
='test -z "$ac_c_werror_flag"
6435 || test ! -s conftest.err'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; } &&
6441 { ac_try
='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_header_compiler
=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.
$ac_ext >&5
6452 ac_header_compiler
=no
6454 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6460 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <valgrind.h>
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1
>conftest.err
6474 cat conftest.err
>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev
/null
; then
6477 if test -s conftest.err
; then
6478 ac_cpp_err
=$ac_c_preproc_warn_flag
6479 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6486 if test -z "$ac_cpp_err"; then
6487 ac_header_preproc
=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.
$ac_ext >&5
6492 ac_header_preproc
=no
6494 rm -f conftest.err conftest.
$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6498 # So? What about this header?
6499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6504 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6505 ac_header_preproc
=yes
6508 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6509 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6511 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6512 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6513 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6515 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6517 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6519 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6522 ## ------------------------------------------ ##
6523 ## Report this to the AC_PACKAGE_NAME lists. ##
6524 ## ------------------------------------------ ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6531 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6532 if test "${ac_cv_header_valgrind_h+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_cv_header_valgrind_h
=$ac_header_preproc
6537 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6538 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6541 if test $ac_cv_header_valgrind_h = yes; then
6549 if test x
$ac_valgrind_checking != x
; then
6550 # It is certainly possible that there's valgrind but no valgrind.h.
6551 # GCC relies on making annotations so we must have both.
6552 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6553 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6554 cat >conftest.
$ac_ext <<_ACEOF
6557 cat confdefs.h
>>conftest.
$ac_ext
6558 cat >>conftest.
$ac_ext <<_ACEOF
6559 /* end confdefs.h. */
6560 #include <valgrind/memcheck.h>
6561 #ifndef VALGRIND_DISCARD
6562 #error VALGRIND_DISCARD not defined
6565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1
>conftest.err
6570 cat conftest.err
>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } >/dev
/null
; then
6573 if test -s conftest.err
; then
6574 ac_cpp_err
=$ac_c_preproc_warn_flag
6575 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6582 if test -z "$ac_cpp_err"; then
6583 gcc_cv_header_valgrind_memcheck_h
=yes
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.
$ac_ext >&5
6588 gcc_cv_header_valgrind_memcheck_h
=no
6590 rm -f conftest.err conftest.
$ac_ext
6591 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6592 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6593 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6594 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6595 cat >conftest.
$ac_ext <<_ACEOF
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <memcheck.h>
6602 #ifndef VALGRIND_DISCARD
6603 #error VALGRIND_DISCARD not defined
6606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6609 grep -v '^ *+' conftest.er1
>conftest.err
6611 cat conftest.err
>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev
/null
; then
6614 if test -s conftest.err
; then
6615 ac_cpp_err
=$ac_c_preproc_warn_flag
6616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6623 if test -z "$ac_cpp_err"; then
6624 gcc_cv_header_memcheck_h
=yes
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.
$ac_ext >&5
6629 gcc_cv_header_memcheck_h
=no
6631 rm -f conftest.err conftest.
$ac_ext
6632 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6633 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6635 # Prepare PATH_SEPARATOR.
6636 # The user is always right.
6637 if test "${PATH_SEPARATOR+set}" != set; then
6638 echo "#! /bin/sh" >conf$$.sh
6639 echo "exit 0" >>conf$$.sh
6641 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6649 # Find out how to test for executable files. Don't use a zero-byte file,
6650 # as systems may use methods other than mode bits to determine executability.
6651 cat >conf$$.
file <<_ASEOF
6655 chmod +x conf$$.
file
6656 if test -x conf$$.
file >/dev
/null
2>&1; then
6657 ac_executable_p
="test -x"
6659 ac_executable_p
="test -f"
6663 # Extract the first word of "valgrind", so it can be a program name with args.
6664 set dummy valgrind
; ac_word
=$2
6665 echo "$as_me:$LINENO: checking for $ac_word" >&5
6666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6667 if test "${ac_cv_path_valgrind_path+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 case "$valgrind_path" in
6672 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6675 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6676 for ac_dir
in $PATH; do
6678 test -z "$ac_dir" && ac_dir
=.
6679 for ac_exec_ext
in '' $ac_executable_extensions; do
6680 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6681 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6682 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6692 valgrind_path
="$ac_cv_path_valgrind_path"
6693 if test -n "$valgrind_path"; then
6694 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6695 echo "${ECHO_T}$valgrind_path" >&6
6697 echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6
6701 if test "x$valgrind_path" = "x" \
6702 ||
(test $have_valgrind_h = no \
6703 && test $gcc_cv_header_memcheck_h = no \
6704 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6705 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6706 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6707 { (exit 1); exit 1; }; }
6709 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6710 valgrind_command
="$valgrind_path -q"
6712 cat >>confdefs.h
<<\_ACEOF
6713 #define ENABLE_VALGRIND_CHECKING 1
6716 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6718 cat >>confdefs.h
<<\_ACEOF
6719 #define HAVE_VALGRIND_MEMCHECK_H 1
6723 if test $gcc_cv_header_memcheck_h = yes; then
6725 cat >>confdefs.h
<<\_ACEOF
6726 #define HAVE_MEMCHECK_H 1
6734 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6735 if test "${enable_mapped_location+set}" = set; then
6736 enableval
="$enable_mapped_location"
6739 enable_mapped_location
=no
6742 if test "$enable_mapped_location" = yes ; then
6744 cat >>confdefs.h
<<\_ACEOF
6745 #define USE_MAPPED_LOCATION 1
6750 # Enable code coverage collection
6751 # Check whether --enable-coverage or --disable-coverage was given.
6752 if test "${enable_coverage+set}" = set; then
6753 enableval
="$enable_coverage"
6754 case "${enableval}" in
6756 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6759 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6762 # a.k.a. --disable-coverage
6766 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6767 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6768 { (exit 1); exit 1; }; }
6776 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6777 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6778 enableval
="$enable_gather_detailed_mem_stats"
6781 enable_gather_detailed_mem_stats
=no
6783 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6785 cat >>confdefs.h
<<\_ACEOF
6786 #define GATHER_STATISTICS 1
6791 # -------------------------------
6792 # Miscenalleous configure options
6793 # -------------------------------
6797 # Check whether --with-stabs or --without-stabs was given.
6798 if test "${with_stabs+set}" = set; then
6799 withval
="$with_stabs"
6805 # Determine whether or not multilibs are enabled.
6806 # Check whether --enable-multilib or --disable-multilib was given.
6807 if test "${enable_multilib+set}" = set; then
6808 enableval
="$enable_multilib"
6815 # Enable __cxa_atexit for C++.
6816 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6817 if test "${enable___cxa_atexit+set}" = set; then
6818 enableval
="$enable___cxa_atexit"
6823 # Pass with no value to take the default
6824 # Pass with a value to specify a thread package
6825 # Check whether --enable-threads or --disable-threads was given.
6826 if test "${enable_threads+set}" = set; then
6827 enableval
="$enable_threads"
6833 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6834 if test "${enable_objc_gc+set}" = set; then
6835 enableval
="$enable_objc_gc"
6836 if test x
$enable_objc_gc = xno
; then
6846 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6847 if test "${with_dwarf2+set}" = set; then
6848 withval
="$with_dwarf2"
6849 dwarf2
="$with_dwarf2"
6854 # Check whether --enable-shared or --disable-shared was given.
6855 if test "${enable_shared+set}" = set; then
6856 enableval
="$enable_shared"
6858 case $enable_shared in
6862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6863 for pkg
in $enableval; do
6864 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6878 # Check whether --with-sysroot or --without-sysroot was given.
6879 if test "${with_sysroot+set}" = set; then
6880 withval
="$with_sysroot"
6882 case ${with_sysroot} in
6883 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6884 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6887 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6888 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6890 if test "x$exec_prefix" = xNONE
; then
6891 if test "x$prefix" = xNONE
; then
6892 test_prefix
=/usr
/local
6897 test_prefix
=$exec_prefix
6899 case ${TARGET_SYSTEM_ROOT} in
6900 "${test_prefix}"|
"${test_prefix}/"*|\
6901 '${exec_prefix}'|
'${exec_prefix}/'*)
6902 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6903 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6910 TARGET_SYSTEM_ROOT_DEFINE
=
6911 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6918 # Build with intermodule optimisations
6919 # Check whether --enable-intermodule or --disable-intermodule was given.
6920 if test "${enable_intermodule+set}" = set; then
6921 enableval
="$enable_intermodule"
6922 case ${enable_intermodule} in
6923 yes) onestep
="-onestep";;
6931 # Sanity check enable_languages in case someone does not run the toplevel
6932 # configure # script.
6933 # Check whether --enable-languages or --disable-languages was given.
6934 if test "${enable_languages+set}" = set; then
6935 enableval
="$enable_languages"
6936 case ,${enable_languages}, in
6938 # go safe -- we cannot be much sure without the toplevel
6940 # analysis of which target libs are present and usable
6944 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
6945 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
6946 { (exit 1); exit 1; }; }
6951 enable_languages
=c
,${enable_languages}
6959 for lang
in ${srcdir}/*/config-lang.
in
6962 # The odd quoting in the next line works around
6963 # an apparent bug in bash 1.12 on linux.
6964 ${srcdir}/[*]/config-lang.
in) ;;
6966 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
6967 if test "x$lang_alias" = x
6969 echo "$lang doesn't set \$language." 1>&2
6972 case ",$enable_languages," in
6974 subdirs
="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
6981 # -------------------------
6982 # Checks for other programs
6983 # -------------------------
6985 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6986 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6987 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
6988 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.
make <<\_ACEOF
6993 @
echo 'ac_maketemp="$(MAKE)"'
6995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6996 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6997 if test -n "$ac_maketemp"; then
6998 eval ac_cv_prog_make_
${ac_make}_set
=yes
7000 eval ac_cv_prog_make_
${ac_make}_set
=no
7004 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7005 echo "$as_me:$LINENO: result: yes" >&5
7006 echo "${ECHO_T}yes" >&6
7009 echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6
7011 SET_MAKE
="MAKE=${MAKE-make}"
7015 # Find some useful tools
7016 for ac_prog
in gawk mawk nawk
awk
7018 # Extract the first word of "$ac_prog", so it can be a program name with args.
7019 set dummy
$ac_prog; ac_word
=$2
7020 echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022 if test "${ac_cv_prog_AWK+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 if test -n "$AWK"; then
7026 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7032 test -z "$as_dir" && as_dir
=.
7033 for ac_exec_ext
in '' $ac_executable_extensions; do
7034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_AWK
="$ac_prog"
7036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 if test -n "$AWK"; then
7046 echo "$as_me:$LINENO: result: $AWK" >&5
7047 echo "${ECHO_T}$AWK" >&6
7049 echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6
7053 test -n "$AWK" && break
7056 # We need awk to create options.c and options.h.
7057 # Bail out if it's missing.
7059 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7060 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7061 { (exit 1); exit 1; }; } ;;
7064 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7065 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7066 if test "${gcc_cv_prog_LN_S+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 rm -f conftestdata_t
7070 echo >conftestdata_f
7071 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7073 gcc_cv_prog_LN_S
="ln -s"
7075 if ln conftestdata_f conftestdata_t
2>/dev
/null
7079 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7081 gcc_cv_prog_LN_S
="cp -p"
7087 rm -f conftestdata_f conftestdata_t
7090 LN_S
="$gcc_cv_prog_LN_S"
7091 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7092 echo "$as_me:$LINENO: result: yes" >&5
7093 echo "${ECHO_T}yes" >&6
7095 if test "$gcc_cv_prog_LN_S" = "ln"; then
7096 echo "$as_me:$LINENO: result: no, using ln" >&5
7097 echo "${ECHO_T}no, using ln" >&6
7099 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7100 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7104 echo "$as_me:$LINENO: checking whether ln works" >&5
7105 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7106 if test "${acx_cv_prog_LN+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 rm -f conftestdata_t
7110 echo >conftestdata_f
7111 if ln conftestdata_f conftestdata_t
2>/dev
/null
7117 rm -f conftestdata_f conftestdata_t
7120 if test $acx_cv_prog_LN = no
; then
7122 echo "$as_me:$LINENO: result: no, using $LN" >&5
7123 echo "${ECHO_T}no, using $LN" >&6
7125 LN
="$acx_cv_prog_LN"
7126 echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7132 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7133 echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7135 if test "${ac_cv_prog_RANLIB+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 if test -n "$RANLIB"; then
7139 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7145 test -z "$as_dir" && as_dir
=.
7146 for ac_exec_ext
in '' $ac_executable_extensions; do
7147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 RANLIB
=$ac_cv_prog_RANLIB
7158 if test -n "$RANLIB"; then
7159 echo "$as_me:$LINENO: result: $RANLIB" >&5
7160 echo "${ECHO_T}$RANLIB" >&6
7162 echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7167 if test -z "$ac_cv_prog_RANLIB"; then
7168 ac_ct_RANLIB
=$RANLIB
7169 # Extract the first word of "ranlib", so it can be a program name with args.
7170 set dummy ranlib
; ac_word
=$2
7171 echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7173 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7176 if test -n "$ac_ct_RANLIB"; then
7177 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7179 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7183 test -z "$as_dir" && as_dir
=.
7184 for ac_exec_ext
in '' $ac_executable_extensions; do
7185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7196 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7197 if test -n "$ac_ct_RANLIB"; then
7198 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7199 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7201 echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7205 RANLIB
=$ac_ct_RANLIB
7207 RANLIB
="$ac_cv_prog_RANLIB"
7212 # By default, the Darwin ranlib will not treat common symbols as
7213 # definitions when building the archive table of contents. Other
7214 # ranlibs do that; pass an option to the Darwin ranlib that makes
7215 # it behave similarly.
7223 # Find a good install program. We prefer a C program (faster),
7224 # so one script is as good as another. But avoid the broken or
7225 # incompatible versions:
7226 # SysV /etc/install, /usr/sbin/install
7227 # SunOS /usr/etc/install
7228 # IRIX /sbin/install
7230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7232 # ./install, which can be erroneously created by make from ./install.sh.
7233 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7234 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7235 if test -z "$INSTALL"; then
7236 if test "${ac_cv_path_install+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7240 for ac_dir
in $PATH; do
7241 # Account for people who put trailing slashes in PATH elements.
7243 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7245 # OSF1 and SCO ODT 3.0 have their own names for install.
7246 for ac_prog
in ginstall scoinst
install; do
7247 if test -f $ac_dir/$ac_prog; then
7248 if test $ac_prog = install &&
7249 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7250 # AIX install. It has an incompatible calling convention.
7251 # OSF/1 installbsd also uses dspmsg, but is usable.
7254 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7265 if test "${ac_cv_path_install+set}" = set; then
7266 INSTALL
="$ac_cv_path_install"
7268 # As a last resort, use the slow shell script. We don't cache a
7269 # path for INSTALL within a source directory, because that will
7270 # break other packages using the cache if that directory is
7271 # removed, or if the path is relative.
7272 INSTALL
="$ac_install_sh"
7275 echo "$as_me:$LINENO: result: $INSTALL" >&5
7276 echo "${ECHO_T}$INSTALL" >&6
7278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7279 # It thinks the first close brace ends the variable substitution.
7280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7282 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7285 # See if cmp has --ignore-initial.
7286 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7287 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7288 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 gcc_cv_prog_cmp_skip
=slowcompare
7294 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7295 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7298 gcc_cv_prog_cmp_skip
=gnucompare
7301 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7302 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7303 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7306 gcc_cv_prog_cmp_skip
=fastcompare
7313 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7314 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7315 make_compare_target
=$gcc_cv_prog_cmp_skip
7319 # See if we have the mktemp command.
7320 # Extract the first word of "mktemp", so it can be a program name with args.
7321 set dummy mktemp
; ac_word
=$2
7322 echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7324 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 if test -n "$have_mktemp_command"; then
7328 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir
=.
7335 for ac_exec_ext
in '' $ac_executable_extensions; do
7336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_have_mktemp_command
="yes"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7347 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7348 if test -n "$have_mktemp_command"; then
7349 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7350 echo "${ECHO_T}$have_mktemp_command" >&6
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7357 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7359 # See if makeinfo has been installed and is modern enough
7360 # that we can use it.
7361 # Extract the first word of "makeinfo", so it can be a program name with args.
7362 set dummy makeinfo
; ac_word
=$2
7363 echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7365 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 if test -n "$MAKEINFO"; then
7369 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir
=.
7376 for ac_exec_ext
in '' $ac_executable_extensions; do
7377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_MAKEINFO
="makeinfo"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 MAKEINFO
=$ac_cv_prog_MAKEINFO
7388 if test -n "$MAKEINFO"; then
7389 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7390 echo "${ECHO_T}$MAKEINFO" >&6
7392 echo "$as_me:$LINENO: result: no" >&5
7393 echo "${ECHO_T}no" >&6
7396 if test -n "$MAKEINFO"; then
7397 # Found it, now check the version.
7398 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7399 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7400 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7404 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7405 echo "configure:7405: version of makeinfo is $ac_prog_version" >&5
7406 case $ac_prog_version in
7407 '') gcc_cv_prog_makeinfo_modern
=no
;;
7409 gcc_cv_prog_makeinfo_modern
=yes;;
7410 *) gcc_cv_prog_makeinfo_modern
=no
;;
7414 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7415 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7417 gcc_cv_prog_makeinfo_modern
=no
7420 if test $gcc_cv_prog_makeinfo_modern = no
; then
7421 MAKEINFO
="$MISSING makeinfo"
7422 { echo "$as_me:$LINENO: WARNING:
7423 *** Makeinfo is missing or too old.
7424 *** Info documentation will not be built." >&5
7425 echo "$as_me: WARNING:
7426 *** Makeinfo is missing or too old.
7427 *** Info documentation will not be built." >&2;}
7434 # Is pod2man recent enough to regenerate manpages?
7435 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7436 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7437 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7438 echo "$as_me:$LINENO: result: yes" >&5
7439 echo "${ECHO_T}yes" >&6
7440 GENERATED_MANPAGES
=generated-manpages
7442 echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy
$ac_prog; ac_word
=$2
7453 echo "$as_me:$LINENO: checking for $ac_word" >&5
7454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7455 if test "${ac_cv_prog_FLEX+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7458 if test -n "$FLEX"; then
7459 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir
=.
7466 for ac_exec_ext
in '' $ac_executable_extensions; do
7467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7468 ac_cv_prog_FLEX
="$ac_prog"
7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 FLEX
=$ac_cv_prog_FLEX
7478 if test -n "$FLEX"; then
7479 echo "$as_me:$LINENO: result: $FLEX" >&5
7480 echo "${ECHO_T}$FLEX" >&6
7482 echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7486 test -n "$FLEX" && break
7488 test -n "$FLEX" || FLEX
="$MISSING flex"
7492 for ac_prog
in bison
7494 # Extract the first word of "$ac_prog", so it can be a program name with args.
7495 set dummy
$ac_prog; ac_word
=$2
7496 echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498 if test "${ac_cv_prog_BISON+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 if test -n "$BISON"; then
7502 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7508 test -z "$as_dir" && as_dir
=.
7509 for ac_exec_ext
in '' $ac_executable_extensions; do
7510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_BISON
="$ac_prog"
7512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 BISON
=$ac_cv_prog_BISON
7521 if test -n "$BISON"; then
7522 echo "$as_me:$LINENO: result: $BISON" >&5
7523 echo "${ECHO_T}$BISON" >&6
7525 echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6
7529 test -n "$BISON" && break
7531 test -n "$BISON" || BISON
="$MISSING bison"
7534 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7535 # check for build == host before using them.
7538 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7539 && test -d ..
/binutils
; then
7540 NM
='$(objdir)/../binutils/nm-new'
7542 # Extract the first word of "nm", so it can be a program name with args.
7543 set dummy nm
; ac_word
=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_NM+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 if test -n "$NM"; then
7550 ac_cv_prog_NM
="$NM" # Let the user override the test.
7552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir
=.
7557 for ac_exec_ext
in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7570 if test -n "$NM"; then
7571 echo "$as_me:$LINENO: result: $NM" >&5
7572 echo "${ECHO_T}$NM" >&6
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7581 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7582 && test -d ..
/binutils
; then
7583 AR
='$(objdir)/../binutils/ar'
7585 # Extract the first word of "ar", so it can be a program name with args.
7586 set dummy
ar; ac_word
=$2
7587 echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7589 if test "${ac_cv_prog_AR+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 if test -n "$AR"; then
7593 ac_cv_prog_AR
="$AR" # Let the user override the test.
7595 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir
=.
7600 for ac_exec_ext
in '' $ac_executable_extensions; do
7601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7613 if test -n "$AR"; then
7614 echo "$as_me:$LINENO: result: $AR" >&5
7615 echo "${ECHO_T}$AR" >&6
7617 echo "$as_me:$LINENO: result: no" >&5
7618 echo "${ECHO_T}no" >&6
7624 # --------------------
7625 # Checks for C headers
7626 # --------------------
7628 echo "$as_me:$LINENO: checking for GNU C library" >&5
7629 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7630 if test "${gcc_cv_glibc+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 cat >conftest.
$ac_ext <<_ACEOF
7636 cat confdefs.h
>>conftest.
$ac_ext
7637 cat >>conftest.
$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 #include <features.h>
7644 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7645 #error Not a GNU C library system
7651 rm -f conftest.
$ac_objext
7652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7653 (eval $ac_compile) 2>conftest.er1
7655 grep -v '^ *+' conftest.er1
>conftest.err
7657 cat conftest.err
>&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } &&
7660 { ac_try
='test -z "$ac_c_werror_flag"
7661 || test ! -s conftest.err'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; } &&
7667 { ac_try
='test -s conftest.$ac_objext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.
$ac_ext >&5
7680 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7683 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7684 echo "${ECHO_T}$gcc_cv_glibc" >&6
7685 if test $gcc_cv_glibc = yes; then
7687 cat >>confdefs.h
<<\_ACEOF
7688 #define _GNU_SOURCE 1
7693 # Need to reject headers which give warnings, so that the -Werror bootstrap
7694 # works later. *sigh* This needs to come before all header checks.
7696 ac_c_preproc_warn_flag
=yes
7698 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7699 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7700 if test "${ac_cv_header_stdc+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 cat >conftest.
$ac_ext <<_ACEOF
7706 cat confdefs.h
>>conftest.
$ac_ext
7707 cat >>conftest.
$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7722 rm -f conftest.
$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724 (eval $ac_compile) 2>conftest.er1
7726 grep -v '^ *+' conftest.er1
>conftest.err
7728 cat conftest.err
>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try
='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try
='test -s conftest.$ac_objext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 ac_cv_header_stdc
=yes
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.
$ac_ext >&5
7749 ac_cv_header_stdc
=no
7751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7753 if test $ac_cv_header_stdc = yes; then
7754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7755 cat >conftest.
$ac_ext <<_ACEOF
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765 $EGREP "memchr" >/dev
/null
2>&1; then
7768 ac_cv_header_stdc
=no
7774 if test $ac_cv_header_stdc = yes; then
7775 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7776 cat >conftest.
$ac_ext <<_ACEOF
7779 cat confdefs.h
>>conftest.
$ac_ext
7780 cat >>conftest.
$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7786 $EGREP "free" >/dev
/null
2>&1; then
7789 ac_cv_header_stdc
=no
7795 if test $ac_cv_header_stdc = yes; then
7796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7797 if test "$cross_compiling" = yes; then
7800 cat >conftest.
$ac_ext <<_ACEOF
7803 cat confdefs.h
>>conftest.
$ac_ext
7804 cat >>conftest.
$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7807 #if ((' ' & 0x0FF) == 0x020)
7808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7811 # define ISLOWER(c) \
7812 (('a' <= (c) && (c) <= 'i') \
7813 || ('j' <= (c) && (c) <= 'r') \
7814 || ('s' <= (c) && (c) <= 'z'))
7815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7823 for (i = 0; i < 256; i++)
7824 if (XOR (islower (i), ISLOWER (i))
7825 || toupper (i) != TOUPPER (i))
7830 rm -f conftest
$ac_exeext
7831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7832 (eval $ac_link) 2>&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7843 echo "$as_me: program exited with status $ac_status" >&5
7844 echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.
$ac_ext >&5
7848 ac_cv_header_stdc
=no
7850 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7855 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7856 if test $ac_cv_header_stdc = yes; then
7858 cat >>confdefs.h
<<\_ACEOF
7859 #define STDC_HEADERS 1
7864 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7865 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7866 if test "${ac_cv_header_time+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #include <sys/types.h>
7876 #include <sys/time.h>
7882 if ((struct tm *) 0)
7888 rm -f conftest.
$ac_objext
7889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7890 (eval $ac_compile) 2>conftest.er1
7892 grep -v '^ *+' conftest.er1
>conftest.err
7894 cat conftest.err
>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try
='test -z "$ac_c_werror_flag"
7898 || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
7904 { ac_try
='test -s conftest.$ac_objext'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 ac_cv_header_time
=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.
$ac_ext >&5
7915 ac_cv_header_time
=no
7917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7920 echo "${ECHO_T}$ac_cv_header_time" >&6
7921 if test $ac_cv_header_time = yes; then
7923 cat >>confdefs.h
<<\_ACEOF
7924 #define TIME_WITH_SYS_TIME 1
7929 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7930 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7931 if test "${gcc_cv_header_string+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.
$ac_ext <<_ACEOF
7937 cat confdefs.h
>>conftest.
$ac_ext
7938 cat >>conftest.
$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7941 #include <strings.h>
7950 rm -f conftest.
$ac_objext
7951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7952 (eval $ac_compile) 2>conftest.er1
7954 grep -v '^ *+' conftest.er1
>conftest.err
7956 cat conftest.err
>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try
='test -z "$ac_c_werror_flag"
7960 || test ! -s conftest.err'
7961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); }; } &&
7966 { ac_try
='test -s conftest.$ac_objext'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 gcc_cv_header_string
=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.
$ac_ext >&5
7977 gcc_cv_header_string
=no
7979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7982 echo "${ECHO_T}$gcc_cv_header_string" >&6
7983 if test $gcc_cv_header_string = yes; then
7985 cat >>confdefs.h
<<\_ACEOF
7986 #define STRING_WITH_STRINGS 1
7991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 cat >conftest.
$ac_ext <<_ACEOF
7999 cat confdefs.h
>>conftest.
$ac_ext
8000 cat >>conftest.
$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 #include <sys/types.h>
8003 #include <sys/wait.h>
8005 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8008 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8016 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8021 rm -f conftest.
$ac_objext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023 (eval $ac_compile) 2>conftest.er1
8025 grep -v '^ *+' conftest.er1
>conftest.err
8027 cat conftest.err
>&5
8028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } &&
8030 { ac_try
='test -z "$ac_c_werror_flag"
8031 || test ! -s conftest.err'
8032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; } &&
8037 { ac_try
='test -s conftest.$ac_objext'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; }; then
8043 ac_cv_header_sys_wait_h
=yes
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.
$ac_ext >&5
8048 ac_cv_header_sys_wait_h
=no
8050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8052 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8053 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8054 if test $ac_cv_header_sys_wait_h = yes; then
8056 cat >>confdefs.h
<<\_ACEOF
8057 #define HAVE_SYS_WAIT_H 1
8084 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8085 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8086 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8087 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8089 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <$ac_header>
8103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8106 grep -v '^ *+' conftest.er1
>conftest.err
8108 cat conftest.err
>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } >/dev
/null
; then
8111 if test -s conftest.err
; then
8112 ac_cpp_err
=$ac_c_preproc_warn_flag
8113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8120 if test -z "$ac_cpp_err"; then
8121 eval "$as_ac_Header=yes"
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.
$ac_ext >&5
8126 eval "$as_ac_Header=no"
8128 rm -f conftest.err conftest.
$ac_ext
8130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8133 cat >>confdefs.h
<<_ACEOF
8134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8141 # Check for thread headers.
8142 echo "$as_me:$LINENO: checking for thread.h" >&5
8143 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8144 if test "${ac_cv_header_thread_h+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8158 grep -v '^ *+' conftest.er1
>conftest.err
8160 cat conftest.err
>&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } >/dev
/null
; then
8163 if test -s conftest.err
; then
8164 ac_cpp_err
=$ac_c_preproc_warn_flag
8165 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8172 if test -z "$ac_cpp_err"; then
8173 ac_cv_header_thread_h
=yes
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.
$ac_ext >&5
8178 ac_cv_header_thread_h
=no
8180 rm -f conftest.err conftest.
$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8183 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8184 if test $ac_cv_header_thread_h = yes; then
8190 echo "$as_me:$LINENO: checking for pthread.h" >&5
8191 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8192 if test "${ac_cv_header_pthread_h+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8195 cat >conftest.
$ac_ext <<_ACEOF
8198 cat confdefs.h
>>conftest.
$ac_ext
8199 cat >>conftest.
$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 #include <pthread.h>
8203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8204 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8206 grep -v '^ *+' conftest.er1
>conftest.err
8208 cat conftest.err
>&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } >/dev
/null
; then
8211 if test -s conftest.err
; then
8212 ac_cpp_err
=$ac_c_preproc_warn_flag
8213 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8220 if test -z "$ac_cpp_err"; then
8221 ac_cv_header_pthread_h
=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 ac_cv_header_pthread_h
=no
8228 rm -f conftest.err conftest.
$ac_ext
8230 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8231 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8232 if test $ac_cv_header_pthread_h = yes; then
8239 # These tests can't be done till we know if we have limits.h.
8240 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8241 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8242 if test "${gcc_cv_decl_char_bit+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.
$ac_ext <<_ACEOF
8248 cat confdefs.h
>>conftest.
$ac_ext
8249 cat >>conftest.
$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 #ifdef HAVE_LIMITS_H
8258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8259 $EGREP "found" >/dev
/null
2>&1; then
8260 gcc_cv_decl_char_bit
=yes
8262 gcc_cv_decl_char_bit
=no
8268 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8269 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8270 if test $gcc_cv_decl_char_bit = no
; then
8271 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8272 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8273 if test "${gcc_cv_c_nbby+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 while test $i -lt 65; do
8279 cat >conftest.
$ac_ext <<_ACEOF
8282 cat confdefs.h
>>conftest.
$ac_ext
8283 cat >>conftest.
$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8290 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8291 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8297 rm -f conftest.
$ac_objext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8299 (eval $ac_compile) 2>conftest.er1
8301 grep -v '^ *+' conftest.er1
>conftest.err
8303 cat conftest.err
>&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try
='test -z "$ac_c_werror_flag"
8307 || test ! -s conftest.err'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try
='test -s conftest.$ac_objext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 gcc_cv_c_nbby
=$i; break
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.
$ac_ext >&5
8325 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8328 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8331 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8332 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8333 if test $gcc_cv_c_nbby = failed
; then
8334 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8335 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8336 { (exit 1); exit 1; }; }
8339 cat >>confdefs.h
<<_ACEOF
8340 #define CHAR_BIT $gcc_cv_c_nbby
8345 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8346 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8347 if test "${ac_cv_c_bigendian+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 # See if sys/param.h defines the BYTE_ORDER macro.
8351 cat >conftest.
$ac_ext <<_ACEOF
8354 cat confdefs.h
>>conftest.
$ac_ext
8355 cat >>conftest.
$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 #include <sys/types.h>
8358 #include <sys/param.h>
8363 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8371 rm -f conftest.
$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1
>conftest.err
8377 cat conftest.err
>&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try
='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try
='test -s conftest.$ac_objext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 # It does; now see whether it defined to BIG_ENDIAN or not.
8394 cat >conftest.
$ac_ext <<_ACEOF
8397 cat confdefs.h
>>conftest.
$ac_ext
8398 cat >>conftest.
$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8400 #include <sys/types.h>
8401 #include <sys/param.h>
8406 #if BYTE_ORDER != BIG_ENDIAN
8414 rm -f conftest.
$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416 (eval $ac_compile) 2>conftest.er1
8418 grep -v '^ *+' conftest.er1
>conftest.err
8420 cat conftest.err
>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try
='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try
='test -s conftest.$ac_objext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_c_bigendian
=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.
$ac_ext >&5
8441 ac_cv_c_bigendian
=no
8443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.
$ac_ext >&5
8448 # It does not; compile a test program.
8449 if test "$cross_compiling" = yes; then
8450 # try to guess the endianness by grepping values into an object file
8451 ac_cv_c_bigendian
=unknown
8452 cat >conftest.
$ac_ext <<_ACEOF
8455 cat confdefs.h
>>conftest.
$ac_ext
8456 cat >>conftest.
$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8459 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8460 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8461 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8462 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8463 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8467 _ascii (); _ebcdic ();
8472 rm -f conftest.
$ac_objext
8473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474 (eval $ac_compile) 2>conftest.er1
8476 grep -v '^ *+' conftest.er1
>conftest.err
8478 cat conftest.err
>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try
='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try
='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8495 ac_cv_c_bigendian
=yes
8497 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8498 if test "$ac_cv_c_bigendian" = unknown
; then
8499 ac_cv_c_bigendian
=no
8501 # finding both strings is unlikely to happen, but who knows?
8502 ac_cv_c_bigendian
=unknown
8506 echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.
$ac_ext >&5
8510 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8512 cat >conftest.
$ac_ext <<_ACEOF
8515 cat confdefs.h
>>conftest.
$ac_ext
8516 cat >>conftest.
$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8521 /* Are we little or big endian? From Harbison&Steele. */
8525 char c[sizeof (long)];
8528 exit (u.c[sizeof (long) - 1] == 1);
8531 rm -f conftest
$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_c_bigendian
=no
8544 echo "$as_me: program exited with status $ac_status" >&5
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.
$ac_ext >&5
8549 ac_cv_c_bigendian
=yes
8551 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8554 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8557 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8558 case $ac_cv_c_bigendian in
8561 cat >>confdefs.h
<<\_ACEOF
8562 #define WORDS_BIGENDIAN 1
8568 { { echo "$as_me:$LINENO: error: unknown endianness
8569 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8570 echo "$as_me: error: unknown endianness
8571 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8572 { (exit 1); exit 1; }; } ;;
8580 # Stage specific cflags for build.
8584 if test x
$GCC = xyes
8586 stage1_cflags
="-Wa,-J"
8592 # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8593 # sources; use -no-cpp-precomp to get to GNU cpp.
8594 # Apple's GCC has bugs in designated initializer handling, so disable
8596 stage1_cflags
="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8601 # These libraries may be used by collect2.
8602 # We may need a special search path to get them linked.
8603 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8604 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8605 if test "${gcc_cv_collect2_libs+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 for libs
in '' -lld -lmld \
8610 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8611 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8625 /* We use char because int might match the return type of a gcc2
8626 builtin and then its argument prototype would still apply. */
8636 rm -f conftest.
$ac_objext conftest
$ac_exeext
8637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638 (eval $ac_link) 2>conftest.er1
8640 grep -v '^ *+' conftest.er1
>conftest.err
8642 cat conftest.err
>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } &&
8645 { ac_try
='test -z "$ac_c_werror_flag"
8646 || test ! -s conftest.err'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; } &&
8652 { ac_try
='test -s conftest$ac_exeext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 gcc_cv_collect2_libs
="$libs"; break
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.
$ac_ext >&5
8664 rm -f conftest.err conftest.
$ac_objext \
8665 conftest
$ac_exeext conftest.
$ac_ext
8668 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8670 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8671 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8672 case $gcc_cv_collect2_libs in
8674 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8678 # When building Ada code on Alpha, we need exc_resume which is usually in
8679 # -lexc. So test for it.
8682 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8683 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8684 if test "${ac_cv_search_exc_resume+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 ac_func_search_save_LIBS
=$LIBS
8688 ac_cv_search_exc_resume
=no
8689 cat >conftest.
$ac_ext <<_ACEOF
8692 cat confdefs.h
>>conftest.
$ac_ext
8693 cat >>conftest.
$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8696 /* Override any gcc2 internal prototype to avoid an error. */
8700 /* We use char because int might match the return type of a gcc2
8701 builtin and then its argument prototype would still apply. */
8711 rm -f conftest.
$ac_objext conftest
$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713 (eval $ac_link) 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try
='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try
='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_cv_search_exc_resume
="none required"
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.
$ac_ext >&5
8739 rm -f conftest.err conftest.
$ac_objext \
8740 conftest
$ac_exeext conftest.
$ac_ext
8741 if test "$ac_cv_search_exc_resume" = no
; then
8742 for ac_lib
in exc
; do
8743 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8744 cat >conftest.
$ac_ext <<_ACEOF
8747 cat confdefs.h
>>conftest.
$ac_ext
8748 cat >>conftest.
$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8751 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8766 rm -f conftest.
$ac_objext conftest
$ac_exeext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768 (eval $ac_link) 2>conftest.er1
8770 grep -v '^ *+' conftest.er1
>conftest.err
8772 cat conftest.err
>&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } &&
8775 { ac_try
='test -z "$ac_c_werror_flag"
8776 || test ! -s conftest.err'
8777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); }; } &&
8782 { ac_try
='test -s conftest$ac_exeext'
8783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 ac_cv_search_exc_resume
="-l$ac_lib"
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.
$ac_ext >&5
8795 rm -f conftest.err conftest.
$ac_objext \
8796 conftest
$ac_exeext conftest.
$ac_ext
8799 LIBS
=$ac_func_search_save_LIBS
8801 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8802 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8803 if test "$ac_cv_search_exc_resume" != no
; then
8804 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
8812 # Some systems put ldexp and frexp in libm instead of libc; assume
8813 # they're both in the same place. jcf-dump needs them.
8816 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8817 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8818 if test "${ac_cv_search_ldexp+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 ac_func_search_save_LIBS
=$LIBS
8822 ac_cv_search_ldexp
=no
8823 cat >conftest.
$ac_ext <<_ACEOF
8826 cat confdefs.h
>>conftest.
$ac_ext
8827 cat >>conftest.
$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8830 /* Override any gcc2 internal prototype to avoid an error. */
8834 /* We use char because int might match the return type of a gcc2
8835 builtin and then its argument prototype would still apply. */
8845 rm -f conftest.
$ac_objext conftest
$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8849 grep -v '^ *+' conftest.er1
>conftest.err
8851 cat conftest.err
>&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try
='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try
='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_search_ldexp
="none required"
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.
$ac_ext >&5
8873 rm -f conftest.err conftest.
$ac_objext \
8874 conftest
$ac_exeext conftest.
$ac_ext
8875 if test "$ac_cv_search_ldexp" = no
; then
8877 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8878 cat >conftest.
$ac_ext <<_ACEOF
8881 cat confdefs.h
>>conftest.
$ac_ext
8882 cat >>conftest.
$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8889 /* We use char because int might match the return type of a gcc2
8890 builtin and then its argument prototype would still apply. */
8900 rm -f conftest.
$ac_objext conftest
$ac_exeext
8901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8902 (eval $ac_link) 2>conftest.er1
8904 grep -v '^ *+' conftest.er1
>conftest.err
8906 cat conftest.err
>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try
='test -z "$ac_c_werror_flag"
8910 || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try
='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_search_ldexp
="-l$ac_lib"
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.
$ac_ext >&5
8929 rm -f conftest.err conftest.
$ac_objext \
8930 conftest
$ac_exeext conftest.
$ac_ext
8933 LIBS
=$ac_func_search_save_LIBS
8935 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
8936 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
8937 if test "$ac_cv_search_ldexp" != no
; then
8938 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
8946 # Use <inttypes.h> only if it exists,
8947 # doesn't clash with <sys/types.h>, and declares intmax_t.
8948 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8949 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8950 if test "${gcc_cv_header_inttypes_h+set}" = set; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <sys/types.h>
8960 #include <inttypes.h>
8969 rm -f conftest.
$ac_objext
8970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8971 (eval $ac_compile) 2>conftest.er1
8973 grep -v '^ *+' conftest.er1
>conftest.err
8975 cat conftest.err
>&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } &&
8978 { ac_try
='test -z "$ac_c_werror_flag"
8979 || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try
='test -s conftest.$ac_objext'
8986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 gcc_cv_header_inttypes_h
=yes
8993 echo "$as_me: failed program was:" >&5
8994 sed 's/^/| /' conftest.
$ac_ext >&5
8996 gcc_cv_header_inttypes_h
=no
8998 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9001 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9002 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9003 if test $gcc_cv_header_inttypes_h = yes; then
9005 cat >>confdefs.h
<<\_ACEOF
9006 #define HAVE_INTTYPES_H 1
9049 for ac_func
in times clock dup2
kill getrlimit setrlimit atoll atoq \
9050 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9051 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9052 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
9054 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9055 echo "$as_me:$LINENO: checking for $ac_func" >&5
9056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9057 if eval "test \"\${$as_ac_var+set}\" = set"; then
9058 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 cat >conftest.
$ac_ext <<_ACEOF
9063 cat confdefs.h
>>conftest.
$ac_ext
9064 cat >>conftest.
$ac_ext <<_ACEOF
9065 /* end confdefs.h. */
9066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9068 #define $ac_func innocuous_$ac_func
9070 /* System header to define __stub macros and hopefully few prototypes,
9071 which can conflict with char $ac_func (); below.
9072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9073 <limits.h> exists even on freestanding compilers. */
9076 # include <limits.h>
9078 # include <assert.h>
9083 /* Override any gcc2 internal prototype to avoid an error. */
9088 /* We use char because int might match the return type of a gcc2
9089 builtin and then its argument prototype would still apply. */
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9097 char (*f) () = $ac_func;
9106 return f != $ac_func;
9111 rm -f conftest.
$ac_objext conftest
$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try
='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try
='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 eval "$as_ac_var=yes"
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.
$ac_ext >&5
9138 eval "$as_ac_var=no"
9140 rm -f conftest.err conftest.
$ac_objext \
9141 conftest
$ac_exeext conftest.
$ac_ext
9143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9145 if test `eval echo '${'$as_ac_var'}'` = yes; then
9146 cat >>confdefs.h
<<_ACEOF
9147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9154 if test x
$ac_cv_func_mbstowcs = xyes
; then
9155 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9156 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9157 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 if test "$cross_compiling" = yes; then
9161 gcc_cv_func_mbstowcs_works
=yes
9163 cat >conftest.
$ac_ext <<_ACEOF
9166 cat confdefs.h
>>conftest.
$ac_ext
9167 cat >>conftest.
$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9176 rm -f conftest
$ac_exeext
9177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9178 (eval $ac_link) 2>&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; }; then
9187 gcc_cv_func_mbstowcs_works
=yes
9189 echo "$as_me: program exited with status $ac_status" >&5
9190 echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.
$ac_ext >&5
9194 gcc_cv_func_mbstowcs_works
=no
9196 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9199 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9200 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9201 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9203 cat >>confdefs.h
<<\_ACEOF
9204 #define HAVE_WORKING_MBSTOWCS 1
9210 echo "$as_me:$LINENO: checking for ssize_t" >&5
9211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9212 if test "${ac_cv_type_ssize_t+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 cat >conftest.
$ac_ext <<_ACEOF
9218 cat confdefs.h
>>conftest.
$ac_ext
9219 cat >>conftest.
$ac_ext <<_ACEOF
9220 /* end confdefs.h. */
9221 $ac_includes_default
9227 if (sizeof (ssize_t))
9233 rm -f conftest.
$ac_objext
9234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9235 (eval $ac_compile) 2>conftest.er1
9237 grep -v '^ *+' conftest.er1
>conftest.err
9239 cat conftest.err
>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try
='test -z "$ac_c_werror_flag"
9243 || test ! -s conftest.err'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; } &&
9249 { ac_try
='test -s conftest.$ac_objext'
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; }; then
9255 ac_cv_type_ssize_t
=yes
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.
$ac_ext >&5
9260 ac_cv_type_ssize_t
=no
9262 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9264 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9265 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9266 if test $ac_cv_type_ssize_t = yes; then
9270 cat >>confdefs.h
<<_ACEOF
9277 # Try to determine the array type of the second argument of getgroups
9278 # for the target system (int or gid_t).
9279 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9280 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9281 if test "${ac_cv_type_uid_t+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9284 cat >conftest.
$ac_ext <<_ACEOF
9287 cat confdefs.h
>>conftest.
$ac_ext
9288 cat >>conftest.
$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 #include <sys/types.h>
9293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9294 $EGREP "uid_t" >/dev
/null
2>&1; then
9295 ac_cv_type_uid_t
=yes
9302 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9303 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9304 if test $ac_cv_type_uid_t = no
; then
9306 cat >>confdefs.h
<<\_ACEOF
9311 cat >>confdefs.h
<<\_ACEOF
9317 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9318 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9319 if test "${ac_cv_type_getgroups+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 if test "$cross_compiling" = yes; then
9323 ac_cv_type_getgroups
=cross
9325 cat >conftest.
$ac_ext <<_ACEOF
9328 cat confdefs.h
>>conftest.
$ac_ext
9329 cat >>conftest.
$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 /* Thanks to Mike Rendell for this test. */
9332 #include <sys/types.h>
9335 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9342 union { gid_t gval; long lval; } val;
9345 for (i = 0; i < NGID; i++)
9346 gidset[i] = val.gval;
9347 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9349 /* Exit non-zero if getgroups seems to require an array of ints. This
9350 happens when gid_t is short but getgroups modifies an array of ints. */
9351 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9354 rm -f conftest
$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_type_getgroups
=gid_t
9367 echo "$as_me: program exited with status $ac_status" >&5
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.
$ac_ext >&5
9372 ac_cv_type_getgroups
=int
9374 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9376 if test $ac_cv_type_getgroups = cross
; then
9377 cat >conftest.
$ac_ext <<_ACEOF
9380 cat confdefs.h
>>conftest.
$ac_ext
9381 cat >>conftest.
$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9388 ac_cv_type_getgroups
=gid_t
9390 ac_cv_type_getgroups
=int
9396 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9397 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9399 cat >>confdefs.h
<<_ACEOF
9400 #define GETGROUPS_T $ac_cv_type_getgroups
9404 if test "${target}" = "${build}"; then
9405 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9408 # This condition may need some tweaking. It should include all
9409 # targets where the array type of the second argument of getgroups
9410 # is int and the type of gid_t is not equivalent to int.
9411 *-*-sunos* |
*-*-ultrix*)
9412 TARGET_GETGROUPS_T
=int
9415 TARGET_GETGROUPS_T
=gid_t
9421 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9422 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9423 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 if test "$cross_compiling" = yes; then
9427 gcc_cv_func_printf_ptr
=no
9429 cat >conftest.
$ac_ext <<_ACEOF
9432 cat confdefs.h
>>conftest.
$ac_ext
9433 cat >>conftest.
$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9440 char *p = buf, *q = NULL;
9441 sprintf(buf, "%p", p);
9442 sscanf(buf, "%p", &q);
9446 rm -f conftest
$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448 (eval $ac_link) 2>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); }; }; then
9457 gcc_cv_func_printf_ptr
=yes
9459 echo "$as_me: program exited with status $ac_status" >&5
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.
$ac_ext >&5
9464 gcc_cv_func_printf_ptr
=no
9466 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9468 rm -f core core.
* *.core
9470 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9471 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9472 if test $gcc_cv_func_printf_ptr = yes ; then
9474 cat >>confdefs.h
<<\_ACEOF
9475 #define HAVE_PRINTF_PTR 1
9481 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9482 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9483 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 cat >conftest.
$ac_ext <<_ACEOF
9489 cat confdefs.h
>>conftest.
$ac_ext
9490 cat >>conftest.
$ac_ext <<_ACEOF
9491 /* end confdefs.h. */
9492 #include <sys/mman.h>
9494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9495 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9497 grep -v '^ *+' conftest.er1
>conftest.err
9499 cat conftest.err
>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev
/null
; then
9502 if test -s conftest.err
; then
9503 ac_cpp_err
=$ac_c_preproc_warn_flag
9504 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9511 if test -z "$ac_cpp_err"; then
9512 ac_cv_header_sys_mman_h
=yes
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.
$ac_ext >&5
9517 ac_cv_header_sys_mman_h
=no
9519 rm -f conftest.err conftest.
$ac_ext
9521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9522 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9523 if test $ac_cv_header_sys_mman_h = yes; then
9524 gcc_header_sys_mman_h
=yes
9526 gcc_header_sys_mman_h
=no
9529 echo "$as_me:$LINENO: checking for mmap" >&5
9530 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9531 if test "${ac_cv_func_mmap+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.
$ac_ext <<_ACEOF
9537 cat confdefs.h
>>conftest.
$ac_ext
9538 cat >>conftest.
$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define mmap innocuous_mmap
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char mmap (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9550 # include <limits.h>
9552 # include <assert.h>
9557 /* Override any gcc2 internal prototype to avoid an error. */
9562 /* We use char because int might match the return type of a gcc2
9563 builtin and then its argument prototype would still apply. */
9565 /* The GNU C library defines this for functions which it implements
9566 to always fail with ENOSYS. Some functions are actually named
9567 something starting with __ and the normal name is an alias. */
9568 #if defined (__stub_mmap) || defined (__stub___mmap)
9571 char (*f) () = mmap;
9585 rm -f conftest.
$ac_objext conftest
$ac_exeext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9587 (eval $ac_link) 2>conftest.er1
9589 grep -v '^ *+' conftest.er1
>conftest.err
9591 cat conftest.err
>&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try
='test -z "$ac_c_werror_flag"
9595 || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try
='test -s conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.
$ac_ext >&5
9614 rm -f conftest.err conftest.
$ac_objext \
9615 conftest
$ac_exeext conftest.
$ac_ext
9617 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9618 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9619 if test $ac_cv_func_mmap = yes; then
9625 if test "$gcc_header_sys_mman_h" != yes \
9626 ||
test "$gcc_func_mmap" != yes; then
9627 gcc_cv_func_mmap_file
=no
9628 gcc_cv_func_mmap_dev_zero
=no
9629 gcc_cv_func_mmap_anon
=no
9631 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9632 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9633 if test "${gcc_cv_func_mmap_file+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 # Add a system to this blacklist if
9637 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9638 # memory area containing the same data that you'd get if you applied
9639 # read() to the same fd. The only system known to have a problem here
9640 # is VMS, where text files have record structure.
9643 gcc_cv_func_mmap_file
=no
;;
9645 gcc_cv_func_mmap_file
=yes;;
9648 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9649 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9650 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9651 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9652 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 # Add a system to this blacklist if it has mmap() but /dev/zero
9656 # does not exist, or if mmapping /dev/zero does not give anonymous
9657 # zeroed pages with both the following properties:
9658 # 1. If you map N consecutive pages in with one call, and then
9659 # unmap any subset of those pages, the pages that were not
9660 # explicitly unmapped remain accessible.
9661 # 2. If you map two adjacent blocks of memory and then unmap them
9662 # both at once, they must both go away.
9663 # Systems known to be in this category are Windows (all variants),
9666 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9667 gcc_cv_func_mmap_dev_zero
=no
;;
9669 gcc_cv_func_mmap_dev_zero
=yes;;
9672 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9673 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9675 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9676 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9677 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9678 if test "${gcc_cv_decl_map_anon+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 cat >conftest.
$ac_ext <<_ACEOF
9684 cat confdefs.h
>>conftest.
$ac_ext
9685 cat >>conftest.
$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <sys/types.h>
9688 #include <sys/mman.h>
9691 #ifndef MAP_ANONYMOUS
9692 #define MAP_ANONYMOUS MAP_ANON
9698 int n = MAP_ANONYMOUS;
9703 rm -f conftest.
$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>conftest.er1
9707 grep -v '^ *+' conftest.er1
>conftest.err
9709 cat conftest.err
>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try
='test -z "$ac_c_werror_flag"
9713 || test ! -s conftest.err'
9714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; } &&
9719 { ac_try
='test -s conftest.$ac_objext'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; }; then
9725 gcc_cv_decl_map_anon
=yes
9727 echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.
$ac_ext >&5
9730 gcc_cv_decl_map_anon
=no
9732 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9734 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9735 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9737 if test $gcc_cv_decl_map_anon = no
; then
9738 gcc_cv_func_mmap_anon
=no
9740 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9741 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9742 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9746 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9747 # doesn't give anonymous zeroed pages with the same properties listed
9748 # above for use of /dev/zero.
9749 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9751 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9752 gcc_cv_func_mmap_anon
=no
;;
9754 gcc_cv_func_mmap_anon
=yes;;
9757 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9758 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9762 if test $gcc_cv_func_mmap_file = yes; then
9764 cat >>confdefs.h
<<\_ACEOF
9765 #define HAVE_MMAP_FILE 1
9769 if test $gcc_cv_func_mmap_dev_zero = yes; then
9771 cat >>confdefs.h
<<\_ACEOF
9772 #define HAVE_MMAP_DEV_ZERO 1
9776 if test $gcc_cv_func_mmap_anon = yes; then
9778 cat >>confdefs.h
<<\_ACEOF
9779 #define HAVE_MMAP_ANON 1
9787 # Under VMS, vfork works very differently than on Unix. The standard test
9788 # won't work, and it isn't easily adaptable. It makes more sense to
9790 ac_cv_func_vfork_works
=yes
9793 echo "$as_me:$LINENO: checking for pid_t" >&5
9794 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9795 if test "${ac_cv_type_pid_t+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9798 cat >conftest.
$ac_ext <<_ACEOF
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9816 rm -f conftest.
$ac_objext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9820 grep -v '^ *+' conftest.er1
>conftest.err
9822 cat conftest.err
>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try
='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try
='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_type_pid_t
=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.
$ac_ext >&5
9845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9849 if test $ac_cv_type_pid_t = yes; then
9853 cat >>confdefs.h
<<_ACEOF
9861 for ac_header
in unistd.h vfork.h
9863 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9864 echo "$as_me:$LINENO: checking for $ac_header" >&5
9865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.
$ac_ext <<_ACEOF
9872 cat confdefs.h
>>conftest.
$ac_ext
9873 cat >>conftest.
$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 #include <$ac_header>
9877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9878 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9880 grep -v '^ *+' conftest.er1
>conftest.err
9882 cat conftest.err
>&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } >/dev
/null
; then
9885 if test -s conftest.err
; then
9886 ac_cpp_err
=$ac_c_preproc_warn_flag
9887 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9894 if test -z "$ac_cpp_err"; then
9895 eval "$as_ac_Header=yes"
9897 echo "$as_me: failed program was:" >&5
9898 sed 's/^/| /' conftest.
$ac_ext >&5
9900 eval "$as_ac_Header=no"
9902 rm -f conftest.err conftest.
$ac_ext
9904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9907 cat >>confdefs.h
<<_ACEOF
9908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9916 for ac_func
in fork vfork
9918 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 echo "$as_me:$LINENO: checking for $ac_func" >&5
9920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_var+set}\" = set"; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9924 cat >conftest.
$ac_ext <<_ACEOF
9927 cat confdefs.h
>>conftest.
$ac_ext
9928 cat >>conftest.
$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9932 #define $ac_func innocuous_$ac_func
9934 /* System header to define __stub macros and hopefully few prototypes,
9935 which can conflict with char $ac_func (); below.
9936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9937 <limits.h> exists even on freestanding compilers. */
9940 # include <limits.h>
9942 # include <assert.h>
9947 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9955 /* The GNU C library defines this for functions which it implements
9956 to always fail with ENOSYS. Some functions are actually named
9957 something starting with __ and the normal name is an alias. */
9958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9961 char (*f) () = $ac_func;
9970 return f != $ac_func;
9975 rm -f conftest.
$ac_objext conftest
$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>conftest.er1
9979 grep -v '^ *+' conftest.er1
>conftest.err
9981 cat conftest.err
>&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try
='test -z "$ac_c_werror_flag"
9985 || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try
='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 eval "$as_ac_var=yes"
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.
$ac_ext >&5
10002 eval "$as_ac_var=no"
10004 rm -f conftest.err conftest.
$ac_objext \
10005 conftest
$ac_exeext conftest.
$ac_ext
10007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10009 if test `eval echo '${'$as_ac_var'}'` = yes; then
10010 cat >>confdefs.h
<<_ACEOF
10011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10017 if test "x$ac_cv_func_fork" = xyes
; then
10018 echo "$as_me:$LINENO: checking for working fork" >&5
10019 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10020 if test "${ac_cv_func_fork_works+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 if test "$cross_compiling" = yes; then
10024 ac_cv_func_fork_works
=cross
10026 cat >conftest.
$ac_ext <<_ACEOF
10027 /* By Ruediger Kuhlmann. */
10028 #include <sys/types.h>
10030 # include <unistd.h>
10032 /* Some systems only have a dummy stub for fork() */
10040 rm -f conftest
$ac_exeext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042 (eval $ac_link) 2>&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_cv_func_fork_works
=yes
10053 echo "$as_me: program exited with status $ac_status" >&5
10054 echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.
$ac_ext >&5
10057 ( exit $ac_status )
10058 ac_cv_func_fork_works
=no
10060 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10063 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10064 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10067 ac_cv_func_fork_works
=$ac_cv_func_fork
10069 if test "x$ac_cv_func_fork_works" = xcross
; then
10071 *-*-amigaos* |
*-*-msdosdjgpp*)
10072 # Override, as these systems have only a dummy fork() stub
10073 ac_cv_func_fork_works
=no
10076 ac_cv_func_fork_works
=yes
10079 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10080 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10082 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10083 if test "x$ac_cv_func_vfork" = xyes
; then
10084 echo "$as_me:$LINENO: checking for working vfork" >&5
10085 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10086 if test "${ac_cv_func_vfork_works+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 if test "$cross_compiling" = yes; then
10090 ac_cv_func_vfork_works
=cross
10092 cat >conftest.
$ac_ext <<_ACEOF
10095 cat confdefs.h
>>conftest.
$ac_ext
10096 cat >>conftest.
$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 /* Thanks to Paul Eggert for this test. */
10100 #include <stdlib.h>
10101 #include <sys/types.h>
10102 #include <sys/stat.h>
10103 #include <sys/wait.h>
10105 # include <unistd.h>
10108 # include <vfork.h>
10110 /* On some sparc systems, changes by the child to local and incoming
10111 argument registers are propagated back to the parent. The compiler
10112 is told about this with #include <vfork.h>, but some compilers
10113 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10114 static variable whose address is put into a register that is
10115 clobbered by the vfork. */
10118 sparc_address_test (int arg)
10120 sparc_address_test (arg) int arg;
10123 static pid_t child;
10141 pid_t parent = getpid ();
10144 sparc_address_test (0);
10149 /* Here is another test for sparc vfork register problems. This
10150 test uses lots of local variables, at least as many local
10151 variables as main has allocated so far including compiler
10152 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10153 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10154 reuse the register of parent for one of the local variables,
10155 since it will think that parent can't possibly be used any more
10156 in this routine. Assigning to the local variable will thus
10157 munge parent in the parent process. */
10159 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10160 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10161 /* Convince the compiler that p..p7 are live; otherwise, it might
10162 use the same hardware register for all 8 local variables. */
10163 if (p != p1 || p != p2 || p != p3 || p != p4
10164 || p != p5 || p != p6 || p != p7)
10167 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10168 from child file descriptors. If the child closes a descriptor
10169 before it execs or exits, this munges the parent's descriptor
10170 as well. Test for this by closing stdout in the child. */
10171 _exit(close(fileno(stdout)) != 0);
10176 while (wait(&status) != child)
10179 /* Was there some problem with vforking? */
10182 /* Did the child fail? (This shouldn't happen.) */
10185 /* Did the vfork/compiler bug occur? */
10186 || parent != getpid()
10188 /* Did the file descriptor bug occur? */
10189 || fstat(fileno(stdout), &st) != 0
10194 rm -f conftest
$ac_exeext
10195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 ac_cv_func_vfork_works
=yes
10207 echo "$as_me: program exited with status $ac_status" >&5
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.
$ac_ext >&5
10211 ( exit $ac_status )
10212 ac_cv_func_vfork_works
=no
10214 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10218 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10221 if test "x$ac_cv_func_fork_works" = xcross
; then
10222 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10223 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10224 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10227 if test "x$ac_cv_func_vfork_works" = xyes
; then
10229 cat >>confdefs.h
<<\_ACEOF
10230 #define HAVE_WORKING_VFORK 1
10235 cat >>confdefs.h
<<\_ACEOF
10240 if test "x$ac_cv_func_fork_works" = xyes
; then
10242 cat >>confdefs.h
<<\_ACEOF
10243 #define HAVE_WORKING_FORK 1
10250 if test "X$prefix" = "XNONE"; then
10251 acl_final_prefix
="$ac_default_prefix"
10253 acl_final_prefix
="$prefix"
10255 if test "X$exec_prefix" = "XNONE"; then
10256 acl_final_exec_prefix
='${prefix}'
10258 acl_final_exec_prefix
="$exec_prefix"
10260 acl_save_prefix
="$prefix"
10261 prefix
="$acl_final_prefix"
10262 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10263 prefix
="$acl_save_prefix"
10266 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10267 if test "${with_gnu_ld+set}" = set; then
10268 withval
="$with_gnu_ld"
10269 test "$withval" = no || with_gnu_ld
=yes
10273 # Prepare PATH_SEPARATOR.
10274 # The user is always right.
10275 if test "${PATH_SEPARATOR+set}" != set; then
10276 echo "#! /bin/sh" >conf$$.sh
10277 echo "exit 0" >>conf$$.sh
10279 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10287 if test "$GCC" = yes; then
10288 # Check if gcc -print-prog-name=ld gives a path.
10289 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10290 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10293 # gcc leaves a trailing carriage return which upsets mingw
10294 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10296 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10299 # Accept absolute paths.
10300 [\\/]* |
[A-Za-z
]:[\\/]*)
10301 re_direlt
='/[^/][^/]*/\.\./'
10302 # Canonicalize the path of ld
10303 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10304 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10305 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10307 test -z "$LD" && LD
="$ac_prog"
10310 # If it fails, then pretend we aren't using GCC.
10314 # If it is relative, then search for the first ld in PATH.
10315 with_gnu_ld
=unknown
10318 elif test "$with_gnu_ld" = yes; then
10319 echo "$as_me:$LINENO: checking for GNU ld" >&5
10320 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10322 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10323 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10325 if test "${acl_cv_path_LD+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 if test -z "$LD"; then
10329 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10330 for ac_dir
in $PATH; do
10331 test -z "$ac_dir" && ac_dir
=.
10332 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10333 acl_cv_path_LD
="$ac_dir/$ac_prog"
10334 # Check to see if the program is GNU ld. I'd rather use --version,
10335 # but apparently some GNU ld's only accept -v.
10336 # Break only if it was the GNU/non-GNU ld that we prefer.
10337 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10338 test "$with_gnu_ld" != no
&& break
10340 test "$with_gnu_ld" != yes && break
10346 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10350 LD
="$acl_cv_path_LD"
10351 if test -n "$LD"; then
10352 echo "$as_me:$LINENO: result: $LD" >&5
10353 echo "${ECHO_T}$LD" >&6
10355 echo "$as_me:$LINENO: result: no" >&5
10356 echo "${ECHO_T}no" >&6
10358 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10359 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10360 { (exit 1); exit 1; }; }
10361 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10362 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10363 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10366 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10367 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10368 acl_cv_prog_gnu_ld
=yes
10370 acl_cv_prog_gnu_ld
=no
10373 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10374 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10375 with_gnu_ld
=$acl_cv_prog_gnu_ld
10379 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10380 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10381 if test "${acl_cv_rpath+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10386 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10388 rm -f .
/conftest.sh
10392 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10393 echo "${ECHO_T}$acl_cv_rpath" >&6
10395 libext
="$acl_cv_libext"
10396 shlibext
="$acl_cv_shlibext"
10397 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10398 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10399 hardcode_direct
="$acl_cv_hardcode_direct"
10400 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10401 # Check whether --enable-rpath or --disable-rpath was given.
10402 if test "${enable_rpath+set}" = set; then
10403 enableval
="$enable_rpath"
10417 acl_save_prefix
="$prefix"
10418 prefix
="$acl_final_prefix"
10419 acl_save_exec_prefix
="$exec_prefix"
10420 exec_prefix
="$acl_final_exec_prefix"
10422 eval additional_includedir
=\"$includedir\"
10423 eval additional_libdir
=\"$libdir\"
10425 exec_prefix
="$acl_save_exec_prefix"
10426 prefix
="$acl_save_prefix"
10429 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10430 if test "${with_libiconv_prefix+set}" = set; then
10431 withval
="$with_libiconv_prefix"
10433 if test "X$withval" = "Xno"; then
10436 if test "X$withval" = "X"; then
10438 acl_save_prefix
="$prefix"
10439 prefix
="$acl_final_prefix"
10440 acl_save_exec_prefix
="$exec_prefix"
10441 exec_prefix
="$acl_final_exec_prefix"
10443 eval additional_includedir
=\"$includedir\"
10444 eval additional_libdir
=\"$libdir\"
10446 exec_prefix
="$acl_save_exec_prefix"
10447 prefix
="$acl_save_prefix"
10450 additional_includedir
="$withval/include"
10451 additional_libdir
="$withval/lib"
10461 names_already_handled
=
10462 names_next_round
='iconv '
10463 while test -n "$names_next_round"; do
10464 names_this_round
="$names_next_round"
10466 for name
in $names_this_round; do
10468 for n
in $names_already_handled; do
10469 if test "$n" = "$name"; then
10470 already_handled
=yes
10474 if test -z "$already_handled"; then
10475 names_already_handled
="$names_already_handled $name"
10476 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10477 eval value
=\"\
$HAVE_LIB$uppername\"
10478 if test -n "$value"; then
10479 if test "$value" = yes; then
10480 eval value
=\"\
$LIB$uppername\"
10481 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10482 eval value
=\"\
$LTLIB$uppername\"
10483 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10492 if test $use_additional = yes; then
10493 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10494 found_dir
="$additional_libdir"
10495 found_so
="$additional_libdir/lib$name.$shlibext"
10496 if test -f "$additional_libdir/lib$name.la"; then
10497 found_la
="$additional_libdir/lib$name.la"
10500 if test -f "$additional_libdir/lib$name.$libext"; then
10501 found_dir
="$additional_libdir"
10502 found_a
="$additional_libdir/lib$name.$libext"
10503 if test -f "$additional_libdir/lib$name.la"; then
10504 found_la
="$additional_libdir/lib$name.la"
10509 if test "X$found_dir" = "X"; then
10510 for x
in $LDFLAGS $LTLIBICONV; do
10512 acl_save_prefix
="$prefix"
10513 prefix
="$acl_final_prefix"
10514 acl_save_exec_prefix
="$exec_prefix"
10515 exec_prefix
="$acl_final_exec_prefix"
10517 exec_prefix
="$acl_save_exec_prefix"
10518 prefix
="$acl_save_prefix"
10522 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10523 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10525 found_so
="$dir/lib$name.$shlibext"
10526 if test -f "$dir/lib$name.la"; then
10527 found_la
="$dir/lib$name.la"
10530 if test -f "$dir/lib$name.$libext"; then
10532 found_a
="$dir/lib$name.$libext"
10533 if test -f "$dir/lib$name.la"; then
10534 found_la
="$dir/lib$name.la"
10540 if test "X$found_dir" != "X"; then
10545 if test "X$found_dir" != "X"; then
10546 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10547 if test "X$found_so" != "X"; then
10548 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10549 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10552 for x
in $ltrpathdirs; do
10553 if test "X$x" = "X$found_dir"; then
10558 if test -z "$haveit"; then
10559 ltrpathdirs
="$ltrpathdirs $found_dir"
10561 if test "$hardcode_direct" = yes; then
10562 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10564 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10565 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10567 for x
in $rpathdirs; do
10568 if test "X$x" = "X$found_dir"; then
10573 if test -z "$haveit"; then
10574 rpathdirs
="$rpathdirs $found_dir"
10578 for x
in $LDFLAGS $LIBICONV; do
10580 acl_save_prefix
="$prefix"
10581 prefix
="$acl_final_prefix"
10582 acl_save_exec_prefix
="$exec_prefix"
10583 exec_prefix
="$acl_final_exec_prefix"
10585 exec_prefix
="$acl_save_exec_prefix"
10586 prefix
="$acl_save_prefix"
10588 if test "X$x" = "X-L$found_dir"; then
10593 if test -z "$haveit"; then
10594 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10596 if test "$hardcode_minus_L" != no
; then
10597 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10599 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10605 if test "X$found_a" != "X"; then
10606 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10608 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10611 additional_includedir
=
10612 case "$found_dir" in
10614 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10615 additional_includedir
="$basedir/include"
10618 if test "X$additional_includedir" != "X"; then
10619 if test "X$additional_includedir" != "X/usr/include"; then
10621 if test "X$additional_includedir" = "X/usr/local/include"; then
10622 if test -n "$GCC"; then
10624 linux
*) haveit
=yes;;
10628 if test -z "$haveit"; then
10629 for x
in $CPPFLAGS $INCICONV; do
10631 acl_save_prefix
="$prefix"
10632 prefix
="$acl_final_prefix"
10633 acl_save_exec_prefix
="$exec_prefix"
10634 exec_prefix
="$acl_final_exec_prefix"
10636 exec_prefix
="$acl_save_exec_prefix"
10637 prefix
="$acl_save_prefix"
10639 if test "X$x" = "X-I$additional_includedir"; then
10644 if test -z "$haveit"; then
10645 if test -d "$additional_includedir"; then
10646 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10652 if test -n "$found_la"; then
10653 save_libdir
="$libdir"
10654 case "$found_la" in
10655 */* |
*\\*) .
"$found_la" ;;
10656 *) .
"./$found_la" ;;
10658 libdir
="$save_libdir"
10659 for dep
in $dependency_libs; do
10662 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10663 if test "X$additional_libdir" != "X/usr/lib"; then
10665 if test "X$additional_libdir" = "X/usr/local/lib"; then
10666 if test -n "$GCC"; then
10668 linux
*) haveit
=yes;;
10672 if test -z "$haveit"; then
10674 for x
in $LDFLAGS $LIBICONV; do
10676 acl_save_prefix
="$prefix"
10677 prefix
="$acl_final_prefix"
10678 acl_save_exec_prefix
="$exec_prefix"
10679 exec_prefix
="$acl_final_exec_prefix"
10681 exec_prefix
="$acl_save_exec_prefix"
10682 prefix
="$acl_save_prefix"
10684 if test "X$x" = "X-L$additional_libdir"; then
10689 if test -z "$haveit"; then
10690 if test -d "$additional_libdir"; then
10691 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10695 for x
in $LDFLAGS $LTLIBICONV; do
10697 acl_save_prefix
="$prefix"
10698 prefix
="$acl_final_prefix"
10699 acl_save_exec_prefix
="$exec_prefix"
10700 exec_prefix
="$acl_final_exec_prefix"
10702 exec_prefix
="$acl_save_exec_prefix"
10703 prefix
="$acl_save_prefix"
10705 if test "X$x" = "X-L$additional_libdir"; then
10710 if test -z "$haveit"; then
10711 if test -d "$additional_libdir"; then
10712 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10719 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10720 if test "$enable_rpath" != no
; then
10722 for x
in $rpathdirs; do
10723 if test "X$x" = "X$dir"; then
10728 if test -z "$haveit"; then
10729 rpathdirs
="$rpathdirs $dir"
10732 for x
in $ltrpathdirs; do
10733 if test "X$x" = "X$dir"; then
10738 if test -z "$haveit"; then
10739 ltrpathdirs
="$ltrpathdirs $dir"
10744 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10747 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10750 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10751 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10757 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10758 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10764 if test "X$rpathdirs" != "X"; then
10765 if test -n "$hardcode_libdir_separator"; then
10767 for found_dir
in $rpathdirs; do
10768 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10770 acl_save_libdir
="$libdir"
10772 eval flag
=\"$hardcode_libdir_flag_spec\"
10773 libdir
="$acl_save_libdir"
10774 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10776 for found_dir
in $rpathdirs; do
10777 acl_save_libdir
="$libdir"
10778 libdir
="$found_dir"
10779 eval flag
=\"$hardcode_libdir_flag_spec\"
10780 libdir
="$acl_save_libdir"
10781 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10785 if test "X$ltrpathdirs" != "X"; then
10786 for found_dir
in $ltrpathdirs; do
10787 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10797 am_save_CPPFLAGS
="$CPPFLAGS"
10799 for element
in $INCICONV; do
10801 for x
in $CPPFLAGS; do
10803 acl_save_prefix
="$prefix"
10804 prefix
="$acl_final_prefix"
10805 acl_save_exec_prefix
="$exec_prefix"
10806 exec_prefix
="$acl_final_exec_prefix"
10808 exec_prefix
="$acl_save_exec_prefix"
10809 prefix
="$acl_save_prefix"
10811 if test "X$x" = "X$element"; then
10816 if test -z "$haveit"; then
10817 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10822 echo "$as_me:$LINENO: checking for iconv" >&5
10823 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10824 if test "${am_cv_func_iconv+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 am_cv_func_iconv
="no, consider installing GNU libiconv"
10830 cat >conftest.
$ac_ext <<_ACEOF
10833 cat confdefs.h
>>conftest.
$ac_ext
10834 cat >>conftest.
$ac_ext <<_ACEOF
10835 /* end confdefs.h. */
10836 #include <stdlib.h>
10841 iconv_t cd = iconv_open("","");
10842 iconv(cd,NULL,NULL,NULL,NULL);
10848 rm -f conftest.
$ac_objext conftest
$ac_exeext
10849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850 (eval $ac_link) 2>conftest.er1
10852 grep -v '^ *+' conftest.er1
>conftest.err
10854 cat conftest.err
>&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
10857 { ac_try
='test -z "$ac_c_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try
='test -s conftest$ac_exeext'
10865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 am_cv_func_iconv
=yes
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.
$ac_ext >&5
10876 rm -f conftest.err conftest.
$ac_objext \
10877 conftest
$ac_exeext conftest.
$ac_ext
10878 if test "$am_cv_func_iconv" != yes; then
10879 am_save_LIBS
="$LIBS"
10880 LIBS
="$LIBS $LIBICONV"
10881 cat >conftest.
$ac_ext <<_ACEOF
10884 cat confdefs.h
>>conftest.
$ac_ext
10885 cat >>conftest.
$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <stdlib.h>
10892 iconv_t cd = iconv_open("","");
10893 iconv(cd,NULL,NULL,NULL,NULL);
10899 rm -f conftest.
$ac_objext conftest
$ac_exeext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10901 (eval $ac_link) 2>conftest.er1
10903 grep -v '^ *+' conftest.er1
>conftest.err
10905 cat conftest.err
>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try
='test -z "$ac_c_werror_flag"
10909 || test ! -s conftest.err'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try
='test -s conftest$ac_exeext'
10916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917 (eval $ac_try) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 am_cv_lib_iconv
=yes
10922 am_cv_func_iconv
=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.
$ac_ext >&5
10928 rm -f conftest.err conftest.
$ac_objext \
10929 conftest
$ac_exeext conftest.
$ac_ext
10930 LIBS
="$am_save_LIBS"
10934 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10935 echo "${ECHO_T}$am_cv_func_iconv" >&6
10936 if test "$am_cv_func_iconv" = yes; then
10938 cat >>confdefs.h
<<\_ACEOF
10939 #define HAVE_ICONV 1
10943 if test "$am_cv_lib_iconv" = yes; then
10944 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10945 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10946 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10947 echo "${ECHO_T}$LIBICONV" >&6
10949 CPPFLAGS
="$am_save_CPPFLAGS"
10956 if test "$am_cv_func_iconv" = yes; then
10957 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10958 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10959 if test "${am_cv_proto_iconv+set}" = set; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10970 #include <stdlib.h>
10976 #if defined(__STDC__) || defined(__cplusplus)
10977 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10990 rm -f conftest.
$ac_objext
10991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10992 (eval $ac_compile) 2>conftest.er1
10994 grep -v '^ *+' conftest.er1
>conftest.err
10996 cat conftest.err
>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try
='test -z "$ac_c_werror_flag"
11000 || test ! -s conftest.err'
11001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002 (eval $ac_try) 2>&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); }; } &&
11006 { ac_try
='test -s conftest.$ac_objext'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
11012 am_cv_proto_iconv_arg1
=""
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.
$ac_ext >&5
11017 am_cv_proto_iconv_arg1
="const"
11019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11020 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);"
11023 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11024 echo "$as_me:$LINENO: result: ${ac_t:-
11025 }$am_cv_proto_iconv" >&5
11026 echo "${ECHO_T}${ac_t:-
11027 }$am_cv_proto_iconv" >&6
11029 cat >>confdefs.h
<<_ACEOF
11030 #define ICONV_CONST $am_cv_proto_iconv_arg1
11035 # Until we have in-tree GNU iconv:
11040 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11041 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11042 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 cat >conftest.
$ac_ext <<_ACEOF
11048 cat confdefs.h
>>conftest.
$ac_ext
11049 cat >>conftest.
$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11051 #include <locale.h>
11060 rm -f conftest.
$ac_objext conftest
$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1
>conftest.err
11066 cat conftest.err
>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try
='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try
='test -s conftest$ac_exeext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 am_cv_val_LC_MESSAGES
=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.
$ac_ext >&5
11087 am_cv_val_LC_MESSAGES
=no
11089 rm -f conftest.err conftest.
$ac_objext \
11090 conftest
$ac_exeext conftest.
$ac_ext
11092 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11093 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11094 if test $am_cv_val_LC_MESSAGES = yes; then
11096 cat >>confdefs.h
<<\_ACEOF
11097 #define HAVE_LC_MESSAGES 1
11104 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11105 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11106 if test "${am_cv_langinfo_codeset+set}" = set; then
11107 echo $ECHO_N "(cached) $ECHO_C" >&6
11109 cat >conftest.
$ac_ext <<_ACEOF
11112 cat confdefs.h
>>conftest.
$ac_ext
11113 cat >>conftest.
$ac_ext <<_ACEOF
11114 /* end confdefs.h. */
11115 #include <langinfo.h>
11119 char* cs = nl_langinfo(CODESET);
11124 rm -f conftest.
$ac_objext conftest
$ac_exeext
11125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>conftest.er1
11128 grep -v '^ *+' conftest.er1
>conftest.err
11130 cat conftest.err
>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try
='test -z "$ac_c_werror_flag"
11134 || test ! -s conftest.err'
11135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11136 (eval $ac_try) 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try
='test -s conftest$ac_exeext'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 am_cv_langinfo_codeset
=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.
$ac_ext >&5
11151 am_cv_langinfo_codeset
=no
11153 rm -f conftest.err conftest.
$ac_objext \
11154 conftest
$ac_exeext conftest.
$ac_ext
11157 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11158 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11159 if test $am_cv_langinfo_codeset = yes; then
11161 cat >>confdefs.h
<<\_ACEOF
11162 #define HAVE_LANGINFO_CODESET 1
11168 # We will need to find libiberty.h and ansidecl.h
11169 saved_CFLAGS
="$CFLAGS"
11170 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11208 for ac_func
in getenv atol sbrk abort atof getcwd getwd strsignal \
11209 strstr errno snprintf vsnprintf vasprintf malloc realloc calloc \
11210 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
11212 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11213 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11214 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11215 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.
$ac_ext <<_ACEOF
11221 cat confdefs.h
>>conftest.
$ac_ext
11222 cat >>conftest.
$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11225 #define $ac_tr_decl 1
11227 #include "ansidecl.h"
11228 #include "system.h"
11234 char *(*pfn) = (char *(*)) $ac_func ;
11240 rm -f conftest.
$ac_objext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11242 (eval $ac_compile) 2>conftest.er1
11244 grep -v '^ *+' conftest.er1
>conftest.err
11246 cat conftest.err
>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try
='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try
='test -s conftest.$ac_objext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.
$ac_ext >&5
11267 eval "gcc_cv_have_decl_$ac_func=no"
11269 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11272 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11273 echo "$as_me:$LINENO: result: yes" >&5
11274 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11275 #define $ac_tr_decl 1
11279 echo "$as_me:$LINENO: result: no" >&5
11280 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11281 #define $ac_tr_decl 0
11292 for ac_func
in getrlimit setrlimit getrusage
11294 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11295 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11296 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11297 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 cat >conftest.
$ac_ext <<_ACEOF
11303 cat confdefs.h
>>conftest.
$ac_ext
11304 cat >>conftest.
$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11307 #define $ac_tr_decl 1
11309 #include "ansidecl.h"
11310 #include "system.h"
11311 #ifdef HAVE_SYS_RESOURCE_H
11312 #include <sys/resource.h>
11320 char *(*pfn) = (char *(*)) $ac_func ;
11326 rm -f conftest.
$ac_objext
11327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328 (eval $ac_compile) 2>conftest.er1
11330 grep -v '^ *+' conftest.er1
>conftest.err
11332 cat conftest.err
>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } &&
11335 { ac_try
='test -z "$ac_c_werror_flag"
11336 || test ! -s conftest.err'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try
='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 eval "gcc_cv_have_decl_$ac_func=yes"
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.
$ac_ext >&5
11353 eval "gcc_cv_have_decl_$ac_func=no"
11355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11358 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11359 echo "$as_me:$LINENO: result: yes" >&5
11360 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11361 #define $ac_tr_decl 1
11365 echo "$as_me:$LINENO: result: no" >&5
11366 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11367 #define $ac_tr_decl 0
11375 cat >conftest.
$ac_ext <<_ACEOF
11378 cat confdefs.h
>>conftest.
$ac_ext
11379 cat >>conftest.
$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11382 #include "ansidecl.h"
11383 #include "system.h"
11384 #ifdef HAVE_SYS_RESOURCE_H
11385 #include <sys/resource.h>
11396 rm -f conftest.
$ac_objext
11397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11398 (eval $ac_compile) 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } &&
11405 { ac_try
='test -z "$ac_c_werror_flag"
11406 || test ! -s conftest.err'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; } &&
11412 { ac_try
='test -s conftest.$ac_objext'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11420 echo "$as_me: failed program was:" >&5
11421 sed 's/^/| /' conftest.
$ac_ext >&5
11424 cat >>confdefs.h
<<\_ACEOF
11425 #define rlim_t long
11429 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11432 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11433 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11434 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11436 for ac_func
in ldgetname
11438 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11439 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11440 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11441 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 cat >conftest.
$ac_ext <<_ACEOF
11447 cat confdefs.h
>>conftest.
$ac_ext
11448 cat >>conftest.
$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11451 #define $ac_tr_decl 1
11453 #include "ansidecl.h"
11454 #include "system.h"
11455 #ifdef HAVE_LDFCN_H
11466 char *(*pfn) = (char *(*)) $ac_func ;
11472 rm -f conftest.
$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474 (eval $ac_compile) 2>conftest.er1
11476 grep -v '^ *+' conftest.er1
>conftest.err
11478 cat conftest.err
>&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try
='test -z "$ac_c_werror_flag"
11482 || test ! -s conftest.err'
11483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; } &&
11488 { ac_try
='test -s conftest.$ac_objext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 eval "gcc_cv_have_decl_$ac_func=yes"
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.
$ac_ext >&5
11499 eval "gcc_cv_have_decl_$ac_func=no"
11501 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11505 echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11507 #define $ac_tr_decl 1
11511 echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11513 #define $ac_tr_decl 0
11522 for ac_func
in times
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_SYS_TIMES_H
11542 #include <sys/times.h>
11550 char *(*pfn) = (char *(*)) $ac_func ;
11556 rm -f conftest.
$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558 (eval $ac_compile) 2>conftest.er1
11560 grep -v '^ *+' conftest.er1
>conftest.err
11562 cat conftest.err
>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try
='test -z "$ac_c_werror_flag"
11566 || test ! -s conftest.err'
11567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568 (eval $ac_try) 2>&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); }; } &&
11572 { ac_try
='test -s conftest.$ac_objext'
11573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 eval "gcc_cv_have_decl_$ac_func=yes"
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.
$ac_ext >&5
11583 eval "gcc_cv_have_decl_$ac_func=no"
11585 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11588 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11589 echo "$as_me:$LINENO: result: yes" >&5
11590 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11591 #define $ac_tr_decl 1
11595 echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11597 #define $ac_tr_decl 0
11605 # More time-related stuff.
11606 echo "$as_me:$LINENO: checking for struct tms" >&5
11607 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11608 if test "${ac_cv_struct_tms+set}" = set; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.
$ac_ext <<_ACEOF
11615 cat confdefs.h
>>conftest.
$ac_ext
11616 cat >>conftest.
$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11619 #include "ansidecl.h"
11620 #include "system.h"
11621 #ifdef HAVE_SYS_TIMES_H
11622 #include <sys/times.h>
11633 rm -f conftest.
$ac_objext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>conftest.er1
11637 grep -v '^ *+' conftest.er1
>conftest.err
11639 cat conftest.err
>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } &&
11642 { ac_try
='test -z "$ac_c_werror_flag"
11643 || test ! -s conftest.err'
11644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645 (eval $ac_try) 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; } &&
11649 { ac_try
='test -s conftest.$ac_objext'
11650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651 (eval $ac_try) 2>&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); }; }; then
11655 ac_cv_struct_tms
=yes
11657 echo "$as_me: failed program was:" >&5
11658 sed 's/^/| /' conftest.
$ac_ext >&5
11660 ac_cv_struct_tms
=no
11662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11664 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11665 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11666 if test $ac_cv_struct_tms = yes; then
11668 cat >>confdefs.h
<<\_ACEOF
11669 #define HAVE_STRUCT_TMS 1
11674 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11675 # revisit after autoconf 2.50.
11676 echo "$as_me:$LINENO: checking for clock_t" >&5
11677 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11678 if test "${gcc_cv_type_clock_t+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.
$ac_ext <<_ACEOF
11685 cat confdefs.h
>>conftest.
$ac_ext
11686 cat >>conftest.
$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11689 #include "ansidecl.h"
11690 #include "system.h"
11700 rm -f conftest.
$ac_objext
11701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11702 (eval $ac_compile) 2>conftest.er1
11704 grep -v '^ *+' conftest.er1
>conftest.err
11706 cat conftest.err
>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
11709 { ac_try
='test -z "$ac_c_werror_flag"
11710 || test ! -s conftest.err'
11711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712 (eval $ac_try) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try
='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 gcc_cv_type_clock_t
=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.
$ac_ext >&5
11727 gcc_cv_type_clock_t
=no
11729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11731 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11732 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11733 if test $gcc_cv_type_clock_t = yes; then
11735 cat >>confdefs.h
<<\_ACEOF
11736 #define HAVE_CLOCK_T 1
11741 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11742 CFLAGS
="$saved_CFLAGS"
11744 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11745 if test "${enable_initfini_array+set}" = set; then
11746 enableval
="$enable_initfini_array"
11750 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11751 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11752 if test "${gcc_cv_initfini_array+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 if test "$cross_compiling" = yes; then
11756 gcc_cv_initfini_array
=no
11758 cat >conftest.
$ac_ext <<_ACEOF
11761 cat confdefs.h
>>conftest.
$ac_ext
11762 cat >>conftest.
$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11766 int main (void) { return x; }
11767 int foo (void) { x = 0; }
11768 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11770 rm -f conftest
$ac_exeext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11772 (eval $ac_link) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; }; then
11781 gcc_cv_initfini_array
=yes
11783 echo "$as_me: program exited with status $ac_status" >&5
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.
$ac_ext >&5
11787 ( exit $ac_status )
11788 gcc_cv_initfini_array
=no
11790 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11793 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11794 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11795 enable_initfini_array
=$gcc_cv_initfini_array
11798 if test $enable_initfini_array = yes; then
11800 cat >>confdefs.h
<<\_ACEOF
11801 #define HAVE_INITFINI_ARRAY 1
11806 # mkdir takes a single argument on some systems.
11807 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11808 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11809 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 cat >conftest.
$ac_ext <<_ACEOF
11815 cat confdefs.h
>>conftest.
$ac_ext
11816 cat >>conftest.
$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #ifdef HAVE_SYS_STAT_H
11821 # include <sys/stat.h>
11823 #ifdef HAVE_UNISTD_H
11824 # include <unistd.h>
11826 #ifdef HAVE_DIRECT_H
11827 # include <direct.h>
11837 rm -f conftest.
$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11841 grep -v '^ *+' conftest.er1
>conftest.err
11843 cat conftest.err
>&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
11846 { ac_try
='test -z "$ac_c_werror_flag"
11847 || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try
='test -s conftest.$ac_objext'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 gcc_cv_mkdir_takes_one_arg
=no
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.
$ac_ext >&5
11864 gcc_cv_mkdir_takes_one_arg
=yes
11866 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11868 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11869 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11870 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11872 cat >>confdefs.h
<<\_ACEOF
11873 #define MKDIR_TAKES_ONE_ARG 1
11885 # With Setjmp/Longjmp based exception handling.
11886 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11887 if test "${enable_sjlj_exceptions+set}" = set; then
11888 enableval
="$enable_sjlj_exceptions"
11889 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11891 cat >>confdefs.h
<<_ACEOF
11892 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11897 # For platforms with the unwind ABI which includes an unwind library,
11898 # libunwind, we can choose to use the system libunwind.
11900 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11901 if test "${with_system_libunwind+set}" = set; then
11902 withval
="$with_system_libunwind"
11906 # --------------------------------------------------------
11907 # Build, host, and target specific configuration fragments
11908 # --------------------------------------------------------
11910 # Collect build-machine-specific information.
11911 .
${srcdir}/config.build
11913 # Collect host-machine-specific information.
11914 .
${srcdir}/config.
host
11918 # Collect target-machine-specific information.
11919 .
${srcdir}/config.gcc
11921 extra_objs
="${host_extra_objs} ${extra_objs}"
11922 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11924 # Default the target-machine variables that were not explicitly set.
11925 if test x
"$tm_file" = x
11926 then tm_file
=$cpu_type/$cpu_type.h
; fi
11928 if test x
"$extra_headers" = x
11929 then extra_headers
=; fi
11931 if test x
$md_file = x
11932 then md_file
=$cpu_type/$cpu_type.md
; fi
11934 if test x
$out_file = x
11935 then out_file
=$cpu_type/$cpu_type.c
; fi
11937 if test x
"$tmake_file" = x
11938 then tmake_file
=$cpu_type/t-
$cpu_type
11941 if test x
"$dwarf2" = xyes
11942 then tm_file
="$tm_file tm-dwarf2.h"
11945 # Say what files are being used for the output code and MD file.
11946 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11947 echo "Using \`$srcdir/config/$md_file' as machine description file."
11949 # If any of the xm_file variables contain nonexistent files, warn
11950 # about them and drop them.
11953 for x
in $build_xm_file; do
11954 if test -f $srcdir/config
/$x
11956 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11957 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11960 build_xm_file
="$bx"
11963 for x
in $host_xm_file; do
11964 if test -f $srcdir/config
/$x
11966 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11967 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11973 for x
in $xm_file; do
11974 if test -f $srcdir/config
/$x
11976 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
11977 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11983 for f
in $tm_file; do
11986 if test $count = ax
; then
11987 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11989 echo "Using the following target machine macro files:"
11990 for f
in $tm_file; do
11991 echo " $srcdir/config/$f"
11995 if test x
$need_64bit_hwint = xyes
; then
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define NEED_64BIT_HOST_WIDE_INT 1
12003 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12005 cat >>confdefs.h
<<\_ACEOF
12006 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12012 for f
in $host_xm_file; do
12015 if test $count = a
; then
12017 elif test $count = ax
; then
12018 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12020 echo "Using the following host machine macro files:"
12021 for f
in $host_xm_file; do
12022 echo " $srcdir/config/$f"
12025 echo "Using ${out_host_hook_obj} for host machine hooks."
12027 if test "$host_xm_file" != "$build_xm_file"; then
12029 for f
in $build_xm_file; do
12032 if test $count = a
; then
12034 elif test $count = ax
; then
12035 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12037 echo "Using the following build machine macro files:"
12038 for f
in $build_xm_file; do
12039 echo " $srcdir/config/$f"
12048 # Check if a valid thread package
12049 case ${enable_threads} in
12052 target_thread_file
='single'
12056 target_thread_file
='single'
12058 aix | dce | gnat | irix | posix | posix95 | rtems | \
12059 single | solaris | vxworks | win32
)
12060 target_thread_file
=${enable_threads}
12063 echo "${enable_threads} is an unknown thread package" 1>&2
12068 if test x
${thread_file} = x
; then
12069 # No thread file set by target-specific clauses in config.gcc,
12070 # so use file chosen by default logic above
12071 thread_file
=${target_thread_file}
12074 # Make gthr-default.h if we have a thread file.
12076 if test $thread_file != single
; then
12077 rm -f gthr-default.h
12078 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12079 gthread_flags
=-DHAVE_GTHR_DEFAULT
12088 if test x
$enable___cxa_atexit = xyes || \
12089 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12090 if test x
$host = x
$target; then
12091 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12092 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12093 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 cat >conftest.
$ac_ext <<_ACEOF
12099 cat confdefs.h
>>conftest.
$ac_ext
12100 cat >>conftest.
$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12102 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12104 #define __cxa_atexit innocuous___cxa_atexit
12106 /* System header to define __stub macros and hopefully few prototypes,
12107 which can conflict with char __cxa_atexit (); below.
12108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 <limits.h> exists even on freestanding compilers. */
12112 # include <limits.h>
12114 # include <assert.h>
12117 #undef __cxa_atexit
12119 /* Override any gcc2 internal prototype to avoid an error. */
12124 /* We use char because int might match the return type of a gcc2
12125 builtin and then its argument prototype would still apply. */
12126 char __cxa_atexit ();
12127 /* The GNU C library defines this for functions which it implements
12128 to always fail with ENOSYS. Some functions are actually named
12129 something starting with __ and the normal name is an alias. */
12130 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12133 char (*f) () = __cxa_atexit;
12142 return f != __cxa_atexit;
12147 rm -f conftest.
$ac_objext conftest
$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>conftest.er1
12151 grep -v '^ *+' conftest.er1
>conftest.err
12153 cat conftest.err
>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try
='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try
='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_func___cxa_atexit
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 ac_cv_func___cxa_atexit
=no
12176 rm -f conftest.err conftest.
$ac_objext \
12177 conftest
$ac_exeext conftest.
$ac_ext
12179 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12180 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12181 if test $ac_cv_func___cxa_atexit = yes; then
12184 echo "__cxa_atexit can't be enabled on this target"
12188 # We can't check for __cxa_atexit when building a cross, so assume
12192 if test x
$use_cxa_atexit = xyes
; then
12194 cat >>confdefs.h
<<\_ACEOF
12195 #define DEFAULT_USE_CXA_ATEXIT 1
12201 # Look for a file containing extra machine modes.
12202 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12203 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12206 cat >>confdefs.h
<<_ACEOF
12207 #define EXTRA_MODES_FILE "config/$extra_modes"
12212 # Convert extra_options into a form suitable for Makefile use.
12214 for f
in $extra_options; do
12215 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12219 # auto-host.h is the file containing items generated by autoconf and is
12220 # the first file included by config.h.
12221 # If host=build, it is correct to have bconfig include auto-host.h
12222 # as well. If host!=build, we are in error and need to do more
12223 # work to find out the build config parameters.
12224 if test x
$host = x
$build
12226 build_auto
=auto-host.h
12228 # We create a subdir, then run autoconf in the subdir.
12229 # To prevent recursion we set host and build for the new
12230 # invocation of configure to the build for this invocation
12237 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12238 *) realsrcdir
=..
/${srcdir};;
12240 saved_CFLAGS
="${CFLAGS}"
12241 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12242 ${realsrcdir}/configure \
12243 --enable-languages=${enable_languages-all} \
12244 --target=$target_alias --host=$build_alias --build=$build_alias
12245 CFLAGS
="${saved_CFLAGS}"
12247 # We just finished tests for the build machine, so rename
12248 # the file auto-build.h in the gcc directory.
12249 mv auto-host.h ..
/auto-build.h
12252 build_auto
=auto-build.h
12256 tm_file
="${tm_file} defaults.h"
12257 tm_p_file
="${tm_p_file} tm-preds.h"
12258 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12259 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12260 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12261 # put this back in temporarily.
12262 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12268 # Compile in configure arguments.
12269 if test -f configargs.h
; then
12270 # Being re-configured.
12271 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12272 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12274 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12277 # Double all backslashes and backslash all quotes to turn
12278 # gcc_config_arguments into a C string.
12279 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12280 $gcc_config_arguments
12282 gcc_config_arguments_str
=`cat conftest.out`
12285 cat > configargs.h
<<EOF
12286 /* Generated automatically. */
12287 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12288 static const char thread_model[] = "$thread_file";
12290 static const struct {
12291 const char *name, *value;
12292 } configure_default_options[] = $configure_default_options;
12295 # Internationalization
12296 # If we haven't got the data from the intl directory,
12297 # assume NLS is disabled.
12305 if test -f ..
/intl
/config.intl
; then
12306 . ..
/intl
/config.intl
12308 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12309 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12310 if test x
"$USE_NLS" != xyes
; then
12311 echo "$as_me:$LINENO: result: no" >&5
12312 echo "${ECHO_T}no" >&6
12314 echo "$as_me:$LINENO: result: yes" >&5
12315 echo "${ECHO_T}yes" >&6
12317 cat >>confdefs.h
<<\_ACEOF
12318 #define ENABLE_NLS 1
12322 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12323 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12324 # Look for .po and .gmo files in the source directory.
12327 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12328 # If there aren't any .gmo files the shell will give us the
12329 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12331 case "$cat" in *\
**)
12334 # The quadruple backslash is collapsed to a double backslash
12335 # by the backticks, then collapsed again by the double quotes,
12336 # leaving us with one backslash in the sed expression (right
12337 # before the dot that mustn't act as a wildcard).
12338 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12339 lang
=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12340 # The user is allowed to set LINGUAS to a list of languages to
12341 # install catalogs for. If it's empty that means "all of them."
12342 if test "x$LINGUAS" = x
; then
12343 CATALOGS
="$CATALOGS $cat"
12344 XLINGUAS
="$XLINGUAS $lang"
12346 case "$LINGUAS" in *$lang*)
12347 CATALOGS
="$CATALOGS $cat"
12348 XLINGUAS
="$XLINGUAS $lang"
12353 LINGUAS
="$XLINGUAS"
12354 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12355 echo "${ECHO_T}$LINGUAS" >&6
12358 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12359 # -liconv on the link line twice.
12360 case "$LIBINTL" in *$LIBICONV*)
12364 # Windows32 Registry support for specifying GCC installation paths.
12365 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12366 if test "${enable_win32_registry+set}" = set; then
12367 enableval
="$enable_win32_registry"
12372 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12373 if test "x$enable_win32_registry" != xno
; then
12374 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12375 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12376 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 ac_func_search_save_LIBS
=$LIBS
12380 ac_cv_search_RegOpenKeyExA
=no
12381 cat >conftest.
$ac_ext <<_ACEOF
12384 cat confdefs.h
>>conftest.
$ac_ext
12385 cat >>conftest.
$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12388 /* Override any gcc2 internal prototype to avoid an error. */
12392 /* We use char because int might match the return type of a gcc2
12393 builtin and then its argument prototype would still apply. */
12394 char RegOpenKeyExA ();
12403 rm -f conftest.
$ac_objext conftest
$ac_exeext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>conftest.er1
12407 grep -v '^ *+' conftest.er1
>conftest.err
12409 cat conftest.err
>&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } &&
12412 { ac_try
='test -z "$ac_c_werror_flag"
12413 || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try
='test -s conftest$ac_exeext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12425 ac_cv_search_RegOpenKeyExA
="none required"
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.
$ac_ext >&5
12431 rm -f conftest.err conftest.
$ac_objext \
12432 conftest
$ac_exeext conftest.
$ac_ext
12433 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12434 for ac_lib
in advapi32
; do
12435 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12436 cat >conftest.
$ac_ext <<_ACEOF
12439 cat confdefs.h
>>conftest.
$ac_ext
12440 cat >>conftest.
$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12443 /* Override any gcc2 internal prototype to avoid an error. */
12447 /* We use char because int might match the return type of a gcc2
12448 builtin and then its argument prototype would still apply. */
12449 char RegOpenKeyExA ();
12458 rm -f conftest.
$ac_objext conftest
$ac_exeext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>conftest.er1
12462 grep -v '^ *+' conftest.er1
>conftest.err
12464 cat conftest.err
>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try
='test -z "$ac_c_werror_flag"
12468 || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try
='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.
$ac_ext >&5
12487 rm -f conftest.err conftest.
$ac_objext \
12488 conftest
$ac_exeext conftest.
$ac_ext
12491 LIBS
=$ac_func_search_save_LIBS
12493 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12494 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12495 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12496 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12499 enable_win32_registry
=no
12504 if test "x$enable_win32_registry" != xno
; then
12506 cat >>confdefs.h
<<\_ACEOF
12507 #define ENABLE_WIN32_REGISTRY 1
12511 if test "x$enable_win32_registry" != xyes \
12512 && test "x$enable_win32_registry" != x
; then
12514 cat >>confdefs.h
<<_ACEOF
12515 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12523 # Get an absolute path to the GCC top-level source directory
12524 holddir
=`${PWDCMD-pwd}`
12526 topdir
=`${PWDCMD-pwd}`
12529 # Conditionalize the makefile for this host machine.
12531 for f
in ${host_xmake_file}
12533 if test -f ${srcdir}/config
/$f
12535 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12539 # Conditionalize the makefile for this target machine.
12541 for f
in ${tmake_file}
12543 if test -f ${srcdir}/config
/$f
12545 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12548 tmake_file
="${tmake_file_}"
12550 # If the host doesn't support symlinks, modify CC in
12551 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12552 # Otherwise, we can use "CC=$(CC)".
12556 cc_set_by_configure
="\$(CC)"
12557 quoted_cc_set_by_configure
="\$(CC)"
12558 stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12559 quoted_stage_prefix_set_by_configure
="\$(STAGE_PREFIX)"
12562 cc_set_by_configure
="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12563 quoted_cc_set_by_configure
="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12564 stage_prefix_set_by_configure
="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12565 quoted_stage_prefix_set_by_configure
="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12569 # This is a terrible hack which will go away some day.
12570 host_cc_for_libada
=${CC}
12573 out_object_file
=`basename $out_file .c`.o
12575 tm_file_list
="options.h"
12576 tm_include_list
="options.h"
12577 for f
in $tm_file; do
12580 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12581 tm_include_list
="${tm_include_list} $f"
12584 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12585 tm_include_list
="${tm_include_list} config/$f"
12592 for f
in $tm_p_file; do
12595 tm_p_file_list
="${tm_p_file_list} $f"
12596 tm_p_include_list
="${tm_p_include_list} $f"
12599 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12600 tm_p_include_list
="${tm_p_include_list} config/$f"
12606 for f
in $xm_file; do
12609 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12610 xm_include_list
="${xm_include_list} $f"
12613 xm_file_list
="${xm_file_list} $f"
12614 xm_include_list
="${xm_include_list} $f"
12617 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12618 xm_include_list
="${xm_include_list} config/$f"
12624 host_xm_include_list
=
12625 for f
in $host_xm_file; do
12628 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12629 host_xm_include_list
="${host_xm_include_list} $f"
12632 host_xm_file_list
="${host_xm_file_list} $f"
12633 host_xm_include_list
="${host_xm_include_list} $f"
12636 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12637 host_xm_include_list
="${host_xm_include_list} config/$f"
12642 build_xm_file_list
=
12643 for f
in $build_xm_file; do
12646 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12647 build_xm_include_list
="${build_xm_include_list} $f"
12649 auto-build.h | auto-host.h
)
12650 build_xm_file_list
="${build_xm_file_list} $f"
12651 build_xm_include_list
="${build_xm_include_list} $f"
12654 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12655 build_xm_include_list
="${build_xm_include_list} config/$f"
12660 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12661 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12664 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12665 if test x
$host != x
$target
12667 CROSS
="-DCROSS_COMPILE"
12669 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12670 case "$host","$target" in
12671 # Darwin crosses can use the host system's libraries and headers,
12672 # because of the fat library support. Of course, it must be the
12673 # same version of Darwin on both sides. Allow the user to
12674 # just say --target=foo-darwin without a version number to mean
12675 # "the version on this system".
12676 *-*-darwin*,*-*-darwin*)
12677 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12678 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12679 if test $hostos = $targetos -o $targetos = darwin
; then
12681 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12686 i?
86-*-*,x86_64-
*-* \
12687 | powerpc
*-*-*,powerpc64
*-*-*)
12688 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12690 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12691 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)
12692 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12695 # If this is a cross-compiler that does not
12696 # have its own set of headers then define
12699 # If this is using newlib, without having the headers available now,
12700 # then define inhibit_libc in LIBGCC2_CFLAGS.
12701 # This prevents libgcc2 from containing any code which requires libc
12704 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12705 test x
$with_newlib = xyes
; } &&
12706 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
12707 inhibit_libc
=-Dinhibit_libc
12711 # When building gcc with a cross-compiler, we need to adjust things so
12712 # that the generator programs are still built with the native compiler.
12713 # Also, we cannot run fixincludes or fix-header.
12715 # These are the normal (build=host) settings:
12716 CC_FOR_BUILD
='$(CC)'
12717 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12718 STMP_FIXINC
=stmp-fixinc
12720 # Possibly disable fixproto, on a per-target basis.
12721 case ${use_fixproto} in
12726 STMP_FIXPROTO
=stmp-fixproto
12731 # And these apply if build != host, or we are generating coverage data
12732 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12734 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12736 if test "x$TARGET_SYSTEM_ROOT" = x
; then
12737 if test "x$STMP_FIXPROTO" != x
; then
12738 STMP_FIXPROTO
=stmp-install-fixproto
12743 # Expand extra_headers to include complete path.
12744 # This substitutes for lots of t-* files.
12745 extra_headers_list
=
12746 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12747 for file in ${extra_headers} ; do
12748 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12751 # Define collect2 in Makefile.
12752 case $host_can_use_collect2 in
12754 *) collect2
='collect2$(exeext)' ;;
12758 # Add a definition of USE_COLLECT2 if system wants one.
12759 case $use_collect2 in
12760 no
) use_collect2
= ;;
12763 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12764 xm_defines
="${xm_defines} USE_COLLECT2"
12765 case $host_can_use_collect2 in
12767 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12768 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12769 { (exit 1); exit 1; }; }
12775 # ---------------------------
12776 # Assembler & linker features
12777 # ---------------------------
12779 # Identify the assembler which will work hand-in-glove with the newly
12780 # built GCC, so that we can examine its features. This is the assembler
12781 # which will be driven by the driver program.
12783 # If build != host, and we aren't building gas in-tree, we identify a
12784 # build->target assembler and hope that it will have the same features
12785 # as the host->target assembler we'll be using.
12786 echo "$as_me:$LINENO: checking what assembler to use" >&5
12787 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
12790 gcc_cv_gas_major_version
=
12791 gcc_cv_gas_minor_version
=
12792 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12793 if test -x "$DEFAULT_ASSEMBLER"; then
12794 gcc_cv_as
="$DEFAULT_ASSEMBLER"
12795 elif test -x as
$build_exeext; then
12796 # Build using assembler in the current directory.
12797 gcc_cv_as
=.
/as
$build_exeext
12798 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
12799 && test -f ..
/gas
/Makefile \
12800 && test x
$build = x
$host; then
12801 # Single tree build which includes gas. We want to prefer it
12802 # over whatever linker top-level may have detected, since
12803 # we'll use what we're building after installation anyway.
12805 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12806 for f
in $gcc_cv_as_bfd_srcdir/configure \
12807 $gcc_cv_as_gas_srcdir/configure \
12808 $gcc_cv_as_gas_srcdir/configure.
in \
12809 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
12810 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12811 if test x
$gcc_cv_gas_version != x
; then
12815 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12816 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12817 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12818 case $gcc_cv_gas_patch_version in
12819 "") gcc_cv_gas_patch_version
="0" ;;
12821 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12822 + $gcc_cv_gas_minor_version \) \* 1000 \
12823 + $gcc_cv_gas_patch_version`
12825 rm -f as
$build_exeext
12826 $LN_S ..
/gas
/as-new
$build_exeext as
$build_exeext 2>/dev
/null
12827 in_tree_gas_is_elf
=no
12828 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
12829 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
12830 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
12832 in_tree_gas_is_elf
=yes
12834 elif test -x "$AS_FOR_TARGET"; then
12835 gcc_cv_as
="$AS_FOR_TARGET"
12836 elif test -x "$AS" && test x
$host = x
$target; then
12840 gcc_version
=`cat $srcdir/BASE-VER`
12842 if test "x$gcc_cv_as" = x
; then
12843 # Search the same directories that the installed compiler will
12844 # search. Else we may find the wrong assembler and lose. If we
12845 # do not find a suitable assembler binary, then try the user's
12848 # Also note we have to check MD_EXEC_PREFIX before checking the
12849 # user's path. Unfortunately, there is no good way to get at the
12850 # value of MD_EXEC_PREFIX here. So we do a brute force search
12851 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12852 # to be fixed as part of the make/configure rewrite too.
12854 if test "x$exec_prefix" = xNONE
; then
12855 if test "x$prefix" = xNONE
; then
12856 test_prefix
=/usr
/local
12858 test_prefix
=$prefix
12861 test_prefix
=$exec_prefix
12864 # If the loop below does not find an assembler, then use whatever
12865 # one we can find in the users's path. We are looking for a
12866 # ${build} -> ${target} assembler.
12867 if test "x$program_prefix" != xNONE
; then
12868 gcc_cv_as
=${program_prefix}as
$build_exeext
12869 elif test x
$build != x
$host && test x
$build != x
$target; then
12870 gcc_cv_as
=${target_noncanonical}-as$build_exeext
12872 gcc_cv_as
=`echo as | sed "${program_transform_name}"`$build_exeext
12875 if test x
$host = x
$build; then
12876 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
12877 $test_prefix/libexec/gcc/$target_noncanonical \
12878 /usr/lib/gcc/$target_noncanonical/$gcc_version \
12879 /usr/lib/gcc/$target_noncanonical \
12880 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
12881 $test_prefix/$target_noncanonical/bin"
12886 if test x
$build = x
$target; then
12887 test_dirs
="$test_dirs \
12892 /bsd43/usr/lib/cmplrs/cc \
12893 /usr/cross64/usr/bin \
12894 /usr/lib/cmplrs/cc \
12895 /sysv/usr/lib/cmplrs/cc \
12896 /svr4/usr/lib/cmplrs/cc \
12900 for dir
in $test_dirs; do
12901 if test -x $dir/as
$build_exeext; then
12902 gcc_cv_as
=$dir/as
$build_exeext
12907 case $in_tree_gas in
12909 echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
12910 echo "${ECHO_T}\"newly built gas\"" >&6
12913 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
12914 echo "${ECHO_T}$gcc_cv_as" >&6
12918 # Identify the linker which will work hand-in-glove with the newly
12919 # built GCC, so that we can examine its features. This is the linker
12920 # which will be driven by the driver program.
12922 # If build != host, and we aren't building gas in-tree, we identify a
12923 # build->target linker and hope that it will have the same features
12924 # as the host->target linker we'll be using.
12925 echo "$as_me:$LINENO: checking what linker to use" >&5
12926 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
12929 gcc_cv_gld_major_version
=
12930 gcc_cv_gld_minor_version
=
12931 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
12932 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12933 if test -x "$DEFAULT_LINKER"; then
12934 gcc_cv_ld
="$DEFAULT_LINKER"
12935 elif test -x collect-ld
$build_exeext; then
12936 # Build using linker in the current directory.
12937 gcc_cv_ld
=.
/collect-ld
$build_exeext
12938 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
12939 && test -f ..
/ld
/Makefile \
12940 && test x
$build = x
$host; then
12941 # Single tree build which includes ld. We want to prefer it
12942 # over whatever linker top-level may have detected, since
12943 # we'll use what we're building after installation anyway.
12945 in_tree_ld_is_elf
=no
12946 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
12947 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
12948 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
12949 in_tree_ld_is_elf
=yes
12951 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
12953 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12954 if test x
$gcc_cv_gld_version != x
; then
12958 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
12959 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12960 rm -f collect-ld
$build_exeext
12961 $LN_S ..
/ld
/ld-new
$build_exeext collect-ld
$build_exeext 2>/dev
/null
12962 elif test -x "$LD_FOR_TARGET"; then
12963 gcc_cv_ld
="$LD_FOR_TARGET"
12964 elif test -x "$LD" && test x
$host = x
$target; then
12968 if test "x$gcc_cv_ld" = x
; then
12969 # Search the same directories that the installed compiler will
12970 # search. Else we may find the wrong linker and lose. If we
12971 # do not find a suitable linker binary, then try the user's
12974 # Also note we have to check MD_EXEC_PREFIX before checking the
12975 # user's path. Unfortunately, there is no good way to get at the
12976 # value of MD_EXEC_PREFIX here. So we do a brute force search
12977 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
12978 # to be fixed as part of the make/configure rewrite too.
12980 if test "x$exec_prefix" = xNONE
; then
12981 if test "x$prefix" = xNONE
; then
12982 test_prefix
=/usr
/local
12984 test_prefix
=$prefix
12987 test_prefix
=$exec_prefix
12990 # If the loop below does not find a linker, then use whatever
12991 # one we can find in the users's path. We are looking for a
12992 # ${build} -> ${target} linker.
12993 if test "x$program_prefix" != xNONE
; then
12994 gcc_cv_ld
=${program_prefix}ld
$build_exeext
12995 elif test x
$build != x
$host && test x
$build != x
$target; then
12996 gcc_cv_ld
=${target_noncanonical}-ld$build_exeext
12998 gcc_cv_ld
=`echo ld | sed "${program_transform_name}"`$build_exeext
13001 if test x
$host = x
$build; then
13002 test_dirs
="$test_prefix/libexec/gcc/$target_noncanonical/$gcc_version \
13003 $test_prefix/libexec/gcc/$target_noncanonical \
13004 /usr/lib/gcc/$target_noncanonical/$gcc_version \
13005 /usr/lib/gcc/$target_noncanonical \
13006 $test_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version \
13007 $test_prefix/$target_noncanonical/bin"
13012 if test x
$build = x
$target; then
13013 test_dirs
="$test_dirs \
13018 /bsd43/usr/lib/cmplrs/cc \
13019 /usr/cross64/usr/bin \
13020 /usr/lib/cmplrs/cc \
13021 /sysv/usr/lib/cmplrs/cc \
13022 /svr4/usr/lib/cmplrs/cc \
13026 for dir
in $test_dirs; do
13027 if test -x $dir/ld
$build_exeext; then
13028 gcc_cv_ld
=$dir/ld
$build_exeext
13033 case $in_tree_ld in
13035 echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13036 echo "${ECHO_T}\"newly built ld\"" >&6
13039 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13040 echo "${ECHO_T}$gcc_cv_ld" >&6
13044 # Figure out what nm we will be using.
13045 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13046 echo "$as_me:$LINENO: checking what nm to use" >&5
13047 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13049 if test -x nm
$build_exeext; then
13050 gcc_cv_nm
=.
/nm
$build_exeext
13051 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13052 && test -f ..
/binutils
/Makefile
; then
13053 # Single tree build which includes binutils.
13055 gcc_cv_nm
=.
/nm
$build_exeext
13056 rm -f nm
$build_exeext
13057 $LN_S ..
/binutils
/nm-new
$build_exeext nm
$build_exeext 2>/dev
/null
13058 elif test "x$program_prefix" != xNONE
; then
13059 gcc_cv_nm
=${program_prefix}nm
$build_exeext
13060 elif test x
$build != x
$host && test x
$build != x
$target; then
13061 gcc_cv_nm
=${target_noncanonical}-nm$build_exeext
13063 gcc_cv_nm
=`echo nm | sed "${program_transform_name}"`$build_exeext
13065 case $in_tree_nm in
13066 yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13067 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13068 no
) echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13069 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13072 # Figure out what objdump we will be using.
13073 echo "$as_me:$LINENO: checking what objdump to use" >&5
13074 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13076 if test -x objdump
$build_exeext; then
13077 gcc_cv_objdump
=.
/objdump
$build_exeext
13078 elif test -f $gcc_cv_binutils_srcdir/configure.
in \
13079 && test -f ..
/binutils
/Makefile
; then
13080 # Single tree build which includes binutils.
13081 in_tree_objdump
=yes
13082 gcc_cv_objdump
=.
/objdump
$build_exeext
13083 rm -f objdump
$build_exeext
13084 $LN_S ..
/binutils
/objdump
$build_exeext objdump
$build_exeext 2>/dev
/null
13085 elif test "x$program_prefix" != xNONE
; then
13086 gcc_cv_objdump
=${program_prefix}objdump
$build_exeext
13087 elif test x
$build != x
$host && test x
$build != x
$target; then
13088 gcc_cv_objdump
=${target_noncanonical}-objdump$build_exeext
13090 gcc_cv_objdump
=`echo objdump | \
13091 sed "${program_transform_name}"`$build_exeext
13093 case $in_tree_objdump in
13094 yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13095 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13096 no
) echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13097 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13100 # Figure out what assembler alignment features are present.
13101 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13102 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13103 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13104 echo $ECHO_N "(cached) $ECHO_C" >&6
13106 gcc_cv_as_balign_and_p2align
=no
13107 if test $in_tree_gas = yes; then
13108 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13109 then gcc_cv_as_balign_and_p2align
=yes
13111 elif test x
$gcc_cv_as != x
; then
13113 .p2align 2' > conftest.s
13114 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }
13121 gcc_cv_as_balign_and_p2align
=yes
13123 echo "configure: failed program was" >&5
13126 rm -f conftest.o conftest.s
13129 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13130 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13131 if test $gcc_cv_as_balign_and_p2align = yes; then
13133 cat >>confdefs.h
<<\_ACEOF
13134 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13139 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13140 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13141 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 gcc_cv_as_max_skip_p2align
=no
13145 if test $in_tree_gas = yes; then
13146 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13147 then gcc_cv_as_max_skip_p2align
=yes
13149 elif test x
$gcc_cv_as != x
; then
13150 echo '.p2align 4,,7' > conftest.s
13151 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }
13158 gcc_cv_as_max_skip_p2align
=yes
13160 echo "configure: failed program was" >&5
13163 rm -f conftest.o conftest.s
13166 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13167 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13168 if test $gcc_cv_as_max_skip_p2align = yes; then
13170 cat >>confdefs.h
<<\_ACEOF
13171 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13176 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13177 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13178 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 gcc_cv_as_subsection_m1
=no
13182 if test $in_tree_gas = yes; then
13183 if test $in_tree_gas_is_elf = yes \
13184 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13185 then gcc_cv_as_subsection_m1
=yes
13187 elif test x
$gcc_cv_as != x
; then
13188 echo 'conftest_label1: .word 0
13190 conftest_label2: .word 0
13191 .previous' > conftest.s
13192 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }
13199 if test x
$gcc_cv_nm != x
; then
13200 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13201 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13202 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13204 else gcc_cv_as_subsection_m1
=yes
13206 rm -f conftest.nm1 conftest.nm2
13209 echo "configure: failed program was" >&5
13212 rm -f conftest.o conftest.s
13215 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13216 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13217 if test $gcc_cv_as_subsection_m1 = yes; then
13219 cat >>confdefs.h
<<\_ACEOF
13220 #define HAVE_GAS_SUBSECTION_ORDERING 1
13225 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13226 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13227 if test "${gcc_cv_as_weak+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 if test $in_tree_gas = yes; then
13232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13233 then gcc_cv_as_weak
=yes
13235 elif test x
$gcc_cv_as != x
; then
13236 echo ' .weak foobar' > conftest.s
13237 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }
13246 echo "configure: failed program was" >&5
13249 rm -f conftest.o conftest.s
13252 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13253 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13254 if test $gcc_cv_as_weak = yes; then
13256 cat >>confdefs.h
<<\_ACEOF
13257 #define HAVE_GAS_WEAK 1
13262 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13263 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13264 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 gcc_cv_as_nsubspa_comdat
=no
13268 if test $in_tree_gas = yes; then
13269 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13270 then gcc_cv_as_nsubspa_comdat
=yes
13272 elif test x
$gcc_cv_as != x
; then
13273 echo ' .SPACE $TEXT$
13274 .NSUBSPA $CODE$,COMDAT' > conftest.s
13275 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }
13282 gcc_cv_as_nsubspa_comdat
=yes
13284 echo "configure: failed program was" >&5
13287 rm -f conftest.o conftest.s
13290 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13291 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13292 if test $gcc_cv_as_nsubspa_comdat = yes; then
13294 cat >>confdefs.h
<<\_ACEOF
13295 #define HAVE_GAS_NSUBSPA_COMDAT 1
13300 # .hidden needs to be supported in both the assembler and the linker,
13301 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13302 # This is irritatingly difficult to feature test for; we have to check the
13303 # date string after the version number. If we've got an in-tree
13304 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13306 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13307 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13308 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13309 if test "${gcc_cv_as_hidden+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 gcc_cv_as_hidden
=no
13313 if test $in_tree_gas = yes; then
13314 if test $in_tree_gas_is_elf = yes \
13315 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13316 then gcc_cv_as_hidden
=yes
13318 elif test x
$gcc_cv_as != x
; then
13319 echo ' .hidden foobar
13320 foobar:' > conftest.s
13321 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323 (eval $ac_try) 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; }
13328 gcc_cv_as_hidden
=yes
13330 echo "configure: failed program was" >&5
13333 rm -f conftest.o conftest.s
13336 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13337 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13340 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13341 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13342 if test "${gcc_cv_ld_hidden+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 if test $in_tree_ld = yes ; then
13346 gcc_cv_ld_hidden
=no
13347 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 \
13348 && test $in_tree_ld_is_elf = yes; then
13349 gcc_cv_ld_hidden
=yes
13352 gcc_cv_ld_hidden
=yes
13353 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13354 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13355 ld_vers
=`echo $ld_ver | sed -n \
13356 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13357 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13358 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13359 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13360 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13361 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13362 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p'`
13363 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'`
13364 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13365 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13366 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13367 if test 0"$ld_date" -lt 20020404; then
13368 if test -n "$ld_date"; then
13369 # If there was date string, but was earlier than 2002-04-04, fail
13370 gcc_cv_ld_hidden
=no
13371 elif test -z "$ld_vers"; then
13372 # If there was no date string nor ld version number, something is wrong
13373 gcc_cv_ld_hidden
=no
13375 test -z "$ld_vers_patch" && ld_vers_patch
=0
13376 if test "$ld_vers_major" -lt 2; then
13377 gcc_cv_ld_hidden
=no
13378 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13379 gcc_cv_ld_hidden
="no"
13380 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13381 gcc_cv_ld_hidden
=no
13386 case "${target}" in
13387 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13388 gcc_cv_ld_hidden
=yes
13391 gcc_cv_ld_hidden
=no
13397 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13398 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13399 libgcc_visibility
=no
13402 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13403 libgcc_visibility
=yes
13405 cat >>confdefs.h
<<\_ACEOF
13406 #define HAVE_GAS_HIDDEN 1
13411 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13412 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13413 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13414 if test "${gcc_cv_as_leb128+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13417 gcc_cv_as_leb128
=no
13418 if test $in_tree_gas = yes; then
13419 if test $in_tree_gas_is_elf = yes \
13420 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13421 then gcc_cv_as_leb128
=yes
13423 elif test x
$gcc_cv_as != x
; then
13430 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; }
13437 # GAS versions before 2.11 do not support uleb128,
13438 # despite appearing to.
13439 # ??? There exists an elf-specific test that will crash
13440 # the assembler. Perhaps it's better to figure out whether
13441 # arbitrary sections are supported and try the test.
13442 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13443 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
13444 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13445 as_major
=`echo $as_ver | sed 's/\..*//'`
13446 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13447 if test $as_major -eq 2 && test $as_minor -lt 11
13449 else gcc_cv_as_leb128
=yes
13453 echo "configure: failed program was" >&5
13456 rm -f conftest.o conftest.s
13459 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13460 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13461 if test $gcc_cv_as_leb128 = yes; then
13463 cat >>confdefs.h
<<\_ACEOF
13464 #define HAVE_AS_LEB128 1
13469 # GAS versions up to and including 2.11.0 may mis-optimize
13471 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13472 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13473 if test "${gcc_cv_as_eh_frame+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 gcc_cv_as_eh_frame
=no
13477 if test $in_tree_gas = yes; then
13478 if test $in_tree_gas_is_elf = yes \
13479 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13480 then gcc_cv_as_eh_frame
=yes
13482 elif test x
$gcc_cv_as != x
; then
13489 .section .eh_frame,"aw",@progbits
13491 .4byte .LECIE1-.LSCIE1
13505 .4byte .LEFDE1-.LASFDE1
13507 .4byte .LASFDE1-__FRAME_BEGIN__
13514 .LEFDE1:' > conftest.s
13515 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; }
13522 cat > conftest.lit
<<EOF
13523 0000 10000000 00000000 017a0001 781a0004 .........z..x...
13524 0010 01000000 12000000 18000000 00000000 ................
13525 0020 08000000 04080000 0044 .........D
13527 cat > conftest.big
<<EOF
13528 0000 00000010 00000000 017a0001 781a0004 .........z..x...
13529 0010 00000001 00000012 00000018 00000000 ................
13530 0020 00000008 04000000 0844 .........D
13532 # If the assembler didn't choke, and we can objdump,
13533 # and we got the correct data, then succeed.
13534 if test x
$gcc_cv_objdump != x \
13535 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
13536 |
tail -3 > conftest.got \
13537 && { cmp conftest.lit conftest.got
> /dev
/null
2>&1 \
13538 ||
cmp conftest.big conftest.got
> /dev
/null
2>&1; }
13540 gcc_cv_as_eh_frame
=yes
13541 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 gcc_cv_as_eh_frame
=buggy
13549 # Uh oh, what do we do now?
13550 gcc_cv_as_eh_frame
=no
13553 echo "configure: failed program was" >&5
13556 rm -f conftest.o conftest.s
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13560 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13563 if test $gcc_cv_as_eh_frame = buggy
; then
13565 cat >>confdefs.h
<<\_ACEOF
13566 #define USE_AS_TRADITIONAL_FORMAT 1
13571 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13572 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13573 if test "${gcc_cv_as_shf_merge+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 gcc_cv_as_shf_merge
=no
13577 if test $in_tree_gas = yes; then
13578 if test $in_tree_gas_is_elf = yes \
13579 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13580 then gcc_cv_as_shf_merge
=yes
13582 elif test x
$gcc_cv_as != x
; then
13583 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13584 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }
13591 gcc_cv_as_shf_merge
=yes
13593 echo "configure: failed program was" >&5
13596 rm -f conftest.o conftest.s
13599 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13600 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13602 if test $gcc_cv_as_shf_merge = no
; then
13603 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13604 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13605 if test "${gcc_cv_as_shf_merge+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 gcc_cv_as_shf_merge
=no
13609 if test $in_tree_gas = yes; then
13610 if test $in_tree_gas_is_elf = yes \
13611 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13612 then gcc_cv_as_shf_merge
=yes
13614 elif test x
$gcc_cv_as != x
; then
13615 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13616 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }
13623 gcc_cv_as_shf_merge
=yes
13625 echo "configure: failed program was" >&5
13628 rm -f conftest.o conftest.s
13631 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13632 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13636 cat >>confdefs.h
<<_ACEOF
13637 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13641 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13642 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13643 if test "${gcc_cv_as_comdat_group+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 gcc_cv_as_comdat_group
=no
13647 if test $in_tree_gas = yes; then
13648 if test $in_tree_gas_is_elf = yes \
13649 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13650 then gcc_cv_as_comdat_group
=yes
13652 elif test x
$gcc_cv_as != x
; then
13653 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13654 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }
13661 gcc_cv_as_comdat_group
=yes
13663 echo "configure: failed program was" >&5
13666 rm -f conftest.o conftest.s
13669 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
13670 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
13672 if test $gcc_cv_as_comdat_group = yes; then
13673 gcc_cv_as_comdat_group_percent
=no
13675 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13676 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13677 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 gcc_cv_as_comdat_group_percent
=no
13681 if test $in_tree_gas = yes; then
13682 if test $in_tree_gas_is_elf = yes \
13683 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13684 then gcc_cv_as_comdat_group_percent
=yes
13686 elif test x
$gcc_cv_as != x
; then
13687 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
13688 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }
13695 gcc_cv_as_comdat_group_percent
=yes
13697 echo "configure: failed program was" >&5
13700 rm -f conftest.o conftest.s
13703 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
13704 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
13707 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
13709 if test 0"$ld_date" -lt 20050308; then
13710 if test -n "$ld_date"; then
13711 # If there was date string, but was earlier than 2005-03-08, fail
13713 elif test "$ld_vers_major" -lt 2; then
13715 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
13719 if test $comdat_group = no
; then
13720 gcc_cv_as_comdat_group
=no
13721 gcc_cv_as_comdat_group_percent
=no
13725 cat >>confdefs.h
<<_ACEOF
13726 #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`
13730 # Thread-local storage - the check is heavily parametrized.
13738 .section ".tdata","awT",@progbits
13741 ldq $27,__tls_get_addr($29) !literal!1
13742 lda $16,foo($29) !tlsgd!1
13743 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
13744 ldq $27,__tls_get_addr($29) !literal!2
13745 lda $16,foo($29) !tlsldm!2
13746 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
13747 ldq $1,foo($29) !gotdtprel
13748 ldah $2,foo($29) !dtprelhi
13749 lda $3,foo($2) !dtprello
13750 lda $4,foo($29) !dtprel
13751 ldq $1,foo($29) !gottprel
13752 ldah $2,foo($29) !tprelhi
13753 lda $3,foo($2) !tprello
13754 lda $4,foo($29) !tprel'
13757 tls_as_opt
=--fatal-warnings
13761 .section ".tdata","awT",@progbits
13764 call #gettlsoff(x)'
13770 .section ".tdata","awT",@progbits
13774 leal foo@TLSGD(,%ebx,1), %eax
13775 leal foo@TLSLDM(%ebx), %eax
13776 leal foo@DTPOFF(%eax), %edx
13777 movl foo@GOTTPOFF(%ebx), %eax
13778 subl foo@GOTTPOFF(%ebx), %eax
13779 addl foo@GOTNTPOFF(%ebx), %eax
13780 movl foo@INDNTPOFF, %eax
13781 movl $foo@TPOFF, %eax
13782 subl $foo@TPOFF, %eax
13783 leal foo@NTPOFF(%ecx), %eax'
13786 tls_as_opt
=--fatal-warnings
13790 .section ".tdata","awT",@progbits
13794 leaq foo@TLSGD(%rip), %rdi
13795 leaq foo@TLSLD(%rip), %rdi
13796 leaq foo@DTPOFF(%rax), %rdx
13797 movq foo@GOTTPOFF(%rip), %rax
13798 movq $foo@TPOFF, %rax'
13801 tls_as_opt
=--fatal-warnings
13805 .section ".tdata","awT",@progbits
13808 addl r16 = @ltoff(@dtpmod(foo#)), gp
13809 addl r17 = @ltoff(@dtprel(foo#)), gp
13810 addl r18 = @ltoff(@tprel(foo#)), gp
13811 addl r19 = @dtprel(foo#), gp
13812 adds r21 = @dtprel(foo#), r13
13813 movl r23 = @dtprel(foo#)
13814 addl r20 = @tprel(foo#), gp
13815 adds r22 = @tprel(foo#), r13
13816 movl r24 = @tprel(foo#)'
13819 tls_as_opt
=--fatal-warnings
13823 .section .tdata,"awT",@progbits
13827 addiu $4, $28, %tlsgd(x)
13828 addiu $4, $28, %tlsldm(x)
13829 lui $4, %dtprel_hi(x)
13830 addiu $4, $4, %dtprel_lo(x)
13831 lw $4, %gottprel(x)($28)
13832 lui $4, %tprel_hi(x)
13833 addiu $4, $4, %tprel_lo(x)'
13836 tls_as_opt
='-32 --fatal-warnings'
13840 .section ".tdata","awT",@progbits
13848 addi 3,31,ld0@got@tlsgd
13850 addi 3,31,x1@got@tlsld
13853 addis 9,3,x2@dtprel@ha
13854 addi 9,9,x2@dtprel@l
13855 lwz 9,x3@got@tprel(31)
13858 addis 9,2,x2@tprel@ha
13859 addi 9,9,x2@tprel@l'
13862 tls_as_opt
="-a32 --fatal-warnings"
13866 .section ".tdata","awT",@progbits
13874 addi 3,2,ld0@got@tlsgd
13880 addi 3,2,x1@got@tlsld
13886 addis 9,3,x2@dtprel@ha
13887 addi 9,9,x2@dtprel@l
13890 ld 9,x3@got@dtprel(2)
13896 tls_as_opt
="-a64 --fatal-warnings"
13900 .section ".tdata","awT",@progbits
13907 .long foo@GOTNTPOFF
13908 .long foo@INDNTPOFF
13909 l %r1,foo@GOTNTPOFF(%r12)
13910 l %r1,0(%r1):tls_load:foo
13911 bas %r14,0(%r1,%r13):tls_gdcall:foo
13912 bas %r14,0(%r1,%r13):tls_ldcall:foo'
13915 tls_as_opt
="-m31 --fatal-warnings"
13919 .section ".tdata","awT",@progbits
13926 .quad foo@GOTNTPOFF
13927 lg %r1,foo@GOTNTPOFF(%r12)
13928 larl %r1,foo@INDNTPOFF
13929 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
13930 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
13933 tls_as_opt
="-m64 -Aesame --fatal-warnings"
13935 sh-
*-* | sh
[34]-*-*)
13937 .section ".tdata","awT",@progbits
13947 tls_as_opt
=--fatal-warnings
13951 sparc
*-sun-solaris2.
*)
13958 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
13960 .section ".tdata",#alloc,#write,#tls
13963 sethi %tgd_hi22(foo), %o0
13964 add %o0, %tgd_lo10(foo), %o1
13965 add %l7, %o1, %o0, %tgd_add(foo)
13966 call __tls_get_addr, %tgd_call(foo)
13967 sethi %tldm_hi22(foo), %l1
13968 add %l1, %tldm_lo10(foo), %l2
13969 add %l7, %l2, %o0, %tldm_add(foo)
13970 call __tls_get_addr, %tldm_call(foo)
13971 sethi %tldo_hix22(foo), %l3
13972 xor %l3, %tldo_lox10(foo), %l4
13973 add %o0, %l4, %l5, %tldo_add(foo)
13974 sethi %tie_hi22(foo), %o3
13975 add %o3, %tie_lo10(foo), %o3
13976 ld [%l7 + %o3], %o2, %tie_ld(foo)
13977 add %g7, %o2, %o4, %tie_add(foo)
13978 sethi %tle_hix22(foo), %l1
13979 xor %l1, %tle_lox10(foo), %o5
13980 ld [%g7 + %o5], %o1'
13985 .section ".tdata","awT",@progbits
13988 sethi %tgd_hi22(foo), %o0
13989 add %o0, %tgd_lo10(foo), %o1
13990 add %l7, %o1, %o0, %tgd_add(foo)
13991 call __tls_get_addr, %tgd_call(foo)
13992 sethi %tldm_hi22(foo), %l1
13993 add %l1, %tldm_lo10(foo), %l2
13994 add %l7, %l2, %o0, %tldm_add(foo)
13995 call __tls_get_addr, %tldm_call(foo)
13996 sethi %tldo_hix22(foo), %l3
13997 xor %l3, %tldo_lox10(foo), %l4
13998 add %o0, %l4, %l5, %tldo_add(foo)
13999 sethi %tie_hi22(foo), %o3
14000 add %o3, %tie_lo10(foo), %o3
14001 ld [%l7 + %o3], %o2, %tie_ld(foo)
14002 add %g7, %o2, %o4, %tie_add(foo)
14003 sethi %tle_hix22(foo), %l1
14004 xor %l1, %tle_lox10(foo), %o5
14005 ld [%g7 + %o5], %o1'
14008 tls_as_opt
="-32 --fatal-warnings"
14012 if test -z "$tls_first_major"; then
14013 : # If we don't have a check, assume no support.
14015 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14016 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14017 if test "${gcc_cv_as_tls+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 if test $in_tree_gas = yes; then
14022 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14023 then gcc_cv_as_tls
=yes
14025 elif test x
$gcc_cv_as != x
; then
14026 echo "$conftest_s" > conftest.s
14027 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }
14036 echo "configure: failed program was" >&5
14039 rm -f conftest.o conftest.s
14042 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14043 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14044 if test $gcc_cv_as_tls = yes; then
14046 cat >>confdefs.h
<<\_ACEOF
14047 #define HAVE_AS_TLS 1
14053 # Target-specific assembler checks.
14055 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14056 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14057 gcc_cv_ld_static_dynamic
=no
14058 if test $in_tree_ld = yes ; then
14059 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14060 gcc_cv_ld_static_dynamic
=yes
14062 elif test x
$gcc_cv_ld != x
; then
14063 # Check if linker supports -Bstatic/-Bdynamic option
14064 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14065 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14066 gcc_cv_ld_static_dynamic
=yes
14069 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14071 cat >>confdefs.h
<<\_ACEOF
14072 #define HAVE_LD_STATIC_DYNAMIC 1
14076 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14077 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14079 if test x
"$demangler_in_ld" = xyes
; then
14080 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14081 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14082 gcc_cv_ld_demangle
=no
14083 if test $in_tree_ld = yes; then
14084 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 \
14085 gcc_cv_ld_demangle
=yes
14087 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14088 # Check if the GNU linker supports --demangle option
14089 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14090 gcc_cv_ld_demangle
=yes
14093 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14095 cat >>confdefs.h
<<\_ACEOF
14096 #define HAVE_LD_DEMANGLE 1
14100 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14101 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14105 # All TARGET_ABI_OSF targets.
14106 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14107 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14108 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14109 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 gcc_cv_as_alpha_explicit_relocs
=no
14113 if test $in_tree_gas = yes; then
14114 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14115 then gcc_cv_as_alpha_explicit_relocs
=yes
14117 elif test x
$gcc_cv_as != x
; then
14118 echo ' .set nomacro
14120 extbl $3, $2, $3 !lituse_bytoff!1
14121 ldq $2, a($29) !literal!1
14122 ldq $4, b($29) !literal!2
14123 ldq_u $3, 0($2) !lituse_base!1
14124 ldq $27, f($29) !literal!5
14125 jsr $26, ($27), f !lituse_jsr!5
14126 ldah $29, 0($26) !gpdisp!3
14127 lda $0, c($29) !gprel
14128 ldah $1, d($29) !gprelhigh
14129 lda $1, d($1) !gprellow
14130 lda $29, 0($29) !gpdisp!3' > conftest.s
14131 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }
14138 gcc_cv_as_alpha_explicit_relocs
=yes
14140 echo "configure: failed program was" >&5
14143 rm -f conftest.o conftest.s
14146 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14147 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14148 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14150 cat >>confdefs.h
<<\_ACEOF
14151 #define HAVE_AS_EXPLICIT_RELOCS 1
14158 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14159 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14160 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 gcc_cv_as_cris_no_mul_bug
=no
14164 if test $in_tree_gas = yes; then
14165 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14166 then gcc_cv_as_cris_no_mul_bug
=yes
14168 elif test x
$gcc_cv_as != x
; then
14169 echo '.text' > conftest.s
14170 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }
14177 gcc_cv_as_cris_no_mul_bug
=yes
14179 echo "configure: failed program was" >&5
14182 rm -f conftest.o conftest.s
14185 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14186 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14187 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14189 cat >>confdefs.h
<<\_ACEOF
14190 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14197 echo "$as_me:$LINENO: checking assembler for .register" >&5
14198 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14199 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 gcc_cv_as_sparc_register_op
=no
14203 if test x
$gcc_cv_as != x
; then
14204 echo '.register %g2, #scratch' > conftest.s
14205 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }
14212 gcc_cv_as_sparc_register_op
=yes
14214 echo "configure: failed program was" >&5
14217 rm -f conftest.o conftest.s
14220 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14221 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14222 if test $gcc_cv_as_sparc_register_op = yes; then
14224 cat >>confdefs.h
<<\_ACEOF
14225 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14230 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14231 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14232 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14235 gcc_cv_as_sparc_relax
=no
14236 if test x
$gcc_cv_as != x
; then
14237 echo '.text' > conftest.s
14238 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }
14245 gcc_cv_as_sparc_relax
=yes
14247 echo "configure: failed program was" >&5
14250 rm -f conftest.o conftest.s
14253 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14254 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14255 if test $gcc_cv_as_sparc_relax = yes; then
14257 cat >>confdefs.h
<<\_ACEOF
14258 #define HAVE_AS_RELAX_OPTION 1
14263 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14264 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14265 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 gcc_cv_as_sparc_ua_pcrel
=no
14269 if test x
$gcc_cv_as != x
; then
14276 .uaword %r_disp32(foo)' > conftest.s
14277 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279 (eval $ac_try) 2>&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); }; }
14284 if test x
$gcc_cv_ld != x \
14285 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14286 gcc_cv_as_sparc_ua_pcrel
=yes
14290 echo "configure: failed program was" >&5
14293 rm -f conftest.o conftest.s
14296 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14297 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14298 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14300 cat >>confdefs.h
<<\_ACEOF
14301 #define HAVE_AS_SPARC_UA_PCREL 1
14305 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14306 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14307 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14311 if test x
$gcc_cv_as != x
; then
14315 .uaword %r_disp32(foo)
14316 .byte 0x32, 0x33, 0x34
14320 .skip 4' > conftest.s
14321 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }
14328 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
14329 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
14330 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
14331 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
14332 if $gcc_cv_objdump -R conftest
2> /dev
/null \
14333 |
grep 'DISP32' > /dev
/null
2>&1; then
14336 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
14341 echo "configure: failed program was" >&5
14344 rm -f conftest.o conftest.s
14347 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14348 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14349 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14351 cat >>confdefs.h
<<\_ACEOF
14352 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14357 fi # unaligned pcrel relocs
14359 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14360 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14361 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 gcc_cv_as_sparc_offsetable_lo10
=no
14365 if test x
$gcc_cv_as != x
; then
14367 or %g1, %lo(ab) + 12, %g1
14368 or %g1, %lo(ab + 12), %g1' > conftest.s
14369 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; }
14376 if test x
$gcc_cv_objdump != x \
14377 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
14378 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
14379 gcc_cv_as_sparc_offsetable_lo10
=yes
14382 echo "configure: failed program was" >&5
14385 rm -f conftest.o conftest.s
14388 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14389 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14390 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14392 cat >>confdefs.h
<<\_ACEOF
14393 #define HAVE_AS_OFFSETABLE_LO10 1
14399 i
[34567]86-*-* | x86_64-
*-*)
14401 cygwin
* | pe | mingw32
*)
14402 # Used for DWARF 2 in PE
14403 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14404 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14405 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14408 gcc_cv_as_ix86_pe_secrel32
=no
14409 if test $in_tree_gas = yes; then
14410 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14411 then gcc_cv_as_ix86_pe_secrel32
=yes
14413 elif test x
$gcc_cv_as != x
; then
14417 .secrel32 foo' > conftest.s
14418 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }
14425 if test x
$gcc_cv_ld != x \
14426 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
14427 gcc_cv_as_ix86_pe_secrel32
=yes
14431 echo "configure: failed program was" >&5
14434 rm -f conftest.o conftest.s
14437 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14438 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14439 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14441 cat >>confdefs.h
<<\_ACEOF
14442 #define HAVE_GAS_PE_SECREL32_RELOC 1
14449 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14450 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14451 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 gcc_cv_as_ix86_filds_fists
=no
14455 if test $in_tree_gas = yes; then
14456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14457 then gcc_cv_as_ix86_filds_fists
=yes
14459 elif test x
$gcc_cv_as != x
; then
14460 echo 'filds mem; fists mem' > conftest.s
14461 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }
14468 gcc_cv_as_ix86_filds_fists
=yes
14470 echo "configure: failed program was" >&5
14473 rm -f conftest.o conftest.s
14476 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14477 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14478 if test $gcc_cv_as_ix86_filds_fists = yes; then
14480 cat >>confdefs.h
<<\_ACEOF
14481 #define HAVE_GAS_FILDS_FISTS 1
14486 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14487 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14488 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 gcc_cv_as_ix86_cmov_sun_syntax
=no
14492 if test x
$gcc_cv_as != x
; then
14493 echo 'cmovl.l %edx, %eax' > conftest.s
14494 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }
14501 gcc_cv_as_ix86_cmov_sun_syntax
=yes
14503 echo "configure: failed program was" >&5
14506 rm -f conftest.o conftest.s
14509 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14510 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14511 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14513 cat >>confdefs.h
<<\_ACEOF
14514 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14519 # This one is used unconditionally by i386.[ch]; it is to be defined
14520 # to 1 if the feature is present, 0 otherwise.
14521 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14522 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14523 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 gcc_cv_as_ix86_gotoff_in_data
=no
14527 if test $in_tree_gas = yes; then
14528 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14529 then gcc_cv_as_ix86_gotoff_in_data
=yes
14531 elif test x
$gcc_cv_as != x
; then
14536 .long .L0@GOTOFF' > conftest.s
14537 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }
14544 gcc_cv_as_ix86_gotoff_in_data
=yes
14546 echo "configure: failed program was" >&5
14549 rm -f conftest.o conftest.s
14552 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14553 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14556 cat >>confdefs.h
<<_ACEOF
14557 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14563 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14564 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14565 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
14569 if test $in_tree_gas = yes; then
14570 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14571 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14573 elif test x
$gcc_cv_as != x
; then
14575 addl r15 = @ltoffx(x#), gp
14577 ld8.mov r16 = [r15], x#' > conftest.s
14578 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }
14585 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
14587 echo "configure: failed program was" >&5
14590 rm -f conftest.o conftest.s
14593 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
14594 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
14595 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
14597 cat >>confdefs.h
<<\_ACEOF
14598 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
14607 *-*-aix*) conftest_s
=' .machine "pwr5"
14611 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
14612 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
14613 if test "${gcc_cv_as_machine_directive+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 gcc_cv_as_machine_directive
=no
14617 if test x
$gcc_cv_as != x
; then
14618 echo ' .machine ppc7400' > conftest.s
14619 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }
14626 gcc_cv_as_machine_directive
=yes
14628 echo "configure: failed program was" >&5
14631 rm -f conftest.o conftest.s
14634 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
14635 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
14637 if test x
$gcc_cv_as_machine_directive != xyes
; then
14638 echo "*** This target requires an assembler supporting \".machine\"" >&2
14639 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
14640 test x
$build = x
$target && exit 1
14644 *) conftest_s
=' .machine power4
14649 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
14650 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
14651 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 gcc_cv_as_powerpc_mfcrf
=no
14655 if test $in_tree_gas = yes; then
14656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14657 then gcc_cv_as_powerpc_mfcrf
=yes
14659 elif test x
$gcc_cv_as != x
; then
14660 echo "$conftest_s" > conftest.s
14661 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }
14668 gcc_cv_as_powerpc_mfcrf
=yes
14670 echo "configure: failed program was" >&5
14673 rm -f conftest.o conftest.s
14676 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
14677 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
14678 if test $gcc_cv_as_powerpc_mfcrf = yes; then
14680 cat >>confdefs.h
<<\_ACEOF
14681 #define HAVE_AS_MFCRF 1
14687 *-*-aix*) conftest_s
=' .machine "pwr5"
14690 *) conftest_s
=' .machine power5
14695 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
14696 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
14697 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
14698 echo $ECHO_N "(cached) $ECHO_C" >&6
14700 gcc_cv_as_powerpc_popcntb
=no
14701 if test $in_tree_gas = yes; then
14702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14703 then gcc_cv_as_powerpc_popcntb
=yes
14705 elif test x
$gcc_cv_as != x
; then
14706 echo "$conftest_s" > conftest.s
14707 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709 (eval $ac_try) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); }; }
14714 gcc_cv_as_powerpc_popcntb
=yes
14716 echo "configure: failed program was" >&5
14719 rm -f conftest.o conftest.s
14722 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
14723 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
14724 if test $gcc_cv_as_powerpc_popcntb = yes; then
14726 cat >>confdefs.h
<<\_ACEOF
14727 #define HAVE_AS_POPCNTB 1
14735 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14736 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14737 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 gcc_cv_as_mips_explicit_relocs
=no
14741 if test $in_tree_gas = yes; then
14742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14743 then gcc_cv_as_mips_explicit_relocs
=yes
14745 elif test x
$gcc_cv_as != x
; then
14746 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
14747 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }
14754 gcc_cv_as_mips_explicit_relocs
=yes
14756 echo "configure: failed program was" >&5
14759 rm -f conftest.o conftest.s
14762 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
14763 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
14764 if test $gcc_cv_as_mips_explicit_relocs = yes; then
14765 if test x
$target_cpu_default = x
14766 then target_cpu_default
=MASK_EXPLICIT_RELOCS
14767 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
14771 if test x
$gas_flag = xyes \
14772 ||
test x
"$host" != x
"$build" \
14773 ||
test ! -x "$gcc_cv_as" \
14774 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
14777 echo "*** This configuration requires the GNU assembler" >&2
14782 # ??? Not all targets support dwarf2 debug_line, even within a version
14783 # of gas. Moreover, we need to emit a valid instruction to trigger any
14784 # info to the output file. So, as supported targets are added to gas 2.11,
14785 # add some instruction here to (also) show we expect this might work.
14786 # ??? Once 2.11 is released, probably need to add first known working
14787 # version to the per-target configury.
14789 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
14790 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
14791 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-*)
14794 ia64
*-*-* | s390
*-*-*)
14801 if test x
"$insn" != x
; then
14803 .file 1 \"conftest.s\"
14806 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
14807 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
14808 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 gcc_cv_as_dwarf2_debug_line
=no
14812 if test $in_tree_gas = yes; then
14813 if test $in_tree_gas_is_elf = yes \
14814 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14815 then gcc_cv_as_dwarf2_debug_line
=yes
14817 elif test x
$gcc_cv_as != x
; then
14818 echo "$conftest_s" > conftest.s
14819 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }
14826 if test x
$gcc_cv_objdump != x \
14827 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
14828 |
grep debug_line
> /dev
/null
2>&1; then
14829 gcc_cv_as_dwarf2_debug_line
=yes
14832 echo "configure: failed program was" >&5
14835 rm -f conftest.o conftest.s
14838 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
14839 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
14842 # The .debug_line file table must be in the exact order that
14843 # we specified the files, since these indices are also used
14844 # by DW_AT_decl_file. Approximate this test by testing if
14845 # the assembler bitches if the same index is assigned twice.
14846 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
14847 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
14848 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 gcc_cv_as_dwarf2_file_buggy
=no
14852 if test x
$gcc_cv_as != x
; then
14853 echo ' .file 1 "foo.s"
14854 .file 1 "bar.s"' > conftest.s
14855 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }
14862 gcc_cv_as_dwarf2_file_buggy
=yes
14864 echo "configure: failed program was" >&5
14867 rm -f conftest.o conftest.s
14870 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
14871 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
14874 if test $gcc_cv_as_dwarf2_debug_line = yes \
14875 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
14877 cat >>confdefs.h
<<\_ACEOF
14878 #define HAVE_AS_DWARF2_DEBUG_LINE 1
14883 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
14884 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
14885 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
14886 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 gcc_cv_as_gdwarf2_flag
=no
14889 if test $in_tree_gas = yes; then
14890 if test $in_tree_gas_is_elf = yes \
14891 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14892 then gcc_cv_as_gdwarf2_flag
=yes
14894 elif test x
$gcc_cv_as != x
; then
14895 echo "$insn" > conftest.s
14896 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
14897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }
14903 gcc_cv_as_gdwarf2_flag
=yes
14905 echo "configure: failed program was" >&5
14908 rm -f conftest.o conftest.s
14911 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
14912 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
14913 if test $gcc_cv_as_gdwarf2_flag = yes; then
14915 cat >>confdefs.h
<<\_ACEOF
14916 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
14921 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
14922 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
14923 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 gcc_cv_as_gstabs_flag
=no
14927 if test $in_tree_gas = yes; then
14928 if test $in_tree_gas_is_elf = yes \
14929 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14930 then gcc_cv_as_gstabs_flag
=yes
14932 elif test x
$gcc_cv_as != x
; then
14933 echo "$insn" > conftest.s
14934 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14941 # The native Solaris 9/Intel assembler doesn't understand --gstabs
14942 # and warns about it, but still exits successfully. So check for
14944 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }
14951 else gcc_cv_as_gstabs_flag
=yes
14954 echo "configure: failed program was" >&5
14957 rm -f conftest.o conftest.s
14960 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
14961 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
14962 if test $gcc_cv_as_gstabs_flag = yes; then
14964 cat >>confdefs.h
<<\_ACEOF
14965 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
14971 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
14972 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
14973 gcc_cv_ld_ro_rw_mix
=unknown
14974 if test $in_tree_ld = yes ; then
14975 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 \
14976 && test $in_tree_ld_is_elf = yes; then
14977 gcc_cv_ld_ro_rw_mix
=read-write
14979 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
14980 echo '.section myfoosect, "a"' > conftest1.s
14981 echo '.section myfoosect, "aw"' > conftest2.s
14982 echo '.byte 1' >> conftest2.s
14983 echo '.section myfoosect, "a"' > conftest3.s
14984 echo '.byte 0' >> conftest3.s
14985 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
14986 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
14987 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
14988 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
14989 conftest2.o conftest3.o
> /dev
/null
2>&1; then
14990 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
14991 | sed -e '/myfoosect/!d' -e N`
14992 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
14993 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
14994 gcc_cv_ld_ro_rw_mix
=read-only
14996 gcc_cv_ld_ro_rw_mix
=read-write
15000 rm -f conftest.
* conftest
[123].
*
15002 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15004 cat >>confdefs.h
<<\_ACEOF
15005 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15009 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15010 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15012 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15013 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15014 gcc_cv_ld_eh_frame_hdr
=no
15015 if test $in_tree_ld = yes ; then
15016 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 \
15017 && test $in_tree_ld_is_elf = yes; then
15018 gcc_cv_ld_eh_frame_hdr
=yes
15020 elif test x
$gcc_cv_ld != x
; then
15021 # Check if linker supports --eh-frame-hdr option
15022 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15023 gcc_cv_ld_eh_frame_hdr
=yes
15027 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15029 cat >>confdefs.h
<<\_ACEOF
15030 #define HAVE_LD_EH_FRAME_HDR 1
15034 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15035 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15037 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15038 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15040 if test $in_tree_ld = yes ; then
15041 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 \
15042 && test $in_tree_ld_is_elf = yes; then
15045 elif test x
$gcc_cv_ld != x
; then
15046 # Check if linker supports -pie option
15047 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
15051 if test x
"$gcc_cv_ld_pie" = xyes
; then
15053 cat >>confdefs.h
<<\_ACEOF
15054 #define HAVE_LD_PIE 1
15058 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15059 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15065 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15066 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15067 if test "${gcc_cv_ld_as_needed+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 gcc_cv_ld_as_needed
=no
15071 if test $in_tree_ld = yes ; then
15072 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 \
15073 && test $in_tree_ld_is_elf = yes; then
15074 gcc_cv_ld_as_needed
=yes
15076 elif test x
$gcc_cv_ld != x
; then
15077 # Check if linker supports --as-needed and --no-as-needed options
15078 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
15079 gcc_cv_ld_as_needed
=yes
15084 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15085 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15086 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define HAVE_LD_AS_NEEDED 1
15095 powerpc64
*-*-linux*)
15096 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15097 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15098 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 gcc_cv_ld_no_dot_syms
=no
15102 if test $in_tree_ld = yes ; then
15103 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
15104 gcc_cv_ld_no_dot_syms
=yes
15106 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
15107 cat > conftest1.s
<<EOF
15111 cat > conftest2.s
<<EOF
15112 .section ".opd","aw"
15115 .type foo,@function
15117 .quad .LEfoo,.TOC.@tocbase,0
15123 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15124 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15125 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
15126 gcc_cv_ld_no_dot_syms
=yes
15128 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15132 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15133 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15134 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
15136 cat >>confdefs.h
<<\_ACEOF
15137 #define HAVE_LD_NO_DOT_SYMS 1
15144 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15145 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15146 if test "${gcc_cv_ld_sysroot+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 gcc_cv_ld_sysroot
=no
15150 if test $in_tree_ld = yes ; then
15151 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
15152 gcc_cv_ld_sysroot
=yes
15154 elif test x
$gcc_cv_ld != x
; then
15155 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
15156 gcc_cv_ld_sysroot
=yes
15160 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15161 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15162 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
15164 cat >>confdefs.h
<<\_ACEOF
15165 #define HAVE_LD_SYSROOT 1
15170 if test x
$with_sysroot = x
&& test x
$host = x
$target \
15171 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15173 cat >>confdefs.h
<<_ACEOF
15174 #define PREFIX_INCLUDE_DIR "$prefix/include"
15179 # Find out what GC implementation we want, or may, use.
15181 # Check whether --with-gc or --without-gc was given.
15182 if test "${with_gc+set}" = set; then
15191 cat >>confdefs.h
<<\_ACEOF
15197 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15198 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15199 { (exit 1); exit 1; }; }
15206 echo "Using $GGC for garbage collection."
15208 # Use the system's zlib library.
15210 zlibinc
="-I\$(srcdir)/../zlib"
15212 # Check whether --with-system-zlib or --without-system-zlib was given.
15213 if test "${with_system_zlib+set}" = set; then
15214 withval
="$with_system_zlib"
15223 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15224 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15225 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15226 if test "${enable_maintainer_mode+set}" = set; then
15227 enableval
="$enable_maintainer_mode"
15228 maintainer_mode
=$enableval
15233 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15234 echo "${ECHO_T}$maintainer_mode" >&6
15236 if test "$maintainer_mode" = "yes"; then
15246 # Make empty files to contain the specs and options for each language.
15247 # Then add #include lines to for a compiler that has specs and/or options.
15252 for subdir
in .
$subdirs
15254 if test -f $srcdir/$subdir/lang.opt
; then
15255 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
15257 if test -f $srcdir/$subdir/lang-specs.h
; then
15258 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15260 if test -f $srcdir/$subdir/$subdir-tree.def
; then
15261 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15265 # These (without "all_") are set in each config-lang.in.
15266 # `language' must be a single word so is spelled singularly.
15268 all_boot_languages
=
15271 all_outputs
='Makefile gccbug mklibgcc libada-mk'
15272 # List of language makefile fragments.
15273 all_lang_makefrags
=
15274 # List of language subdirectory makefiles. Deprecated.
15275 all_lang_makefiles
=
15276 # Files for gengtype
15277 all_gtfiles
="$target_gtfiles"
15278 # Files for gengtype with language
15279 all_gtfiles_files_langs
=
15280 all_gtfiles_files_files
=
15282 # Add the language fragments.
15283 # Languages are added via two mechanisms. Some information must be
15284 # recorded in makefile variables, these are defined in config-lang.in.
15285 # We accumulate them and plug them into the main Makefile.
15286 # The other mechanism is a set of hooks for each of the main targets
15287 # like `clean', `install', etc.
15289 language_hooks
="Make-hooks"
15299 .
${srcdir}/$s/config-lang.
in
15300 if test "x$language" = x
15302 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15305 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15306 if test -f ${srcdir}/$s/Makefile.
in
15307 then all_lang_makefiles
="$s/Makefile"
15309 all_languages
="$all_languages $language"
15310 if test "x$boot_language" = xyes
15312 all_boot_languages
="$all_boot_languages $language"
15314 all_compilers
="$all_compilers $compilers"
15315 all_stagestuff
="$all_stagestuff $stagestuff"
15316 all_outputs
="$all_outputs $outputs"
15317 all_gtfiles
="$all_gtfiles $gtfiles"
15320 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15321 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15325 # Pick up gtfiles for c
15328 .
${srcdir}/c-config-lang.
in
15329 all_gtfiles
="$all_gtfiles $gtfiles"
15332 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${s} "
15333 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
15337 for language
in $all_languages
15339 check_languages
="$check_languages check-$language"
15342 # We link each language in with a set of hooks, reached indirectly via
15347 target_list
="all.build all.cross start.encap rest.encap tags \
15348 install-normal install-common install-man \
15349 uninstall info man srcextra srcman srcinfo \
15350 mostlyclean clean distclean maintainer-clean \
15351 stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15352 for t
in $target_list
15355 for lang
in $all_languages
15359 echo "lang.$t: $x" >> Make-hooks
15368 echo "dir ." > .gdbinit
15369 echo "dir ${srcdir}" >> .gdbinit
15370 if test x
$gdb_needs_out_file_path = xyes
15372 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15374 if test "x$subdirs" != x
; then
15377 echo "dir ${srcdir}/$s" >> .gdbinit
15380 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15382 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15383 # absolute path for gcc_tooldir based on inserting the number of up-directory
15384 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15385 # $(libsubdir)/@(unlibsubdir) based path.
15386 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15387 # make and thus we'd get different behavior depending on where we built the
15389 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
15390 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15392 # An explanation of the sed strings:
15393 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
15394 # -e 's|/$||' match a trailing forward slash and eliminates it
15395 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
15396 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
15398 # (*) Note this pattern overwrites the first character of the string
15399 # with a forward slash if one is not already present. This is not a
15400 # problem because the exact names of the sub-directories concerned is
15401 # unimportant, just the number of them matters.
15403 # The practical upshot of these patterns is like this:
15405 # prefix exec_prefix result
15406 # ------ ----------- ------
15407 # /foo /foo/bar ../
15408 # /foo/ /foo/bar ../
15409 # /foo /foo/bar/ ../
15410 # /foo/ /foo/bar/ ../
15411 # /foo /foo/bar/ugg ../../
15414 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15419 # Find a directory in which to install a shared libgcc.
15421 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15422 if test "${enable_version_specific_runtime_libs+set}" = set; then
15423 enableval
="$enable_version_specific_runtime_libs"
15428 # Check whether --with-slibdir or --without-slibdir was given.
15429 if test "${with_slibdir+set}" = set; then
15430 withval
="$with_slibdir"
15431 slibdir
="$with_slibdir"
15433 if test "${enable_version_specific_runtime_libs+set}" = set; then
15434 slibdir
='$(libsubdir)'
15435 elif test "$host" != "$target"; then
15436 slibdir
='$(build_tooldir)/lib'
15438 slibdir
='$(libdir)'
15443 objdir
=`${PWDCMD-pwd}`
15446 # Substitute configuration variables
15511 if test x
${build} = x
${host} ; then
15512 if test x
${host} = x
${target} ; then
15513 echo "Links are now set up to build a native compiler for ${target}." 1>&2
15515 echo "Links are now set up to build a cross-compiler" 1>&2
15516 echo " from ${host} to ${target}." 1>&2
15519 if test x
${host} = x
${target} ; then
15520 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
15521 echo " for ${target}." 1>&2
15523 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
15524 echo " from ${host} to ${target}." 1>&2
15531 # Configure the subdirectories
15532 # AC_CONFIG_SUBDIRS($subdirs)
15534 # Create the Makefile
15535 # and configure language subdirectories
15536 ac_config_files
="$ac_config_files $all_outputs"
15539 ac_config_commands
="$ac_config_commands default"
15541 cat >confcache
<<\_ACEOF
15542 # This file is a shell script that caches the results of configure
15543 # tests run on this system so they can be shared between configure
15544 # scripts and configure runs, see configure's option --config-cache.
15545 # It is not useful on other systems. If it contains results you don't
15546 # want to keep, you may remove or edit it.
15548 # config.status only pays attention to the cache file if you give it
15549 # the --recheck option to rerun configure.
15551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15553 # following values.
15557 # The following way of writing the cache mishandles newlines in values,
15558 # but we know of no workaround that is simple, portable, and efficient.
15559 # So, don't put newlines in cache variables' values.
15560 # Ultrix sh set writes to stderr and can't be redirected directly,
15561 # and sets the high bit in the cache file unless we assign to the vars.
15564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15566 # `set' does not quote correctly, so add quotes (double-quote
15567 # substitution turns \\\\ into \\, and sed turns \\ into \).
15570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15573 # `set' quotes correctly as required by POSIX, so do not add quotes.
15575 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15582 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15584 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15586 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
15587 if test -w $cache_file; then
15588 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15589 cat confcache
>$cache_file
15591 echo "not updating unwritable cache $cache_file"
15596 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15597 # Let make expand exec_prefix.
15598 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15602 # trailing colons and then remove the whole line if VPATH becomes empty
15603 # (actually we leave an empty line to preserve line numbers).
15604 if test "x$srcdir" = x.
; then
15605 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15606 s/:*\$(srcdir):*/:/;
15607 s/:*\${srcdir}:*/:/;
15609 s/^\([^=]*=[ ]*\):*/\1/;
15615 DEFS
=-DHAVE_CONFIG_H
15619 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15620 # 1. Remove the extension, and $U if already installed.
15621 ac_i
=`echo "$ac_i" |
15622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15624 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
15625 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
15627 LIBOBJS
=$ac_libobjs
15629 LTLIBOBJS
=$ac_ltlibobjs
15633 : ${CONFIG_STATUS=./config.status}
15634 ac_clean_files_save
=$ac_clean_files
15635 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15636 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15638 cat >$CONFIG_STATUS <<_ACEOF
15640 # Generated by $as_me.
15641 # Run this file to recreate the current configuration.
15642 # Compiler output produced by configure, useful for debugging
15643 # configure, is in config.log if it exists.
15646 ac_cs_recheck=false
15648 SHELL=\${CONFIG_SHELL-$SHELL}
15651 cat >>$CONFIG_STATUS <<\_ACEOF
15652 ## --------------------- ##
15653 ## M4sh Initialization. ##
15654 ## --------------------- ##
15656 # Be Bourne compatible
15657 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15661 # is contrary to our usage. Disable this feature.
15662 alias -g '${1+"$@"}'='"$@"'
15663 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
15666 DUALCASE
=1; export DUALCASE
# for MKS sh
15668 # Support unset when possible.
15669 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15676 # Work around bugs in pre-3.0 UWIN ksh.
15677 $as_unset ENV MAIL MAILPATH
15684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15686 LC_TELEPHONE LC_TIME
15688 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15689 eval $as_var=C
; export $as_var
15695 # Required to use basename.
15696 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15702 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15703 as_basename
=basename
15709 # Name of the executable.
15710 as_me
=`$as_basename "$0" ||
15711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15712 X"$0" : 'X\(//\)$' \| \
15713 X"$0" : 'X\(/\)$' \| \
15714 . : '\(.\)' 2>/dev/null ||
15716 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15717 /^X\/\(\/\/\)$/{ s//\1/; q; }
15718 /^X\/\(\/\).*/{ s//\1/; q; }
15722 # PATH needs CR, and LINENO needs CR and PATH.
15723 # Avoid depending upon Character Ranges.
15724 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15725 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15726 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15727 as_cr_digits
='0123456789'
15728 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15730 # The user is always right.
15731 if test "${PATH_SEPARATOR+set}" != set; then
15732 echo "#! /bin/sh" >conf$$.sh
15733 echo "exit 0" >>conf$$.sh
15735 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15744 as_lineno_1
=$LINENO
15745 as_lineno_2
=$LINENO
15746 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15747 test "x$as_lineno_1" != "x$as_lineno_2" &&
15748 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15749 # Find who we are. Look in the path if we contain no path at all
15752 *[\\/]* ) as_myself
=$0 ;;
15753 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15754 for as_dir
in $PATH
15757 test -z "$as_dir" && as_dir
=.
15758 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15763 # We did not find ourselves, most probably we were run as `sh COMMAND'
15764 # in which case we are not to be found in the path.
15765 if test "x$as_myself" = x
; then
15768 if test ! -f "$as_myself"; then
15769 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15770 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15771 { (exit 1); exit 1; }; }
15773 case $CONFIG_SHELL in
15775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15776 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15779 test -z "$as_dir" && as_dir
=.
15780 for as_base
in sh bash ksh sh5
; do
15783 if ("$as_dir/$as_base" -c '
15784 as_lineno_1=$LINENO
15785 as_lineno_2=$LINENO
15786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15787 test "x$as_lineno_1" != "x$as_lineno_2" &&
15788 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15789 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15790 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15791 CONFIG_SHELL
=$as_dir/$as_base
15792 export CONFIG_SHELL
15793 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15801 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15802 # uniformly replaced by the line number. The first 'sed' inserts a
15803 # line-number line before each line; the second 'sed' does the real
15804 # work. The second script uses 'N' to pair each line-number line
15805 # with the numbered line, and appends trailing '-' during
15806 # substitution so that $LINENO is not a special case at line end.
15807 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15808 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15809 sed '=' <$as_myself |
15814 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15817 s,^['$as_cr_digits']*\n,,
15818 ' >$as_me.lineno
&&
15819 chmod +x
$as_me.lineno ||
15820 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15821 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15822 { (exit 1); exit 1; }; }
15824 # Don't try to exec as it changes $[0], causing all sort of problems
15825 # (the dirname of $[0] is not the place where we might find the
15826 # original and so on. Autoconf is especially sensible to this).
15828 # Exit status is that of the last command.
15833 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15834 *c
*,-n*) ECHO_N
= ECHO_C
='
15836 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15837 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15840 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15846 rm -f conf$$ conf$$.exe conf$$.
file
15848 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15849 # We could just check for DJGPP; but this test a) works b) is more generic
15850 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15851 if test -f conf$$.exe
; then
15852 # Don't use ln at all; we don't have any links
15857 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15862 rm -f conf$$ conf$$.exe conf$$.
file
15864 if mkdir
-p .
2>/dev
/null
; then
15867 test -d .
/-p && rmdir .
/-p
15871 as_executable_p
="test -f"
15873 # Sed expression to map a string onto a valid CPP name.
15874 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15876 # Sed expression to map a string onto a valid variable name.
15877 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15881 # We need space, tab and new line, in precisely that order.
15891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15892 # report actual input values of CONFIG_FILES etc. instead of their
15893 # values after options handling. Logging --version etc. is OK.
15897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15898 ## Running $as_me. ##
15903 This file was extended by $as_me, which was
15904 generated by GNU Autoconf 2.59. Invocation command line was
15906 CONFIG_FILES = $CONFIG_FILES
15907 CONFIG_HEADERS = $CONFIG_HEADERS
15908 CONFIG_LINKS = $CONFIG_LINKS
15909 CONFIG_COMMANDS = $CONFIG_COMMANDS
15913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15917 # Files that config.status was made for.
15918 if test -n "$ac_config_files"; then
15919 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15922 if test -n "$ac_config_headers"; then
15923 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15926 if test -n "$ac_config_links"; then
15927 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15930 if test -n "$ac_config_commands"; then
15931 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15934 cat >>$CONFIG_STATUS <<\_ACEOF
15937 \`$as_me' instantiates files from templates according to the
15938 current configuration.
15940 Usage: $0 [OPTIONS] [FILE]...
15942 -h, --help print this help, then exit
15943 -V, --version print version number, then exit
15944 -q, --quiet do not print progress messages
15945 -d, --debug don't remove temporary files
15946 --recheck update $as_me by reconfiguring in the same conditions
15947 --file=FILE[:TEMPLATE]
15948 instantiate the configuration file FILE
15949 --header=FILE[:TEMPLATE]
15950 instantiate the configuration header FILE
15952 Configuration files:
15955 Configuration headers:
15958 Configuration commands:
15961 Report bugs to <bug-autoconf@gnu.org>."
15964 cat >>$CONFIG_STATUS <<_ACEOF
15967 configured by $0, generated by GNU Autoconf 2.59,
15968 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15970 Copyright (C) 2003 Free Software Foundation, Inc.
15971 This config.status script is free software; the Free Software Foundation
15972 gives unlimited permission to copy, distribute and modify it."
15976 cat >>$CONFIG_STATUS <<\_ACEOF
15977 # If no file are specified by the user, then we need to provide default
15978 # value. By we need to know if files were specified by the user.
15984 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15985 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15993 *) # This is not an option, so the user has probably given explicit
15996 ac_need_defaults
=false
;;
16000 # Handling of the options.
16002 cat >>$CONFIG_STATUS <<\_ACEOF
16003 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16005 --version |
--vers* |
-V )
16006 echo "$ac_cs_version"; exit 0 ;;
16008 # Conflict between --help and --header
16009 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16010 Try \`$0 --help' for more information." >&5
16011 echo "$as_me: error: ambiguous option: $1
16012 Try \`$0 --help' for more information." >&2;}
16013 { (exit 1); exit 1; }; };;
16014 --help |
--hel |
-h )
16015 echo "$ac_cs_usage"; exit 0 ;;
16016 --debug |
--d* |
-d )
16018 --file |
--fil |
--fi |
--f )
16020 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
16021 ac_need_defaults
=false
;;
16022 --header |
--heade |
--head |
--hea )
16024 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
16025 ac_need_defaults
=false
;;
16026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16027 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16030 # This is an error.
16031 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16032 Try \`$0 --help' for more information." >&5
16033 echo "$as_me: error: unrecognized option: $1
16034 Try \`$0 --help' for more information." >&2;}
16035 { (exit 1); exit 1; }; } ;;
16037 *) ac_config_targets
="$ac_config_targets $1" ;;
16043 ac_configure_extra_args
=
16045 if $ac_cs_silent; then
16047 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16051 cat >>$CONFIG_STATUS <<_ACEOF
16052 if \$ac_cs_recheck; then
16053 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16054 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16059 cat >>$CONFIG_STATUS <<_ACEOF
16061 # INIT-COMMANDS section.
16070 cat >>$CONFIG_STATUS <<\_ACEOF
16071 for ac_config_target
in $ac_config_targets
16073 case "$ac_config_target" in
16074 # Handling of arguments.
16075 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
16076 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16077 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
16078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16079 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16080 { (exit 1); exit 1; }; };;
16084 # If the user did not use the arguments to specify the items to instantiate,
16085 # then the envvar interface is used. Set only those that are not.
16086 # We use the long form for the default assignment because of an extremely
16087 # bizarre bug on SunOS 4.1.3.
16088 if $ac_need_defaults; then
16089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16094 # Have a temporary directory for convenience. Make it in the build tree
16095 # simply because there is no reason to put it here, and in addition,
16096 # creating and moving files from /tmp can sometimes cause problems.
16097 # Create a temporary directory, and hook for its removal unless debugging.
16100 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16101 trap '{ (exit 1); exit 1; }' 1 2 13 15
16104 # Create a (secure) tmp directory for tmp files.
16107 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16108 test -n "$tmp" && test -d "$tmp"
16111 tmp
=.
/confstat$$
-$RANDOM
16112 (umask 077 && mkdir
$tmp)
16115 echo "$me: cannot create a temporary directory in ." >&2
16116 { (exit 1); exit 1; }
16121 cat >>$CONFIG_STATUS <<_ACEOF
16124 # CONFIG_FILES section.
16127 # No need to generate the scripts if there are no CONFIG_FILES.
16128 # This happens for instance when ./config.status config.h
16129 if test -n "\$CONFIG_FILES"; then
16130 # Protect against being on the right side of a sed subst in config.status.
16131 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16132 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16133 s,@SHELL@,$SHELL,;t t
16134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16140 s,@exec_prefix@,$exec_prefix,;t t
16141 s,@prefix@,$prefix,;t t
16142 s,@program_transform_name@,$program_transform_name,;t t
16143 s,@bindir@,$bindir,;t t
16144 s,@sbindir@,$sbindir,;t t
16145 s,@libexecdir@,$libexecdir,;t t
16146 s,@datadir@,$datadir,;t t
16147 s,@sysconfdir@,$sysconfdir,;t t
16148 s,@sharedstatedir@,$sharedstatedir,;t t
16149 s,@localstatedir@,$localstatedir,;t t
16150 s,@libdir@,$libdir,;t t
16151 s,@includedir@,$includedir,;t t
16152 s,@oldincludedir@,$oldincludedir,;t t
16153 s,@infodir@,$infodir,;t t
16154 s,@mandir@,$mandir,;t t
16155 s,@build_alias@,$build_alias,;t t
16156 s,@host_alias@,$host_alias,;t t
16157 s,@target_alias@,$target_alias,;t t
16158 s,@DEFS@,$DEFS,;t t
16159 s,@ECHO_C@,$ECHO_C,;t t
16160 s,@ECHO_N@,$ECHO_N,;t t
16161 s,@ECHO_T@,$ECHO_T,;t t
16162 s,@LIBS@,$LIBS,;t t
16163 s,@build@,$build,;t t
16164 s,@build_cpu@,$build_cpu,;t t
16165 s,@build_vendor@,$build_vendor,;t t
16166 s,@build_os@,$build_os,;t t
16167 s,@host@,$host,;t t
16168 s,@host_cpu@,$host_cpu,;t t
16169 s,@host_vendor@,$host_vendor,;t t
16170 s,@host_os@,$host_os,;t t
16171 s,@target@,$target,;t t
16172 s,@target_cpu@,$target_cpu,;t t
16173 s,@target_vendor@,$target_vendor,;t t
16174 s,@target_os@,$target_os,;t t
16175 s,@target_noncanonical@,$target_noncanonical,;t t
16176 s,@build_subdir@,$build_subdir,;t t
16177 s,@host_subdir@,$host_subdir,;t t
16178 s,@target_subdir@,$target_subdir,;t t
16179 s,@GENINSRC@,$GENINSRC,;t t
16181 s,@CFLAGS@,$CFLAGS,;t t
16182 s,@LDFLAGS@,$LDFLAGS,;t t
16183 s,@CPPFLAGS@,$CPPFLAGS,;t t
16184 s,@ac_ct_CC@,$ac_ct_CC,;t t
16185 s,@EXEEXT@,$EXEEXT,;t t
16186 s,@OBJEXT@,$OBJEXT,;t t
16187 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16188 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16190 s,@EGREP@,$EGREP,;t t
16191 s,@strict1_warn@,$strict1_warn,;t t
16192 s,@warn_cflags@,$warn_cflags,;t t
16193 s,@WERROR@,$WERROR,;t t
16194 s,@nocommon_flag@,$nocommon_flag,;t t
16195 s,@TREEBROWSER@,$TREEBROWSER,;t t
16196 s,@valgrind_path@,$valgrind_path,;t t
16197 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16198 s,@valgrind_command@,$valgrind_command,;t t
16199 s,@coverage_flags@,$coverage_flags,;t t
16200 s,@enable_multilib@,$enable_multilib,;t t
16201 s,@enable_shared@,$enable_shared,;t t
16202 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16203 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16204 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16205 s,@onestep@,$onestep,;t t
16206 s,@SET_MAKE@,$SET_MAKE,;t t
16208 s,@LN_S@,$LN_S,;t t
16210 s,@RANLIB@,$RANLIB,;t t
16211 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16212 s,@ranlib_flags@,$ranlib_flags,;t t
16213 s,@INSTALL@,$INSTALL,;t t
16214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16215 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16216 s,@make_compare_target@,$make_compare_target,;t t
16217 s,@have_mktemp_command@,$have_mktemp_command,;t t
16218 s,@MAKEINFO@,$MAKEINFO,;t t
16219 s,@BUILD_INFO@,$BUILD_INFO,;t t
16220 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16221 s,@FLEX@,$FLEX,;t t
16222 s,@BISON@,$BISON,;t t
16225 s,@stage1_cflags@,$stage1_cflags,;t t
16226 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16227 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16228 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16229 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16230 s,@LIBICONV@,$LIBICONV,;t t
16231 s,@LTLIBICONV@,$LTLIBICONV,;t t
16232 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16233 s,@manext@,$manext,;t t
16234 s,@objext@,$objext,;t t
16235 s,@gthread_flags@,$gthread_flags,;t t
16236 s,@extra_modes_file@,$extra_modes_file,;t t
16237 s,@extra_opt_files@,$extra_opt_files,;t t
16238 s,@USE_NLS@,$USE_NLS,;t t
16239 s,@LIBINTL@,$LIBINTL,;t t
16240 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16241 s,@INCINTL@,$INCINTL,;t t
16242 s,@XGETTEXT@,$XGETTEXT,;t t
16243 s,@GMSGFMT@,$GMSGFMT,;t t
16244 s,@POSUB@,$POSUB,;t t
16245 s,@CATALOGS@,$CATALOGS,;t t
16246 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16247 s,@CROSS@,$CROSS,;t t
16249 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16250 s,@inhibit_libc@,$inhibit_libc,;t t
16251 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16252 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16253 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16254 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16255 s,@collect2@,$collect2,;t t
16256 s,@libgcc_visibility@,$libgcc_visibility,;t t
16258 s,@zlibdir@,$zlibdir,;t t
16259 s,@zlibinc@,$zlibinc,;t t
16260 s,@MAINT@,$MAINT,;t t
16261 s,@gcc_tooldir@,$gcc_tooldir,;t t
16262 s,@dollar@,$dollar,;t t
16263 s,@slibdir@,$slibdir,;t t
16264 s,@objdir@,$objdir,;t t
16265 s,@subdirs@,$subdirs,;t t
16266 s,@srcdir@,$srcdir,;t t
16267 s,@all_boot_languages@,$all_boot_languages,;t t
16268 s,@all_compilers@,$all_compilers,;t t
16269 s,@all_gtfiles@,$all_gtfiles,;t t
16270 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16271 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16272 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16273 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16274 s,@all_languages@,$all_languages,;t t
16275 s,@all_stagestuff@,$all_stagestuff,;t t
16276 s,@build_exeext@,$build_exeext,;t t
16277 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16278 s,@build_xm_file_list@,$build_xm_file_list,;t t
16279 s,@build_xm_include_list@,$build_xm_include_list,;t t
16280 s,@build_xm_defines@,$build_xm_defines,;t t
16281 s,@check_languages@,$check_languages,;t t
16282 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16283 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16284 s,@cpp_install_dir@,$cpp_install_dir,;t t
16285 s,@xmake_file@,$xmake_file,;t t
16286 s,@tmake_file@,$tmake_file,;t t
16287 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16288 s,@extra_headers_list@,$extra_headers_list,;t t
16289 s,@extra_objs@,$extra_objs,;t t
16290 s,@extra_parts@,$extra_parts,;t t
16291 s,@extra_passes@,$extra_passes,;t t
16292 s,@extra_programs@,$extra_programs,;t t
16293 s,@float_h_file@,$float_h_file,;t t
16294 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16295 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16296 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16297 s,@host_exeext@,$host_exeext,;t t
16298 s,@host_xm_file_list@,$host_xm_file_list,;t t
16299 s,@host_xm_include_list@,$host_xm_include_list,;t t
16300 s,@host_xm_defines@,$host_xm_defines,;t t
16301 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16302 s,@install@,$install,;t t
16303 s,@lang_opt_files@,$lang_opt_files,;t t
16304 s,@lang_specs_files@,$lang_specs_files,;t t
16305 s,@lang_tree_files@,$lang_tree_files,;t t
16306 s,@local_prefix@,$local_prefix,;t t
16307 s,@md_file@,$md_file,;t t
16308 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16309 s,@out_file@,$out_file,;t t
16310 s,@out_object_file@,$out_object_file,;t t
16311 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16312 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16313 s,@thread_file@,$thread_file,;t t
16314 s,@tm_file_list@,$tm_file_list,;t t
16315 s,@tm_include_list@,$tm_include_list,;t t
16316 s,@tm_defines@,$tm_defines,;t t
16317 s,@tm_p_file_list@,$tm_p_file_list,;t t
16318 s,@tm_p_include_list@,$tm_p_include_list,;t t
16319 s,@xm_file_list@,$xm_file_list,;t t
16320 s,@xm_include_list@,$xm_include_list,;t t
16321 s,@xm_defines@,$xm_defines,;t t
16322 s,@c_target_objs@,$c_target_objs,;t t
16323 s,@cxx_target_objs@,$cxx_target_objs,;t t
16324 s,@target_cpu_default@,$target_cpu_default,;t t
16325 s,@GMPLIBS@,$GMPLIBS,;t t
16326 s,@GMPINC@,$GMPINC,;t t
16327 s,@LIBOBJS@,$LIBOBJS,;t t
16328 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16329 /@language_hooks@/r $language_hooks
16330 s,@language_hooks@,,;t t
16335 cat >>$CONFIG_STATUS <<\_ACEOF
16336 # Split the substitutions into bite-sized pieces for seds with
16337 # small command number limits, like on Digital OSF/1 and HP-UX.
16338 ac_max_sed_lines
=48
16339 ac_sed_frag
=1 # Number of current file.
16340 ac_beg
=1 # First line for current file.
16341 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16344 while $ac_more_lines; do
16345 if test $ac_beg -gt 1; then
16346 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16348 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16350 if test ! -s $tmp/subs.frag
; then
16351 ac_more_lines
=false
16353 # The purpose of the label and of the branching condition is to
16354 # speed up the sed processing (if there are no `@' at all, there
16355 # is no need to browse any of the substitutions).
16356 # These are the two extra sed commands mentioned above.
16358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16359 if test -z "$ac_sed_cmds"; then
16360 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16362 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16364 ac_sed_frag
=`expr $ac_sed_frag + 1`
16366 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16369 if test -z "$ac_sed_cmds"; then
16372 fi # test -n "$CONFIG_FILES"
16375 cat >>$CONFIG_STATUS <<\_ACEOF
16376 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16379 - |
*:- |
*:-:* ) # input from stdin
16381 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16382 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16383 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16384 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16385 * ) ac_file_in
=$ac_file.
in ;;
16388 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16389 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391 X"$ac_file" : 'X\(//\)[^/]' \| \
16392 X"$ac_file" : 'X\(//\)$' \| \
16393 X"$ac_file" : 'X\(/\)' \| \
16394 . : '\(.\)' 2>/dev/null ||
16396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16397 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16398 /^X\(\/\/\)$/{ s//\1/; q; }
16399 /^X\(\/\).*/{ s//\1/; q; }
16401 { if $as_mkdir_p; then
16406 while test ! -d "$as_dir"; do
16407 as_dirs
="$as_dir $as_dirs"
16408 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16410 X"$as_dir" : 'X\(//\)[^/]' \| \
16411 X"$as_dir" : 'X\(//\)$' \| \
16412 X"$as_dir" : 'X\(/\)' \| \
16413 . : '\(.\)' 2>/dev/null ||
16415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16417 /^X\(\/\/\)$/{ s//\1/; q; }
16418 /^X\(\/\).*/{ s//\1/; q; }
16421 test ! -n "$as_dirs" || mkdir
$as_dirs
16422 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16423 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16424 { (exit 1); exit 1; }; }; }
16428 if test "$ac_dir" != .
; then
16429 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16430 # A "../" for each directory in $ac_dir_suffix.
16431 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16433 ac_dir_suffix
= ac_top_builddir
=
16437 .
) # No --srcdir option. We are building in place.
16439 if test -z "$ac_top_builddir"; then
16442 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16444 [\\/]* | ?
:[\\/]* ) # Absolute path.
16445 ac_srcdir
=$srcdir$ac_dir_suffix;
16446 ac_top_srcdir
=$srcdir ;;
16447 *) # Relative path.
16448 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16449 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16452 # Do not use `cd foo && pwd` to compute absolute paths, because
16453 # the directories may not exist.
16455 .
) ac_abs_builddir
="$ac_dir";;
16458 .
) ac_abs_builddir
=`pwd`;;
16459 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16460 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16463 case $ac_abs_builddir in
16464 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16466 case ${ac_top_builddir}.
in
16467 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16468 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16469 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16472 case $ac_abs_builddir in
16473 .
) ac_abs_srcdir
=$ac_srcdir;;
16476 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16477 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16478 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16481 case $ac_abs_builddir in
16482 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16484 case $ac_top_srcdir in
16485 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16486 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16487 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16493 if test x
"$ac_file" != x-
; then
16494 { echo "$as_me:$LINENO: creating $ac_file" >&5
16495 echo "$as_me: creating $ac_file" >&6;}
16498 # Let's still pretend it is `configure' which instantiates (i.e., don't
16499 # use $as_me), people would be surprised to read:
16500 # /* config.h. Generated by config.status. */
16501 if test x
"$ac_file" = x-
; then
16504 configure_input
="$ac_file. "
16506 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16507 sed 's,.*/,,'` by configure."
16509 # First look for the input files in the build tree, otherwise in the
16511 ac_file_inputs
=`IFS=:
16512 for f in $ac_file_in; do
16514 -) echo $tmp/stdin ;;
16516 # Absolute (can't be DOS-style, as IFS=:)
16517 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16518 echo "$as_me: error: cannot find input file: $f" >&2;}
16519 { (exit 1); exit 1; }; }
16522 if test -f "$f"; then
16525 elif test -f "$srcdir/$f"; then
16530 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16531 echo "$as_me: error: cannot find input file: $f" >&2;}
16532 { (exit 1); exit 1; }; }
16535 done` ||
{ (exit 1); exit 1; }
16537 cat >>$CONFIG_STATUS <<_ACEOF
16541 cat >>$CONFIG_STATUS <<\_ACEOF
16543 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16544 s
,@configure_input@
,$configure_input,;t t
16545 s
,@srcdir@
,$ac_srcdir,;t t
16546 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16547 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16548 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16549 s
,@builddir@
,$ac_builddir,;t t
16550 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16551 s
,@top_builddir@
,$ac_top_builddir,;t t
16552 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16553 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16555 if test x"$ac_file" != x-; then
16556 mv $tmp/out $ac_file
16564 cat >>$CONFIG_STATUS <<\_ACEOF
16567 # CONFIG_HEADER section.
16570 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16571 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16573 # ac_d sets the value in "#define NAME VALUE" lines.
16574 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16575 ac_dB
='[ ].*$,\1#\2'
16578 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16579 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16580 ac_uB
='$,\1#\2define\3'
16584 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16585 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16587 - |
*:- |
*:-:* ) # input from stdin
16589 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16590 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16591 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16592 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16593 * ) ac_file_in
=$ac_file.
in ;;
16596 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16597 echo "$as_me: creating $ac_file" >&6;}
16599 # First look for the input files in the build tree, otherwise in the
16601 ac_file_inputs
=`IFS=:
16602 for f in $ac_file_in; do
16604 -) echo $tmp/stdin ;;
16606 # Absolute (can't be DOS-style, as IFS=:)
16607 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16608 echo "$as_me: error: cannot find input file: $f" >&2;}
16609 { (exit 1); exit 1; }; }
16610 # Do quote $f, to prevent DOS paths from being IFS'd.
16613 if test -f "$f"; then
16616 elif test -f "$srcdir/$f"; then
16621 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16622 echo "$as_me: error: cannot find input file: $f" >&2;}
16623 { (exit 1); exit 1; }; }
16626 done` ||
{ (exit 1); exit 1; }
16627 # Remove the trailing spaces.
16628 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16632 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16633 # `conftest.undefs', that substitutes the proper values into
16634 # config.h.in to produce config.h. The first handles `#define'
16635 # templates, and the second `#undef' templates.
16636 # And first: Protect against being on the right side of a sed subst in
16637 # config.status. Protect against being in an unquoted here document
16638 # in config.status.
16639 rm -f conftest.defines conftest.undefs
16640 # Using a here document instead of a string reduces the quoting nightmare.
16641 # Putting comments in sed scripts is not portable.
16643 # `end' is used to avoid that the second main sed command (meant for
16644 # 0-ary CPP macros) applies to n-ary macro definitions.
16645 # See the Autoconf documentation for `clear'.
16646 cat >confdef2sed.
sed <<\_ACEOF
16651 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16653 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16656 # If some macros were called several times there might be several times
16657 # the same #defines, which is useless. Nevertheless, we may not want to
16658 # sort them, since we want the *last* AC-DEFINE to be honored.
16659 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16660 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16661 rm -f confdef2sed.sed
16663 # This sed command replaces #undef with comments. This is necessary, for
16664 # example, in the case of _POSIX_SOURCE, which is predefined and required
16665 # on some systems where configure will not decide to define it.
16666 cat >>conftest.undefs <<\_ACEOF
16667 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16670 # Break up conftest.defines because some shells have a limit on the size
16671 # of here documents, and old seds have small limits too (100 cmds).
16672 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16673 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16674 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16675 echo ' :' >>$CONFIG_STATUS
16676 rm -f conftest.tail
16677 while grep . conftest.defines >/dev/null
16679 # Write a limited-size here document to $tmp/defines.sed.
16680 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16681 # Speed up: don't consider the non `#define' lines.
16682 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16683 # Work around the forget-to-reset-the-flag bug.
16684 echo 't clr' >>$CONFIG_STATUS
16685 echo ': clr' >>$CONFIG_STATUS
16686 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16688 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16690 mv $tmp/out $tmp/in
16692 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16693 rm -f conftest.defines
16694 mv conftest.
tail conftest.defines
16696 rm -f conftest.defines
16697 echo ' fi # grep' >>$CONFIG_STATUS
16698 echo >>$CONFIG_STATUS
16700 # Break up conftest.undefs because some shells have a limit on the size
16701 # of here documents, and old seds have small limits too (100 cmds).
16702 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16703 rm -f conftest.
tail
16704 while grep . conftest.undefs
>/dev
/null
16706 # Write a limited-size here document to $tmp/undefs.sed.
16707 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16708 # Speed up: don't consider the non
`#undef'
16709 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16710 # Work around the forget-to-reset-the-flag bug.
16711 echo 't clr' >>$CONFIG_STATUS
16712 echo ': clr' >>$CONFIG_STATUS
16713 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16715 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16717 mv $tmp/out $tmp/in
16719 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16720 rm -f conftest.undefs
16721 mv conftest.tail conftest.undefs
16723 rm -f conftest.undefs
16725 cat >>$CONFIG_STATUS <<\_ACEOF
16726 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16727 # use $as_me), people would be surprised to read:
16728 # /* config.h. Generated by config.status. */
16729 if test x
"$ac_file" = x-
; then
16730 echo "/* Generated by configure. */" >$tmp/config.h
16732 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16734 cat $tmp/in >>$tmp/config.h
16736 if test x
"$ac_file" != x-
; then
16737 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16738 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16739 echo "$as_me: $ac_file is unchanged" >&6;}
16741 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16743 X"$ac_file" : 'X\(//\)[^/]' \| \
16744 X"$ac_file" : 'X\(//\)$' \| \
16745 X"$ac_file" : 'X\(/\)' \| \
16746 . : '\(.\)' 2>/dev/null ||
16748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16749 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16750 /^X\(\/\/\)$/{ s//\1/; q; }
16751 /^X\(\/\).*/{ s//\1/; q; }
16753 { if $as_mkdir_p; then
16758 while test ! -d "$as_dir"; do
16759 as_dirs
="$as_dir $as_dirs"
16760 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16762 X"$as_dir" : 'X\(//\)[^/]' \| \
16763 X"$as_dir" : 'X\(//\)$' \| \
16764 X"$as_dir" : 'X\(/\)' \| \
16765 . : '\(.\)' 2>/dev/null ||
16767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16769 /^X\(\/\/\)$/{ s//\1/; q; }
16770 /^X\(\/\).*/{ s//\1/; q; }
16773 test ! -n "$as_dirs" || mkdir
$as_dirs
16774 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16775 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16776 { (exit 1); exit 1; }; }; }
16779 mv $tmp/config.h
$ac_file
16783 rm -f $tmp/config.h
16787 cat >>$CONFIG_STATUS <<\_ACEOF
16790 # CONFIG_COMMANDS section.
16792 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16793 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16794 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16795 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16796 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16797 X"$ac_dest" : 'X\(//\)[^/]' \| \
16798 X"$ac_dest" : 'X\(//\)$' \| \
16799 X"$ac_dest" : 'X\(/\)' \| \
16800 . : '\(.\)' 2>/dev/null ||
16802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16804 /^X\(\/\/\)$/{ s//\1/; q; }
16805 /^X\(\/\).*/{ s//\1/; q; }
16807 { if $as_mkdir_p; then
16812 while test ! -d "$as_dir"; do
16813 as_dirs
="$as_dir $as_dirs"
16814 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16816 X"$as_dir" : 'X\(//\)[^/]' \| \
16817 X"$as_dir" : 'X\(//\)$' \| \
16818 X"$as_dir" : 'X\(/\)' \| \
16819 . : '\(.\)' 2>/dev/null ||
16821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16823 /^X\(\/\/\)$/{ s//\1/; q; }
16824 /^X\(\/\).*/{ s//\1/; q; }
16827 test ! -n "$as_dirs" || mkdir
$as_dirs
16828 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16830 { (exit 1); exit 1; }; }; }
16834 if test "$ac_dir" != .
; then
16835 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16836 # A "../" for each directory in $ac_dir_suffix.
16837 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16839 ac_dir_suffix
= ac_top_builddir
=
16843 .
) # No --srcdir option. We are building in place.
16845 if test -z "$ac_top_builddir"; then
16848 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16850 [\\/]* | ?
:[\\/]* ) # Absolute path.
16851 ac_srcdir
=$srcdir$ac_dir_suffix;
16852 ac_top_srcdir
=$srcdir ;;
16853 *) # Relative path.
16854 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16855 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16858 # Do not use `cd foo && pwd` to compute absolute paths, because
16859 # the directories may not exist.
16861 .
) ac_abs_builddir
="$ac_dir";;
16864 .
) ac_abs_builddir
=`pwd`;;
16865 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16866 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16869 case $ac_abs_builddir in
16870 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16872 case ${ac_top_builddir}.
in
16873 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16874 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16875 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16878 case $ac_abs_builddir in
16879 .
) ac_abs_srcdir
=$ac_srcdir;;
16882 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16883 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16884 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16887 case $ac_abs_builddir in
16888 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16890 case $ac_top_srcdir in
16891 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16892 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16893 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16898 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16899 echo "$as_me: executing $ac_dest commands" >&6;}
16902 case ${CONFIG_HEADERS} in
16903 *auto-host.h
:config.
in*)
16906 # Make sure all the subdirs exist.
16907 for d
in $subdirs doc build
16909 test -d $d || mkdir
$d
16911 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
16912 # bootstrapping and the installation procedure can still use
16913 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
16914 # FLAGS_TO_PASS has been modified to solve the problem there.
16915 # This is virtually a duplicate of what happens in configure.lang; we do
16916 # an extra check to make sure this only happens if ln -s can be used.
16919 for d
in ${subdirs} ; do
16920 STARTDIR
=`${PWDCMD-pwd}`
16922 for t
in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
16925 $LN_S ..
/$t $t 2>/dev
/null
16936 cat >>$CONFIG_STATUS <<\_ACEOF
16938 { (exit 0); exit 0; }
16940 chmod +x
$CONFIG_STATUS
16941 ac_clean_files
=$ac_clean_files_save
16944 # configure is writing to config.log, and then calls config.status.
16945 # config.status does its own redirection, appending to config.log.
16946 # Unfortunately, on DOS this fails, as config.log is still kept open
16947 # by configure, so config.status won't be able to write to it; its
16948 # output is simply discarded. So we exec the FD to /dev/null,
16949 # effectively closing config.log, so it can be properly (re)opened and
16950 # appended to by config.status. When coming back to configure, we
16951 # need to make the FD available again.
16952 if test "$no_create" != yes; then
16954 ac_config_status_args
=
16955 test "$silent" = yes &&
16956 ac_config_status_args
="$ac_config_status_args --quiet"
16958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16961 # would make configure fail if this is the last instruction.
16962 $ac_cs_success ||
{ (exit 1); exit 1; }