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_libsubdir 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 strict_warn cxx_compat_warn warn_cflags nocommon_flag TREEBROWSER valgrind_path valgrind_path_defines valgrind_command coverage_flags enable_multilib enable_decimal_float enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep datarootdir docdir htmldir SET_MAKE AWK LN_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET gcc_cv_objdump libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages 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 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 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-checking=LIST
867 enable expensive run-time checks. With LIST
,
868 enable only specific categories of checks.
869 Categories are
: yes,no
,all
,none
,release.
870 Flags are
: assert
,fold,gc
,gcac
,misc
,
871 rtlflag
,rtl
,runtime
,tree
,valgrind.
872 --enable-mapped-location location_t is fileline integer cookie
873 --enable-coverage=LEVEL
874 enable compiler
's code coverage collection.
875 Use to measure compiler performance and locate
876 unused parts of the compiler. With LEVEL, specify
877 optimization. Values are opt, noopt,
879 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
880 --enable-multilib enable library support for multiple ABIs
881 --enable-__cxa_atexit enable __cxa_atexit for C++
882 --enable-decimal-float enable decimal float extension to C
883 --enable-threads enable thread usage for target GCC
884 --enable-threads=LIB use LIB thread package for target GCC
885 --enable-tls enable or disable generation of tls code
886 overriding the assembler check for tls support
887 --enable-objc-gc enable the use of Boehm's garbage collector with
888 the GNU Objective-C runtime
889 --disable-shared don
't provide a shared libgcc
890 --enable-intermodule build the compiler in one step
891 --enable-languages=LIST specify which front-ends to build
892 --disable-rpath do not hardcode runtime library paths
893 --enable-initfini-array use .init_array/.fini_array sections
894 --enable-sjlj-exceptions
895 arrange to use setjmp/longjmp exception handling
896 --enable-secureplt enable -msecure-plt by default for PowerPC
897 --disable-win32-registry
898 disable lookup of installation paths in the
899 Registry on Windows hosts
900 --enable-win32-registry enable registry lookup (default)
901 --enable-win32-registry=KEY
902 use KEY instead of GCC version as the last portion
904 --enable-maintainer-mode
905 enable make rules and dependencies not useful
906 (and sometimes confusing) to the casual installer
907 --enable-version-specific-runtime-libs
908 specify that runtime libraries should be
909 installed in a compiler-specific directory
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-build-libsubdir=DIR Directory where to find libraries for build system
915 --with-local-prefix=DIR specifies directory to put local include
916 --with-gxx-include-dir=DIR
917 specifies directory to put g++ header files
918 --with-cpp-install-dir=DIR
919 install the user visible C preprocessor in DIR
920 (relative to PREFIX) as well as PREFIX/bin
921 --with-gnu-ld arrange to work with GNU ld.
922 --with-ld arrange to use the specified ld (full pathname)
923 --with-demangler-in-ld try to use demangler in GNU ld.
924 --with-gnu-as arrange to work with GNU as
925 --with-as arrange to use the specified as (full pathname)
926 --with-stabs arrange to use stabs instead of host debug format
927 --with-dwarf2 force the default debug format to be DWARF 2
928 --with-build-sysroot=sysroot
929 use sysroot as the system root during the build
930 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931 --with-gnu-ld assume the C compiler uses GNU ld default=no
932 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
933 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
934 --with-system-libunwind use installed libunwind
935 --with-long-double-128 Use
128-bit long double by default.
936 --with-gc={page
,zone
} choose the garbage collection mechanism to use
938 --with-system-zlib use installed libz
939 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
940 --with-datarootdir=DIR Use DIR as the data root
[PREFIX
/share
]
941 --with-docdir=DIR Install documentation
in DIR
[DATAROOTDIR
]
942 --with-htmldir=DIR html documentation
in in DIR
[DOCDIR
]
944 Some influential environment variables
:
945 CC C compiler
command
946 CFLAGS C compiler flags
947 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
948 nonstandard directory
<lib dir
>
949 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
950 headers
in a nonstandard directory
<include dir
>
952 GMPLIBS How to link GMP
953 GMPINC How to
find GMP include files
955 Use these variables to override the choices made by
`configure' or to help
956 it to find libraries and programs with nonstandard names/locations.
961 if test "$ac_init_help" = "recursive"; then
962 # If there are subdirs, report their specific --help.
964 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
965 test -d $ac_dir || continue
968 if test "$ac_dir" != .; then
969 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
970 # A "../" for each directory in $ac_dir_suffix.
971 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
973 ac_dir_suffix= ac_top_builddir=
977 .) # No --srcdir option. We are building in place.
979 if test -z "$ac_top_builddir"; then
982 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
984 [\\/]* | ?:[\\/]* ) # Absolute path.
985 ac_srcdir=$srcdir$ac_dir_suffix;
986 ac_top_srcdir=$srcdir ;;
988 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
989 ac_top_srcdir=$ac_top_builddir$srcdir ;;
992 # Do not use `cd foo
&& pwd` to compute absolute paths, because
993 # the directories may not exist.
995 .) ac_abs_builddir="$ac_dir";;
998 .) ac_abs_builddir=`pwd`;;
999 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1000 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1003 case $ac_abs_builddir in
1004 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 case ${ac_top_builddir}. in
1007 .) ac_abs_top_builddir=$ac_abs_builddir;;
1008 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1012 case $ac_abs_builddir in
1013 .) ac_abs_srcdir=$ac_srcdir;;
1016 .) ac_abs_srcdir=$ac_abs_builddir;;
1017 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1018 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1021 case $ac_abs_builddir in
1022 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 case $ac_top_srcdir in
1025 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1026 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032 # Check for guested configure; otherwise get Cygnus style configure.
1033 if test -f $ac_srcdir/configure.gnu; then
1035 $SHELL $ac_srcdir/configure.gnu --help=recursive
1036 elif test -f $ac_srcdir/configure; then
1038 $SHELL $ac_srcdir/configure --help=recursive
1039 elif test -f $ac_srcdir/configure.ac ||
1040 test -f $ac_srcdir/configure.in; then
1042 $ac_configure --help
1044 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050 test -n "$ac_init_help" && exit 0
1051 if $ac_init_version; then
1054 Copyright (C) 2003 Free Software Foundation, Inc.
1055 This configure script is free software; the Free Software Foundation
1056 gives unlimited permission to copy, distribute and modify it.
1062 This file contains any messages produced by compilers while
1063 running configure, to aid debugging if configure makes a mistake.
1065 It was created by $as_me, which was
1066 generated by GNU Autoconf 2.59. Invocation command line was
1077 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1078 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1079 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1080 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1081 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1083 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1084 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1086 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1087 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1088 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1089 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1090 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1091 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1092 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 test -z "$as_dir" && as_dir=.
1101 echo "PATH: $as_dir"
1116 # Keep a trace of the command line.
1117 # Strip out --no-create and --no-recursion so they do not pile up.
1118 # Strip out --silent because we don't want to record it for future runs.
1119 # Also quote any args containing shell meta-characters.
1120 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_must_keep_next=false
1131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1135 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1136 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1139 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1142 if test $ac_must_keep_next = true; then
1143 ac_must_keep_next=false # Got value, back to normal.
1146 *=* | --config-cache | -C | -disable-* | --disable-* \
1147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1149 | -with-* | --with-* | -without-* | --without-* | --x)
1150 case "$ac_configure_args0 " in
1151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1154 -* ) ac_must_keep_next=true ;;
1157 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1158 # Get rid of the leading space.
1164 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1165 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167 # When interrupted or exit'd, cleanup temporary files, and complete
1168 # config.log. We remove comments because anyway the quotes in there
1169 # would cause problems or look ugly.
1170 # WARNING: Be sure not to use single quotes in there, as some shells,
1171 # such as our DU 5.0 friend, will then `close
' the trap.
1172 trap 'exit_status
=$?
1173 # Save into config.log some information that might help in debugging.
1178 ## ---------------- ##
1179 ## Cache variables. ##
1180 ## ---------------- ##
1183 # The following way of writing the cache mishandles newlines in values,
1186 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1189 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1201 ## ----------------- ##
1202 ## Output variables. ##
1203 ## ----------------- ##
1206 for ac_var
in $ac_subst_vars
1208 eval ac_val
=$
`echo $ac_var`
1209 echo "$ac_var='"'"'$ac_val'"'"'"
1213 if test -n "$ac_subst_files"; then
1220 for ac_var
in $ac_subst_files
1222 eval ac_val
=$
`echo $ac_var`
1223 echo "$ac_var='"'"'$ac_val'"'"'"
1228 if test -s confdefs.h
; then
1235 sed "/^$/d" confdefs.h |
sort
1238 test "$ac_signal" != 0 &&
1239 echo "$as_me: caught signal $ac_signal"
1240 echo "$as_me: exit $exit_status"
1242 rm -f core
*.core
&&
1243 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1246 for ac_signal in 1 2 13 15; do
1247 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1252 rm -rf conftest* confdefs.h
1253 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1256 # Predefined preprocessor variables.
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 # Let the site file select an alternate cache file if it wants to.
1284 # Prefer explicitly selected file to automatically selected ones.
1285 if test -z "$CONFIG_SITE"; then
1286 if test "x$prefix" != xNONE; then
1287 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1292 for ac_site_file in $CONFIG_SITE; do
1293 if test -r "$ac_site_file"; then
1294 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1295 echo "$as_me: loading site script $ac_site_file" >&6;}
1296 sed 's
/^
/|
/' "$ac_site_file" >&5
1301 if test -r "$cache_file"; then
1302 # Some versions of bash will fail to source /dev/null (special
1303 # files actually), so we avoid doing that.
1304 if test -f "$cache_file"; then
1305 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1306 echo "$as_me: loading cache $cache_file" >&6;}
1308 [\\/]* | ?:[\\/]* ) . $cache_file;;
1309 *) . ./$cache_file;;
1313 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1314 echo "$as_me: creating cache $cache_file" >&6;}
1318 # Check that the precious variables saved in the cache have kept the same
1320 ac_cache_corrupted=false
1321 for ac_var in `(set) 2>&1 |
1322 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1324 eval ac_new_set=\$ac_env_${ac_var}_set
1325 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1326 eval ac_new_val="\$ac_env_${ac_var}_value"
1327 case $ac_old_set,$ac_new_set in
1329 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1331 ac_cache_corrupted=: ;;
1333 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1335 ac_cache_corrupted=: ;;
1338 if test "x$ac_old_val" != "x$ac_new_val"; then
1339 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1340 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1341 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1342 echo "$as_me: former value: $ac_old_val" >&2;}
1343 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1344 echo "$as_me: current value: $ac_new_val" >&2;}
1345 ac_cache_corrupted=:
1348 # Pass precious variables to config.status.
1349 if test "$ac_new_set" = set; then
1351 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1352 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1353 *) ac_arg=$ac_var=$ac_new_val ;;
1355 case " $ac_configure_args " in
1356 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1357 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361 if $ac_cache_corrupted; then
1362 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1363 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1364 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1365 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1366 { (exit 1); exit 1; }; }
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1372 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394 ac_config_headers="$ac_config_headers auto-host.h:config.in"
1397 gcc_version=`cat $srcdir/BASE-VER`
1399 # Determine the host, build, and target systems
1401 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1402 if test -f $ac_dir/install-sh; then
1404 ac_install_sh="$ac_aux_dir/install-sh -c"
1406 elif test -f $ac_dir/install.sh; then
1408 ac_install_sh="$ac_aux_dir/install.sh -c"
1410 elif test -f $ac_dir/shtool; then
1412 ac_install_sh="$ac_aux_dir/shtool install -c"
1416 if test -z "$ac_aux_dir"; then
1417 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1418 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1419 { (exit 1); exit 1; }; }
1421 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1422 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1423 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425 # Make sure we can run config.sub.
1426 $ac_config_sub sun4 >/dev/null 2>&1 ||
1427 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1429 { (exit 1); exit 1; }; }
1431 echo "$as_me:$LINENO: checking build system type" >&5
1432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1433 if test "${ac_cv_build+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_build_alias=$build_alias
1437 test -z "$ac_cv_build_alias" &&
1438 ac_cv_build_alias=`$ac_config_guess`
1439 test -z "$ac_cv_build_alias" &&
1440 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1442 { (exit 1); exit 1; }; }
1443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1450 echo "${ECHO_T}$ac_cv_build" >&6
1452 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1453 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1454 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1457 echo "$as_me:$LINENO: checking host system type" >&5
1458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1459 if test "${ac_cv_host+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 ac_cv_host_alias=$host_alias
1463 test -z "$ac_cv_host_alias" &&
1464 ac_cv_host_alias=$ac_cv_build_alias
1465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1466 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1468 { (exit 1); exit 1; }; }
1471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1472 echo "${ECHO_T}$ac_cv_host" >&6
1474 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1475 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1476 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1479 echo "$as_me:$LINENO: checking target system type" >&5
1480 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1481 if test "${ac_cv_target+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 ac_cv_target_alias=$target_alias
1485 test "x$ac_cv_target_alias" = "x" &&
1486 ac_cv_target_alias=$ac_cv_host_alias
1487 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1488 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1489 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1490 { (exit 1); exit 1; }; }
1493 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1494 echo "${ECHO_T}$ac_cv_target" >&6
1495 target=$ac_cv_target
1496 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1497 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1498 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1501 # The aliases save the names the user supplied, while $host etc.
1502 # will get canonicalized.
1503 test -n "$target_alias" &&
1504 test "$program_prefix$program_suffix$program_transform_name" = \
1506 program_prefix=${target_alias}-
1508 # Determine the noncanonical target name, for directory use.
1509 case ${build_alias} in
1510 "") build_noncanonical=${build} ;;
1511 *) build_noncanonical=${build_alias} ;;
1514 case ${host_alias} in
1515 "") host_noncanonical=${build_noncanonical} ;;
1516 *) host_noncanonical=${host_alias} ;;
1519 case ${target_alias} in
1520 "") target_noncanonical=${host_noncanonical} ;;
1521 *) target_noncanonical=${target_alias} ;;
1527 # Determine the target- and build-specific subdirectories
1529 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1530 # have matching libraries, they should use host libraries: Makefile.tpl
1531 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1532 # However, they still use the build modules, because the corresponding
1533 # host modules (e.g. bison) are only built for the host when bootstrap
1535 # - build_subdir is where we find build modules, and never changes.
1536 # - build_libsubdir is where we find build libraries, and can be overridden.
1538 # Prefix 'build-
' so this never conflicts with target_subdir.
1539 build_subdir="build-${build_noncanonical}"
1541 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1542 if test "${with_build_libsubdir+set}" = set; then
1543 withval="$with_build_libsubdir"
1544 build_libsubdir="$withval"
1546 build_libsubdir="$build_subdir"
1548 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1549 if ( test $srcdir = . && test -d gcc ) \
1550 || test -d $srcdir/../host-${host_noncanonical}; then
1551 host_subdir="host-${host_noncanonical}"
1556 target_subdir=${target_noncanonical}
1559 # Set program_transform_name
1560 test "$program_prefix" != NONE &&
1561 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1562 # Use a double $ so make ignores it.
1563 test "$program_suffix" != NONE &&
1564 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1565 # Double any \ or $. echo might interpret backslashes.
1566 # By default was `s,x,x', remove it
if useless.
1567 cat <<\_ACEOF
>conftest.
sed
1568 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1570 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1574 # Check for bogus environment variables.
1575 # Test if LIBRARY_PATH contains the notation for the current directory
1576 # since this would lead to problems installing/building glibc.
1577 # LIBRARY_PATH contains the current directory if one of the following
1579 # - one of the terminals (":" and ";") is the first or last sign
1580 # - two terminals occur directly after each other
1581 # - the path contains an element with a dot in it
1582 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1583 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1584 case ${LIBRARY_PATH} in
1585 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1586 library_path_setting
="contains current directory"
1589 library_path_setting
="ok"
1592 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1593 echo "${ECHO_T}$library_path_setting" >&6
1594 if test "$library_path_setting" != "ok"; then
1595 { { echo "$as_me:$LINENO: error:
1596 *** LIBRARY_PATH shouldn't contain the current directory when
1597 *** building gcc. Please change the environment variable
1598 *** and run configure again." >&5
1599 echo "$as_me: error:
1600 *** LIBRARY_PATH shouldn't contain the current directory when
1601 *** building gcc. Please change the environment variable
1602 *** and run configure again." >&2;}
1603 { (exit 1); exit 1; }; }
1606 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1607 # since this would lead to problems installing/building glibc.
1608 # GCC_EXEC_PREFIX contains the current directory if one of the following
1610 # - one of the terminals (":" and ";") is the first or last sign
1611 # - two terminals occur directly after each other
1612 # - the path contains an element with a dot in it
1613 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1614 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1615 case ${GCC_EXEC_PREFIX} in
1616 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
1617 gcc_exec_prefix_setting
="contains current directory"
1620 gcc_exec_prefix_setting
="ok"
1623 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1624 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1625 if test "$gcc_exec_prefix_setting" != "ok"; then
1626 { { echo "$as_me:$LINENO: error:
1627 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1628 *** building gcc. Please change the environment variable
1629 *** and run configure again." >&5
1630 echo "$as_me: error:
1631 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1632 *** building gcc. Please change the environment variable
1633 *** and run configure again." >&2;}
1634 { (exit 1); exit 1; }; }
1641 # Specify the local prefix
1644 # Check whether --with-local-prefix or --without-local-prefix was given.
1645 if test "${with_local_prefix+set}" = set; then
1646 withval
="$with_local_prefix"
1647 case "${withval}" in
1648 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1649 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1650 { (exit 1); exit 1; }; } ;;
1652 *) local_prefix
=$with_local_prefix ;;
1656 # Default local prefix if it is empty
1657 if test x
$local_prefix = x
; then
1658 local_prefix
=/usr
/local
1661 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1662 # passed in by the toplevel make and thus we'd get different behavior
1663 # depending on where we built the sources.
1664 gcc_gxx_include_dir
=
1665 # Specify the g++ header file directory
1667 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1668 if test "${with_gxx_include_dir+set}" = set; then
1669 withval
="$with_gxx_include_dir"
1670 case "${withval}" in
1671 yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1672 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1673 { (exit 1); exit 1; }; } ;;
1675 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
1679 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1680 if test x
${gcc_gxx_include_dir} = x
; then
1681 if test x
${enable_version_specific_runtime_libs} = xyes
; then
1682 gcc_gxx_include_dir
='${libsubdir}/include/c++'
1684 libstdcxx_incdir
='include/c++/$(version)'
1685 if test x
$host != x
$target; then
1686 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
1688 gcc_gxx_include_dir
="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/$libstdcxx_incdir"
1693 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1694 if test "${with_cpp_install_dir+set}" = set; then
1695 withval
="$with_cpp_install_dir"
1696 if test x
$withval = xyes
; then
1697 { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1698 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1699 { (exit 1); exit 1; }; }
1700 elif test x
$withval != xno
; then
1701 cpp_install_dir
=$withval
1705 # We would like to our source tree to be readonly. However when releases or
1706 # pre-releases are generated, the flex/bison generated files as well as the
1707 # various formats of manuals need to be included along with the rest of the
1708 # sources. Therefore we have --enable-generated-files-in-srcdir to do
1711 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1712 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1713 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1714 if test "${enable_generated_files_in_srcdir+set}" = set; then
1715 enableval
="$enable_generated_files_in_srcdir"
1716 generated_files_in_srcdir
=$enableval
1718 generated_files_in_srcdir
=no
1721 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1722 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1724 if test "$generated_files_in_srcdir" = "yes"; then
1731 # -------------------
1732 # Find default linker
1733 # -------------------
1737 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1738 if test "${with_gnu_ld+set}" = set; then
1739 withval
="$with_gnu_ld"
1740 gnu_ld_flag
="$with_gnu_ld"
1745 # With pre-defined ld
1747 # Check whether --with-ld or --without-ld was given.
1748 if test "${with_ld+set}" = set; then
1750 DEFAULT_LINKER
="$with_ld"
1752 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1753 if test ! -x "$DEFAULT_LINKER"; then
1754 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1755 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1756 { (exit 1); exit 1; }; }
1757 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1761 cat >>confdefs.h
<<_ACEOF
1762 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1767 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1768 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1769 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
1770 if test x
"$gnu_ld_flag" = x
"no"; then
1771 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1772 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1774 echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1775 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 # With demangler in GNU ld
1784 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1785 if test "${with_demangler_in_ld+set}" = set; then
1786 withval
="$with_demangler_in_ld"
1787 demangler_in_ld
="$with_demangler_in_ld"
1792 # ----------------------
1793 # Find default assembler
1794 # ----------------------
1798 # Check whether --with-gnu-as or --without-gnu-as was given.
1799 if test "${with_gnu_as+set}" = set; then
1800 withval
="$with_gnu_as"
1801 gas_flag
="$with_gnu_as"
1807 # Check whether --with-as or --without-as was given.
1808 if test "${with_as+set}" = set; then
1810 DEFAULT_ASSEMBLER
="$with_as"
1812 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1813 if test ! -x "$DEFAULT_ASSEMBLER"; then
1814 { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1815 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1816 { (exit 1); exit 1; }; }
1817 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
1821 cat >>confdefs.h
<<_ACEOF
1822 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1827 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1828 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1829 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
1830 if test x
"$gas_flag" = x
"no"; then
1831 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1832 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1834 echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1835 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1838 echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1846 # If a non-executable a.out is present (e.g. created by GNU as above even if
1847 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1848 # file, even when creating an executable, so an execution test fails.
1849 # Remove possible default executable files to avoid this.
1851 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1852 # Autoconf includes it.
1853 rm -f a.out a.exe b.out
1855 # Find the native compiler
1857 ac_cpp
='$CPP $CPPFLAGS'
1858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1863 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_CC+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 if test -n "$CC"; then
1870 ac_cv_prog_CC
="$CC" # Let the user override the test.
1872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir
=.
1877 for ac_exec_ext
in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 if test -n "$CC"; then
1890 echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1898 if test -z "$ac_cv_prog_CC"; then
1900 # Extract the first word of "gcc", so it can be a program name with args.
1901 set dummy gcc
; ac_word
=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 if test -n "$ac_ct_CC"; then
1908 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1914 test -z "$as_dir" && as_dir
=.
1915 for ac_exec_ext
in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_CC
="gcc"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1927 if test -n "$ac_ct_CC"; then
1928 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1929 echo "${ECHO_T}$ac_ct_CC" >&6
1931 echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1940 if test -z "$CC"; then
1941 if test -n "$ac_tool_prefix"; then
1942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1943 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_CC+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
1949 if test -n "$CC"; then
1950 ac_cv_prog_CC
="$CC" # Let the user override the test.
1952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1956 test -z "$as_dir" && as_dir
=.
1957 for ac_exec_ext
in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 if test -n "$CC"; then
1970 echo "$as_me:$LINENO: result: $CC" >&5
1971 echo "${ECHO_T}$CC" >&6
1973 echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1978 if test -z "$ac_cv_prog_CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc
; ac_word
=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test -n "$ac_ct_CC"; then
1988 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir
=.
1995 for ac_exec_ext
in '' $ac_executable_extensions; do
1996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997 ac_cv_prog_ac_ct_CC
="cc"
1998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2007 if test -n "$ac_ct_CC"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2009 echo "${ECHO_T}$ac_ct_CC" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2021 if test -z "$CC"; then
2022 # Extract the first word of "cc", so it can be a program name with args.
2023 set dummy cc
; ac_word
=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_CC+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$CC"; then
2030 ac_cv_prog_CC
="$CC" # Let the user override the test.
2033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2037 test -z "$as_dir" && as_dir
=.
2038 for ac_exec_ext
in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2041 ac_prog_rejected
=yes
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 if test $ac_prog_rejected = yes; then
2052 # We found a bogon in the path, so make sure we never use it.
2053 set dummy
$ac_cv_prog_CC
2055 if test $# != 0; then
2056 # We chose a different compiler from the bogus one.
2057 # However, it has the same basename, so the bogon will be chosen
2058 # first if we set CC to just the basename; use the full file name.
2060 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2066 if test -n "$CC"; then
2067 echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6
2070 echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2075 if test -z "$CC"; then
2076 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2080 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test -n "$CC"; then
2087 ac_cv_prog_CC
="$CC" # Let the user override the test.
2089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir
=.
2094 for ac_exec_ext
in '' $ac_executable_extensions; do
2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 if test -n "$CC"; then
2107 echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2110 echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2114 test -n "$CC" && break
2117 if test -z "$CC"; then
2121 # Extract the first word of "$ac_prog", so it can be a program name with args.
2122 set dummy
$ac_prog; ac_word
=$2
2123 echo "$as_me:$LINENO: checking for $ac_word" >&5
2124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2128 if test -n "$ac_ct_CC"; then
2129 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2135 test -z "$as_dir" && as_dir
=.
2136 for ac_exec_ext
in '' $ac_executable_extensions; do
2137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138 ac_cv_prog_ac_ct_CC
="$ac_prog"
2139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2147 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2148 if test -n "$ac_ct_CC"; then
2149 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2150 echo "${ECHO_T}$ac_ct_CC" >&6
2152 echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6
2156 test -n "$ac_ct_CC" && break
2165 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2166 See \`config.log' for more details." >&5
2167 echo "$as_me: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&2;}
2169 { (exit 1); exit 1; }; }
2171 # Provide some information about the compiler.
2172 echo "$as_me:$LINENO:" \
2173 "checking for C compiler version" >&5
2174 ac_compiler
=`set X $ac_compile; echo $2`
2175 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2176 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }
2180 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2181 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }
2185 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2186 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }
2191 cat >conftest.
$ac_ext <<_ACEOF
2194 cat confdefs.h
>>conftest.
$ac_ext
2195 cat >>conftest.
$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2206 ac_clean_files_save
=$ac_clean_files
2207 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2208 # Try to create an executable without -o first, disregard a.out.
2209 # It will help us diagnose broken compilers, and finding out an intuition
2211 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2212 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2213 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2214 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2215 (eval $ac_link_default) 2>&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # Find the output, starting from the most likely. This scheme is
2220 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2223 # Be careful to initialize this variable, since it used to be cached.
2224 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2226 # b.out is created by i960 compilers.
2227 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2229 test -f "$ac_file" ||
continue
2231 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2234 # This is the source file.
2237 # We found the default executable, but exeext='' is most
2241 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2242 # FIXME: I believe we export ac_cv_exeext for Libtool,
2243 # but it would be cool to find out if it's true. Does anybody
2244 # maintain Libtool? --akim.
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.
$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: C compiler cannot create executables
2258 See \`config.log' for more details." >&2;}
2259 { (exit 77); exit 77; }; }
2262 ac_exeext
=$ac_cv_exeext
2263 echo "$as_me:$LINENO: result: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6
2266 # Check the compiler produces executables we can run. If not, either
2267 # the compiler is broken, or we cross compile.
2268 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2269 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2270 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2271 # If not cross compiling, check that we can run a simple program.
2272 if test "$cross_compiling" != yes; then
2273 if { ac_try
='./$ac_file'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 if test "$cross_compiling" = maybe
; then
2284 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290 { (exit 1); exit 1; }; }
2294 echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6
2297 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2298 ac_clean_files
=$ac_clean_files_save
2299 # Check the compiler produces executables we can run. If not, either
2300 # the compiler is broken, or we cross compile.
2301 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2303 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6
2306 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2309 (eval $ac_link) 2>&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; then
2313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2314 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2315 # work properly (i.e., refer to `conftest.exe'), while it won't with
2317 for ac_file
in conftest.exe conftest conftest.
*; do
2318 test -f "$ac_file" ||
continue
2320 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2321 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest
$ac_cv_exeext
2336 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6
2339 rm -f conftest.
$ac_ext
2340 EXEEXT
=$ac_cv_exeext
2342 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2344 if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.
$ac_ext <<_ACEOF
2350 cat confdefs.h
>>conftest.
$ac_ext
2351 cat >>conftest.
$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2362 rm -f conftest.o conftest.obj
2363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364 (eval $ac_compile) 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; then
2368 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2370 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2371 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.
$ac_ext >&5
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2388 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2389 echo "${ECHO_T}$ac_cv_objext" >&6
2390 OBJEXT
=$ac_cv_objext
2392 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2393 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2394 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 cat >conftest.
$ac_ext <<_ACEOF
2400 cat confdefs.h
>>conftest.
$ac_ext
2401 cat >>conftest.
$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2415 rm -f conftest.
$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417 (eval $ac_compile) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1
>conftest.err
2421 cat conftest.err
>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try
='test -z "$ac_c_werror_flag"
2425 || test ! -s conftest.err'
2426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); }; } &&
2431 { ac_try
='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.
$ac_ext >&5
2444 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2445 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2448 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2449 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2450 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2451 ac_test_CFLAGS
=${CFLAGS+set}
2452 ac_save_CFLAGS
=$CFLAGS
2454 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 cat >conftest.
$ac_ext <<_ACEOF
2462 cat confdefs.h
>>conftest.
$ac_ext
2463 cat >>conftest.
$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2474 rm -f conftest.
$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2478 grep -v '^ *+' conftest.er1
>conftest.err
2480 cat conftest.err
>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try
='test -z "$ac_c_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try
='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.
$ac_ext >&5
2503 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2507 if test "$ac_test_CFLAGS" = set; then
2508 CFLAGS
=$ac_save_CFLAGS
2509 elif test $ac_cv_prog_cc_g = yes; then
2510 if test "$GCC" = yes; then
2516 if test "$GCC" = yes; then
2522 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2523 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2524 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2527 ac_cv_prog_cc_stdc
=no
2529 cat >conftest.
$ac_ext <<_ACEOF
2532 cat confdefs.h
>>conftest.
$ac_ext
2533 cat >>conftest.
$ac_ext <<_ACEOF
2534 /* end confdefs.h. */
2537 #include <sys/types.h>
2538 #include <sys/stat.h>
2539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2540 struct buf { int x; };
2541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2542 static char *e (p, i)
2548 static char *f (char * (*g) (char **, int), char **p, ...)
2553 s = g (p, va_arg (v,int));
2558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2559 function prototypes and stuff, but not '\xHH' hex character constants.
2560 These don't provoke an error unfortunately, instead are silently treated
2561 as 'x'. The following induces an error, until -std1 is added to get
2562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2563 array size at least. It's necessary to write '\x00'==0 to get something
2564 that's true only with -std1. */
2565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2567 int test (int i, double x);
2568 struct s1 {int (*f) (int a);};
2569 struct s2 {int (*f) (double a);};
2570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2581 # Don't try gcc -ansi; that turns off useful extensions and
2582 # breaks some systems' header files.
2583 # AIX -qlanglvl=ansi
2584 # Ultrix and OSF/1 -std1
2585 # HP-UX 10.20 and later -Ae
2586 # HP-UX older versions -Aa -D_HPUX_SOURCE
2587 # SVR4 -Xc -D__EXTENSIONS__
2588 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2590 CC
="$ac_save_CC $ac_arg"
2591 rm -f conftest.
$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>conftest.er1
2595 grep -v '^ *+' conftest.er1
>conftest.err
2597 cat conftest.err
>&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try
='test -z "$ac_c_werror_flag"
2601 || test ! -s conftest.err'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; } &&
2607 { ac_try
='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2613 ac_cv_prog_cc_stdc
=$ac_arg
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.
$ac_ext >&5
2620 rm -f conftest.err conftest.
$ac_objext
2622 rm -f conftest.
$ac_ext conftest.
$ac_objext
2627 case "x$ac_cv_prog_cc_stdc" in
2629 echo "$as_me:$LINENO: result: none needed" >&5
2630 echo "${ECHO_T}none needed" >&6 ;;
2632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2634 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2637 # Some people use a C++ compiler to compile C. Since we use `exit',
2638 # in C++ we need to declare it. In case someone uses the same compiler
2639 # for both compiling C and C++ we need to have the C++ compiler decide
2640 # the declaration of exit, since it's the most demanding environment.
2641 cat >conftest.
$ac_ext <<_ACEOF
2646 rm -f conftest.
$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2650 grep -v '^ *+' conftest.er1
>conftest.err
2652 cat conftest.err
>&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try
='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try
='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 for ac_declaration
in \
2670 'extern "C" void std::exit (int) throw (); using std::exit;' \
2671 'extern "C" void std::exit (int); using std::exit;' \
2672 'extern "C" void exit (int) throw ();' \
2673 'extern "C" void exit (int);' \
2676 cat >conftest.
$ac_ext <<_ACEOF
2679 cat confdefs.h
>>conftest.
$ac_ext
2680 cat >>conftest.
$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2692 rm -f conftest.
$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1
>conftest.err
2698 cat conftest.err
>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try
='test -z "$ac_c_werror_flag"
2702 || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try
='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2722 cat >conftest.
$ac_ext <<_ACEOF
2725 cat confdefs.h
>>conftest.
$ac_ext
2726 cat >>conftest.
$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2737 rm -f conftest.
$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739 (eval $ac_compile) 2>conftest.er1
2741 grep -v '^ *+' conftest.er1
>conftest.err
2743 cat conftest.err
>&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); } &&
2746 { ac_try
='test -z "$ac_c_werror_flag"
2747 || test ! -s conftest.err'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try
='test -s conftest.$ac_objext'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.
$ac_ext >&5
2765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2768 if test -n "$ac_declaration"; then
2769 echo '#ifdef __cplusplus' >>confdefs.h
2770 echo $ac_declaration >>confdefs.h
2771 echo '#endif' >>confdefs.h
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.
$ac_ext >&5
2779 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2781 ac_cpp
='$CPP $CPPFLAGS'
2782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2786 if test "x$CC" != xcc
; then
2787 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2790 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2793 set dummy
$CC; ac_cc
=`echo $2 |
2794 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 cat >conftest.
$ac_ext <<_ACEOF
2801 cat confdefs.h
>>conftest.
$ac_ext
2802 cat >>conftest.
$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } &&
2822 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); };
2828 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
2829 if test "x$CC" != xcc
; then
2830 # Test first that cc exists at all.
2831 if { ac_try
='cc -c conftest.$ac_ext >&5'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); };
2852 # cc exists but doesn't like -o.
2853 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2858 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2867 echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2870 cat >>confdefs.h
<<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2876 # expand $ac_aux_dir to an absolute path
2877 am_aux_dir
=`cd $ac_aux_dir && pwd`
2879 # FIXME: we rely on the cache variable name because
2880 # there is no other way.
2882 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2884 # Losing compiler, so override with the script.
2885 # FIXME: It is wrong to rewrite CC.
2886 # But if we don't then we get into trouble of one sort or another.
2887 # A longer-term fix would be to have automake use am__CC in this case,
2888 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2889 CC
="$am_aux_dir/compile $CC"
2892 # autoconf is lame and doesn't give us any substitution variable for this.
2893 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2894 NO_MINUS_C_MINUS_O
=yes
2896 OUTPUT_OPTION
='-o $@'
2901 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2902 # optimizations to be activated explicitly by the toplevel.
2904 */prev-gcc
/xgcc
*) ;;
2905 *) CFLAGS
=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2909 # -------------------------
2910 # Check C compiler features
2911 # -------------------------
2914 ac_cpp
='$CPP $CPPFLAGS'
2915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2918 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2919 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2920 # On Suns, sometimes $CPP names a directory.
2921 if test -n "$CPP" && test -d "$CPP"; then
2924 if test -z "$CPP"; then
2925 if test "${ac_cv_prog_CPP+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 # Double quotes because CPP needs to be expanded
2929 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932 for ac_c_preproc_warn_flag
in '' yes
2934 # Use a header file that comes with gcc, so configuring glibc
2935 # with a fresh cross-compiler works.
2936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2937 # <limits.h> exists even on freestanding compilers.
2938 # On the NeXT, cc -E runs the code through the compiler's parser,
2939 # not just through cpp. "Syntax error" is here to catch this case.
2940 cat >conftest.
$ac_ext <<_ACEOF
2943 cat confdefs.h
>>conftest.
$ac_ext
2944 cat >>conftest.
$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2947 # include <limits.h>
2949 # include <assert.h>
2953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2954 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1
>conftest.err
2958 cat conftest.err
>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } >/dev
/null
; then
2961 if test -s conftest.err
; then
2962 ac_cpp_err
=$ac_c_preproc_warn_flag
2963 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2970 if test -z "$ac_cpp_err"; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.
$ac_ext >&5
2976 # Broken: fails on valid input.
2979 rm -f conftest.err conftest.
$ac_ext
2981 # OK, works on sane cases. Now check whether non-existent headers
2982 # can be detected and how.
2983 cat >conftest.
$ac_ext <<_ACEOF
2986 cat confdefs.h
>>conftest.
$ac_ext
2987 cat >>conftest.
$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2989 #include <ac_nonexistent.h>
2991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2992 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2994 grep -v '^ *+' conftest.er1
>conftest.err
2996 cat conftest.err
>&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } >/dev
/null
; then
2999 if test -s conftest.err
; then
3000 ac_cpp_err
=$ac_c_preproc_warn_flag
3001 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3008 if test -z "$ac_cpp_err"; then
3009 # Broken: success on invalid input.
3012 echo "$as_me: failed program was:" >&5
3013 sed 's/^/| /' conftest.
$ac_ext >&5
3015 # Passes both tests.
3019 rm -f conftest.err conftest.
$ac_ext
3022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3023 rm -f conftest.err conftest.
$ac_ext
3024 if $ac_preproc_ok; then
3036 echo "$as_me:$LINENO: result: $CPP" >&5
3037 echo "${ECHO_T}$CPP" >&6
3039 for ac_c_preproc_warn_flag
in '' yes
3041 # Use a header file that comes with gcc, so configuring glibc
3042 # with a fresh cross-compiler works.
3043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3044 # <limits.h> exists even on freestanding compilers.
3045 # On the NeXT, cc -E runs the code through the compiler's parser,
3046 # not just through cpp. "Syntax error" is here to catch this case.
3047 cat >conftest.
$ac_ext <<_ACEOF
3050 cat confdefs.h
>>conftest.
$ac_ext
3051 cat >>conftest.
$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3054 # include <limits.h>
3056 # include <assert.h>
3060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3063 grep -v '^ *+' conftest.er1
>conftest.err
3065 cat conftest.err
>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev
/null
; then
3068 if test -s conftest.err
; then
3069 ac_cpp_err
=$ac_c_preproc_warn_flag
3070 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3077 if test -z "$ac_cpp_err"; then
3080 echo "$as_me: failed program was:" >&5
3081 sed 's/^/| /' conftest.
$ac_ext >&5
3083 # Broken: fails on valid input.
3086 rm -f conftest.err conftest.
$ac_ext
3088 # OK, works on sane cases. Now check whether non-existent headers
3089 # can be detected and how.
3090 cat >conftest.
$ac_ext <<_ACEOF
3093 cat confdefs.h
>>conftest.
$ac_ext
3094 cat >>conftest.
$ac_ext <<_ACEOF
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3101 grep -v '^ *+' conftest.er1
>conftest.err
3103 cat conftest.err
>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } >/dev
/null
; then
3106 if test -s conftest.err
; then
3107 ac_cpp_err
=$ac_c_preproc_warn_flag
3108 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3115 if test -z "$ac_cpp_err"; then
3116 # Broken: success on invalid input.
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.
$ac_ext >&5
3122 # Passes both tests.
3126 rm -f conftest.err conftest.
$ac_ext
3129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3130 rm -f conftest.err conftest.
$ac_ext
3131 if $ac_preproc_ok; then
3134 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3135 See \`config.log' for more details." >&5
3136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&2;}
3138 { (exit 1); exit 1; }; }
3142 ac_cpp
='$CPP $CPPFLAGS'
3143 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3148 echo "$as_me:$LINENO: checking for inline" >&5
3149 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3150 if test "${ac_cv_c_inline+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 for ac_kw
in inline __inline__ __inline
; do
3155 cat >conftest.
$ac_ext <<_ACEOF
3158 cat confdefs.h
>>conftest.
$ac_ext
3159 cat >>conftest.
$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 static $ac_kw foo_t static_foo () {return 0; }
3164 $ac_kw foo_t foo () {return 0; }
3168 rm -f conftest.
$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>conftest.er1
3172 grep -v '^ *+' conftest.er1
>conftest.err
3174 cat conftest.err
>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } &&
3177 { ac_try
='test -z "$ac_c_werror_flag"
3178 || test ! -s conftest.err'
3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; } &&
3184 { ac_try
='test -s conftest.$ac_objext'
3185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }; }; then
3190 ac_cv_c_inline
=$ac_kw; break
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.
$ac_ext >&5
3196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3200 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3201 echo "${ECHO_T}$ac_cv_c_inline" >&6
3204 case $ac_cv_c_inline in
3207 case $ac_cv_c_inline in
3209 *) ac_val
=$ac_cv_c_inline;;
3211 cat >>confdefs.h
<<_ACEOF
3213 #define inline $ac_val
3220 # sizeof(char) is 1 by definition.
3222 echo "$as_me:$LINENO: checking for egrep" >&5
3223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3224 if test "${ac_cv_prog_egrep+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3228 then ac_cv_prog_egrep
='grep -E'
3229 else ac_cv_prog_egrep
='egrep'
3232 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3233 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3234 EGREP
=$ac_cv_prog_egrep
3237 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3238 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3239 if test "${ac_cv_header_stdc+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 cat >conftest.
$ac_ext <<_ACEOF
3245 cat confdefs.h
>>conftest.
$ac_ext
3246 cat >>conftest.
$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3261 rm -f conftest.
$ac_objext
3262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3263 (eval $ac_compile) 2>conftest.er1
3265 grep -v '^ *+' conftest.er1
>conftest.err
3267 cat conftest.err
>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try
='test -z "$ac_c_werror_flag"
3271 || test ! -s conftest.err'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; } &&
3277 { ac_try
='test -s conftest.$ac_objext'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3283 ac_cv_header_stdc
=yes
3285 echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.
$ac_ext >&5
3288 ac_cv_header_stdc
=no
3290 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3292 if test $ac_cv_header_stdc = yes; then
3293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3294 cat >conftest.
$ac_ext <<_ACEOF
3297 cat confdefs.h
>>conftest.
$ac_ext
3298 cat >>conftest.
$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3304 $EGREP "memchr" >/dev
/null
2>&1; then
3307 ac_cv_header_stdc
=no
3313 if test $ac_cv_header_stdc = yes; then
3314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3315 cat >conftest.
$ac_ext <<_ACEOF
3318 cat confdefs.h
>>conftest.
$ac_ext
3319 cat >>conftest.
$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev
/null
2>&1; then
3328 ac_cv_header_stdc
=no
3334 if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then
3339 cat >conftest.
$ac_ext <<_ACEOF
3342 cat confdefs.h
>>conftest.
$ac_ext
3343 cat >>conftest.
$ac_ext <<_ACEOF
3344 /* end confdefs.h. */
3346 #if ((' ' & 0x0FF) == 0x020)
3347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3350 # define ISLOWER(c) \
3351 (('a' <= (c) && (c) <= 'i') \
3352 || ('j' <= (c) && (c) <= 'r') \
3353 || ('s' <= (c) && (c) <= 'z'))
3354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3362 for (i = 0; i < 256; i++)
3363 if (XOR (islower (i), ISLOWER (i))
3364 || toupper (i) != TOUPPER (i))
3369 rm -f conftest
$ac_exeext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3371 (eval $ac_link) 2>&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3382 echo "$as_me: program exited with status $ac_status" >&5
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.
$ac_ext >&5
3387 ac_cv_header_stdc
=no
3389 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3393 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3394 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3395 if test $ac_cv_header_stdc = yes; then
3397 cat >>confdefs.h
<<\_ACEOF
3398 #define STDC_HEADERS 1
3403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3413 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3414 inttypes.h stdint.h unistd.h
3416 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3417 echo "$as_me:$LINENO: checking for $ac_header" >&5
3418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 cat >conftest.
$ac_ext <<_ACEOF
3425 cat confdefs.h
>>conftest.
$ac_ext
3426 cat >>conftest.
$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 $ac_includes_default
3430 #include <$ac_header>
3432 rm -f conftest.
$ac_objext
3433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434 (eval $ac_compile) 2>conftest.er1
3436 grep -v '^ *+' conftest.er1
>conftest.err
3438 cat conftest.err
>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try
='test -z "$ac_c_werror_flag"
3442 || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try
='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 eval "$as_ac_Header=yes"
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.
$ac_ext >&5
3459 eval "$as_ac_Header=no"
3461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3466 cat >>confdefs.h
<<_ACEOF
3467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3475 echo "$as_me:$LINENO: checking for void *" >&5
3476 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3477 if test "${ac_cv_type_void_p+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 cat >conftest.
$ac_ext <<_ACEOF
3483 cat confdefs.h
>>conftest.
$ac_ext
3484 cat >>conftest.
$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3486 $ac_includes_default
3492 if (sizeof (void *))
3498 rm -f conftest.
$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>conftest.er1
3502 grep -v '^ *+' conftest.er1
>conftest.err
3504 cat conftest.err
>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try
='test -z "$ac_c_werror_flag"
3508 || test ! -s conftest.err'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; } &&
3514 { ac_try
='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_type_void_p
=yes
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.
$ac_ext >&5
3525 ac_cv_type_void_p
=no
3527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3530 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3532 echo "$as_me:$LINENO: checking size of void *" >&5
3533 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3534 if test "${ac_cv_sizeof_void_p+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test "$ac_cv_type_void_p" = yes; then
3538 # The cast to unsigned long works around a bug in the HP C Compiler
3539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3541 # This bug is HP SR number 8606223364.
3542 if test "$cross_compiling" = yes; then
3543 # Depending upon the size, compute the lo and hi bounds.
3544 cat >conftest.
$ac_ext <<_ACEOF
3547 cat confdefs.h
>>conftest.
$ac_ext
3548 cat >>conftest.
$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 $ac_includes_default
3554 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3561 rm -f conftest.
$ac_objext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3563 (eval $ac_compile) 2>conftest.er1
3565 grep -v '^ *+' conftest.er1
>conftest.err
3567 cat conftest.err
>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } &&
3570 { ac_try
='test -z "$ac_c_werror_flag"
3571 || test ! -s conftest.err'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; } &&
3577 { ac_try
='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3585 cat >conftest.
$ac_ext <<_ACEOF
3588 cat confdefs.h
>>conftest.
$ac_ext
3589 cat >>conftest.
$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 $ac_includes_default
3595 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3602 rm -f conftest.
$ac_objext
3603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3604 (eval $ac_compile) 2>conftest.er1
3606 grep -v '^ *+' conftest.er1
>conftest.err
3608 cat conftest.err
>&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try
='test -z "$ac_c_werror_flag"
3612 || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try
='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_hi
=$ac_mid; break
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.
$ac_ext >&5
3629 ac_lo
=`expr $ac_mid + 1`
3630 if test $ac_lo -le $ac_mid; then
3634 ac_mid
=`expr 2 '*' $ac_mid + 1`
3636 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.
$ac_ext >&5
3642 cat >conftest.
$ac_ext <<_ACEOF
3645 cat confdefs.h
>>conftest.
$ac_ext
3646 cat >>conftest.
$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 $ac_includes_default
3652 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3659 rm -f conftest.
$ac_objext
3660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3661 (eval $ac_compile) 2>conftest.er1
3663 grep -v '^ *+' conftest.er1
>conftest.err
3665 cat conftest.err
>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
3668 { ac_try
='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try
='test -s conftest.$ac_objext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3683 cat >conftest.
$ac_ext <<_ACEOF
3686 cat confdefs.h
>>conftest.
$ac_ext
3687 cat >>conftest.
$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689 $ac_includes_default
3693 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3700 rm -f conftest.
$ac_objext
3701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>conftest.er1
3704 grep -v '^ *+' conftest.er1
>conftest.err
3706 cat conftest.err
>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try
='test -z "$ac_c_werror_flag"
3710 || test ! -s conftest.err'
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; } &&
3716 { ac_try
='test -s conftest.$ac_objext'
3717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; }; then
3722 ac_lo
=$ac_mid; break
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.
$ac_ext >&5
3727 ac_hi
=`expr '(' $ac_mid ')' - 1`
3728 if test $ac_mid -le $ac_hi; then
3732 ac_mid
=`expr 2 '*' $ac_mid`
3734 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.
$ac_ext >&5
3742 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3744 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3745 # Binary search between lo and hi bounds.
3746 while test "x$ac_lo" != "x$ac_hi"; do
3747 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3748 cat >conftest.
$ac_ext <<_ACEOF
3751 cat confdefs.h
>>conftest.
$ac_ext
3752 cat >>conftest.
$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 $ac_includes_default
3758 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3765 rm -f conftest.
$ac_objext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>conftest.er1
3769 grep -v '^ *+' conftest.er1
>conftest.err
3771 cat conftest.err
>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } &&
3774 { ac_try
='test -z "$ac_c_werror_flag"
3775 || test ! -s conftest.err'
3776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try
='test -s conftest.$ac_objext'
3782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3789 echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.
$ac_ext >&5
3792 ac_lo
=`expr '(' $ac_mid ')' + 1`
3794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3797 ?
*) ac_cv_sizeof_void_p
=$ac_lo;;
3798 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3799 See \`config.log' for more details." >&5
3800 echo "$as_me: error: cannot compute sizeof (void *), 77
3801 See \`config.log' for more details." >&2;}
3802 { (exit 1); exit 1; }; } ;;
3805 if test "$cross_compiling" = yes; then
3806 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3807 See \`config.log' for more details." >&5
3808 echo "$as_me: error: cannot run test program while cross compiling
3809 See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 $ac_includes_default
3819 long longval () { return (long) (sizeof (void *)); }
3820 unsigned long ulongval () { return (long) (sizeof (void *)); }
3827 FILE *f = fopen ("conftest.val", "w");
3830 if (((long) (sizeof (void *))) < 0)
3832 long i = longval ();
3833 if (i != ((long) (sizeof (void *))))
3835 fprintf (f, "%ld\n", i);
3839 unsigned long i = ulongval ();
3840 if (i != ((long) (sizeof (void *))))
3842 fprintf (f, "%lu\n", i);
3844 exit (ferror (f) || fclose (f) != 0);
3850 rm -f conftest
$ac_exeext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3852 (eval $ac_link) 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; }; then
3861 ac_cv_sizeof_void_p
=`cat conftest.val`
3863 echo "$as_me: program exited with status $ac_status" >&5
3864 echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.
$ac_ext >&5
3868 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3869 See \`config.log' for more details." >&5
3870 echo "$as_me: error: cannot compute sizeof (void *), 77
3871 See \`config.log' for more details." >&2;}
3872 { (exit 1); exit 1; }; }
3874 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3879 ac_cv_sizeof_void_p
=0
3882 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3883 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3884 cat >>confdefs.h
<<_ACEOF
3885 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3889 echo "$as_me:$LINENO: checking for short" >&5
3890 echo $ECHO_N "checking for short... $ECHO_C" >&6
3891 if test "${ac_cv_type_short+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 cat >conftest.
$ac_ext <<_ACEOF
3897 cat confdefs.h
>>conftest.
$ac_ext
3898 cat >>conftest.
$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3900 $ac_includes_default
3912 rm -f conftest.
$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1
>conftest.err
3918 cat conftest.err
>&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try
='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try
='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_cv_type_short
=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.
$ac_ext >&5
3941 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3943 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3944 echo "${ECHO_T}$ac_cv_type_short" >&6
3946 echo "$as_me:$LINENO: checking size of short" >&5
3947 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3948 if test "${ac_cv_sizeof_short+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 if test "$ac_cv_type_short" = yes; then
3952 # The cast to unsigned long works around a bug in the HP C Compiler
3953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3955 # This bug is HP SR number 8606223364.
3956 if test "$cross_compiling" = yes; then
3957 # Depending upon the size, compute the lo and hi bounds.
3958 cat >conftest.
$ac_ext <<_ACEOF
3961 cat confdefs.h
>>conftest.
$ac_ext
3962 cat >>conftest.
$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964 $ac_includes_default
3968 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3975 rm -f conftest.
$ac_objext
3976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
3979 grep -v '^ *+' conftest.er1
>conftest.err
3981 cat conftest.err
>&5
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try
='test -z "$ac_c_werror_flag"
3985 || test ! -s conftest.err'
3986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; } &&
3991 { ac_try
='test -s conftest.$ac_objext'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3999 cat >conftest.
$ac_ext <<_ACEOF
4002 cat confdefs.h
>>conftest.
$ac_ext
4003 cat >>conftest.
$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 $ac_includes_default
4009 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4016 rm -f conftest.
$ac_objext
4017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4018 (eval $ac_compile) 2>conftest.er1
4020 grep -v '^ *+' conftest.er1
>conftest.err
4022 cat conftest.err
>&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } &&
4025 { ac_try
='test -z "$ac_c_werror_flag"
4026 || test ! -s conftest.err'
4027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; } &&
4032 { ac_try
='test -s conftest.$ac_objext'
4033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); }; }; then
4038 ac_hi
=$ac_mid; break
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.
$ac_ext >&5
4043 ac_lo
=`expr $ac_mid + 1`
4044 if test $ac_lo -le $ac_mid; then
4048 ac_mid
=`expr 2 '*' $ac_mid + 1`
4050 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.
$ac_ext >&5
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 $ac_includes_default
4066 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4073 rm -f conftest.
$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1
>conftest.err
4079 cat conftest.err
>&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try
='test -z "$ac_c_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try
='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4097 cat >conftest.
$ac_ext <<_ACEOF
4100 cat confdefs.h
>>conftest.
$ac_ext
4101 cat >>conftest.
$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 $ac_includes_default
4107 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4114 rm -f conftest.
$ac_objext
4115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4116 (eval $ac_compile) 2>conftest.er1
4118 grep -v '^ *+' conftest.er1
>conftest.err
4120 cat conftest.err
>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try
='test -z "$ac_c_werror_flag"
4124 || test ! -s conftest.err'
4125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; } &&
4130 { ac_try
='test -s conftest.$ac_objext'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; }; then
4136 ac_lo
=$ac_mid; break
4138 echo "$as_me: failed program was:" >&5
4139 sed 's/^/| /' conftest.
$ac_ext >&5
4141 ac_hi
=`expr '(' $ac_mid ')' - 1`
4142 if test $ac_mid -le $ac_hi; then
4146 ac_mid
=`expr 2 '*' $ac_mid`
4148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4151 echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.
$ac_ext >&5
4156 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4158 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4159 # Binary search between lo and hi bounds.
4160 while test "x$ac_lo" != "x$ac_hi"; do
4161 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4162 cat >conftest.
$ac_ext <<_ACEOF
4165 cat confdefs.h
>>conftest.
$ac_ext
4166 cat >>conftest.
$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4168 $ac_includes_default
4172 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4179 rm -f conftest.
$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1
>conftest.err
4185 cat conftest.err
>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try
='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try
='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 ac_lo
=`expr '(' $ac_mid ')' + 1`
4208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4211 ?
*) ac_cv_sizeof_short
=$ac_lo;;
4212 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: cannot compute sizeof (short), 77
4215 See \`config.log' for more details." >&2;}
4216 { (exit 1); exit 1; }; } ;;
4219 if test "$cross_compiling" = yes; then
4220 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4221 See \`config.log' for more details." >&5
4222 echo "$as_me: error: cannot run test program while cross compiling
4223 See \`config.log' for more details." >&2;}
4224 { (exit 1); exit 1; }; }
4226 cat >conftest.
$ac_ext <<_ACEOF
4229 cat confdefs.h
>>conftest.
$ac_ext
4230 cat >>conftest.
$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 $ac_includes_default
4233 long longval () { return (long) (sizeof (short)); }
4234 unsigned long ulongval () { return (long) (sizeof (short)); }
4241 FILE *f = fopen ("conftest.val", "w");
4244 if (((long) (sizeof (short))) < 0)
4246 long i = longval ();
4247 if (i != ((long) (sizeof (short))))
4249 fprintf (f, "%ld\n", i);
4253 unsigned long i = ulongval ();
4254 if (i != ((long) (sizeof (short))))
4256 fprintf (f, "%lu\n", i);
4258 exit (ferror (f) || fclose (f) != 0);
4264 rm -f conftest
$ac_exeext
4265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266 (eval $ac_link) 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_sizeof_short
=`cat conftest.val`
4277 echo "$as_me: program exited with status $ac_status" >&5
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.
$ac_ext >&5
4282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4283 See \`config.log' for more details." >&5
4284 echo "$as_me: error: cannot compute sizeof (short), 77
4285 See \`config.log' for more details." >&2;}
4286 { (exit 1); exit 1; }; }
4288 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4293 ac_cv_sizeof_short
=0
4296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4297 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4298 cat >>confdefs.h
<<_ACEOF
4299 #define SIZEOF_SHORT $ac_cv_sizeof_short
4303 echo "$as_me:$LINENO: checking for int" >&5
4304 echo $ECHO_N "checking for int... $ECHO_C" >&6
4305 if test "${ac_cv_type_int+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 cat >conftest.
$ac_ext <<_ACEOF
4311 cat confdefs.h
>>conftest.
$ac_ext
4312 cat >>conftest.
$ac_ext <<_ACEOF
4313 /* end confdefs.h. */
4314 $ac_includes_default
4326 rm -f conftest.
$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>conftest.er1
4330 grep -v '^ *+' conftest.er1
>conftest.err
4332 cat conftest.err
>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try
='test -z "$ac_c_werror_flag"
4336 || test ! -s conftest.err'
4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; } &&
4342 { ac_try
='test -s conftest.$ac_objext'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4358 echo "${ECHO_T}$ac_cv_type_int" >&6
4360 echo "$as_me:$LINENO: checking size of int" >&5
4361 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4362 if test "${ac_cv_sizeof_int+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 if test "$ac_cv_type_int" = yes; then
4366 # The cast to unsigned long works around a bug in the HP C Compiler
4367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4369 # This bug is HP SR number 8606223364.
4370 if test "$cross_compiling" = yes; then
4371 # Depending upon the size, compute the lo and hi bounds.
4372 cat >conftest.
$ac_ext <<_ACEOF
4375 cat confdefs.h
>>conftest.
$ac_ext
4376 cat >>conftest.
$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 $ac_includes_default
4382 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4389 rm -f conftest.
$ac_objext
4390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4391 (eval $ac_compile) 2>conftest.er1
4393 grep -v '^ *+' conftest.er1
>conftest.err
4395 cat conftest.err
>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } &&
4398 { ac_try
='test -z "$ac_c_werror_flag"
4399 || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try
='test -s conftest.$ac_objext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4413 cat >conftest.
$ac_ext <<_ACEOF
4416 cat confdefs.h
>>conftest.
$ac_ext
4417 cat >>conftest.
$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 $ac_includes_default
4423 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4430 rm -f conftest.
$ac_objext
4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4432 (eval $ac_compile) 2>conftest.er1
4434 grep -v '^ *+' conftest.er1
>conftest.err
4436 cat conftest.err
>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try
='test -z "$ac_c_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try
='test -s conftest.$ac_objext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_hi
=$ac_mid; break
4454 echo "$as_me: failed program was:" >&5
4455 sed 's/^/| /' conftest.
$ac_ext >&5
4457 ac_lo
=`expr $ac_mid + 1`
4458 if test $ac_lo -le $ac_mid; then
4462 ac_mid
=`expr 2 '*' $ac_mid + 1`
4464 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.
$ac_ext >&5
4470 cat >conftest.
$ac_ext <<_ACEOF
4473 cat confdefs.h
>>conftest.
$ac_ext
4474 cat >>conftest.
$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 $ac_includes_default
4480 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4487 rm -f conftest.
$ac_objext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>conftest.er1
4491 grep -v '^ *+' conftest.er1
>conftest.err
4493 cat conftest.err
>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } &&
4496 { ac_try
='test -z "$ac_c_werror_flag"
4497 || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try
='test -s conftest.$ac_objext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4511 cat >conftest.
$ac_ext <<_ACEOF
4514 cat confdefs.h
>>conftest.
$ac_ext
4515 cat >>conftest.
$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4521 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4528 rm -f conftest.
$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4532 grep -v '^ *+' conftest.er1
>conftest.err
4534 cat conftest.err
>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try
='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try
='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_lo
=$ac_mid; break
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.
$ac_ext >&5
4555 ac_hi
=`expr '(' $ac_mid ')' - 1`
4556 if test $ac_mid -le $ac_hi; then
4560 ac_mid
=`expr 2 '*' $ac_mid`
4562 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.
$ac_ext >&5
4570 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4573 # Binary search between lo and hi bounds.
4574 while test "x$ac_lo" != "x$ac_hi"; do
4575 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4576 cat >conftest.
$ac_ext <<_ACEOF
4579 cat confdefs.h
>>conftest.
$ac_ext
4580 cat >>conftest.
$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4586 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4593 rm -f conftest.
$ac_objext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4597 grep -v '^ *+' conftest.er1
>conftest.err
4599 cat conftest.err
>&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try
='test -z "$ac_c_werror_flag"
4603 || test ! -s conftest.err'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try
='test -s conftest.$ac_objext'
4610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; }; then
4617 echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.
$ac_ext >&5
4620 ac_lo
=`expr '(' $ac_mid ')' + 1`
4622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4625 ?
*) ac_cv_sizeof_int
=$ac_lo;;
4626 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4627 See \`config.log' for more details." >&5
4628 echo "$as_me: error: cannot compute sizeof (int), 77
4629 See \`config.log' for more details." >&2;}
4630 { (exit 1); exit 1; }; } ;;
4633 if test "$cross_compiling" = yes; then
4634 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4635 See \`config.log' for more details." >&5
4636 echo "$as_me: error: cannot run test program while cross compiling
4637 See \`config.log' for more details." >&2;}
4638 { (exit 1); exit 1; }; }
4640 cat >conftest.
$ac_ext <<_ACEOF
4643 cat confdefs.h
>>conftest.
$ac_ext
4644 cat >>conftest.
$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 $ac_includes_default
4647 long longval () { return (long) (sizeof (int)); }
4648 unsigned long ulongval () { return (long) (sizeof (int)); }
4655 FILE *f = fopen ("conftest.val", "w");
4658 if (((long) (sizeof (int))) < 0)
4660 long i = longval ();
4661 if (i != ((long) (sizeof (int))))
4663 fprintf (f, "%ld\n", i);
4667 unsigned long i = ulongval ();
4668 if (i != ((long) (sizeof (int))))
4670 fprintf (f, "%lu\n", i);
4672 exit (ferror (f) || fclose (f) != 0);
4678 rm -f conftest
$ac_exeext
4679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4680 (eval $ac_link) 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_cv_sizeof_int
=`cat conftest.val`
4691 echo "$as_me: program exited with status $ac_status" >&5
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.
$ac_ext >&5
4696 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4697 See \`config.log' for more details." >&5
4698 echo "$as_me: error: cannot compute sizeof (int), 77
4699 See \`config.log' for more details." >&2;}
4700 { (exit 1); exit 1; }; }
4702 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4710 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4711 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4712 cat >>confdefs.h
<<_ACEOF
4713 #define SIZEOF_INT $ac_cv_sizeof_int
4717 echo "$as_me:$LINENO: checking for long" >&5
4718 echo $ECHO_N "checking for long... $ECHO_C" >&6
4719 if test "${ac_cv_type_long+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 cat >conftest.
$ac_ext <<_ACEOF
4725 cat confdefs.h
>>conftest.
$ac_ext
4726 cat >>conftest.
$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_includes_default
4740 rm -f conftest.
$ac_objext
4741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>conftest.er1
4744 grep -v '^ *+' conftest.er1
>conftest.err
4746 cat conftest.err
>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } &&
4749 { ac_try
='test -z "$ac_c_werror_flag"
4750 || test ! -s conftest.err'
4751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); }; } &&
4756 { ac_try
='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.
$ac_ext >&5
4769 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4772 echo "${ECHO_T}$ac_cv_type_long" >&6
4774 echo "$as_me:$LINENO: checking size of long" >&5
4775 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4776 if test "${ac_cv_sizeof_long+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test "$ac_cv_type_long" = yes; then
4780 # The cast to unsigned long works around a bug in the HP C Compiler
4781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4783 # This bug is HP SR number 8606223364.
4784 if test "$cross_compiling" = yes; then
4785 # Depending upon the size, compute the lo and hi bounds.
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4796 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4803 rm -f conftest.
$ac_objext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1
>conftest.err
4809 cat conftest.err
>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try
='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try
='test -s conftest.$ac_objext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4827 cat >conftest.
$ac_ext <<_ACEOF
4830 cat confdefs.h
>>conftest.
$ac_ext
4831 cat >>conftest.
$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 $ac_includes_default
4837 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4844 rm -f conftest.
$ac_objext
4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4846 (eval $ac_compile) 2>conftest.er1
4848 grep -v '^ *+' conftest.er1
>conftest.err
4850 cat conftest.err
>&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } &&
4853 { ac_try
='test -z "$ac_c_werror_flag"
4854 || test ! -s conftest.err'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; } &&
4860 { ac_try
='test -s conftest.$ac_objext'
4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }; }; then
4866 ac_hi
=$ac_mid; break
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.
$ac_ext >&5
4871 ac_lo
=`expr $ac_mid + 1`
4872 if test $ac_lo -le $ac_mid; then
4876 ac_mid
=`expr 2 '*' $ac_mid + 1`
4878 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4881 echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.
$ac_ext >&5
4884 cat >conftest.
$ac_ext <<_ACEOF
4887 cat confdefs.h
>>conftest.
$ac_ext
4888 cat >>conftest.
$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4890 $ac_includes_default
4894 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4901 rm -f conftest.
$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try
='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try
='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4925 cat >conftest.
$ac_ext <<_ACEOF
4928 cat confdefs.h
>>conftest.
$ac_ext
4929 cat >>conftest.
$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4935 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4942 rm -f conftest.
$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>conftest.er1
4946 grep -v '^ *+' conftest.er1
>conftest.err
4948 cat conftest.err
>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try
='test -z "$ac_c_werror_flag"
4952 || test ! -s conftest.err'
4953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }; } &&
4958 { ac_try
='test -s conftest.$ac_objext'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_lo
=$ac_mid; break
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.
$ac_ext >&5
4969 ac_hi
=`expr '(' $ac_mid ')' - 1`
4970 if test $ac_mid -le $ac_hi; then
4974 ac_mid
=`expr 2 '*' $ac_mid`
4976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.
$ac_ext >&5
4984 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4986 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4987 # Binary search between lo and hi bounds.
4988 while test "x$ac_lo" != "x$ac_hi"; do
4989 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4990 cat >conftest.
$ac_ext <<_ACEOF
4993 cat confdefs.h
>>conftest.
$ac_ext
4994 cat >>conftest.
$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_includes_default
5000 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5007 rm -f conftest.
$ac_objext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>conftest.er1
5011 grep -v '^ *+' conftest.er1
>conftest.err
5013 cat conftest.err
>&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try
='test -z "$ac_c_werror_flag"
5017 || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 ac_lo
=`expr '(' $ac_mid ')' + 1`
5036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5039 ?
*) ac_cv_sizeof_long
=$ac_lo;;
5040 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5041 See \`config.log' for more details." >&5
5042 echo "$as_me: error: cannot compute sizeof (long), 77
5043 See \`config.log' for more details." >&2;}
5044 { (exit 1); exit 1; }; } ;;
5047 if test "$cross_compiling" = yes; then
5048 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5049 See \`config.log' for more details." >&5
5050 echo "$as_me: error: cannot run test program while cross compiling
5051 See \`config.log' for more details." >&2;}
5052 { (exit 1); exit 1; }; }
5054 cat >conftest.
$ac_ext <<_ACEOF
5057 cat confdefs.h
>>conftest.
$ac_ext
5058 cat >>conftest.
$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 $ac_includes_default
5061 long longval () { return (long) (sizeof (long)); }
5062 unsigned long ulongval () { return (long) (sizeof (long)); }
5069 FILE *f = fopen ("conftest.val", "w");
5072 if (((long) (sizeof (long))) < 0)
5074 long i = longval ();
5075 if (i != ((long) (sizeof (long))))
5077 fprintf (f, "%ld\n", i);
5081 unsigned long i = ulongval ();
5082 if (i != ((long) (sizeof (long))))
5084 fprintf (f, "%lu\n", i);
5086 exit (ferror (f) || fclose (f) != 0);
5092 rm -f conftest
$ac_exeext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5094 (eval $ac_link) 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; }; then
5103 ac_cv_sizeof_long
=`cat conftest.val`
5105 echo "$as_me: program exited with status $ac_status" >&5
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.
$ac_ext >&5
5110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5111 See \`config.log' for more details." >&5
5112 echo "$as_me: error: cannot compute sizeof (long), 77
5113 See \`config.log' for more details." >&2;}
5114 { (exit 1); exit 1; }; }
5116 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5125 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5126 cat >>confdefs.h
<<_ACEOF
5127 #define SIZEOF_LONG $ac_cv_sizeof_long
5131 echo "$as_me:$LINENO: checking for long long" >&5
5132 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5133 if test "${ac_cv_type_long_long+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.
$ac_ext <<_ACEOF
5139 cat confdefs.h
>>conftest.
$ac_ext
5140 cat >>conftest.
$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5142 $ac_includes_default
5146 if ((long long *) 0)
5148 if (sizeof (long long))
5154 rm -f conftest.
$ac_objext
5155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5156 (eval $ac_compile) 2>conftest.er1
5158 grep -v '^ *+' conftest.er1
>conftest.err
5160 cat conftest.err
>&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); } &&
5163 { ac_try
='test -z "$ac_c_werror_flag"
5164 || test ! -s conftest.err'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; } &&
5170 { ac_try
='test -s conftest.$ac_objext'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; }; then
5176 ac_cv_type_long_long
=yes
5178 echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.
$ac_ext >&5
5181 ac_cv_type_long_long
=no
5183 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5185 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5186 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5187 if test $ac_cv_type_long_long = yes; then
5189 cat >>confdefs.h
<<_ACEOF
5190 #define HAVE_LONG_LONG 1
5193 echo "$as_me:$LINENO: checking for long long" >&5
5194 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5195 if test "${ac_cv_type_long_long+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 cat >conftest.
$ac_ext <<_ACEOF
5201 cat confdefs.h
>>conftest.
$ac_ext
5202 cat >>conftest.
$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5204 $ac_includes_default
5208 if ((long long *) 0)
5210 if (sizeof (long long))
5216 rm -f conftest.
$ac_objext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5218 (eval $ac_compile) 2>conftest.er1
5220 grep -v '^ *+' conftest.er1
>conftest.err
5222 cat conftest.err
>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } &&
5225 { ac_try
='test -z "$ac_c_werror_flag"
5226 || test ! -s conftest.err'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; } &&
5232 { ac_try
='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_type_long_long
=yes
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.
$ac_ext >&5
5243 ac_cv_type_long_long
=no
5245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5248 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5250 echo "$as_me:$LINENO: checking size of long long" >&5
5251 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5252 if test "${ac_cv_sizeof_long_long+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 if test "$ac_cv_type_long_long" = yes; then
5256 # The cast to unsigned long works around a bug in the HP C Compiler
5257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5259 # This bug is HP SR number 8606223364.
5260 if test "$cross_compiling" = yes; then
5261 # Depending upon the size, compute the lo and hi bounds.
5262 cat >conftest.
$ac_ext <<_ACEOF
5265 cat confdefs.h
>>conftest.
$ac_ext
5266 cat >>conftest.
$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 $ac_includes_default
5272 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5279 rm -f conftest.
$ac_objext
5280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5281 (eval $ac_compile) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1
>conftest.err
5285 cat conftest.err
>&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } &&
5288 { ac_try
='test -z "$ac_c_werror_flag"
5289 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } &&
5295 { ac_try
='test -s conftest.$ac_objext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 cat >conftest.
$ac_ext <<_ACEOF
5306 cat confdefs.h
>>conftest.
$ac_ext
5307 cat >>conftest.
$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 $ac_includes_default
5313 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5320 rm -f conftest.
$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>conftest.er1
5324 grep -v '^ *+' conftest.er1
>conftest.err
5326 cat conftest.err
>&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } &&
5329 { ac_try
='test -z "$ac_c_werror_flag"
5330 || test ! -s conftest.err'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; } &&
5336 { ac_try
='test -s conftest.$ac_objext'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; }; then
5342 ac_hi
=$ac_mid; break
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.
$ac_ext >&5
5347 ac_lo
=`expr $ac_mid + 1`
5348 if test $ac_lo -le $ac_mid; then
5352 ac_mid
=`expr 2 '*' $ac_mid + 1`
5354 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.
$ac_ext >&5
5360 cat >conftest.
$ac_ext <<_ACEOF
5363 cat confdefs.h
>>conftest.
$ac_ext
5364 cat >>conftest.
$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 $ac_includes_default
5370 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5377 rm -f conftest.
$ac_objext
5378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5379 (eval $ac_compile) 2>conftest.er1
5381 grep -v '^ *+' conftest.er1
>conftest.err
5383 cat conftest.err
>&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } &&
5386 { ac_try
='test -z "$ac_c_werror_flag"
5387 || test ! -s conftest.err'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try
='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5401 cat >conftest.
$ac_ext <<_ACEOF
5404 cat confdefs.h
>>conftest.
$ac_ext
5405 cat >>conftest.
$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 $ac_includes_default
5411 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5418 rm -f conftest.
$ac_objext
5419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5422 grep -v '^ *+' conftest.er1
>conftest.err
5424 cat conftest.err
>&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try
='test -z "$ac_c_werror_flag"
5428 || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try
='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 ac_lo
=$ac_mid; break
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.
$ac_ext >&5
5445 ac_hi
=`expr '(' $ac_mid ')' - 1`
5446 if test $ac_mid -le $ac_hi; then
5450 ac_mid
=`expr 2 '*' $ac_mid`
5452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5455 echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.
$ac_ext >&5
5460 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5463 # Binary search between lo and hi bounds.
5464 while test "x$ac_lo" != "x$ac_hi"; do
5465 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5476 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5483 rm -f conftest.
$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>conftest.er1
5487 grep -v '^ *+' conftest.er1
>conftest.err
5489 cat conftest.err
>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try
='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try
='test -s conftest.$ac_objext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5507 echo "$as_me: failed program was:" >&5
5508 sed 's/^/| /' conftest.
$ac_ext >&5
5510 ac_lo
=`expr '(' $ac_mid ')' + 1`
5512 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5515 ?
*) ac_cv_sizeof_long_long
=$ac_lo;;
5516 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5517 See \`config.log' for more details." >&5
5518 echo "$as_me: error: cannot compute sizeof (long long), 77
5519 See \`config.log' for more details." >&2;}
5520 { (exit 1); exit 1; }; } ;;
5523 if test "$cross_compiling" = yes; then
5524 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: cannot run test program while cross compiling
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5530 cat >conftest.
$ac_ext <<_ACEOF
5533 cat confdefs.h
>>conftest.
$ac_ext
5534 cat >>conftest.
$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 $ac_includes_default
5537 long longval () { return (long) (sizeof (long long)); }
5538 unsigned long ulongval () { return (long) (sizeof (long long)); }
5545 FILE *f = fopen ("conftest.val", "w");
5548 if (((long) (sizeof (long long))) < 0)
5550 long i = longval ();
5551 if (i != ((long) (sizeof (long long))))
5553 fprintf (f, "%ld\n", i);
5557 unsigned long i = ulongval ();
5558 if (i != ((long) (sizeof (long long))))
5560 fprintf (f, "%lu\n", i);
5562 exit (ferror (f) || fclose (f) != 0);
5568 rm -f conftest
$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 ac_cv_sizeof_long_long
=`cat conftest.val`
5581 echo "$as_me: program exited with status $ac_status" >&5
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.
$ac_ext >&5
5586 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5587 See \`config.log' for more details." >&5
5588 echo "$as_me: error: cannot compute sizeof (long long), 77
5589 See \`config.log' for more details." >&2;}
5590 { (exit 1); exit 1; }; }
5592 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5597 ac_cv_sizeof_long_long
=0
5600 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5601 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5602 cat >>confdefs.h
<<_ACEOF
5603 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5609 echo "$as_me:$LINENO: checking for __int64" >&5
5610 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5611 if test "${ac_cv_type___int64+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 cat >conftest.
$ac_ext <<_ACEOF
5617 cat confdefs.h
>>conftest.
$ac_ext
5618 cat >>conftest.
$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5626 if (sizeof (__int64))
5632 rm -f conftest.
$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5636 grep -v '^ *+' conftest.er1
>conftest.err
5638 cat conftest.err
>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try
='test -z "$ac_c_werror_flag"
5642 || test ! -s conftest.err'
5643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); }; } &&
5648 { ac_try
='test -s conftest.$ac_objext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_type___int64
=yes
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.
$ac_ext >&5
5659 ac_cv_type___int64
=no
5661 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5663 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5664 echo "${ECHO_T}$ac_cv_type___int64" >&6
5665 if test $ac_cv_type___int64 = yes; then
5667 cat >>confdefs.h
<<_ACEOF
5668 #define HAVE___INT64 1
5671 echo "$as_me:$LINENO: checking for __int64" >&5
5672 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5673 if test "${ac_cv_type___int64+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 cat >conftest.
$ac_ext <<_ACEOF
5679 cat confdefs.h
>>conftest.
$ac_ext
5680 cat >>conftest.
$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5682 $ac_includes_default
5688 if (sizeof (__int64))
5694 rm -f conftest.
$ac_objext
5695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696 (eval $ac_compile) 2>conftest.er1
5698 grep -v '^ *+' conftest.er1
>conftest.err
5700 cat conftest.err
>&5
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try
='test -z "$ac_c_werror_flag"
5704 || test ! -s conftest.err'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try
='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type___int64
=yes
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.
$ac_ext >&5
5721 ac_cv_type___int64
=no
5723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5725 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5726 echo "${ECHO_T}$ac_cv_type___int64" >&6
5728 echo "$as_me:$LINENO: checking size of __int64" >&5
5729 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5730 if test "${ac_cv_sizeof___int64+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 if test "$ac_cv_type___int64" = yes; then
5734 # The cast to unsigned long works around a bug in the HP C Compiler
5735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5737 # This bug is HP SR number 8606223364.
5738 if test "$cross_compiling" = yes; then
5739 # Depending upon the size, compute the lo and hi bounds.
5740 cat >conftest.
$ac_ext <<_ACEOF
5743 cat confdefs.h
>>conftest.
$ac_ext
5744 cat >>conftest.
$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 $ac_includes_default
5750 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5757 rm -f conftest.
$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5761 grep -v '^ *+' conftest.er1
>conftest.err
5763 cat conftest.err
>&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try
='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try
='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 cat >conftest.
$ac_ext <<_ACEOF
5784 cat confdefs.h
>>conftest.
$ac_ext
5785 cat >>conftest.
$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 $ac_includes_default
5791 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5798 rm -f conftest.
$ac_objext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800 (eval $ac_compile) 2>conftest.er1
5802 grep -v '^ *+' conftest.er1
>conftest.err
5804 cat conftest.err
>&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try
='test -z "$ac_c_werror_flag"
5808 || test ! -s conftest.err'
5809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try
='test -s conftest.$ac_objext'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; }; then
5820 ac_hi
=$ac_mid; break
5822 echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.
$ac_ext >&5
5825 ac_lo
=`expr $ac_mid + 1`
5826 if test $ac_lo -le $ac_mid; then
5830 ac_mid
=`expr 2 '*' $ac_mid + 1`
5832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5838 cat >conftest.
$ac_ext <<_ACEOF
5841 cat confdefs.h
>>conftest.
$ac_ext
5842 cat >>conftest.
$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5848 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5855 rm -f conftest.
$ac_objext
5856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5857 (eval $ac_compile) 2>conftest.er1
5859 grep -v '^ *+' conftest.er1
>conftest.err
5861 cat conftest.err
>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try
='test -z "$ac_c_werror_flag"
5865 || test ! -s conftest.err'
5866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; } &&
5871 { ac_try
='test -s conftest.$ac_objext'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; }; then
5879 cat >conftest.
$ac_ext <<_ACEOF
5882 cat confdefs.h
>>conftest.
$ac_ext
5883 cat >>conftest.
$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5889 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5896 rm -f conftest.
$ac_objext
5897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>conftest.er1
5900 grep -v '^ *+' conftest.er1
>conftest.err
5902 cat conftest.err
>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try
='test -z "$ac_c_werror_flag"
5906 || test ! -s conftest.err'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; } &&
5912 { ac_try
='test -s conftest.$ac_objext'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; }; then
5918 ac_lo
=$ac_mid; break
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.
$ac_ext >&5
5923 ac_hi
=`expr '(' $ac_mid ')' - 1`
5924 if test $ac_mid -le $ac_hi; then
5928 ac_mid
=`expr 2 '*' $ac_mid`
5930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5933 echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.
$ac_ext >&5
5938 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 # Binary search between lo and hi bounds.
5942 while test "x$ac_lo" != "x$ac_hi"; do
5943 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5954 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5961 rm -f conftest.
$ac_objext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>conftest.er1
5965 grep -v '^ *+' conftest.er1
>conftest.err
5967 cat conftest.err
>&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } &&
5970 { ac_try
='test -z "$ac_c_werror_flag"
5971 || test ! -s conftest.err'
5972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try
='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5988 ac_lo
=`expr '(' $ac_mid ')' + 1`
5990 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5993 ?
*) ac_cv_sizeof___int64
=$ac_lo;;
5994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5995 See \`config.log' for more details." >&5
5996 echo "$as_me: error: cannot compute sizeof (__int64), 77
5997 See \`config.log' for more details." >&2;}
5998 { (exit 1); exit 1; }; } ;;
6001 if test "$cross_compiling" = yes; then
6002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6003 See \`config.log' for more details." >&5
6004 echo "$as_me: error: cannot run test program while cross compiling
6005 See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
6008 cat >conftest.
$ac_ext <<_ACEOF
6011 cat confdefs.h
>>conftest.
$ac_ext
6012 cat >>conftest.
$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 long longval () { return (long) (sizeof (__int64)); }
6016 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6023 FILE *f = fopen ("conftest.val", "w");
6026 if (((long) (sizeof (__int64))) < 0)
6028 long i = longval ();
6029 if (i != ((long) (sizeof (__int64))))
6031 fprintf (f, "%ld\n", i);
6035 unsigned long i = ulongval ();
6036 if (i != ((long) (sizeof (__int64))))
6038 fprintf (f, "%lu\n", i);
6040 exit (ferror (f) || fclose (f) != 0);
6046 rm -f conftest
$ac_exeext
6047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6048 (eval $ac_link) 2>&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_sizeof___int64
=`cat conftest.val`
6059 echo "$as_me: program exited with status $ac_status" >&5
6060 echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.
$ac_ext >&5
6064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6065 See \`config.log' for more details." >&5
6066 echo "$as_me: error: cannot compute sizeof (__int64), 77
6067 See \`config.log' for more details." >&2;}
6068 { (exit 1); exit 1; }; }
6070 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6075 ac_cv_sizeof___int64
=0
6078 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6079 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6080 cat >>confdefs.h
<<_ACEOF
6081 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6088 # ---------------------
6089 # Warnings and checking
6090 # ---------------------
6092 # Check $CC warning features (if it's GCC).
6093 # We want to use -pedantic, but we don't want warnings about
6096 # * overlong strings
6097 # So, we only use -pedantic if we can disable those warnings.
6099 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6100 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6101 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 save_CFLAGS
="$CFLAGS"
6105 CFLAGS
="-Wno-long-long"
6106 cat >conftest.
$ac_ext <<_ACEOF
6109 cat confdefs.h
>>conftest.
$ac_ext
6110 cat >>conftest.
$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6114 rm -f conftest.
$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116 (eval $ac_compile) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try
='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try
='test -s conftest.$ac_objext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_prog_cc_w_no_long_long
=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.
$ac_ext >&5
6141 ac_cv_prog_cc_w_no_long_long
=no
6143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6144 CFLAGS
="$save_CFLAGS"
6147 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6148 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6150 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6151 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6152 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 save_CFLAGS
="$CFLAGS"
6156 CFLAGS
="-Wno-variadic-macros"
6157 cat >conftest.
$ac_ext <<_ACEOF
6160 cat confdefs.h
>>conftest.
$ac_ext
6161 cat >>conftest.
$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6165 rm -f conftest.
$ac_objext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>conftest.er1
6169 grep -v '^ *+' conftest.er1
>conftest.err
6171 cat conftest.err
>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try
='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try
='test -s conftest.$ac_objext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_prog_cc_w_no_variadic_macros
=yes
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.
$ac_ext >&5
6192 ac_cv_prog_cc_w_no_variadic_macros
=no
6194 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6195 CFLAGS
="$save_CFLAGS"
6198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6199 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6201 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-overlength-strings" >&5
6202 echo $ECHO_N "checking whether ${CC} accepts -Wno-overlength-strings... $ECHO_C" >&6
6203 if test "${ac_cv_prog_cc_w_no_overlength_strings+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 save_CFLAGS
="$CFLAGS"
6207 CFLAGS
="-Wno-overlength-strings"
6208 cat >conftest.
$ac_ext <<_ACEOF
6211 cat confdefs.h
>>conftest.
$ac_ext
6212 cat >>conftest.
$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6216 rm -f conftest.
$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218 (eval $ac_compile) 2>conftest.er1
6220 grep -v '^ *+' conftest.er1
>conftest.err
6222 cat conftest.err
>&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try
='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try
='test -s conftest.$ac_objext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_prog_cc_w_no_overlength_strings
=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.
$ac_ext >&5
6243 ac_cv_prog_cc_w_no_overlength_strings
=no
6245 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6246 CFLAGS
="$save_CFLAGS"
6249 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_overlength_strings" >&5
6250 echo "${ECHO_T}$ac_cv_prog_cc_w_no_overlength_strings" >&6
6253 if test $ac_cv_prog_cc_w_no_long_long = yes \
6254 && test $ac_cv_prog_cc_w_no_variadic_macros = yes \
6255 && test $ac_cv_prog_cc_w_no_overlength_strings = yes ; then
6256 strict_warn
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6259 # Add -Wold-style-definition if it's accepted
6260 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6261 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6262 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 save_CFLAGS
="$CFLAGS"
6266 CFLAGS
="-Wold-style-definition"
6267 cat >conftest.
$ac_ext <<_ACEOF
6270 cat confdefs.h
>>conftest.
$ac_ext
6271 cat >>conftest.
$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6275 rm -f conftest.
$ac_objext
6276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>conftest.er1
6279 grep -v '^ *+' conftest.er1
>conftest.err
6281 cat conftest.err
>&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try
='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try
='test -s conftest.$ac_objext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_prog_cc_w_old_style_definition
=yes
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6302 ac_cv_prog_cc_w_old_style_definition
=no
6304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6305 CFLAGS
="$save_CFLAGS"
6308 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6309 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6310 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6311 strict_warn
="${strict_warn} -Wold-style-definition"
6314 # Add -Wmissing-format-attribute if it's accepted
6315 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6316 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6317 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 save_CFLAGS
="$CFLAGS"
6321 CFLAGS
="-Wmissing-format-attribute"
6322 cat >conftest.
$ac_ext <<_ACEOF
6325 cat confdefs.h
>>conftest.
$ac_ext
6326 cat >>conftest.
$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6330 rm -f conftest.
$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>conftest.er1
6334 grep -v '^ *+' conftest.er1
>conftest.err
6336 cat conftest.err
>&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try
='test -z "$ac_c_werror_flag"
6340 || test ! -s conftest.err'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try
='test -s conftest.$ac_objext'
6347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_prog_cc_w_missing_format_attribute
=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.
$ac_ext >&5
6357 ac_cv_prog_cc_w_missing_format_attribute
=no
6359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6360 CFLAGS
="$save_CFLAGS"
6363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6364 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6365 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6366 strict_warn
="${strict_warn} -Wmissing-format-attribute"
6369 # Enable -Werror, period.
6370 # Check whether --enable-werror_always or --disable-werror_always was given.
6371 if test "${enable_werror_always+set}" = set; then
6372 enableval
="$enable_werror_always"
6375 enable_werror_always
=no
6377 if test x
${enable_werror_always} = xyes
; then
6378 strict_warn
="${strict_warn} -Werror"
6382 # Get C++ compatibility warning flag, if supported.
6383 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wc++-compat" >&5
6384 echo $ECHO_N "checking whether ${CC} accepts -Wc++-compat... $ECHO_C" >&6
6385 if test "${ac_cv_prog_cc_w_cxx_compat+set}" = set; then
6386 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 save_CFLAGS
="$CFLAGS"
6389 CFLAGS
="-Wc++-compat"
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6398 rm -f conftest.
$ac_objext
6399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -z "$ac_c_werror_flag"
6408 || test ! -s conftest.err'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; } &&
6414 { ac_try
='test -s conftest.$ac_objext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6420 ac_cv_prog_cc_w_cxx_compat
=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.
$ac_ext >&5
6425 ac_cv_prog_cc_w_cxx_compat
=no
6427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 CFLAGS
="$save_CFLAGS"
6431 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_cxx_compat" >&5
6432 echo "${ECHO_T}$ac_cv_prog_cc_w_cxx_compat" >&6
6433 if test x
${ac_cv_prog_cc_w_cxx_compat} = xyes
; then
6434 cxx_compat_warn
="-Wc++-compat"
6439 # If the native compiler is GCC, we can enable warnings even in stage1.
6440 # That's useful for people building cross-compilers, or just running a
6443 if test "x$GCC" = "xyes"; then
6444 warn_cflags
='$(GCC_WARN_CFLAGS)'
6448 # Enable expensive internal checks
6450 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6454 # Check whether --enable-checking or --disable-checking was given.
6455 if test "${enable_checking+set}" = set; then
6456 enableval
="$enable_checking"
6457 ac_checking_flags
="${enableval}"
6460 # Determine the default checks.
6461 if test x
$is_release = x
; then
6462 ac_checking_flags
=yes
6464 ac_checking_flags
=release
6467 ac_assert_checking
=1
6471 ac_gc_always_collect
=
6473 ac_rtlflag_checking
=
6474 ac_runtime_checking
=1
6476 ac_valgrind_checking
=
6477 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6478 for check
in $ac_checking_flags
6481 # these set all the flags to specific states
6482 yes) ac_assert_checking
=1 ; ac_checking
=1 ;
6483 ac_fold_checking
= ; ac_gc_checking
=1 ;
6484 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6485 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6486 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6487 no|none
) ac_assert_checking
= ; ac_checking
= ;
6488 ac_fold_checking
= ; ac_gc_checking
= ;
6489 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6490 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6491 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6492 all
) ac_assert_checking
=1 ; ac_checking
=1 ;
6493 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6494 ac_gc_always_collect
=1 ; ac_rtl_checking
=1 ;
6495 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6496 ac_tree_checking
=1 ; ac_valgrind_checking
= ;;
6497 release
) ac_assert_checking
=1 ; ac_checking
= ;
6498 ac_fold_checking
= ; ac_gc_checking
= ;
6499 ac_gc_always_collect
= ; ac_rtl_checking
= ;
6500 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6501 ac_tree_checking
= ; ac_valgrind_checking
= ;;
6502 # these enable particular checks
6503 assert
) ac_assert_checking
=1 ;;
6504 fold) ac_fold_checking
=1 ;;
6505 gc
) ac_gc_checking
=1 ;;
6506 gcac
) ac_gc_always_collect
=1 ;;
6507 misc
) ac_checking
=1 ;;
6508 rtl
) ac_rtl_checking
=1 ;;
6509 rtlflag
) ac_rtlflag_checking
=1 ;;
6510 runtime
) ac_runtime_checking
=1 ;;
6511 tree
) ac_tree_checking
=1 ;;
6512 valgrind
) ac_valgrind_checking
=1 ;;
6513 *) { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6514 echo "$as_me: error: unknown check category $check" >&2;}
6515 { (exit 1); exit 1; }; } ;;
6521 if test x
$ac_checking != x
; then
6523 cat >>confdefs.h
<<\_ACEOF
6524 #define ENABLE_CHECKING 1
6527 nocommon_flag
=-fno-common
6530 if test x
$ac_assert_checking != x
; then
6532 cat >>confdefs.h
<<\_ACEOF
6533 #define ENABLE_ASSERT_CHECKING 1
6538 if test x
$ac_runtime_checking != x
; then
6540 cat >>confdefs.h
<<\_ACEOF
6541 #define ENABLE_RUNTIME_CHECKING 1
6545 if test x
$ac_tree_checking != x
; then
6547 cat >>confdefs.h
<<\_ACEOF
6548 #define ENABLE_TREE_CHECKING 1
6551 TREEBROWSER
=tree-browser.o
6554 if test x
$ac_rtl_checking != x
; then
6556 cat >>confdefs.h
<<\_ACEOF
6557 #define ENABLE_RTL_CHECKING 1
6561 if test x
$ac_rtlflag_checking != x
; then
6563 cat >>confdefs.h
<<\_ACEOF
6564 #define ENABLE_RTL_FLAG_CHECKING 1
6568 if test x
$ac_gc_checking != x
; then
6570 cat >>confdefs.h
<<\_ACEOF
6571 #define ENABLE_GC_CHECKING 1
6575 if test x
$ac_gc_always_collect != x
; then
6577 cat >>confdefs.h
<<\_ACEOF
6578 #define ENABLE_GC_ALWAYS_COLLECT 1
6582 if test x
$ac_fold_checking != x
; then
6584 cat >>confdefs.h
<<\_ACEOF
6585 #define ENABLE_FOLD_CHECKING 1
6589 valgrind_path_defines
=
6592 if test "${ac_cv_header_valgrind_h+set}" = set; then
6593 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6594 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6595 if test "${ac_cv_header_valgrind_h+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6601 # Is the header compilable?
6602 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6603 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6604 cat >conftest.
$ac_ext <<_ACEOF
6607 cat confdefs.h
>>conftest.
$ac_ext
6608 cat >>conftest.
$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 $ac_includes_default
6611 #include <valgrind.h>
6613 rm -f conftest.
$ac_objext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>conftest.er1
6617 grep -v '^ *+' conftest.er1
>conftest.err
6619 cat conftest.err
>&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try
='test -z "$ac_c_werror_flag"
6623 || test ! -s conftest.err'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; } &&
6629 { ac_try
='test -s conftest.$ac_objext'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; }; then
6635 ac_header_compiler
=yes
6637 echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.
$ac_ext >&5
6640 ac_header_compiler
=no
6642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6644 echo "${ECHO_T}$ac_header_compiler" >&6
6646 # Is the header present?
6647 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6648 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6649 cat >conftest.
$ac_ext <<_ACEOF
6652 cat confdefs.h
>>conftest.
$ac_ext
6653 cat >>conftest.
$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6655 #include <valgrind.h>
6657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6658 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6660 grep -v '^ *+' conftest.er1
>conftest.err
6662 cat conftest.err
>&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev
/null
; then
6665 if test -s conftest.err
; then
6666 ac_cpp_err
=$ac_c_preproc_warn_flag
6667 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6674 if test -z "$ac_cpp_err"; then
6675 ac_header_preproc
=yes
6677 echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.
$ac_ext >&5
6680 ac_header_preproc
=no
6682 rm -f conftest.err conftest.
$ac_ext
6683 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6684 echo "${ECHO_T}$ac_header_preproc" >&6
6686 # So? What about this header?
6687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6689 { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6690 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6692 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6693 ac_header_preproc
=yes
6696 { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6697 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: valgrind.h: check for missing prerequisite headers?" >&5
6699 echo "$as_me: WARNING: valgrind.h: check for missing prerequisite headers?" >&2;}
6700 { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6701 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6702 { echo "$as_me:$LINENO: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&5
6703 echo "$as_me: WARNING: valgrind.h: section \"Present But Cannot Be Compiled\"" >&2;}
6704 { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6705 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6706 { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6707 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6710 ## ------------------------------------------ ##
6711 ## Report this to the AC_PACKAGE_NAME lists. ##
6712 ## ------------------------------------------ ##
6715 sed "s/^/$as_me: WARNING: /" >&2
6718 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6719 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6720 if test "${ac_cv_header_valgrind_h+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_header_valgrind_h
=$ac_header_preproc
6725 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6726 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6729 if test $ac_cv_header_valgrind_h = yes; then
6737 if test x
$ac_valgrind_checking != x
; then
6738 # It is certainly possible that there's valgrind but no valgrind.h.
6739 # GCC relies on making annotations so we must have both.
6740 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6741 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6742 cat >conftest.
$ac_ext <<_ACEOF
6745 cat confdefs.h
>>conftest.
$ac_ext
6746 cat >>conftest.
$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6748 #include <valgrind/memcheck.h>
6749 #ifndef VALGRIND_DISCARD
6750 #error VALGRIND_DISCARD not defined
6753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1
>conftest.err
6758 cat conftest.err
>&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } >/dev
/null
; then
6761 if test -s conftest.err
; then
6762 ac_cpp_err
=$ac_c_preproc_warn_flag
6763 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6770 if test -z "$ac_cpp_err"; then
6771 gcc_cv_header_valgrind_memcheck_h
=yes
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.
$ac_ext >&5
6776 gcc_cv_header_valgrind_memcheck_h
=no
6778 rm -f conftest.err conftest.
$ac_ext
6779 echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6780 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6781 echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6782 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6783 cat >conftest.
$ac_ext <<_ACEOF
6786 cat confdefs.h
>>conftest.
$ac_ext
6787 cat >>conftest.
$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <memcheck.h>
6790 #ifndef VALGRIND_DISCARD
6791 #error VALGRIND_DISCARD not defined
6794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6797 grep -v '^ *+' conftest.er1
>conftest.err
6799 cat conftest.err
>&5
6800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } >/dev
/null
; then
6802 if test -s conftest.err
; then
6803 ac_cpp_err
=$ac_c_preproc_warn_flag
6804 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6811 if test -z "$ac_cpp_err"; then
6812 gcc_cv_header_memcheck_h
=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6817 gcc_cv_header_memcheck_h
=no
6819 rm -f conftest.err conftest.
$ac_ext
6820 echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6821 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6823 # Prepare PATH_SEPARATOR.
6824 # The user is always right.
6825 if test "${PATH_SEPARATOR+set}" != set; then
6826 echo "#! /bin/sh" >conf$$.sh
6827 echo "exit 0" >>conf$$.sh
6829 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6837 # Find out how to test for executable files. Don't use a zero-byte file,
6838 # as systems may use methods other than mode bits to determine executability.
6839 cat >conf$$.
file <<_ASEOF
6843 chmod +x conf$$.
file
6844 if test -x conf$$.
file >/dev
/null
2>&1; then
6845 ac_executable_p
="test -x"
6847 ac_executable_p
="test -f"
6851 # Extract the first word of "valgrind", so it can be a program name with args.
6852 set dummy valgrind
; ac_word
=$2
6853 echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6855 if test "${ac_cv_path_valgrind_path+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 case "$valgrind_path" in
6860 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6863 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6864 for ac_dir
in $PATH; do
6866 test -z "$ac_dir" && ac_dir
=.
6867 for ac_exec_ext
in '' $ac_executable_extensions; do
6868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6869 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6870 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6880 valgrind_path
="$ac_cv_path_valgrind_path"
6881 if test -n "$valgrind_path"; then
6882 echo "$as_me:$LINENO: result: $valgrind_path" >&5
6883 echo "${ECHO_T}$valgrind_path" >&6
6885 echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6889 if test "x$valgrind_path" = "x" \
6890 ||
(test $have_valgrind_h = no \
6891 && test $gcc_cv_header_memcheck_h = no \
6892 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6893 { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6894 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6895 { (exit 1); exit 1; }; }
6897 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6898 valgrind_command
="$valgrind_path -q"
6900 cat >>confdefs.h
<<\_ACEOF
6901 #define ENABLE_VALGRIND_CHECKING 1
6904 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6906 cat >>confdefs.h
<<\_ACEOF
6907 #define HAVE_VALGRIND_MEMCHECK_H 1
6911 if test $gcc_cv_header_memcheck_h = yes; then
6913 cat >>confdefs.h
<<\_ACEOF
6914 #define HAVE_MEMCHECK_H 1
6922 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6923 if test "${enable_mapped_location+set}" = set; then
6924 enableval
="$enable_mapped_location"
6927 enable_mapped_location
=no
6930 if test "$enable_mapped_location" = yes ; then
6932 cat >>confdefs.h
<<\_ACEOF
6933 #define USE_MAPPED_LOCATION 1
6938 # Enable code coverage collection
6939 # Check whether --enable-coverage or --disable-coverage was given.
6940 if test "${enable_coverage+set}" = set; then
6941 enableval
="$enable_coverage"
6942 case "${enableval}" in
6944 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6947 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6950 # a.k.a. --disable-coverage
6954 { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6955 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6956 { (exit 1); exit 1; }; }
6964 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6965 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6966 enableval
="$enable_gather_detailed_mem_stats"
6969 enable_gather_detailed_mem_stats
=no
6971 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6973 cat >>confdefs.h
<<\_ACEOF
6974 #define GATHER_STATISTICS 1
6979 # -------------------------------
6980 # Miscenalleous configure options
6981 # -------------------------------
6985 # Check whether --with-stabs or --without-stabs was given.
6986 if test "${with_stabs+set}" = set; then
6987 withval
="$with_stabs"
6993 # Determine whether or not multilibs are enabled.
6994 # Check whether --enable-multilib or --disable-multilib was given.
6995 if test "${enable_multilib+set}" = set; then
6996 enableval
="$enable_multilib"
7003 # Enable __cxa_atexit for C++.
7004 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
7005 if test "${enable___cxa_atexit+set}" = set; then
7006 enableval
="$enable___cxa_atexit"
7010 # Enable C extension for decimal float if target supports it.
7011 # Check whether --enable-decimal-float or --disable-decimal-float was given.
7012 if test "${enable_decimal_float+set}" = set; then
7013 enableval
="$enable_decimal_float"
7015 if test x
$enablevar = xyes
; then
7017 powerpc
*-*-linux* | i?
86*-*-linux*)
7018 enable_decimal_float
=yes
7021 { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7022 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7023 enable_decimal_float
=no
7029 enable_decimal_float
=no
7034 dfp
=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
7036 cat >>confdefs.h
<<_ACEOF
7037 #define ENABLE_DECIMAL_FLOAT $dfp
7042 # Pass with no value to take the default
7043 # Pass with a value to specify a thread package
7044 # Check whether --enable-threads or --disable-threads was given.
7045 if test "${enable_threads+set}" = set; then
7046 enableval
="$enable_threads"
7052 # Check whether --enable-tls or --disable-tls was given.
7053 if test "${enable_tls+set}" = set; then
7054 enableval
="$enable_tls"
7058 *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7059 Valid choices are 'yes' and 'no'." >&5
7060 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7061 Valid choices are 'yes' and 'no'." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7069 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7070 if test "${enable_objc_gc+set}" = set; then
7071 enableval
="$enable_objc_gc"
7072 if test x
$enable_objc_gc = xno
; then
7082 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7083 if test "${with_dwarf2+set}" = set; then
7084 withval
="$with_dwarf2"
7085 dwarf2
="$with_dwarf2"
7090 # Check whether --enable-shared or --disable-shared was given.
7091 if test "${enable_shared+set}" = set; then
7092 enableval
="$enable_shared"
7094 case $enable_shared in
7098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7099 for pkg
in $enableval; do
7100 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7114 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7115 if test "${with_build_sysroot+set}" = set; then
7116 withval
="$with_build_sysroot"
7121 # Check whether --with-sysroot or --without-sysroot was given.
7122 if test "${with_sysroot+set}" = set; then
7123 withval
="$with_sysroot"
7125 case ${with_sysroot} in
7126 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7127 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7130 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7131 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7133 if test "x$exec_prefix" = xNONE
; then
7134 if test "x$prefix" = xNONE
; then
7135 test_prefix
=/usr
/local
7140 test_prefix
=$exec_prefix
7142 case ${TARGET_SYSTEM_ROOT} in
7143 "${test_prefix}"|
"${test_prefix}/"*|\
7144 '${exec_prefix}'|
'${exec_prefix}/'*)
7145 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7146 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7153 TARGET_SYSTEM_ROOT_DEFINE
=
7154 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7161 # Build with intermodule optimisations
7162 # Check whether --enable-intermodule or --disable-intermodule was given.
7163 if test "${enable_intermodule+set}" = set; then
7164 enableval
="$enable_intermodule"
7165 case ${enable_intermodule} in
7166 yes) onestep
="-onestep";;
7174 # Sanity check enable_languages in case someone does not run the toplevel
7175 # configure # script.
7176 # Check whether --enable-languages or --disable-languages was given.
7177 if test "${enable_languages+set}" = set; then
7178 enableval
="$enable_languages"
7179 case ,${enable_languages}, in
7181 # go safe -- we cannot be much sure without the toplevel
7183 # analysis of which target libs are present and usable
7187 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7188 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7189 { (exit 1); exit 1; }; }
7194 enable_languages
=c
,${enable_languages}
7201 # Used by documentation targets
7206 # -------------------------
7207 # Checks for other programs
7208 # -------------------------
7210 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7211 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7212 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
7213 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7216 cat >conftest.
make <<\_ACEOF
7218 @
echo 'ac_maketemp="$(MAKE)"'
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7222 if test -n "$ac_maketemp"; then
7223 eval ac_cv_prog_make_
${ac_make}_set
=yes
7225 eval ac_cv_prog_make_
${ac_make}_set
=no
7229 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7230 echo "$as_me:$LINENO: result: yes" >&5
7231 echo "${ECHO_T}yes" >&6
7234 echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7236 SET_MAKE
="MAKE=${MAKE-make}"
7240 # Find some useful tools
7241 for ac_prog
in gawk mawk nawk
awk
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy
$ac_prog; ac_word
=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_AWK+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 if test -n "$AWK"; then
7251 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir
=.
7258 for ac_exec_ext
in '' $ac_executable_extensions; do
7259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260 ac_cv_prog_AWK
="$ac_prog"
7261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 if test -n "$AWK"; then
7271 echo "$as_me:$LINENO: result: $AWK" >&5
7272 echo "${ECHO_T}$AWK" >&6
7274 echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7278 test -n "$AWK" && break
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7284 "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7285 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7286 { (exit 1); exit 1; }; } ;;
7289 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7290 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7298 gcc_cv_prog_LN_S
="ln -s"
7300 if ln conftestdata_f conftestdata_t
2>/dev
/null
7304 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7306 gcc_cv_prog_LN_S
="cp -p"
7312 rm -f conftestdata_f conftestdata_t
7315 LN_S
="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317 echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7320 if test "$gcc_cv_prog_LN_S" = "ln"; then
7321 echo "$as_me:$LINENO: result: no, using ln" >&5
7322 echo "${ECHO_T}no, using ln" >&6
7324 echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7329 echo "$as_me:$LINENO: checking whether ln works" >&5
7330 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7331 if test "${acx_cv_prog_LN+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7334 rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t
2>/dev
/null
7342 rm -f conftestdata_f conftestdata_t
7345 if test $acx_cv_prog_LN = no
; then
7347 echo "$as_me:$LINENO: result: no, using $LN" >&5
7348 echo "${ECHO_T}no, using $LN" >&6
7350 LN
="$acx_cv_prog_LN"
7351 echo "$as_me:$LINENO: result: yes" >&5
7352 echo "${ECHO_T}yes" >&6
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7358 echo "$as_me:$LINENO: checking for $ac_word" >&5
7359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 if test -n "$RANLIB"; then
7364 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir
=.
7371 for ac_exec_ext
in '' $ac_executable_extensions; do
7372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 RANLIB
=$ac_cv_prog_RANLIB
7383 if test -n "$RANLIB"; then
7384 echo "$as_me:$LINENO: result: $RANLIB" >&5
7385 echo "${ECHO_T}$RANLIB" >&6
7387 echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393 ac_ct_RANLIB
=$RANLIB
7394 # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib
; ac_word
=$2
7396 echo "$as_me:$LINENO: checking for $ac_word" >&5
7397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 if test -n "$ac_ct_RANLIB"; then
7402 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7408 test -z "$as_dir" && as_dir
=.
7409 for ac_exec_ext
in '' $ac_executable_extensions; do
7410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
7421 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7424 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7430 RANLIB
=$ac_ct_RANLIB
7432 RANLIB
="$ac_cv_prog_RANLIB"
7437 # By default, the Darwin ranlib will not treat common symbols as
7438 # definitions when building the archive table of contents. Other
7439 # ranlibs do that; pass an option to the Darwin ranlib that makes
7440 # it behave similarly.
7448 # Find a good install program. We prefer a C program (faster),
7449 # so one script is as good as another. But avoid the broken or
7450 # incompatible versions:
7451 # SysV /etc/install, /usr/sbin/install
7452 # SunOS /usr/etc/install
7453 # IRIX /sbin/install
7455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7457 # ./install, which can be erroneously created by make from ./install.sh.
7458 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7459 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7460 if test -z "$INSTALL"; then
7461 if test "${ac_cv_path_install+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7465 for ac_dir
in $PATH; do
7466 # Account for people who put trailing slashes in PATH elements.
7468 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7470 # OSF1 and SCO ODT 3.0 have their own names for install.
7471 for ac_prog
in ginstall scoinst
install; do
7472 if test -f $ac_dir/$ac_prog; then
7473 if test $ac_prog = install &&
7474 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7475 # AIX install. It has an incompatible calling convention.
7476 # OSF/1 installbsd also uses dspmsg, but is usable.
7479 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7490 if test "${ac_cv_path_install+set}" = set; then
7491 INSTALL
="$ac_cv_path_install"
7493 # As a last resort, use the slow shell script. We don't cache a
7494 # path for INSTALL within a source directory, because that will
7495 # break other packages using the cache if that directory is
7496 # removed, or if the path is relative.
7497 INSTALL
="$ac_install_sh"
7500 echo "$as_me:$LINENO: result: $INSTALL" >&5
7501 echo "${ECHO_T}$INSTALL" >&6
7503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7504 # It thinks the first close brace ends the variable substitution.
7505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7507 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7510 # See if cmp has --ignore-initial.
7511 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7512 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7513 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 gcc_cv_prog_cmp_skip
=slowcompare
7519 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7520 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7523 gcc_cv_prog_cmp_skip
=gnucompare
7526 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7527 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7528 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7531 gcc_cv_prog_cmp_skip
=fastcompare
7538 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7539 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7540 make_compare_target
=$gcc_cv_prog_cmp_skip
7544 # See if we have the mktemp command.
7545 # Extract the first word of "mktemp", so it can be a program name with args.
7546 set dummy mktemp
; ac_word
=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 if test -n "$have_mktemp_command"; then
7553 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir
=.
7560 for ac_exec_ext
in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_have_mktemp_command
="yes"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7569 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7572 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7573 if test -n "$have_mktemp_command"; then
7574 echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7575 echo "${ECHO_T}$have_mktemp_command" >&6
7577 echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6
7582 MISSING
="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7584 # See if makeinfo has been installed and is modern enough
7585 # that we can use it.
7587 ac_executable_extensions
="$build_exeext"
7589 # Extract the first word of "makeinfo", so it can be a program name with args.
7590 set dummy makeinfo
; ac_word
=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 if test -n "$MAKEINFO"; then
7597 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir
=.
7604 for ac_exec_ext
in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_MAKEINFO
="makeinfo"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 MAKEINFO
=$ac_cv_prog_MAKEINFO
7616 if test -n "$MAKEINFO"; then
7617 echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7618 echo "${ECHO_T}$MAKEINFO" >&6
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7624 if test -n "$MAKEINFO"; then
7625 # Found it, now check the version.
7626 echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7627 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7628 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_prog_version
=`$MAKEINFO --version 2>&1 |
7632 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7633 echo "configure:7633: version of makeinfo is $ac_prog_version" >&5
7634 case $ac_prog_version in
7635 '') gcc_cv_prog_makeinfo_modern
=no
;;
7637 gcc_cv_prog_makeinfo_modern
=yes;;
7638 *) gcc_cv_prog_makeinfo_modern
=no
;;
7642 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7643 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7645 gcc_cv_prog_makeinfo_modern
=no
7648 if test $gcc_cv_prog_makeinfo_modern = no
; then
7649 MAKEINFO
="$MISSING makeinfo"
7650 { echo "$as_me:$LINENO: WARNING:
7651 *** Makeinfo is missing or too old.
7652 *** Info documentation will not be built." >&5
7653 echo "$as_me: WARNING:
7654 *** Makeinfo is missing or too old.
7655 *** Info documentation will not be built." >&2;}
7662 # Is pod2man recent enough to regenerate manpages?
7663 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7664 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7665 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7666 echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7668 GENERATED_MANPAGES
=generated-manpages
7670 echo "$as_me:$LINENO: result: no" >&5
7671 echo "${ECHO_T}no" >&6
7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
7680 set dummy
$ac_prog; ac_word
=$2
7681 echo "$as_me:$LINENO: checking for $ac_word" >&5
7682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683 if test "${ac_cv_prog_FLEX+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 if test -n "$FLEX"; then
7687 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir
=.
7694 for ac_exec_ext
in '' $ac_executable_extensions; do
7695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_FLEX
="$ac_prog"
7697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 FLEX
=$ac_cv_prog_FLEX
7706 if test -n "$FLEX"; then
7707 echo "$as_me:$LINENO: result: $FLEX" >&5
7708 echo "${ECHO_T}$FLEX" >&6
7710 echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6
7714 test -n "$FLEX" && break
7716 test -n "$FLEX" || FLEX
="$MISSING flex"
7720 for ac_prog
in bison
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy
$ac_prog; ac_word
=$2
7724 echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726 if test "${ac_cv_prog_BISON+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir
=.
7737 for ac_exec_ext
in '' $ac_executable_extensions; do
7738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739 ac_cv_prog_BISON
="$ac_prog"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 BISON
=$ac_cv_prog_BISON
7749 if test -n "$BISON"; then
7750 echo "$as_me:$LINENO: result: $BISON" >&5
7751 echo "${ECHO_T}$BISON" >&6
7753 echo "$as_me:$LINENO: result: no" >&5
7754 echo "${ECHO_T}no" >&6
7757 test -n "$BISON" && break
7759 test -n "$BISON" || BISON
="$MISSING bison"
7762 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7763 # check for build == host before using them.
7766 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7767 && test -d ..
/binutils
; then
7768 NM
='$(objdir)/../binutils/nm-new'
7770 # Extract the first word of "nm", so it can be a program name with args.
7771 set dummy nm
; ac_word
=$2
7772 echo "$as_me:$LINENO: checking for $ac_word" >&5
7773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7774 if test "${ac_cv_prog_NM+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 if test -n "$NM"; then
7778 ac_cv_prog_NM
="$NM" # Let the user override the test.
7780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7784 test -z "$as_dir" && as_dir
=.
7785 for ac_exec_ext
in '' $ac_executable_extensions; do
7786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7798 if test -n "$NM"; then
7799 echo "$as_me:$LINENO: result: $NM" >&5
7800 echo "${ECHO_T}$NM" >&6
7802 echo "$as_me:$LINENO: result: no" >&5
7803 echo "${ECHO_T}no" >&6
7809 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7810 && test -d ..
/binutils
; then
7811 AR
='$(objdir)/../binutils/ar'
7813 # Extract the first word of "ar", so it can be a program name with args.
7814 set dummy
ar; ac_word
=$2
7815 echo "$as_me:$LINENO: checking for $ac_word" >&5
7816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817 if test "${ac_cv_prog_AR+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 if test -n "$AR"; then
7821 ac_cv_prog_AR
="$AR" # Let the user override the test.
7823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir
=.
7828 for ac_exec_ext
in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7841 if test -n "$AR"; then
7842 echo "$as_me:$LINENO: result: $AR" >&5
7843 echo "${ECHO_T}$AR" >&6
7845 echo "$as_me:$LINENO: result: no" >&5
7846 echo "${ECHO_T}no" >&6
7852 # --------------------
7853 # Checks for C headers
7854 # --------------------
7856 echo "$as_me:$LINENO: checking for GNU C library" >&5
7857 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7858 if test "${gcc_cv_glibc+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.
$ac_ext <<_ACEOF
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 #include <features.h>
7872 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7873 #error Not a GNU C library system
7879 rm -f conftest.
$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7883 grep -v '^ *+' conftest.er1
>conftest.err
7885 cat conftest.err
>&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try
='test -z "$ac_c_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try
='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7903 echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.
$ac_ext >&5
7908 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7911 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7912 echo "${ECHO_T}$gcc_cv_glibc" >&6
7913 if test $gcc_cv_glibc = yes; then
7915 cat >>confdefs.h
<<\_ACEOF
7916 #define _GNU_SOURCE 1
7921 # Need to reject headers which give warnings, so that the -Werror bootstrap
7922 # works later. *sigh* This needs to come before all header checks.
7924 ac_c_preproc_warn_flag
=yes
7926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7928 if test "${ac_cv_header_stdc+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 cat >conftest.
$ac_ext <<_ACEOF
7934 cat confdefs.h
>>conftest.
$ac_ext
7935 cat >>conftest.
$ac_ext <<_ACEOF
7936 /* end confdefs.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 ac_cv_header_stdc
=yes
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.
$ac_ext >&5
7977 ac_cv_header_stdc
=no
7979 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7981 if test $ac_cv_header_stdc = yes; then
7982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7983 cat >conftest.
$ac_ext <<_ACEOF
7986 cat confdefs.h
>>conftest.
$ac_ext
7987 cat >>conftest.
$ac_ext <<_ACEOF
7988 /* end confdefs.h. */
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev
/null
2>&1; then
7996 ac_cv_header_stdc
=no
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat >conftest.
$ac_ext <<_ACEOF
8007 cat confdefs.h
>>conftest.
$ac_ext
8008 cat >>conftest.
$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8014 $EGREP "free" >/dev
/null
2>&1; then
8017 ac_cv_header_stdc
=no
8023 if test $ac_cv_header_stdc = yes; then
8024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8025 if test "$cross_compiling" = yes; then
8028 cat >conftest.
$ac_ext <<_ACEOF
8031 cat confdefs.h
>>conftest.
$ac_ext
8032 cat >>conftest.
$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8035 #if ((' ' & 0x0FF) == 0x020)
8036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8039 # define ISLOWER(c) \
8040 (('a' <= (c) && (c) <= 'i') \
8041 || ('j' <= (c) && (c) <= 'r') \
8042 || ('s' <= (c) && (c) <= 'z'))
8043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8051 for (i = 0; i < 256; i++)
8052 if (XOR (islower (i), ISLOWER (i))
8053 || toupper (i) != TOUPPER (i))
8058 rm -f conftest
$ac_exeext
8059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8071 echo "$as_me: program exited with status $ac_status" >&5
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.
$ac_ext >&5
8076 ac_cv_header_stdc
=no
8078 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8084 if test $ac_cv_header_stdc = yes; then
8086 cat >>confdefs.h
<<\_ACEOF
8087 #define STDC_HEADERS 1
8092 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8093 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8094 if test "${ac_cv_header_time+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.
$ac_ext <<_ACEOF
8100 cat confdefs.h
>>conftest.
$ac_ext
8101 cat >>conftest.
$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8103 #include <sys/types.h>
8104 #include <sys/time.h>
8110 if ((struct tm *) 0)
8116 rm -f conftest.
$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8120 grep -v '^ *+' conftest.er1
>conftest.err
8122 cat conftest.err
>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try
='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try
='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_cv_header_time
=yes
8140 echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.
$ac_ext >&5
8143 ac_cv_header_time
=no
8145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8148 echo "${ECHO_T}$ac_cv_header_time" >&6
8149 if test $ac_cv_header_time = yes; then
8151 cat >>confdefs.h
<<\_ACEOF
8152 #define TIME_WITH_SYS_TIME 1
8157 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8158 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8159 if test "${gcc_cv_header_string+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 cat >conftest.
$ac_ext <<_ACEOF
8165 cat confdefs.h
>>conftest.
$ac_ext
8166 cat >>conftest.
$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 #include <strings.h>
8178 rm -f conftest.
$ac_objext
8179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try
='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try
='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 gcc_cv_header_string
=yes
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.
$ac_ext >&5
8205 gcc_cv_header_string
=no
8207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8209 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8210 echo "${ECHO_T}$gcc_cv_header_string" >&6
8211 if test $gcc_cv_header_string = yes; then
8213 cat >>confdefs.h
<<\_ACEOF
8214 #define STRING_WITH_STRINGS 1
8219 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8220 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8221 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 cat >conftest.
$ac_ext <<_ACEOF
8227 cat confdefs.h
>>conftest.
$ac_ext
8228 cat >>conftest.
$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 #include <sys/types.h>
8231 #include <sys/wait.h>
8233 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8236 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8244 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8249 rm -f conftest.
$ac_objext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8251 (eval $ac_compile) 2>conftest.er1
8253 grep -v '^ *+' conftest.er1
>conftest.err
8255 cat conftest.err
>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } &&
8258 { ac_try
='test -z "$ac_c_werror_flag"
8259 || test ! -s conftest.err'
8260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try
='test -s conftest.$ac_objext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_header_sys_wait_h
=yes
8273 echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.
$ac_ext >&5
8276 ac_cv_header_sys_wait_h
=no
8278 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8282 if test $ac_cv_header_sys_wait_h = yes; then
8284 cat >>confdefs.h
<<\_ACEOF
8285 #define HAVE_SYS_WAIT_H 1
8312 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8313 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8314 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8315 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8317 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.
$ac_ext <<_ACEOF
8326 cat confdefs.h
>>conftest.
$ac_ext
8327 cat >>conftest.
$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1
>conftest.err
8336 cat conftest.err
>&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev
/null
; then
8339 if test -s conftest.err
; then
8340 ac_cpp_err
=$ac_c_preproc_warn_flag
8341 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8348 if test -z "$ac_cpp_err"; then
8349 eval "$as_ac_Header=yes"
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.
$ac_ext >&5
8354 eval "$as_ac_Header=no"
8356 rm -f conftest.err conftest.
$ac_ext
8358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8361 cat >>confdefs.h
<<_ACEOF
8362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8369 # Check for thread headers.
8370 echo "$as_me:$LINENO: checking for thread.h" >&5
8371 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8372 if test "${ac_cv_header_thread_h+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 cat >conftest.
$ac_ext <<_ACEOF
8378 cat confdefs.h
>>conftest.
$ac_ext
8379 cat >>conftest.
$ac_ext <<_ACEOF
8380 /* end confdefs.h. */
8383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8384 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8386 grep -v '^ *+' conftest.er1
>conftest.err
8388 cat conftest.err
>&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } >/dev
/null
; then
8391 if test -s conftest.err
; then
8392 ac_cpp_err
=$ac_c_preproc_warn_flag
8393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8400 if test -z "$ac_cpp_err"; then
8401 ac_cv_header_thread_h
=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.
$ac_ext >&5
8406 ac_cv_header_thread_h
=no
8408 rm -f conftest.err conftest.
$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8411 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8412 if test $ac_cv_header_thread_h = yes; then
8418 echo "$as_me:$LINENO: checking for pthread.h" >&5
8419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8420 if test "${ac_cv_header_pthread_h+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.
$ac_ext <<_ACEOF
8426 cat confdefs.h
>>conftest.
$ac_ext
8427 cat >>conftest.
$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <pthread.h>
8431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8432 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8434 grep -v '^ *+' conftest.er1
>conftest.err
8436 cat conftest.err
>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } >/dev
/null
; then
8439 if test -s conftest.err
; then
8440 ac_cpp_err
=$ac_c_preproc_warn_flag
8441 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8448 if test -z "$ac_cpp_err"; then
8449 ac_cv_header_pthread_h
=yes
8451 echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.
$ac_ext >&5
8454 ac_cv_header_pthread_h
=no
8456 rm -f conftest.err conftest.
$ac_ext
8458 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8459 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8460 if test $ac_cv_header_pthread_h = yes; then
8467 # These tests can't be done till we know if we have limits.h.
8468 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8469 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8470 if test "${gcc_cv_decl_char_bit+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 cat >conftest.
$ac_ext <<_ACEOF
8476 cat confdefs.h
>>conftest.
$ac_ext
8477 cat >>conftest.
$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 #ifdef HAVE_LIMITS_H
8486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8487 $EGREP "found" >/dev
/null
2>&1; then
8488 gcc_cv_decl_char_bit
=yes
8490 gcc_cv_decl_char_bit
=no
8496 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8497 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8498 if test $gcc_cv_decl_char_bit = no
; then
8499 echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8500 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8501 if test "${gcc_cv_c_nbby+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 while test $i -lt 65; do
8507 cat >conftest.
$ac_ext <<_ACEOF
8510 cat confdefs.h
>>conftest.
$ac_ext
8511 cat >>conftest.
$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8518 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8519 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8525 rm -f conftest.
$ac_objext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8527 (eval $ac_compile) 2>conftest.er1
8529 grep -v '^ *+' conftest.er1
>conftest.err
8531 cat conftest.err
>&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } &&
8534 { ac_try
='test -z "$ac_c_werror_flag"
8535 || test ! -s conftest.err'
8536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); }; } &&
8541 { ac_try
='test -s conftest.$ac_objext'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 gcc_cv_c_nbby
=$i; break
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.
$ac_ext >&5
8553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8559 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8560 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8561 if test $gcc_cv_c_nbby = failed
; then
8562 { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8563 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8564 { (exit 1); exit 1; }; }
8567 cat >>confdefs.h
<<_ACEOF
8568 #define CHAR_BIT $gcc_cv_c_nbby
8573 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8575 if test "${ac_cv_c_bigendian+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 # See if sys/param.h defines the BYTE_ORDER macro.
8579 cat >conftest.
$ac_ext <<_ACEOF
8582 cat confdefs.h
>>conftest.
$ac_ext
8583 cat >>conftest.
$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 #include <sys/types.h>
8586 #include <sys/param.h>
8591 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8599 rm -f conftest.
$ac_objext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>conftest.er1
8603 grep -v '^ *+' conftest.er1
>conftest.err
8605 cat conftest.err
>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } &&
8608 { ac_try
='test -z "$ac_c_werror_flag"
8609 || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try
='test -s conftest.$ac_objext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 # It does; now see whether it defined to BIG_ENDIAN or not.
8622 cat >conftest.
$ac_ext <<_ACEOF
8625 cat confdefs.h
>>conftest.
$ac_ext
8626 cat >>conftest.
$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <sys/types.h>
8629 #include <sys/param.h>
8634 #if BYTE_ORDER != BIG_ENDIAN
8642 rm -f conftest.
$ac_objext
8643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>conftest.er1
8646 grep -v '^ *+' conftest.er1
>conftest.err
8648 cat conftest.err
>&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } &&
8651 { ac_try
='test -z "$ac_c_werror_flag"
8652 || test ! -s conftest.err'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; } &&
8658 { ac_try
='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_c_bigendian
=yes
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.
$ac_ext >&5
8669 ac_cv_c_bigendian
=no
8671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8673 echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.
$ac_ext >&5
8676 # It does not; compile a test program.
8677 if test "$cross_compiling" = yes; then
8678 # try to guess the endianness by grepping values into an object file
8679 ac_cv_c_bigendian
=unknown
8680 cat >conftest.
$ac_ext <<_ACEOF
8683 cat confdefs.h
>>conftest.
$ac_ext
8684 cat >>conftest.
$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8687 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8688 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8689 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8690 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8691 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8695 _ascii (); _ebcdic ();
8700 rm -f conftest.
$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8704 grep -v '^ *+' conftest.er1
>conftest.err
8706 cat conftest.err
>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try
='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try
='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8723 ac_cv_c_bigendian
=yes
8725 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8726 if test "$ac_cv_c_bigendian" = unknown
; then
8727 ac_cv_c_bigendian
=no
8729 # finding both strings is unlikely to happen, but who knows?
8730 ac_cv_c_bigendian
=unknown
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8738 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8740 cat >conftest.
$ac_ext <<_ACEOF
8743 cat confdefs.h
>>conftest.
$ac_ext
8744 cat >>conftest.
$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8749 /* Are we little or big endian? From Harbison&Steele. */
8753 char c[sizeof (long)];
8756 exit (u.c[sizeof (long) - 1] == 1);
8759 rm -f conftest
$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_c_bigendian
=no
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.
$ac_ext >&5
8777 ac_cv_c_bigendian
=yes
8779 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8782 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8784 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8785 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8786 case $ac_cv_c_bigendian in
8789 cat >>confdefs.h
<<\_ACEOF
8790 #define WORDS_BIGENDIAN 1
8796 { { echo "$as_me:$LINENO: error: unknown endianness
8797 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8798 echo "$as_me: error: unknown endianness
8799 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8800 { (exit 1); exit 1; }; } ;;
8809 # These libraries may be used by collect2.
8810 # We may need a special search path to get them linked.
8811 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8812 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8813 if test "${gcc_cv_collect2_libs+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 for libs
in '' -lld -lmld \
8818 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8819 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8822 cat >conftest.
$ac_ext <<_ACEOF
8825 cat confdefs.h
>>conftest.
$ac_ext
8826 cat >>conftest.
$ac_ext <<_ACEOF
8827 /* end confdefs.h. */
8829 /* Override any gcc2 internal prototype to avoid an error. */
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8844 rm -f conftest.
$ac_objext conftest
$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>conftest.er1
8848 grep -v '^ *+' conftest.er1
>conftest.err
8850 cat conftest.err
>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try
='test -z "$ac_c_werror_flag"
8854 || test ! -s conftest.err'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; } &&
8860 { ac_try
='test -s conftest$ac_exeext'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 gcc_cv_collect2_libs
="$libs"; break
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.
$ac_ext >&5
8872 rm -f conftest.err conftest.
$ac_objext \
8873 conftest
$ac_exeext conftest.
$ac_ext
8876 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8878 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8879 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8880 case $gcc_cv_collect2_libs in
8882 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8886 # When building Ada code on Alpha, we need exc_resume which is usually in
8887 # -lexc. So test for it.
8890 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8891 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8892 if test "${ac_cv_search_exc_resume+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 ac_func_search_save_LIBS
=$LIBS
8896 ac_cv_search_exc_resume
=no
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8904 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8919 rm -f conftest.
$ac_objext conftest
$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921 (eval $ac_link) 2>conftest.er1
8923 grep -v '^ *+' conftest.er1
>conftest.err
8925 cat conftest.err
>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try
='test -z "$ac_c_werror_flag"
8929 || test ! -s conftest.err'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; } &&
8935 { ac_try
='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_search_exc_resume
="none required"
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.
$ac_ext >&5
8947 rm -f conftest.err conftest.
$ac_objext \
8948 conftest
$ac_exeext conftest.
$ac_ext
8949 if test "$ac_cv_search_exc_resume" = no
; then
8950 for ac_lib
in exc
; do
8951 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8952 cat >conftest.
$ac_ext <<_ACEOF
8955 cat confdefs.h
>>conftest.
$ac_ext
8956 cat >>conftest.
$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8959 /* Override any gcc2 internal prototype to avoid an error. */
8963 /* We use char because int might match the return type of a gcc2
8964 builtin and then its argument prototype would still apply. */
8974 rm -f conftest.
$ac_objext conftest
$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8978 grep -v '^ *+' conftest.er1
>conftest.err
8980 cat conftest.err
>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try
='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try
='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_search_exc_resume
="-l$ac_lib"
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.
$ac_ext >&5
9003 rm -f conftest.err conftest.
$ac_objext \
9004 conftest
$ac_exeext conftest.
$ac_ext
9007 LIBS
=$ac_func_search_save_LIBS
9009 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9010 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9011 if test "$ac_cv_search_exc_resume" != no
; then
9012 test "$ac_cv_search_exc_resume" = "none required" || LIBS
="$ac_cv_search_exc_resume $LIBS"
9020 # Some systems put ldexp and frexp in libm instead of libc; assume
9021 # they're both in the same place. jcf-dump needs them.
9024 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9025 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9026 if test "${ac_cv_search_ldexp+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_func_search_save_LIBS
=$LIBS
9030 ac_cv_search_ldexp
=no
9031 cat >conftest.
$ac_ext <<_ACEOF
9034 cat confdefs.h
>>conftest.
$ac_ext
9035 cat >>conftest.
$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9038 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9053 rm -f conftest.
$ac_objext conftest
$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try
='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try
='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_search_ldexp
="none required"
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.
$ac_ext >&5
9081 rm -f conftest.err conftest.
$ac_objext \
9082 conftest
$ac_exeext conftest.
$ac_ext
9083 if test "$ac_cv_search_ldexp" = no
; then
9085 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9086 cat >conftest.
$ac_ext <<_ACEOF
9089 cat confdefs.h
>>conftest.
$ac_ext
9090 cat >>conftest.
$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any gcc2 internal prototype to avoid an error. */
9097 /* We use char because int might match the return type of a gcc2
9098 builtin and then its argument prototype would still apply. */
9108 rm -f conftest.
$ac_objext conftest
$ac_exeext
9109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110 (eval $ac_link) 2>conftest.er1
9112 grep -v '^ *+' conftest.er1
>conftest.err
9114 cat conftest.err
>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } &&
9117 { ac_try
='test -z "$ac_c_werror_flag"
9118 || test ! -s conftest.err'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; } &&
9124 { ac_try
='test -s conftest$ac_exeext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_cv_search_ldexp
="-l$ac_lib"
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.
$ac_ext >&5
9137 rm -f conftest.err conftest.
$ac_objext \
9138 conftest
$ac_exeext conftest.
$ac_ext
9141 LIBS
=$ac_func_search_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9144 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9145 if test "$ac_cv_search_ldexp" != no
; then
9146 test "$ac_cv_search_ldexp" = "none required" || LIBS
="$ac_cv_search_ldexp $LIBS"
9154 # Use <inttypes.h> only if it exists,
9155 # doesn't clash with <sys/types.h>, and declares intmax_t.
9156 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9157 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9158 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.
$ac_ext <<_ACEOF
9164 cat confdefs.h
>>conftest.
$ac_ext
9165 cat >>conftest.
$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9177 rm -f conftest.
$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179 (eval $ac_compile) 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag"
9187 || test ! -s conftest.err'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; } &&
9193 { ac_try
='test -s conftest.$ac_objext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 gcc_cv_header_inttypes_h
=yes
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.
$ac_ext >&5
9204 gcc_cv_header_inttypes_h
=no
9206 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9211 if test $gcc_cv_header_inttypes_h = yes; then
9213 cat >>confdefs.h
<<\_ACEOF
9214 #define HAVE_INTTYPES_H 1
9256 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9257 sysconf strsignal getrusage nl_langinfo scandir alphasort \
9258 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9259 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
9261 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9264 if eval "test \"\${$as_ac_var+set}\" = set"; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.
$ac_ext <<_ACEOF
9270 cat confdefs.h
>>conftest.
$ac_ext
9271 cat >>conftest.
$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9283 # include <limits.h>
9285 # include <assert.h>
9290 /* Override any gcc2 internal prototype to avoid an error. */
9295 /* We use char because int might match the return type of a gcc2
9296 builtin and then its argument prototype would still apply. */
9298 /* The GNU C library defines this for functions which it implements
9299 to always fail with ENOSYS. Some functions are actually named
9300 something starting with __ and the normal name is an alias. */
9301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9304 char (*f) () = $ac_func;
9313 return f != $ac_func;
9318 rm -f conftest.
$ac_objext conftest
$ac_exeext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320 (eval $ac_link) 2>conftest.er1
9322 grep -v '^ *+' conftest.er1
>conftest.err
9324 cat conftest.err
>&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } &&
9327 { ac_try
='test -z "$ac_c_werror_flag"
9328 || test ! -s conftest.err'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; } &&
9334 { ac_try
='test -s conftest$ac_exeext'
9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; }; then
9340 eval "$as_ac_var=yes"
9342 echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.
$ac_ext >&5
9345 eval "$as_ac_var=no"
9347 rm -f conftest.err conftest.
$ac_objext \
9348 conftest
$ac_exeext conftest.
$ac_ext
9350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9352 if test `eval echo '${'$as_ac_var'}'` = yes; then
9353 cat >>confdefs.h
<<_ACEOF
9354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9361 if test x
$ac_cv_func_mbstowcs = xyes
; then
9362 echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9363 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9364 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 if test "$cross_compiling" = yes; then
9368 gcc_cv_func_mbstowcs_works
=yes
9370 cat >conftest.
$ac_ext <<_ACEOF
9373 cat confdefs.h
>>conftest.
$ac_ext
9374 cat >>conftest.
$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9383 rm -f conftest
$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 gcc_cv_func_mbstowcs_works
=yes
9396 echo "$as_me: program exited with status $ac_status" >&5
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.
$ac_ext >&5
9401 gcc_cv_func_mbstowcs_works
=no
9403 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9406 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9407 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9408 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9410 cat >>confdefs.h
<<\_ACEOF
9411 #define HAVE_WORKING_MBSTOWCS 1
9417 echo "$as_me:$LINENO: checking for ssize_t" >&5
9418 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9419 if test "${ac_cv_type_ssize_t+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 cat >conftest.
$ac_ext <<_ACEOF
9425 cat confdefs.h
>>conftest.
$ac_ext
9426 cat >>conftest.
$ac_ext <<_ACEOF
9427 /* end confdefs.h. */
9428 $ac_includes_default
9434 if (sizeof (ssize_t))
9440 rm -f conftest.
$ac_objext
9441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>conftest.er1
9444 grep -v '^ *+' conftest.er1
>conftest.err
9446 cat conftest.err
>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try
='test -z "$ac_c_werror_flag"
9450 || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try
='test -s conftest.$ac_objext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_type_ssize_t
=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.
$ac_ext >&5
9467 ac_cv_type_ssize_t
=no
9469 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9472 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9473 if test $ac_cv_type_ssize_t = yes; then
9477 cat >>confdefs.h
<<_ACEOF
9484 # Try to determine the array type of the second argument of getgroups
9485 # for the target system (int or gid_t).
9486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9488 if test "${ac_cv_type_uid_t+set}" = set; then
9489 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 cat >conftest.
$ac_ext <<_ACEOF
9494 cat confdefs.h
>>conftest.
$ac_ext
9495 cat >>conftest.
$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497 #include <sys/types.h>
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "uid_t" >/dev
/null
2>&1; then
9502 ac_cv_type_uid_t
=yes
9509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9511 if test $ac_cv_type_uid_t = no
; then
9513 cat >>confdefs.h
<<\_ACEOF
9518 cat >>confdefs.h
<<\_ACEOF
9524 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9525 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9526 if test "${ac_cv_type_getgroups+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 if test "$cross_compiling" = yes; then
9530 ac_cv_type_getgroups
=cross
9532 cat >conftest.
$ac_ext <<_ACEOF
9535 cat confdefs.h
>>conftest.
$ac_ext
9536 cat >>conftest.
$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9538 /* Thanks to Mike Rendell for this test. */
9539 #include <sys/types.h>
9542 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9549 union { gid_t gval; long lval; } val;
9552 for (i = 0; i < NGID; i++)
9553 gidset[i] = val.gval;
9554 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9556 /* Exit non-zero if getgroups seems to require an array of ints. This
9557 happens when gid_t is short but getgroups modifies an array of ints. */
9558 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9561 rm -f conftest
$ac_exeext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9563 (eval $ac_link) 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; }; then
9572 ac_cv_type_getgroups
=gid_t
9574 echo "$as_me: program exited with status $ac_status" >&5
9575 echo "$as_me: failed program was:" >&5
9576 sed 's/^/| /' conftest.
$ac_ext >&5
9579 ac_cv_type_getgroups
=int
9581 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9583 if test $ac_cv_type_getgroups = cross
; then
9584 cat >conftest.
$ac_ext <<_ACEOF
9587 cat confdefs.h
>>conftest.
$ac_ext
9588 cat >>conftest.
$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9594 $EGREP "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
9595 ac_cv_type_getgroups
=gid_t
9597 ac_cv_type_getgroups
=int
9603 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9604 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9606 cat >>confdefs.h
<<_ACEOF
9607 #define GETGROUPS_T $ac_cv_type_getgroups
9611 if test "${target}" = "${build}"; then
9612 TARGET_GETGROUPS_T
=$ac_cv_type_getgroups
9615 # This condition may need some tweaking. It should include all
9616 # targets where the array type of the second argument of getgroups
9617 # is int and the type of gid_t is not equivalent to int.
9618 *-*-sunos* |
*-*-ultrix*)
9619 TARGET_GETGROUPS_T
=int
9622 TARGET_GETGROUPS_T
=gid_t
9629 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9630 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9631 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 cat >conftest.
$ac_ext <<_ACEOF
9637 cat confdefs.h
>>conftest.
$ac_ext
9638 cat >>conftest.
$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640 #include <sys/mman.h>
9642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9643 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } >/dev
/null
; then
9650 if test -s conftest.err
; then
9651 ac_cpp_err
=$ac_c_preproc_warn_flag
9652 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9659 if test -z "$ac_cpp_err"; then
9660 ac_cv_header_sys_mman_h
=yes
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.
$ac_ext >&5
9665 ac_cv_header_sys_mman_h
=no
9667 rm -f conftest.err conftest.
$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9671 if test $ac_cv_header_sys_mman_h = yes; then
9672 gcc_header_sys_mman_h
=yes
9674 gcc_header_sys_mman_h
=no
9677 echo "$as_me:$LINENO: checking for mmap" >&5
9678 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9679 if test "${ac_cv_func_mmap+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 cat >conftest.
$ac_ext <<_ACEOF
9685 cat confdefs.h
>>conftest.
$ac_ext
9686 cat >>conftest.
$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9690 #define mmap innocuous_mmap
9692 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char mmap (); below.
9694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9695 <limits.h> exists even on freestanding compilers. */
9698 # include <limits.h>
9700 # include <assert.h>
9705 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_mmap) || defined (__stub___mmap)
9719 char (*f) () = mmap;
9733 rm -f conftest.
$ac_objext conftest
$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>conftest.er1
9737 grep -v '^ *+' conftest.er1
>conftest.err
9739 cat conftest.err
>&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try
='test -z "$ac_c_werror_flag"
9743 || test ! -s conftest.err'
9744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try
='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.
$ac_ext >&5
9762 rm -f conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9765 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9766 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9767 if test $ac_cv_func_mmap = yes; then
9773 if test "$gcc_header_sys_mman_h" != yes \
9774 ||
test "$gcc_func_mmap" != yes; then
9775 gcc_cv_func_mmap_file
=no
9776 gcc_cv_func_mmap_dev_zero
=no
9777 gcc_cv_func_mmap_anon
=no
9779 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9780 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9781 if test "${gcc_cv_func_mmap_file+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 # Add a system to this blacklist if
9785 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9786 # memory area containing the same data that you'd get if you applied
9787 # read() to the same fd. The only system known to have a problem here
9788 # is VMS, where text files have record structure.
9791 gcc_cv_func_mmap_file
=no
;;
9793 gcc_cv_func_mmap_file
=yes;;
9796 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9797 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9798 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9799 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9800 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9803 # Add a system to this blacklist if it has mmap() but /dev/zero
9804 # does not exist, or if mmapping /dev/zero does not give anonymous
9805 # zeroed pages with both the following properties:
9806 # 1. If you map N consecutive pages in with one call, and then
9807 # unmap any subset of those pages, the pages that were not
9808 # explicitly unmapped remain accessible.
9809 # 2. If you map two adjacent blocks of memory and then unmap them
9810 # both at once, they must both go away.
9811 # Systems known to be in this category are Windows (all variants),
9814 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9815 gcc_cv_func_mmap_dev_zero
=no
;;
9817 gcc_cv_func_mmap_dev_zero
=yes;;
9820 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9821 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9823 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9824 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9825 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9826 if test "${gcc_cv_decl_map_anon+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 cat >conftest.
$ac_ext <<_ACEOF
9832 cat confdefs.h
>>conftest.
$ac_ext
9833 cat >>conftest.
$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 #include <sys/types.h>
9836 #include <sys/mman.h>
9839 #ifndef MAP_ANONYMOUS
9840 #define MAP_ANONYMOUS MAP_ANON
9846 int n = MAP_ANONYMOUS;
9851 rm -f conftest.
$ac_objext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853 (eval $ac_compile) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1
>conftest.err
9857 cat conftest.err
>&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try
='test -z "$ac_c_werror_flag"
9861 || test ! -s conftest.err'
9862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); }; } &&
9867 { ac_try
='test -s conftest.$ac_objext'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; }; then
9873 gcc_cv_decl_map_anon
=yes
9875 echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.
$ac_ext >&5
9878 gcc_cv_decl_map_anon
=no
9880 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9882 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9883 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9885 if test $gcc_cv_decl_map_anon = no
; then
9886 gcc_cv_func_mmap_anon
=no
9888 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9889 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9890 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9893 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9894 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9895 # doesn't give anonymous zeroed pages with the same properties listed
9896 # above for use of /dev/zero.
9897 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9899 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9900 gcc_cv_func_mmap_anon
=no
;;
9902 gcc_cv_func_mmap_anon
=yes;;
9905 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9906 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9910 if test $gcc_cv_func_mmap_file = yes; then
9912 cat >>confdefs.h
<<\_ACEOF
9913 #define HAVE_MMAP_FILE 1
9917 if test $gcc_cv_func_mmap_dev_zero = yes; then
9919 cat >>confdefs.h
<<\_ACEOF
9920 #define HAVE_MMAP_DEV_ZERO 1
9924 if test $gcc_cv_func_mmap_anon = yes; then
9926 cat >>confdefs.h
<<\_ACEOF
9927 #define HAVE_MMAP_ANON 1
9935 # Under VMS, vfork works very differently than on Unix. The standard test
9936 # won't work, and it isn't easily adaptable. It makes more sense to
9938 ac_cv_func_vfork_works
=yes
9941 echo "$as_me:$LINENO: checking for pid_t" >&5
9942 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9943 if test "${ac_cv_type_pid_t+set}" = set; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.
$ac_ext <<_ACEOF
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 $ac_includes_default
9964 rm -f conftest.
$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>conftest.er1
9968 grep -v '^ *+' conftest.er1
>conftest.err
9970 cat conftest.err
>&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } &&
9973 { ac_try
='test -z "$ac_c_werror_flag"
9974 || test ! -s conftest.err'
9975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; } &&
9980 { ac_try
='test -s conftest.$ac_objext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_type_pid_t
=yes
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.
$ac_ext >&5
9993 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9995 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9996 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9997 if test $ac_cv_type_pid_t = yes; then
10001 cat >>confdefs.h
<<_ACEOF
10009 for ac_header
in unistd.h vfork.h
10011 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10012 echo "$as_me:$LINENO: checking for $ac_header" >&5
10013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.
$ac_ext <<_ACEOF
10020 cat confdefs.h
>>conftest.
$ac_ext
10021 cat >>conftest.
$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <$ac_header>
10025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10026 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10028 grep -v '^ *+' conftest.er1
>conftest.err
10030 cat conftest.err
>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } >/dev
/null
; then
10033 if test -s conftest.err
; then
10034 ac_cpp_err
=$ac_c_preproc_warn_flag
10035 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10042 if test -z "$ac_cpp_err"; then
10043 eval "$as_ac_Header=yes"
10045 echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.
$ac_ext >&5
10048 eval "$as_ac_Header=no"
10050 rm -f conftest.err conftest.
$ac_ext
10052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10055 cat >>confdefs.h
<<_ACEOF
10056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10064 for ac_func
in fork vfork
10066 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10067 echo "$as_me:$LINENO: checking for $ac_func" >&5
10068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10069 if eval "test \"\${$as_ac_var+set}\" = set"; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.
$ac_ext <<_ACEOF
10075 cat confdefs.h
>>conftest.
$ac_ext
10076 cat >>conftest.
$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10080 #define $ac_func innocuous_$ac_func
10082 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char $ac_func (); below.
10084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10085 <limits.h> exists even on freestanding compilers. */
10088 # include <limits.h>
10090 # include <assert.h>
10095 /* Override any gcc2 internal prototype to avoid an error. */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10103 /* The GNU C library defines this for functions which it implements
10104 to always fail with ENOSYS. Some functions are actually named
10105 something starting with __ and the normal name is an alias. */
10106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10109 char (*f) () = $ac_func;
10118 return f != $ac_func;
10123 rm -f conftest.
$ac_objext conftest
$ac_exeext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10125 (eval $ac_link) 2>conftest.er1
10127 grep -v '^ *+' conftest.er1
>conftest.err
10129 cat conftest.err
>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } &&
10132 { ac_try
='test -z "$ac_c_werror_flag"
10133 || test ! -s conftest.err'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; } &&
10139 { ac_try
='test -s conftest$ac_exeext'
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; }; then
10145 eval "$as_ac_var=yes"
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.
$ac_ext >&5
10150 eval "$as_ac_var=no"
10152 rm -f conftest.err conftest.
$ac_objext \
10153 conftest
$ac_exeext conftest.
$ac_ext
10155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10157 if test `eval echo '${'$as_ac_var'}'` = yes; then
10158 cat >>confdefs.h
<<_ACEOF
10159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10165 if test "x$ac_cv_func_fork" = xyes
; then
10166 echo "$as_me:$LINENO: checking for working fork" >&5
10167 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10168 if test "${ac_cv_func_fork_works+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 if test "$cross_compiling" = yes; then
10172 ac_cv_func_fork_works
=cross
10174 cat >conftest.
$ac_ext <<_ACEOF
10175 /* By Ruediger Kuhlmann. */
10176 #include <sys/types.h>
10178 # include <unistd.h>
10180 /* Some systems only have a dummy stub for fork() */
10188 rm -f conftest
$ac_exeext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10190 (eval $ac_link) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195 (eval $ac_try) 2>&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_fork_works
=yes
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.
$ac_ext >&5
10205 ( exit $ac_status )
10206 ac_cv_func_fork_works
=no
10208 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10212 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10215 ac_cv_func_fork_works
=$ac_cv_func_fork
10217 if test "x$ac_cv_func_fork_works" = xcross
; then
10219 *-*-amigaos* |
*-*-msdosdjgpp*)
10220 # Override, as these systems have only a dummy fork() stub
10221 ac_cv_func_fork_works
=no
10224 ac_cv_func_fork_works
=yes
10227 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10228 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10230 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10231 if test "x$ac_cv_func_vfork" = xyes
; then
10232 echo "$as_me:$LINENO: checking for working vfork" >&5
10233 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10234 if test "${ac_cv_func_vfork_works+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 if test "$cross_compiling" = yes; then
10238 ac_cv_func_vfork_works
=cross
10240 cat >conftest.
$ac_ext <<_ACEOF
10243 cat confdefs.h
>>conftest.
$ac_ext
10244 cat >>conftest.
$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 /* Thanks to Paul Eggert for this test. */
10248 #include <stdlib.h>
10249 #include <sys/types.h>
10250 #include <sys/stat.h>
10251 #include <sys/wait.h>
10253 # include <unistd.h>
10256 # include <vfork.h>
10258 /* On some sparc systems, changes by the child to local and incoming
10259 argument registers are propagated back to the parent. The compiler
10260 is told about this with #include <vfork.h>, but some compilers
10261 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10262 static variable whose address is put into a register that is
10263 clobbered by the vfork. */
10266 sparc_address_test (int arg)
10268 sparc_address_test (arg) int arg;
10271 static pid_t child;
10289 pid_t parent = getpid ();
10292 sparc_address_test (0);
10297 /* Here is another test for sparc vfork register problems. This
10298 test uses lots of local variables, at least as many local
10299 variables as main has allocated so far including compiler
10300 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10301 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10302 reuse the register of parent for one of the local variables,
10303 since it will think that parent can't possibly be used any more
10304 in this routine. Assigning to the local variable will thus
10305 munge parent in the parent process. */
10307 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10308 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10309 /* Convince the compiler that p..p7 are live; otherwise, it might
10310 use the same hardware register for all 8 local variables. */
10311 if (p != p1 || p != p2 || p != p3 || p != p4
10312 || p != p5 || p != p6 || p != p7)
10315 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10316 from child file descriptors. If the child closes a descriptor
10317 before it execs or exits, this munges the parent's descriptor
10318 as well. Test for this by closing stdout in the child. */
10319 _exit(close(fileno(stdout)) != 0);
10324 while (wait(&status) != child)
10327 /* Was there some problem with vforking? */
10330 /* Did the child fail? (This shouldn't happen.) */
10333 /* Did the vfork/compiler bug occur? */
10334 || parent != getpid()
10336 /* Did the file descriptor bug occur? */
10337 || fstat(fileno(stdout), &st) != 0
10342 rm -f conftest
$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344 (eval $ac_link) 2>&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_vfork_works
=yes
10355 echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.
$ac_ext >&5
10359 ( exit $ac_status )
10360 ac_cv_func_vfork_works
=no
10362 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10365 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10366 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10369 if test "x$ac_cv_func_fork_works" = xcross
; then
10370 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10371 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10372 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10375 if test "x$ac_cv_func_vfork_works" = xyes
; then
10377 cat >>confdefs.h
<<\_ACEOF
10378 #define HAVE_WORKING_VFORK 1
10383 cat >>confdefs.h
<<\_ACEOF
10388 if test "x$ac_cv_func_fork_works" = xyes
; then
10390 cat >>confdefs.h
<<\_ACEOF
10391 #define HAVE_WORKING_FORK 1
10398 if test "X$prefix" = "XNONE"; then
10399 acl_final_prefix
="$ac_default_prefix"
10401 acl_final_prefix
="$prefix"
10403 if test "X$exec_prefix" = "XNONE"; then
10404 acl_final_exec_prefix
='${prefix}'
10406 acl_final_exec_prefix
="$exec_prefix"
10408 acl_save_prefix
="$prefix"
10409 prefix
="$acl_final_prefix"
10410 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10411 prefix
="$acl_save_prefix"
10414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10415 if test "${with_gnu_ld+set}" = set; then
10416 withval
="$with_gnu_ld"
10417 test "$withval" = no || with_gnu_ld
=yes
10421 # Prepare PATH_SEPARATOR.
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10424 echo "#! /bin/sh" >conf$$.sh
10425 echo "exit 0" >>conf$$.sh
10427 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10435 if test "$GCC" = yes; then
10436 # Check if gcc -print-prog-name=ld gives a path.
10437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10441 # gcc leaves a trailing carriage return which upsets mingw
10442 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10444 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10447 # Accept absolute paths.
10448 [\\/]* |
[A-Za-z
]:[\\/]*)
10449 re_direlt
='/[^/][^/]*/\.\./'
10450 # Canonicalize the path of ld
10451 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10452 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10453 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10455 test -z "$LD" && LD
="$ac_prog"
10458 # If it fails, then pretend we aren't using GCC.
10462 # If it is relative, then search for the first ld in PATH.
10463 with_gnu_ld
=unknown
10466 elif test "$with_gnu_ld" = yes; then
10467 echo "$as_me:$LINENO: checking for GNU ld" >&5
10468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10473 if test "${acl_cv_path_LD+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 if test -z "$LD"; then
10477 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10478 for ac_dir
in $PATH; do
10479 test -z "$ac_dir" && ac_dir
=.
10480 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10481 acl_cv_path_LD
="$ac_dir/$ac_prog"
10482 # Check to see if the program is GNU ld. I'd rather use --version,
10483 # but apparently some GNU ld's only accept -v.
10484 # Break only if it was the GNU/non-GNU ld that we prefer.
10485 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10486 test "$with_gnu_ld" != no
&& break
10488 test "$with_gnu_ld" != yes && break
10494 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10498 LD
="$acl_cv_path_LD"
10499 if test -n "$LD"; then
10500 echo "$as_me:$LINENO: result: $LD" >&5
10501 echo "${ECHO_T}$LD" >&6
10503 echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6
10506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10508 { (exit 1); exit 1; }; }
10509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10515 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10516 acl_cv_prog_gnu_ld
=yes
10518 acl_cv_prog_gnu_ld
=no
10521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10523 with_gnu_ld
=$acl_cv_prog_gnu_ld
10527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10529 if test "${acl_cv_rpath+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10536 rm -f .
/conftest.sh
10540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10541 echo "${ECHO_T}$acl_cv_rpath" >&6
10543 libext
="$acl_cv_libext"
10544 shlibext
="$acl_cv_shlibext"
10545 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10546 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10547 hardcode_direct
="$acl_cv_hardcode_direct"
10548 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10549 # Check whether --enable-rpath or --disable-rpath was given.
10550 if test "${enable_rpath+set}" = set; then
10551 enableval
="$enable_rpath"
10565 acl_save_prefix
="$prefix"
10566 prefix
="$acl_final_prefix"
10567 acl_save_exec_prefix
="$exec_prefix"
10568 exec_prefix
="$acl_final_exec_prefix"
10570 eval additional_includedir
=\"$includedir\"
10571 eval additional_libdir
=\"$libdir\"
10573 exec_prefix
="$acl_save_exec_prefix"
10574 prefix
="$acl_save_prefix"
10577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10578 if test "${with_libiconv_prefix+set}" = set; then
10579 withval
="$with_libiconv_prefix"
10581 if test "X$withval" = "Xno"; then
10584 if test "X$withval" = "X"; then
10586 acl_save_prefix
="$prefix"
10587 prefix
="$acl_final_prefix"
10588 acl_save_exec_prefix
="$exec_prefix"
10589 exec_prefix
="$acl_final_exec_prefix"
10591 eval additional_includedir
=\"$includedir\"
10592 eval additional_libdir
=\"$libdir\"
10594 exec_prefix
="$acl_save_exec_prefix"
10595 prefix
="$acl_save_prefix"
10598 additional_includedir
="$withval/include"
10599 additional_libdir
="$withval/lib"
10609 names_already_handled
=
10610 names_next_round
='iconv '
10611 while test -n "$names_next_round"; do
10612 names_this_round
="$names_next_round"
10614 for name
in $names_this_round; do
10616 for n
in $names_already_handled; do
10617 if test "$n" = "$name"; then
10618 already_handled
=yes
10622 if test -z "$already_handled"; then
10623 names_already_handled
="$names_already_handled $name"
10624 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10625 eval value
=\"\
$HAVE_LIB$uppername\"
10626 if test -n "$value"; then
10627 if test "$value" = yes; then
10628 eval value
=\"\
$LIB$uppername\"
10629 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10630 eval value
=\"\
$LTLIB$uppername\"
10631 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10640 if test $use_additional = yes; then
10641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10642 found_dir
="$additional_libdir"
10643 found_so
="$additional_libdir/lib$name.$shlibext"
10644 if test -f "$additional_libdir/lib$name.la"; then
10645 found_la
="$additional_libdir/lib$name.la"
10648 if test -f "$additional_libdir/lib$name.$libext"; then
10649 found_dir
="$additional_libdir"
10650 found_a
="$additional_libdir/lib$name.$libext"
10651 if test -f "$additional_libdir/lib$name.la"; then
10652 found_la
="$additional_libdir/lib$name.la"
10657 if test "X$found_dir" = "X"; then
10658 for x
in $LDFLAGS $LTLIBICONV; do
10660 acl_save_prefix
="$prefix"
10661 prefix
="$acl_final_prefix"
10662 acl_save_exec_prefix
="$exec_prefix"
10663 exec_prefix
="$acl_final_exec_prefix"
10665 exec_prefix
="$acl_save_exec_prefix"
10666 prefix
="$acl_save_prefix"
10670 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10673 found_so
="$dir/lib$name.$shlibext"
10674 if test -f "$dir/lib$name.la"; then
10675 found_la
="$dir/lib$name.la"
10678 if test -f "$dir/lib$name.$libext"; then
10680 found_a
="$dir/lib$name.$libext"
10681 if test -f "$dir/lib$name.la"; then
10682 found_la
="$dir/lib$name.la"
10688 if test "X$found_dir" != "X"; then
10693 if test "X$found_dir" != "X"; then
10694 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10695 if test "X$found_so" != "X"; then
10696 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10697 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10700 for x
in $ltrpathdirs; do
10701 if test "X$x" = "X$found_dir"; then
10706 if test -z "$haveit"; then
10707 ltrpathdirs
="$ltrpathdirs $found_dir"
10709 if test "$hardcode_direct" = yes; then
10710 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10713 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10715 for x
in $rpathdirs; do
10716 if test "X$x" = "X$found_dir"; then
10721 if test -z "$haveit"; then
10722 rpathdirs
="$rpathdirs $found_dir"
10726 for x
in $LDFLAGS $LIBICONV; do
10728 acl_save_prefix
="$prefix"
10729 prefix
="$acl_final_prefix"
10730 acl_save_exec_prefix
="$exec_prefix"
10731 exec_prefix
="$acl_final_exec_prefix"
10733 exec_prefix
="$acl_save_exec_prefix"
10734 prefix
="$acl_save_prefix"
10736 if test "X$x" = "X-L$found_dir"; then
10741 if test -z "$haveit"; then
10742 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10744 if test "$hardcode_minus_L" != no
; then
10745 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10747 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10753 if test "X$found_a" != "X"; then
10754 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10756 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10759 additional_includedir
=
10760 case "$found_dir" in
10762 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10763 additional_includedir
="$basedir/include"
10766 if test "X$additional_includedir" != "X"; then
10767 if test "X$additional_includedir" != "X/usr/include"; then
10769 if test "X$additional_includedir" = "X/usr/local/include"; then
10770 if test -n "$GCC"; then
10772 linux
*) haveit
=yes;;
10776 if test -z "$haveit"; then
10777 for x
in $CPPFLAGS $INCICONV; do
10779 acl_save_prefix
="$prefix"
10780 prefix
="$acl_final_prefix"
10781 acl_save_exec_prefix
="$exec_prefix"
10782 exec_prefix
="$acl_final_exec_prefix"
10784 exec_prefix
="$acl_save_exec_prefix"
10785 prefix
="$acl_save_prefix"
10787 if test "X$x" = "X-I$additional_includedir"; then
10792 if test -z "$haveit"; then
10793 if test -d "$additional_includedir"; then
10794 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10800 if test -n "$found_la"; then
10801 save_libdir
="$libdir"
10802 case "$found_la" in
10803 */* |
*\\*) .
"$found_la" ;;
10804 *) .
"./$found_la" ;;
10806 libdir
="$save_libdir"
10807 for dep
in $dependency_libs; do
10810 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10811 if test "X$additional_libdir" != "X/usr/lib"; then
10813 if test "X$additional_libdir" = "X/usr/local/lib"; then
10814 if test -n "$GCC"; then
10816 linux
*) haveit
=yes;;
10820 if test -z "$haveit"; then
10822 for x
in $LDFLAGS $LIBICONV; do
10824 acl_save_prefix
="$prefix"
10825 prefix
="$acl_final_prefix"
10826 acl_save_exec_prefix
="$exec_prefix"
10827 exec_prefix
="$acl_final_exec_prefix"
10829 exec_prefix
="$acl_save_exec_prefix"
10830 prefix
="$acl_save_prefix"
10832 if test "X$x" = "X-L$additional_libdir"; then
10837 if test -z "$haveit"; then
10838 if test -d "$additional_libdir"; then
10839 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10843 for x
in $LDFLAGS $LTLIBICONV; do
10845 acl_save_prefix
="$prefix"
10846 prefix
="$acl_final_prefix"
10847 acl_save_exec_prefix
="$exec_prefix"
10848 exec_prefix
="$acl_final_exec_prefix"
10850 exec_prefix
="$acl_save_exec_prefix"
10851 prefix
="$acl_save_prefix"
10853 if test "X$x" = "X-L$additional_libdir"; then
10858 if test -z "$haveit"; then
10859 if test -d "$additional_libdir"; then
10860 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10867 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10868 if test "$enable_rpath" != no
; then
10870 for x
in $rpathdirs; do
10871 if test "X$x" = "X$dir"; then
10876 if test -z "$haveit"; then
10877 rpathdirs
="$rpathdirs $dir"
10880 for x
in $ltrpathdirs; do
10881 if test "X$x" = "X$dir"; then
10886 if test -z "$haveit"; then
10887 ltrpathdirs
="$ltrpathdirs $dir"
10892 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10895 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10898 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10899 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10905 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10906 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10912 if test "X$rpathdirs" != "X"; then
10913 if test -n "$hardcode_libdir_separator"; then
10915 for found_dir
in $rpathdirs; do
10916 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10918 acl_save_libdir
="$libdir"
10920 eval flag
=\"$hardcode_libdir_flag_spec\"
10921 libdir
="$acl_save_libdir"
10922 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10924 for found_dir
in $rpathdirs; do
10925 acl_save_libdir
="$libdir"
10926 libdir
="$found_dir"
10927 eval flag
=\"$hardcode_libdir_flag_spec\"
10928 libdir
="$acl_save_libdir"
10929 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10933 if test "X$ltrpathdirs" != "X"; then
10934 for found_dir
in $ltrpathdirs; do
10935 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10945 am_save_CPPFLAGS
="$CPPFLAGS"
10947 for element
in $INCICONV; do
10949 for x
in $CPPFLAGS; do
10951 acl_save_prefix
="$prefix"
10952 prefix
="$acl_final_prefix"
10953 acl_save_exec_prefix
="$exec_prefix"
10954 exec_prefix
="$acl_final_exec_prefix"
10956 exec_prefix
="$acl_save_exec_prefix"
10957 prefix
="$acl_save_prefix"
10959 if test "X$x" = "X$element"; then
10964 if test -z "$haveit"; then
10965 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10970 echo "$as_me:$LINENO: checking for iconv" >&5
10971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10972 if test "${am_cv_func_iconv+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 am_cv_func_iconv
="no, consider installing GNU libiconv"
10978 cat >conftest.
$ac_ext <<_ACEOF
10981 cat confdefs.h
>>conftest.
$ac_ext
10982 cat >>conftest.
$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <stdlib.h>
10989 iconv_t cd = iconv_open("","");
10990 iconv(cd,NULL,NULL,NULL,NULL);
10996 rm -f conftest.
$ac_objext conftest
$ac_exeext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10998 (eval $ac_link) 2>conftest.er1
11000 grep -v '^ *+' conftest.er1
>conftest.err
11002 cat conftest.err
>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try
='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
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); }; } &&
11012 { ac_try
='test -s conftest$ac_exeext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 am_cv_func_iconv
=yes
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.
$ac_ext >&5
11024 rm -f conftest.err conftest.
$ac_objext \
11025 conftest
$ac_exeext conftest.
$ac_ext
11026 if test "$am_cv_func_iconv" != yes; then
11027 am_save_LIBS
="$LIBS"
11028 LIBS
="$LIBS $LIBICONV"
11029 cat >conftest.
$ac_ext <<_ACEOF
11032 cat confdefs.h
>>conftest.
$ac_ext
11033 cat >>conftest.
$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11035 #include <stdlib.h>
11040 iconv_t cd = iconv_open("","");
11041 iconv(cd,NULL,NULL,NULL,NULL);
11047 rm -f conftest.
$ac_objext conftest
$ac_exeext
11048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049 (eval $ac_link) 2>conftest.er1
11051 grep -v '^ *+' conftest.er1
>conftest.err
11053 cat conftest.err
>&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try
='test -z "$ac_c_werror_flag"
11057 || test ! -s conftest.err'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; } &&
11063 { ac_try
='test -s conftest$ac_exeext'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; }; then
11069 am_cv_lib_iconv
=yes
11070 am_cv_func_iconv
=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.
$ac_ext >&5
11076 rm -f conftest.err conftest.
$ac_objext \
11077 conftest
$ac_exeext conftest.
$ac_ext
11078 LIBS
="$am_save_LIBS"
11082 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11083 echo "${ECHO_T}$am_cv_func_iconv" >&6
11084 if test "$am_cv_func_iconv" = yes; then
11086 cat >>confdefs.h
<<\_ACEOF
11087 #define HAVE_ICONV 1
11091 if test "$am_cv_lib_iconv" = yes; then
11092 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11093 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11094 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11095 echo "${ECHO_T}$LIBICONV" >&6
11097 CPPFLAGS
="$am_save_CPPFLAGS"
11104 if test "$am_cv_func_iconv" = yes; then
11105 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11106 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11107 if test "${am_cv_proto_iconv+set}" = set; then
11108 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 cat >conftest.
$ac_ext <<_ACEOF
11114 cat confdefs.h
>>conftest.
$ac_ext
11115 cat >>conftest.
$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11118 #include <stdlib.h>
11124 #if defined(__STDC__) || defined(__cplusplus)
11125 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11138 rm -f conftest.
$ac_objext
11139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11140 (eval $ac_compile) 2>conftest.er1
11142 grep -v '^ *+' conftest.er1
>conftest.err
11144 cat conftest.err
>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try
='test -z "$ac_c_werror_flag"
11148 || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try
='test -s conftest.$ac_objext'
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; }; then
11160 am_cv_proto_iconv_arg1
=""
11162 echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.
$ac_ext >&5
11165 am_cv_proto_iconv_arg1
="const"
11167 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11168 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);"
11171 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11172 echo "$as_me:$LINENO: result: ${ac_t:-
11173 }$am_cv_proto_iconv" >&5
11174 echo "${ECHO_T}${ac_t:-
11175 }$am_cv_proto_iconv" >&6
11177 cat >>confdefs.h
<<_ACEOF
11178 #define ICONV_CONST $am_cv_proto_iconv_arg1
11183 # Until we have in-tree GNU iconv:
11188 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11189 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11190 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11191 echo $ECHO_N "(cached) $ECHO_C" >&6
11193 cat >conftest.
$ac_ext <<_ACEOF
11196 cat confdefs.h
>>conftest.
$ac_ext
11197 cat >>conftest.
$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <locale.h>
11208 rm -f conftest.
$ac_objext conftest
$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11212 grep -v '^ *+' conftest.er1
>conftest.err
11214 cat conftest.err
>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try
='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try
='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 am_cv_val_LC_MESSAGES
=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.
$ac_ext >&5
11235 am_cv_val_LC_MESSAGES
=no
11237 rm -f conftest.err conftest.
$ac_objext \
11238 conftest
$ac_exeext conftest.
$ac_ext
11240 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11241 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11242 if test $am_cv_val_LC_MESSAGES = yes; then
11244 cat >>confdefs.h
<<\_ACEOF
11245 #define HAVE_LC_MESSAGES 1
11252 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11253 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11254 if test "${am_cv_langinfo_codeset+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.
$ac_ext <<_ACEOF
11260 cat confdefs.h
>>conftest.
$ac_ext
11261 cat >>conftest.
$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 #include <langinfo.h>
11267 char* cs = nl_langinfo(CODESET);
11272 rm -f conftest.
$ac_objext conftest
$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11276 grep -v '^ *+' conftest.er1
>conftest.err
11278 cat conftest.err
>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try
='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try
='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 am_cv_langinfo_codeset
=yes
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.
$ac_ext >&5
11299 am_cv_langinfo_codeset
=no
11301 rm -f conftest.err conftest.
$ac_objext \
11302 conftest
$ac_exeext conftest.
$ac_ext
11305 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11306 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11307 if test $am_cv_langinfo_codeset = yes; then
11309 cat >>confdefs.h
<<\_ACEOF
11310 #define HAVE_LANGINFO_CODESET 1
11316 # We will need to find libiberty.h and ansidecl.h
11317 saved_CFLAGS
="$CFLAGS"
11318 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11358 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11359 strsignal strstr strverscmp \
11360 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11361 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
11363 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11364 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11365 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11366 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 #define $ac_tr_decl 1
11378 #include "ansidecl.h"
11379 #include "system.h"
11385 char *(*pfn) = (char *(*)) $ac_func ;
11391 rm -f conftest.
$ac_objext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11395 grep -v '^ *+' conftest.er1
>conftest.err
11397 cat conftest.err
>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try
='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try
='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 eval "gcc_cv_have_decl_$ac_func=yes"
11415 echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.
$ac_ext >&5
11418 eval "gcc_cv_have_decl_$ac_func=no"
11420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11423 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11424 echo "$as_me:$LINENO: result: yes" >&5
11425 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11426 #define $ac_tr_decl 1
11430 echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11432 #define $ac_tr_decl 0
11443 for ac_func
in getrlimit setrlimit getrusage
11445 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11446 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11447 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11448 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.
$ac_ext <<_ACEOF
11454 cat confdefs.h
>>conftest.
$ac_ext
11455 cat >>conftest.
$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11458 #define $ac_tr_decl 1
11460 #include "ansidecl.h"
11461 #include "system.h"
11462 #ifdef HAVE_SYS_RESOURCE_H
11463 #include <sys/resource.h>
11471 char *(*pfn) = (char *(*)) $ac_func ;
11477 rm -f conftest.
$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479 (eval $ac_compile) 2>conftest.er1
11481 grep -v '^ *+' conftest.er1
>conftest.err
11483 cat conftest.err
>&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } &&
11486 { ac_try
='test -z "$ac_c_werror_flag"
11487 || test ! -s conftest.err'
11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489 (eval $ac_try) 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; } &&
11493 { ac_try
='test -s conftest.$ac_objext'
11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495 (eval $ac_try) 2>&5
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); }; }; then
11499 eval "gcc_cv_have_decl_$ac_func=yes"
11501 echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.
$ac_ext >&5
11504 eval "gcc_cv_have_decl_$ac_func=no"
11506 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11509 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11510 echo "$as_me:$LINENO: result: yes" >&5
11511 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11512 #define $ac_tr_decl 1
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11518 #define $ac_tr_decl 0
11526 cat >conftest.
$ac_ext <<_ACEOF
11529 cat confdefs.h
>>conftest.
$ac_ext
11530 cat >>conftest.
$ac_ext <<_ACEOF
11531 /* end confdefs.h. */
11533 #include "ansidecl.h"
11534 #include "system.h"
11535 #ifdef HAVE_SYS_RESOURCE_H
11536 #include <sys/resource.h>
11547 rm -f conftest.
$ac_objext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11549 (eval $ac_compile) 2>conftest.er1
11551 grep -v '^ *+' conftest.er1
>conftest.err
11553 cat conftest.err
>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try
='test -z "$ac_c_werror_flag"
11557 || test ! -s conftest.err'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; } &&
11563 { ac_try
='test -s conftest.$ac_objext'
11564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565 (eval $ac_try) 2>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; }; then
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.
$ac_ext >&5
11575 cat >>confdefs.h
<<\_ACEOF
11576 #define rlim_t long
11580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11582 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11583 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11584 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11585 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11587 for ac_func
in ldgetname
11589 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11590 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11591 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11592 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 cat >conftest.
$ac_ext <<_ACEOF
11598 cat confdefs.h
>>conftest.
$ac_ext
11599 cat >>conftest.
$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11602 #define $ac_tr_decl 1
11604 #include "ansidecl.h"
11605 #include "system.h"
11606 #ifdef HAVE_LDFCN_H
11617 char *(*pfn) = (char *(*)) $ac_func ;
11623 rm -f conftest.
$ac_objext
11624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11625 (eval $ac_compile) 2>conftest.er1
11627 grep -v '^ *+' conftest.er1
>conftest.err
11629 cat conftest.err
>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } &&
11632 { ac_try
='test -z "$ac_c_werror_flag"
11633 || test ! -s conftest.err'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try
='test -s conftest.$ac_objext'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.
$ac_ext >&5
11650 eval "gcc_cv_have_decl_$ac_func=no"
11652 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11655 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11656 echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11658 #define $ac_tr_decl 1
11662 echo "$as_me:$LINENO: result: no" >&5
11663 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11664 #define $ac_tr_decl 0
11673 for ac_func
in times
11675 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11676 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11677 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11678 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 cat >conftest.
$ac_ext <<_ACEOF
11684 cat confdefs.h
>>conftest.
$ac_ext
11685 cat >>conftest.
$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11688 #define $ac_tr_decl 1
11690 #include "ansidecl.h"
11691 #include "system.h"
11692 #ifdef HAVE_SYS_TIMES_H
11693 #include <sys/times.h>
11701 char *(*pfn) = (char *(*)) $ac_func ;
11707 rm -f conftest.
$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try
='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 eval "gcc_cv_have_decl_$ac_func=yes"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.
$ac_ext >&5
11734 eval "gcc_cv_have_decl_$ac_func=no"
11736 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11739 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11740 echo "$as_me:$LINENO: result: yes" >&5
11741 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11742 #define $ac_tr_decl 1
11746 echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11748 #define $ac_tr_decl 0
11757 for ac_func
in sigaltstack
11759 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11760 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11761 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11762 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cat >conftest.
$ac_ext <<_ACEOF
11768 cat confdefs.h
>>conftest.
$ac_ext
11769 cat >>conftest.
$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 #define $ac_tr_decl 1
11774 #include "ansidecl.h"
11775 #include "system.h"
11776 #include <signal.h>
11783 char *(*pfn) = (char *(*)) $ac_func ;
11789 rm -f conftest.
$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791 (eval $ac_compile) 2>conftest.er1
11793 grep -v '^ *+' conftest.er1
>conftest.err
11795 cat conftest.err
>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try
='test -z "$ac_c_werror_flag"
11799 || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try
='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 eval "gcc_cv_have_decl_$ac_func=yes"
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11816 eval "gcc_cv_have_decl_$ac_func=no"
11818 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11821 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11822 echo "$as_me:$LINENO: result: yes" >&5
11823 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11824 #define $ac_tr_decl 1
11828 echo "$as_me:$LINENO: result: no" >&5
11829 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11830 #define $ac_tr_decl 0
11838 # More time-related stuff.
11839 echo "$as_me:$LINENO: checking for struct tms" >&5
11840 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11841 if test "${ac_cv_struct_tms+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 cat >conftest.
$ac_ext <<_ACEOF
11848 cat confdefs.h
>>conftest.
$ac_ext
11849 cat >>conftest.
$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11852 #include "ansidecl.h"
11853 #include "system.h"
11854 #ifdef HAVE_SYS_TIMES_H
11855 #include <sys/times.h>
11866 rm -f conftest.
$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868 (eval $ac_compile) 2>conftest.er1
11870 grep -v '^ *+' conftest.er1
>conftest.err
11872 cat conftest.err
>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } &&
11875 { ac_try
='test -z "$ac_c_werror_flag"
11876 || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try
='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_cv_struct_tms
=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.
$ac_ext >&5
11893 ac_cv_struct_tms
=no
11895 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11897 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11898 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11899 if test $ac_cv_struct_tms = yes; then
11901 cat >>confdefs.h
<<\_ACEOF
11902 #define HAVE_STRUCT_TMS 1
11907 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11908 # revisit after autoconf 2.50.
11909 echo "$as_me:$LINENO: checking for clock_t" >&5
11910 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11911 if test "${gcc_cv_type_clock_t+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11915 cat >conftest.
$ac_ext <<_ACEOF
11918 cat confdefs.h
>>conftest.
$ac_ext
11919 cat >>conftest.
$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 #include "ansidecl.h"
11923 #include "system.h"
11933 rm -f conftest.
$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>conftest.er1
11937 grep -v '^ *+' conftest.er1
>conftest.err
11939 cat conftest.err
>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try
='test -z "$ac_c_werror_flag"
11943 || test ! -s conftest.err'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; } &&
11949 { ac_try
='test -s conftest.$ac_objext'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 gcc_cv_type_clock_t
=yes
11957 echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.
$ac_ext >&5
11960 gcc_cv_type_clock_t
=no
11962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11964 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11965 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11966 if test $gcc_cv_type_clock_t = yes; then
11968 cat >>confdefs.h
<<\_ACEOF
11969 #define HAVE_CLOCK_T 1
11974 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11975 CFLAGS
="$saved_CFLAGS"
11977 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11978 if test "${enable_initfini_array+set}" = set; then
11979 enableval
="$enable_initfini_array"
11983 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11984 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11985 if test "${gcc_cv_initfini_array+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 if test "$cross_compiling" = yes; then
11989 gcc_cv_initfini_array
=no
11991 cat >conftest.
$ac_ext <<_ACEOF
11994 cat confdefs.h
>>conftest.
$ac_ext
11995 cat >>conftest.
$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11999 int main (void) { return x; }
12000 int foo (void) { x = 0; }
12001 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12003 rm -f conftest
$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005 (eval $ac_link) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 gcc_cv_initfini_array
=yes
12016 echo "$as_me: program exited with status $ac_status" >&5
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.
$ac_ext >&5
12020 ( exit $ac_status )
12021 gcc_cv_initfini_array
=no
12023 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12026 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12027 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12028 enable_initfini_array
=$gcc_cv_initfini_array
12031 if test $enable_initfini_array = yes; then
12033 cat >>confdefs.h
<<\_ACEOF
12034 #define HAVE_INITFINI_ARRAY 1
12039 # mkdir takes a single argument on some systems.
12040 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12041 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12042 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.
$ac_ext <<_ACEOF
12048 cat confdefs.h
>>conftest.
$ac_ext
12049 cat >>conftest.
$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #ifdef HAVE_SYS_STAT_H
12054 # include <sys/stat.h>
12056 #ifdef HAVE_UNISTD_H
12057 # include <unistd.h>
12059 #ifdef HAVE_DIRECT_H
12060 # include <direct.h>
12070 rm -f conftest.
$ac_objext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12074 grep -v '^ *+' conftest.er1
>conftest.err
12076 cat conftest.err
>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
12079 { ac_try
='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try
='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
12092 gcc_cv_mkdir_takes_one_arg
=no
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.
$ac_ext >&5
12097 gcc_cv_mkdir_takes_one_arg
=yes
12099 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12101 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12102 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12103 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12105 cat >>confdefs.h
<<\_ACEOF
12106 #define MKDIR_TAKES_ONE_ARG 1
12118 # With Setjmp/Longjmp based exception handling.
12119 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12120 if test "${enable_sjlj_exceptions+set}" = set; then
12121 enableval
="$enable_sjlj_exceptions"
12122 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12124 cat >>confdefs.h
<<_ACEOF
12125 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12130 # For platforms with the unwind ABI which includes an unwind library,
12131 # libunwind, we can choose to use the system libunwind.
12133 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12134 if test "${with_system_libunwind+set}" = set; then
12135 withval
="$with_system_libunwind"
12139 # config.gcc also contains tests of with_system_libunwind.
12140 if test x
$with_system_libunwind = xyes
; then
12142 cat >>confdefs.h
<<\_ACEOF
12143 #define HAVE_GETIPINFO 1
12148 # --------------------------------------------------------
12149 # Build, host, and target specific configuration fragments
12150 # --------------------------------------------------------
12152 # Collect build-machine-specific information.
12153 .
${srcdir}/config.build
12155 # Collect host-machine-specific information.
12156 .
${srcdir}/config.
host
12160 # Collect target-machine-specific information.
12161 .
${srcdir}/config.gcc
12163 extra_objs
="${host_extra_objs} ${extra_objs}"
12164 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12166 # Default the target-machine variables that were not explicitly set.
12167 if test x
"$tm_file" = x
12168 then tm_file
=$cpu_type/$cpu_type.h
; fi
12170 if test x
"$extra_headers" = x
12171 then extra_headers
=; fi
12173 if test x
$md_file = x
12174 then md_file
=$cpu_type/$cpu_type.md
; fi
12176 if test x
$out_file = x
12177 then out_file
=$cpu_type/$cpu_type.c
; fi
12179 if test x
"$tmake_file" = x
12180 then tmake_file
=$cpu_type/t-
$cpu_type
12183 if test x
"$dwarf2" = xyes
12184 then tm_file
="$tm_file tm-dwarf2.h"
12187 # Say what files are being used for the output code and MD file.
12188 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12189 echo "Using \`$srcdir/config/$md_file' as machine description file."
12191 # If any of the xm_file variables contain nonexistent files, warn
12192 # about them and drop them.
12195 for x
in $build_xm_file; do
12196 if test -f $srcdir/config
/$x
12198 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12199 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12202 build_xm_file
="$bx"
12205 for x
in $host_xm_file; do
12206 if test -f $srcdir/config
/$x
12208 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12209 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12215 for x
in $xm_file; do
12216 if test -f $srcdir/config
/$x
12218 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12219 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12225 for f
in $tm_file; do
12228 if test $count = ax
; then
12229 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12231 echo "Using the following target machine macro files:"
12232 for f
in $tm_file; do
12233 echo " $srcdir/config/$f"
12237 if test x
$need_64bit_hwint = xyes
; then
12239 cat >>confdefs.h
<<\_ACEOF
12240 #define NEED_64BIT_HOST_WIDE_INT 1
12245 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12254 for f
in $host_xm_file; do
12257 if test $count = a
; then
12259 elif test $count = ax
; then
12260 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12262 echo "Using the following host machine macro files:"
12263 for f
in $host_xm_file; do
12264 echo " $srcdir/config/$f"
12267 echo "Using ${out_host_hook_obj} for host machine hooks."
12269 if test "$host_xm_file" != "$build_xm_file"; then
12271 for f
in $build_xm_file; do
12274 if test $count = a
; then
12276 elif test $count = ax
; then
12277 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12279 echo "Using the following build machine macro files:"
12280 for f
in $build_xm_file; do
12281 echo " $srcdir/config/$f"
12287 powerpc
*-*-darwin*)
12288 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12289 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12290 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 cat >conftest.
$ac_ext <<_ACEOF
12295 #include <sys/cdefs.h>
12296 #include <sys/signal.h>
12297 #include <ucontext.h>
12298 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12301 rm -f conftest.
$ac_objext
12302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12303 (eval $ac_compile) 2>conftest.er1
12305 grep -v '^ *+' conftest.er1
>conftest.err
12307 cat conftest.err
>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try
='test -z "$ac_c_werror_flag"
12311 || test ! -s conftest.err'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try
='test -s conftest.$ac_objext'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 gcc_cv_mcontext_underscores
=no
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.
$ac_ext >&5
12328 gcc_cv_mcontext_underscores
=yes
12330 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12332 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12333 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12334 if test $gcc_cv_mcontext_underscores = yes; then
12336 cat >>confdefs.h
<<\_ACEOF
12337 #define HAS_MCONTEXT_T_UNDERSCORES
12348 # Check if a valid thread package
12349 case ${enable_threads} in
12352 target_thread_file
='single'
12356 target_thread_file
='single'
12358 aix | dce | gnat | irix | posix | posix95 | rtems | \
12359 single | solaris | vxworks | win32
)
12360 target_thread_file
=${enable_threads}
12363 echo "${enable_threads} is an unknown thread package" 1>&2
12368 if test x
${thread_file} = x
; then
12369 # No thread file set by target-specific clauses in config.gcc,
12370 # so use file chosen by default logic above
12371 thread_file
=${target_thread_file}
12374 # Make gthr-default.h if we have a thread file.
12376 if test $thread_file != single
; then
12377 rm -f gthr-default.h
12378 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12379 gthread_flags
=-DHAVE_GTHR_DEFAULT
12388 if test x
$enable___cxa_atexit = xyes || \
12389 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12390 if test x
$host = x
$target; then
12392 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12393 # keyed to flag_use_cxa_atexit
12398 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12399 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12400 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 cat >conftest.
$ac_ext <<_ACEOF
12406 cat confdefs.h
>>conftest.
$ac_ext
12407 cat >>conftest.
$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12411 #define __cxa_atexit innocuous___cxa_atexit
12413 /* System header to define __stub macros and hopefully few prototypes,
12414 which can conflict with char __cxa_atexit (); below.
12415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12416 <limits.h> exists even on freestanding compilers. */
12419 # include <limits.h>
12421 # include <assert.h>
12424 #undef __cxa_atexit
12426 /* Override any gcc2 internal prototype to avoid an error. */
12431 /* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433 char __cxa_atexit ();
12434 /* The GNU C library defines this for functions which it implements
12435 to always fail with ENOSYS. Some functions are actually named
12436 something starting with __ and the normal name is an alias. */
12437 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12440 char (*f) () = __cxa_atexit;
12449 return f != __cxa_atexit;
12454 rm -f conftest.
$ac_objext conftest
$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456 (eval $ac_link) 2>conftest.er1
12458 grep -v '^ *+' conftest.er1
>conftest.err
12460 cat conftest.err
>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try
='test -z "$ac_c_werror_flag"
12464 || test ! -s conftest.err'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; } &&
12470 { ac_try
='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_func___cxa_atexit
=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.
$ac_ext >&5
12481 ac_cv_func___cxa_atexit
=no
12483 rm -f conftest.err conftest.
$ac_objext \
12484 conftest
$ac_exeext conftest.
$ac_ext
12486 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12487 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12488 if test $ac_cv_func___cxa_atexit = yes; then
12491 echo "__cxa_atexit can't be enabled on this target"
12497 # We can't check for __cxa_atexit when building a cross, so assume
12501 if test x
$use_cxa_atexit = xyes
; then
12503 cat >>confdefs.h
<<\_ACEOF
12504 #define DEFAULT_USE_CXA_ATEXIT 2
12511 if test x
$with_system_libunwind = xyes
; then
12512 if test x
$host = x
$target; then
12513 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12514 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12515 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 ac_func_search_save_LIBS
=$LIBS
12519 ac_cv_search__Unwind_GetIPInfo
=no
12520 cat >conftest.
$ac_ext <<_ACEOF
12523 cat confdefs.h
>>conftest.
$ac_ext
12524 cat >>conftest.
$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12527 /* Override any gcc2 internal prototype to avoid an error. */
12531 /* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533 char _Unwind_GetIPInfo ();
12537 _Unwind_GetIPInfo ();
12542 rm -f conftest.
$ac_objext conftest
$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544 (eval $ac_link) 2>conftest.er1
12546 grep -v '^ *+' conftest.er1
>conftest.err
12548 cat conftest.err
>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } &&
12551 { ac_try
='test -z "$ac_c_werror_flag"
12552 || test ! -s conftest.err'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; } &&
12558 { ac_try
='test -s conftest$ac_exeext'
12559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560 (eval $ac_try) 2>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564 ac_cv_search__Unwind_GetIPInfo
="none required"
12566 echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.
$ac_ext >&5
12570 rm -f conftest.err conftest.
$ac_objext \
12571 conftest
$ac_exeext conftest.
$ac_ext
12572 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12573 for ac_lib
in unwind
; do
12574 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12575 cat >conftest.
$ac_ext <<_ACEOF
12578 cat confdefs.h
>>conftest.
$ac_ext
12579 cat >>conftest.
$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 /* Override any gcc2 internal prototype to avoid an error. */
12586 /* We use char because int might match the return type of a gcc2
12587 builtin and then its argument prototype would still apply. */
12588 char _Unwind_GetIPInfo ();
12592 _Unwind_GetIPInfo ();
12597 rm -f conftest.
$ac_objext conftest
$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599 (eval $ac_link) 2>conftest.er1
12601 grep -v '^ *+' conftest.er1
>conftest.err
12603 cat conftest.err
>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try
='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try
='test -s conftest$ac_exeext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.
$ac_ext >&5
12626 rm -f conftest.err conftest.
$ac_objext \
12627 conftest
$ac_exeext conftest.
$ac_ext
12630 LIBS
=$ac_func_search_save_LIBS
12632 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12633 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12634 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12635 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12644 if test x
$use_getipinfo = xyes
; then
12646 cat >>confdefs.h
<<\_ACEOF
12647 #define HAVE_GETIPINFO 1
12651 echo "The system unwind library does not support _Unwind_GetIPInfo."
12654 # Look for a file containing extra machine modes.
12655 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12656 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12659 cat >>confdefs.h
<<_ACEOF
12660 #define EXTRA_MODES_FILE "config/$extra_modes"
12665 # Convert extra_options into a form suitable for Makefile use.
12667 for f
in $extra_options; do
12668 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12672 # auto-host.h is the file containing items generated by autoconf and is
12673 # the first file included by config.h.
12674 # If host=build, it is correct to have bconfig include auto-host.h
12675 # as well. If host!=build, we are in error and need to do more
12676 # work to find out the build config parameters.
12677 if test x
$host = x
$build
12679 build_auto
=auto-host.h
12681 # We create a subdir, then run autoconf in the subdir.
12682 # To prevent recursion we set host and build for the new
12683 # invocation of configure to the build for this invocation
12690 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12691 *) realsrcdir
=..
/${srcdir};;
12693 saved_CFLAGS
="${CFLAGS}"
12694 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12695 ${realsrcdir}/configure \
12696 --enable-languages=${enable_languages-all} \
12697 --target=$target_alias --host=$build_alias --build=$build_alias
12698 CFLAGS
="${saved_CFLAGS}"
12700 # We just finished tests for the build machine, so rename
12701 # the file auto-build.h in the gcc directory.
12702 mv auto-host.h ..
/auto-build.h
12705 build_auto
=auto-build.h
12709 tm_file
="${tm_file} defaults.h"
12710 tm_p_file
="${tm_p_file} tm-preds.h"
12711 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12712 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12713 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12714 # put this back in temporarily.
12715 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12721 # Compile in configure arguments.
12722 if test -f configargs.h
; then
12723 # Being re-configured.
12724 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12725 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12727 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12730 # Double all backslashes and backslash all quotes to turn
12731 # gcc_config_arguments into a C string.
12732 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12733 $gcc_config_arguments
12735 gcc_config_arguments_str
=`cat conftest.out`
12738 cat > configargs.h
<<EOF
12739 /* Generated automatically. */
12740 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12741 static const char thread_model[] = "$thread_file";
12743 static const struct {
12744 const char *name, *value;
12745 } configure_default_options[] = $configure_default_options;
12748 # Internationalization
12749 # If we haven't got the data from the intl directory,
12750 # assume NLS is disabled.
12759 if test -f ..
/intl
/config.intl
; then
12760 . ..
/intl
/config.intl
12762 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12763 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12764 if test x
"$USE_NLS" != xyes
; then
12765 echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6
12768 echo "$as_me:$LINENO: result: yes" >&5
12769 echo "${ECHO_T}yes" >&6
12771 cat >>confdefs.h
<<\_ACEOF
12772 #define ENABLE_NLS 1
12776 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12777 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12778 # Look for .po and .gmo files in the source directory.
12781 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12782 # If there aren't any .gmo files the shell will give us the
12783 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12785 case "$cat" in *\
**)
12788 # The quadruple backslash is collapsed to a double backslash
12789 # by the backticks, then collapsed again by the double quotes,
12790 # leaving us with one backslash in the sed expression (right
12791 # before the dot that mustn't act as a wildcard).
12792 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12793 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12794 # The user is allowed to set LINGUAS to a list of languages to
12795 # install catalogs for. If it's empty that means "all of them."
12796 if test "x$LINGUAS" = x
; then
12797 CATALOGS
="$CATALOGS $cat"
12798 XLINGUAS
="$XLINGUAS $lang"
12800 case "$LINGUAS" in *$lang*)
12801 CATALOGS
="$CATALOGS $cat"
12802 XLINGUAS
="$XLINGUAS $lang"
12807 LINGUAS
="$XLINGUAS"
12808 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12809 echo "${ECHO_T}$LINGUAS" >&6
12822 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12823 # -liconv on the link line twice.
12824 case "$LIBINTL" in *$LIBICONV*)
12828 # Check whether --enable-secureplt or --disable-secureplt was given.
12829 if test "${enable_secureplt+set}" = set; then
12830 enableval
="$enable_secureplt"
12834 # Windows32 Registry support for specifying GCC installation paths.
12835 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12836 if test "${enable_win32_registry+set}" = set; then
12837 enableval
="$enable_win32_registry"
12842 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12843 if test "x$enable_win32_registry" != xno
; then
12844 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12845 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12846 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12849 ac_func_search_save_LIBS
=$LIBS
12850 ac_cv_search_RegOpenKeyExA
=no
12851 cat >conftest.
$ac_ext <<_ACEOF
12854 cat confdefs.h
>>conftest.
$ac_ext
12855 cat >>conftest.
$ac_ext <<_ACEOF
12856 /* end confdefs.h. */
12858 /* Override any gcc2 internal prototype to avoid an error. */
12862 /* We use char because int might match the return type of a gcc2
12863 builtin and then its argument prototype would still apply. */
12864 char RegOpenKeyExA ();
12873 rm -f conftest.
$ac_objext conftest
$ac_exeext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12877 grep -v '^ *+' conftest.er1
>conftest.err
12879 cat conftest.err
>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try
='test -z "$ac_c_werror_flag"
12883 || test ! -s conftest.err'
12884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888 (exit $ac_status); }; } &&
12889 { ac_try
='test -s conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 ac_cv_search_RegOpenKeyExA
="none required"
12897 echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.
$ac_ext >&5
12901 rm -f conftest.err conftest.
$ac_objext \
12902 conftest
$ac_exeext conftest.
$ac_ext
12903 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12904 for ac_lib
in advapi32
; do
12905 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12906 cat >conftest.
$ac_ext <<_ACEOF
12909 cat confdefs.h
>>conftest.
$ac_ext
12910 cat >>conftest.
$ac_ext <<_ACEOF
12911 /* end confdefs.h. */
12913 /* Override any gcc2 internal prototype to avoid an error. */
12917 /* We use char because int might match the return type of a gcc2
12918 builtin and then its argument prototype would still apply. */
12919 char RegOpenKeyExA ();
12928 rm -f conftest.
$ac_objext conftest
$ac_exeext
12929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12930 (eval $ac_link) 2>conftest.er1
12932 grep -v '^ *+' conftest.er1
>conftest.err
12934 cat conftest.err
>&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); } &&
12937 { ac_try
='test -z "$ac_c_werror_flag"
12938 || test ! -s conftest.err'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; } &&
12944 { ac_try
='test -s conftest$ac_exeext'
12945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946 (eval $ac_try) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12950 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.
$ac_ext >&5
12957 rm -f conftest.err conftest.
$ac_objext \
12958 conftest
$ac_exeext conftest.
$ac_ext
12961 LIBS
=$ac_func_search_save_LIBS
12963 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12964 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12965 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12966 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12969 enable_win32_registry
=no
12974 if test "x$enable_win32_registry" != xno
; then
12976 cat >>confdefs.h
<<\_ACEOF
12977 #define ENABLE_WIN32_REGISTRY 1
12981 if test "x$enable_win32_registry" != xyes \
12982 && test "x$enable_win32_registry" != x
; then
12984 cat >>confdefs.h
<<_ACEOF
12985 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12993 # Get an absolute path to the GCC top-level source directory
12994 holddir
=`${PWDCMD-pwd}`
12996 topdir
=`${PWDCMD-pwd}`
12999 # Conditionalize the makefile for this host machine.
13001 for f
in ${host_xmake_file}
13003 if test -f ${srcdir}/config
/$f
13005 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13009 # Conditionalize the makefile for this target machine.
13011 for f
in ${tmake_file}
13013 if test -f ${srcdir}/config
/$f
13015 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13018 tmake_file
="${tmake_file_}"
13020 # This is a terrible hack which will go away some day.
13021 host_cc_for_libada
=${CC}
13024 out_object_file
=`basename $out_file .c`.o
13026 tm_file_list
="options.h"
13027 tm_include_list
="options.h"
13028 for f
in $tm_file; do
13031 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13032 tm_include_list
="${tm_include_list} $f"
13035 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13036 tm_include_list
="${tm_include_list} config/$f"
13043 for f
in $tm_p_file; do
13046 tm_p_file_list
="${tm_p_file_list} $f"
13047 tm_p_include_list
="${tm_p_include_list} $f"
13050 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13051 tm_p_include_list
="${tm_p_include_list} config/$f"
13057 for f
in $xm_file; do
13060 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13061 xm_include_list
="${xm_include_list} $f"
13064 xm_file_list
="${xm_file_list} $f"
13065 xm_include_list
="${xm_include_list} $f"
13068 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13069 xm_include_list
="${xm_include_list} config/$f"
13075 host_xm_include_list
=
13076 for f
in $host_xm_file; do
13079 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13080 host_xm_include_list
="${host_xm_include_list} $f"
13083 host_xm_file_list
="${host_xm_file_list} $f"
13084 host_xm_include_list
="${host_xm_include_list} $f"
13087 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13088 host_xm_include_list
="${host_xm_include_list} config/$f"
13093 build_xm_file_list
=
13094 for f
in $build_xm_file; do
13097 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13098 build_xm_include_list
="${build_xm_include_list} $f"
13100 auto-build.h | auto-host.h
)
13101 build_xm_file_list
="${build_xm_file_list} $f"
13102 build_xm_include_list
="${build_xm_include_list} $f"
13105 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13106 build_xm_include_list
="${build_xm_include_list} config/$f"
13111 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13112 # cross-compiler which does not use the native headers and libraries.
13113 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13116 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13118 if test "x$with_build_sysroot" != x
; then
13119 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13121 # This value is used, even on a native system, because
13122 # CROSS_SYSTEM_HEADER_DIR is just
13123 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13124 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13127 if test x
$host != x
$target
13129 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13131 SYSTEM_HEADER_DIR
=$build_system_header_dir
13132 case "$host","$target" in
13133 # Darwin crosses can use the host system's libraries and headers,
13134 # because of the fat library support. Of course, it must be the
13135 # same version of Darwin on both sides. Allow the user to
13136 # just say --target=foo-darwin without a version number to mean
13137 # "the version on this system".
13138 *-*-darwin*,*-*-darwin*)
13139 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13140 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13141 if test $hostos = $targetos -o $targetos = darwin
; then
13143 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13148 i?
86-*-*,x86_64-
*-* \
13149 | powerpc
*-*-*,powerpc64
*-*-*)
13150 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13152 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13153 SYSTEM_HEADER_DIR
=$build_system_header_dir
13156 # If this is a cross-compiler that does not
13157 # have its own set of headers then define
13160 # If this is using newlib, without having the headers available now,
13161 # then define inhibit_libc in LIBGCC2_CFLAGS.
13162 # This prevents libgcc2 from containing any code which requires libc
13165 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13166 test x
$with_newlib = xyes
; } &&
13167 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13172 # When building gcc with a cross-compiler, we need to adjust things so
13173 # that the generator programs are still built with the native compiler.
13174 # Also, we cannot run fixincludes or fix-header.
13176 # These are the normal (build=host) settings:
13177 CC_FOR_BUILD
='$(CC)'
13178 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13179 STMP_FIXINC
=stmp-fixinc
13181 # Possibly disable fixproto, on a per-target basis.
13182 case ${use_fixproto} in
13187 STMP_FIXPROTO
=stmp-fixproto
13192 # And these apply if build != host, or we are generating coverage data
13193 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13195 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13197 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13198 if test "x$STMP_FIXPROTO" != x
; then
13199 STMP_FIXPROTO
=stmp-install-fixproto
13204 # Expand extra_headers to include complete path.
13205 # This substitutes for lots of t-* files.
13206 extra_headers_list
=
13207 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13208 for file in ${extra_headers} ; do
13209 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13212 # Define collect2 in Makefile.
13213 case $host_can_use_collect2 in
13215 *) collect2
='collect2$(exeext)' ;;
13219 # Add a definition of USE_COLLECT2 if system wants one.
13220 case $use_collect2 in
13221 no
) use_collect2
= ;;
13224 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13225 xm_defines
="${xm_defines} USE_COLLECT2"
13226 case $host_can_use_collect2 in
13228 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13229 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13230 { (exit 1); exit 1; }; }
13236 # ---------------------------
13237 # Assembler & linker features
13238 # ---------------------------
13240 # Identify the assembler which will work hand-in-glove with the newly
13241 # built GCC, so that we can examine its features. This is the assembler
13242 # which will be driven by the driver program.
13244 # If build != host, and we aren't building gas in-tree, we identify a
13245 # build->target assembler and hope that it will have the same features
13246 # as the host->target assembler we'll be using.
13247 gcc_cv_gas_major_version
=
13248 gcc_cv_gas_minor_version
=
13249 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13251 if test "${gcc_cv_as+set}" = set; then
13255 if test -x "$DEFAULT_ASSEMBLER"; then
13256 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13257 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13258 && test -f ..
/gas
/Makefile \
13259 && test x
$build = x
$host; then
13260 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13261 elif test -x as
$build_exeext; then
13262 # Build using assembler in the current directory.
13263 gcc_cv_as
=.
/as
$build_exeext
13264 elif test -x $AS_FOR_TARGET; then
13265 gcc_cv_as
="$AS_FOR_TARGET"
13267 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13268 set dummy
$AS_FOR_TARGET; ac_word
=$2
13269 echo "$as_me:$LINENO: checking for $ac_word" >&5
13270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13271 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13276 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13279 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13280 for as_dir
in $PATH
13283 test -z "$as_dir" && as_dir
=.
13284 for ac_exec_ext
in '' $ac_executable_extensions; do
13285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13286 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13296 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13298 if test -n "$gcc_cv_as"; then
13299 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13300 echo "${ECHO_T}$gcc_cv_as" >&6
13302 echo "$as_me:$LINENO: result: no" >&5
13303 echo "${ECHO_T}no" >&6
13310 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13313 echo "$as_me:$LINENO: checking what assembler to use" >&5
13314 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13315 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13316 # Single tree build which includes gas. We want to prefer it
13317 # over whatever linker top-level may have detected, since
13318 # we'll use what we're building after installation anyway.
13319 echo "$as_me:$LINENO: result: newly built gas" >&5
13320 echo "${ECHO_T}newly built gas" >&6
13322 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13323 for f
in $gcc_cv_as_bfd_srcdir/configure \
13324 $gcc_cv_as_gas_srcdir/configure \
13325 $gcc_cv_as_gas_srcdir/configure.
in \
13326 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13327 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13328 if test x
$gcc_cv_gas_version != x
; then
13332 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13333 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13334 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13335 case $gcc_cv_gas_patch_version in
13336 "") gcc_cv_gas_patch_version
="0" ;;
13338 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13339 + $gcc_cv_gas_minor_version \) \* 1000 \
13340 + $gcc_cv_gas_patch_version`
13342 in_tree_gas_is_elf
=no
13343 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13344 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13345 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13347 in_tree_gas_is_elf
=yes
13350 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13351 echo "${ECHO_T}$gcc_cv_as" >&6
13355 # Identify the linker which will work hand-in-glove with the newly
13356 # built GCC, so that we can examine its features. This is the linker
13357 # which will be driven by the driver program.
13359 # If build != host, and we aren't building gas in-tree, we identify a
13360 # build->target linker and hope that it will have the same features
13361 # as the host->target linker we'll be using.
13362 gcc_cv_gld_major_version
=
13363 gcc_cv_gld_minor_version
=
13364 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13365 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13367 if test "${gcc_cv_ld+set}" = set; then
13371 if test -x "$DEFAULT_LINKER"; then
13372 gcc_cv_ld
="$DEFAULT_LINKER"
13373 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13374 && test -f ..
/ld
/Makefile \
13375 && test x
$build = x
$host; then
13376 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13377 elif test -x collect-ld
$build_exeext; then
13378 # Build using linker in the current directory.
13379 gcc_cv_ld
=.
/collect-ld
$build_exeext
13380 elif test -x $LD_FOR_TARGET; then
13381 gcc_cv_ld
="$LD_FOR_TARGET"
13383 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13384 set dummy
$LD_FOR_TARGET; ac_word
=$2
13385 echo "$as_me:$LINENO: checking for $ac_word" >&5
13386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13387 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13396 for as_dir
in $PATH
13399 test -z "$as_dir" && as_dir
=.
13400 for ac_exec_ext
in '' $ac_executable_extensions; do
13401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13402 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13412 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13414 if test -n "$gcc_cv_ld"; then
13415 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13416 echo "${ECHO_T}$gcc_cv_ld" >&6
13418 echo "$as_me:$LINENO: result: no" >&5
13419 echo "${ECHO_T}no" >&6
13426 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13429 echo "$as_me:$LINENO: checking what linker to use" >&5
13430 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13431 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13432 # Single tree build which includes ld. We want to prefer it
13433 # over whatever linker top-level may have detected, since
13434 # we'll use what we're building after installation anyway.
13435 echo "$as_me:$LINENO: result: newly built ld" >&5
13436 echo "${ECHO_T}newly built ld" >&6
13438 in_tree_ld_is_elf
=no
13439 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13440 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13441 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13442 in_tree_ld_is_elf
=yes
13444 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
13446 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13447 if test x
$gcc_cv_gld_version != x
; then
13451 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13452 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13454 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13455 echo "${ECHO_T}$gcc_cv_ld" >&6
13459 # Figure out what nm we will be using.
13460 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13461 if test "${gcc_cv_nm+set}" = set; then
13465 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13466 && test -f ..
/binutils
/Makefile \
13467 && test x
$build = x
$host; then
13468 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13469 elif test -x nm
$build_exeext; then
13470 gcc_cv_nm
=.
/nm
$build_exeext
13471 elif test -x $NM_FOR_TARGET; then
13472 gcc_cv_nm
="$NM_FOR_TARGET"
13474 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13475 set dummy
$NM_FOR_TARGET; ac_word
=$2
13476 echo "$as_me:$LINENO: checking for $ac_word" >&5
13477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13478 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13487 for as_dir
in $PATH
13490 test -z "$as_dir" && as_dir
=.
13491 for ac_exec_ext
in '' $ac_executable_extensions; do
13492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13503 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13505 if test -n "$gcc_cv_nm"; then
13506 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13507 echo "${ECHO_T}$gcc_cv_nm" >&6
13509 echo "$as_me:$LINENO: result: no" >&5
13510 echo "${ECHO_T}no" >&6
13517 echo "$as_me:$LINENO: checking what nm to use" >&5
13518 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13519 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13520 # Single tree build which includes binutils.
13521 echo "$as_me:$LINENO: result: newly built nm" >&5
13522 echo "${ECHO_T}newly built nm" >&6
13525 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13526 echo "${ECHO_T}$gcc_cv_nm" >&6
13530 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13533 # Figure out what objdump we will be using.
13534 if test "${gcc_cv_objdump+set}" = set; then
13538 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13539 && test -f ..
/binutils
/Makefile \
13540 && test x
$build = x
$host; then
13541 # Single tree build which includes binutils.
13542 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13543 elif test -x objdump
$build_exeext; then
13544 gcc_cv_objdump
=.
/objdump
$build_exeext
13545 elif test -x $OBJDUMP_FOR_TARGET; then
13546 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13548 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13549 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13550 echo "$as_me:$LINENO: checking for $ac_word" >&5
13551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13552 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 case $gcc_cv_objdump in
13557 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13561 for as_dir
in $PATH
13564 test -z "$as_dir" && as_dir
=.
13565 for ac_exec_ext
in '' $ac_executable_extensions; do
13566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13567 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13579 if test -n "$gcc_cv_objdump"; then
13580 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13581 echo "${ECHO_T}$gcc_cv_objdump" >&6
13583 echo "$as_me:$LINENO: result: no" >&5
13584 echo "${ECHO_T}no" >&6
13591 echo "$as_me:$LINENO: checking what objdump to use" >&5
13592 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13593 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13594 # Single tree build which includes binutils.
13595 echo "$as_me:$LINENO: result: newly built objdump" >&5
13596 echo "${ECHO_T}newly built objdump" >&6
13597 elif test x
$gcc_cv_objdump = x
; then
13598 echo "$as_me:$LINENO: result: not found" >&5
13599 echo "${ECHO_T}not found" >&6
13601 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13602 echo "${ECHO_T}$gcc_cv_objdump" >&6
13605 # Figure out what assembler alignment features are present.
13606 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13607 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13608 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13611 gcc_cv_as_balign_and_p2align
=no
13612 if test $in_tree_gas = yes; then
13613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13614 then gcc_cv_as_balign_and_p2align
=yes
13616 elif test x
$gcc_cv_as != x
; then
13618 .p2align 2' > conftest.s
13619 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }
13626 gcc_cv_as_balign_and_p2align
=yes
13628 echo "configure: failed program was" >&5
13631 rm -f conftest.o conftest.s
13634 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13635 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13636 if test $gcc_cv_as_balign_and_p2align = yes; then
13638 cat >>confdefs.h
<<\_ACEOF
13639 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13644 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13645 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13646 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 gcc_cv_as_max_skip_p2align
=no
13650 if test $in_tree_gas = yes; then
13651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13652 then gcc_cv_as_max_skip_p2align
=yes
13654 elif test x
$gcc_cv_as != x
; then
13655 echo '.p2align 4,,7' > conftest.s
13656 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; }
13663 gcc_cv_as_max_skip_p2align
=yes
13665 echo "configure: failed program was" >&5
13668 rm -f conftest.o conftest.s
13671 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13672 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13673 if test $gcc_cv_as_max_skip_p2align = yes; then
13675 cat >>confdefs.h
<<\_ACEOF
13676 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13681 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13682 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13683 if test "${gcc_cv_as_literal16+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 gcc_cv_as_literal16
=no
13687 if test $in_tree_gas = yes; then
13688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13689 then gcc_cv_as_literal16
=yes
13691 elif test x
$gcc_cv_as != x
; then
13692 echo '.literal16' > conftest.s
13693 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }
13700 gcc_cv_as_literal16
=yes
13702 echo "configure: failed program was" >&5
13705 rm -f conftest.o conftest.s
13708 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13709 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13710 if test $gcc_cv_as_literal16 = yes; then
13712 cat >>confdefs.h
<<\_ACEOF
13713 #define HAVE_GAS_LITERAL16 1
13718 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13719 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13720 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 gcc_cv_as_subsection_m1
=no
13724 if test $in_tree_gas = yes; then
13725 if test $in_tree_gas_is_elf = yes \
13726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13727 then gcc_cv_as_subsection_m1
=yes
13729 elif test x
$gcc_cv_as != x
; then
13730 echo 'conftest_label1: .word 0
13732 conftest_label2: .word 0
13733 .previous' > conftest.s
13734 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13736 (eval $ac_try) 2>&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); }; }
13741 if test x
$gcc_cv_nm != x
; then
13742 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13743 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13744 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13746 else gcc_cv_as_subsection_m1
=yes
13748 rm -f conftest.nm1 conftest.nm2
13751 echo "configure: failed program was" >&5
13754 rm -f conftest.o conftest.s
13757 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13758 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13759 if test $gcc_cv_as_subsection_m1 = yes; then
13761 cat >>confdefs.h
<<\_ACEOF
13762 #define HAVE_GAS_SUBSECTION_ORDERING 1
13767 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13768 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13769 if test "${gcc_cv_as_weak+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 if test $in_tree_gas = yes; then
13774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13775 then gcc_cv_as_weak
=yes
13777 elif test x
$gcc_cv_as != x
; then
13778 echo ' .weak foobar' > conftest.s
13779 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781 (eval $ac_try) 2>&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }
13788 echo "configure: failed program was" >&5
13791 rm -f conftest.o conftest.s
13794 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13795 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13796 if test $gcc_cv_as_weak = yes; then
13798 cat >>confdefs.h
<<\_ACEOF
13799 #define HAVE_GAS_WEAK 1
13804 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13805 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13806 if test "${gcc_cv_as_weakref+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13809 gcc_cv_as_weakref
=no
13810 if test $in_tree_gas = yes; then
13811 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13812 then gcc_cv_as_weakref
=yes
13814 elif test x
$gcc_cv_as != x
; then
13815 echo ' .weakref foobar, barfnot' > conftest.s
13816 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818 (eval $ac_try) 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }
13823 gcc_cv_as_weakref
=yes
13825 echo "configure: failed program was" >&5
13828 rm -f conftest.o conftest.s
13831 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13832 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13833 if test $gcc_cv_as_weakref = yes; then
13835 cat >>confdefs.h
<<\_ACEOF
13836 #define HAVE_GAS_WEAKREF 1
13841 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13842 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13843 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 gcc_cv_as_nsubspa_comdat
=no
13847 if test $in_tree_gas = yes; then
13848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13849 then gcc_cv_as_nsubspa_comdat
=yes
13851 elif test x
$gcc_cv_as != x
; then
13852 echo ' .SPACE $TEXT$
13853 .NSUBSPA $CODE$,COMDAT' > conftest.s
13854 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }
13861 gcc_cv_as_nsubspa_comdat
=yes
13863 echo "configure: failed program was" >&5
13866 rm -f conftest.o conftest.s
13869 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13870 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13871 if test $gcc_cv_as_nsubspa_comdat = yes; then
13873 cat >>confdefs.h
<<\_ACEOF
13874 #define HAVE_GAS_NSUBSPA_COMDAT 1
13879 # .hidden needs to be supported in both the assembler and the linker,
13880 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13881 # This is irritatingly difficult to feature test for; we have to check the
13882 # date string after the version number. If we've got an in-tree
13883 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13885 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13886 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13887 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13888 if test "${gcc_cv_as_hidden+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 gcc_cv_as_hidden
=no
13892 if test $in_tree_gas = yes; then
13893 if test $in_tree_gas_is_elf = yes \
13894 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13895 then gcc_cv_as_hidden
=yes
13897 elif test x
$gcc_cv_as != x
; then
13898 echo ' .hidden foobar
13899 foobar:' > conftest.s
13900 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }
13907 gcc_cv_as_hidden
=yes
13909 echo "configure: failed program was" >&5
13912 rm -f conftest.o conftest.s
13915 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13916 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13919 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13920 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13921 if test "${gcc_cv_ld_hidden+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 if test $in_tree_ld = yes ; then
13925 gcc_cv_ld_hidden
=no
13926 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 \
13927 && test $in_tree_ld_is_elf = yes; then
13928 gcc_cv_ld_hidden
=yes
13931 gcc_cv_ld_hidden
=yes
13932 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13933 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13934 ld_vers
=`echo $ld_ver | sed -n \
13935 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13936 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13937 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13938 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13939 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13940 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13941 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13942 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'`
13943 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13944 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13945 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13946 if test 0"$ld_date" -lt 20020404; then
13947 if test -n "$ld_date"; then
13948 # If there was date string, but was earlier than 2002-04-04, fail
13949 gcc_cv_ld_hidden
=no
13950 elif test -z "$ld_vers"; then
13951 # If there was no date string nor ld version number, something is wrong
13952 gcc_cv_ld_hidden
=no
13954 test -z "$ld_vers_patch" && ld_vers_patch
=0
13955 if test "$ld_vers_major" -lt 2; then
13956 gcc_cv_ld_hidden
=no
13957 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13958 gcc_cv_ld_hidden
="no"
13959 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13960 gcc_cv_ld_hidden
=no
13965 case "${target}" in
13966 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13967 gcc_cv_ld_hidden
=yes
13970 gcc_cv_ld_hidden
=no
13976 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13977 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13978 libgcc_visibility
=no
13981 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13982 libgcc_visibility
=yes
13984 cat >>confdefs.h
<<\_ACEOF
13985 #define HAVE_GAS_HIDDEN 1
13990 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13991 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13992 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13993 if test "${gcc_cv_as_leb128+set}" = set; then
13994 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 gcc_cv_as_leb128
=no
13997 if test $in_tree_gas = yes; then
13998 if test $in_tree_gas_is_elf = yes \
13999 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14000 then gcc_cv_as_leb128
=yes
14002 elif test x
$gcc_cv_as != x
; then
14009 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }
14016 # GAS versions before 2.11 do not support uleb128,
14017 # despite appearing to.
14018 # ??? There exists an elf-specific test that will crash
14019 # the assembler. Perhaps it's better to figure out whether
14020 # arbitrary sections are supported and try the test.
14021 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14022 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14023 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14024 as_major
=`echo $as_ver | sed 's/\..*//'`
14025 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14026 if test $as_major -eq 2 && test $as_minor -lt 11
14028 else gcc_cv_as_leb128
=yes
14032 echo "configure: failed program was" >&5
14035 rm -f conftest.o conftest.s
14038 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14039 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14040 if test $gcc_cv_as_leb128 = yes; then
14042 cat >>confdefs.h
<<\_ACEOF
14043 #define HAVE_AS_LEB128 1
14048 # GAS versions up to and including 2.11.0 may mis-optimize
14050 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14051 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14052 if test "${gcc_cv_as_eh_frame+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 gcc_cv_as_eh_frame
=no
14056 if test $in_tree_gas = yes; then
14057 if test $in_tree_gas_is_elf = yes \
14058 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14059 then gcc_cv_as_eh_frame
=yes
14061 elif test x
$gcc_cv_as != x
; then
14068 .section .eh_frame,"aw",@progbits
14070 .4byte .LECIE1-.LSCIE1
14084 .4byte .LEFDE1-.LASFDE1
14086 .4byte .LASFDE1-__FRAME_BEGIN__
14093 .LEFDE1:' > conftest.s
14094 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }
14101 cat > conftest.lit
<<EOF
14102 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14103 0010 01000000 12000000 18000000 00000000 ................
14104 0020 08000000 04080000 0044 .........D
14106 cat > conftest.big
<<EOF
14107 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14108 0010 00000001 00000012 00000018 00000000 ................
14109 0020 00000008 04000000 0844 .........D
14111 # If the assembler didn't choke, and we can objdump,
14112 # and we got the correct data, then succeed.
14113 # The text in the here-document typically retains its unix-style line
14114 # endings, while the output of objdump will use host line endings.
14115 # Therefore, use diff -b for the comparisons.
14116 if test x
$gcc_cv_objdump != x \
14117 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14118 |
tail -3 > conftest.got \
14119 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14120 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14122 gcc_cv_as_eh_frame
=yes
14123 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 gcc_cv_as_eh_frame
=buggy
14131 # Uh oh, what do we do now?
14132 gcc_cv_as_eh_frame
=no
14135 echo "configure: failed program was" >&5
14138 rm -f conftest.o conftest.s
14141 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14142 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14145 if test $gcc_cv_as_eh_frame = buggy
; then
14147 cat >>confdefs.h
<<\_ACEOF
14148 #define USE_AS_TRADITIONAL_FORMAT 1
14153 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14154 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14155 if test "${gcc_cv_as_shf_merge+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 gcc_cv_as_shf_merge
=no
14159 if test $in_tree_gas = yes; then
14160 if test $in_tree_gas_is_elf = yes \
14161 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14162 then gcc_cv_as_shf_merge
=yes
14164 elif test x
$gcc_cv_as != x
; then
14165 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14166 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }
14173 gcc_cv_as_shf_merge
=yes
14175 echo "configure: failed program was" >&5
14178 rm -f conftest.o conftest.s
14181 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14182 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14184 if test $gcc_cv_as_shf_merge = no
; then
14185 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14186 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14187 if test "${gcc_cv_as_shf_merge+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 gcc_cv_as_shf_merge
=no
14191 if test $in_tree_gas = yes; then
14192 if test $in_tree_gas_is_elf = yes \
14193 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14194 then gcc_cv_as_shf_merge
=yes
14196 elif test x
$gcc_cv_as != x
; then
14197 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14198 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }
14205 gcc_cv_as_shf_merge
=yes
14207 echo "configure: failed program was" >&5
14210 rm -f conftest.o conftest.s
14213 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14214 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14218 cat >>confdefs.h
<<_ACEOF
14219 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14223 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14224 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14225 if test "${gcc_cv_as_comdat_group+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 gcc_cv_as_comdat_group
=no
14229 if test $in_tree_gas = yes; then
14230 if test $in_tree_gas_is_elf = yes \
14231 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14232 then gcc_cv_as_comdat_group
=yes
14234 elif test x
$gcc_cv_as != x
; then
14235 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14236 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238 (eval $ac_try) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }; }
14243 gcc_cv_as_comdat_group
=yes
14245 echo "configure: failed program was" >&5
14248 rm -f conftest.o conftest.s
14251 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14252 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14254 if test $gcc_cv_as_comdat_group = yes; then
14255 gcc_cv_as_comdat_group_percent
=no
14257 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14258 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14259 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 gcc_cv_as_comdat_group_percent
=no
14263 if test $in_tree_gas = yes; then
14264 if test $in_tree_gas_is_elf = yes \
14265 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14266 then gcc_cv_as_comdat_group_percent
=yes
14268 elif test x
$gcc_cv_as != x
; then
14269 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14270 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }
14277 gcc_cv_as_comdat_group_percent
=yes
14279 echo "configure: failed program was" >&5
14282 rm -f conftest.o conftest.s
14285 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14286 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14289 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14291 if test 0"$ld_date" -lt 20050308; then
14292 if test -n "$ld_date"; then
14293 # If there was date string, but was earlier than 2005-03-08, fail
14295 elif test "$ld_vers_major" -lt 2; then
14297 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14302 # assume linkers other than GNU ld don't support COMDAT group
14305 if test $comdat_group = no
; then
14306 gcc_cv_as_comdat_group
=no
14307 gcc_cv_as_comdat_group_percent
=no
14310 cat >>confdefs.h
<<_ACEOF
14311 #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`
14315 # Thread-local storage - the check is heavily parametrized.
14323 .section ".tdata","awT",@progbits
14326 ldq $27,__tls_get_addr($29) !literal!1
14327 lda $16,foo($29) !tlsgd!1
14328 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14329 ldq $27,__tls_get_addr($29) !literal!2
14330 lda $16,foo($29) !tlsldm!2
14331 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14332 ldq $1,foo($29) !gotdtprel
14333 ldah $2,foo($29) !dtprelhi
14334 lda $3,foo($2) !dtprello
14335 lda $4,foo($29) !dtprel
14336 ldq $1,foo($29) !gottprel
14337 ldah $2,foo($29) !tprelhi
14338 lda $3,foo($2) !tprello
14339 lda $4,foo($29) !tprel'
14342 tls_as_opt
=--fatal-warnings
14346 .section ".tdata","awT",@progbits
14349 call #gettlsoff(x)'
14358 .section ".tdata","awT",@progbits
14362 addil LT%foo-$tls_gdidx$,gp
14363 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14366 addil LT%foo-$tls_ldidx$,gp
14368 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14369 addil LR%foo-$tls_dtpoff$,%ret0
14370 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14372 addil LT%foo-$tls_ieoff$,gp
14373 ldw RT%foo-$tls_ieoff$(%r1),%t2
14376 addil LR%foo-$tls_leoff$,%t1
14377 ldo RR%foo-$tls_leoff$(%r1),%t2'
14380 tls_as_opt
=--fatal-warnings
14384 .section ".tdata","awT",%progbits
14387 .word foo(gottpoff)
14397 .section ".tdata","awT",@progbits
14401 leal foo@TLSGD(,%ebx,1), %eax
14402 leal foo@TLSLDM(%ebx), %eax
14403 leal foo@DTPOFF(%eax), %edx
14404 movl foo@GOTTPOFF(%ebx), %eax
14405 subl foo@GOTTPOFF(%ebx), %eax
14406 addl foo@GOTNTPOFF(%ebx), %eax
14407 movl foo@INDNTPOFF, %eax
14408 movl $foo@TPOFF, %eax
14409 subl $foo@TPOFF, %eax
14410 leal foo@NTPOFF(%ecx), %eax'
14413 tls_as_opt
=--fatal-warnings
14417 .section ".tdata","awT",@progbits
14421 leaq foo@TLSGD(%rip), %rdi
14422 leaq foo@TLSLD(%rip), %rdi
14423 leaq foo@DTPOFF(%rax), %rdx
14424 movq foo@GOTTPOFF(%rip), %rax
14425 movq $foo@TPOFF, %rax'
14428 tls_as_opt
=--fatal-warnings
14432 .section ".tdata","awT",@progbits
14435 addl r16 = @ltoff(@dtpmod(foo#)), gp
14436 addl r17 = @ltoff(@dtprel(foo#)), gp
14437 addl r18 = @ltoff(@tprel(foo#)), gp
14438 addl r19 = @dtprel(foo#), gp
14439 adds r21 = @dtprel(foo#), r13
14440 movl r23 = @dtprel(foo#)
14441 addl r20 = @tprel(foo#), gp
14442 adds r22 = @tprel(foo#), r13
14443 movl r24 = @tprel(foo#)'
14446 tls_as_opt
=--fatal-warnings
14450 .section .tdata,"awT",@progbits
14454 addiu $4, $28, %tlsgd(x)
14455 addiu $4, $28, %tlsldm(x)
14456 lui $4, %dtprel_hi(x)
14457 addiu $4, $4, %dtprel_lo(x)
14458 lw $4, %gottprel(x)($28)
14459 lui $4, %tprel_hi(x)
14460 addiu $4, $4, %tprel_lo(x)'
14463 tls_as_opt
='-32 --fatal-warnings'
14467 .section ".tdata","awT",@progbits
14475 addi 3,31,ld0@got@tlsgd
14477 addi 3,31,x1@got@tlsld
14480 addis 9,3,x2@dtprel@ha
14481 addi 9,9,x2@dtprel@l
14482 lwz 9,x3@got@tprel(31)
14485 addis 9,2,x2@tprel@ha
14486 addi 9,9,x2@tprel@l'
14489 tls_as_opt
="-a32 --fatal-warnings"
14493 .section ".tdata","awT",@progbits
14501 addi 3,2,ld0@got@tlsgd
14507 addi 3,2,x1@got@tlsld
14513 addis 9,3,x2@dtprel@ha
14514 addi 9,9,x2@dtprel@l
14517 ld 9,x3@got@dtprel(2)
14523 tls_as_opt
="-a64 --fatal-warnings"
14527 .section ".tdata","awT",@progbits
14534 .long foo@GOTNTPOFF
14535 .long foo@INDNTPOFF
14536 l %r1,foo@GOTNTPOFF(%r12)
14537 l %r1,0(%r1):tls_load:foo
14538 bas %r14,0(%r1,%r13):tls_gdcall:foo
14539 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14542 tls_as_opt
="-m31 --fatal-warnings"
14546 .section ".tdata","awT",@progbits
14553 .quad foo@GOTNTPOFF
14554 lg %r1,foo@GOTNTPOFF(%r12)
14555 larl %r1,foo@INDNTPOFF
14556 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14557 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14560 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14562 sh-
*-* | sh
[34]-*-*)
14564 .section ".tdata","awT",@progbits
14574 tls_as_opt
=--fatal-warnings
14578 sparc
*-sun-solaris2.
[56789]*)
14579 # TLS was introduced in the Solaris 9 4/04 release but
14580 # we do not enable it by default on Solaris 9 either.
14581 if test "x$enable_tls" = xyes
; then
14587 sparc
*-sun-solaris2.
*)
14594 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14596 .section ".tdata",#alloc,#write,#tls
14599 sethi %tgd_hi22(foo), %o0
14600 add %o0, %tgd_lo10(foo), %o1
14601 add %l7, %o1, %o0, %tgd_add(foo)
14602 call __tls_get_addr, %tgd_call(foo)
14603 sethi %tldm_hi22(foo), %l1
14604 add %l1, %tldm_lo10(foo), %l2
14605 add %l7, %l2, %o0, %tldm_add(foo)
14606 call __tls_get_addr, %tldm_call(foo)
14607 sethi %tldo_hix22(foo), %l3
14608 xor %l3, %tldo_lox10(foo), %l4
14609 add %o0, %l4, %l5, %tldo_add(foo)
14610 sethi %tie_hi22(foo), %o3
14611 add %o3, %tie_lo10(foo), %o3
14612 ld [%l7 + %o3], %o2, %tie_ld(foo)
14613 add %g7, %o2, %o4, %tie_add(foo)
14614 sethi %tle_hix22(foo), %l1
14615 xor %l1, %tle_lox10(foo), %o5
14616 ld [%g7 + %o5], %o1'
14621 .section ".tdata","awT",@progbits
14624 sethi %tgd_hi22(foo), %o0
14625 add %o0, %tgd_lo10(foo), %o1
14626 add %l7, %o1, %o0, %tgd_add(foo)
14627 call __tls_get_addr, %tgd_call(foo)
14628 sethi %tldm_hi22(foo), %l1
14629 add %l1, %tldm_lo10(foo), %l2
14630 add %l7, %l2, %o0, %tldm_add(foo)
14631 call __tls_get_addr, %tldm_call(foo)
14632 sethi %tldo_hix22(foo), %l3
14633 xor %l3, %tldo_lox10(foo), %l4
14634 add %o0, %l4, %l5, %tldo_add(foo)
14635 sethi %tie_hi22(foo), %o3
14636 add %o3, %tie_lo10(foo), %o3
14637 ld [%l7 + %o3], %o2, %tie_ld(foo)
14638 add %g7, %o2, %o4, %tie_add(foo)
14639 sethi %tle_hix22(foo), %l1
14640 xor %l1, %tle_lox10(foo), %o5
14641 ld [%g7 + %o5], %o1'
14644 tls_as_opt
="-32 --fatal-warnings"
14649 if test "x$enable_tls" = xno
; then
14650 : # TLS explicitly disabled.
14651 elif test "x$enable_tls" = xyes
; then
14652 set_have_as_tls
=yes # TLS explicitly enabled.
14653 elif test -z "$tls_first_major"; then
14654 : # If we don't have a check, assume no support.
14656 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14657 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14658 if test "${gcc_cv_as_tls+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 if test $in_tree_gas = yes; then
14663 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14664 then gcc_cv_as_tls
=yes
14666 elif test x
$gcc_cv_as != x
; then
14667 echo "$conftest_s" > conftest.s
14668 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }
14677 echo "configure: failed program was" >&5
14680 rm -f conftest.o conftest.s
14683 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14684 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14685 if test $gcc_cv_as_tls = yes; then
14686 set_have_as_tls
=yes
14689 if test $set_have_as_tls = yes ; then
14691 cat >>confdefs.h
<<\_ACEOF
14692 #define HAVE_AS_TLS 1
14697 # Target-specific assembler checks.
14699 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14700 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14701 gcc_cv_ld_static_dynamic
=no
14702 if test $in_tree_ld = yes ; then
14703 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14704 gcc_cv_ld_static_dynamic
=yes
14706 elif test x
$gcc_cv_ld != x
; then
14707 # Check if linker supports -Bstatic/-Bdynamic option
14708 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14709 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14710 gcc_cv_ld_static_dynamic
=yes
14713 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14715 cat >>confdefs.h
<<\_ACEOF
14716 #define HAVE_LD_STATIC_DYNAMIC 1
14720 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14721 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14723 if test x
"$demangler_in_ld" = xyes
; then
14724 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14725 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14726 gcc_cv_ld_demangle
=no
14727 if test $in_tree_ld = yes; then
14728 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 \
14729 gcc_cv_ld_demangle
=yes
14731 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14732 # Check if the GNU linker supports --demangle option
14733 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14734 gcc_cv_ld_demangle
=yes
14737 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14739 cat >>confdefs.h
<<\_ACEOF
14740 #define HAVE_LD_DEMANGLE 1
14744 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14745 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14749 # All TARGET_ABI_OSF targets.
14750 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14751 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14752 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14753 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 gcc_cv_as_alpha_explicit_relocs
=no
14757 if test $in_tree_gas = yes; then
14758 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14759 then gcc_cv_as_alpha_explicit_relocs
=yes
14761 elif test x
$gcc_cv_as != x
; then
14762 echo ' .set nomacro
14764 extbl $3, $2, $3 !lituse_bytoff!1
14765 ldq $2, a($29) !literal!1
14766 ldq $4, b($29) !literal!2
14767 ldq_u $3, 0($2) !lituse_base!1
14768 ldq $27, f($29) !literal!5
14769 jsr $26, ($27), f !lituse_jsr!5
14770 ldah $29, 0($26) !gpdisp!3
14771 lda $0, c($29) !gprel
14772 ldah $1, d($29) !gprelhigh
14773 lda $1, d($1) !gprellow
14774 lda $29, 0($29) !gpdisp!3' > conftest.s
14775 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; }
14782 gcc_cv_as_alpha_explicit_relocs
=yes
14784 echo "configure: failed program was" >&5
14787 rm -f conftest.o conftest.s
14790 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14791 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14792 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14794 cat >>confdefs.h
<<\_ACEOF
14795 #define HAVE_AS_EXPLICIT_RELOCS 1
14799 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14800 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14801 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 gcc_cv_as_alpha_jsrdirect_relocs
=no
14805 if test $in_tree_gas = yes; then
14806 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14807 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14809 elif test x
$gcc_cv_as != x
; then
14810 echo ' .set nomacro
14812 ldq $27, a($29) !literal!1
14813 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14814 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }
14821 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14823 echo "configure: failed program was" >&5
14826 rm -f conftest.o conftest.s
14829 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14830 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14831 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14833 cat >>confdefs.h
<<\_ACEOF
14834 #define HAVE_AS_JSRDIRECT_RELOCS 1
14841 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14842 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14843 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 gcc_cv_as_cris_no_mul_bug
=no
14847 if test $in_tree_gas = yes; then
14848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14849 then gcc_cv_as_cris_no_mul_bug
=yes
14851 elif test x
$gcc_cv_as != x
; then
14852 echo '.text' > conftest.s
14853 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }
14860 gcc_cv_as_cris_no_mul_bug
=yes
14862 echo "configure: failed program was" >&5
14865 rm -f conftest.o conftest.s
14868 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14869 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14870 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14872 cat >>confdefs.h
<<\_ACEOF
14873 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14880 echo "$as_me:$LINENO: checking assembler for .register" >&5
14881 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14882 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 gcc_cv_as_sparc_register_op
=no
14886 if test x
$gcc_cv_as != x
; then
14887 echo '.register %g2, #scratch' > conftest.s
14888 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }
14895 gcc_cv_as_sparc_register_op
=yes
14897 echo "configure: failed program was" >&5
14900 rm -f conftest.o conftest.s
14903 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14904 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14905 if test $gcc_cv_as_sparc_register_op = yes; then
14907 cat >>confdefs.h
<<\_ACEOF
14908 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14913 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14914 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14915 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 gcc_cv_as_sparc_relax
=no
14919 if test x
$gcc_cv_as != x
; then
14920 echo '.text' > conftest.s
14921 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }
14928 gcc_cv_as_sparc_relax
=yes
14930 echo "configure: failed program was" >&5
14933 rm -f conftest.o conftest.s
14936 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14937 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14938 if test $gcc_cv_as_sparc_relax = yes; then
14940 cat >>confdefs.h
<<\_ACEOF
14941 #define HAVE_AS_RELAX_OPTION 1
14946 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14947 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14948 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 gcc_cv_as_sparc_ua_pcrel
=no
14952 if test x
$gcc_cv_as != x
; then
14959 .uaword %r_disp32(foo)' > conftest.s
14960 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }
14967 if test x
$gcc_cv_ld != x \
14968 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14969 gcc_cv_as_sparc_ua_pcrel
=yes
14973 echo "configure: failed program was" >&5
14976 rm -f conftest.o conftest.s
14979 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14980 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14981 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14983 cat >>confdefs.h
<<\_ACEOF
14984 #define HAVE_AS_SPARC_UA_PCREL 1
14988 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14989 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14990 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 gcc_cv_as_sparc_ua_pcrel_hidden
=no
14994 if test x
$gcc_cv_as != x
; then
14998 .uaword %r_disp32(foo)
14999 .byte 0x32, 0x33, 0x34
15003 .skip 4' > conftest.s
15004 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }
15011 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15012 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15013 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15014 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15015 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15016 |
grep 'DISP32' > /dev
/null
2>&1; then
15019 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15024 echo "configure: failed program was" >&5
15027 rm -f conftest.o conftest.s
15030 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15031 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15032 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15034 cat >>confdefs.h
<<\_ACEOF
15035 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15040 fi # unaligned pcrel relocs
15042 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15043 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15044 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 gcc_cv_as_sparc_offsetable_lo10
=no
15048 if test x
$gcc_cv_as != x
; then
15050 or %g1, %lo(ab) + 12, %g1
15051 or %g1, %lo(ab + 12), %g1' > conftest.s
15052 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }
15059 if test x
$gcc_cv_objdump != x \
15060 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15061 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15062 gcc_cv_as_sparc_offsetable_lo10
=yes
15065 echo "configure: failed program was" >&5
15068 rm -f conftest.o conftest.s
15071 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15072 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15073 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15075 cat >>confdefs.h
<<\_ACEOF
15076 #define HAVE_AS_OFFSETABLE_LO10 1
15082 i
[34567]86-*-* | x86_64-
*-*)
15084 cygwin
* | pe | mingw32
*)
15085 # Used for DWARF 2 in PE
15086 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15087 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15088 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 gcc_cv_as_ix86_pe_secrel32
=no
15092 if test $in_tree_gas = yes; then
15093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15094 then gcc_cv_as_ix86_pe_secrel32
=yes
15096 elif test x
$gcc_cv_as != x
; then
15100 .secrel32 foo' > conftest.s
15101 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }
15108 if test x
$gcc_cv_ld != x \
15109 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15110 gcc_cv_as_ix86_pe_secrel32
=yes
15114 echo "configure: failed program was" >&5
15117 rm -f conftest.o conftest.s
15120 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15121 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15122 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15124 cat >>confdefs.h
<<\_ACEOF
15125 #define HAVE_GAS_PE_SECREL32_RELOC 1
15132 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15133 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15134 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15137 gcc_cv_as_ix86_filds_fists
=no
15138 if test $in_tree_gas = yes; then
15139 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15140 then gcc_cv_as_ix86_filds_fists
=yes
15142 elif test x
$gcc_cv_as != x
; then
15143 echo 'filds mem; fists mem' > conftest.s
15144 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }
15151 gcc_cv_as_ix86_filds_fists
=yes
15153 echo "configure: failed program was" >&5
15156 rm -f conftest.o conftest.s
15159 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15160 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15161 if test $gcc_cv_as_ix86_filds_fists = yes; then
15163 cat >>confdefs.h
<<\_ACEOF
15164 #define HAVE_GAS_FILDS_FISTS 1
15169 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15170 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15171 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15174 gcc_cv_as_ix86_cmov_sun_syntax
=no
15175 if test x
$gcc_cv_as != x
; then
15176 echo 'cmovl.l %edx, %eax' > conftest.s
15177 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }
15184 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15186 echo "configure: failed program was" >&5
15189 rm -f conftest.o conftest.s
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15193 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15194 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15196 cat >>confdefs.h
<<\_ACEOF
15197 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15202 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15203 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15204 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 gcc_cv_as_ix86_ffreep
=no
15208 if test x
$gcc_cv_as != x
; then
15209 echo 'ffreep %st(1)' > conftest.s
15210 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }
15217 gcc_cv_as_ix86_ffreep
=yes
15219 echo "configure: failed program was" >&5
15222 rm -f conftest.o conftest.s
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15226 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15227 if test $gcc_cv_as_ix86_ffreep = yes; then
15229 cat >>confdefs.h
<<\_ACEOF
15230 #define HAVE_AS_IX86_FFREEP 1
15235 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15236 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15237 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 gcc_cv_as_ix86_diff_sect_delta
=no
15241 if test x
$gcc_cv_as != x
; then
15242 echo '.section .rodata
15248 .L2: nop' > conftest.s
15249 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }
15256 gcc_cv_as_ix86_diff_sect_delta
=yes
15258 echo "configure: failed program was" >&5
15261 rm -f conftest.o conftest.s
15264 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15265 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15266 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15268 cat >>confdefs.h
<<\_ACEOF
15269 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15274 # This one is used unconditionally by i386.[ch]; it is to be defined
15275 # to 1 if the feature is present, 0 otherwise.
15276 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15277 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15278 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 gcc_cv_as_ix86_gotoff_in_data
=no
15282 if test $in_tree_gas = yes; then
15283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15284 then gcc_cv_as_ix86_gotoff_in_data
=yes
15286 elif test x
$gcc_cv_as != x
; then
15291 .long .L0@GOTOFF' > conftest.s
15292 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; }
15299 gcc_cv_as_ix86_gotoff_in_data
=yes
15301 echo "configure: failed program was" >&5
15304 rm -f conftest.o conftest.s
15307 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15308 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15311 cat >>confdefs.h
<<_ACEOF
15312 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15318 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15319 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15320 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15321 echo $ECHO_N "(cached) $ECHO_C" >&6
15323 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15324 if test $in_tree_gas = yes; then
15325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15326 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15328 elif test x
$gcc_cv_as != x
; then
15330 addl r15 = @ltoffx(x#), gp
15332 ld8.mov r16 = [r15], x#' > conftest.s
15333 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15335 (eval $ac_try) 2>&5
15337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338 (exit $ac_status); }; }
15340 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15342 echo "configure: failed program was" >&5
15345 rm -f conftest.o conftest.s
15348 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15349 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15350 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15352 cat >>confdefs.h
<<\_ACEOF
15353 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15362 *-*-aix*) conftest_s
=' .machine "pwr5"
15366 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15367 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15368 if test "${gcc_cv_as_machine_directive+set}" = set; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15371 gcc_cv_as_machine_directive
=no
15372 if test x
$gcc_cv_as != x
; then
15373 echo ' .machine ppc7400' > conftest.s
15374 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }
15381 gcc_cv_as_machine_directive
=yes
15383 echo "configure: failed program was" >&5
15386 rm -f conftest.o conftest.s
15389 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15390 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15392 if test x
$gcc_cv_as_machine_directive != xyes
; then
15393 echo "*** This target requires an assembler supporting \".machine\"" >&2
15394 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15395 test x
$build = x
$target && exit 1
15399 *) conftest_s
=' .machine power4
15404 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15405 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15406 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 gcc_cv_as_powerpc_mfcrf
=no
15410 if test $in_tree_gas = yes; then
15411 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15412 then gcc_cv_as_powerpc_mfcrf
=yes
15414 elif test x
$gcc_cv_as != x
; then
15415 echo "$conftest_s" > conftest.s
15416 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }
15423 gcc_cv_as_powerpc_mfcrf
=yes
15425 echo "configure: failed program was" >&5
15428 rm -f conftest.o conftest.s
15431 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15432 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15433 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15435 cat >>confdefs.h
<<\_ACEOF
15436 #define HAVE_AS_MFCRF 1
15442 *-*-aix*) conftest_s
=' .machine "pwr5"
15445 *) conftest_s
=' .machine power5
15450 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15451 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15452 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 gcc_cv_as_powerpc_popcntb
=no
15456 if test $in_tree_gas = yes; then
15457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15458 then gcc_cv_as_powerpc_popcntb
=yes
15460 elif test x
$gcc_cv_as != x
; then
15461 echo "$conftest_s" > conftest.s
15462 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; }
15469 gcc_cv_as_powerpc_popcntb
=yes
15471 echo "configure: failed program was" >&5
15474 rm -f conftest.o conftest.s
15477 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15478 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15479 if test $gcc_cv_as_powerpc_popcntb = yes; then
15481 cat >>confdefs.h
<<\_ACEOF
15482 #define HAVE_AS_POPCNTB 1
15488 *-*-aix*) conftest_s
=' .machine "pwr5x"
15491 *) conftest_s
=' .machine power5
15496 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15497 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15498 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 gcc_cv_as_powerpc_fprnd
=no
15502 if test $in_tree_gas = yes; then
15503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15504 then gcc_cv_as_powerpc_fprnd
=yes
15506 elif test x
$gcc_cv_as != x
; then
15507 echo "$conftest_s" > conftest.s
15508 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510 (eval $ac_try) 2>&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); }; }
15515 gcc_cv_as_powerpc_fprnd
=yes
15517 echo "configure: failed program was" >&5
15520 rm -f conftest.o conftest.s
15523 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15524 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15525 if test $gcc_cv_as_powerpc_fprnd = yes; then
15527 cat >>confdefs.h
<<\_ACEOF
15528 #define HAVE_AS_FPRND 1
15534 *-*-aix*) conftest_s
=' .machine "pwr6"
15537 *) conftest_s
=' .machine power6
15542 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15543 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15544 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 gcc_cv_as_powerpc_mfpgpr
=no
15548 if test $in_tree_gas = yes; then
15549 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15550 then gcc_cv_as_powerpc_mfpgpr
=yes
15552 elif test x
$gcc_cv_as != x
; then
15553 echo "$conftest_s" > conftest.s
15554 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }
15561 gcc_cv_as_powerpc_mfpgpr
=yes
15563 echo "configure: failed program was" >&5
15566 rm -f conftest.o conftest.s
15569 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15570 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15571 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15573 cat >>confdefs.h
<<\_ACEOF
15574 #define HAVE_AS_MFPGPR 1
15580 *-*-aix*) conftest_s
=' .csect .text[PR]
15582 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15586 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15587 *) conftest_s
=' .text
15589 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15593 *-*-aix*) conftest_s
=' .machine "pwr6"
15596 *) conftest_s
=' .machine power6
15601 echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15602 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15603 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 gcc_cv_as_powerpc_cmpb
=no
15607 if test $in_tree_gas = yes; then
15608 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15609 then gcc_cv_as_powerpc_cmpb
=yes
15611 elif test x
$gcc_cv_as != x
; then
15612 echo "$conftest_s" > conftest.s
15613 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615 (eval $ac_try) 2>&5
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }
15620 gcc_cv_as_powerpc_cmpb
=yes
15622 echo "configure: failed program was" >&5
15625 rm -f conftest.o conftest.s
15628 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15629 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15630 if test $gcc_cv_as_powerpc_cmpb = yes; then
15632 cat >>confdefs.h
<<\_ACEOF
15633 #define HAVE_AS_CMPB 1
15639 *-*-aix*) conftest_s
=' .machine "pwr6"
15642 *) conftest_s
=' .machine power6
15647 echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15648 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15650 echo $ECHO_N "(cached) $ECHO_C" >&6
15652 gcc_cv_as_powerpc_dfp
=no
15653 if test $in_tree_gas = yes; then
15654 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15655 then gcc_cv_as_powerpc_dfp
=yes
15657 elif test x
$gcc_cv_as != x
; then
15658 echo "$conftest_s" > conftest.s
15659 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }
15666 gcc_cv_as_powerpc_dfp
=yes
15668 echo "configure: failed program was" >&5
15671 rm -f conftest.o conftest.s
15674 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15675 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15676 if test $gcc_cv_as_powerpc_dfp = yes; then
15678 cat >>confdefs.h
<<\_ACEOF
15679 #define HAVE_AS_DFP 1
15684 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15685 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15686 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15689 gcc_cv_as_powerpc_rel16
=no
15690 if test $in_tree_gas = yes; then
15691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15692 then gcc_cv_as_powerpc_rel16
=yes
15694 elif test x
$gcc_cv_as != x
; then
15695 echo "$conftest_s" > conftest.s
15696 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }
15703 gcc_cv_as_powerpc_rel16
=yes
15705 echo "configure: failed program was" >&5
15708 rm -f conftest.o conftest.s
15711 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15712 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15713 if test $gcc_cv_as_powerpc_rel16 = yes; then
15715 cat >>confdefs.h
<<\_ACEOF
15716 #define HAVE_AS_REL16 1
15723 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15724 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15725 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 gcc_cv_as_mips_explicit_relocs
=no
15729 if test $in_tree_gas = yes; then
15730 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15731 then gcc_cv_as_mips_explicit_relocs
=yes
15733 elif test x
$gcc_cv_as != x
; then
15734 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15735 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }
15742 gcc_cv_as_mips_explicit_relocs
=yes
15744 echo "configure: failed program was" >&5
15747 rm -f conftest.o conftest.s
15750 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15751 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15752 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15753 if test x
$target_cpu_default = x
15754 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15755 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15758 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15759 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15760 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15761 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 gcc_cv_as_mips_no_shared
=no
15764 if test $in_tree_gas = yes; then
15765 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15766 then gcc_cv_as_mips_no_shared
=yes
15768 elif test x
$gcc_cv_as != x
; then
15769 echo 'nop' > conftest.s
15770 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; }
15777 gcc_cv_as_mips_no_shared
=yes
15779 echo "configure: failed program was" >&5
15782 rm -f conftest.o conftest.s
15785 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15786 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15787 if test $gcc_cv_as_mips_no_shared = yes; then
15789 cat >>confdefs.h
<<\_ACEOF
15790 #define HAVE_AS_NO_SHARED 1
15797 # Mips and HP-UX need the GNU assembler.
15798 # Linux on IA64 might be able to use the Intel assembler.
15801 mips
*-*-* |
*-*-hpux* )
15802 if test x
$gas_flag = xyes \
15803 ||
test x
"$host" != x
"$build" \
15804 ||
test ! -x "$gcc_cv_as" \
15805 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15808 echo "*** This configuration requires the GNU assembler" >&2
15814 # ??? Not all targets support dwarf2 debug_line, even within a version
15815 # of gas. Moreover, we need to emit a valid instruction to trigger any
15816 # info to the output file. So, as supported targets are added to gas 2.11,
15817 # add some instruction here to (also) show we expect this might work.
15818 # ??? Once 2.11 is released, probably need to add first known working
15819 # version to the per-target configury.
15821 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15822 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15823 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
15826 ia64
*-*-* | s390
*-*-*)
15833 if test x
"$insn" != x
; then
15835 .file 1 \"conftest.s\"
15838 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15839 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15840 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 gcc_cv_as_dwarf2_debug_line
=no
15844 if test $in_tree_gas = yes; then
15845 if test $in_tree_gas_is_elf = yes \
15846 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15847 then gcc_cv_as_dwarf2_debug_line
=yes
15849 elif test x
$gcc_cv_as != x
; then
15850 echo "$conftest_s" > conftest.s
15851 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853 (eval $ac_try) 2>&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); }; }
15858 if test x
$gcc_cv_objdump != x \
15859 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15860 |
grep debug_line
> /dev
/null
2>&1; then
15861 gcc_cv_as_dwarf2_debug_line
=yes
15864 echo "configure: failed program was" >&5
15867 rm -f conftest.o conftest.s
15870 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15871 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15874 # The .debug_line file table must be in the exact order that
15875 # we specified the files, since these indices are also used
15876 # by DW_AT_decl_file. Approximate this test by testing if
15877 # the assembler bitches if the same index is assigned twice.
15878 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15879 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15880 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 gcc_cv_as_dwarf2_file_buggy
=no
15884 if test x
$gcc_cv_as != x
; then
15885 echo ' .file 1 "foo.s"
15886 .file 1 "bar.s"' > conftest.s
15887 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }
15894 gcc_cv_as_dwarf2_file_buggy
=yes
15896 echo "configure: failed program was" >&5
15899 rm -f conftest.o conftest.s
15902 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15903 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15906 if test $gcc_cv_as_dwarf2_debug_line = yes \
15907 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15909 cat >>confdefs.h
<<\_ACEOF
15910 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15915 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15916 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15917 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 gcc_cv_as_gdwarf2_flag
=no
15921 if test $in_tree_gas = yes; then
15922 if test $in_tree_gas_is_elf = yes \
15923 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15924 then gcc_cv_as_gdwarf2_flag
=yes
15926 elif test x
$gcc_cv_as != x
; then
15927 echo "$insn" > conftest.s
15928 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930 (eval $ac_try) 2>&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); }; }
15935 gcc_cv_as_gdwarf2_flag
=yes
15937 echo "configure: failed program was" >&5
15940 rm -f conftest.o conftest.s
15943 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15944 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15945 if test $gcc_cv_as_gdwarf2_flag = yes; then
15947 cat >>confdefs.h
<<\_ACEOF
15948 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15953 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15954 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15955 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 gcc_cv_as_gstabs_flag
=no
15959 if test $in_tree_gas = yes; then
15960 if test $in_tree_gas_is_elf = yes \
15961 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15962 then gcc_cv_as_gstabs_flag
=yes
15964 elif test x
$gcc_cv_as != x
; then
15965 echo "$insn" > conftest.s
15966 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }
15973 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15974 # and warns about it, but still exits successfully. So check for
15976 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }
15983 else gcc_cv_as_gstabs_flag
=yes
15986 echo "configure: failed program was" >&5
15989 rm -f conftest.o conftest.s
15992 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15993 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15994 if test $gcc_cv_as_gstabs_flag = yes; then
15996 cat >>confdefs.h
<<\_ACEOF
15997 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16003 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16004 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16005 gcc_cv_ld_ro_rw_mix
=unknown
16006 if test $in_tree_ld = yes ; then
16007 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 \
16008 && test $in_tree_ld_is_elf = yes; then
16009 gcc_cv_ld_ro_rw_mix
=read-write
16011 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16012 echo '.section myfoosect, "a"' > conftest1.s
16013 echo '.section myfoosect, "aw"' > conftest2.s
16014 echo '.byte 1' >> conftest2.s
16015 echo '.section myfoosect, "a"' > conftest3.s
16016 echo '.byte 0' >> conftest3.s
16017 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16018 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16019 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
16020 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16021 conftest2.o conftest3.o
> /dev
/null
2>&1; then
16022 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
16023 | sed -e '/myfoosect/!d' -e N`
16024 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
16025 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
16026 gcc_cv_ld_ro_rw_mix
=read-only
16028 gcc_cv_ld_ro_rw_mix
=read-write
16032 rm -f conftest.
* conftest
[123].
*
16034 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
16036 cat >>confdefs.h
<<\_ACEOF
16037 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16041 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16042 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16044 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16045 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16046 gcc_cv_ld_eh_frame_hdr
=no
16047 if test $in_tree_ld = yes ; then
16048 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 \
16049 && test $in_tree_ld_is_elf = yes; then
16050 gcc_cv_ld_eh_frame_hdr
=yes
16052 elif test x
$gcc_cv_ld != x
; then
16053 # Check if linker supports --eh-frame-hdr option
16054 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
16055 gcc_cv_ld_eh_frame_hdr
=yes
16059 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
16061 cat >>confdefs.h
<<\_ACEOF
16062 #define HAVE_LD_EH_FRAME_HDR 1
16066 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16067 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16069 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16070 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16072 if test $in_tree_ld = yes ; then
16073 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 \
16074 && test $in_tree_ld_is_elf = yes; then
16077 elif test x
$gcc_cv_ld != x
; then
16078 # Check if linker supports -pie option
16079 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16083 if test x
"$gcc_cv_ld_pie" = xyes
; then
16085 cat >>confdefs.h
<<\_ACEOF
16086 #define HAVE_LD_PIE 1
16090 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16091 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16093 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16094 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16095 gcc_cv_ld_eh_gc_sections
=no
16096 if test $in_tree_ld = yes ; then
16097 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16098 && test $in_tree_ld_is_elf = yes; then
16099 gcc_cv_ld_eh_gc_sections
=yes
16101 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
16102 cat > conftest.s
<<EOF
16105 .type _start, @function
16108 .size _start, .-_start
16109 .section .text.foo,"ax",@progbits
16110 .type foo, @function
16114 .section .gcc_except_table.foo,"a",@progbits
16117 .section .eh_frame,"a",@progbits
16120 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16121 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16122 |
grep "gc-sections option ignored" > /dev
/null
; then
16123 gcc_cv_ld_eh_gc_sections
=no
16124 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16125 gcc_cv_ld_eh_gc_sections
=yes
16126 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16127 if test x
$gcc_cv_as_comdat_group != xyes
; then
16128 gcc_cv_ld_eh_gc_sections
=no
16129 cat > conftest.s
<<EOF
16132 .type _start, @function
16135 .size _start, .-_start
16136 .section .gnu.linkonce.t.foo,"ax",@progbits
16137 .type foo, @function
16141 .section .gcc_except_table.foo,"a",@progbits
16144 .section .eh_frame,"a",@progbits
16147 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
16148 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
16149 |
grep "gc-sections option ignored" > /dev
/null
; then
16150 gcc_cv_ld_eh_gc_sections
=no
16151 elif $gcc_cv_objdump -h conftest |
grep gcc_except_table
> /dev
/null
; then
16152 gcc_cv_ld_eh_gc_sections
=yes
16158 rm -f conftest.s conftest.o conftest
16162 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16163 gcc_cv_ld_eh_gc_sections
=no
16166 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16168 cat >>confdefs.h
<<\_ACEOF
16169 #define HAVE_LD_EH_GC_SECTIONS 1
16173 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16174 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16180 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16181 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16182 if test "${gcc_cv_ld_as_needed+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 gcc_cv_ld_as_needed
=no
16186 if test $in_tree_ld = yes ; then
16187 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 \
16188 && test $in_tree_ld_is_elf = yes; then
16189 gcc_cv_ld_as_needed
=yes
16191 elif test x
$gcc_cv_ld != x
; then
16192 # Check if linker supports --as-needed and --no-as-needed options
16193 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16194 gcc_cv_ld_as_needed
=yes
16199 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16200 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16201 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16203 cat >>confdefs.h
<<\_ACEOF
16204 #define HAVE_LD_AS_NEEDED 1
16209 case "$target:$tm_file" in
16210 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16211 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16212 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16213 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 gcc_cv_ld_no_dot_syms
=no
16217 if test $in_tree_ld = yes ; then
16218 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
16219 gcc_cv_ld_no_dot_syms
=yes
16221 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16222 cat > conftest1.s
<<EOF
16226 cat > conftest2.s
<<EOF
16227 .section ".opd","aw"
16230 .type foo,@function
16232 .quad .LEfoo,.TOC.@tocbase,0
16238 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16239 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16240 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16241 gcc_cv_ld_no_dot_syms
=yes
16243 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16247 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16248 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16249 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16251 cat >>confdefs.h
<<\_ACEOF
16252 #define HAVE_LD_NO_DOT_SYMS 1
16259 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16260 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16261 if test "${gcc_cv_ld_sysroot+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16264 gcc_cv_ld_sysroot
=no
16265 if test $in_tree_ld = yes ; then
16266 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
16267 gcc_cv_ld_sysroot
=yes
16269 elif test x
$gcc_cv_ld != x
; then
16270 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16271 gcc_cv_ld_sysroot
=yes
16275 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16276 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16277 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16279 cat >>confdefs.h
<<\_ACEOF
16280 #define HAVE_LD_SYSROOT 1
16285 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16286 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16287 && test "$prefix" != "NONE"; then
16289 cat >>confdefs.h
<<_ACEOF
16290 #define PREFIX_INCLUDE_DIR "$prefix/include"
16295 # Test for stack protector support in target C library.
16296 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16297 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16298 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16299 echo $ECHO_N "(cached) $ECHO_C" >&6
16301 gcc_cv_libc_provides_ssp
=no
16304 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16305 if test "x$with_sysroot" = x
; then
16306 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16307 elif test "x$with_sysroot" = xyes
; then
16308 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16310 glibc_header_dir
="${with_sysroot}/usr/include"
16313 glibc_header_dir
=/usr
/include
16315 # glibc 2.4 and later provides __stack_chk_fail and
16316 # either __stack_chk_guard, or TLS access to stack guard canary.
16317 if test -f $glibc_header_dir/features.h \
16318 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16319 $glibc_header_dir/features.h
> /dev
/null
; then
16320 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16321 $glibc_header_dir/features.h
> /dev
/null
; then
16322 gcc_cv_libc_provides_ssp
=yes
16323 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16324 $glibc_header_dir/features.h
> /dev
/null \
16325 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16326 $glibc_header_dir/features.h
> /dev
/null
; then
16327 gcc_cv_libc_provides_ssp
=yes
16332 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16333 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16334 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16335 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 cat >conftest.
$ac_ext <<_ACEOF
16340 cat confdefs.h
>>conftest.
$ac_ext
16341 cat >>conftest.
$ac_ext <<_ACEOF
16342 /* end confdefs.h. */
16343 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16345 #define __stack_chk_fail innocuous___stack_chk_fail
16347 /* System header to define __stub macros and hopefully few prototypes,
16348 which can conflict with char __stack_chk_fail (); below.
16349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16350 <limits.h> exists even on freestanding compilers. */
16353 # include <limits.h>
16355 # include <assert.h>
16358 #undef __stack_chk_fail
16360 /* Override any gcc2 internal prototype to avoid an error. */
16365 /* We use char because int might match the return type of a gcc2
16366 builtin and then its argument prototype would still apply. */
16367 char __stack_chk_fail ();
16368 /* The GNU C library defines this for functions which it implements
16369 to always fail with ENOSYS. Some functions are actually named
16370 something starting with __ and the normal name is an alias. */
16371 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16374 char (*f) () = __stack_chk_fail;
16383 return f != __stack_chk_fail;
16388 rm -f conftest.
$ac_objext conftest
$ac_exeext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16390 (eval $ac_link) 2>conftest.er1
16392 grep -v '^ *+' conftest.er1
>conftest.err
16394 cat conftest.err
>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try
='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try
='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_func___stack_chk_fail
=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.
$ac_ext >&5
16415 ac_cv_func___stack_chk_fail
=no
16417 rm -f conftest.err conftest.
$ac_objext \
16418 conftest
$ac_exeext conftest.
$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16421 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16422 if test $ac_cv_func___stack_chk_fail = yes; then
16423 gcc_cv_libc_provides_ssp
=yes
16425 echo "no __stack_chk_fail on this target"
16429 *) gcc_cv_libc_provides_ssp
=no
;;
16432 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16433 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16435 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16437 cat >>confdefs.h
<<\_ACEOF
16438 #define TARGET_LIBC_PROVIDES_SSP 1
16443 # Check if TFmode long double should be used by default or not.
16444 # Some glibc targets used DFmode long double, but with glibc 2.4
16445 # and later they can use TFmode.
16447 powerpc
*-*-*gnu
* | \
16448 sparc
*-*-linux* | \
16452 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16453 if test "${with_long_double_128+set}" = set; then
16454 withval
="$with_long_double_128"
16455 gcc_cv_target_ldbl128
="$with_long_double_128"
16457 gcc_cv_target_ldbl128
=no
16458 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16459 if test "x$with_sysroot" = x
; then
16460 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16461 elif test "x$with_sysroot" = xyes
; then
16462 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16464 glibc_header_dir
="${with_sysroot}/usr/include"
16467 glibc_header_dir
=/usr
/include
16469 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16470 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16471 && gcc_cv_target_ldbl128
=yes
16476 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16478 cat >>confdefs.h
<<\_ACEOF
16479 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16484 # Find out what GC implementation we want, or may, use.
16486 # Check whether --with-gc or --without-gc was given.
16487 if test "${with_gc+set}" = set; then
16496 cat >>confdefs.h
<<\_ACEOF
16502 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16503 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16504 { (exit 1); exit 1; }; }
16511 echo "Using $GGC for garbage collection."
16513 # Use the system's zlib library.
16515 zlibinc
="-I\$(srcdir)/../zlib"
16517 # Check whether --with-system-zlib or --without-system-zlib was given.
16518 if test "${with_system_zlib+set}" = set; then
16519 withval
="$with_system_zlib"
16528 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16529 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16530 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16531 if test "${enable_maintainer_mode+set}" = set; then
16532 enableval
="$enable_maintainer_mode"
16533 maintainer_mode
=$enableval
16538 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16539 echo "${ECHO_T}$maintainer_mode" >&6
16541 if test "$maintainer_mode" = "yes"; then
16551 # Make empty files to contain the specs and options for each language.
16552 # Then add #include lines to for a compiler that has specs and/or options.
16558 # These (without "all_") are set in each config-lang.in.
16559 # `language' must be a single word so is spelled singularly.
16562 all_outputs
='Makefile gccbug libada-mk'
16563 # List of language makefile fragments.
16564 all_lang_makefrags
=
16565 # List of language subdirectory makefiles. Deprecated.
16566 all_lang_makefiles
=
16567 # Files for gengtype
16568 all_gtfiles
="$target_gtfiles"
16569 # Files for gengtype with language
16570 all_gtfiles_files_langs
=
16571 all_gtfiles_files_files
=
16573 # These are the languages that are set in --enable-languages,
16574 # and are available in the GCC tree.
16575 all_selected_languages
=
16577 # Add the language fragments.
16578 # Languages are added via two mechanisms. Some information must be
16579 # recorded in makefile variables, these are defined in config-lang.in.
16580 # We accumulate them and plug them into the main Makefile.
16581 # The other mechanism is a set of hooks for each of the main targets
16582 # like `clean', `install', etc.
16584 language_hooks
="Make-hooks"
16586 for lang
in ${srcdir}/*/config-lang.
in
16588 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16590 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16591 if test "x$lang_alias" = x
16593 echo "$lang doesn't set \$language." 1>&2
16596 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16597 subdirs
="$subdirs $subdir"
16598 case ",$enable_languages," in
16600 all_selected_languages
="$all_selected_languages $lang_alias"
16601 if test -f $srcdir/$subdir/lang-specs.h
; then
16602 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16613 .
${srcdir}/$subdir/config-lang.
in
16614 if test "x$language" = x
16616 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16621 case ",$enable_languages," in
16622 *,$lang_alias,*) ;;
16624 for i
in $subdir_requires; do
16625 test -f "${srcdir}/$i/config-lang.in" && continue
16633 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16634 if test -f $srcdir/$subdir/lang.opt
; then
16635 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16637 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16638 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16640 if test -f ${srcdir}/$subdir/Makefile.
in
16641 then all_lang_makefiles
="$subdir/Makefile"
16643 all_languages
="$all_languages $language"
16644 all_compilers
="$all_compilers $compilers"
16645 all_outputs
="$all_outputs $outputs"
16646 all_gtfiles
="$all_gtfiles $gtfiles"
16649 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16650 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16654 # Pick up gtfiles for c
16657 .
${srcdir}/c-config-lang.
in
16658 all_gtfiles
="$all_gtfiles $gtfiles"
16661 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16662 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16666 for language
in $all_selected_languages
16668 check_languages
="$check_languages check-$language"
16671 # We link each language in with a set of hooks, reached indirectly via
16672 # lang.${target}. Only do so for selected languages.
16676 target_list
="all.cross start.encap rest.encap tags \
16677 install-common install-man install-info dvi pdf html \
16678 uninstall info man srcextra srcman srcinfo \
16679 mostlyclean clean distclean maintainer-clean"
16681 for t
in $target_list
16684 for lang
in $all_selected_languages
16688 echo "lang.$t: $x" >> Make-hooks
16697 echo "dir ." > .gdbinit
16698 echo "dir ${srcdir}" >> .gdbinit
16699 if test x
$gdb_needs_out_file_path = xyes
16701 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16703 if test "x$subdirs" != x
; then
16706 echo "dir ${srcdir}/$s" >> .gdbinit
16709 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16711 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16712 # absolute path for gcc_tooldir based on inserting the number of up-directory
16713 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16714 # $(libsubdir)/@(unlibsubdir) based path.
16715 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16716 # make and thus we'd get different behavior depending on where we built the
16718 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16719 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16721 # An explanation of the sed strings:
16722 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16723 # -e 's|/$||' match a trailing forward slash and eliminates it
16724 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16725 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16727 # (*) Note this pattern overwrites the first character of the string
16728 # with a forward slash if one is not already present. This is not a
16729 # problem because the exact names of the sub-directories concerned is
16730 # unimportant, just the number of them matters.
16732 # The practical upshot of these patterns is like this:
16734 # prefix exec_prefix result
16735 # ------ ----------- ------
16736 # /foo /foo/bar ../
16737 # /foo/ /foo/bar ../
16738 # /foo /foo/bar/ ../
16739 # /foo/ /foo/bar/ ../
16740 # /foo /foo/bar/ugg ../../
16743 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16748 # Find a directory in which to install a shared libgcc.
16750 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16751 if test "${enable_version_specific_runtime_libs+set}" = set; then
16752 enableval
="$enable_version_specific_runtime_libs"
16757 # Check whether --with-slibdir or --without-slibdir was given.
16758 if test "${with_slibdir+set}" = set; then
16759 withval
="$with_slibdir"
16760 slibdir
="$with_slibdir"
16762 if test "${enable_version_specific_runtime_libs+set}" = set; then
16763 slibdir
='$(libsubdir)'
16764 elif test "$host" != "$target"; then
16765 slibdir
='$(build_tooldir)/lib'
16767 slibdir
='$(libdir)'
16772 objdir
=`${PWDCMD-pwd}`
16776 # Check whether --with-datarootdir or --without-datarootdir was given.
16777 if test "${with_datarootdir+set}" = set; then
16778 withval
="$with_datarootdir"
16779 datarootdir
="\${prefix}/$with_datarootdir"
16781 datarootdir
='$(prefix)/share'
16786 # Check whether --with-docdir or --without-docdir was given.
16787 if test "${with_docdir+set}" = set; then
16788 withval
="$with_docdir"
16789 docdir
="\${prefix}/$with_docdir"
16791 docdir
='$(datarootdir)'
16796 # Check whether --with-htmldir or --without-htmldir was given.
16797 if test "${with_htmldir+set}" = set; then
16798 withval
="$with_htmldir"
16799 htmldir
="\${prefix}/$with_htmldir"
16801 htmldir
='$(docdir)'
16805 # Substitute configuration variables
16864 if test x
${build} = x
${host} ; then
16865 if test x
${host} = x
${target} ; then
16866 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16868 echo "Links are now set up to build a cross-compiler" 1>&2
16869 echo " from ${host} to ${target}." 1>&2
16872 if test x
${host} = x
${target} ; then
16873 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16874 echo " for ${target}." 1>&2
16876 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16877 echo " from ${host} to ${target}." 1>&2
16884 # Configure the subdirectories
16885 # AC_CONFIG_SUBDIRS($subdirs)
16887 # Create the Makefile
16888 # and configure language subdirectories
16889 ac_config_files
="$ac_config_files $all_outputs"
16892 ac_config_commands
="$ac_config_commands default"
16894 cat >confcache
<<\_ACEOF
16895 # This file is a shell script that caches the results of configure
16896 # tests run on this system so they can be shared between configure
16897 # scripts and configure runs, see configure's option --config-cache.
16898 # It is not useful on other systems. If it contains results you don't
16899 # want to keep, you may remove or edit it.
16901 # config.status only pays attention to the cache file if you give it
16902 # the --recheck option to rerun configure.
16904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16906 # following values.
16910 # The following way of writing the cache mishandles newlines in values,
16911 # but we know of no workaround that is simple, portable, and efficient.
16912 # So, don't put newlines in cache variables' values.
16913 # Ultrix sh set writes to stderr and can't be redirected directly,
16914 # and sets the high bit in the cache file unless we assign to the vars.
16917 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16919 # `set' does not quote correctly, so add quotes (double-quote
16920 # substitution turns \\\\ into \\, and sed turns \\ into \).
16923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16926 # `set' quotes correctly as required by POSIX, so do not add quotes.
16928 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16935 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16937 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16939 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16940 if test -w $cache_file; then
16941 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16942 cat confcache
>$cache_file
16944 echo "not updating unwritable cache $cache_file"
16949 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16950 # Let make expand exec_prefix.
16951 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16955 # trailing colons and then remove the whole line if VPATH becomes empty
16956 # (actually we leave an empty line to preserve line numbers).
16957 if test "x$srcdir" = x.
; then
16958 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16959 s/:*\$(srcdir):*/:/;
16960 s/:*\${srcdir}:*/:/;
16962 s/^\([^=]*=[ ]*\):*/\1/;
16968 DEFS
=-DHAVE_CONFIG_H
16972 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16973 # 1. Remove the extension, and $U if already installed.
16974 ac_i
=`echo "$ac_i" |
16975 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16977 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16978 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16980 LIBOBJS
=$ac_libobjs
16982 LTLIBOBJS
=$ac_ltlibobjs
16986 : ${CONFIG_STATUS=./config.status}
16987 ac_clean_files_save
=$ac_clean_files
16988 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16989 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16990 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16991 cat >$CONFIG_STATUS <<_ACEOF
16993 # Generated by $as_me.
16994 # Run this file to recreate the current configuration.
16995 # Compiler output produced by configure, useful for debugging
16996 # configure, is in config.log if it exists.
16999 ac_cs_recheck=false
17001 SHELL=\${CONFIG_SHELL-$SHELL}
17004 cat >>$CONFIG_STATUS <<\_ACEOF
17005 ## --------------------- ##
17006 ## M4sh Initialization. ##
17007 ## --------------------- ##
17009 # Be Bourne compatible
17010 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17013 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17014 # is contrary to our usage. Disable this feature.
17015 alias -g '${1+"$@"}'='"$@"'
17016 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17019 DUALCASE
=1; export DUALCASE
# for MKS sh
17021 # Support unset when possible.
17022 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
17029 # Work around bugs in pre-3.0 UWIN ksh.
17030 $as_unset ENV MAIL MAILPATH
17037 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17038 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17039 LC_TELEPHONE LC_TIME
17041 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17042 eval $as_var=C
; export $as_var
17048 # Required to use basename.
17049 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17055 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
17056 as_basename
=basename
17062 # Name of the executable.
17063 as_me
=`$as_basename "$0" ||
17064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17065 X"$0" : 'X\(//\)$' \| \
17066 X"$0" : 'X\(/\)$' \| \
17067 . : '\(.\)' 2>/dev/null ||
17069 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17070 /^X\/\(\/\/\)$/{ s//\1/; q; }
17071 /^X\/\(\/\).*/{ s//\1/; q; }
17075 # PATH needs CR, and LINENO needs CR and PATH.
17076 # Avoid depending upon Character Ranges.
17077 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17078 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17079 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17080 as_cr_digits
='0123456789'
17081 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17083 # The user is always right.
17084 if test "${PATH_SEPARATOR+set}" != set; then
17085 echo "#! /bin/sh" >conf$$.sh
17086 echo "exit 0" >>conf$$.sh
17088 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17097 as_lineno_1
=$LINENO
17098 as_lineno_2
=$LINENO
17099 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17100 test "x$as_lineno_1" != "x$as_lineno_2" &&
17101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17102 # Find who we are. Look in the path if we contain no path at all
17105 *[\\/]* ) as_myself
=$0 ;;
17106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17107 for as_dir
in $PATH
17110 test -z "$as_dir" && as_dir
=.
17111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17116 # We did not find ourselves, most probably we were run as `sh COMMAND'
17117 # in which case we are not to be found in the path.
17118 if test "x$as_myself" = x
; then
17121 if test ! -f "$as_myself"; then
17122 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17123 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17124 { (exit 1); exit 1; }; }
17126 case $CONFIG_SHELL in
17128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17129 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17132 test -z "$as_dir" && as_dir
=.
17133 for as_base
in sh bash ksh sh5
; do
17136 if ("$as_dir/$as_base" -c '
17137 as_lineno_1=$LINENO
17138 as_lineno_2=$LINENO
17139 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17140 test "x$as_lineno_1" != "x$as_lineno_2" &&
17141 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17142 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17143 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17144 CONFIG_SHELL
=$as_dir/$as_base
17145 export CONFIG_SHELL
17146 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17155 # uniformly replaced by the line number. The first 'sed' inserts a
17156 # line-number line before each line; the second 'sed' does the real
17157 # work. The second script uses 'N' to pair each line-number line
17158 # with the numbered line, and appends trailing '-' during
17159 # substitution so that $LINENO is not a special case at line end.
17160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17162 sed '=' <$as_myself |
17167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17170 s,^['$as_cr_digits']*\n,,
17171 ' >$as_me.lineno
&&
17172 chmod +x
$as_me.lineno ||
17173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17174 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17175 { (exit 1); exit 1; }; }
17177 # Don't try to exec as it changes $[0], causing all sort of problems
17178 # (the dirname of $[0] is not the place where we might find the
17179 # original and so on. Autoconf is especially sensible to this).
17181 # Exit status is that of the last command.
17186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17187 *c
*,-n*) ECHO_N
= ECHO_C
='
17189 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17190 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17193 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17199 rm -f conf$$ conf$$.exe conf$$.
file
17201 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17202 # We could just check for DJGPP; but this test a) works b) is more generic
17203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17204 if test -f conf$$.exe
; then
17205 # Don't use ln at all; we don't have any links
17210 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17215 rm -f conf$$ conf$$.exe conf$$.
file
17217 if mkdir
-p .
2>/dev
/null
; then
17220 test -d .
/-p && rmdir .
/-p
17224 as_executable_p
="test -f"
17226 # Sed expression to map a string onto a valid CPP name.
17227 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17229 # Sed expression to map a string onto a valid variable name.
17230 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17234 # We need space, tab and new line, in precisely that order.
17244 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17245 # report actual input values of CONFIG_FILES etc. instead of their
17246 # values after options handling. Logging --version etc. is OK.
17250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17251 ## Running $as_me. ##
17256 This file was extended by $as_me, which was
17257 generated by GNU Autoconf 2.59. Invocation command line was
17259 CONFIG_FILES = $CONFIG_FILES
17260 CONFIG_HEADERS = $CONFIG_HEADERS
17261 CONFIG_LINKS = $CONFIG_LINKS
17262 CONFIG_COMMANDS = $CONFIG_COMMANDS
17266 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17270 # Files that config.status was made for.
17271 if test -n "$ac_config_files"; then
17272 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17275 if test -n "$ac_config_headers"; then
17276 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17279 if test -n "$ac_config_links"; then
17280 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17283 if test -n "$ac_config_commands"; then
17284 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17287 cat >>$CONFIG_STATUS <<\_ACEOF
17290 \`$as_me' instantiates files from templates according to the
17291 current configuration.
17293 Usage: $0 [OPTIONS] [FILE]...
17295 -h, --help print this help, then exit
17296 -V, --version print version number, then exit
17297 -q, --quiet do not print progress messages
17298 -d, --debug don't remove temporary files
17299 --recheck update $as_me by reconfiguring in the same conditions
17300 --file=FILE[:TEMPLATE]
17301 instantiate the configuration file FILE
17302 --header=FILE[:TEMPLATE]
17303 instantiate the configuration header FILE
17305 Configuration files:
17308 Configuration headers:
17311 Configuration commands:
17314 Report bugs to <bug-autoconf@gnu.org>."
17317 cat >>$CONFIG_STATUS <<_ACEOF
17320 configured by $0, generated by GNU Autoconf 2.59,
17321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17323 Copyright (C) 2003 Free Software Foundation, Inc.
17324 This config.status script is free software; the Free Software Foundation
17325 gives unlimited permission to copy, distribute and modify it."
17329 cat >>$CONFIG_STATUS <<\_ACEOF
17330 # If no file are specified by the user, then we need to provide default
17331 # value. By we need to know if files were specified by the user.
17337 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17338 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17346 *) # This is not an option, so the user has probably given explicit
17349 ac_need_defaults
=false
;;
17353 # Handling of the options.
17355 cat >>$CONFIG_STATUS <<\_ACEOF
17356 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17358 --version |
--vers* |
-V )
17359 echo "$ac_cs_version"; exit 0 ;;
17361 # Conflict between --help and --header
17362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17363 Try \`$0 --help' for more information." >&5
17364 echo "$as_me: error: ambiguous option: $1
17365 Try \`$0 --help' for more information." >&2;}
17366 { (exit 1); exit 1; }; };;
17367 --help |
--hel |
-h )
17368 echo "$ac_cs_usage"; exit 0 ;;
17369 --debug |
--d* |
-d )
17371 --file |
--fil |
--fi |
--f )
17373 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17374 ac_need_defaults
=false
;;
17375 --header |
--heade |
--head |
--hea )
17377 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17378 ac_need_defaults
=false
;;
17379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17380 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17383 # This is an error.
17384 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17385 Try \`$0 --help' for more information." >&5
17386 echo "$as_me: error: unrecognized option: $1
17387 Try \`$0 --help' for more information." >&2;}
17388 { (exit 1); exit 1; }; } ;;
17390 *) ac_config_targets
="$ac_config_targets $1" ;;
17396 ac_configure_extra_args
=
17398 if $ac_cs_silent; then
17400 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17404 cat >>$CONFIG_STATUS <<_ACEOF
17405 if \$ac_cs_recheck; then
17406 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17407 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17412 cat >>$CONFIG_STATUS <<_ACEOF
17414 # INIT-COMMANDS section.
17423 cat >>$CONFIG_STATUS <<\_ACEOF
17424 for ac_config_target
in $ac_config_targets
17426 case "$ac_config_target" in
17427 # Handling of arguments.
17428 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17429 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17430 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17433 { (exit 1); exit 1; }; };;
17437 # If the user did not use the arguments to specify the items to instantiate,
17438 # then the envvar interface is used. Set only those that are not.
17439 # We use the long form for the default assignment because of an extremely
17440 # bizarre bug on SunOS 4.1.3.
17441 if $ac_need_defaults; then
17442 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17443 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17444 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17447 # Have a temporary directory for convenience. Make it in the build tree
17448 # simply because there is no reason to put it here, and in addition,
17449 # creating and moving files from /tmp can sometimes cause problems.
17450 # Create a temporary directory, and hook for its removal unless debugging.
17453 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17454 trap '{ (exit 1); exit 1; }' 1 2 13 15
17457 # Create a (secure) tmp directory for tmp files.
17460 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17461 test -n "$tmp" && test -d "$tmp"
17464 tmp
=.
/confstat$$
-$RANDOM
17465 (umask 077 && mkdir
$tmp)
17468 echo "$me: cannot create a temporary directory in ." >&2
17469 { (exit 1); exit 1; }
17474 cat >>$CONFIG_STATUS <<_ACEOF
17477 # CONFIG_FILES section.
17480 # No need to generate the scripts if there are no CONFIG_FILES.
17481 # This happens for instance when ./config.status config.h
17482 if test -n "\$CONFIG_FILES"; then
17483 # Protect against being on the right side of a sed subst in config.status.
17484 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17485 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17486 s,@SHELL@,$SHELL,;t t
17487 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17488 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17489 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17490 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17491 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17492 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17493 s,@exec_prefix@,$exec_prefix,;t t
17494 s,@prefix@,$prefix,;t t
17495 s,@program_transform_name@,$program_transform_name,;t t
17496 s,@bindir@,$bindir,;t t
17497 s,@sbindir@,$sbindir,;t t
17498 s,@libexecdir@,$libexecdir,;t t
17499 s,@datadir@,$datadir,;t t
17500 s,@sysconfdir@,$sysconfdir,;t t
17501 s,@sharedstatedir@,$sharedstatedir,;t t
17502 s,@localstatedir@,$localstatedir,;t t
17503 s,@libdir@,$libdir,;t t
17504 s,@includedir@,$includedir,;t t
17505 s,@oldincludedir@,$oldincludedir,;t t
17506 s,@infodir@,$infodir,;t t
17507 s,@mandir@,$mandir,;t t
17508 s,@build_alias@,$build_alias,;t t
17509 s,@host_alias@,$host_alias,;t t
17510 s,@target_alias@,$target_alias,;t t
17511 s,@DEFS@,$DEFS,;t t
17512 s,@ECHO_C@,$ECHO_C,;t t
17513 s,@ECHO_N@,$ECHO_N,;t t
17514 s,@ECHO_T@,$ECHO_T,;t t
17515 s,@LIBS@,$LIBS,;t t
17516 s,@build@,$build,;t t
17517 s,@build_cpu@,$build_cpu,;t t
17518 s,@build_vendor@,$build_vendor,;t t
17519 s,@build_os@,$build_os,;t t
17520 s,@host@,$host,;t t
17521 s,@host_cpu@,$host_cpu,;t t
17522 s,@host_vendor@,$host_vendor,;t t
17523 s,@host_os@,$host_os,;t t
17524 s,@target@,$target,;t t
17525 s,@target_cpu@,$target_cpu,;t t
17526 s,@target_vendor@,$target_vendor,;t t
17527 s,@target_os@,$target_os,;t t
17528 s,@target_noncanonical@,$target_noncanonical,;t t
17529 s,@build_libsubdir@,$build_libsubdir,;t t
17530 s,@build_subdir@,$build_subdir,;t t
17531 s,@host_subdir@,$host_subdir,;t t
17532 s,@target_subdir@,$target_subdir,;t t
17533 s,@GENINSRC@,$GENINSRC,;t t
17535 s,@CFLAGS@,$CFLAGS,;t t
17536 s,@LDFLAGS@,$LDFLAGS,;t t
17537 s,@CPPFLAGS@,$CPPFLAGS,;t t
17538 s,@ac_ct_CC@,$ac_ct_CC,;t t
17539 s,@EXEEXT@,$EXEEXT,;t t
17540 s,@OBJEXT@,$OBJEXT,;t t
17541 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17542 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17544 s,@EGREP@,$EGREP,;t t
17545 s,@strict_warn@,$strict_warn,;t t
17546 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17547 s,@warn_cflags@,$warn_cflags,;t t
17548 s,@nocommon_flag@,$nocommon_flag,;t t
17549 s,@TREEBROWSER@,$TREEBROWSER,;t t
17550 s,@valgrind_path@,$valgrind_path,;t t
17551 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17552 s,@valgrind_command@,$valgrind_command,;t t
17553 s,@coverage_flags@,$coverage_flags,;t t
17554 s,@enable_multilib@,$enable_multilib,;t t
17555 s,@enable_decimal_float@,$enable_decimal_float,;t t
17556 s,@enable_shared@,$enable_shared,;t t
17557 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17558 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17559 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17560 s,@onestep@,$onestep,;t t
17561 s,@datarootdir@,$datarootdir,;t t
17562 s,@docdir@,$docdir,;t t
17563 s,@htmldir@,$htmldir,;t t
17564 s,@SET_MAKE@,$SET_MAKE,;t t
17566 s,@LN_S@,$LN_S,;t t
17568 s,@RANLIB@,$RANLIB,;t t
17569 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17570 s,@ranlib_flags@,$ranlib_flags,;t t
17571 s,@INSTALL@,$INSTALL,;t t
17572 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17573 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17574 s,@make_compare_target@,$make_compare_target,;t t
17575 s,@have_mktemp_command@,$have_mktemp_command,;t t
17576 s,@MAKEINFO@,$MAKEINFO,;t t
17577 s,@BUILD_INFO@,$BUILD_INFO,;t t
17578 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17579 s,@FLEX@,$FLEX,;t t
17580 s,@BISON@,$BISON,;t t
17583 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17584 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17585 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17586 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17587 s,@LIBICONV@,$LIBICONV,;t t
17588 s,@LTLIBICONV@,$LTLIBICONV,;t t
17589 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17590 s,@manext@,$manext,;t t
17591 s,@objext@,$objext,;t t
17592 s,@gthread_flags@,$gthread_flags,;t t
17593 s,@extra_modes_file@,$extra_modes_file,;t t
17594 s,@extra_opt_files@,$extra_opt_files,;t t
17595 s,@USE_NLS@,$USE_NLS,;t t
17596 s,@LIBINTL@,$LIBINTL,;t t
17597 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17598 s,@INCINTL@,$INCINTL,;t t
17599 s,@XGETTEXT@,$XGETTEXT,;t t
17600 s,@GMSGFMT@,$GMSGFMT,;t t
17601 s,@POSUB@,$POSUB,;t t
17602 s,@CATALOGS@,$CATALOGS,;t t
17603 s,@DATADIRNAME@,$DATADIRNAME,;t t
17604 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17605 s,@GENCAT@,$GENCAT,;t t
17606 s,@CATOBJEXT@,$CATOBJEXT,;t t
17607 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17608 s,@CROSS@,$CROSS,;t t
17610 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17611 s,@inhibit_libc@,$inhibit_libc,;t t
17612 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17613 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17614 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17615 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17616 s,@collect2@,$collect2,;t t
17617 s,@gcc_cv_as@,$gcc_cv_as,;t t
17618 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17619 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17620 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17621 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17622 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17623 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17624 s,@libgcc_visibility@,$libgcc_visibility,;t t
17626 s,@zlibdir@,$zlibdir,;t t
17627 s,@zlibinc@,$zlibinc,;t t
17628 s,@MAINT@,$MAINT,;t t
17629 s,@gcc_tooldir@,$gcc_tooldir,;t t
17630 s,@dollar@,$dollar,;t t
17631 s,@slibdir@,$slibdir,;t t
17632 s,@objdir@,$objdir,;t t
17633 s,@subdirs@,$subdirs,;t t
17634 s,@srcdir@,$srcdir,;t t
17635 s,@all_compilers@,$all_compilers,;t t
17636 s,@all_gtfiles@,$all_gtfiles,;t t
17637 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17638 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17639 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17640 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17641 s,@all_languages@,$all_languages,;t t
17642 s,@all_selected_languages@,$all_selected_languages,;t t
17643 s,@build_exeext@,$build_exeext,;t t
17644 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17645 s,@build_xm_file_list@,$build_xm_file_list,;t t
17646 s,@build_xm_include_list@,$build_xm_include_list,;t t
17647 s,@build_xm_defines@,$build_xm_defines,;t t
17648 s,@check_languages@,$check_languages,;t t
17649 s,@cpp_install_dir@,$cpp_install_dir,;t t
17650 s,@xmake_file@,$xmake_file,;t t
17651 s,@tmake_file@,$tmake_file,;t t
17652 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17653 s,@extra_headers_list@,$extra_headers_list,;t t
17654 s,@extra_objs@,$extra_objs,;t t
17655 s,@extra_parts@,$extra_parts,;t t
17656 s,@extra_passes@,$extra_passes,;t t
17657 s,@extra_programs@,$extra_programs,;t t
17658 s,@float_h_file@,$float_h_file,;t t
17659 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17660 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17661 s,@host_exeext@,$host_exeext,;t t
17662 s,@host_xm_file_list@,$host_xm_file_list,;t t
17663 s,@host_xm_include_list@,$host_xm_include_list,;t t
17664 s,@host_xm_defines@,$host_xm_defines,;t t
17665 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17666 s,@install@,$install,;t t
17667 s,@lang_opt_files@,$lang_opt_files,;t t
17668 s,@lang_specs_files@,$lang_specs_files,;t t
17669 s,@lang_tree_files@,$lang_tree_files,;t t
17670 s,@local_prefix@,$local_prefix,;t t
17671 s,@md_file@,$md_file,;t t
17672 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17673 s,@out_file@,$out_file,;t t
17674 s,@out_object_file@,$out_object_file,;t t
17675 s,@thread_file@,$thread_file,;t t
17676 s,@tm_file_list@,$tm_file_list,;t t
17677 s,@tm_include_list@,$tm_include_list,;t t
17678 s,@tm_defines@,$tm_defines,;t t
17679 s,@tm_p_file_list@,$tm_p_file_list,;t t
17680 s,@tm_p_include_list@,$tm_p_include_list,;t t
17681 s,@xm_file_list@,$xm_file_list,;t t
17682 s,@xm_include_list@,$xm_include_list,;t t
17683 s,@xm_defines@,$xm_defines,;t t
17684 s,@c_target_objs@,$c_target_objs,;t t
17685 s,@cxx_target_objs@,$cxx_target_objs,;t t
17686 s,@target_cpu_default@,$target_cpu_default,;t t
17687 s,@GMPLIBS@,$GMPLIBS,;t t
17688 s,@GMPINC@,$GMPINC,;t t
17689 s,@LIBOBJS@,$LIBOBJS,;t t
17690 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17691 /@language_hooks@/r $language_hooks
17692 s,@language_hooks@,,;t t
17697 cat >>$CONFIG_STATUS <<\_ACEOF
17698 # Split the substitutions into bite-sized pieces for seds with
17699 # small command number limits, like on Digital OSF/1 and HP-UX.
17700 ac_max_sed_lines
=48
17701 ac_sed_frag
=1 # Number of current file.
17702 ac_beg
=1 # First line for current file.
17703 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17706 while $ac_more_lines; do
17707 if test $ac_beg -gt 1; then
17708 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17710 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17712 if test ! -s $tmp/subs.frag
; then
17713 ac_more_lines
=false
17715 # The purpose of the label and of the branching condition is to
17716 # speed up the sed processing (if there are no `@' at all, there
17717 # is no need to browse any of the substitutions).
17718 # These are the two extra sed commands mentioned above.
17720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17721 if test -z "$ac_sed_cmds"; then
17722 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17724 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17726 ac_sed_frag
=`expr $ac_sed_frag + 1`
17728 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17731 if test -z "$ac_sed_cmds"; then
17734 fi # test -n "$CONFIG_FILES"
17737 cat >>$CONFIG_STATUS <<\_ACEOF
17738 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17741 - |
*:- |
*:-:* ) # input from stdin
17743 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17744 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17745 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17746 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17747 * ) ac_file_in
=$ac_file.
in ;;
17750 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17751 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17753 X"$ac_file" : 'X\(//\)[^/]' \| \
17754 X"$ac_file" : 'X\(//\)$' \| \
17755 X"$ac_file" : 'X\(/\)' \| \
17756 . : '\(.\)' 2>/dev/null ||
17758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17760 /^X\(\/\/\)$/{ s//\1/; q; }
17761 /^X\(\/\).*/{ s//\1/; q; }
17763 { if $as_mkdir_p; then
17768 while test ! -d "$as_dir"; do
17769 as_dirs
="$as_dir $as_dirs"
17770 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17772 X"$as_dir" : 'X\(//\)[^/]' \| \
17773 X"$as_dir" : 'X\(//\)$' \| \
17774 X"$as_dir" : 'X\(/\)' \| \
17775 . : '\(.\)' 2>/dev/null ||
17777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17779 /^X\(\/\/\)$/{ s//\1/; q; }
17780 /^X\(\/\).*/{ s//\1/; q; }
17783 test ! -n "$as_dirs" || mkdir
$as_dirs
17784 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17786 { (exit 1); exit 1; }; }; }
17790 if test "$ac_dir" != .
; then
17791 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17792 # A "../" for each directory in $ac_dir_suffix.
17793 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17795 ac_dir_suffix
= ac_top_builddir
=
17799 .
) # No --srcdir option. We are building in place.
17801 if test -z "$ac_top_builddir"; then
17804 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17806 [\\/]* | ?
:[\\/]* ) # Absolute path.
17807 ac_srcdir
=$srcdir$ac_dir_suffix;
17808 ac_top_srcdir
=$srcdir ;;
17809 *) # Relative path.
17810 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17811 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17814 # Do not use `cd foo && pwd` to compute absolute paths, because
17815 # the directories may not exist.
17817 .
) ac_abs_builddir
="$ac_dir";;
17820 .
) ac_abs_builddir
=`pwd`;;
17821 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17822 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17825 case $ac_abs_builddir in
17826 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17828 case ${ac_top_builddir}.
in
17829 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17830 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17831 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17834 case $ac_abs_builddir in
17835 .
) ac_abs_srcdir
=$ac_srcdir;;
17838 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17839 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17840 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17843 case $ac_abs_builddir in
17844 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17846 case $ac_top_srcdir in
17847 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17848 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17849 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17855 if test x
"$ac_file" != x-
; then
17856 { echo "$as_me:$LINENO: creating $ac_file" >&5
17857 echo "$as_me: creating $ac_file" >&6;}
17860 # Let's still pretend it is `configure' which instantiates (i.e., don't
17861 # use $as_me), people would be surprised to read:
17862 # /* config.h. Generated by config.status. */
17863 if test x
"$ac_file" = x-
; then
17866 configure_input
="$ac_file. "
17868 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17869 sed 's,.*/,,'` by configure."
17871 # First look for the input files in the build tree, otherwise in the
17873 ac_file_inputs
=`IFS=:
17874 for f in $ac_file_in; do
17876 -) echo $tmp/stdin ;;
17878 # Absolute (can't be DOS-style, as IFS=:)
17879 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17880 echo "$as_me: error: cannot find input file: $f" >&2;}
17881 { (exit 1); exit 1; }; }
17884 if test -f "$f"; then
17887 elif test -f "$srcdir/$f"; then
17892 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17893 echo "$as_me: error: cannot find input file: $f" >&2;}
17894 { (exit 1); exit 1; }; }
17897 done` ||
{ (exit 1); exit 1; }
17899 cat >>$CONFIG_STATUS <<_ACEOF
17903 cat >>$CONFIG_STATUS <<\_ACEOF
17905 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17906 s
,@configure_input@
,$configure_input,;t t
17907 s
,@srcdir@
,$ac_srcdir,;t t
17908 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17909 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17910 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17911 s
,@builddir@
,$ac_builddir,;t t
17912 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17913 s
,@top_builddir@
,$ac_top_builddir,;t t
17914 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17915 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17917 if test x"$ac_file" != x-; then
17918 mv $tmp/out $ac_file
17926 cat >>$CONFIG_STATUS <<\_ACEOF
17929 # CONFIG_HEADER section.
17932 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17933 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17935 # ac_d sets the value in "#define NAME VALUE" lines.
17936 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17937 ac_dB
='[ ].*$,\1#\2'
17940 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17941 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17942 ac_uB
='$,\1#\2define\3'
17946 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17947 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17949 - |
*:- |
*:-:* ) # input from stdin
17951 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17952 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17953 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17954 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17955 * ) ac_file_in
=$ac_file.
in ;;
17958 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17959 echo "$as_me: creating $ac_file" >&6;}
17961 # First look for the input files in the build tree, otherwise in the
17963 ac_file_inputs
=`IFS=:
17964 for f in $ac_file_in; do
17966 -) echo $tmp/stdin ;;
17968 # Absolute (can't be DOS-style, as IFS=:)
17969 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17970 echo "$as_me: error: cannot find input file: $f" >&2;}
17971 { (exit 1); exit 1; }; }
17972 # Do quote $f, to prevent DOS paths from being IFS'd.
17975 if test -f "$f"; then
17978 elif test -f "$srcdir/$f"; then
17983 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17984 echo "$as_me: error: cannot find input file: $f" >&2;}
17985 { (exit 1); exit 1; }; }
17988 done` ||
{ (exit 1); exit 1; }
17989 # Remove the trailing spaces.
17990 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17994 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17995 # `conftest.undefs', that substitutes the proper values into
17996 # config.h.in to produce config.h. The first handles `#define'
17997 # templates, and the second `#undef' templates.
17998 # And first: Protect against being on the right side of a sed subst in
17999 # config.status. Protect against being in an unquoted here document
18000 # in config.status.
18001 rm -f conftest.defines conftest.undefs
18002 # Using a here document instead of a string reduces the quoting nightmare.
18003 # Putting comments in sed scripts is not portable.
18005 # `end' is used to avoid that the second main sed command (meant for
18006 # 0-ary CPP macros) applies to n-ary macro definitions.
18007 # See the Autoconf documentation for `clear'.
18008 cat >confdef2sed.
sed <<\_ACEOF
18013 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18015 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18018 # If some macros were called several times there might be several times
18019 # the same #defines, which is useless. Nevertheless, we may not want to
18020 # sort them, since we want the *last* AC-DEFINE to be honored.
18021 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18022 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18023 rm -f confdef2sed.sed
18025 # This sed command replaces #undef with comments. This is necessary, for
18026 # example, in the case of _POSIX_SOURCE, which is predefined and required
18027 # on some systems where configure will not decide to define it.
18028 cat >>conftest.undefs <<\_ACEOF
18029 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18032 # Break up conftest.defines because some shells have a limit on the size
18033 # of here documents, and old seds have small limits too (100 cmds).
18034 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18035 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18036 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18037 echo ' :' >>$CONFIG_STATUS
18038 rm -f conftest.tail
18039 while grep . conftest.defines >/dev/null
18041 # Write a limited-size here document to $tmp/defines.sed.
18042 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18043 # Speed up: don't consider the non `#define' lines.
18044 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18045 # Work around the forget-to-reset-the-flag bug.
18046 echo 't clr' >>$CONFIG_STATUS
18047 echo ': clr' >>$CONFIG_STATUS
18048 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18050 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18052 mv $tmp/out $tmp/in
18054 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18055 rm -f conftest.defines
18056 mv conftest.
tail conftest.defines
18058 rm -f conftest.defines
18059 echo ' fi # grep' >>$CONFIG_STATUS
18060 echo >>$CONFIG_STATUS
18062 # Break up conftest.undefs because some shells have a limit on the size
18063 # of here documents, and old seds have small limits too (100 cmds).
18064 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18065 rm -f conftest.
tail
18066 while grep . conftest.undefs
>/dev
/null
18068 # Write a limited-size here document to $tmp/undefs.sed.
18069 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18070 # Speed up: don't consider the non
`#undef'
18071 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18072 # Work around the forget-to-reset-the-flag bug.
18073 echo 't clr' >>$CONFIG_STATUS
18074 echo ': clr' >>$CONFIG_STATUS
18075 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18077 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18079 mv $tmp/out $tmp/in
18081 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18082 rm -f conftest.undefs
18083 mv conftest.tail conftest.undefs
18085 rm -f conftest.undefs
18087 cat >>$CONFIG_STATUS <<\_ACEOF
18088 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18089 # use $as_me), people would be surprised to read:
18090 # /* config.h. Generated by config.status. */
18091 if test x
"$ac_file" = x-
; then
18092 echo "/* Generated by configure. */" >$tmp/config.h
18094 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18096 cat $tmp/in >>$tmp/config.h
18098 if test x
"$ac_file" != x-
; then
18099 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18100 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18101 echo "$as_me: $ac_file is unchanged" >&6;}
18103 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18105 X"$ac_file" : 'X\(//\)[^/]' \| \
18106 X"$ac_file" : 'X\(//\)$' \| \
18107 X"$ac_file" : 'X\(/\)' \| \
18108 . : '\(.\)' 2>/dev/null ||
18110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18112 /^X\(\/\/\)$/{ s//\1/; q; }
18113 /^X\(\/\).*/{ s//\1/; q; }
18115 { if $as_mkdir_p; then
18120 while test ! -d "$as_dir"; do
18121 as_dirs
="$as_dir $as_dirs"
18122 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18124 X"$as_dir" : 'X\(//\)[^/]' \| \
18125 X"$as_dir" : 'X\(//\)$' \| \
18126 X"$as_dir" : 'X\(/\)' \| \
18127 . : '\(.\)' 2>/dev/null ||
18129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18131 /^X\(\/\/\)$/{ s//\1/; q; }
18132 /^X\(\/\).*/{ s//\1/; q; }
18135 test ! -n "$as_dirs" || mkdir
$as_dirs
18136 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18137 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18138 { (exit 1); exit 1; }; }; }
18141 mv $tmp/config.h
$ac_file
18145 rm -f $tmp/config.h
18149 cat >>$CONFIG_STATUS <<\_ACEOF
18152 # CONFIG_COMMANDS section.
18154 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18155 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18156 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18157 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18158 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18159 X"$ac_dest" : 'X\(//\)[^/]' \| \
18160 X"$ac_dest" : 'X\(//\)$' \| \
18161 X"$ac_dest" : 'X\(/\)' \| \
18162 . : '\(.\)' 2>/dev/null ||
18164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18166 /^X\(\/\/\)$/{ s//\1/; q; }
18167 /^X\(\/\).*/{ s//\1/; q; }
18169 { if $as_mkdir_p; then
18174 while test ! -d "$as_dir"; do
18175 as_dirs
="$as_dir $as_dirs"
18176 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18178 X"$as_dir" : 'X\(//\)[^/]' \| \
18179 X"$as_dir" : 'X\(//\)$' \| \
18180 X"$as_dir" : 'X\(/\)' \| \
18181 . : '\(.\)' 2>/dev/null ||
18183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18185 /^X\(\/\/\)$/{ s//\1/; q; }
18186 /^X\(\/\).*/{ s//\1/; q; }
18189 test ! -n "$as_dirs" || mkdir
$as_dirs
18190 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18192 { (exit 1); exit 1; }; }; }
18196 if test "$ac_dir" != .
; then
18197 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18198 # A "../" for each directory in $ac_dir_suffix.
18199 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18201 ac_dir_suffix
= ac_top_builddir
=
18205 .
) # No --srcdir option. We are building in place.
18207 if test -z "$ac_top_builddir"; then
18210 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18212 [\\/]* | ?
:[\\/]* ) # Absolute path.
18213 ac_srcdir
=$srcdir$ac_dir_suffix;
18214 ac_top_srcdir
=$srcdir ;;
18215 *) # Relative path.
18216 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18217 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18220 # Do not use `cd foo && pwd` to compute absolute paths, because
18221 # the directories may not exist.
18223 .
) ac_abs_builddir
="$ac_dir";;
18226 .
) ac_abs_builddir
=`pwd`;;
18227 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18228 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18231 case $ac_abs_builddir in
18232 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18234 case ${ac_top_builddir}.
in
18235 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18236 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18237 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18240 case $ac_abs_builddir in
18241 .
) ac_abs_srcdir
=$ac_srcdir;;
18244 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18245 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18246 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18249 case $ac_abs_builddir in
18250 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18252 case $ac_top_srcdir in
18253 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18254 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18255 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18260 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18261 echo "$as_me: executing $ac_dest commands" >&6;}
18264 case ${CONFIG_HEADERS} in
18265 *auto-host.h
:config.
in*)
18268 # Make sure all the subdirs exist.
18269 for d
in $subdirs doc build
18271 test -d $d || mkdir
$d
18278 cat >>$CONFIG_STATUS <<\_ACEOF
18280 { (exit 0); exit 0; }
18282 chmod +x
$CONFIG_STATUS
18283 ac_clean_files
=$ac_clean_files_save
18286 # configure is writing to config.log, and then calls config.status.
18287 # config.status does its own redirection, appending to config.log.
18288 # Unfortunately, on DOS this fails, as config.log is still kept open
18289 # by configure, so config.status won't be able to write to it; its
18290 # output is simply discarded. So we exec the FD to /dev/null,
18291 # effectively closing config.log, so it can be properly (re)opened and
18292 # appended to by config.status. When coming back to configure, we
18293 # need to make the FD available again.
18294 if test "$no_create" != yes; then
18296 ac_config_status_args
=
18297 test "$silent" = yes &&
18298 ac_config_status_args
="$ac_config_status_args --quiet"
18300 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18302 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18303 # would make configure fail if this is the last instruction.
18304 $ac_cs_success ||
{ (exit 1); exit 1; }