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"
10562 lib_includedir
=UNSET
10567 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10568 if test "${with_libiconv_prefix+set}" = set; then
10569 withval
="$with_libiconv_prefix"
10571 if test "X$withval" = "Xno"; then
10572 lib_includedir
="NONE"
10575 if test "X$withval" = "X"; then
10577 acl_save_prefix
="$prefix"
10578 prefix
="$acl_final_prefix"
10579 acl_save_exec_prefix
="$exec_prefix"
10580 exec_prefix
="$acl_final_exec_prefix"
10582 eval lib_includedir
=\"$includedir\"
10583 eval lib_libdir
=\"$libdir\"
10585 exec_prefix
="$acl_save_exec_prefix"
10586 prefix
="$acl_save_prefix"
10589 lib_includedir
="$withval/include"
10590 lib_libdir
="$withval/lib"
10597 acl_save_prefix
="$prefix"
10598 prefix
="$acl_final_prefix"
10599 acl_save_exec_prefix
="$exec_prefix"
10600 exec_prefix
="$acl_final_exec_prefix"
10602 test $lib_includedir = UNSET
&& eval lib_includedir
=\"$includedir\"
10603 test $lib_libdir = UNSET
&& eval lib_libdir
=\"$libdir\"
10605 exec_prefix
="$acl_save_exec_prefix"
10606 prefix
="$acl_save_prefix"
10617 names_already_handled
=
10618 names_next_round
='iconv '
10619 while test -n "$names_next_round"; do
10620 names_this_round
="$names_next_round"
10622 for name
in $names_this_round; do
10624 for n
in $names_already_handled; do
10625 if test "$n" = "$name"; then
10626 already_handled
=yes
10630 if test -z "$already_handled"; then
10631 names_already_handled
="$names_already_handled $name"
10632 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10633 eval value
=\"\
$HAVE_LIB$uppername\"
10634 if test -n "$value"; then
10635 if test "$value" = yes; then
10636 eval value
=\"\
$LIB$uppername\"
10637 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10638 eval value
=\"\
$LTLIB$uppername\"
10639 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10648 if test "$lib_libdir" != NONE
; then
10649 if test -n "$shlibext" && test -f "$lib_libdir/lib$name.$shlibext"; then
10650 found_dir
="$lib_libdir"
10651 found_so
="$lib_libdir/lib$name.$shlibext"
10652 if test -f "$lib_libdir/lib$name.la"; then
10653 found_la
="$lib_libdir/lib$name.la"
10656 if test -f "$lib_libdir/lib$name.$libext"; then
10657 found_dir
="$lib_libdir"
10658 found_a
="$lib_libdir/lib$name.$libext"
10659 if test -f "$lib_libdir/lib$name.la"; then
10660 found_la
="$lib_libdir/lib$name.la"
10665 if test "X$found_dir" = "X"; then
10666 for x
in $LDFLAGS $LTLIBICONV; do
10668 acl_save_prefix
="$prefix"
10669 prefix
="$acl_final_prefix"
10670 acl_save_exec_prefix
="$exec_prefix"
10671 exec_prefix
="$acl_final_exec_prefix"
10673 exec_prefix
="$acl_save_exec_prefix"
10674 prefix
="$acl_save_prefix"
10678 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10681 found_so
="$dir/lib$name.$shlibext"
10682 if test -f "$dir/lib$name.la"; then
10683 found_la
="$dir/lib$name.la"
10686 if test -f "$dir/lib$name.$libext"; then
10688 found_a
="$dir/lib$name.$libext"
10689 if test -f "$dir/lib$name.la"; then
10690 found_la
="$dir/lib$name.la"
10696 if test "X$found_dir" != "X"; then
10701 if test "X$found_dir" != "X"; then
10702 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10703 if test "X$found_so" != "X"; then
10704 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10705 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10708 for x
in $ltrpathdirs; do
10709 if test "X$x" = "X$found_dir"; then
10714 if test -z "$haveit"; then
10715 ltrpathdirs
="$ltrpathdirs $found_dir"
10717 if test "$hardcode_direct" = yes; then
10718 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10721 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10723 for x
in $rpathdirs; do
10724 if test "X$x" = "X$found_dir"; then
10729 if test -z "$haveit"; then
10730 rpathdirs
="$rpathdirs $found_dir"
10734 for x
in $LDFLAGS $LIBICONV; do
10736 acl_save_prefix
="$prefix"
10737 prefix
="$acl_final_prefix"
10738 acl_save_exec_prefix
="$exec_prefix"
10739 exec_prefix
="$acl_final_exec_prefix"
10741 exec_prefix
="$acl_save_exec_prefix"
10742 prefix
="$acl_save_prefix"
10744 if test "X$x" = "X-L$found_dir"; then
10749 if test -z "$haveit"; then
10750 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10752 if test "$hardcode_minus_L" != no
; then
10753 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10755 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10761 if test "X$found_a" != "X"; then
10762 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10764 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10767 additional_includedir
=
10768 case "$found_dir" in
10770 if test "$lib_includedir" != NONE
; then
10771 additional_includedir
="$lib_includedir"
10775 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10776 additional_includedir
="$basedir/include"
10779 if test "X$additional_includedir" != "X"; then
10780 if test "X$additional_includedir" != "X/usr/include"; then
10782 if test "X$additional_includedir" = "X/usr/local/include"; then
10783 if test -n "$GCC"; then
10785 linux
*) haveit
=yes;;
10789 if test -z "$haveit"; then
10790 for x
in $CPPFLAGS $INCICONV; do
10792 acl_save_prefix
="$prefix"
10793 prefix
="$acl_final_prefix"
10794 acl_save_exec_prefix
="$exec_prefix"
10795 exec_prefix
="$acl_final_exec_prefix"
10797 exec_prefix
="$acl_save_exec_prefix"
10798 prefix
="$acl_save_prefix"
10800 if test "X$x" = "X-I$additional_includedir"; then
10805 if test -z "$haveit"; then
10806 if test -d "$additional_includedir"; then
10807 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10813 if test -n "$found_la"; then
10814 save_libdir
="$libdir"
10815 case "$found_la" in
10816 */* |
*\\*) .
"$found_la" ;;
10817 *) .
"./$found_la" ;;
10819 libdir
="$save_libdir"
10820 for dep
in $dependency_libs; do
10823 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10824 if test "X$additional_libdir" != "X/usr/lib"; then
10826 if test "X$additional_libdir" = "X/usr/local/lib"; then
10827 if test -n "$GCC"; then
10829 linux
*) haveit
=yes;;
10833 if test -z "$haveit"; then
10835 for x
in $LDFLAGS $LIBICONV; do
10837 acl_save_prefix
="$prefix"
10838 prefix
="$acl_final_prefix"
10839 acl_save_exec_prefix
="$exec_prefix"
10840 exec_prefix
="$acl_final_exec_prefix"
10842 exec_prefix
="$acl_save_exec_prefix"
10843 prefix
="$acl_save_prefix"
10845 if test "X$x" = "X-L$additional_libdir"; then
10850 if test -z "$haveit"; then
10851 if test -d "$additional_libdir"; then
10852 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10856 for x
in $LDFLAGS $LTLIBICONV; do
10858 acl_save_prefix
="$prefix"
10859 prefix
="$acl_final_prefix"
10860 acl_save_exec_prefix
="$exec_prefix"
10861 exec_prefix
="$acl_final_exec_prefix"
10863 exec_prefix
="$acl_save_exec_prefix"
10864 prefix
="$acl_save_prefix"
10866 if test "X$x" = "X-L$additional_libdir"; then
10871 if test -z "$haveit"; then
10872 if test -d "$additional_libdir"; then
10873 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10880 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10881 if test "$enable_rpath" != no
; then
10883 for x
in $rpathdirs; do
10884 if test "X$x" = "X$dir"; then
10889 if test -z "$haveit"; then
10890 rpathdirs
="$rpathdirs $dir"
10893 for x
in $ltrpathdirs; do
10894 if test "X$x" = "X$dir"; then
10899 if test -z "$haveit"; then
10900 ltrpathdirs
="$ltrpathdirs $dir"
10905 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10908 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10911 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10912 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10918 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10919 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10925 if test "X$rpathdirs" != "X"; then
10926 if test -n "$hardcode_libdir_separator"; then
10928 for found_dir
in $rpathdirs; do
10929 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10931 acl_save_libdir
="$libdir"
10933 eval flag
=\"$hardcode_libdir_flag_spec\"
10934 libdir
="$acl_save_libdir"
10935 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10937 for found_dir
in $rpathdirs; do
10938 acl_save_libdir
="$libdir"
10939 libdir
="$found_dir"
10940 eval flag
=\"$hardcode_libdir_flag_spec\"
10941 libdir
="$acl_save_libdir"
10942 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10946 if test "X$ltrpathdirs" != "X"; then
10947 for found_dir
in $ltrpathdirs; do
10948 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10959 am_save_CPPFLAGS
="$CPPFLAGS"
10961 for element
in $INCICONV; do
10963 for x
in $CPPFLAGS; do
10965 acl_save_prefix
="$prefix"
10966 prefix
="$acl_final_prefix"
10967 acl_save_exec_prefix
="$exec_prefix"
10968 exec_prefix
="$acl_final_exec_prefix"
10970 exec_prefix
="$acl_save_exec_prefix"
10971 prefix
="$acl_save_prefix"
10973 if test "X$x" = "X$element"; then
10978 if test -z "$haveit"; then
10979 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10984 echo "$as_me:$LINENO: checking for iconv" >&5
10985 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10986 if test "${am_cv_func_iconv+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10990 am_cv_func_iconv
="no, consider installing GNU libiconv"
10992 cat >conftest.
$ac_ext <<_ACEOF
10995 cat confdefs.h
>>conftest.
$ac_ext
10996 cat >>conftest.
$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <stdlib.h>
11003 iconv_t cd = iconv_open("","");
11004 iconv(cd,NULL,NULL,NULL,NULL);
11010 rm -f conftest.
$ac_objext conftest
$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>conftest.er1
11014 grep -v '^ *+' conftest.er1
>conftest.err
11016 cat conftest.err
>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try
='test -z "$ac_c_werror_flag"
11020 || test ! -s conftest.err'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try
='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 am_cv_func_iconv
=yes
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.
$ac_ext >&5
11038 rm -f conftest.err conftest.
$ac_objext \
11039 conftest
$ac_exeext conftest.
$ac_ext
11040 if test "$am_cv_func_iconv" != yes; then
11041 am_save_LIBS
="$LIBS"
11042 LIBS
="$LIBS $LIBICONV"
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <stdlib.h>
11054 iconv_t cd = iconv_open("","");
11055 iconv(cd,NULL,NULL,NULL,NULL);
11061 rm -f conftest.
$ac_objext conftest
$ac_exeext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11063 (eval $ac_link) 2>conftest.er1
11065 grep -v '^ *+' conftest.er1
>conftest.err
11067 cat conftest.err
>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try
='test -z "$ac_c_werror_flag"
11071 || test ! -s conftest.err'
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; } &&
11077 { ac_try
='test -s conftest$ac_exeext'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11083 am_cv_lib_iconv
=yes
11084 am_cv_func_iconv
=yes
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.
$ac_ext >&5
11090 rm -f conftest.err conftest.
$ac_objext \
11091 conftest
$ac_exeext conftest.
$ac_ext
11092 LIBS
="$am_save_LIBS"
11096 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11097 echo "${ECHO_T}$am_cv_func_iconv" >&6
11098 if test "$am_cv_func_iconv" = yes; then
11100 cat >>confdefs.h
<<\_ACEOF
11101 #define HAVE_ICONV 1
11105 if test "$am_cv_lib_iconv" = yes; then
11106 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11107 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11108 echo "$as_me:$LINENO: result: $LIBICONV" >&5
11109 echo "${ECHO_T}$LIBICONV" >&6
11111 CPPFLAGS
="$am_save_CPPFLAGS"
11118 if test "$am_cv_func_iconv" = yes; then
11119 echo "$as_me:$LINENO: checking for iconv declaration" >&5
11120 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11121 if test "${am_cv_proto_iconv+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.
$ac_ext <<_ACEOF
11128 cat confdefs.h
>>conftest.
$ac_ext
11129 cat >>conftest.
$ac_ext <<_ACEOF
11130 /* end confdefs.h. */
11132 #include <stdlib.h>
11138 #if defined(__STDC__) || defined(__cplusplus)
11139 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11152 rm -f conftest.
$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154 (eval $ac_compile) 2>conftest.er1
11156 grep -v '^ *+' conftest.er1
>conftest.err
11158 cat conftest.err
>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } &&
11161 { ac_try
='test -z "$ac_c_werror_flag"
11162 || test ! -s conftest.err'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; } &&
11168 { ac_try
='test -s conftest.$ac_objext'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
11174 am_cv_proto_iconv_arg1
=""
11176 echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.
$ac_ext >&5
11179 am_cv_proto_iconv_arg1
="const"
11181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11182 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);"
11185 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11186 echo "$as_me:$LINENO: result: ${ac_t:-
11187 }$am_cv_proto_iconv" >&5
11188 echo "${ECHO_T}${ac_t:-
11189 }$am_cv_proto_iconv" >&6
11191 cat >>confdefs.h
<<_ACEOF
11192 #define ICONV_CONST $am_cv_proto_iconv_arg1
11197 # Until we have in-tree GNU iconv:
11202 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11203 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11204 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 cat >conftest.
$ac_ext <<_ACEOF
11210 cat confdefs.h
>>conftest.
$ac_ext
11211 cat >>conftest.
$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 #include <locale.h>
11222 rm -f conftest.
$ac_objext conftest
$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>conftest.er1
11226 grep -v '^ *+' conftest.er1
>conftest.err
11228 cat conftest.err
>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try
='test -z "$ac_c_werror_flag"
11232 || test ! -s conftest.err'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; } &&
11238 { ac_try
='test -s conftest$ac_exeext'
11239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240 (eval $ac_try) 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; }; then
11244 am_cv_val_LC_MESSAGES
=yes
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.
$ac_ext >&5
11249 am_cv_val_LC_MESSAGES
=no
11251 rm -f conftest.err conftest.
$ac_objext \
11252 conftest
$ac_exeext conftest.
$ac_ext
11254 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11255 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11256 if test $am_cv_val_LC_MESSAGES = yes; then
11258 cat >>confdefs.h
<<\_ACEOF
11259 #define HAVE_LC_MESSAGES 1
11266 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11267 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11268 if test "${am_cv_langinfo_codeset+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 cat >conftest.
$ac_ext <<_ACEOF
11274 cat confdefs.h
>>conftest.
$ac_ext
11275 cat >>conftest.
$ac_ext <<_ACEOF
11276 /* end confdefs.h. */
11277 #include <langinfo.h>
11281 char* cs = nl_langinfo(CODESET);
11286 rm -f conftest.
$ac_objext conftest
$ac_exeext
11287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11288 (eval $ac_link) 2>conftest.er1
11290 grep -v '^ *+' conftest.er1
>conftest.err
11292 cat conftest.err
>&5
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); } &&
11295 { ac_try
='test -z "$ac_c_werror_flag"
11296 || test ! -s conftest.err'
11297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11298 (eval $ac_try) 2>&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; } &&
11302 { ac_try
='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 am_cv_langinfo_codeset
=yes
11310 echo "$as_me: failed program was:" >&5
11311 sed 's/^/| /' conftest.
$ac_ext >&5
11313 am_cv_langinfo_codeset
=no
11315 rm -f conftest.err conftest.
$ac_objext \
11316 conftest
$ac_exeext conftest.
$ac_ext
11319 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11320 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11321 if test $am_cv_langinfo_codeset = yes; then
11323 cat >>confdefs.h
<<\_ACEOF
11324 #define HAVE_LANGINFO_CODESET 1
11330 # We will need to find libiberty.h and ansidecl.h
11331 saved_CFLAGS
="$CFLAGS"
11332 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11372 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
11373 strsignal strstr strverscmp \
11374 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11375 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
11377 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11378 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11379 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11380 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.
$ac_ext <<_ACEOF
11386 cat confdefs.h
>>conftest.
$ac_ext
11387 cat >>conftest.
$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11390 #define $ac_tr_decl 1
11392 #include "ansidecl.h"
11393 #include "system.h"
11399 char *(*pfn) = (char *(*)) $ac_func ;
11405 rm -f conftest.
$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try
='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try
='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "gcc_cv_have_decl_$ac_func=yes"
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.
$ac_ext >&5
11432 eval "gcc_cv_have_decl_$ac_func=no"
11434 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11437 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11438 echo "$as_me:$LINENO: result: yes" >&5
11439 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11440 #define $ac_tr_decl 1
11444 echo "$as_me:$LINENO: result: no" >&5
11445 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11446 #define $ac_tr_decl 0
11457 for ac_func
in getrlimit setrlimit getrusage
11459 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11460 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11461 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11462 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11465 cat >conftest.
$ac_ext <<_ACEOF
11468 cat confdefs.h
>>conftest.
$ac_ext
11469 cat >>conftest.
$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 #define $ac_tr_decl 1
11474 #include "ansidecl.h"
11475 #include "system.h"
11476 #ifdef HAVE_SYS_RESOURCE_H
11477 #include <sys/resource.h>
11485 char *(*pfn) = (char *(*)) $ac_func ;
11491 rm -f conftest.
$ac_objext
11492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493 (eval $ac_compile) 2>conftest.er1
11495 grep -v '^ *+' conftest.er1
>conftest.err
11497 cat conftest.err
>&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try
='test -z "$ac_c_werror_flag"
11501 || test ! -s conftest.err'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; } &&
11507 { ac_try
='test -s conftest.$ac_objext'
11508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11509 (eval $ac_try) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; }; then
11513 eval "gcc_cv_have_decl_$ac_func=yes"
11515 echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.
$ac_ext >&5
11518 eval "gcc_cv_have_decl_$ac_func=no"
11520 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11523 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11524 echo "$as_me:$LINENO: result: yes" >&5
11525 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11526 #define $ac_tr_decl 1
11530 echo "$as_me:$LINENO: result: no" >&5
11531 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11532 #define $ac_tr_decl 0
11540 cat >conftest.
$ac_ext <<_ACEOF
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11547 #include "ansidecl.h"
11548 #include "system.h"
11549 #ifdef HAVE_SYS_RESOURCE_H
11550 #include <sys/resource.h>
11561 rm -f conftest.
$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>conftest.er1
11565 grep -v '^ *+' conftest.er1
>conftest.err
11567 cat conftest.err
>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } &&
11570 { ac_try
='test -z "$ac_c_werror_flag"
11571 || test ! -s conftest.err'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try
='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.
$ac_ext >&5
11589 cat >>confdefs.h
<<\_ACEOF
11590 #define rlim_t long
11594 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11596 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11597 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11598 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11599 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11601 for ac_func
in ldgetname
11603 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11604 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11605 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11606 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 cat >conftest.
$ac_ext <<_ACEOF
11612 cat confdefs.h
>>conftest.
$ac_ext
11613 cat >>conftest.
$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11616 #define $ac_tr_decl 1
11618 #include "ansidecl.h"
11619 #include "system.h"
11620 #ifdef HAVE_LDFCN_H
11631 char *(*pfn) = (char *(*)) $ac_func ;
11637 rm -f conftest.
$ac_objext
11638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11639 (eval $ac_compile) 2>conftest.er1
11641 grep -v '^ *+' conftest.er1
>conftest.err
11643 cat conftest.err
>&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try
='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try
='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 eval "gcc_cv_have_decl_$ac_func=yes"
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.
$ac_ext >&5
11664 eval "gcc_cv_have_decl_$ac_func=no"
11666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11669 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11670 echo "$as_me:$LINENO: result: yes" >&5
11671 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11672 #define $ac_tr_decl 1
11676 echo "$as_me:$LINENO: result: no" >&5
11677 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11678 #define $ac_tr_decl 0
11687 for ac_func
in times
11689 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11690 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11691 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11692 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.
$ac_ext <<_ACEOF
11698 cat confdefs.h
>>conftest.
$ac_ext
11699 cat >>conftest.
$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11702 #define $ac_tr_decl 1
11704 #include "ansidecl.h"
11705 #include "system.h"
11706 #ifdef HAVE_SYS_TIMES_H
11707 #include <sys/times.h>
11715 char *(*pfn) = (char *(*)) $ac_func ;
11721 rm -f conftest.
$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>conftest.er1
11725 grep -v '^ *+' conftest.er1
>conftest.err
11727 cat conftest.err
>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try
='test -z "$ac_c_werror_flag"
11731 || test ! -s conftest.err'
11732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733 (eval $ac_try) 2>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); }; } &&
11737 { ac_try
='test -s conftest.$ac_objext'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "gcc_cv_have_decl_$ac_func=yes"
11745 echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.
$ac_ext >&5
11748 eval "gcc_cv_have_decl_$ac_func=no"
11750 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11753 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11754 echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11756 #define $ac_tr_decl 1
11760 echo "$as_me:$LINENO: result: no" >&5
11761 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11762 #define $ac_tr_decl 0
11771 for ac_func
in sigaltstack
11773 ac_tr_decl
=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11774 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11775 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11776 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 cat >conftest.
$ac_ext <<_ACEOF
11782 cat confdefs.h
>>conftest.
$ac_ext
11783 cat >>conftest.
$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11786 #define $ac_tr_decl 1
11788 #include "ansidecl.h"
11789 #include "system.h"
11790 #include <signal.h>
11797 char *(*pfn) = (char *(*)) $ac_func ;
11803 rm -f conftest.
$ac_objext
11804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11805 (eval $ac_compile) 2>conftest.er1
11807 grep -v '^ *+' conftest.er1
>conftest.err
11809 cat conftest.err
>&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try
='test -z "$ac_c_werror_flag"
11813 || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try
='test -s conftest.$ac_objext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "gcc_cv_have_decl_$ac_func=yes"
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.
$ac_ext >&5
11830 eval "gcc_cv_have_decl_$ac_func=no"
11832 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11835 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11836 echo "$as_me:$LINENO: result: yes" >&5
11837 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h
<<_ACEOF
11838 #define $ac_tr_decl 1
11842 echo "$as_me:$LINENO: result: no" >&5
11843 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h
<<_ACEOF
11844 #define $ac_tr_decl 0
11852 # More time-related stuff.
11853 echo "$as_me:$LINENO: checking for struct tms" >&5
11854 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11855 if test "${ac_cv_struct_tms+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 cat >conftest.
$ac_ext <<_ACEOF
11862 cat confdefs.h
>>conftest.
$ac_ext
11863 cat >>conftest.
$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11866 #include "ansidecl.h"
11867 #include "system.h"
11868 #ifdef HAVE_SYS_TIMES_H
11869 #include <sys/times.h>
11880 rm -f conftest.
$ac_objext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>conftest.er1
11884 grep -v '^ *+' conftest.er1
>conftest.err
11886 cat conftest.err
>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try
='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try
='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_cv_struct_tms
=yes
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.
$ac_ext >&5
11907 ac_cv_struct_tms
=no
11909 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11911 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11912 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11913 if test $ac_cv_struct_tms = yes; then
11915 cat >>confdefs.h
<<\_ACEOF
11916 #define HAVE_STRUCT_TMS 1
11921 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11922 # revisit after autoconf 2.50.
11923 echo "$as_me:$LINENO: checking for clock_t" >&5
11924 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11925 if test "${gcc_cv_type_clock_t+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 #include "ansidecl.h"
11937 #include "system.h"
11947 rm -f conftest.
$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>conftest.er1
11951 grep -v '^ *+' conftest.er1
>conftest.err
11953 cat conftest.err
>&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try
='test -z "$ac_c_werror_flag"
11957 || test ! -s conftest.err'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try
='test -s conftest.$ac_objext'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 gcc_cv_type_clock_t
=yes
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.
$ac_ext >&5
11974 gcc_cv_type_clock_t
=no
11976 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11978 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11979 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11980 if test $gcc_cv_type_clock_t = yes; then
11982 cat >>confdefs.h
<<\_ACEOF
11983 #define HAVE_CLOCK_T 1
11988 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11989 CFLAGS
="$saved_CFLAGS"
11991 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11992 if test "${enable_initfini_array+set}" = set; then
11993 enableval
="$enable_initfini_array"
11997 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11998 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11999 if test "${gcc_cv_initfini_array+set}" = set; then
12000 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 if test "$cross_compiling" = yes; then
12003 gcc_cv_initfini_array
=no
12005 cat >conftest.
$ac_ext <<_ACEOF
12008 cat confdefs.h
>>conftest.
$ac_ext
12009 cat >>conftest.
$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12013 int main (void) { return x; }
12014 int foo (void) { x = 0; }
12015 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12017 rm -f conftest
$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 gcc_cv_initfini_array
=yes
12030 echo "$as_me: program exited with status $ac_status" >&5
12031 echo "$as_me: failed program was:" >&5
12032 sed 's/^/| /' conftest.
$ac_ext >&5
12034 ( exit $ac_status )
12035 gcc_cv_initfini_array
=no
12037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12040 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12041 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12042 enable_initfini_array
=$gcc_cv_initfini_array
12045 if test $enable_initfini_array = yes; then
12047 cat >>confdefs.h
<<\_ACEOF
12048 #define HAVE_INITFINI_ARRAY 1
12053 # mkdir takes a single argument on some systems.
12054 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12055 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12056 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 cat >conftest.
$ac_ext <<_ACEOF
12062 cat confdefs.h
>>conftest.
$ac_ext
12063 cat >>conftest.
$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 #include <sys/types.h>
12067 #ifdef HAVE_SYS_STAT_H
12068 # include <sys/stat.h>
12070 #ifdef HAVE_UNISTD_H
12071 # include <unistd.h>
12073 #ifdef HAVE_DIRECT_H
12074 # include <direct.h>
12084 rm -f conftest.
$ac_objext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12086 (eval $ac_compile) 2>conftest.er1
12088 grep -v '^ *+' conftest.er1
>conftest.err
12090 cat conftest.err
>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try
='test -z "$ac_c_werror_flag"
12094 || test ! -s conftest.err'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try
='test -s conftest.$ac_objext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 gcc_cv_mkdir_takes_one_arg
=no
12108 echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.
$ac_ext >&5
12111 gcc_cv_mkdir_takes_one_arg
=yes
12113 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12115 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12116 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12117 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12119 cat >>confdefs.h
<<\_ACEOF
12120 #define MKDIR_TAKES_ONE_ARG 1
12132 # With Setjmp/Longjmp based exception handling.
12133 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12134 if test "${enable_sjlj_exceptions+set}" = set; then
12135 enableval
="$enable_sjlj_exceptions"
12136 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
12138 cat >>confdefs.h
<<_ACEOF
12139 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12144 # For platforms with the unwind ABI which includes an unwind library,
12145 # libunwind, we can choose to use the system libunwind.
12147 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12148 if test "${with_system_libunwind+set}" = set; then
12149 withval
="$with_system_libunwind"
12153 # config.gcc also contains tests of with_system_libunwind.
12154 if test x
$with_system_libunwind = xyes
; then
12156 cat >>confdefs.h
<<\_ACEOF
12157 #define HAVE_GETIPINFO 1
12162 # --------------------------------------------------------
12163 # Build, host, and target specific configuration fragments
12164 # --------------------------------------------------------
12166 # Collect build-machine-specific information.
12167 .
${srcdir}/config.build
12169 # Collect host-machine-specific information.
12170 .
${srcdir}/config.
host
12174 # Collect target-machine-specific information.
12175 .
${srcdir}/config.gcc
12177 extra_objs
="${host_extra_objs} ${extra_objs}"
12178 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12180 # Default the target-machine variables that were not explicitly set.
12181 if test x
"$tm_file" = x
12182 then tm_file
=$cpu_type/$cpu_type.h
; fi
12184 if test x
"$extra_headers" = x
12185 then extra_headers
=; fi
12187 if test x
$md_file = x
12188 then md_file
=$cpu_type/$cpu_type.md
; fi
12190 if test x
$out_file = x
12191 then out_file
=$cpu_type/$cpu_type.c
; fi
12193 if test x
"$tmake_file" = x
12194 then tmake_file
=$cpu_type/t-
$cpu_type
12197 if test x
"$dwarf2" = xyes
12198 then tm_file
="$tm_file tm-dwarf2.h"
12201 # Say what files are being used for the output code and MD file.
12202 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12203 echo "Using \`$srcdir/config/$md_file' as machine description file."
12205 # If any of the xm_file variables contain nonexistent files, warn
12206 # about them and drop them.
12209 for x
in $build_xm_file; do
12210 if test -f $srcdir/config
/$x
12212 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12213 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12216 build_xm_file
="$bx"
12219 for x
in $host_xm_file; do
12220 if test -f $srcdir/config
/$x
12222 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12223 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12229 for x
in $xm_file; do
12230 if test -f $srcdir/config
/$x
12232 else { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12233 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12239 for f
in $tm_file; do
12242 if test $count = ax
; then
12243 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12245 echo "Using the following target machine macro files:"
12246 for f
in $tm_file; do
12247 echo " $srcdir/config/$f"
12251 if test x
$need_64bit_hwint = xyes
; then
12253 cat >>confdefs.h
<<\_ACEOF
12254 #define NEED_64BIT_HOST_WIDE_INT 1
12259 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12261 cat >>confdefs.h
<<\_ACEOF
12262 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12268 for f
in $host_xm_file; do
12271 if test $count = a
; then
12273 elif test $count = ax
; then
12274 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12276 echo "Using the following host machine macro files:"
12277 for f
in $host_xm_file; do
12278 echo " $srcdir/config/$f"
12281 echo "Using ${out_host_hook_obj} for host machine hooks."
12283 if test "$host_xm_file" != "$build_xm_file"; then
12285 for f
in $build_xm_file; do
12288 if test $count = a
; then
12290 elif test $count = ax
; then
12291 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12293 echo "Using the following build machine macro files:"
12294 for f
in $build_xm_file; do
12295 echo " $srcdir/config/$f"
12301 powerpc
*-*-darwin*)
12302 echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12303 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12304 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 cat >conftest.
$ac_ext <<_ACEOF
12309 #include <sys/signal.h>
12310 #include <ucontext.h>
12311 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12314 rm -f conftest.
$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316 (eval $ac_compile) 2>conftest.er1
12318 grep -v '^ *+' conftest.er1
>conftest.err
12320 cat conftest.err
>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try
='test -z "$ac_c_werror_flag"
12324 || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try
='test -s conftest.$ac_objext'
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 gcc_cv_mcontext_underscores
=no
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.
$ac_ext >&5
12341 gcc_cv_mcontext_underscores
=yes
12343 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12345 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12346 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12347 if test $gcc_cv_mcontext_underscores = yes; then
12349 cat >>confdefs.h
<<\_ACEOF
12350 #define HAS_MCONTEXT_T_UNDERSCORES
12361 # Check if a valid thread package
12362 case ${enable_threads} in
12365 target_thread_file
='single'
12369 target_thread_file
='single'
12371 aix | dce | gnat | irix | posix | posix95 | rtems | \
12372 single | solaris | vxworks | win32
)
12373 target_thread_file
=${enable_threads}
12376 echo "${enable_threads} is an unknown thread package" 1>&2
12381 if test x
${thread_file} = x
; then
12382 # No thread file set by target-specific clauses in config.gcc,
12383 # so use file chosen by default logic above
12384 thread_file
=${target_thread_file}
12387 # Make gthr-default.h if we have a thread file.
12389 if test $thread_file != single
; then
12390 rm -f gthr-default.h
12391 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12392 gthread_flags
=-DHAVE_GTHR_DEFAULT
12401 if test x
$enable___cxa_atexit = xyes || \
12402 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12403 if test x
$host = x
$target; then
12405 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12406 # keyed to flag_use_cxa_atexit
12411 echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12412 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12413 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 cat >conftest.
$ac_ext <<_ACEOF
12419 cat confdefs.h
>>conftest.
$ac_ext
12420 cat >>conftest.
$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12422 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12424 #define __cxa_atexit innocuous___cxa_atexit
12426 /* System header to define __stub macros and hopefully few prototypes,
12427 which can conflict with char __cxa_atexit (); below.
12428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12429 <limits.h> exists even on freestanding compilers. */
12432 # include <limits.h>
12434 # include <assert.h>
12437 #undef __cxa_atexit
12439 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */
12446 char __cxa_atexit ();
12447 /* The GNU C library defines this for functions which it implements
12448 to always fail with ENOSYS. Some functions are actually named
12449 something starting with __ and the normal name is an alias. */
12450 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12453 char (*f) () = __cxa_atexit;
12462 return f != __cxa_atexit;
12467 rm -f conftest.
$ac_objext conftest
$ac_exeext
12468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12469 (eval $ac_link) 2>conftest.er1
12471 grep -v '^ *+' conftest.er1
>conftest.err
12473 cat conftest.err
>&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try
='test -z "$ac_c_werror_flag"
12477 || test ! -s conftest.err'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; } &&
12483 { ac_try
='test -s conftest$ac_exeext'
12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485 (eval $ac_try) 2>&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; }; then
12489 ac_cv_func___cxa_atexit
=yes
12491 echo "$as_me: failed program was:" >&5
12492 sed 's/^/| /' conftest.
$ac_ext >&5
12494 ac_cv_func___cxa_atexit
=no
12496 rm -f conftest.err conftest.
$ac_objext \
12497 conftest
$ac_exeext conftest.
$ac_ext
12499 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12500 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12501 if test $ac_cv_func___cxa_atexit = yes; then
12504 echo "__cxa_atexit can't be enabled on this target"
12510 # We can't check for __cxa_atexit when building a cross, so assume
12514 if test x
$use_cxa_atexit = xyes
; then
12516 cat >>confdefs.h
<<\_ACEOF
12517 #define DEFAULT_USE_CXA_ATEXIT 2
12524 if test x
$with_system_libunwind = xyes
; then
12525 if test x
$host = x
$target; then
12526 echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12527 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12528 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 ac_func_search_save_LIBS
=$LIBS
12532 ac_cv_search__Unwind_GetIPInfo
=no
12533 cat >conftest.
$ac_ext <<_ACEOF
12536 cat confdefs.h
>>conftest.
$ac_ext
12537 cat >>conftest.
$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12540 /* Override any gcc2 internal prototype to avoid an error. */
12544 /* We use char because int might match the return type of a gcc2
12545 builtin and then its argument prototype would still apply. */
12546 char _Unwind_GetIPInfo ();
12550 _Unwind_GetIPInfo ();
12555 rm -f conftest.
$ac_objext conftest
$ac_exeext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12557 (eval $ac_link) 2>conftest.er1
12559 grep -v '^ *+' conftest.er1
>conftest.err
12561 cat conftest.err
>&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } &&
12564 { ac_try
='test -z "$ac_c_werror_flag"
12565 || test ! -s conftest.err'
12566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); }; } &&
12571 { ac_try
='test -s conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_search__Unwind_GetIPInfo
="none required"
12579 echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.
$ac_ext >&5
12583 rm -f conftest.err conftest.
$ac_objext \
12584 conftest
$ac_exeext conftest.
$ac_ext
12585 if test "$ac_cv_search__Unwind_GetIPInfo" = no
; then
12586 for ac_lib
in unwind
; do
12587 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12588 cat >conftest.
$ac_ext <<_ACEOF
12591 cat confdefs.h
>>conftest.
$ac_ext
12592 cat >>conftest.
$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12595 /* Override any gcc2 internal prototype to avoid an error. */
12599 /* We use char because int might match the return type of a gcc2
12600 builtin and then its argument prototype would still apply. */
12601 char _Unwind_GetIPInfo ();
12605 _Unwind_GetIPInfo ();
12610 rm -f conftest.
$ac_objext conftest
$ac_exeext
12611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12612 (eval $ac_link) 2>conftest.er1
12614 grep -v '^ *+' conftest.er1
>conftest.err
12616 cat conftest.err
>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } &&
12619 { ac_try
='test -z "$ac_c_werror_flag"
12620 || test ! -s conftest.err'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; } &&
12626 { ac_try
='test -s conftest$ac_exeext'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 ac_cv_search__Unwind_GetIPInfo
="-l$ac_lib"
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.
$ac_ext >&5
12639 rm -f conftest.err conftest.
$ac_objext \
12640 conftest
$ac_exeext conftest.
$ac_ext
12643 LIBS
=$ac_func_search_save_LIBS
12645 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12646 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12647 if test "$ac_cv_search__Unwind_GetIPInfo" != no
; then
12648 test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS
="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12657 if test x
$use_getipinfo = xyes
; then
12659 cat >>confdefs.h
<<\_ACEOF
12660 #define HAVE_GETIPINFO 1
12664 echo "The system unwind library does not support _Unwind_GetIPInfo."
12667 # Look for a file containing extra machine modes.
12668 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12669 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12672 cat >>confdefs.h
<<_ACEOF
12673 #define EXTRA_MODES_FILE "config/$extra_modes"
12678 # Convert extra_options into a form suitable for Makefile use.
12680 for f
in $extra_options; do
12681 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12685 # auto-host.h is the file containing items generated by autoconf and is
12686 # the first file included by config.h.
12687 # If host=build, it is correct to have bconfig include auto-host.h
12688 # as well. If host!=build, we are in error and need to do more
12689 # work to find out the build config parameters.
12690 if test x
$host = x
$build
12692 build_auto
=auto-host.h
12694 # We create a subdir, then run autoconf in the subdir.
12695 # To prevent recursion we set host and build for the new
12696 # invocation of configure to the build for this invocation
12703 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12704 *) realsrcdir
=..
/${srcdir};;
12706 saved_CFLAGS
="${CFLAGS}"
12707 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12708 ${realsrcdir}/configure \
12709 --enable-languages=${enable_languages-all} \
12710 --target=$target_alias --host=$build_alias --build=$build_alias
12711 CFLAGS
="${saved_CFLAGS}"
12713 # We just finished tests for the build machine, so rename
12714 # the file auto-build.h in the gcc directory.
12715 mv auto-host.h ..
/auto-build.h
12718 build_auto
=auto-build.h
12722 tm_file
="${tm_file} defaults.h"
12723 tm_p_file
="${tm_p_file} tm-preds.h"
12724 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12725 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12726 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12727 # put this back in temporarily.
12728 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12734 # Compile in configure arguments.
12735 if test -f configargs.h
; then
12736 # Being re-configured.
12737 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12738 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12740 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12743 # Double all backslashes and backslash all quotes to turn
12744 # gcc_config_arguments into a C string.
12745 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12746 $gcc_config_arguments
12748 gcc_config_arguments_str
=`cat conftest.out`
12751 cat > configargs.h
<<EOF
12752 /* Generated automatically. */
12753 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12754 static const char thread_model[] = "$thread_file";
12756 static const struct {
12757 const char *name, *value;
12758 } configure_default_options[] = $configure_default_options;
12761 # Internationalization
12762 # If we haven't got the data from the intl directory,
12763 # assume NLS is disabled.
12772 if test -f ..
/intl
/config.intl
; then
12773 . ..
/intl
/config.intl
12775 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12776 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12777 if test x
"$USE_NLS" != xyes
; then
12778 echo "$as_me:$LINENO: result: no" >&5
12779 echo "${ECHO_T}no" >&6
12781 echo "$as_me:$LINENO: result: yes" >&5
12782 echo "${ECHO_T}yes" >&6
12784 cat >>confdefs.h
<<\_ACEOF
12785 #define ENABLE_NLS 1
12789 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12790 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12791 # Look for .po and .gmo files in the source directory.
12794 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12795 # If there aren't any .gmo files the shell will give us the
12796 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12798 case "$cat" in *\
**)
12801 # The quadruple backslash is collapsed to a double backslash
12802 # by the backticks, then collapsed again by the double quotes,
12803 # leaving us with one backslash in the sed expression (right
12804 # before the dot that mustn't act as a wildcard).
12805 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12806 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12807 # The user is allowed to set LINGUAS to a list of languages to
12808 # install catalogs for. If it's empty that means "all of them."
12809 if test "x$LINGUAS" = x
; then
12810 CATALOGS
="$CATALOGS $cat"
12811 XLINGUAS
="$XLINGUAS $lang"
12813 case "$LINGUAS" in *$lang*)
12814 CATALOGS
="$CATALOGS $cat"
12815 XLINGUAS
="$XLINGUAS $lang"
12820 LINGUAS
="$XLINGUAS"
12821 echo "$as_me:$LINENO: result: $LINGUAS" >&5
12822 echo "${ECHO_T}$LINGUAS" >&6
12835 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12836 # -liconv on the link line twice.
12837 case "$LIBINTL" in *$LIBICONV*)
12841 # Check whether --enable-secureplt or --disable-secureplt was given.
12842 if test "${enable_secureplt+set}" = set; then
12843 enableval
="$enable_secureplt"
12847 # Windows32 Registry support for specifying GCC installation paths.
12848 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12849 if test "${enable_win32_registry+set}" = set; then
12850 enableval
="$enable_win32_registry"
12855 win32 | pe | cygwin
* | mingw32
* | uwin
*)
12856 if test "x$enable_win32_registry" != xno
; then
12857 echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12858 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12859 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 ac_func_search_save_LIBS
=$LIBS
12863 ac_cv_search_RegOpenKeyExA
=no
12864 cat >conftest.
$ac_ext <<_ACEOF
12867 cat confdefs.h
>>conftest.
$ac_ext
12868 cat >>conftest.
$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12871 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */
12877 char RegOpenKeyExA ();
12886 rm -f conftest.
$ac_objext conftest
$ac_exeext
12887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12888 (eval $ac_link) 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try
='test -z "$ac_c_werror_flag"
12896 || test ! -s conftest.err'
12897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try
='test -s conftest$ac_exeext'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; }; then
12908 ac_cv_search_RegOpenKeyExA
="none required"
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.
$ac_ext >&5
12914 rm -f conftest.err conftest.
$ac_objext \
12915 conftest
$ac_exeext conftest.
$ac_ext
12916 if test "$ac_cv_search_RegOpenKeyExA" = no
; then
12917 for ac_lib
in advapi32
; do
12918 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12919 cat >conftest.
$ac_ext <<_ACEOF
12922 cat confdefs.h
>>conftest.
$ac_ext
12923 cat >>conftest.
$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12926 /* Override any gcc2 internal prototype to avoid an error. */
12930 /* We use char because int might match the return type of a gcc2
12931 builtin and then its argument prototype would still apply. */
12932 char RegOpenKeyExA ();
12941 rm -f conftest.
$ac_objext conftest
$ac_exeext
12942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12943 (eval $ac_link) 2>conftest.er1
12945 grep -v '^ *+' conftest.er1
>conftest.err
12947 cat conftest.err
>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try
='test -z "$ac_c_werror_flag"
12951 || test ! -s conftest.err'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; } &&
12957 { ac_try
='test -s conftest$ac_exeext'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; }; then
12963 ac_cv_search_RegOpenKeyExA
="-l$ac_lib"
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.
$ac_ext >&5
12970 rm -f conftest.err conftest.
$ac_objext \
12971 conftest
$ac_exeext conftest.
$ac_ext
12974 LIBS
=$ac_func_search_save_LIBS
12976 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12977 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12978 if test "$ac_cv_search_RegOpenKeyExA" != no
; then
12979 test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS
="$ac_cv_search_RegOpenKeyExA $LIBS"
12982 enable_win32_registry
=no
12987 if test "x$enable_win32_registry" != xno
; then
12989 cat >>confdefs.h
<<\_ACEOF
12990 #define ENABLE_WIN32_REGISTRY 1
12994 if test "x$enable_win32_registry" != xyes \
12995 && test "x$enable_win32_registry" != x
; then
12997 cat >>confdefs.h
<<_ACEOF
12998 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13006 # Get an absolute path to the GCC top-level source directory
13007 holddir
=`${PWDCMD-pwd}`
13009 topdir
=`${PWDCMD-pwd}`
13012 # Conditionalize the makefile for this host machine.
13014 for f
in ${host_xmake_file}
13016 if test -f ${srcdir}/config
/$f
13018 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
13022 # Conditionalize the makefile for this target machine.
13024 for f
in ${tmake_file}
13026 if test -f ${srcdir}/config
/$f
13028 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
13031 tmake_file
="${tmake_file_}"
13033 # This is a terrible hack which will go away some day.
13034 host_cc_for_libada
=${CC}
13037 out_object_file
=`basename $out_file .c`.o
13039 tm_file_list
="options.h"
13040 tm_include_list
="options.h"
13041 for f
in $tm_file; do
13044 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
13045 tm_include_list
="${tm_include_list} $f"
13048 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
13049 tm_include_list
="${tm_include_list} config/$f"
13056 for f
in $tm_p_file; do
13059 tm_p_file_list
="${tm_p_file_list} $f"
13060 tm_p_include_list
="${tm_p_include_list} $f"
13063 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
13064 tm_p_include_list
="${tm_p_include_list} config/$f"
13070 for f
in $xm_file; do
13073 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
13074 xm_include_list
="${xm_include_list} $f"
13077 xm_file_list
="${xm_file_list} $f"
13078 xm_include_list
="${xm_include_list} $f"
13081 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
13082 xm_include_list
="${xm_include_list} config/$f"
13088 host_xm_include_list
=
13089 for f
in $host_xm_file; do
13092 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
13093 host_xm_include_list
="${host_xm_include_list} $f"
13096 host_xm_file_list
="${host_xm_file_list} $f"
13097 host_xm_include_list
="${host_xm_include_list} $f"
13100 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
13101 host_xm_include_list
="${host_xm_include_list} config/$f"
13106 build_xm_file_list
=
13107 for f
in $build_xm_file; do
13110 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
13111 build_xm_include_list
="${build_xm_include_list} $f"
13113 auto-build.h | auto-host.h
)
13114 build_xm_file_list
="${build_xm_file_list} $f"
13115 build_xm_include_list
="${build_xm_include_list} $f"
13118 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
13119 build_xm_include_list
="${build_xm_include_list} config/$f"
13124 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13125 # cross-compiler which does not use the native headers and libraries.
13126 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13129 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13131 if test "x$with_build_sysroot" != x
; then
13132 build_system_header_dir
=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
13134 # This value is used, even on a native system, because
13135 # CROSS_SYSTEM_HEADER_DIR is just
13136 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13137 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
13140 if test x
$host != x
$target
13142 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
13144 SYSTEM_HEADER_DIR
=$build_system_header_dir
13145 case "$host","$target" in
13146 # Darwin crosses can use the host system's libraries and headers,
13147 # because of the fat library support. Of course, it must be the
13148 # same version of Darwin on both sides. Allow the user to
13149 # just say --target=foo-darwin without a version number to mean
13150 # "the version on this system".
13151 *-*-darwin*,*-*-darwin*)
13152 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
13153 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
13154 if test $hostos = $targetos -o $targetos = darwin
; then
13156 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
13161 i?
86-*-*,x86_64-
*-* \
13162 | powerpc
*-*-*,powerpc64
*-*-*)
13163 CROSS
="$CROSS -DNATIVE_CROSS" ;;
13165 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
13166 SYSTEM_HEADER_DIR
=$build_system_header_dir
13169 # If this is a cross-compiler that does not
13170 # have its own set of headers then define
13173 # If this is using newlib, without having the headers available now,
13174 # then define inhibit_libc in LIBGCC2_CFLAGS.
13175 # This prevents libgcc2 from containing any code which requires libc
13178 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
13179 test x
$with_newlib = xyes
; } &&
13180 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
13185 # When building gcc with a cross-compiler, we need to adjust things so
13186 # that the generator programs are still built with the native compiler.
13187 # Also, we cannot run fixincludes or fix-header.
13189 # These are the normal (build=host) settings:
13190 CC_FOR_BUILD
='$(CC)'
13191 BUILD_CFLAGS
='$(ALL_CFLAGS)'
13192 STMP_FIXINC
=stmp-fixinc
13194 # Possibly disable fixproto, on a per-target basis.
13195 case ${use_fixproto} in
13200 STMP_FIXPROTO
=stmp-fixproto
13205 # And these apply if build != host, or we are generating coverage data
13206 if test x
$build != x
$host ||
test "x$coverage_flags" != x
13208 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13210 if test "x$TARGET_SYSTEM_ROOT" = x
; then
13211 if test "x$STMP_FIXPROTO" != x
; then
13212 STMP_FIXPROTO
=stmp-install-fixproto
13217 # Expand extra_headers to include complete path.
13218 # This substitutes for lots of t-* files.
13219 extra_headers_list
=
13220 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13221 for file in ${extra_headers} ; do
13222 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13225 # Define collect2 in Makefile.
13226 case $host_can_use_collect2 in
13228 *) collect2
='collect2$(exeext)' ;;
13232 # Add a definition of USE_COLLECT2 if system wants one.
13233 case $use_collect2 in
13234 no
) use_collect2
= ;;
13237 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
13238 xm_defines
="${xm_defines} USE_COLLECT2"
13239 case $host_can_use_collect2 in
13241 { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13242 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13243 { (exit 1); exit 1; }; }
13249 # ---------------------------
13250 # Assembler & linker features
13251 # ---------------------------
13253 # Identify the assembler which will work hand-in-glove with the newly
13254 # built GCC, so that we can examine its features. This is the assembler
13255 # which will be driven by the driver program.
13257 # If build != host, and we aren't building gas in-tree, we identify a
13258 # build->target assembler and hope that it will have the same features
13259 # as the host->target assembler we'll be using.
13260 gcc_cv_gas_major_version
=
13261 gcc_cv_gas_minor_version
=
13262 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13264 if test "${gcc_cv_as+set}" = set; then
13268 if test -x "$DEFAULT_ASSEMBLER"; then
13269 gcc_cv_as
="$DEFAULT_ASSEMBLER"
13270 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
13271 && test -f ..
/gas
/Makefile \
13272 && test x
$build = x
$host; then
13273 gcc_cv_as
=..
/gas
/as-new
$build_exeext
13274 elif test -x as
$build_exeext; then
13275 # Build using assembler in the current directory.
13276 gcc_cv_as
=.
/as
$build_exeext
13277 elif test -x $AS_FOR_TARGET; then
13278 gcc_cv_as
="$AS_FOR_TARGET"
13280 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13281 set dummy
$AS_FOR_TARGET; ac_word
=$2
13282 echo "$as_me:$LINENO: checking for $ac_word" >&5
13283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13284 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13285 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
13292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13293 for as_dir
in $PATH
13296 test -z "$as_dir" && as_dir
=.
13297 for ac_exec_ext
in '' $ac_executable_extensions; do
13298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13299 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
13300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 gcc_cv_as
=$ac_cv_path_gcc_cv_as
13311 if test -n "$gcc_cv_as"; then
13312 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13313 echo "${ECHO_T}$gcc_cv_as" >&6
13315 echo "$as_me:$LINENO: result: no" >&5
13316 echo "${ECHO_T}no" >&6
13323 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
13326 echo "$as_me:$LINENO: checking what assembler to use" >&5
13327 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13328 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
13329 # Single tree build which includes gas. We want to prefer it
13330 # over whatever linker top-level may have detected, since
13331 # we'll use what we're building after installation anyway.
13332 echo "$as_me:$LINENO: result: newly built gas" >&5
13333 echo "${ECHO_T}newly built gas" >&6
13335 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13336 for f
in $gcc_cv_as_bfd_srcdir/configure \
13337 $gcc_cv_as_gas_srcdir/configure \
13338 $gcc_cv_as_gas_srcdir/configure.
in \
13339 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
13340 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13341 if test x
$gcc_cv_gas_version != x
; then
13345 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13346 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13347 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13348 case $gcc_cv_gas_patch_version in
13349 "") gcc_cv_gas_patch_version
="0" ;;
13351 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13352 + $gcc_cv_gas_minor_version \) \* 1000 \
13353 + $gcc_cv_gas_patch_version`
13355 in_tree_gas_is_elf
=no
13356 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
13357 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
13358 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
13360 in_tree_gas_is_elf
=yes
13363 echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13364 echo "${ECHO_T}$gcc_cv_as" >&6
13368 # Identify the linker which will work hand-in-glove with the newly
13369 # built GCC, so that we can examine its features. This is the linker
13370 # which will be driven by the driver program.
13372 # If build != host, and we aren't building gas in-tree, we identify a
13373 # build->target linker and hope that it will have the same features
13374 # as the host->target linker we'll be using.
13375 gcc_cv_gld_major_version
=
13376 gcc_cv_gld_minor_version
=
13377 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13378 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13380 if test "${gcc_cv_ld+set}" = set; then
13384 if test -x "$DEFAULT_LINKER"; then
13385 gcc_cv_ld
="$DEFAULT_LINKER"
13386 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
13387 && test -f ..
/ld
/Makefile \
13388 && test x
$build = x
$host; then
13389 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
13390 elif test -x collect-ld
$build_exeext; then
13391 # Build using linker in the current directory.
13392 gcc_cv_ld
=.
/collect-ld
$build_exeext
13393 elif test -x $LD_FOR_TARGET; then
13394 gcc_cv_ld
="$LD_FOR_TARGET"
13396 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13397 set dummy
$LD_FOR_TARGET; ac_word
=$2
13398 echo "$as_me:$LINENO: checking for $ac_word" >&5
13399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13400 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
13408 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13409 for as_dir
in $PATH
13412 test -z "$as_dir" && as_dir
=.
13413 for ac_exec_ext
in '' $ac_executable_extensions; do
13414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
13416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
13427 if test -n "$gcc_cv_ld"; then
13428 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13429 echo "${ECHO_T}$gcc_cv_ld" >&6
13431 echo "$as_me:$LINENO: result: no" >&5
13432 echo "${ECHO_T}no" >&6
13439 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
13442 echo "$as_me:$LINENO: checking what linker to use" >&5
13443 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13444 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
13445 # Single tree build which includes ld. We want to prefer it
13446 # over whatever linker top-level may have detected, since
13447 # we'll use what we're building after installation anyway.
13448 echo "$as_me:$LINENO: result: newly built ld" >&5
13449 echo "${ECHO_T}newly built ld" >&6
13451 in_tree_ld_is_elf
=no
13452 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
13453 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
13454 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
13455 in_tree_ld_is_elf
=yes
13457 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
13459 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13460 if test x
$gcc_cv_gld_version != x
; then
13464 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13465 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13467 echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13468 echo "${ECHO_T}$gcc_cv_ld" >&6
13472 # Figure out what nm we will be using.
13473 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13474 if test "${gcc_cv_nm+set}" = set; then
13478 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13479 && test -f ..
/binutils
/Makefile \
13480 && test x
$build = x
$host; then
13481 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
13482 elif test -x nm
$build_exeext; then
13483 gcc_cv_nm
=.
/nm
$build_exeext
13484 elif test -x $NM_FOR_TARGET; then
13485 gcc_cv_nm
="$NM_FOR_TARGET"
13487 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13488 set dummy
$NM_FOR_TARGET; ac_word
=$2
13489 echo "$as_me:$LINENO: checking for $ac_word" >&5
13490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13491 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
13499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13500 for as_dir
in $PATH
13503 test -z "$as_dir" && as_dir
=.
13504 for ac_exec_ext
in '' $ac_executable_extensions; do
13505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
13507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13516 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
13518 if test -n "$gcc_cv_nm"; then
13519 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13520 echo "${ECHO_T}$gcc_cv_nm" >&6
13522 echo "$as_me:$LINENO: result: no" >&5
13523 echo "${ECHO_T}no" >&6
13530 echo "$as_me:$LINENO: checking what nm to use" >&5
13531 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13532 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
13533 # Single tree build which includes binutils.
13534 echo "$as_me:$LINENO: result: newly built nm" >&5
13535 echo "${ECHO_T}newly built nm" >&6
13538 echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13539 echo "${ECHO_T}$gcc_cv_nm" >&6
13543 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
13546 # Figure out what objdump we will be using.
13547 if test "${gcc_cv_objdump+set}" = set; then
13551 if test -f $gcc_cv_binutils_srcdir/configure.
in \
13552 && test -f ..
/binutils
/Makefile \
13553 && test x
$build = x
$host; then
13554 # Single tree build which includes binutils.
13555 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
13556 elif test -x objdump
$build_exeext; then
13557 gcc_cv_objdump
=.
/objdump
$build_exeext
13558 elif test -x $OBJDUMP_FOR_TARGET; then
13559 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
13561 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13562 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
13563 echo "$as_me:$LINENO: checking for $ac_word" >&5
13564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13565 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 case $gcc_cv_objdump in
13570 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
13573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13574 for as_dir
in $PATH
13577 test -z "$as_dir" && as_dir
=.
13578 for ac_exec_ext
in '' $ac_executable_extensions; do
13579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
13581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13590 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
13592 if test -n "$gcc_cv_objdump"; then
13593 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13594 echo "${ECHO_T}$gcc_cv_objdump" >&6
13596 echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6
13604 echo "$as_me:$LINENO: checking what objdump to use" >&5
13605 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13606 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
13607 # Single tree build which includes binutils.
13608 echo "$as_me:$LINENO: result: newly built objdump" >&5
13609 echo "${ECHO_T}newly built objdump" >&6
13610 elif test x
$gcc_cv_objdump = x
; then
13611 echo "$as_me:$LINENO: result: not found" >&5
13612 echo "${ECHO_T}not found" >&6
13614 echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13615 echo "${ECHO_T}$gcc_cv_objdump" >&6
13618 # Figure out what assembler alignment features are present.
13619 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13620 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13621 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 gcc_cv_as_balign_and_p2align
=no
13625 if test $in_tree_gas = yes; then
13626 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13627 then gcc_cv_as_balign_and_p2align
=yes
13629 elif test x
$gcc_cv_as != x
; then
13631 .p2align 2' > conftest.s
13632 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }
13639 gcc_cv_as_balign_and_p2align
=yes
13641 echo "configure: failed program was" >&5
13644 rm -f conftest.o conftest.s
13647 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13648 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13649 if test $gcc_cv_as_balign_and_p2align = yes; then
13651 cat >>confdefs.h
<<\_ACEOF
13652 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13657 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13658 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13659 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 gcc_cv_as_max_skip_p2align
=no
13663 if test $in_tree_gas = yes; then
13664 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13665 then gcc_cv_as_max_skip_p2align
=yes
13667 elif test x
$gcc_cv_as != x
; then
13668 echo '.p2align 4,,7' > conftest.s
13669 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; }
13676 gcc_cv_as_max_skip_p2align
=yes
13678 echo "configure: failed program was" >&5
13681 rm -f conftest.o conftest.s
13684 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13685 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13686 if test $gcc_cv_as_max_skip_p2align = yes; then
13688 cat >>confdefs.h
<<\_ACEOF
13689 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13694 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13695 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13696 if test "${gcc_cv_as_literal16+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 gcc_cv_as_literal16
=no
13700 if test $in_tree_gas = yes; then
13701 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13702 then gcc_cv_as_literal16
=yes
13704 elif test x
$gcc_cv_as != x
; then
13705 echo '.literal16' > conftest.s
13706 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }
13713 gcc_cv_as_literal16
=yes
13715 echo "configure: failed program was" >&5
13718 rm -f conftest.o conftest.s
13721 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13722 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13723 if test $gcc_cv_as_literal16 = yes; then
13725 cat >>confdefs.h
<<\_ACEOF
13726 #define HAVE_GAS_LITERAL16 1
13731 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13732 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13733 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 gcc_cv_as_subsection_m1
=no
13737 if test $in_tree_gas = yes; then
13738 if test $in_tree_gas_is_elf = yes \
13739 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13740 then gcc_cv_as_subsection_m1
=yes
13742 elif test x
$gcc_cv_as != x
; then
13743 echo 'conftest_label1: .word 0
13745 conftest_label2: .word 0
13746 .previous' > conftest.s
13747 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }
13754 if test x
$gcc_cv_nm != x
; then
13755 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
13756 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
13757 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
13759 else gcc_cv_as_subsection_m1
=yes
13761 rm -f conftest.nm1 conftest.nm2
13764 echo "configure: failed program was" >&5
13767 rm -f conftest.o conftest.s
13770 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13771 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13772 if test $gcc_cv_as_subsection_m1 = yes; then
13774 cat >>confdefs.h
<<\_ACEOF
13775 #define HAVE_GAS_SUBSECTION_ORDERING 1
13780 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13781 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13782 if test "${gcc_cv_as_weak+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 if test $in_tree_gas = yes; then
13787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13788 then gcc_cv_as_weak
=yes
13790 elif test x
$gcc_cv_as != x
; then
13791 echo ' .weak foobar' > conftest.s
13792 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }
13801 echo "configure: failed program was" >&5
13804 rm -f conftest.o conftest.s
13807 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13808 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13809 if test $gcc_cv_as_weak = yes; then
13811 cat >>confdefs.h
<<\_ACEOF
13812 #define HAVE_GAS_WEAK 1
13817 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13818 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13819 if test "${gcc_cv_as_weakref+set}" = set; then
13820 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 gcc_cv_as_weakref
=no
13823 if test $in_tree_gas = yes; then
13824 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13825 then gcc_cv_as_weakref
=yes
13827 elif test x
$gcc_cv_as != x
; then
13828 echo ' .weakref foobar, barfnot' > conftest.s
13829 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }
13836 gcc_cv_as_weakref
=yes
13838 echo "configure: failed program was" >&5
13841 rm -f conftest.o conftest.s
13844 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13845 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13846 if test $gcc_cv_as_weakref = yes; then
13848 cat >>confdefs.h
<<\_ACEOF
13849 #define HAVE_GAS_WEAKREF 1
13854 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13855 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13856 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 gcc_cv_as_nsubspa_comdat
=no
13860 if test $in_tree_gas = yes; then
13861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13862 then gcc_cv_as_nsubspa_comdat
=yes
13864 elif test x
$gcc_cv_as != x
; then
13865 echo ' .SPACE $TEXT$
13866 .NSUBSPA $CODE$,COMDAT' > conftest.s
13867 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }
13874 gcc_cv_as_nsubspa_comdat
=yes
13876 echo "configure: failed program was" >&5
13879 rm -f conftest.o conftest.s
13882 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13883 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13884 if test $gcc_cv_as_nsubspa_comdat = yes; then
13886 cat >>confdefs.h
<<\_ACEOF
13887 #define HAVE_GAS_NSUBSPA_COMDAT 1
13892 # .hidden needs to be supported in both the assembler and the linker,
13893 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13894 # This is irritatingly difficult to feature test for; we have to check the
13895 # date string after the version number. If we've got an in-tree
13896 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13898 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13899 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13900 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13901 if test "${gcc_cv_as_hidden+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 gcc_cv_as_hidden
=no
13905 if test $in_tree_gas = yes; then
13906 if test $in_tree_gas_is_elf = yes \
13907 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13908 then gcc_cv_as_hidden
=yes
13910 elif test x
$gcc_cv_as != x
; then
13911 echo ' .hidden foobar
13912 foobar:' > conftest.s
13913 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }
13920 gcc_cv_as_hidden
=yes
13922 echo "configure: failed program was" >&5
13925 rm -f conftest.o conftest.s
13928 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13929 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13932 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13933 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13934 if test "${gcc_cv_ld_hidden+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 if test $in_tree_ld = yes ; then
13938 gcc_cv_ld_hidden
=no
13939 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 \
13940 && test $in_tree_ld_is_elf = yes; then
13941 gcc_cv_ld_hidden
=yes
13944 gcc_cv_ld_hidden
=yes
13945 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13946 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
13947 ld_vers
=`echo $ld_ver | sed -n \
13948 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13949 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13950 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13951 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13952 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
13954 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
13955 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'`
13956 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
13957 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13958 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13959 if test 0"$ld_date" -lt 20020404; then
13960 if test -n "$ld_date"; then
13961 # If there was date string, but was earlier than 2002-04-04, fail
13962 gcc_cv_ld_hidden
=no
13963 elif test -z "$ld_vers"; then
13964 # If there was no date string nor ld version number, something is wrong
13965 gcc_cv_ld_hidden
=no
13967 test -z "$ld_vers_patch" && ld_vers_patch
=0
13968 if test "$ld_vers_major" -lt 2; then
13969 gcc_cv_ld_hidden
=no
13970 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13971 gcc_cv_ld_hidden
="no"
13972 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13973 gcc_cv_ld_hidden
=no
13978 case "${target}" in
13979 hppa64
*-*-hpux* | ia64
*-*-hpux*)
13980 gcc_cv_ld_hidden
=yes
13983 gcc_cv_ld_hidden
=no
13989 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13990 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13991 libgcc_visibility
=no
13994 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13995 libgcc_visibility
=yes
13997 cat >>confdefs.h
<<\_ACEOF
13998 #define HAVE_GAS_HIDDEN 1
14003 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14004 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14005 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14006 if test "${gcc_cv_as_leb128+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 gcc_cv_as_leb128
=no
14010 if test $in_tree_gas = yes; then
14011 if test $in_tree_gas_is_elf = yes \
14012 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14013 then gcc_cv_as_leb128
=yes
14015 elif test x
$gcc_cv_as != x
; then
14022 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }
14029 # GAS versions before 2.11 do not support uleb128,
14030 # despite appearing to.
14031 # ??? There exists an elf-specific test that will crash
14032 # the assembler. Perhaps it's better to figure out whether
14033 # arbitrary sections are supported and try the test.
14034 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14035 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
14036 as_ver
=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14037 as_major
=`echo $as_ver | sed 's/\..*//'`
14038 as_minor
=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14039 if test $as_major -eq 2 && test $as_minor -lt 11
14041 else gcc_cv_as_leb128
=yes
14045 echo "configure: failed program was" >&5
14048 rm -f conftest.o conftest.s
14051 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14052 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14053 if test $gcc_cv_as_leb128 = yes; then
14055 cat >>confdefs.h
<<\_ACEOF
14056 #define HAVE_AS_LEB128 1
14061 # GAS versions up to and including 2.11.0 may mis-optimize
14063 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14064 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14065 if test "${gcc_cv_as_eh_frame+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 gcc_cv_as_eh_frame
=no
14069 if test $in_tree_gas = yes; then
14070 if test $in_tree_gas_is_elf = yes \
14071 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14072 then gcc_cv_as_eh_frame
=yes
14074 elif test x
$gcc_cv_as != x
; then
14081 .section .eh_frame,"aw",@progbits
14083 .4byte .LECIE1-.LSCIE1
14097 .4byte .LEFDE1-.LASFDE1
14099 .4byte .LASFDE1-__FRAME_BEGIN__
14106 .LEFDE1:' > conftest.s
14107 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }
14114 cat > conftest.lit
<<EOF
14115 0000 10000000 00000000 017a0001 781a0004 .........z..x...
14116 0010 01000000 12000000 18000000 00000000 ................
14117 0020 08000000 04080000 0044 .........D
14119 cat > conftest.big
<<EOF
14120 0000 00000010 00000000 017a0001 781a0004 .........z..x...
14121 0010 00000001 00000012 00000018 00000000 ................
14122 0020 00000008 04000000 0844 .........D
14124 # If the assembler didn't choke, and we can objdump,
14125 # and we got the correct data, then succeed.
14126 # The text in the here-document typically retains its unix-style line
14127 # endings, while the output of objdump will use host line endings.
14128 # Therefore, use diff -b for the comparisons.
14129 if test x
$gcc_cv_objdump != x \
14130 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
14131 |
tail -3 > conftest.got \
14132 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
14133 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
14135 gcc_cv_as_eh_frame
=yes
14136 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 gcc_cv_as_eh_frame
=buggy
14144 # Uh oh, what do we do now?
14145 gcc_cv_as_eh_frame
=no
14148 echo "configure: failed program was" >&5
14151 rm -f conftest.o conftest.s
14154 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14155 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14158 if test $gcc_cv_as_eh_frame = buggy
; then
14160 cat >>confdefs.h
<<\_ACEOF
14161 #define USE_AS_TRADITIONAL_FORMAT 1
14166 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14167 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14168 if test "${gcc_cv_as_shf_merge+set}" = set; then
14169 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 gcc_cv_as_shf_merge
=no
14172 if test $in_tree_gas = yes; then
14173 if test $in_tree_gas_is_elf = yes \
14174 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14175 then gcc_cv_as_shf_merge
=yes
14177 elif test x
$gcc_cv_as != x
; then
14178 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14179 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }
14186 gcc_cv_as_shf_merge
=yes
14188 echo "configure: failed program was" >&5
14191 rm -f conftest.o conftest.s
14194 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14195 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14197 if test $gcc_cv_as_shf_merge = no
; then
14198 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14199 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14200 if test "${gcc_cv_as_shf_merge+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 gcc_cv_as_shf_merge
=no
14204 if test $in_tree_gas = yes; then
14205 if test $in_tree_gas_is_elf = yes \
14206 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14207 then gcc_cv_as_shf_merge
=yes
14209 elif test x
$gcc_cv_as != x
; then
14210 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14211 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }
14218 gcc_cv_as_shf_merge
=yes
14220 echo "configure: failed program was" >&5
14223 rm -f conftest.o conftest.s
14226 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14227 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14231 cat >>confdefs.h
<<_ACEOF
14232 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14236 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14237 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14238 if test "${gcc_cv_as_comdat_group+set}" = set; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 gcc_cv_as_comdat_group
=no
14242 if test $in_tree_gas = yes; then
14243 if test $in_tree_gas_is_elf = yes \
14244 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14245 then gcc_cv_as_comdat_group
=yes
14247 elif test x
$gcc_cv_as != x
; then
14248 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14249 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }
14256 gcc_cv_as_comdat_group
=yes
14258 echo "configure: failed program was" >&5
14261 rm -f conftest.o conftest.s
14264 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14265 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14267 if test $gcc_cv_as_comdat_group = yes; then
14268 gcc_cv_as_comdat_group_percent
=no
14270 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14271 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14272 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 gcc_cv_as_comdat_group_percent
=no
14276 if test $in_tree_gas = yes; then
14277 if test $in_tree_gas_is_elf = yes \
14278 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14279 then gcc_cv_as_comdat_group_percent
=yes
14281 elif test x
$gcc_cv_as != x
; then
14282 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14283 if { ac_try
='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285 (eval $ac_try) 2>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; }
14290 gcc_cv_as_comdat_group_percent
=yes
14292 echo "configure: failed program was" >&5
14295 rm -f conftest.o conftest.s
14298 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14299 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14302 if test $in_tree_ld != yes && test x
"$ld_vers" != x
; then
14304 if test 0"$ld_date" -lt 20050308; then
14305 if test -n "$ld_date"; then
14306 # If there was date string, but was earlier than 2005-03-08, fail
14308 elif test "$ld_vers_major" -lt 2; then
14310 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14315 # assume linkers other than GNU ld don't support COMDAT group
14318 if test $comdat_group = no
; then
14319 gcc_cv_as_comdat_group
=no
14320 gcc_cv_as_comdat_group_percent
=no
14323 cat >>confdefs.h
<<_ACEOF
14324 #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`
14328 # Thread-local storage - the check is heavily parametrized.
14336 .section ".tdata","awT",@progbits
14339 ldq $27,__tls_get_addr($29) !literal!1
14340 lda $16,foo($29) !tlsgd!1
14341 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
14342 ldq $27,__tls_get_addr($29) !literal!2
14343 lda $16,foo($29) !tlsldm!2
14344 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
14345 ldq $1,foo($29) !gotdtprel
14346 ldah $2,foo($29) !dtprelhi
14347 lda $3,foo($2) !dtprello
14348 lda $4,foo($29) !dtprel
14349 ldq $1,foo($29) !gottprel
14350 ldah $2,foo($29) !tprelhi
14351 lda $3,foo($2) !tprello
14352 lda $4,foo($29) !tprel'
14355 tls_as_opt
=--fatal-warnings
14359 .section ".tdata","awT",@progbits
14362 call #gettlsoff(x)'
14371 .section ".tdata","awT",@progbits
14375 addil LT%foo-$tls_gdidx$,gp
14376 ldo RT%foo-$tls_gdidx$(%r1),%arg0
14379 addil LT%foo-$tls_ldidx$,gp
14381 ldo RT%foo-$tls_ldidx$(%r1),%arg0
14382 addil LR%foo-$tls_dtpoff$,%ret0
14383 ldo RR%foo-$tls_dtpoff$(%r1),%t1
14385 addil LT%foo-$tls_ieoff$,gp
14386 ldw RT%foo-$tls_ieoff$(%r1),%t2
14389 addil LR%foo-$tls_leoff$,%t1
14390 ldo RR%foo-$tls_leoff$(%r1),%t2'
14393 tls_as_opt
=--fatal-warnings
14397 .section ".tdata","awT",%progbits
14400 .word foo(gottpoff)
14410 .section ".tdata","awT",@progbits
14414 leal foo@TLSGD(,%ebx,1), %eax
14415 leal foo@TLSLDM(%ebx), %eax
14416 leal foo@DTPOFF(%eax), %edx
14417 movl foo@GOTTPOFF(%ebx), %eax
14418 subl foo@GOTTPOFF(%ebx), %eax
14419 addl foo@GOTNTPOFF(%ebx), %eax
14420 movl foo@INDNTPOFF, %eax
14421 movl $foo@TPOFF, %eax
14422 subl $foo@TPOFF, %eax
14423 leal foo@NTPOFF(%ecx), %eax'
14426 tls_as_opt
=--fatal-warnings
14430 .section ".tdata","awT",@progbits
14434 leaq foo@TLSGD(%rip), %rdi
14435 leaq foo@TLSLD(%rip), %rdi
14436 leaq foo@DTPOFF(%rax), %rdx
14437 movq foo@GOTTPOFF(%rip), %rax
14438 movq $foo@TPOFF, %rax'
14441 tls_as_opt
=--fatal-warnings
14445 .section ".tdata","awT",@progbits
14448 addl r16 = @ltoff(@dtpmod(foo#)), gp
14449 addl r17 = @ltoff(@dtprel(foo#)), gp
14450 addl r18 = @ltoff(@tprel(foo#)), gp
14451 addl r19 = @dtprel(foo#), gp
14452 adds r21 = @dtprel(foo#), r13
14453 movl r23 = @dtprel(foo#)
14454 addl r20 = @tprel(foo#), gp
14455 adds r22 = @tprel(foo#), r13
14456 movl r24 = @tprel(foo#)'
14459 tls_as_opt
=--fatal-warnings
14463 .section .tdata,"awT",@progbits
14467 addiu $4, $28, %tlsgd(x)
14468 addiu $4, $28, %tlsldm(x)
14469 lui $4, %dtprel_hi(x)
14470 addiu $4, $4, %dtprel_lo(x)
14471 lw $4, %gottprel(x)($28)
14472 lui $4, %tprel_hi(x)
14473 addiu $4, $4, %tprel_lo(x)'
14476 tls_as_opt
='-32 --fatal-warnings'
14480 .section ".tdata","awT",@progbits
14488 addi 3,31,ld0@got@tlsgd
14490 addi 3,31,x1@got@tlsld
14493 addis 9,3,x2@dtprel@ha
14494 addi 9,9,x2@dtprel@l
14495 lwz 9,x3@got@tprel(31)
14498 addis 9,2,x2@tprel@ha
14499 addi 9,9,x2@tprel@l'
14502 tls_as_opt
="-a32 --fatal-warnings"
14506 .section ".tdata","awT",@progbits
14514 addi 3,2,ld0@got@tlsgd
14520 addi 3,2,x1@got@tlsld
14526 addis 9,3,x2@dtprel@ha
14527 addi 9,9,x2@dtprel@l
14530 ld 9,x3@got@dtprel(2)
14536 tls_as_opt
="-a64 --fatal-warnings"
14540 .section ".tdata","awT",@progbits
14547 .long foo@GOTNTPOFF
14548 .long foo@INDNTPOFF
14549 l %r1,foo@GOTNTPOFF(%r12)
14550 l %r1,0(%r1):tls_load:foo
14551 bas %r14,0(%r1,%r13):tls_gdcall:foo
14552 bas %r14,0(%r1,%r13):tls_ldcall:foo'
14555 tls_as_opt
="-m31 --fatal-warnings"
14559 .section ".tdata","awT",@progbits
14566 .quad foo@GOTNTPOFF
14567 lg %r1,foo@GOTNTPOFF(%r12)
14568 larl %r1,foo@INDNTPOFF
14569 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
14570 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14573 tls_as_opt
="-m64 -Aesame --fatal-warnings"
14575 sh-
*-* | sh
[34]-*-*)
14577 .section ".tdata","awT",@progbits
14587 tls_as_opt
=--fatal-warnings
14591 sparc
*-sun-solaris2.
[56789]*)
14592 # TLS was introduced in the Solaris 9 4/04 release but
14593 # we do not enable it by default on Solaris 9 either.
14594 if test "x$enable_tls" = xyes
; then
14600 sparc
*-sun-solaris2.
*)
14607 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
14609 .section ".tdata",#alloc,#write,#tls
14612 sethi %tgd_hi22(foo), %o0
14613 add %o0, %tgd_lo10(foo), %o1
14614 add %l7, %o1, %o0, %tgd_add(foo)
14615 call __tls_get_addr, %tgd_call(foo)
14616 sethi %tldm_hi22(foo), %l1
14617 add %l1, %tldm_lo10(foo), %l2
14618 add %l7, %l2, %o0, %tldm_add(foo)
14619 call __tls_get_addr, %tldm_call(foo)
14620 sethi %tldo_hix22(foo), %l3
14621 xor %l3, %tldo_lox10(foo), %l4
14622 add %o0, %l4, %l5, %tldo_add(foo)
14623 sethi %tie_hi22(foo), %o3
14624 add %o3, %tie_lo10(foo), %o3
14625 ld [%l7 + %o3], %o2, %tie_ld(foo)
14626 add %g7, %o2, %o4, %tie_add(foo)
14627 sethi %tle_hix22(foo), %l1
14628 xor %l1, %tle_lox10(foo), %o5
14629 ld [%g7 + %o5], %o1'
14634 .section ".tdata","awT",@progbits
14637 sethi %tgd_hi22(foo), %o0
14638 add %o0, %tgd_lo10(foo), %o1
14639 add %l7, %o1, %o0, %tgd_add(foo)
14640 call __tls_get_addr, %tgd_call(foo)
14641 sethi %tldm_hi22(foo), %l1
14642 add %l1, %tldm_lo10(foo), %l2
14643 add %l7, %l2, %o0, %tldm_add(foo)
14644 call __tls_get_addr, %tldm_call(foo)
14645 sethi %tldo_hix22(foo), %l3
14646 xor %l3, %tldo_lox10(foo), %l4
14647 add %o0, %l4, %l5, %tldo_add(foo)
14648 sethi %tie_hi22(foo), %o3
14649 add %o3, %tie_lo10(foo), %o3
14650 ld [%l7 + %o3], %o2, %tie_ld(foo)
14651 add %g7, %o2, %o4, %tie_add(foo)
14652 sethi %tle_hix22(foo), %l1
14653 xor %l1, %tle_lox10(foo), %o5
14654 ld [%g7 + %o5], %o1'
14657 tls_as_opt
="-32 --fatal-warnings"
14662 if test "x$enable_tls" = xno
; then
14663 : # TLS explicitly disabled.
14664 elif test "x$enable_tls" = xyes
; then
14665 set_have_as_tls
=yes # TLS explicitly enabled.
14666 elif test -z "$tls_first_major"; then
14667 : # If we don't have a check, assume no support.
14669 echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14670 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14671 if test "${gcc_cv_as_tls+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 if test $in_tree_gas = yes; then
14676 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14677 then gcc_cv_as_tls
=yes
14679 elif test x
$gcc_cv_as != x
; then
14680 echo "$conftest_s" > conftest.s
14681 if { ac_try
='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }
14690 echo "configure: failed program was" >&5
14693 rm -f conftest.o conftest.s
14696 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14697 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14698 if test $gcc_cv_as_tls = yes; then
14699 set_have_as_tls
=yes
14702 if test $set_have_as_tls = yes ; then
14704 cat >>confdefs.h
<<\_ACEOF
14705 #define HAVE_AS_TLS 1
14710 # Target-specific assembler checks.
14712 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14713 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14714 gcc_cv_ld_static_dynamic
=no
14715 if test $in_tree_ld = yes ; then
14716 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14717 gcc_cv_ld_static_dynamic
=yes
14719 elif test x
$gcc_cv_ld != x
; then
14720 # Check if linker supports -Bstatic/-Bdynamic option
14721 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
14722 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
14723 gcc_cv_ld_static_dynamic
=yes
14726 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
14728 cat >>confdefs.h
<<\_ACEOF
14729 #define HAVE_LD_STATIC_DYNAMIC 1
14733 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14734 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14736 if test x
"$demangler_in_ld" = xyes
; then
14737 echo "$as_me:$LINENO: checking linker --demangle support" >&5
14738 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14739 gcc_cv_ld_demangle
=no
14740 if test $in_tree_ld = yes; then
14741 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 \
14742 gcc_cv_ld_demangle
=yes
14744 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
14745 # Check if the GNU linker supports --demangle option
14746 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
14747 gcc_cv_ld_demangle
=yes
14750 if test x
"$gcc_cv_ld_demangle" = xyes
; then
14752 cat >>confdefs.h
<<\_ACEOF
14753 #define HAVE_LD_DEMANGLE 1
14757 echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14758 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14762 # All TARGET_ABI_OSF targets.
14763 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
14764 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14765 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14766 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 gcc_cv_as_alpha_explicit_relocs
=no
14770 if test $in_tree_gas = yes; then
14771 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14772 then gcc_cv_as_alpha_explicit_relocs
=yes
14774 elif test x
$gcc_cv_as != x
; then
14775 echo ' .set nomacro
14777 extbl $3, $2, $3 !lituse_bytoff!1
14778 ldq $2, a($29) !literal!1
14779 ldq $4, b($29) !literal!2
14780 ldq_u $3, 0($2) !lituse_base!1
14781 ldq $27, f($29) !literal!5
14782 jsr $26, ($27), f !lituse_jsr!5
14783 ldah $29, 0($26) !gpdisp!3
14784 lda $0, c($29) !gprel
14785 ldah $1, d($29) !gprelhigh
14786 lda $1, d($1) !gprellow
14787 lda $29, 0($29) !gpdisp!3' > conftest.s
14788 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }
14795 gcc_cv_as_alpha_explicit_relocs
=yes
14797 echo "configure: failed program was" >&5
14800 rm -f conftest.o conftest.s
14803 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14804 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14805 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14807 cat >>confdefs.h
<<\_ACEOF
14808 #define HAVE_AS_EXPLICIT_RELOCS 1
14812 echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14813 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14814 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14815 echo $ECHO_N "(cached) $ECHO_C" >&6
14817 gcc_cv_as_alpha_jsrdirect_relocs
=no
14818 if test $in_tree_gas = yes; then
14819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14820 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
14822 elif test x
$gcc_cv_as != x
; then
14823 echo ' .set nomacro
14825 ldq $27, a($29) !literal!1
14826 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
14827 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829 (eval $ac_try) 2>&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }
14834 gcc_cv_as_alpha_jsrdirect_relocs
=yes
14836 echo "configure: failed program was" >&5
14839 rm -f conftest.o conftest.s
14842 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14843 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14844 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14846 cat >>confdefs.h
<<\_ACEOF
14847 #define HAVE_AS_JSRDIRECT_RELOCS 1
14854 echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14855 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14856 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 gcc_cv_as_cris_no_mul_bug
=no
14860 if test $in_tree_gas = yes; then
14861 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14862 then gcc_cv_as_cris_no_mul_bug
=yes
14864 elif test x
$gcc_cv_as != x
; then
14865 echo '.text' > conftest.s
14866 if { ac_try
='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; }
14873 gcc_cv_as_cris_no_mul_bug
=yes
14875 echo "configure: failed program was" >&5
14878 rm -f conftest.o conftest.s
14881 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14882 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14883 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14885 cat >>confdefs.h
<<\_ACEOF
14886 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14893 echo "$as_me:$LINENO: checking assembler for .register" >&5
14894 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14895 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 gcc_cv_as_sparc_register_op
=no
14899 if test x
$gcc_cv_as != x
; then
14900 echo '.register %g2, #scratch' > conftest.s
14901 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }
14908 gcc_cv_as_sparc_register_op
=yes
14910 echo "configure: failed program was" >&5
14913 rm -f conftest.o conftest.s
14916 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14917 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14918 if test $gcc_cv_as_sparc_register_op = yes; then
14920 cat >>confdefs.h
<<\_ACEOF
14921 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14926 echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14927 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14928 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 gcc_cv_as_sparc_relax
=no
14932 if test x
$gcc_cv_as != x
; then
14933 echo '.text' > conftest.s
14934 if { ac_try
='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }
14941 gcc_cv_as_sparc_relax
=yes
14943 echo "configure: failed program was" >&5
14946 rm -f conftest.o conftest.s
14949 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14950 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14951 if test $gcc_cv_as_sparc_relax = yes; then
14953 cat >>confdefs.h
<<\_ACEOF
14954 #define HAVE_AS_RELAX_OPTION 1
14959 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14960 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 gcc_cv_as_sparc_ua_pcrel
=no
14965 if test x
$gcc_cv_as != x
; then
14972 .uaword %r_disp32(foo)' > conftest.s
14973 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }
14980 if test x
$gcc_cv_ld != x \
14981 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
14982 gcc_cv_as_sparc_ua_pcrel
=yes
14986 echo "configure: failed program was" >&5
14989 rm -f conftest.o conftest.s
14992 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14993 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14996 cat >>confdefs.h
<<\_ACEOF
14997 #define HAVE_AS_SPARC_UA_PCREL 1
15001 echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15002 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15003 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15004 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 gcc_cv_as_sparc_ua_pcrel_hidden
=no
15007 if test x
$gcc_cv_as != x
; then
15011 .uaword %r_disp32(foo)
15012 .byte 0x32, 0x33, 0x34
15016 .skip 4' > conftest.s
15017 if { ac_try
='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }
15024 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
15025 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
15026 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
15027 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
15028 if $gcc_cv_objdump -R conftest
2> /dev
/null \
15029 |
grep 'DISP32' > /dev
/null
2>&1; then
15032 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
15037 echo "configure: failed program was" >&5
15040 rm -f conftest.o conftest.s
15043 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15044 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15045 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15047 cat >>confdefs.h
<<\_ACEOF
15048 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15053 fi # unaligned pcrel relocs
15055 echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15056 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15057 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 gcc_cv_as_sparc_offsetable_lo10
=no
15061 if test x
$gcc_cv_as != x
; then
15063 or %g1, %lo(ab) + 12, %g1
15064 or %g1, %lo(ab + 12), %g1' > conftest.s
15065 if { ac_try
='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }
15072 if test x
$gcc_cv_objdump != x \
15073 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
15074 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
15075 gcc_cv_as_sparc_offsetable_lo10
=yes
15078 echo "configure: failed program was" >&5
15081 rm -f conftest.o conftest.s
15084 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15085 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15086 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15088 cat >>confdefs.h
<<\_ACEOF
15089 #define HAVE_AS_OFFSETABLE_LO10 1
15095 i
[34567]86-*-* | x86_64-
*-*)
15097 cygwin
* | pe | mingw32
*)
15098 # Used for DWARF 2 in PE
15099 echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15100 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15101 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 gcc_cv_as_ix86_pe_secrel32
=no
15105 if test $in_tree_gas = yes; then
15106 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15107 then gcc_cv_as_ix86_pe_secrel32
=yes
15109 elif test x
$gcc_cv_as != x
; then
15113 .secrel32 foo' > conftest.s
15114 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116 (eval $ac_try) 2>&5
15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); }; }
15121 if test x
$gcc_cv_ld != x \
15122 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
15123 gcc_cv_as_ix86_pe_secrel32
=yes
15127 echo "configure: failed program was" >&5
15130 rm -f conftest.o conftest.s
15133 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15134 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15135 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15137 cat >>confdefs.h
<<\_ACEOF
15138 #define HAVE_GAS_PE_SECREL32_RELOC 1
15145 echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15146 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15147 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15148 echo $ECHO_N "(cached) $ECHO_C" >&6
15150 gcc_cv_as_ix86_filds_fists
=no
15151 if test $in_tree_gas = yes; then
15152 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15153 then gcc_cv_as_ix86_filds_fists
=yes
15155 elif test x
$gcc_cv_as != x
; then
15156 echo 'filds mem; fists mem' > conftest.s
15157 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }
15164 gcc_cv_as_ix86_filds_fists
=yes
15166 echo "configure: failed program was" >&5
15169 rm -f conftest.o conftest.s
15172 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15173 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15174 if test $gcc_cv_as_ix86_filds_fists = yes; then
15176 cat >>confdefs.h
<<\_ACEOF
15177 #define HAVE_GAS_FILDS_FISTS 1
15182 echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15183 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15184 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 gcc_cv_as_ix86_cmov_sun_syntax
=no
15188 if test x
$gcc_cv_as != x
; then
15189 echo 'cmovl.l %edx, %eax' > conftest.s
15190 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }
15197 gcc_cv_as_ix86_cmov_sun_syntax
=yes
15199 echo "configure: failed program was" >&5
15202 rm -f conftest.o conftest.s
15205 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15206 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15207 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15209 cat >>confdefs.h
<<\_ACEOF
15210 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15215 echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15216 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15217 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 gcc_cv_as_ix86_ffreep
=no
15221 if test x
$gcc_cv_as != x
; then
15222 echo 'ffreep %st(1)' > conftest.s
15223 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }
15230 gcc_cv_as_ix86_ffreep
=yes
15232 echo "configure: failed program was" >&5
15235 rm -f conftest.o conftest.s
15238 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15239 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15240 if test $gcc_cv_as_ix86_ffreep = yes; then
15242 cat >>confdefs.h
<<\_ACEOF
15243 #define HAVE_AS_IX86_FFREEP 1
15248 echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15249 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15250 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 gcc_cv_as_ix86_diff_sect_delta
=no
15254 if test x
$gcc_cv_as != x
; then
15255 echo '.section .rodata
15261 .L2: nop' > conftest.s
15262 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }
15269 gcc_cv_as_ix86_diff_sect_delta
=yes
15271 echo "configure: failed program was" >&5
15274 rm -f conftest.o conftest.s
15277 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15278 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15279 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15281 cat >>confdefs.h
<<\_ACEOF
15282 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15287 # This one is used unconditionally by i386.[ch]; it is to be defined
15288 # to 1 if the feature is present, 0 otherwise.
15289 echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15290 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15291 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 gcc_cv_as_ix86_gotoff_in_data
=no
15295 if test $in_tree_gas = yes; then
15296 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15297 then gcc_cv_as_ix86_gotoff_in_data
=yes
15299 elif test x
$gcc_cv_as != x
; then
15304 .long .L0@GOTOFF' > conftest.s
15305 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307 (eval $ac_try) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); }; }
15312 gcc_cv_as_ix86_gotoff_in_data
=yes
15314 echo "configure: failed program was" >&5
15317 rm -f conftest.o conftest.s
15320 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15321 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15324 cat >>confdefs.h
<<_ACEOF
15325 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15331 echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15332 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15333 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
15337 if test $in_tree_gas = yes; then
15338 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15339 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15341 elif test x
$gcc_cv_as != x
; then
15343 addl r15 = @ltoffx(x#), gp
15345 ld8.mov r16 = [r15], x#' > conftest.s
15346 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }
15353 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
15355 echo "configure: failed program was" >&5
15358 rm -f conftest.o conftest.s
15361 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15362 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15363 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15365 cat >>confdefs.h
<<\_ACEOF
15366 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15375 *-*-aix*) conftest_s
=' .machine "pwr5"
15379 echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15380 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15381 if test "${gcc_cv_as_machine_directive+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 gcc_cv_as_machine_directive
=no
15385 if test x
$gcc_cv_as != x
; then
15386 echo ' .machine ppc7400' > conftest.s
15387 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; }
15394 gcc_cv_as_machine_directive
=yes
15396 echo "configure: failed program was" >&5
15399 rm -f conftest.o conftest.s
15402 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15403 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15405 if test x
$gcc_cv_as_machine_directive != xyes
; then
15406 echo "*** This target requires an assembler supporting \".machine\"" >&2
15407 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
15408 test x
$build = x
$target && exit 1
15412 *) conftest_s
=' .machine power4
15417 echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15418 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15419 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 gcc_cv_as_powerpc_mfcrf
=no
15423 if test $in_tree_gas = yes; then
15424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15425 then gcc_cv_as_powerpc_mfcrf
=yes
15427 elif test x
$gcc_cv_as != x
; then
15428 echo "$conftest_s" > conftest.s
15429 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }
15436 gcc_cv_as_powerpc_mfcrf
=yes
15438 echo "configure: failed program was" >&5
15441 rm -f conftest.o conftest.s
15444 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15445 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15446 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15448 cat >>confdefs.h
<<\_ACEOF
15449 #define HAVE_AS_MFCRF 1
15455 *-*-aix*) conftest_s
=' .machine "pwr5"
15458 *) conftest_s
=' .machine power5
15463 echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15464 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15465 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 gcc_cv_as_powerpc_popcntb
=no
15469 if test $in_tree_gas = yes; then
15470 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15471 then gcc_cv_as_powerpc_popcntb
=yes
15473 elif test x
$gcc_cv_as != x
; then
15474 echo "$conftest_s" > conftest.s
15475 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }
15482 gcc_cv_as_powerpc_popcntb
=yes
15484 echo "configure: failed program was" >&5
15487 rm -f conftest.o conftest.s
15490 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15491 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15492 if test $gcc_cv_as_powerpc_popcntb = yes; then
15494 cat >>confdefs.h
<<\_ACEOF
15495 #define HAVE_AS_POPCNTB 1
15501 *-*-aix*) conftest_s
=' .machine "pwr5x"
15504 *) conftest_s
=' .machine power5
15509 echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15510 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15511 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15514 gcc_cv_as_powerpc_fprnd
=no
15515 if test $in_tree_gas = yes; then
15516 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15517 then gcc_cv_as_powerpc_fprnd
=yes
15519 elif test x
$gcc_cv_as != x
; then
15520 echo "$conftest_s" > conftest.s
15521 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }
15528 gcc_cv_as_powerpc_fprnd
=yes
15530 echo "configure: failed program was" >&5
15533 rm -f conftest.o conftest.s
15536 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15537 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15538 if test $gcc_cv_as_powerpc_fprnd = yes; then
15540 cat >>confdefs.h
<<\_ACEOF
15541 #define HAVE_AS_FPRND 1
15547 *-*-aix*) conftest_s
=' .machine "pwr6"
15550 *) conftest_s
=' .machine power6
15555 echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15556 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15557 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 gcc_cv_as_powerpc_mfpgpr
=no
15561 if test $in_tree_gas = yes; then
15562 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15563 then gcc_cv_as_powerpc_mfpgpr
=yes
15565 elif test x
$gcc_cv_as != x
; then
15566 echo "$conftest_s" > conftest.s
15567 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }
15574 gcc_cv_as_powerpc_mfpgpr
=yes
15576 echo "configure: failed program was" >&5
15579 rm -f conftest.o conftest.s
15582 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15583 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15584 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15586 cat >>confdefs.h
<<\_ACEOF
15587 #define HAVE_AS_MFPGPR 1
15593 *-*-aix*) conftest_s
=' .csect .text[PR]
15595 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15599 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15600 *) conftest_s
=' .text
15602 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15605 echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15606 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15607 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15610 gcc_cv_as_powerpc_rel16
=no
15611 if test $in_tree_gas = yes; then
15612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15613 then gcc_cv_as_powerpc_rel16
=yes
15615 elif test x
$gcc_cv_as != x
; then
15616 echo "$conftest_s" > conftest.s
15617 if { ac_try
='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15619 (eval $ac_try) 2>&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }; }
15624 gcc_cv_as_powerpc_rel16
=yes
15626 echo "configure: failed program was" >&5
15629 rm -f conftest.o conftest.s
15632 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15633 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15634 if test $gcc_cv_as_powerpc_rel16 = yes; then
15636 cat >>confdefs.h
<<\_ACEOF
15637 #define HAVE_AS_REL16 1
15644 echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15645 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15646 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 gcc_cv_as_mips_explicit_relocs
=no
15650 if test $in_tree_gas = yes; then
15651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15652 then gcc_cv_as_mips_explicit_relocs
=yes
15654 elif test x
$gcc_cv_as != x
; then
15655 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
15656 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }
15663 gcc_cv_as_mips_explicit_relocs
=yes
15665 echo "configure: failed program was" >&5
15668 rm -f conftest.o conftest.s
15671 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15672 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15673 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15674 if test x
$target_cpu_default = x
15675 then target_cpu_default
=MASK_EXPLICIT_RELOCS
15676 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15679 echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15680 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15681 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15684 gcc_cv_as_mips_no_shared
=no
15685 if test $in_tree_gas = yes; then
15686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15687 then gcc_cv_as_mips_no_shared
=yes
15689 elif test x
$gcc_cv_as != x
; then
15690 echo 'nop' > conftest.s
15691 if { ac_try
='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15693 (eval $ac_try) 2>&5
15695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696 (exit $ac_status); }; }
15698 gcc_cv_as_mips_no_shared
=yes
15700 echo "configure: failed program was" >&5
15703 rm -f conftest.o conftest.s
15706 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15707 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15708 if test $gcc_cv_as_mips_no_shared = yes; then
15710 cat >>confdefs.h
<<\_ACEOF
15711 #define HAVE_AS_NO_SHARED 1
15718 # Mips and HP-UX need the GNU assembler.
15719 # Linux on IA64 might be able to use the Intel assembler.
15722 mips
*-*-* |
*-*-hpux* )
15723 if test x
$gas_flag = xyes \
15724 ||
test x
"$host" != x
"$build" \
15725 ||
test ! -x "$gcc_cv_as" \
15726 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
15729 echo "*** This configuration requires the GNU assembler" >&2
15735 # ??? Not all targets support dwarf2 debug_line, even within a version
15736 # of gas. Moreover, we need to emit a valid instruction to trigger any
15737 # info to the output file. So, as supported targets are added to gas 2.11,
15738 # add some instruction here to (also) show we expect this might work.
15739 # ??? Once 2.11 is released, probably need to add first known working
15740 # version to the per-target configury.
15742 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
15743 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* | strongarm
*-*-* | xscale
*-*-* \
15744 | xstormy16
*-*-* | cris-
*-* | xtensa-
*-* | bfin-
*-* | score
*-*-* | spu-
*-*)
15747 ia64
*-*-* | s390
*-*-*)
15754 if test x
"$insn" != x
; then
15756 .file 1 \"conftest.s\"
15759 echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15760 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15761 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 gcc_cv_as_dwarf2_debug_line
=no
15765 if test $in_tree_gas = yes; then
15766 if test $in_tree_gas_is_elf = yes \
15767 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15768 then gcc_cv_as_dwarf2_debug_line
=yes
15770 elif test x
$gcc_cv_as != x
; then
15771 echo "$conftest_s" > conftest.s
15772 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; }
15779 if test x
$gcc_cv_objdump != x \
15780 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
15781 |
grep debug_line
> /dev
/null
2>&1; then
15782 gcc_cv_as_dwarf2_debug_line
=yes
15785 echo "configure: failed program was" >&5
15788 rm -f conftest.o conftest.s
15791 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15792 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15795 # The .debug_line file table must be in the exact order that
15796 # we specified the files, since these indices are also used
15797 # by DW_AT_decl_file. Approximate this test by testing if
15798 # the assembler bitches if the same index is assigned twice.
15799 echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15800 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15801 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 gcc_cv_as_dwarf2_file_buggy
=no
15805 if test x
$gcc_cv_as != x
; then
15806 echo ' .file 1 "foo.s"
15807 .file 1 "bar.s"' > conftest.s
15808 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }
15815 gcc_cv_as_dwarf2_file_buggy
=yes
15817 echo "configure: failed program was" >&5
15820 rm -f conftest.o conftest.s
15823 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15824 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15827 if test $gcc_cv_as_dwarf2_debug_line = yes \
15828 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
15830 cat >>confdefs.h
<<\_ACEOF
15831 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15836 echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15837 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15838 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 gcc_cv_as_gdwarf2_flag
=no
15842 if test $in_tree_gas = yes; then
15843 if test $in_tree_gas_is_elf = yes \
15844 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15845 then gcc_cv_as_gdwarf2_flag
=yes
15847 elif test x
$gcc_cv_as != x
; then
15848 echo "$insn" > conftest.s
15849 if { ac_try
='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851 (eval $ac_try) 2>&5
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }
15856 gcc_cv_as_gdwarf2_flag
=yes
15858 echo "configure: failed program was" >&5
15861 rm -f conftest.o conftest.s
15864 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15865 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15866 if test $gcc_cv_as_gdwarf2_flag = yes; then
15868 cat >>confdefs.h
<<\_ACEOF
15869 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15874 echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15875 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15876 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15877 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 gcc_cv_as_gstabs_flag
=no
15880 if test $in_tree_gas = yes; then
15881 if test $in_tree_gas_is_elf = yes \
15882 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15883 then gcc_cv_as_gstabs_flag
=yes
15885 elif test x
$gcc_cv_as != x
; then
15886 echo "$insn" > conftest.s
15887 if { ac_try
='$gcc_cv_as --gstabs -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 # The native Solaris 9/Intel assembler doesn't understand --gstabs
15895 # and warns about it, but still exits successfully. So check for
15897 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }
15904 else gcc_cv_as_gstabs_flag
=yes
15907 echo "configure: failed program was" >&5
15910 rm -f conftest.o conftest.s
15913 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15914 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15915 if test $gcc_cv_as_gstabs_flag = yes; then
15917 cat >>confdefs.h
<<\_ACEOF
15918 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15924 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15925 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15926 gcc_cv_ld_ro_rw_mix
=unknown
15927 if test $in_tree_ld = yes ; then
15928 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 \
15929 && test $in_tree_ld_is_elf = yes; then
15930 gcc_cv_ld_ro_rw_mix
=read-write
15932 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
15933 echo '.section myfoosect, "a"' > conftest1.s
15934 echo '.section myfoosect, "aw"' > conftest2.s
15935 echo '.byte 1' >> conftest2.s
15936 echo '.section myfoosect, "a"' > conftest3.s
15937 echo '.byte 0' >> conftest3.s
15938 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
15939 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
15940 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
15941 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15942 conftest2.o conftest3.o
> /dev
/null
2>&1; then
15943 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
15944 | sed -e '/myfoosect/!d' -e N`
15945 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
15946 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
15947 gcc_cv_ld_ro_rw_mix
=read-only
15949 gcc_cv_ld_ro_rw_mix
=read-write
15953 rm -f conftest.
* conftest
[123].
*
15955 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
15957 cat >>confdefs.h
<<\_ACEOF
15958 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15962 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15963 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15965 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15966 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15967 gcc_cv_ld_eh_frame_hdr
=no
15968 if test $in_tree_ld = yes ; then
15969 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 \
15970 && test $in_tree_ld_is_elf = yes; then
15971 gcc_cv_ld_eh_frame_hdr
=yes
15973 elif test x
$gcc_cv_ld != x
; then
15974 # Check if linker supports --eh-frame-hdr option
15975 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
15976 gcc_cv_ld_eh_frame_hdr
=yes
15980 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
15982 cat >>confdefs.h
<<\_ACEOF
15983 #define HAVE_LD_EH_FRAME_HDR 1
15987 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15988 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15990 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15991 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15993 if test $in_tree_ld = yes ; then
15994 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 \
15995 && test $in_tree_ld_is_elf = yes; then
15998 elif test x
$gcc_cv_ld != x
; then
15999 # Check if linker supports -pie option
16000 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
16004 if test x
"$gcc_cv_ld_pie" = xyes
; then
16006 cat >>confdefs.h
<<\_ACEOF
16007 #define HAVE_LD_PIE 1
16011 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16012 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16014 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16015 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16016 gcc_cv_ld_eh_gc_sections
=no
16017 #if test $in_tree_ld = yes ; then
16018 # 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 \
16019 # && test $in_tree_ld_is_elf = yes; then
16020 # gcc_cv_ld_eh_gc_sections=yes
16022 #elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16023 # cat > conftest.s <<EOF
16026 # .type _start, @function
16029 # .size _start, .-_start
16030 # .section .text.foo,"ax",@progbits
16031 # .type foo, @function
16035 # .section .gcc_except_table.foo,"a",@progbits
16038 # .section .eh_frame,"a",@progbits
16041 # if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16042 # if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16043 # | grep "gc-sections option ignored" > /dev/null; then
16044 # gcc_cv_ld_eh_gc_sections=no
16045 # elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16046 # gcc_cv_ld_eh_gc_sections=yes
16047 # # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16048 # if test x$gcc_cv_as_comdat_group != xyes; then
16049 # gcc_cv_ld_eh_gc_sections=no
16050 # cat > conftest.s <<EOF
16053 # .type _start, @function
16056 # .size _start, .-_start
16057 # .section .gnu.linkonce.t.foo,"ax",@progbits
16058 # .type foo, @function
16062 # .section .gcc_except_table.foo,"a",@progbits
16065 # .section .eh_frame,"a",@progbits
16068 # if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16069 # if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16070 # | grep "gc-sections option ignored" > /dev/null; then
16071 # gcc_cv_ld_eh_gc_sections=no
16072 # elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16073 # gcc_cv_ld_eh_gc_sections=yes
16079 # rm -f conftest.s conftest.o conftest
16083 # ??? This apparently exposes a binutils bug with PC-relative relocations.
16084 gcc_cv_ld_eh_gc_sections
=no
16087 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
16089 cat >>confdefs.h
<<\_ACEOF
16090 #define HAVE_LD_EH_GC_SECTIONS 1
16094 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16095 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16101 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16102 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16103 if test "${gcc_cv_ld_as_needed+set}" = set; then
16104 echo $ECHO_N "(cached) $ECHO_C" >&6
16106 gcc_cv_ld_as_needed
=no
16107 if test $in_tree_ld = yes ; then
16108 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 \
16109 && test $in_tree_ld_is_elf = yes; then
16110 gcc_cv_ld_as_needed
=yes
16112 elif test x
$gcc_cv_ld != x
; then
16113 # Check if linker supports --as-needed and --no-as-needed options
16114 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16115 gcc_cv_ld_as_needed
=yes
16120 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16121 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16122 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
16124 cat >>confdefs.h
<<\_ACEOF
16125 #define HAVE_LD_AS_NEEDED 1
16130 case "$target:$tm_file" in
16131 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
16132 echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16133 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16134 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 gcc_cv_ld_no_dot_syms
=no
16138 if test $in_tree_ld = yes ; then
16139 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
16140 gcc_cv_ld_no_dot_syms
=yes
16142 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
16143 cat > conftest1.s
<<EOF
16147 cat > conftest2.s
<<EOF
16148 .section ".opd","aw"
16151 .type foo,@function
16153 .quad .LEfoo,.TOC.@tocbase,0
16159 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
16160 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
16161 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
16162 gcc_cv_ld_no_dot_syms
=yes
16164 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16168 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16169 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16170 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
16172 cat >>confdefs.h
<<\_ACEOF
16173 #define HAVE_LD_NO_DOT_SYMS 1
16180 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16181 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16182 if test "${gcc_cv_ld_sysroot+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 gcc_cv_ld_sysroot
=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 ; then
16188 gcc_cv_ld_sysroot
=yes
16190 elif test x
$gcc_cv_ld != x
; then
16191 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
16192 gcc_cv_ld_sysroot
=yes
16196 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16197 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16198 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
16200 cat >>confdefs.h
<<\_ACEOF
16201 #define HAVE_LD_SYSROOT 1
16206 if test x
$with_sysroot = x
&& test x
$host = x
$target \
16207 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16208 && test "$prefix" != "NONE"; then
16210 cat >>confdefs.h
<<_ACEOF
16211 #define PREFIX_INCLUDE_DIR "$prefix/include"
16216 # Test for stack protector support in target C library.
16217 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16218 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16219 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 gcc_cv_libc_provides_ssp
=no
16225 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16226 if test "x$with_sysroot" = x
; then
16227 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16228 elif test "x$with_sysroot" = xyes
; then
16229 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16231 glibc_header_dir
="${with_sysroot}/usr/include"
16234 glibc_header_dir
=/usr
/include
16236 # glibc 2.4 and later provides __stack_chk_fail and
16237 # either __stack_chk_guard, or TLS access to stack guard canary.
16238 if test -f $glibc_header_dir/features.h \
16239 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
16240 $glibc_header_dir/features.h
> /dev
/null
; then
16241 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
16242 $glibc_header_dir/features.h
> /dev
/null
; then
16243 gcc_cv_libc_provides_ssp
=yes
16244 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
16245 $glibc_header_dir/features.h
> /dev
/null \
16246 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
16247 $glibc_header_dir/features.h
> /dev
/null
; then
16248 gcc_cv_libc_provides_ssp
=yes
16253 echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16254 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16255 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16256 echo $ECHO_N "(cached) $ECHO_C" >&6
16258 cat >conftest.
$ac_ext <<_ACEOF
16261 cat confdefs.h
>>conftest.
$ac_ext
16262 cat >>conftest.
$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16266 #define __stack_chk_fail innocuous___stack_chk_fail
16268 /* System header to define __stub macros and hopefully few prototypes,
16269 which can conflict with char __stack_chk_fail (); below.
16270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16271 <limits.h> exists even on freestanding compilers. */
16274 # include <limits.h>
16276 # include <assert.h>
16279 #undef __stack_chk_fail
16281 /* Override any gcc2 internal prototype to avoid an error. */
16286 /* We use char because int might match the return type of a gcc2
16287 builtin and then its argument prototype would still apply. */
16288 char __stack_chk_fail ();
16289 /* The GNU C library defines this for functions which it implements
16290 to always fail with ENOSYS. Some functions are actually named
16291 something starting with __ and the normal name is an alias. */
16292 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16295 char (*f) () = __stack_chk_fail;
16304 return f != __stack_chk_fail;
16309 rm -f conftest.
$ac_objext conftest
$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16313 grep -v '^ *+' conftest.er1
>conftest.err
16315 cat conftest.err
>&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try
='test -z "$ac_c_werror_flag"
16319 || test ! -s conftest.err'
16320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321 (eval $ac_try) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); }; } &&
16325 { ac_try
='test -s conftest$ac_exeext'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; }; then
16331 ac_cv_func___stack_chk_fail
=yes
16333 echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.
$ac_ext >&5
16336 ac_cv_func___stack_chk_fail
=no
16338 rm -f conftest.err conftest.
$ac_objext \
16339 conftest
$ac_exeext conftest.
$ac_ext
16341 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16342 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16343 if test $ac_cv_func___stack_chk_fail = yes; then
16344 gcc_cv_libc_provides_ssp
=yes
16346 echo "no __stack_chk_fail on this target"
16350 *) gcc_cv_libc_provides_ssp
=no
;;
16353 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16354 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16356 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
16358 cat >>confdefs.h
<<\_ACEOF
16359 #define TARGET_LIBC_PROVIDES_SSP 1
16364 # Check if TFmode long double should be used by default or not.
16365 # Some glibc targets used DFmode long double, but with glibc 2.4
16366 # and later they can use TFmode.
16368 powerpc
*-*-*gnu
* | \
16369 sparc
*-*-linux* | \
16373 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16374 if test "${with_long_double_128+set}" = set; then
16375 withval
="$with_long_double_128"
16376 gcc_cv_target_ldbl128
="$with_long_double_128"
16378 gcc_cv_target_ldbl128
=no
16379 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
16380 if test "x$with_sysroot" = x
; then
16381 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
16382 elif test "x$with_sysroot" = xyes
; then
16383 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16385 glibc_header_dir
="${with_sysroot}/usr/include"
16388 glibc_header_dir
=/usr
/include
16390 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16391 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
16392 && gcc_cv_target_ldbl128
=yes
16397 if test x
$gcc_cv_target_ldbl128 = xyes
; then
16399 cat >>confdefs.h
<<\_ACEOF
16400 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16405 # Find out what GC implementation we want, or may, use.
16407 # Check whether --with-gc or --without-gc was given.
16408 if test "${with_gc+set}" = set; then
16417 cat >>confdefs.h
<<\_ACEOF
16423 { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16424 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16425 { (exit 1); exit 1; }; }
16432 echo "Using $GGC for garbage collection."
16434 # Use the system's zlib library.
16436 zlibinc
="-I\$(srcdir)/../zlib"
16438 # Check whether --with-system-zlib or --without-system-zlib was given.
16439 if test "${with_system_zlib+set}" = set; then
16440 withval
="$with_system_zlib"
16449 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16450 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16451 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16452 if test "${enable_maintainer_mode+set}" = set; then
16453 enableval
="$enable_maintainer_mode"
16454 maintainer_mode
=$enableval
16459 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16460 echo "${ECHO_T}$maintainer_mode" >&6
16462 if test "$maintainer_mode" = "yes"; then
16472 # Make empty files to contain the specs and options for each language.
16473 # Then add #include lines to for a compiler that has specs and/or options.
16479 # These (without "all_") are set in each config-lang.in.
16480 # `language' must be a single word so is spelled singularly.
16483 all_outputs
='Makefile gccbug libada-mk'
16484 # List of language makefile fragments.
16485 all_lang_makefrags
=
16486 # List of language subdirectory makefiles. Deprecated.
16487 all_lang_makefiles
=
16488 # Files for gengtype
16489 all_gtfiles
="$target_gtfiles"
16490 # Files for gengtype with language
16491 all_gtfiles_files_langs
=
16492 all_gtfiles_files_files
=
16494 # These are the languages that are set in --enable-languages,
16495 # and are available in the GCC tree.
16496 all_selected_languages
=
16498 # Add the language fragments.
16499 # Languages are added via two mechanisms. Some information must be
16500 # recorded in makefile variables, these are defined in config-lang.in.
16501 # We accumulate them and plug them into the main Makefile.
16502 # The other mechanism is a set of hooks for each of the main targets
16503 # like `clean', `install', etc.
16505 language_hooks
="Make-hooks"
16507 for lang
in ${srcdir}/*/config-lang.
in
16509 test "$lang" = "${srcdir}/*/config-lang.in" && continue
16511 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
16512 if test "x$lang_alias" = x
16514 echo "$lang doesn't set \$language." 1>&2
16517 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16518 subdirs
="$subdirs $subdir"
16519 case ",$enable_languages," in
16521 all_selected_languages
="$all_selected_languages $lang_alias"
16522 if test -f $srcdir/$subdir/lang-specs.h
; then
16523 lang_specs_files
="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16534 .
${srcdir}/$subdir/config-lang.
in
16535 if test "x$language" = x
16537 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16542 case ",$enable_languages," in
16543 *,$lang_alias,*) ;;
16545 for i
in $subdir_requires; do
16546 test -f "${srcdir}/$i/config-lang.in" && continue
16554 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16555 if test -f $srcdir/$subdir/lang.opt
; then
16556 lang_opt_files
="$lang_opt_files $srcdir/$subdir/lang.opt"
16558 if test -f $srcdir/$subdir/$subdir-tree.def
; then
16559 lang_tree_files
="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16561 if test -f ${srcdir}/$subdir/Makefile.
in
16562 then all_lang_makefiles
="$subdir/Makefile"
16564 all_languages
="$all_languages $language"
16565 all_compilers
="$all_compilers $compilers"
16566 all_outputs
="$all_outputs $outputs"
16567 all_gtfiles
="$all_gtfiles $gtfiles"
16570 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16571 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16575 # Pick up gtfiles for c
16578 .
${srcdir}/c-config-lang.
in
16579 all_gtfiles
="$all_gtfiles $gtfiles"
16582 all_gtfiles_files_langs
="$all_gtfiles_files_langs ${subdir} "
16583 all_gtfiles_files_files
="$all_gtfiles_files_files ${f} "
16587 for language
in $all_selected_languages
16589 check_languages
="$check_languages check-$language"
16592 # We link each language in with a set of hooks, reached indirectly via
16593 # lang.${target}. Only do so for selected languages.
16597 target_list
="all.cross start.encap rest.encap tags \
16598 install-common install-man install-info dvi pdf html \
16599 uninstall info man srcextra srcman srcinfo \
16600 mostlyclean clean distclean maintainer-clean"
16602 for t
in $target_list
16605 for lang
in $all_selected_languages
16609 echo "lang.$t: $x" >> Make-hooks
16618 echo "dir ." > .gdbinit
16619 echo "dir ${srcdir}" >> .gdbinit
16620 if test x
$gdb_needs_out_file_path = xyes
16622 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16624 if test "x$subdirs" != x
; then
16627 echo "dir ${srcdir}/$s" >> .gdbinit
16630 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16632 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16633 # absolute path for gcc_tooldir based on inserting the number of up-directory
16634 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16635 # $(libsubdir)/@(unlibsubdir) based path.
16636 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16637 # make and thus we'd get different behavior depending on where we built the
16639 if test x
$exec_prefix = xNONE
-o x
$exec_prefix = x
$prefix; then
16640 gcc_tooldir
='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16642 # An explanation of the sed strings:
16643 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
16644 # -e 's|/$||' match a trailing forward slash and eliminates it
16645 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
16646 # -e 's|/[^/]*|../|g' replaces each occurrence of /<directory> with ../
16648 # (*) Note this pattern overwrites the first character of the string
16649 # with a forward slash if one is not already present. This is not a
16650 # problem because the exact names of the sub-directories concerned is
16651 # unimportant, just the number of them matters.
16653 # The practical upshot of these patterns is like this:
16655 # prefix exec_prefix result
16656 # ------ ----------- ------
16657 # /foo /foo/bar ../
16658 # /foo/ /foo/bar ../
16659 # /foo /foo/bar/ ../
16660 # /foo/ /foo/bar/ ../
16661 # /foo /foo/bar/ugg ../../
16664 gcc_tooldir
="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16669 # Find a directory in which to install a shared libgcc.
16671 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16672 if test "${enable_version_specific_runtime_libs+set}" = set; then
16673 enableval
="$enable_version_specific_runtime_libs"
16678 # Check whether --with-slibdir or --without-slibdir was given.
16679 if test "${with_slibdir+set}" = set; then
16680 withval
="$with_slibdir"
16681 slibdir
="$with_slibdir"
16683 if test "${enable_version_specific_runtime_libs+set}" = set; then
16684 slibdir
='$(libsubdir)'
16685 elif test "$host" != "$target"; then
16686 slibdir
='$(build_tooldir)/lib'
16688 slibdir
='$(libdir)'
16693 objdir
=`${PWDCMD-pwd}`
16697 # Check whether --with-datarootdir or --without-datarootdir was given.
16698 if test "${with_datarootdir+set}" = set; then
16699 withval
="$with_datarootdir"
16700 datarootdir
="\${prefix}/$with_datarootdir"
16702 datarootdir
='$(prefix)/share'
16707 # Check whether --with-docdir or --without-docdir was given.
16708 if test "${with_docdir+set}" = set; then
16709 withval
="$with_docdir"
16710 docdir
="\${prefix}/$with_docdir"
16712 docdir
='$(datarootdir)'
16717 # Check whether --with-htmldir or --without-htmldir was given.
16718 if test "${with_htmldir+set}" = set; then
16719 withval
="$with_htmldir"
16720 htmldir
="\${prefix}/$with_htmldir"
16722 htmldir
='$(docdir)'
16726 # Substitute configuration variables
16785 if test x
${build} = x
${host} ; then
16786 if test x
${host} = x
${target} ; then
16787 echo "Links are now set up to build a native compiler for ${target}." 1>&2
16789 echo "Links are now set up to build a cross-compiler" 1>&2
16790 echo " from ${host} to ${target}." 1>&2
16793 if test x
${host} = x
${target} ; then
16794 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16795 echo " for ${target}." 1>&2
16797 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16798 echo " from ${host} to ${target}." 1>&2
16805 # Configure the subdirectories
16806 # AC_CONFIG_SUBDIRS($subdirs)
16808 # Create the Makefile
16809 # and configure language subdirectories
16810 ac_config_files
="$ac_config_files $all_outputs"
16813 ac_config_commands
="$ac_config_commands default"
16815 cat >confcache
<<\_ACEOF
16816 # This file is a shell script that caches the results of configure
16817 # tests run on this system so they can be shared between configure
16818 # scripts and configure runs, see configure's option --config-cache.
16819 # It is not useful on other systems. If it contains results you don't
16820 # want to keep, you may remove or edit it.
16822 # config.status only pays attention to the cache file if you give it
16823 # the --recheck option to rerun configure.
16825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16827 # following values.
16831 # The following way of writing the cache mishandles newlines in values,
16832 # but we know of no workaround that is simple, portable, and efficient.
16833 # So, don't put newlines in cache variables' values.
16834 # Ultrix sh set writes to stderr and can't be redirected directly,
16835 # and sets the high bit in the cache file unless we assign to the vars.
16838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16840 # `set' does not quote correctly, so add quotes (double-quote
16841 # substitution turns \\\\ into \\, and sed turns \\ into \).
16844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16847 # `set' quotes correctly as required by POSIX, so do not add quotes.
16849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16858 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16860 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
16861 if test -w $cache_file; then
16862 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16863 cat confcache
>$cache_file
16865 echo "not updating unwritable cache $cache_file"
16870 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16871 # Let make expand exec_prefix.
16872 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16876 # trailing colons and then remove the whole line if VPATH becomes empty
16877 # (actually we leave an empty line to preserve line numbers).
16878 if test "x$srcdir" = x.
; then
16879 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16880 s/:*\$(srcdir):*/:/;
16881 s/:*\${srcdir}:*/:/;
16883 s/^\([^=]*=[ ]*\):*/\1/;
16889 DEFS
=-DHAVE_CONFIG_H
16893 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16894 # 1. Remove the extension, and $U if already installed.
16895 ac_i
=`echo "$ac_i" |
16896 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16898 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
16899 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
16901 LIBOBJS
=$ac_libobjs
16903 LTLIBOBJS
=$ac_ltlibobjs
16907 : ${CONFIG_STATUS=./config.status}
16908 ac_clean_files_save
=$ac_clean_files
16909 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16910 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16911 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16912 cat >$CONFIG_STATUS <<_ACEOF
16914 # Generated by $as_me.
16915 # Run this file to recreate the current configuration.
16916 # Compiler output produced by configure, useful for debugging
16917 # configure, is in config.log if it exists.
16920 ac_cs_recheck=false
16922 SHELL=\${CONFIG_SHELL-$SHELL}
16925 cat >>$CONFIG_STATUS <<\_ACEOF
16926 ## --------------------- ##
16927 ## M4sh Initialization. ##
16928 ## --------------------- ##
16930 # Be Bourne compatible
16931 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16935 # is contrary to our usage. Disable this feature.
16936 alias -g '${1+"$@"}'='"$@"'
16937 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16940 DUALCASE
=1; export DUALCASE
# for MKS sh
16942 # Support unset when possible.
16943 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
16950 # Work around bugs in pre-3.0 UWIN ksh.
16951 $as_unset ENV MAIL MAILPATH
16958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16960 LC_TELEPHONE LC_TIME
16962 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16963 eval $as_var=C
; export $as_var
16969 # Required to use basename.
16970 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16976 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
16977 as_basename
=basename
16983 # Name of the executable.
16984 as_me
=`$as_basename "$0" ||
16985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16986 X"$0" : 'X\(//\)$' \| \
16987 X"$0" : 'X\(/\)$' \| \
16988 . : '\(.\)' 2>/dev/null ||
16990 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16991 /^X\/\(\/\/\)$/{ s//\1/; q; }
16992 /^X\/\(\/\).*/{ s//\1/; q; }
16996 # PATH needs CR, and LINENO needs CR and PATH.
16997 # Avoid depending upon Character Ranges.
16998 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16999 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17000 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17001 as_cr_digits
='0123456789'
17002 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17004 # The user is always right.
17005 if test "${PATH_SEPARATOR+set}" != set; then
17006 echo "#! /bin/sh" >conf$$.sh
17007 echo "exit 0" >>conf$$.sh
17009 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
17018 as_lineno_1
=$LINENO
17019 as_lineno_2
=$LINENO
17020 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
17021 test "x$as_lineno_1" != "x$as_lineno_2" &&
17022 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
17023 # Find who we are. Look in the path if we contain no path at all
17026 *[\\/]* ) as_myself
=$0 ;;
17027 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17028 for as_dir
in $PATH
17031 test -z "$as_dir" && as_dir
=.
17032 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17037 # We did not find ourselves, most probably we were run as `sh COMMAND'
17038 # in which case we are not to be found in the path.
17039 if test "x$as_myself" = x
; then
17042 if test ! -f "$as_myself"; then
17043 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17044 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17045 { (exit 1); exit 1; }; }
17047 case $CONFIG_SHELL in
17049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17050 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
17053 test -z "$as_dir" && as_dir
=.
17054 for as_base
in sh bash ksh sh5
; do
17057 if ("$as_dir/$as_base" -c '
17058 as_lineno_1=$LINENO
17059 as_lineno_2=$LINENO
17060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17061 test "x$as_lineno_1" != "x$as_lineno_2" &&
17062 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
17063 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
17064 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
17065 CONFIG_SHELL
=$as_dir/$as_base
17066 export CONFIG_SHELL
17067 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17076 # uniformly replaced by the line number. The first 'sed' inserts a
17077 # line-number line before each line; the second 'sed' does the real
17078 # work. The second script uses 'N' to pair each line-number line
17079 # with the numbered line, and appends trailing '-' during
17080 # substitution so that $LINENO is not a special case at line end.
17081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17082 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17083 sed '=' <$as_myself |
17088 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17091 s,^['$as_cr_digits']*\n,,
17092 ' >$as_me.lineno
&&
17093 chmod +x
$as_me.lineno ||
17094 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17095 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17096 { (exit 1); exit 1; }; }
17098 # Don't try to exec as it changes $[0], causing all sort of problems
17099 # (the dirname of $[0] is not the place where we might find the
17100 # original and so on. Autoconf is especially sensible to this).
17102 # Exit status is that of the last command.
17107 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17108 *c
*,-n*) ECHO_N
= ECHO_C
='
17110 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
17111 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
17114 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17120 rm -f conf$$ conf$$.exe conf$$.
file
17122 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17123 # We could just check for DJGPP; but this test a) works b) is more generic
17124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17125 if test -f conf$$.exe
; then
17126 # Don't use ln at all; we don't have any links
17131 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17136 rm -f conf$$ conf$$.exe conf$$.
file
17138 if mkdir
-p .
2>/dev
/null
; then
17141 test -d .
/-p && rmdir .
/-p
17145 as_executable_p
="test -f"
17147 # Sed expression to map a string onto a valid CPP name.
17148 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17150 # Sed expression to map a string onto a valid variable name.
17151 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17155 # We need space, tab and new line, in precisely that order.
17165 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17166 # report actual input values of CONFIG_FILES etc. instead of their
17167 # values after options handling. Logging --version etc. is OK.
17171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17172 ## Running $as_me. ##
17177 This file was extended by $as_me, which was
17178 generated by GNU Autoconf 2.59. Invocation command line was
17180 CONFIG_FILES = $CONFIG_FILES
17181 CONFIG_HEADERS = $CONFIG_HEADERS
17182 CONFIG_LINKS = $CONFIG_LINKS
17183 CONFIG_COMMANDS = $CONFIG_COMMANDS
17187 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17191 # Files that config.status was made for.
17192 if test -n "$ac_config_files"; then
17193 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17196 if test -n "$ac_config_headers"; then
17197 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17200 if test -n "$ac_config_links"; then
17201 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17204 if test -n "$ac_config_commands"; then
17205 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17208 cat >>$CONFIG_STATUS <<\_ACEOF
17211 \`$as_me' instantiates files from templates according to the
17212 current configuration.
17214 Usage: $0 [OPTIONS] [FILE]...
17216 -h, --help print this help, then exit
17217 -V, --version print version number, then exit
17218 -q, --quiet do not print progress messages
17219 -d, --debug don't remove temporary files
17220 --recheck update $as_me by reconfiguring in the same conditions
17221 --file=FILE[:TEMPLATE]
17222 instantiate the configuration file FILE
17223 --header=FILE[:TEMPLATE]
17224 instantiate the configuration header FILE
17226 Configuration files:
17229 Configuration headers:
17232 Configuration commands:
17235 Report bugs to <bug-autoconf@gnu.org>."
17238 cat >>$CONFIG_STATUS <<_ACEOF
17241 configured by $0, generated by GNU Autoconf 2.59,
17242 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17244 Copyright (C) 2003 Free Software Foundation, Inc.
17245 This config.status script is free software; the Free Software Foundation
17246 gives unlimited permission to copy, distribute and modify it."
17250 cat >>$CONFIG_STATUS <<\_ACEOF
17251 # If no file are specified by the user, then we need to provide default
17252 # value. By we need to know if files were specified by the user.
17258 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17259 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17267 *) # This is not an option, so the user has probably given explicit
17270 ac_need_defaults
=false
;;
17274 # Handling of the options.
17276 cat >>$CONFIG_STATUS <<\_ACEOF
17277 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17279 --version |
--vers* |
-V )
17280 echo "$ac_cs_version"; exit 0 ;;
17282 # Conflict between --help and --header
17283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17284 Try \`$0 --help' for more information." >&5
17285 echo "$as_me: error: ambiguous option: $1
17286 Try \`$0 --help' for more information." >&2;}
17287 { (exit 1); exit 1; }; };;
17288 --help |
--hel |
-h )
17289 echo "$ac_cs_usage"; exit 0 ;;
17290 --debug |
--d* |
-d )
17292 --file |
--fil |
--fi |
--f )
17294 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
17295 ac_need_defaults
=false
;;
17296 --header |
--heade |
--head |
--hea )
17298 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
17299 ac_need_defaults
=false
;;
17300 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17301 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17304 # This is an error.
17305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17306 Try \`$0 --help' for more information." >&5
17307 echo "$as_me: error: unrecognized option: $1
17308 Try \`$0 --help' for more information." >&2;}
17309 { (exit 1); exit 1; }; } ;;
17311 *) ac_config_targets
="$ac_config_targets $1" ;;
17317 ac_configure_extra_args
=
17319 if $ac_cs_silent; then
17321 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17325 cat >>$CONFIG_STATUS <<_ACEOF
17326 if \$ac_cs_recheck; then
17327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17333 cat >>$CONFIG_STATUS <<_ACEOF
17335 # INIT-COMMANDS section.
17344 cat >>$CONFIG_STATUS <<\_ACEOF
17345 for ac_config_target
in $ac_config_targets
17347 case "$ac_config_target" in
17348 # Handling of arguments.
17349 "$all_outputs" ) CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
17350 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17351 "auto-host.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
17352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17353 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17354 { (exit 1); exit 1; }; };;
17358 # If the user did not use the arguments to specify the items to instantiate,
17359 # then the envvar interface is used. Set only those that are not.
17360 # We use the long form for the default assignment because of an extremely
17361 # bizarre bug on SunOS 4.1.3.
17362 if $ac_need_defaults; then
17363 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17364 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17365 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17368 # Have a temporary directory for convenience. Make it in the build tree
17369 # simply because there is no reason to put it here, and in addition,
17370 # creating and moving files from /tmp can sometimes cause problems.
17371 # Create a temporary directory, and hook for its removal unless debugging.
17374 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17375 trap '{ (exit 1); exit 1; }' 1 2 13 15
17378 # Create a (secure) tmp directory for tmp files.
17381 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17382 test -n "$tmp" && test -d "$tmp"
17385 tmp
=.
/confstat$$
-$RANDOM
17386 (umask 077 && mkdir
$tmp)
17389 echo "$me: cannot create a temporary directory in ." >&2
17390 { (exit 1); exit 1; }
17395 cat >>$CONFIG_STATUS <<_ACEOF
17398 # CONFIG_FILES section.
17401 # No need to generate the scripts if there are no CONFIG_FILES.
17402 # This happens for instance when ./config.status config.h
17403 if test -n "\$CONFIG_FILES"; then
17404 # Protect against being on the right side of a sed subst in config.status.
17405 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17406 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17407 s,@SHELL@,$SHELL,;t t
17408 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17409 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17410 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17411 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17412 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17413 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17414 s,@exec_prefix@,$exec_prefix,;t t
17415 s,@prefix@,$prefix,;t t
17416 s,@program_transform_name@,$program_transform_name,;t t
17417 s,@bindir@,$bindir,;t t
17418 s,@sbindir@,$sbindir,;t t
17419 s,@libexecdir@,$libexecdir,;t t
17420 s,@datadir@,$datadir,;t t
17421 s,@sysconfdir@,$sysconfdir,;t t
17422 s,@sharedstatedir@,$sharedstatedir,;t t
17423 s,@localstatedir@,$localstatedir,;t t
17424 s,@libdir@,$libdir,;t t
17425 s,@includedir@,$includedir,;t t
17426 s,@oldincludedir@,$oldincludedir,;t t
17427 s,@infodir@,$infodir,;t t
17428 s,@mandir@,$mandir,;t t
17429 s,@build_alias@,$build_alias,;t t
17430 s,@host_alias@,$host_alias,;t t
17431 s,@target_alias@,$target_alias,;t t
17432 s,@DEFS@,$DEFS,;t t
17433 s,@ECHO_C@,$ECHO_C,;t t
17434 s,@ECHO_N@,$ECHO_N,;t t
17435 s,@ECHO_T@,$ECHO_T,;t t
17436 s,@LIBS@,$LIBS,;t t
17437 s,@build@,$build,;t t
17438 s,@build_cpu@,$build_cpu,;t t
17439 s,@build_vendor@,$build_vendor,;t t
17440 s,@build_os@,$build_os,;t t
17441 s,@host@,$host,;t t
17442 s,@host_cpu@,$host_cpu,;t t
17443 s,@host_vendor@,$host_vendor,;t t
17444 s,@host_os@,$host_os,;t t
17445 s,@target@,$target,;t t
17446 s,@target_cpu@,$target_cpu,;t t
17447 s,@target_vendor@,$target_vendor,;t t
17448 s,@target_os@,$target_os,;t t
17449 s,@target_noncanonical@,$target_noncanonical,;t t
17450 s,@build_libsubdir@,$build_libsubdir,;t t
17451 s,@build_subdir@,$build_subdir,;t t
17452 s,@host_subdir@,$host_subdir,;t t
17453 s,@target_subdir@,$target_subdir,;t t
17454 s,@GENINSRC@,$GENINSRC,;t t
17456 s,@CFLAGS@,$CFLAGS,;t t
17457 s,@LDFLAGS@,$LDFLAGS,;t t
17458 s,@CPPFLAGS@,$CPPFLAGS,;t t
17459 s,@ac_ct_CC@,$ac_ct_CC,;t t
17460 s,@EXEEXT@,$EXEEXT,;t t
17461 s,@OBJEXT@,$OBJEXT,;t t
17462 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17463 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17465 s,@EGREP@,$EGREP,;t t
17466 s,@strict_warn@,$strict_warn,;t t
17467 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17468 s,@warn_cflags@,$warn_cflags,;t t
17469 s,@nocommon_flag@,$nocommon_flag,;t t
17470 s,@TREEBROWSER@,$TREEBROWSER,;t t
17471 s,@valgrind_path@,$valgrind_path,;t t
17472 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17473 s,@valgrind_command@,$valgrind_command,;t t
17474 s,@coverage_flags@,$coverage_flags,;t t
17475 s,@enable_multilib@,$enable_multilib,;t t
17476 s,@enable_decimal_float@,$enable_decimal_float,;t t
17477 s,@enable_shared@,$enable_shared,;t t
17478 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17479 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17480 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17481 s,@onestep@,$onestep,;t t
17482 s,@datarootdir@,$datarootdir,;t t
17483 s,@docdir@,$docdir,;t t
17484 s,@htmldir@,$htmldir,;t t
17485 s,@SET_MAKE@,$SET_MAKE,;t t
17487 s,@LN_S@,$LN_S,;t t
17489 s,@RANLIB@,$RANLIB,;t t
17490 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17491 s,@ranlib_flags@,$ranlib_flags,;t t
17492 s,@INSTALL@,$INSTALL,;t t
17493 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17494 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17495 s,@make_compare_target@,$make_compare_target,;t t
17496 s,@have_mktemp_command@,$have_mktemp_command,;t t
17497 s,@MAKEINFO@,$MAKEINFO,;t t
17498 s,@BUILD_INFO@,$BUILD_INFO,;t t
17499 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17500 s,@FLEX@,$FLEX,;t t
17501 s,@BISON@,$BISON,;t t
17504 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17505 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17506 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17507 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17508 s,@LIBICONV@,$LIBICONV,;t t
17509 s,@LTLIBICONV@,$LTLIBICONV,;t t
17510 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17511 s,@manext@,$manext,;t t
17512 s,@objext@,$objext,;t t
17513 s,@gthread_flags@,$gthread_flags,;t t
17514 s,@extra_modes_file@,$extra_modes_file,;t t
17515 s,@extra_opt_files@,$extra_opt_files,;t t
17516 s,@USE_NLS@,$USE_NLS,;t t
17517 s,@LIBINTL@,$LIBINTL,;t t
17518 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17519 s,@INCINTL@,$INCINTL,;t t
17520 s,@XGETTEXT@,$XGETTEXT,;t t
17521 s,@GMSGFMT@,$GMSGFMT,;t t
17522 s,@POSUB@,$POSUB,;t t
17523 s,@CATALOGS@,$CATALOGS,;t t
17524 s,@DATADIRNAME@,$DATADIRNAME,;t t
17525 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17526 s,@GENCAT@,$GENCAT,;t t
17527 s,@CATOBJEXT@,$CATOBJEXT,;t t
17528 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17529 s,@CROSS@,$CROSS,;t t
17531 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17532 s,@inhibit_libc@,$inhibit_libc,;t t
17533 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17534 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17535 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17536 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17537 s,@collect2@,$collect2,;t t
17538 s,@gcc_cv_as@,$gcc_cv_as,;t t
17539 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17540 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17541 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17542 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17543 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17544 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17545 s,@libgcc_visibility@,$libgcc_visibility,;t t
17547 s,@zlibdir@,$zlibdir,;t t
17548 s,@zlibinc@,$zlibinc,;t t
17549 s,@MAINT@,$MAINT,;t t
17550 s,@gcc_tooldir@,$gcc_tooldir,;t t
17551 s,@dollar@,$dollar,;t t
17552 s,@slibdir@,$slibdir,;t t
17553 s,@objdir@,$objdir,;t t
17554 s,@subdirs@,$subdirs,;t t
17555 s,@srcdir@,$srcdir,;t t
17556 s,@all_compilers@,$all_compilers,;t t
17557 s,@all_gtfiles@,$all_gtfiles,;t t
17558 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17559 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17560 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17561 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17562 s,@all_languages@,$all_languages,;t t
17563 s,@all_selected_languages@,$all_selected_languages,;t t
17564 s,@build_exeext@,$build_exeext,;t t
17565 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17566 s,@build_xm_file_list@,$build_xm_file_list,;t t
17567 s,@build_xm_include_list@,$build_xm_include_list,;t t
17568 s,@build_xm_defines@,$build_xm_defines,;t t
17569 s,@check_languages@,$check_languages,;t t
17570 s,@cpp_install_dir@,$cpp_install_dir,;t t
17571 s,@xmake_file@,$xmake_file,;t t
17572 s,@tmake_file@,$tmake_file,;t t
17573 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17574 s,@extra_headers_list@,$extra_headers_list,;t t
17575 s,@extra_objs@,$extra_objs,;t t
17576 s,@extra_parts@,$extra_parts,;t t
17577 s,@extra_passes@,$extra_passes,;t t
17578 s,@extra_programs@,$extra_programs,;t t
17579 s,@float_h_file@,$float_h_file,;t t
17580 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17581 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17582 s,@host_exeext@,$host_exeext,;t t
17583 s,@host_xm_file_list@,$host_xm_file_list,;t t
17584 s,@host_xm_include_list@,$host_xm_include_list,;t t
17585 s,@host_xm_defines@,$host_xm_defines,;t t
17586 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17587 s,@install@,$install,;t t
17588 s,@lang_opt_files@,$lang_opt_files,;t t
17589 s,@lang_specs_files@,$lang_specs_files,;t t
17590 s,@lang_tree_files@,$lang_tree_files,;t t
17591 s,@local_prefix@,$local_prefix,;t t
17592 s,@md_file@,$md_file,;t t
17593 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17594 s,@out_file@,$out_file,;t t
17595 s,@out_object_file@,$out_object_file,;t t
17596 s,@thread_file@,$thread_file,;t t
17597 s,@tm_file_list@,$tm_file_list,;t t
17598 s,@tm_include_list@,$tm_include_list,;t t
17599 s,@tm_defines@,$tm_defines,;t t
17600 s,@tm_p_file_list@,$tm_p_file_list,;t t
17601 s,@tm_p_include_list@,$tm_p_include_list,;t t
17602 s,@xm_file_list@,$xm_file_list,;t t
17603 s,@xm_include_list@,$xm_include_list,;t t
17604 s,@xm_defines@,$xm_defines,;t t
17605 s,@c_target_objs@,$c_target_objs,;t t
17606 s,@cxx_target_objs@,$cxx_target_objs,;t t
17607 s,@target_cpu_default@,$target_cpu_default,;t t
17608 s,@GMPLIBS@,$GMPLIBS,;t t
17609 s,@GMPINC@,$GMPINC,;t t
17610 s,@LIBOBJS@,$LIBOBJS,;t t
17611 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17612 /@language_hooks@/r $language_hooks
17613 s,@language_hooks@,,;t t
17618 cat >>$CONFIG_STATUS <<\_ACEOF
17619 # Split the substitutions into bite-sized pieces for seds with
17620 # small command number limits, like on Digital OSF/1 and HP-UX.
17621 ac_max_sed_lines
=48
17622 ac_sed_frag
=1 # Number of current file.
17623 ac_beg
=1 # First line for current file.
17624 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17627 while $ac_more_lines; do
17628 if test $ac_beg -gt 1; then
17629 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17631 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17633 if test ! -s $tmp/subs.frag
; then
17634 ac_more_lines
=false
17636 # The purpose of the label and of the branching condition is to
17637 # speed up the sed processing (if there are no `@' at all, there
17638 # is no need to browse any of the substitutions).
17639 # These are the two extra sed commands mentioned above.
17641 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
17642 if test -z "$ac_sed_cmds"; then
17643 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
17645 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17647 ac_sed_frag
=`expr $ac_sed_frag + 1`
17649 ac_end
=`expr $ac_end + $ac_max_sed_lines`
17652 if test -z "$ac_sed_cmds"; then
17655 fi # test -n "$CONFIG_FILES"
17658 cat >>$CONFIG_STATUS <<\_ACEOF
17659 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
17660 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17662 - |
*:- |
*:-:* ) # input from stdin
17664 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17665 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17666 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668 * ) ac_file_in
=$ac_file.
in ;;
17671 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17672 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17674 X"$ac_file" : 'X\(//\)[^/]' \| \
17675 X"$ac_file" : 'X\(//\)$' \| \
17676 X"$ac_file" : 'X\(/\)' \| \
17677 . : '\(.\)' 2>/dev/null ||
17679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17681 /^X\(\/\/\)$/{ s//\1/; q; }
17682 /^X\(\/\).*/{ s//\1/; q; }
17684 { if $as_mkdir_p; then
17689 while test ! -d "$as_dir"; do
17690 as_dirs
="$as_dir $as_dirs"
17691 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
17692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17693 X"$as_dir" : 'X\(//\)[^/]' \| \
17694 X"$as_dir" : 'X\(//\)$' \| \
17695 X"$as_dir" : 'X\(/\)' \| \
17696 . : '\(.\)' 2>/dev/null ||
17698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17700 /^X\(\/\/\)$/{ s//\1/; q; }
17701 /^X\(\/\).*/{ s//\1/; q; }
17704 test ! -n "$as_dirs" || mkdir
$as_dirs
17705 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17706 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17707 { (exit 1); exit 1; }; }; }
17711 if test "$ac_dir" != .
; then
17712 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17713 # A "../" for each directory in $ac_dir_suffix.
17714 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17716 ac_dir_suffix
= ac_top_builddir
=
17720 .
) # No --srcdir option. We are building in place.
17722 if test -z "$ac_top_builddir"; then
17725 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17727 [\\/]* | ?
:[\\/]* ) # Absolute path.
17728 ac_srcdir
=$srcdir$ac_dir_suffix;
17729 ac_top_srcdir
=$srcdir ;;
17730 *) # Relative path.
17731 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17732 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17735 # Do not use `cd foo && pwd` to compute absolute paths, because
17736 # the directories may not exist.
17738 .
) ac_abs_builddir
="$ac_dir";;
17741 .
) ac_abs_builddir
=`pwd`;;
17742 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
17743 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
17746 case $ac_abs_builddir in
17747 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17749 case ${ac_top_builddir}.
in
17750 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
17751 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
17752 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
17755 case $ac_abs_builddir in
17756 .
) ac_abs_srcdir
=$ac_srcdir;;
17759 .
) ac_abs_srcdir
=$ac_abs_builddir;;
17760 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
17761 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
17764 case $ac_abs_builddir in
17765 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
17767 case $ac_top_srcdir in
17768 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
17769 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
17770 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
17776 if test x
"$ac_file" != x-
; then
17777 { echo "$as_me:$LINENO: creating $ac_file" >&5
17778 echo "$as_me: creating $ac_file" >&6;}
17781 # Let's still pretend it is `configure' which instantiates (i.e., don't
17782 # use $as_me), people would be surprised to read:
17783 # /* config.h. Generated by config.status. */
17784 if test x
"$ac_file" = x-
; then
17787 configure_input
="$ac_file. "
17789 configure_input
=$configure_input"Generated from `echo $ac_file_in |
17790 sed 's,.*/,,'` by configure."
17792 # First look for the input files in the build tree, otherwise in the
17794 ac_file_inputs
=`IFS=:
17795 for f in $ac_file_in; do
17797 -) echo $tmp/stdin ;;
17799 # Absolute (can't be DOS-style, as IFS=:)
17800 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17801 echo "$as_me: error: cannot find input file: $f" >&2;}
17802 { (exit 1); exit 1; }; }
17805 if test -f "$f"; then
17808 elif test -f "$srcdir/$f"; then
17813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17814 echo "$as_me: error: cannot find input file: $f" >&2;}
17815 { (exit 1); exit 1; }; }
17818 done` ||
{ (exit 1); exit 1; }
17820 cat >>$CONFIG_STATUS <<_ACEOF
17824 cat >>$CONFIG_STATUS <<\_ACEOF
17826 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17827 s
,@configure_input@
,$configure_input,;t t
17828 s
,@srcdir@
,$ac_srcdir,;t t
17829 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
17830 s
,@top_srcdir@
,$ac_top_srcdir,;t t
17831 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
17832 s
,@builddir@
,$ac_builddir,;t t
17833 s
,@abs_builddir@
,$ac_abs_builddir,;t t
17834 s
,@top_builddir@
,$ac_top_builddir,;t t
17835 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
17836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17838 if test x"$ac_file" != x-; then
17839 mv $tmp/out $ac_file
17847 cat >>$CONFIG_STATUS <<\_ACEOF
17850 # CONFIG_HEADER section.
17853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
17854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17856 # ac_d sets the value in "#define NAME VALUE" lines.
17857 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17858 ac_dB
='[ ].*$,\1#\2'
17861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17862 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17863 ac_uB
='$,\1#\2define\3'
17867 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
17868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17870 - |
*:- |
*:-:* ) # input from stdin
17872 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17873 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17874 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17875 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
17876 * ) ac_file_in
=$ac_file.
in ;;
17879 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
17880 echo "$as_me: creating $ac_file" >&6;}
17882 # First look for the input files in the build tree, otherwise in the
17884 ac_file_inputs
=`IFS=:
17885 for f in $ac_file_in; do
17887 -) echo $tmp/stdin ;;
17889 # Absolute (can't be DOS-style, as IFS=:)
17890 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17891 echo "$as_me: error: cannot find input file: $f" >&2;}
17892 { (exit 1); exit 1; }; }
17893 # Do quote $f, to prevent DOS paths from being IFS'd.
17896 if test -f "$f"; then
17899 elif test -f "$srcdir/$f"; then
17904 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17905 echo "$as_me: error: cannot find input file: $f" >&2;}
17906 { (exit 1); exit 1; }; }
17909 done` ||
{ (exit 1); exit 1; }
17910 # Remove the trailing spaces.
17911 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17916 # `conftest.undefs', that substitutes the proper values into
17917 # config.h.in to produce config.h. The first handles `#define'
17918 # templates, and the second `#undef' templates.
17919 # And first: Protect against being on the right side of a sed subst in
17920 # config.status. Protect against being in an unquoted here document
17921 # in config.status.
17922 rm -f conftest.defines conftest.undefs
17923 # Using a here document instead of a string reduces the quoting nightmare.
17924 # Putting comments in sed scripts is not portable.
17926 # `end' is used to avoid that the second main sed command (meant for
17927 # 0-ary CPP macros) applies to n-ary macro definitions.
17928 # See the Autoconf documentation for `clear'.
17929 cat >confdef2sed.
sed <<\_ACEOF
17934 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17936 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17939 # If some macros were called several times there might be several times
17940 # the same #defines, which is useless. Nevertheless, we may not want to
17941 # sort them, since we want the *last* AC-DEFINE to be honored.
17942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17944 rm -f confdef2sed.sed
17946 # This sed command replaces #undef with comments. This is necessary, for
17947 # example, in the case of _POSIX_SOURCE, which is predefined and required
17948 # on some systems where configure will not decide to define it.
17949 cat >>conftest.undefs <<\_ACEOF
17950 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17953 # Break up conftest.defines because some shells have a limit on the size
17954 # of here documents, and old seds have small limits too (100 cmds).
17955 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17956 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17957 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17958 echo ' :' >>$CONFIG_STATUS
17959 rm -f conftest.tail
17960 while grep . conftest.defines >/dev/null
17962 # Write a limited-size here document to $tmp/defines.sed.
17963 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17964 # Speed up: don't consider the non `#define' lines.
17965 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17966 # Work around the forget-to-reset-the-flag bug.
17967 echo 't clr' >>$CONFIG_STATUS
17968 echo ': clr' >>$CONFIG_STATUS
17969 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17971 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17973 mv $tmp/out $tmp/in
17975 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17976 rm -f conftest.defines
17977 mv conftest.
tail conftest.defines
17979 rm -f conftest.defines
17980 echo ' fi # grep' >>$CONFIG_STATUS
17981 echo >>$CONFIG_STATUS
17983 # Break up conftest.undefs because some shells have a limit on the size
17984 # of here documents, and old seds have small limits too (100 cmds).
17985 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17986 rm -f conftest.
tail
17987 while grep . conftest.undefs
>/dev
/null
17989 # Write a limited-size here document to $tmp/undefs.sed.
17990 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17991 # Speed up: don't consider the non
`#undef'
17992 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17993 # Work around the forget-to-reset-the-flag bug.
17994 echo 't clr' >>$CONFIG_STATUS
17995 echo ': clr' >>$CONFIG_STATUS
17996 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17998 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18000 mv $tmp/out $tmp/in
18002 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18003 rm -f conftest.undefs
18004 mv conftest.tail conftest.undefs
18006 rm -f conftest.undefs
18008 cat >>$CONFIG_STATUS <<\_ACEOF
18009 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18010 # use $as_me), people would be surprised to read:
18011 # /* config.h. Generated by config.status. */
18012 if test x
"$ac_file" = x-
; then
18013 echo "/* Generated by configure. */" >$tmp/config.h
18015 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18017 cat $tmp/in >>$tmp/config.h
18019 if test x
"$ac_file" != x-
; then
18020 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
18021 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18022 echo "$as_me: $ac_file is unchanged" >&6;}
18024 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
18025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18026 X"$ac_file" : 'X\(//\)[^/]' \| \
18027 X"$ac_file" : 'X\(//\)$' \| \
18028 X"$ac_file" : 'X\(/\)' \| \
18029 . : '\(.\)' 2>/dev/null ||
18031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18032 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18033 /^X\(\/\/\)$/{ s//\1/; q; }
18034 /^X\(\/\).*/{ s//\1/; q; }
18036 { if $as_mkdir_p; then
18041 while test ! -d "$as_dir"; do
18042 as_dirs
="$as_dir $as_dirs"
18043 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18045 X"$as_dir" : 'X\(//\)[^/]' \| \
18046 X"$as_dir" : 'X\(//\)$' \| \
18047 X"$as_dir" : 'X\(/\)' \| \
18048 . : '\(.\)' 2>/dev/null ||
18050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18051 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18052 /^X\(\/\/\)$/{ s//\1/; q; }
18053 /^X\(\/\).*/{ s//\1/; q; }
18056 test ! -n "$as_dirs" || mkdir
$as_dirs
18057 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18059 { (exit 1); exit 1; }; }; }
18062 mv $tmp/config.h
$ac_file
18066 rm -f $tmp/config.h
18070 cat >>$CONFIG_STATUS <<\_ACEOF
18073 # CONFIG_COMMANDS section.
18075 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18076 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18077 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18078 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
18079 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18080 X"$ac_dest" : 'X\(//\)[^/]' \| \
18081 X"$ac_dest" : 'X\(//\)$' \| \
18082 X"$ac_dest" : 'X\(/\)' \| \
18083 . : '\(.\)' 2>/dev/null ||
18085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18086 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18087 /^X\(\/\/\)$/{ s//\1/; q; }
18088 /^X\(\/\).*/{ s//\1/; q; }
18090 { if $as_mkdir_p; then
18095 while test ! -d "$as_dir"; do
18096 as_dirs
="$as_dir $as_dirs"
18097 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
18098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18099 X"$as_dir" : 'X\(//\)[^/]' \| \
18100 X"$as_dir" : 'X\(//\)$' \| \
18101 X"$as_dir" : 'X\(/\)' \| \
18102 . : '\(.\)' 2>/dev/null ||
18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18106 /^X\(\/\/\)$/{ s//\1/; q; }
18107 /^X\(\/\).*/{ s//\1/; q; }
18110 test ! -n "$as_dirs" || mkdir
$as_dirs
18111 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18112 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18113 { (exit 1); exit 1; }; }; }
18117 if test "$ac_dir" != .
; then
18118 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18119 # A "../" for each directory in $ac_dir_suffix.
18120 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18122 ac_dir_suffix
= ac_top_builddir
=
18126 .
) # No --srcdir option. We are building in place.
18128 if test -z "$ac_top_builddir"; then
18131 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
18133 [\\/]* | ?
:[\\/]* ) # Absolute path.
18134 ac_srcdir
=$srcdir$ac_dir_suffix;
18135 ac_top_srcdir
=$srcdir ;;
18136 *) # Relative path.
18137 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
18138 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
18141 # Do not use `cd foo && pwd` to compute absolute paths, because
18142 # the directories may not exist.
18144 .
) ac_abs_builddir
="$ac_dir";;
18147 .
) ac_abs_builddir
=`pwd`;;
18148 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
18149 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
18152 case $ac_abs_builddir in
18153 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18155 case ${ac_top_builddir}.
in
18156 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
18157 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
18158 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
18161 case $ac_abs_builddir in
18162 .
) ac_abs_srcdir
=$ac_srcdir;;
18165 .
) ac_abs_srcdir
=$ac_abs_builddir;;
18166 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
18167 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
18170 case $ac_abs_builddir in
18171 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
18173 case $ac_top_srcdir in
18174 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
18175 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
18176 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
18181 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18182 echo "$as_me: executing $ac_dest commands" >&6;}
18185 case ${CONFIG_HEADERS} in
18186 *auto-host.h
:config.
in*)
18189 # Make sure all the subdirs exist.
18190 for d
in $subdirs doc build
18192 test -d $d || mkdir
$d
18199 cat >>$CONFIG_STATUS <<\_ACEOF
18201 { (exit 0); exit 0; }
18203 chmod +x
$CONFIG_STATUS
18204 ac_clean_files
=$ac_clean_files_save
18207 # configure is writing to config.log, and then calls config.status.
18208 # config.status does its own redirection, appending to config.log.
18209 # Unfortunately, on DOS this fails, as config.log is still kept open
18210 # by configure, so config.status won't be able to write to it; its
18211 # output is simply discarded. So we exec the FD to /dev/null,
18212 # effectively closing config.log, so it can be properly (re)opened and
18213 # appended to by config.status. When coming back to configure, we
18214 # need to make the FD available again.
18215 if test "$no_create" != yes; then
18217 ac_config_status_args
=
18218 test "$silent" = yes &&
18219 ac_config_status_args
="$ac_config_status_args --quiet"
18221 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18223 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18224 # would make configure fail if this is the last instruction.
18225 $ac_cs_success ||
{ (exit 1); exit 1; }